Increase clock resolution for system_clock_8.
[official-gcc.git] / libjava / configure
blob605225b19a0c36a9d58d939fe6ae2b202a59393b
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
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='libjava'
558 PACKAGE_TARNAME='libjava'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='libjava version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
564 ac_unique_file="java/lang/System.java"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 enable_option_checking=no
602 ac_subst_vars='am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 LIBDIR
609 GCJ_BIN_DIR
610 JRE_LIB_DIR
611 JRE_BIN_DIR
612 SDK_INCLUDE_DIR
613 SDK_LIB_DIR
614 SDK_BIN_DIR
615 SDK_LNK
616 JRE_LNK
617 JRE_DIR
618 JVM_JAR_DIR
619 JVM_JAR_ROOT_DIR
620 JVM_ROOT_DIR
621 BUILD_VERSION
622 JAVA_VERSION
623 gcc_suffix
624 CREATE_JAVA_HOME_FALSE
625 CREATE_JAVA_HOME_TRUE
626 INSTALL_AOT_RPM_FALSE
627 INSTALL_AOT_RPM_TRUE
628 MAKE
629 python_mod_dir_expanded
630 python_mod_dir
631 here
632 LD_FINISH_STATIC_SPEC
633 LD_START_STATIC_SPEC
634 ANONVERSCRIPT_FALSE
635 ANONVERSCRIPT_TRUE
636 SYSDEP_SOURCES
637 PERL
638 libstdcxx_incdir
639 gxx_include_dir
640 gcjsubdir
641 dbexecdir
642 GCJVERSION
643 toolexeclibdir
644 toolexecmainlibdir
645 toolexecdir
646 GCC_UNWIND_INCLUDE
647 INSTALL_BINARIES_FALSE
648 INSTALL_BINARIES_TRUE
649 NEEDS_DATA_START_FALSE
650 NEEDS_DATA_START_TRUE
651 ENABLE_SHARED_FALSE
652 ENABLE_SHARED_TRUE
653 NATIVE_FALSE
654 NATIVE_TRUE
655 ATOMICSPEC
656 IEEESPEC
657 BACKTRACESPEC
658 EXCEPTIONSPEC
659 CHECKREFSPEC
660 DIVIDESPEC
661 ZINCS
662 SYS_ZLIBS
663 ZLIBS
664 CLASSPATH_SEPARATOR
665 LIBART_LIBS
666 LIBART_CFLAGS
667 GLIB_LIBS
668 GLIB_CFLAGS
669 GTK_LIBS
670 GTK_CFLAGS
671 PKG_CONFIG
672 LTLIBICONV
673 LIBICONV
674 USING_GCC_FALSE
675 USING_GCC_TRUE
676 HASH_SYNC_SPEC
677 LIBGCJ_BC_SPEC
678 LIBGCJ_SPEC
679 USE_LIBGCJ_BC_FALSE
680 USE_LIBGCJ_BC_TRUE
681 USING_NO_THREADS_FALSE
682 USING_NO_THREADS_TRUE
683 USING_WIN32_THREADS_FALSE
684 USING_WIN32_THREADS_TRUE
685 USING_POSIX_THREADS_FALSE
686 USING_POSIX_THREADS_TRUE
687 THREADCXXFLAGS
688 THREADLDFLAGS
689 THREADSTARTFILESPEC
690 THREADSPEC
691 THREADDEPS
692 THREADINCS
693 THREADLIBS
694 USING_NOGC_FALSE
695 USING_NOGC_TRUE
696 USING_BOEHMGC_FALSE
697 USING_BOEHMGC_TRUE
698 GCTESTSPEC
699 JC1GCSPEC
700 GCSPEC
701 GCDEPS
702 GCINCS
703 GCLIBS
704 LIBGCJTESTSPEC
705 LIBSTDCXXSPEC
706 extra_ldflags
707 extra_ldflags_libjava
708 X_EXTRA_LIBS
709 X_LIBS
710 X_PRE_LIBS
711 X_CFLAGS
712 XMKMF
713 ZLIBTESTSPEC
714 ZLIBSPEC
715 SYSTEMSPEC
716 USING_DARWIN_CRT_FALSE
717 USING_DARWIN_CRT_TRUE
718 USING_POSIX_PLATFORM_FALSE
719 USING_POSIX_PLATFORM_TRUE
720 USING_WIN32_PLATFORM_FALSE
721 USING_WIN32_PLATFORM_TRUE
722 PLATFORM
723 LIBFFIINCS
724 LIBFFI
725 INTERPRETER_FALSE
726 INTERPRETER_TRUE
727 INTERPRETER
728 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE
729 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE
730 SUPPRESS_LIBGCJ_BC_FALSE
731 SUPPRESS_LIBGCJ_BC_TRUE
732 JAVA_HOME
733 JAVA_HOME_SET_FALSE
734 JAVA_HOME_SET_TRUE
735 INSTALL_ECJ_JAR_FALSE
736 INSTALL_ECJ_JAR_TRUE
737 BUILD_ECJ1_FALSE
738 BUILD_ECJ1_TRUE
739 ECJ_JAR
740 ECJ_BUILD_JAR
741 TESTSUBDIR_FALSE
742 TESTSUBDIR_TRUE
743 subdirs
744 am__fastdepGCJ_FALSE
745 am__fastdepGCJ_TRUE
746 GCJDEPMODE
747 GCJFLAGS
749 CXXCPP
751 OTOOL64
752 OTOOL
753 LIPO
754 NMEDIT
755 DSYMUTIL
756 OBJDUMP
758 ac_ct_DUMPBIN
759 DUMPBIN
760 FGREP
761 EGREP
762 GREP
764 LIBTOOL
765 DIRLTDL
766 LIBLTDL
767 INCLTDL
768 host_exeext
769 GCJH
770 GCJ_FOR_ECJX
771 X_AWT_FALSE
772 X_AWT_TRUE
773 XLIB_AWT_FALSE
774 XLIB_AWT_TRUE
775 TOOLKIT
776 LIBGCJDEBUG
777 BUILD_SUBLIBS_FALSE
778 BUILD_SUBLIBS_TRUE
779 LIBGCJ_LD_SYMBOLIC_FUNCTIONS
780 LIBGCJ_LD_SYMBOLIC
781 LIBGCJ_SUBLIB_LTFLAGS
782 LIBGCJ_JAVAFLAGS
783 LIBGCJ_CXXFLAGS
784 LIBGCJ_CFLAGS
785 MAINT
786 MAINTAINER_MODE_FALSE
787 MAINTAINER_MODE_TRUE
788 UNZIP
791 RANLIB
795 am__fastdepCXX_FALSE
796 am__fastdepCXX_TRUE
797 CXXDEPMODE
798 am__fastdepCC_FALSE
799 am__fastdepCC_TRUE
800 CCDEPMODE
801 AMDEPBACKSLASH
802 AMDEP_FALSE
803 AMDEP_TRUE
804 am__quote
805 am__include
806 DEPDIR
807 am__untar
808 am__tar
809 AMTAR
810 am__leading_dot
811 SET_MAKE
813 mkdir_p
814 MKDIR_P
815 INSTALL_STRIP_PROGRAM
816 STRIP
817 install_sh
818 MAKEINFO
819 AUTOHEADER
820 AUTOMAKE
821 AUTOCONF
822 ACLOCAL
823 VERSION
824 PACKAGE
825 CYGPATH_W
826 am__isrc
827 INSTALL_DATA
828 INSTALL_SCRIPT
829 INSTALL_PROGRAM
830 ac_ct_CXX
831 CXXFLAGS
833 OBJEXT
834 EXEEXT
835 ac_ct_CC
836 CPPFLAGS
837 LDFLAGS
838 CFLAGS
840 JAVA_MAINTAINER_MODE_FALSE
841 JAVA_MAINTAINER_MODE_TRUE
842 CREATE_GJDOC_FALSE
843 CREATE_GJDOC_TRUE
844 ANTLR_JAR
845 mkinstalldirs
846 LN_S
847 target_noncanonical
848 target_os
849 target_vendor
850 target_cpu
851 target
852 host_os
853 host_vendor
854 host_cpu
855 host
856 multi_basedir
857 target_subdir
858 host_subdir
859 build_subdir
860 build_libsubdir
861 build_os
862 build_vendor
863 build_cpu
864 build
865 target_alias
866 host_alias
867 build_alias
868 LIBS
869 ECHO_T
870 ECHO_N
871 ECHO_C
872 DEFS
873 mandir
874 localedir
875 libdir
876 psdir
877 pdfdir
878 dvidir
879 htmldir
880 infodir
881 docdir
882 oldincludedir
883 includedir
884 localstatedir
885 sharedstatedir
886 sysconfdir
887 datadir
888 datarootdir
889 libexecdir
890 sbindir
891 bindir
892 program_transform_name
893 prefix
894 exec_prefix
895 PACKAGE_URL
896 PACKAGE_BUGREPORT
897 PACKAGE_STRING
898 PACKAGE_VERSION
899 PACKAGE_TARNAME
900 PACKAGE_NAME
901 PATH_SEPARATOR
902 SHELL'
903 ac_subst_files=''
904 ac_user_opts='
905 enable_option_checking
906 with_build_libsubdir
907 with_target_subdir
908 enable_multilib
909 with_cross_host
910 with_newlib
911 enable_version_specific_runtime_libs
912 enable_browser_plugin
913 enable_gconf_peer
914 with_antlr_jar
915 enable_gjdoc
916 enable_java_maintainer_mode
917 enable_dependency_tracking
918 enable_maintainer_mode
919 enable_libgcj_sublibs
920 enable_libgcj_debug
921 with_escher
922 enable_java_awt
923 enable_shared
924 enable_static
925 with_pic
926 enable_fast_install
927 with_gnu_ld
928 enable_libtool_lock
929 enable_getenv_properties
930 enable_hash_synchronization
931 with_ecj_jar
932 with_java_home
933 enable_libgcj_bc
934 enable_reduced_reflection
935 with_win32_nlsapi
936 enable_gc_debug
937 enable_interpreter
938 enable_sjlj_exceptions
939 enable_java_net
940 with_libffi
941 enable_jvmpi
942 with_ecos
943 with_system_zlib
944 with_x
945 enable_java_gc
946 enable_rpath
947 with_libiconv_prefix
948 enable_tls
949 with_system_libunwind
950 with_python_dir
951 enable_aot_compile_rpm
952 enable_java_home
953 with_gcc_suffix
954 with_arch_directory
955 with_os_directory
956 with_origin_name
957 with_arch_suffix
958 with_jvm_root_dir
959 with_jvm_jar_dir
961 ac_precious_vars='build_alias
962 host_alias
963 target_alias
965 CFLAGS
966 LDFLAGS
967 LIBS
968 CPPFLAGS
970 CXXFLAGS
973 CXXCPP
974 XMKMF'
975 ac_subdirs_all='classpath libltdl'
977 # Initialize some variables set by options.
978 ac_init_help=
979 ac_init_version=false
980 ac_unrecognized_opts=
981 ac_unrecognized_sep=
982 # The variables have the same names as the options, with
983 # dashes changed to underlines.
984 cache_file=/dev/null
985 exec_prefix=NONE
986 no_create=
987 no_recursion=
988 prefix=NONE
989 program_prefix=NONE
990 program_suffix=NONE
991 program_transform_name=s,x,x,
992 silent=
993 site=
994 srcdir=
995 verbose=
996 x_includes=NONE
997 x_libraries=NONE
999 # Installation directory options.
1000 # These are left unexpanded so users can "make install exec_prefix=/foo"
1001 # and all the variables that are supposed to be based on exec_prefix
1002 # by default will actually change.
1003 # Use braces instead of parens because sh, perl, etc. also accept them.
1004 # (The list follows the same order as the GNU Coding Standards.)
1005 bindir='${exec_prefix}/bin'
1006 sbindir='${exec_prefix}/sbin'
1007 libexecdir='${exec_prefix}/libexec'
1008 datarootdir='${prefix}/share'
1009 datadir='${datarootdir}'
1010 sysconfdir='${prefix}/etc'
1011 sharedstatedir='${prefix}/com'
1012 localstatedir='${prefix}/var'
1013 includedir='${prefix}/include'
1014 oldincludedir='/usr/include'
1015 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1016 infodir='${datarootdir}/info'
1017 htmldir='${docdir}'
1018 dvidir='${docdir}'
1019 pdfdir='${docdir}'
1020 psdir='${docdir}'
1021 libdir='${exec_prefix}/lib'
1022 localedir='${datarootdir}/locale'
1023 mandir='${datarootdir}/man'
1025 ac_prev=
1026 ac_dashdash=
1027 for ac_option
1029 # If the previous option needs an argument, assign it.
1030 if test -n "$ac_prev"; then
1031 eval $ac_prev=\$ac_option
1032 ac_prev=
1033 continue
1036 case $ac_option in
1037 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1038 *) ac_optarg=yes ;;
1039 esac
1041 # Accept the important Cygnus configure options, so we can diagnose typos.
1043 case $ac_dashdash$ac_option in
1045 ac_dashdash=yes ;;
1047 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1048 ac_prev=bindir ;;
1049 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1050 bindir=$ac_optarg ;;
1052 -build | --build | --buil | --bui | --bu)
1053 ac_prev=build_alias ;;
1054 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1055 build_alias=$ac_optarg ;;
1057 -cache-file | --cache-file | --cache-fil | --cache-fi \
1058 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1059 ac_prev=cache_file ;;
1060 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1061 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1062 cache_file=$ac_optarg ;;
1064 --config-cache | -C)
1065 cache_file=config.cache ;;
1067 -datadir | --datadir | --datadi | --datad)
1068 ac_prev=datadir ;;
1069 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1070 datadir=$ac_optarg ;;
1072 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1073 | --dataroo | --dataro | --datar)
1074 ac_prev=datarootdir ;;
1075 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1076 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1077 datarootdir=$ac_optarg ;;
1079 -disable-* | --disable-*)
1080 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1083 as_fn_error "invalid feature name: $ac_useropt"
1084 ac_useropt_orig=$ac_useropt
1085 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086 case $ac_user_opts in
1088 "enable_$ac_useropt"
1089 "*) ;;
1090 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1091 ac_unrecognized_sep=', ';;
1092 esac
1093 eval enable_$ac_useropt=no ;;
1095 -docdir | --docdir | --docdi | --doc | --do)
1096 ac_prev=docdir ;;
1097 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1098 docdir=$ac_optarg ;;
1100 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1101 ac_prev=dvidir ;;
1102 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1103 dvidir=$ac_optarg ;;
1105 -enable-* | --enable-*)
1106 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109 as_fn_error "invalid feature name: $ac_useropt"
1110 ac_useropt_orig=$ac_useropt
1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1114 "enable_$ac_useropt"
1115 "*) ;;
1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1117 ac_unrecognized_sep=', ';;
1118 esac
1119 eval enable_$ac_useropt=\$ac_optarg ;;
1121 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1122 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1123 | --exec | --exe | --ex)
1124 ac_prev=exec_prefix ;;
1125 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1126 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1127 | --exec=* | --exe=* | --ex=*)
1128 exec_prefix=$ac_optarg ;;
1130 -gas | --gas | --ga | --g)
1131 # Obsolete; use --with-gas.
1132 with_gas=yes ;;
1134 -help | --help | --hel | --he | -h)
1135 ac_init_help=long ;;
1136 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1137 ac_init_help=recursive ;;
1138 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1139 ac_init_help=short ;;
1141 -host | --host | --hos | --ho)
1142 ac_prev=host_alias ;;
1143 -host=* | --host=* | --hos=* | --ho=*)
1144 host_alias=$ac_optarg ;;
1146 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1147 ac_prev=htmldir ;;
1148 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1149 | --ht=*)
1150 htmldir=$ac_optarg ;;
1152 -includedir | --includedir | --includedi | --included | --include \
1153 | --includ | --inclu | --incl | --inc)
1154 ac_prev=includedir ;;
1155 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1156 | --includ=* | --inclu=* | --incl=* | --inc=*)
1157 includedir=$ac_optarg ;;
1159 -infodir | --infodir | --infodi | --infod | --info | --inf)
1160 ac_prev=infodir ;;
1161 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1162 infodir=$ac_optarg ;;
1164 -libdir | --libdir | --libdi | --libd)
1165 ac_prev=libdir ;;
1166 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1167 libdir=$ac_optarg ;;
1169 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1170 | --libexe | --libex | --libe)
1171 ac_prev=libexecdir ;;
1172 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1173 | --libexe=* | --libex=* | --libe=*)
1174 libexecdir=$ac_optarg ;;
1176 -localedir | --localedir | --localedi | --localed | --locale)
1177 ac_prev=localedir ;;
1178 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1179 localedir=$ac_optarg ;;
1181 -localstatedir | --localstatedir | --localstatedi | --localstated \
1182 | --localstate | --localstat | --localsta | --localst | --locals)
1183 ac_prev=localstatedir ;;
1184 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1185 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1186 localstatedir=$ac_optarg ;;
1188 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1189 ac_prev=mandir ;;
1190 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1191 mandir=$ac_optarg ;;
1193 -nfp | --nfp | --nf)
1194 # Obsolete; use --without-fp.
1195 with_fp=no ;;
1197 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1198 | --no-cr | --no-c | -n)
1199 no_create=yes ;;
1201 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1202 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1203 no_recursion=yes ;;
1205 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1206 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1207 | --oldin | --oldi | --old | --ol | --o)
1208 ac_prev=oldincludedir ;;
1209 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1210 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1211 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1212 oldincludedir=$ac_optarg ;;
1214 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1215 ac_prev=prefix ;;
1216 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1217 prefix=$ac_optarg ;;
1219 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1220 | --program-pre | --program-pr | --program-p)
1221 ac_prev=program_prefix ;;
1222 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1223 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1224 program_prefix=$ac_optarg ;;
1226 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1227 | --program-suf | --program-su | --program-s)
1228 ac_prev=program_suffix ;;
1229 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1230 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1231 program_suffix=$ac_optarg ;;
1233 -program-transform-name | --program-transform-name \
1234 | --program-transform-nam | --program-transform-na \
1235 | --program-transform-n | --program-transform- \
1236 | --program-transform | --program-transfor \
1237 | --program-transfo | --program-transf \
1238 | --program-trans | --program-tran \
1239 | --progr-tra | --program-tr | --program-t)
1240 ac_prev=program_transform_name ;;
1241 -program-transform-name=* | --program-transform-name=* \
1242 | --program-transform-nam=* | --program-transform-na=* \
1243 | --program-transform-n=* | --program-transform-=* \
1244 | --program-transform=* | --program-transfor=* \
1245 | --program-transfo=* | --program-transf=* \
1246 | --program-trans=* | --program-tran=* \
1247 | --progr-tra=* | --program-tr=* | --program-t=*)
1248 program_transform_name=$ac_optarg ;;
1250 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1251 ac_prev=pdfdir ;;
1252 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1253 pdfdir=$ac_optarg ;;
1255 -psdir | --psdir | --psdi | --psd | --ps)
1256 ac_prev=psdir ;;
1257 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1258 psdir=$ac_optarg ;;
1260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1261 | -silent | --silent | --silen | --sile | --sil)
1262 silent=yes ;;
1264 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1265 ac_prev=sbindir ;;
1266 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1267 | --sbi=* | --sb=*)
1268 sbindir=$ac_optarg ;;
1270 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1271 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1272 | --sharedst | --shareds | --shared | --share | --shar \
1273 | --sha | --sh)
1274 ac_prev=sharedstatedir ;;
1275 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1276 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1277 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1278 | --sha=* | --sh=*)
1279 sharedstatedir=$ac_optarg ;;
1281 -site | --site | --sit)
1282 ac_prev=site ;;
1283 -site=* | --site=* | --sit=*)
1284 site=$ac_optarg ;;
1286 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1287 ac_prev=srcdir ;;
1288 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1289 srcdir=$ac_optarg ;;
1291 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1292 | --syscon | --sysco | --sysc | --sys | --sy)
1293 ac_prev=sysconfdir ;;
1294 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1295 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1296 sysconfdir=$ac_optarg ;;
1298 -target | --target | --targe | --targ | --tar | --ta | --t)
1299 ac_prev=target_alias ;;
1300 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1301 target_alias=$ac_optarg ;;
1303 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1304 verbose=yes ;;
1306 -version | --version | --versio | --versi | --vers | -V)
1307 ac_init_version=: ;;
1309 -with-* | --with-*)
1310 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1311 # Reject names that are not valid shell variable names.
1312 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1313 as_fn_error "invalid package name: $ac_useropt"
1314 ac_useropt_orig=$ac_useropt
1315 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1316 case $ac_user_opts in
1318 "with_$ac_useropt"
1319 "*) ;;
1320 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1321 ac_unrecognized_sep=', ';;
1322 esac
1323 eval with_$ac_useropt=\$ac_optarg ;;
1325 -without-* | --without-*)
1326 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1327 # Reject names that are not valid shell variable names.
1328 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1329 as_fn_error "invalid package name: $ac_useropt"
1330 ac_useropt_orig=$ac_useropt
1331 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1332 case $ac_user_opts in
1334 "with_$ac_useropt"
1335 "*) ;;
1336 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1337 ac_unrecognized_sep=', ';;
1338 esac
1339 eval with_$ac_useropt=no ;;
1341 --x)
1342 # Obsolete; use --with-x.
1343 with_x=yes ;;
1345 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1346 | --x-incl | --x-inc | --x-in | --x-i)
1347 ac_prev=x_includes ;;
1348 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1349 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1350 x_includes=$ac_optarg ;;
1352 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1353 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1354 ac_prev=x_libraries ;;
1355 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1356 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1357 x_libraries=$ac_optarg ;;
1359 -*) as_fn_error "unrecognized option: \`$ac_option'
1360 Try \`$0 --help' for more information."
1363 *=*)
1364 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1365 # Reject names that are not valid shell variable names.
1366 case $ac_envvar in #(
1367 '' | [0-9]* | *[!_$as_cr_alnum]* )
1368 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1369 esac
1370 eval $ac_envvar=\$ac_optarg
1371 export $ac_envvar ;;
1374 # FIXME: should be removed in autoconf 3.0.
1375 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1376 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1377 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1378 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1381 esac
1382 done
1384 if test -n "$ac_prev"; then
1385 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1386 as_fn_error "missing argument to $ac_option"
1389 if test -n "$ac_unrecognized_opts"; then
1390 case $enable_option_checking in
1391 no) ;;
1392 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1393 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1394 esac
1397 # Check all directory arguments for consistency.
1398 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1399 datadir sysconfdir sharedstatedir localstatedir includedir \
1400 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1401 libdir localedir mandir
1403 eval ac_val=\$$ac_var
1404 # Remove trailing slashes.
1405 case $ac_val in
1406 */ )
1407 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1408 eval $ac_var=\$ac_val;;
1409 esac
1410 # Be sure to have absolute directory names.
1411 case $ac_val in
1412 [\\/$]* | ?:[\\/]* ) continue;;
1413 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1414 esac
1415 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1416 done
1418 # There might be people who depend on the old broken behavior: `$host'
1419 # used to hold the argument of --host etc.
1420 # FIXME: To remove some day.
1421 build=$build_alias
1422 host=$host_alias
1423 target=$target_alias
1425 # FIXME: To remove some day.
1426 if test "x$host_alias" != x; then
1427 if test "x$build_alias" = x; then
1428 cross_compiling=maybe
1429 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1430 If a cross compiler is detected then cross compile mode will be used." >&2
1431 elif test "x$build_alias" != "x$host_alias"; then
1432 cross_compiling=yes
1436 ac_tool_prefix=
1437 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1439 test "$silent" = yes && exec 6>/dev/null
1442 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1443 ac_ls_di=`ls -di .` &&
1444 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1445 as_fn_error "working directory cannot be determined"
1446 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1447 as_fn_error "pwd does not report name of working directory"
1450 # Find the source files, if location was not specified.
1451 if test -z "$srcdir"; then
1452 ac_srcdir_defaulted=yes
1453 # Try the directory containing this script, then the parent directory.
1454 ac_confdir=`$as_dirname -- "$as_myself" ||
1455 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1456 X"$as_myself" : 'X\(//\)[^/]' \| \
1457 X"$as_myself" : 'X\(//\)$' \| \
1458 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1459 $as_echo X"$as_myself" |
1460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1461 s//\1/
1464 /^X\(\/\/\)[^/].*/{
1465 s//\1/
1468 /^X\(\/\/\)$/{
1469 s//\1/
1472 /^X\(\/\).*/{
1473 s//\1/
1476 s/.*/./; q'`
1477 srcdir=$ac_confdir
1478 if test ! -r "$srcdir/$ac_unique_file"; then
1479 srcdir=..
1481 else
1482 ac_srcdir_defaulted=no
1484 if test ! -r "$srcdir/$ac_unique_file"; then
1485 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1486 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1488 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1489 ac_abs_confdir=`(
1490 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1491 pwd)`
1492 # When building in place, set srcdir=.
1493 if test "$ac_abs_confdir" = "$ac_pwd"; then
1494 srcdir=.
1496 # Remove unnecessary trailing slashes from srcdir.
1497 # Double slashes in file names in object file debugging info
1498 # mess up M-x gdb in Emacs.
1499 case $srcdir in
1500 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1501 esac
1502 for ac_var in $ac_precious_vars; do
1503 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1504 eval ac_env_${ac_var}_value=\$${ac_var}
1505 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1506 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1507 done
1510 # Report the --help message.
1512 if test "$ac_init_help" = "long"; then
1513 # Omit some internal or obsolete options to make the list less imposing.
1514 # This message is too long to be a string in the A/UX 3.1 sh.
1515 cat <<_ACEOF
1516 \`configure' configures libjava version-unused to adapt to many kinds of systems.
1518 Usage: $0 [OPTION]... [VAR=VALUE]...
1520 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1521 VAR=VALUE. See below for descriptions of some of the useful variables.
1523 Defaults for the options are specified in brackets.
1525 Configuration:
1526 -h, --help display this help and exit
1527 --help=short display options specific to this package
1528 --help=recursive display the short help of all the included packages
1529 -V, --version display version information and exit
1530 -q, --quiet, --silent do not print \`checking...' messages
1531 --cache-file=FILE cache test results in FILE [disabled]
1532 -C, --config-cache alias for \`--cache-file=config.cache'
1533 -n, --no-create do not create output files
1534 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1536 Installation directories:
1537 --prefix=PREFIX install architecture-independent files in PREFIX
1538 [$ac_default_prefix]
1539 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1540 [PREFIX]
1542 By default, \`make install' will install all the files in
1543 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1544 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1545 for instance \`--prefix=\$HOME'.
1547 For better control, use the options below.
1549 Fine tuning of the installation directories:
1550 --bindir=DIR user executables [EPREFIX/bin]
1551 --sbindir=DIR system admin executables [EPREFIX/sbin]
1552 --libexecdir=DIR program executables [EPREFIX/libexec]
1553 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1554 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1555 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1556 --libdir=DIR object code libraries [EPREFIX/lib]
1557 --includedir=DIR C header files [PREFIX/include]
1558 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1559 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1560 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1561 --infodir=DIR info documentation [DATAROOTDIR/info]
1562 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1563 --mandir=DIR man documentation [DATAROOTDIR/man]
1564 --docdir=DIR documentation root [DATAROOTDIR/doc/libjava]
1565 --htmldir=DIR html documentation [DOCDIR]
1566 --dvidir=DIR dvi documentation [DOCDIR]
1567 --pdfdir=DIR pdf documentation [DOCDIR]
1568 --psdir=DIR ps documentation [DOCDIR]
1569 _ACEOF
1571 cat <<\_ACEOF
1573 Program names:
1574 --program-prefix=PREFIX prepend PREFIX to installed program names
1575 --program-suffix=SUFFIX append SUFFIX to installed program names
1576 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1578 X features:
1579 --x-includes=DIR X include files are in DIR
1580 --x-libraries=DIR X library files are in DIR
1582 System types:
1583 --build=BUILD configure for building on BUILD [guessed]
1584 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1585 --target=TARGET configure for building compilers for TARGET [HOST]
1586 _ACEOF
1589 if test -n "$ac_init_help"; then
1590 case $ac_init_help in
1591 short | recursive ) echo "Configuration of libjava version-unused:";;
1592 esac
1593 cat <<\_ACEOF
1595 Optional Features:
1596 --disable-option-checking ignore unrecognized --enable/--with options
1597 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1598 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1599 --enable-multilib build many library versions (default)
1600 --enable-version-specific-runtime-libs
1601 specify that runtime libraries should be installed
1602 in a compiler-specific directory
1603 --enable-browser-plugin build gcjwebplugin web browser plugin
1604 --enable-gconf-peer compile GConf native peers for util.preferences
1605 --disable-gjdoc compile GJDoc (disabled by --disable-gjdoc)
1606 default=yes
1607 --enable-java-maintainer-mode
1608 allow rebuilding of .class and .h files
1609 --disable-dependency-tracking speeds up one-time build
1610 --enable-dependency-tracking do not reject slow dependency extractors
1611 --enable-maintainer-mode enable make rules and dependencies not useful
1612 (and sometimes confusing) to the casual installer
1613 --enable-libgcj-sublibs build libgcj as many sub-libraries
1614 --enable-libgcj-debug enable runtime debugging code
1615 --enable-java-awt list of AWT peer implementations to be built
1616 --enable-shared[=PKGS] build shared libraries [default=yes]
1617 --enable-static[=PKGS] build static libraries [default=yes]
1618 --enable-fast-install[=PKGS]
1619 optimize for fast installation [default=yes]
1620 --disable-libtool-lock avoid locking (might break parallel builds)
1621 --disable-getenv-properties
1622 don't set system properties from GCJ_PROPERTIES
1623 --enable-hash-synchronization
1624 use global hash table for monitor locks
1625 --enable-libgcj-bc enable(default) or disable BC ABI for portions of
1626 libgcj
1627 --enable-reduced-reflection
1628 enable or disable(default) -freduced-reflection when
1629 building portions of libgcj
1630 --enable-gc-debug include full support for pointer backtracing etc.
1631 --enable-interpreter enable interpreter
1632 --enable-sjlj-exceptions
1633 force use of builtin_setjmp for exceptions
1634 --disable-java-net disable java.net
1635 --disable-jvmpi disable JVMPI support
1636 --enable-java-gc=TYPE choose garbage collector (default is boehm)
1637 --disable-rpath do not hardcode runtime library paths
1638 --enable-tls Use thread-local storage [default=yes]
1639 --enable-aot-compile-rpm
1640 enable installation of aot-compile-rpm [default=no]
1641 --enable-java-home create a standard JDK-style directory layout in the
1642 install tree [default=no]
1644 Optional Packages:
1645 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1646 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1647 --with-build-libsubdir=DIR Directory where to find libraries for build system
1648 --with-target-subdir=SUBDIR
1649 configure in a subdirectory
1650 --with-cross-host=HOST configure with a cross compiler from HOST
1651 --with-newlib configure with newlib
1652 --with-antlr-jar=file Use ANTLR from the specified jar file
1653 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
1654 --with-pic try to use only PIC/non-PIC objects [default=use
1655 both]
1656 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1657 --with-ecj-jar=FILE use preinstalled ecj jar
1658 --with-java-home=DIRECTORY
1659 value of java.home system property
1660 --with-win32-nlsapi=ansi or unicows or unicode
1661 native MinGW libgcj Win32 OS API (default is ansi)
1662 --without-libffi don't use libffi
1663 --with-ecos enable runtime eCos target support
1664 --with-system-zlib use installed libz
1665 --with-x use the X Window System
1666 --with-gnu-ld assume the C compiler uses GNU ld default=no
1667 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1668 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1669 --with-system-libunwind use installed libunwind
1670 --with-python-dir the location to install Python modules. This path
1671 should NOT include the prefix.
1672 --with-gcc-suffix the GCC tool suffix (defaults to empty string)
1673 --with-arch-directory the arch directory under jre/lib (defaults to
1674 auto-detect)
1675 --with-os-directory the os directory under include (defaults to
1676 auto-detect)
1677 --with-origin-name the JPackage origin name of this package (default is
1678 gcj${gcc_suffix}
1679 --with-arch-suffix the arch directory suffix (default is the empty
1680 string
1681 --with-jvm-root-dir where to install SDK (default is ${prefix}/lib/jvm)
1682 --with-jvm-jar-dir where to install jars (default is
1683 ${prefix}/lib/jvm-exports)
1685 Some influential environment variables:
1686 CC C compiler command
1687 CFLAGS C compiler flags
1688 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1689 nonstandard directory <lib dir>
1690 LIBS libraries to pass to the linker, e.g. -l<library>
1691 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1692 you have headers in a nonstandard directory <include dir>
1693 CXX C++ compiler command
1694 CXXFLAGS C++ compiler flags
1695 CPP C preprocessor
1696 CXXCPP C++ preprocessor
1697 XMKMF Path to xmkmf, Makefile generator for X Window System
1699 Use these variables to override the choices made by `configure' or to help
1700 it to find libraries and programs with nonstandard names/locations.
1702 Report bugs to the package provider.
1703 _ACEOF
1704 ac_status=$?
1707 if test "$ac_init_help" = "recursive"; then
1708 # If there are subdirs, report their specific --help.
1709 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1710 test -d "$ac_dir" ||
1711 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1712 continue
1713 ac_builddir=.
1715 case "$ac_dir" in
1716 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1718 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1719 # A ".." for each directory in $ac_dir_suffix.
1720 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1721 case $ac_top_builddir_sub in
1722 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1723 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1724 esac ;;
1725 esac
1726 ac_abs_top_builddir=$ac_pwd
1727 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1728 # for backward compatibility:
1729 ac_top_builddir=$ac_top_build_prefix
1731 case $srcdir in
1732 .) # We are building in place.
1733 ac_srcdir=.
1734 ac_top_srcdir=$ac_top_builddir_sub
1735 ac_abs_top_srcdir=$ac_pwd ;;
1736 [\\/]* | ?:[\\/]* ) # Absolute name.
1737 ac_srcdir=$srcdir$ac_dir_suffix;
1738 ac_top_srcdir=$srcdir
1739 ac_abs_top_srcdir=$srcdir ;;
1740 *) # Relative name.
1741 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1742 ac_top_srcdir=$ac_top_build_prefix$srcdir
1743 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1744 esac
1745 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1747 cd "$ac_dir" || { ac_status=$?; continue; }
1748 # Check for guested configure.
1749 if test -f "$ac_srcdir/configure.gnu"; then
1750 echo &&
1751 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1752 elif test -f "$ac_srcdir/configure"; then
1753 echo &&
1754 $SHELL "$ac_srcdir/configure" --help=recursive
1755 else
1756 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1757 fi || ac_status=$?
1758 cd "$ac_pwd" || { ac_status=$?; break; }
1759 done
1762 test -n "$ac_init_help" && exit $ac_status
1763 if $ac_init_version; then
1764 cat <<\_ACEOF
1765 libjava configure version-unused
1766 generated by GNU Autoconf 2.64
1768 Copyright (C) 2009 Free Software Foundation, Inc.
1769 This configure script is free software; the Free Software Foundation
1770 gives unlimited permission to copy, distribute and modify it.
1771 _ACEOF
1772 exit
1775 ## ------------------------ ##
1776 ## Autoconf initialization. ##
1777 ## ------------------------ ##
1779 # ac_fn_c_try_compile LINENO
1780 # --------------------------
1781 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1782 ac_fn_c_try_compile ()
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 rm -f conftest.$ac_objext
1786 if { { ac_try="$ac_compile"
1787 case "(($ac_try" in
1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1790 esac
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793 (eval "$ac_compile") 2>conftest.err
1794 ac_status=$?
1795 if test -s conftest.err; then
1796 grep -v '^ *+' conftest.err >conftest.er1
1797 cat conftest.er1 >&5
1798 mv -f conftest.er1 conftest.err
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } && {
1802 test -z "$ac_c_werror_flag" ||
1803 test ! -s conftest.err
1804 } && test -s conftest.$ac_objext; then :
1805 ac_retval=0
1806 else
1807 $as_echo "$as_me: failed program was:" >&5
1808 sed 's/^/| /' conftest.$ac_ext >&5
1810 ac_retval=1
1812 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1813 return $ac_retval
1815 } # ac_fn_c_try_compile
1817 # ac_fn_cxx_try_compile LINENO
1818 # ----------------------------
1819 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1820 ac_fn_cxx_try_compile ()
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 rm -f conftest.$ac_objext
1824 if { { ac_try="$ac_compile"
1825 case "(($ac_try" in
1826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1827 *) ac_try_echo=$ac_try;;
1828 esac
1829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830 $as_echo "$ac_try_echo"; } >&5
1831 (eval "$ac_compile") 2>conftest.err
1832 ac_status=$?
1833 if test -s conftest.err; then
1834 grep -v '^ *+' conftest.err >conftest.er1
1835 cat conftest.er1 >&5
1836 mv -f conftest.er1 conftest.err
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; } && {
1840 test -z "$ac_cxx_werror_flag" ||
1841 test ! -s conftest.err
1842 } && test -s conftest.$ac_objext; then :
1843 ac_retval=0
1844 else
1845 $as_echo "$as_me: failed program was:" >&5
1846 sed 's/^/| /' conftest.$ac_ext >&5
1848 ac_retval=1
1850 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1851 return $ac_retval
1853 } # ac_fn_cxx_try_compile
1855 # ac_fn_c_try_link LINENO
1856 # -----------------------
1857 # Try to link conftest.$ac_ext, and return whether this succeeded.
1858 ac_fn_c_try_link ()
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 rm -f conftest.$ac_objext conftest$ac_exeext
1862 if { { ac_try="$ac_link"
1863 case "(($ac_try" in
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1866 esac
1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 $as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_link") 2>conftest.err
1870 ac_status=$?
1871 if test -s conftest.err; then
1872 grep -v '^ *+' conftest.err >conftest.er1
1873 cat conftest.er1 >&5
1874 mv -f conftest.er1 conftest.err
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; } && {
1878 test -z "$ac_c_werror_flag" ||
1879 test ! -s conftest.err
1880 } && test -s conftest$ac_exeext && {
1881 test "$cross_compiling" = yes ||
1882 $as_test_x conftest$ac_exeext
1883 }; then :
1884 ac_retval=0
1885 else
1886 $as_echo "$as_me: failed program was:" >&5
1887 sed 's/^/| /' conftest.$ac_ext >&5
1889 ac_retval=1
1891 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1892 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1893 # interfere with the next link command; also delete a directory that is
1894 # left behind by Apple's compiler. We do this before executing the actions.
1895 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1896 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1897 return $ac_retval
1899 } # ac_fn_c_try_link
1901 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1902 # -------------------------------------------------------
1903 # Tests whether HEADER exists and can be compiled using the include files in
1904 # INCLUDES, setting the cache variable VAR accordingly.
1905 ac_fn_c_check_header_compile ()
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1909 $as_echo_n "checking for $2... " >&6; }
1910 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1911 $as_echo_n "(cached) " >&6
1912 else
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h. */
1916 #include <$2>
1917 _ACEOF
1918 if ac_fn_c_try_compile "$LINENO"; then :
1919 eval "$3=yes"
1920 else
1921 eval "$3=no"
1923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1925 eval ac_res=\$$3
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 $as_echo "$ac_res" >&6; }
1928 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1930 } # ac_fn_c_check_header_compile
1932 # ac_fn_c_try_cpp LINENO
1933 # ----------------------
1934 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1935 ac_fn_c_try_cpp ()
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 if { { ac_try="$ac_cpp conftest.$ac_ext"
1939 case "(($ac_try" in
1940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1941 *) ac_try_echo=$ac_try;;
1942 esac
1943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1944 $as_echo "$ac_try_echo"; } >&5
1945 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1946 ac_status=$?
1947 if test -s conftest.err; then
1948 grep -v '^ *+' conftest.err >conftest.er1
1949 cat conftest.er1 >&5
1950 mv -f conftest.er1 conftest.err
1952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1953 test $ac_status = 0; } >/dev/null && {
1954 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1955 test ! -s conftest.err
1956 }; then :
1957 ac_retval=0
1958 else
1959 $as_echo "$as_me: failed program was:" >&5
1960 sed 's/^/| /' conftest.$ac_ext >&5
1962 ac_retval=1
1964 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1965 return $ac_retval
1967 } # ac_fn_c_try_cpp
1969 # ac_fn_c_try_run LINENO
1970 # ----------------------
1971 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1972 # that executables *can* be run.
1973 ac_fn_c_try_run ()
1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976 if { { ac_try="$ac_link"
1977 case "(($ac_try" in
1978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1979 *) ac_try_echo=$ac_try;;
1980 esac
1981 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1982 $as_echo "$ac_try_echo"; } >&5
1983 (eval "$ac_link") 2>&5
1984 ac_status=$?
1985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1986 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1987 { { case "(($ac_try" in
1988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1989 *) ac_try_echo=$ac_try;;
1990 esac
1991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1992 $as_echo "$ac_try_echo"; } >&5
1993 (eval "$ac_try") 2>&5
1994 ac_status=$?
1995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1996 test $ac_status = 0; }; }; then :
1997 ac_retval=0
1998 else
1999 $as_echo "$as_me: program exited with status $ac_status" >&5
2000 $as_echo "$as_me: failed program was:" >&5
2001 sed 's/^/| /' conftest.$ac_ext >&5
2003 ac_retval=$ac_status
2005 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2006 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2007 return $ac_retval
2009 } # ac_fn_c_try_run
2011 # ac_fn_c_check_func LINENO FUNC VAR
2012 # ----------------------------------
2013 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2014 ac_fn_c_check_func ()
2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2018 $as_echo_n "checking for $2... " >&6; }
2019 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2020 $as_echo_n "(cached) " >&6
2021 else
2022 if test x$gcc_no_link = xyes; then
2023 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2027 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2029 #define $2 innocuous_$2
2031 /* System header to define __stub macros and hopefully few prototypes,
2032 which can conflict with char $2 (); below.
2033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2034 <limits.h> exists even on freestanding compilers. */
2036 #ifdef __STDC__
2037 # include <limits.h>
2038 #else
2039 # include <assert.h>
2040 #endif
2042 #undef $2
2044 /* Override any GCC internal prototype to avoid an error.
2045 Use char because int might match the return type of a GCC
2046 builtin and then its argument prototype would still apply. */
2047 #ifdef __cplusplus
2048 extern "C"
2049 #endif
2050 char $2 ();
2051 /* The GNU C library defines this for functions which it implements
2052 to always fail with ENOSYS. Some functions are actually named
2053 something starting with __ and the normal name is an alias. */
2054 #if defined __stub_$2 || defined __stub___$2
2055 choke me
2056 #endif
2059 main ()
2061 return $2 ();
2063 return 0;
2065 _ACEOF
2066 if ac_fn_c_try_link "$LINENO"; then :
2067 eval "$3=yes"
2068 else
2069 eval "$3=no"
2071 rm -f core conftest.err conftest.$ac_objext \
2072 conftest$ac_exeext conftest.$ac_ext
2074 eval ac_res=\$$3
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076 $as_echo "$ac_res" >&6; }
2077 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2079 } # ac_fn_c_check_func
2081 # ac_fn_cxx_try_cpp LINENO
2082 # ------------------------
2083 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2084 ac_fn_cxx_try_cpp ()
2086 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2087 if { { ac_try="$ac_cpp conftest.$ac_ext"
2088 case "(($ac_try" in
2089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2090 *) ac_try_echo=$ac_try;;
2091 esac
2092 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2093 $as_echo "$ac_try_echo"; } >&5
2094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2095 ac_status=$?
2096 if test -s conftest.err; then
2097 grep -v '^ *+' conftest.err >conftest.er1
2098 cat conftest.er1 >&5
2099 mv -f conftest.er1 conftest.err
2101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2102 test $ac_status = 0; } >/dev/null && {
2103 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2104 test ! -s conftest.err
2105 }; then :
2106 ac_retval=0
2107 else
2108 $as_echo "$as_me: failed program was:" >&5
2109 sed 's/^/| /' conftest.$ac_ext >&5
2111 ac_retval=1
2113 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2114 return $ac_retval
2116 } # ac_fn_cxx_try_cpp
2118 # ac_fn_cxx_try_link LINENO
2119 # -------------------------
2120 # Try to link conftest.$ac_ext, and return whether this succeeded.
2121 ac_fn_cxx_try_link ()
2123 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2124 rm -f conftest.$ac_objext conftest$ac_exeext
2125 if { { ac_try="$ac_link"
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_link") 2>conftest.err
2133 ac_status=$?
2134 if test -s conftest.err; then
2135 grep -v '^ *+' conftest.err >conftest.er1
2136 cat conftest.er1 >&5
2137 mv -f conftest.er1 conftest.err
2139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2140 test $ac_status = 0; } && {
2141 test -z "$ac_cxx_werror_flag" ||
2142 test ! -s conftest.err
2143 } && test -s conftest$ac_exeext && {
2144 test "$cross_compiling" = yes ||
2145 $as_test_x conftest$ac_exeext
2146 }; then :
2147 ac_retval=0
2148 else
2149 $as_echo "$as_me: failed program was:" >&5
2150 sed 's/^/| /' conftest.$ac_ext >&5
2152 ac_retval=1
2154 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2155 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2156 # interfere with the next link command; also delete a directory that is
2157 # left behind by Apple's compiler. We do this before executing the actions.
2158 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2159 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2160 return $ac_retval
2162 } # ac_fn_cxx_try_link
2164 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2165 # -------------------------------------------------------
2166 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2167 # the include files in INCLUDES and setting the cache variable VAR
2168 # accordingly.
2169 ac_fn_c_check_header_mongrel ()
2171 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2172 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2174 $as_echo_n "checking for $2... " >&6; }
2175 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2176 $as_echo_n "(cached) " >&6
2178 eval ac_res=\$$3
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2180 $as_echo "$ac_res" >&6; }
2181 else
2182 # Is the header compilable?
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2184 $as_echo_n "checking $2 usability... " >&6; }
2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h. */
2188 #include <$2>
2189 _ACEOF
2190 if ac_fn_c_try_compile "$LINENO"; then :
2191 ac_header_compiler=yes
2192 else
2193 ac_header_compiler=no
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2197 $as_echo "$ac_header_compiler" >&6; }
2199 # Is the header present?
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2201 $as_echo_n "checking $2 presence... " >&6; }
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2204 #include <$2>
2205 _ACEOF
2206 if ac_fn_c_try_cpp "$LINENO"; then :
2207 ac_header_preproc=yes
2208 else
2209 ac_header_preproc=no
2211 rm -f conftest.err conftest.$ac_ext
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2213 $as_echo "$ac_header_preproc" >&6; }
2215 # So? What about this header?
2216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2217 yes:no: )
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2219 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2221 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2223 no:yes:* )
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2225 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2227 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2229 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2231 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2233 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2235 esac
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2237 $as_echo_n "checking for $2... " >&6; }
2238 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2239 $as_echo_n "(cached) " >&6
2240 else
2241 eval "$3=\$ac_header_compiler"
2243 eval ac_res=\$$3
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2245 $as_echo "$ac_res" >&6; }
2247 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2249 } # ac_fn_c_check_header_mongrel
2251 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2252 # ----------------------------------------------------
2253 # Tries to find if the field MEMBER exists in type AGGR, after including
2254 # INCLUDES, setting cache variable VAR accordingly.
2255 ac_fn_c_check_member ()
2257 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2259 $as_echo_n "checking for $2.$3... " >&6; }
2260 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2261 $as_echo_n "(cached) " >&6
2262 else
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2267 main ()
2269 static $2 ac_aggr;
2270 if (ac_aggr.$3)
2271 return 0;
2273 return 0;
2275 _ACEOF
2276 if ac_fn_c_try_compile "$LINENO"; then :
2277 eval "$4=yes"
2278 else
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h. */
2283 main ()
2285 static $2 ac_aggr;
2286 if (sizeof ac_aggr.$3)
2287 return 0;
2289 return 0;
2291 _ACEOF
2292 if ac_fn_c_try_compile "$LINENO"; then :
2293 eval "$4=yes"
2294 else
2295 eval "$4=no"
2297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301 eval ac_res=\$$4
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2303 $as_echo "$ac_res" >&6; }
2304 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2306 } # ac_fn_c_check_member
2308 # ac_fn_c_check_decl LINENO SYMBOL VAR
2309 # ------------------------------------
2310 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2311 ac_fn_c_check_decl ()
2313 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2315 $as_echo_n "checking whether $2 is declared... " >&6; }
2316 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2317 $as_echo_n "(cached) " >&6
2318 else
2319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2320 /* end confdefs.h. */
2323 main ()
2325 #ifndef $2
2326 (void) $2;
2327 #endif
2330 return 0;
2332 _ACEOF
2333 if ac_fn_c_try_compile "$LINENO"; then :
2334 eval "$3=yes"
2335 else
2336 eval "$3=no"
2338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2340 eval ac_res=\$$3
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2342 $as_echo "$ac_res" >&6; }
2343 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2345 } # ac_fn_c_check_decl
2347 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2348 # --------------------------------------------
2349 # Tries to find the compile-time value of EXPR in a program that includes
2350 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2351 # computed
2352 ac_fn_c_compute_int ()
2354 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2355 if test "$cross_compiling" = yes; then
2356 # Depending upon the size, compute the lo and hi bounds.
2357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2358 /* end confdefs.h. */
2361 main ()
2363 static int test_array [1 - 2 * !(($2) >= 0)];
2364 test_array [0] = 0
2367 return 0;
2369 _ACEOF
2370 if ac_fn_c_try_compile "$LINENO"; then :
2371 ac_lo=0 ac_mid=0
2372 while :; do
2373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2374 /* end confdefs.h. */
2377 main ()
2379 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2380 test_array [0] = 0
2383 return 0;
2385 _ACEOF
2386 if ac_fn_c_try_compile "$LINENO"; then :
2387 ac_hi=$ac_mid; break
2388 else
2389 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2390 if test $ac_lo -le $ac_mid; then
2391 ac_lo= ac_hi=
2392 break
2394 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2397 done
2398 else
2399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2400 /* end confdefs.h. */
2403 main ()
2405 static int test_array [1 - 2 * !(($2) < 0)];
2406 test_array [0] = 0
2409 return 0;
2411 _ACEOF
2412 if ac_fn_c_try_compile "$LINENO"; then :
2413 ac_hi=-1 ac_mid=-1
2414 while :; do
2415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2416 /* end confdefs.h. */
2419 main ()
2421 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2422 test_array [0] = 0
2425 return 0;
2427 _ACEOF
2428 if ac_fn_c_try_compile "$LINENO"; then :
2429 ac_lo=$ac_mid; break
2430 else
2431 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2432 if test $ac_mid -le $ac_hi; then
2433 ac_lo= ac_hi=
2434 break
2436 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2439 done
2440 else
2441 ac_lo= ac_hi=
2443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2446 # Binary search between lo and hi bounds.
2447 while test "x$ac_lo" != "x$ac_hi"; do
2448 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2450 /* end confdefs.h. */
2453 main ()
2455 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2456 test_array [0] = 0
2459 return 0;
2461 _ACEOF
2462 if ac_fn_c_try_compile "$LINENO"; then :
2463 ac_hi=$ac_mid
2464 else
2465 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2468 done
2469 case $ac_lo in #((
2470 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2471 '') ac_retval=1 ;;
2472 esac
2473 else
2474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2475 /* end confdefs.h. */
2477 static long int longval () { return $2; }
2478 static unsigned long int ulongval () { return $2; }
2479 #include <stdio.h>
2480 #include <stdlib.h>
2482 main ()
2485 FILE *f = fopen ("conftest.val", "w");
2486 if (! f)
2487 return 1;
2488 if (($2) < 0)
2490 long int i = longval ();
2491 if (i != ($2))
2492 return 1;
2493 fprintf (f, "%ld", i);
2495 else
2497 unsigned long int i = ulongval ();
2498 if (i != ($2))
2499 return 1;
2500 fprintf (f, "%lu", i);
2502 /* Do not output a trailing newline, as this causes \r\n confusion
2503 on some platforms. */
2504 return ferror (f) || fclose (f) != 0;
2507 return 0;
2509 _ACEOF
2510 if ac_fn_c_try_run "$LINENO"; then :
2511 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2512 else
2513 ac_retval=1
2515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2516 conftest.$ac_objext conftest.beam conftest.$ac_ext
2517 rm -f conftest.val
2520 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2521 return $ac_retval
2523 } # ac_fn_c_compute_int
2525 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2526 # -------------------------------------------
2527 # Tests whether TYPE exists after having included INCLUDES, setting cache
2528 # variable VAR accordingly.
2529 ac_fn_c_check_type ()
2531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2533 $as_echo_n "checking for $2... " >&6; }
2534 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2535 $as_echo_n "(cached) " >&6
2536 else
2537 eval "$3=no"
2538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h. */
2542 main ()
2544 if (sizeof ($2))
2545 return 0;
2547 return 0;
2549 _ACEOF
2550 if ac_fn_c_try_compile "$LINENO"; then :
2551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2552 /* end confdefs.h. */
2555 main ()
2557 if (sizeof (($2)))
2558 return 0;
2560 return 0;
2562 _ACEOF
2563 if ac_fn_c_try_compile "$LINENO"; then :
2565 else
2566 eval "$3=yes"
2568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2572 eval ac_res=\$$3
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2574 $as_echo "$ac_res" >&6; }
2575 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2577 } # ac_fn_c_check_type
2578 cat >config.log <<_ACEOF
2579 This file contains any messages produced by compilers while
2580 running configure, to aid debugging if configure makes a mistake.
2582 It was created by libjava $as_me version-unused, which was
2583 generated by GNU Autoconf 2.64. Invocation command line was
2585 $ $0 $@
2587 _ACEOF
2588 exec 5>>config.log
2590 cat <<_ASUNAME
2591 ## --------- ##
2592 ## Platform. ##
2593 ## --------- ##
2595 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2596 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2597 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2598 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2599 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2601 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2602 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2604 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2605 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2606 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2607 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2608 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2609 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2610 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2612 _ASUNAME
2614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 for as_dir in $PATH
2617 IFS=$as_save_IFS
2618 test -z "$as_dir" && as_dir=.
2619 $as_echo "PATH: $as_dir"
2620 done
2621 IFS=$as_save_IFS
2623 } >&5
2625 cat >&5 <<_ACEOF
2628 ## ----------- ##
2629 ## Core tests. ##
2630 ## ----------- ##
2632 _ACEOF
2635 # Keep a trace of the command line.
2636 # Strip out --no-create and --no-recursion so they do not pile up.
2637 # Strip out --silent because we don't want to record it for future runs.
2638 # Also quote any args containing shell meta-characters.
2639 # Make two passes to allow for proper duplicate-argument suppression.
2640 ac_configure_args=
2641 ac_configure_args0=
2642 ac_configure_args1=
2643 ac_must_keep_next=false
2644 for ac_pass in 1 2
2646 for ac_arg
2648 case $ac_arg in
2649 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2650 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2651 | -silent | --silent | --silen | --sile | --sil)
2652 continue ;;
2653 *\'*)
2654 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2655 esac
2656 case $ac_pass in
2657 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2659 as_fn_append ac_configure_args1 " '$ac_arg'"
2660 if test $ac_must_keep_next = true; then
2661 ac_must_keep_next=false # Got value, back to normal.
2662 else
2663 case $ac_arg in
2664 *=* | --config-cache | -C | -disable-* | --disable-* \
2665 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2666 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2667 | -with-* | --with-* | -without-* | --without-* | --x)
2668 case "$ac_configure_args0 " in
2669 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2670 esac
2672 -* ) ac_must_keep_next=true ;;
2673 esac
2675 as_fn_append ac_configure_args " '$ac_arg'"
2677 esac
2678 done
2679 done
2680 { ac_configure_args0=; unset ac_configure_args0;}
2681 { ac_configure_args1=; unset ac_configure_args1;}
2683 # When interrupted or exit'd, cleanup temporary files, and complete
2684 # config.log. We remove comments because anyway the quotes in there
2685 # would cause problems or look ugly.
2686 # WARNING: Use '\'' to represent an apostrophe within the trap.
2687 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2688 trap 'exit_status=$?
2689 # Save into config.log some information that might help in debugging.
2691 echo
2693 cat <<\_ASBOX
2694 ## ---------------- ##
2695 ## Cache variables. ##
2696 ## ---------------- ##
2697 _ASBOX
2698 echo
2699 # The following way of writing the cache mishandles newlines in values,
2701 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2702 eval ac_val=\$$ac_var
2703 case $ac_val in #(
2704 *${as_nl}*)
2705 case $ac_var in #(
2706 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2707 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2708 esac
2709 case $ac_var in #(
2710 _ | IFS | as_nl) ;; #(
2711 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2712 *) { eval $ac_var=; unset $ac_var;} ;;
2713 esac ;;
2714 esac
2715 done
2716 (set) 2>&1 |
2717 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2718 *${as_nl}ac_space=\ *)
2719 sed -n \
2720 "s/'\''/'\''\\\\'\'''\''/g;
2721 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2722 ;; #(
2724 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2726 esac |
2727 sort
2729 echo
2731 cat <<\_ASBOX
2732 ## ----------------- ##
2733 ## Output variables. ##
2734 ## ----------------- ##
2735 _ASBOX
2736 echo
2737 for ac_var in $ac_subst_vars
2739 eval ac_val=\$$ac_var
2740 case $ac_val in
2741 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2742 esac
2743 $as_echo "$ac_var='\''$ac_val'\''"
2744 done | sort
2745 echo
2747 if test -n "$ac_subst_files"; then
2748 cat <<\_ASBOX
2749 ## ------------------- ##
2750 ## File substitutions. ##
2751 ## ------------------- ##
2752 _ASBOX
2753 echo
2754 for ac_var in $ac_subst_files
2756 eval ac_val=\$$ac_var
2757 case $ac_val in
2758 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2759 esac
2760 $as_echo "$ac_var='\''$ac_val'\''"
2761 done | sort
2762 echo
2765 if test -s confdefs.h; then
2766 cat <<\_ASBOX
2767 ## ----------- ##
2768 ## confdefs.h. ##
2769 ## ----------- ##
2770 _ASBOX
2771 echo
2772 cat confdefs.h
2773 echo
2775 test "$ac_signal" != 0 &&
2776 $as_echo "$as_me: caught signal $ac_signal"
2777 $as_echo "$as_me: exit $exit_status"
2778 } >&5
2779 rm -f core *.core core.conftest.* &&
2780 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2781 exit $exit_status
2783 for ac_signal in 1 2 13 15; do
2784 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2785 done
2786 ac_signal=0
2788 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2789 rm -f -r conftest* confdefs.h
2791 $as_echo "/* confdefs.h */" > confdefs.h
2793 # Predefined preprocessor variables.
2795 cat >>confdefs.h <<_ACEOF
2796 #define PACKAGE_NAME "$PACKAGE_NAME"
2797 _ACEOF
2799 cat >>confdefs.h <<_ACEOF
2800 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2801 _ACEOF
2803 cat >>confdefs.h <<_ACEOF
2804 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2805 _ACEOF
2807 cat >>confdefs.h <<_ACEOF
2808 #define PACKAGE_STRING "$PACKAGE_STRING"
2809 _ACEOF
2811 cat >>confdefs.h <<_ACEOF
2812 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2813 _ACEOF
2815 cat >>confdefs.h <<_ACEOF
2816 #define PACKAGE_URL "$PACKAGE_URL"
2817 _ACEOF
2820 # Let the site file select an alternate cache file if it wants to.
2821 # Prefer an explicitly selected file to automatically selected ones.
2822 ac_site_file1=NONE
2823 ac_site_file2=NONE
2824 if test -n "$CONFIG_SITE"; then
2825 ac_site_file1=$CONFIG_SITE
2826 elif test "x$prefix" != xNONE; then
2827 ac_site_file1=$prefix/share/config.site
2828 ac_site_file2=$prefix/etc/config.site
2829 else
2830 ac_site_file1=$ac_default_prefix/share/config.site
2831 ac_site_file2=$ac_default_prefix/etc/config.site
2833 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2835 test "x$ac_site_file" = xNONE && continue
2836 if test -r "$ac_site_file"; then
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2838 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2839 sed 's/^/| /' "$ac_site_file" >&5
2840 . "$ac_site_file"
2842 done
2844 if test -r "$cache_file"; then
2845 # Some versions of bash will fail to source /dev/null (special
2846 # files actually), so we avoid doing that.
2847 if test -f "$cache_file"; then
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2849 $as_echo "$as_me: loading cache $cache_file" >&6;}
2850 case $cache_file in
2851 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2852 *) . "./$cache_file";;
2853 esac
2855 else
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2857 $as_echo "$as_me: creating cache $cache_file" >&6;}
2858 >$cache_file
2861 # Check that the precious variables saved in the cache have kept the same
2862 # value.
2863 ac_cache_corrupted=false
2864 for ac_var in $ac_precious_vars; do
2865 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2866 eval ac_new_set=\$ac_env_${ac_var}_set
2867 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2868 eval ac_new_val=\$ac_env_${ac_var}_value
2869 case $ac_old_set,$ac_new_set in
2870 set,)
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2872 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2873 ac_cache_corrupted=: ;;
2874 ,set)
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2876 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2877 ac_cache_corrupted=: ;;
2878 ,);;
2880 if test "x$ac_old_val" != "x$ac_new_val"; then
2881 # differences in whitespace do not lead to failure.
2882 ac_old_val_w=`echo x $ac_old_val`
2883 ac_new_val_w=`echo x $ac_new_val`
2884 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2886 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2887 ac_cache_corrupted=:
2888 else
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2890 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2891 eval $ac_var=\$ac_old_val
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2894 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2896 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2897 fi;;
2898 esac
2899 # Pass precious variables to config.status.
2900 if test "$ac_new_set" = set; then
2901 case $ac_new_val in
2902 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2903 *) ac_arg=$ac_var=$ac_new_val ;;
2904 esac
2905 case " $ac_configure_args " in
2906 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2907 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2908 esac
2910 done
2911 if $ac_cache_corrupted; then
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2913 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2915 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2916 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2918 ## -------------------- ##
2919 ## Main body of script. ##
2920 ## -------------------- ##
2922 ac_ext=c
2923 ac_cpp='$CPP $CPPFLAGS'
2924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2935 ac_aux_dir=
2936 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2937 for ac_t in install-sh install.sh shtool; do
2938 if test -f "$ac_dir/$ac_t"; then
2939 ac_aux_dir=$ac_dir
2940 ac_install_sh="$ac_aux_dir/$ac_t -c"
2941 break 2
2943 done
2944 done
2945 if test -z "$ac_aux_dir"; then
2946 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2949 # These three variables are undocumented and unsupported,
2950 # and are intended to be withdrawn in a future Autoconf release.
2951 # They can cause serious problems if a builder's source tree is in a directory
2952 # whose full name contains unusual characters.
2953 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2954 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2955 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2958 # Make sure we can run config.sub.
2959 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2960 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2963 $as_echo_n "checking build system type... " >&6; }
2964 if test "${ac_cv_build+set}" = set; then :
2965 $as_echo_n "(cached) " >&6
2966 else
2967 ac_build_alias=$build_alias
2968 test "x$ac_build_alias" = x &&
2969 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2970 test "x$ac_build_alias" = x &&
2971 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2972 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2973 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2977 $as_echo "$ac_cv_build" >&6; }
2978 case $ac_cv_build in
2979 *-*-*) ;;
2980 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2981 esac
2982 build=$ac_cv_build
2983 ac_save_IFS=$IFS; IFS='-'
2984 set x $ac_cv_build
2985 shift
2986 build_cpu=$1
2987 build_vendor=$2
2988 shift; shift
2989 # Remember, the first character of IFS is used to create $*,
2990 # except with old shells:
2991 build_os=$*
2992 IFS=$ac_save_IFS
2993 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2996 case ${build_alias} in
2997 "") build_noncanonical=${build} ;;
2998 *) build_noncanonical=${build_alias} ;;
2999 esac
3001 case ${host_alias} in
3002 "") host_noncanonical=${build_noncanonical} ;;
3003 *) host_noncanonical=${host_alias} ;;
3004 esac
3006 case ${target_alias} in
3007 "") target_noncanonical=${host_noncanonical} ;;
3008 *) target_noncanonical=${target_alias} ;;
3009 esac
3012 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3013 # have matching libraries, they should use host libraries: Makefile.tpl
3014 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3015 # However, they still use the build modules, because the corresponding
3016 # host modules (e.g. bison) are only built for the host when bootstrap
3017 # finishes. So:
3018 # - build_subdir is where we find build modules, and never changes.
3019 # - build_libsubdir is where we find build libraries, and can be overridden.
3021 # Prefix 'build-' so this never conflicts with target_subdir.
3022 build_subdir="build-${build_noncanonical}"
3024 # Check whether --with-build-libsubdir was given.
3025 if test "${with_build_libsubdir+set}" = set; then :
3026 withval=$with_build_libsubdir; build_libsubdir="$withval"
3027 else
3028 build_libsubdir="$build_subdir"
3031 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3032 if ( test $srcdir = . && test -d gcc ) \
3033 || test -d $srcdir/../host-${host_noncanonical}; then
3034 host_subdir="host-${host_noncanonical}"
3035 else
3036 host_subdir=.
3038 # No prefix.
3039 target_subdir=${target_noncanonical}
3042 # We use these options to decide which functions to include.
3044 # Check whether --with-target-subdir was given.
3045 if test "${with_target_subdir+set}" = set; then :
3046 withval=$with_target_subdir;
3050 # We may get other options which we don't document:
3051 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3053 # Find the rest of the source tree framework.
3054 # Default to --enable-multilib
3055 # Check whether --enable-multilib was given.
3056 if test "${enable_multilib+set}" = set; then :
3057 enableval=$enable_multilib; case "$enableval" in
3058 yes) multilib=yes ;;
3059 no) multilib=no ;;
3060 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3061 esac
3062 else
3063 multilib=yes
3067 # We may get other options which we leave undocumented:
3068 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3069 # See config-ml.in if you want the gory details.
3071 if test "$srcdir" = "."; then
3072 if test "$with_target_subdir" != "."; then
3073 multi_basedir="$srcdir/$with_multisrctop../.."
3074 else
3075 multi_basedir="$srcdir/$with_multisrctop.."
3077 else
3078 multi_basedir="$srcdir/.."
3082 # Even if the default multilib is not a cross compilation,
3083 # it may be that some of the other multilibs are.
3084 if test $cross_compiling = no && test $multilib = yes \
3085 && test "x${with_multisubdir}" != x ; then
3086 cross_compiling=maybe
3089 ac_config_commands="$ac_config_commands default-1"
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3093 $as_echo_n "checking host system type... " >&6; }
3094 if test "${ac_cv_host+set}" = set; then :
3095 $as_echo_n "(cached) " >&6
3096 else
3097 if test "x$host_alias" = x; then
3098 ac_cv_host=$ac_cv_build
3099 else
3100 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3101 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3106 $as_echo "$ac_cv_host" >&6; }
3107 case $ac_cv_host in
3108 *-*-*) ;;
3109 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3110 esac
3111 host=$ac_cv_host
3112 ac_save_IFS=$IFS; IFS='-'
3113 set x $ac_cv_host
3114 shift
3115 host_cpu=$1
3116 host_vendor=$2
3117 shift; shift
3118 # Remember, the first character of IFS is used to create $*,
3119 # except with old shells:
3120 host_os=$*
3121 IFS=$ac_save_IFS
3122 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3126 $as_echo_n "checking target system type... " >&6; }
3127 if test "${ac_cv_target+set}" = set; then :
3128 $as_echo_n "(cached) " >&6
3129 else
3130 if test "x$target_alias" = x; then
3131 ac_cv_target=$ac_cv_host
3132 else
3133 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3134 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3139 $as_echo "$ac_cv_target" >&6; }
3140 case $ac_cv_target in
3141 *-*-*) ;;
3142 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3143 esac
3144 target=$ac_cv_target
3145 ac_save_IFS=$IFS; IFS='-'
3146 set x $ac_cv_target
3147 shift
3148 target_cpu=$1
3149 target_vendor=$2
3150 shift; shift
3151 # Remember, the first character of IFS is used to create $*,
3152 # except with old shells:
3153 target_os=$*
3154 IFS=$ac_save_IFS
3155 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3158 # The aliases save the names the user supplied, while $host etc.
3159 # will get canonicalized.
3160 test -n "$target_alias" &&
3161 test "$program_prefix$program_suffix$program_transform_name" = \
3162 NONENONEs,x,x, &&
3163 program_prefix=${target_alias}-
3165 case ${build_alias} in
3166 "") build_noncanonical=${build} ;;
3167 *) build_noncanonical=${build_alias} ;;
3168 esac
3170 case ${target_alias} in
3171 "") target_noncanonical=${host_noncanonical} ;;
3172 *) target_noncanonical=${target_alias} ;;
3173 esac
3178 # This works around the fact that libtool configuration may change LD
3179 # for this particular configuration, but some shells, instead of
3180 # keeping the changes in LD private, export them just because LD is
3181 # exported.
3182 ORIGINAL_LD_FOR_MULTILIBS=$LD
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3185 $as_echo_n "checking whether ln -s works... " >&6; }
3186 LN_S=$as_ln_s
3187 if test "$LN_S" = "ln -s"; then
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3189 $as_echo "yes" >&6; }
3190 else
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3192 $as_echo "no, using $LN_S" >&6; }
3196 # This works around an automake problem.
3197 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
3201 # Check whether --with-cross-host was given.
3202 if test "${with_cross_host+set}" = set; then :
3203 withval=$with_cross_host;
3208 # Check whether --with-newlib was given.
3209 if test "${with_newlib+set}" = set; then :
3210 withval=$with_newlib;
3214 # Check whether --enable-version-specific-runtime-libs was given.
3215 if test "${enable_version_specific_runtime_libs+set}" = set; then :
3216 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
3217 yes) version_specific_libs=yes ;;
3218 no) version_specific_libs=no ;;
3219 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3220 esac
3221 else
3222 version_specific_libs=no
3227 # Check whether --enable-browser-plugin was given.
3228 if test "${enable_browser_plugin+set}" = set; then :
3229 enableval=$enable_browser_plugin; case "$enableval" in
3230 yes) browser_plugin_enabled=yes ;;
3231 no) browser_plugin_enabled=no ;;
3232 *) as_fn_error "Unknown argument to enable/disable browser plugin" "$LINENO" 5;;
3233 esac
3234 else
3235 browser_plugin_enabled=no
3240 # Check whether --enable-gconf-peer was given.
3241 if test "${enable_gconf_peer+set}" = set; then :
3242 enableval=$enable_gconf_peer; case "$enableval" in
3243 yes) gconf_enabled=yes ;;
3244 no) gconf_enabled=no ;;
3245 *) as_fn_error "Unknown argument to enable/disable gconf-peer" "$LINENO" 5;;
3246 esac
3247 else
3248 gconf_enabled=no
3254 # Check whether --with-antlr-jar was given.
3255 if test "${with_antlr_jar+set}" = set; then :
3256 withval=$with_antlr_jar;
3257 ANTLR_JAR=$withval
3259 else
3261 ANTLR_JAR=
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr.jar" >&5
3267 $as_echo_n "checking for antlr.jar... " >&6; }
3268 if test "x$ANTLR_JAR" = x; then
3269 for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
3270 /usr/share/antlr/lib /usr/share/java /usr/lib;
3272 if test -f "$antlr_lib_home/antlr.jar"; then
3273 # FIXME: version check for antlr needed without using a VM
3274 ANTLR_JAR="$antlr_lib_home/antlr.jar"
3275 break
3277 done
3278 if test "x$ANTLR_JAR" = x; then
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
3280 $as_echo "not found" >&6; }
3281 else
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3283 $as_echo "$ANTLR_JAR" >&6; }
3285 else
3286 if test -f "${ANTLR_JAR}"; then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3288 $as_echo "$ANTLR_JAR" >&6; }
3289 else
3290 as_fn_error "antlr jar file not found: $ANTLR_JAR" "$LINENO" 5
3295 # Check whether --enable-gjdoc was given.
3296 if test "${enable_gjdoc+set}" = set; then :
3297 enableval=$enable_gjdoc; case "${enableval}" in
3298 yes) BUILD_GJDOC=yes ;;
3299 no) BUILD_GJDOC=no ;;
3300 *) BUILD_GJDOC=yes ;;
3301 esac
3302 else
3303 BUILD_GJDOC=maybe
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gjdoc" >&5
3308 $as_echo_n "checking whether to build gjdoc... " >&6; }
3309 if test "x$BUILD_GJDOC" = xmaybe; then
3310 if test -f "${ANTLR_JAR}"; then
3311 BUILD_GJDOC=yes
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3313 $as_echo "yes" >&6; }
3314 else
3315 BUILD_GJDOC=no
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, antlr.jar not found" >&5
3317 $as_echo "no, antlr.jar not found" >&6; }
3319 else
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_GJDOC" >&5
3321 $as_echo "$BUILD_GJDOC" >&6; }
3323 if test "x${BUILD_GJDOC}" = xyes; then
3324 CREATE_GJDOC_TRUE=
3325 CREATE_GJDOC_FALSE='#'
3326 else
3327 CREATE_GJDOC_TRUE='#'
3328 CREATE_GJDOC_FALSE=
3332 # Check whether --enable-java-maintainer-mode was given.
3333 if test "${enable_java_maintainer_mode+set}" = set; then :
3334 enableval=$enable_java_maintainer_mode;
3337 if test "$enable_java_maintainer_mode" = yes; then
3338 JAVA_MAINTAINER_MODE_TRUE=
3339 JAVA_MAINTAINER_MODE_FALSE='#'
3340 else
3341 JAVA_MAINTAINER_MODE_TRUE='#'
3342 JAVA_MAINTAINER_MODE_FALSE=
3346 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
3349 # For libstdc++-v3, -fno-builtin must be present here so that a
3350 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
3351 # used in later tests. This may not be necessary in libjava; I don't know.
3352 save_CXXFLAGS="$CXXFLAGS"
3353 CXXFLAGS="$CXXFLAGS -fno-builtin"
3354 ac_ext=c
3355 ac_cpp='$CPP $CPPFLAGS'
3356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3359 if test -n "$ac_tool_prefix"; then
3360 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3361 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363 $as_echo_n "checking for $ac_word... " >&6; }
3364 if test "${ac_cv_prog_CC+set}" = set; then :
3365 $as_echo_n "(cached) " >&6
3366 else
3367 if test -n "$CC"; then
3368 ac_cv_prog_CC="$CC" # Let the user override the test.
3369 else
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 for as_dir in $PATH
3373 IFS=$as_save_IFS
3374 test -z "$as_dir" && as_dir=.
3375 for ac_exec_ext in '' $ac_executable_extensions; do
3376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3377 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3379 break 2
3381 done
3382 done
3383 IFS=$as_save_IFS
3387 CC=$ac_cv_prog_CC
3388 if test -n "$CC"; then
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3390 $as_echo "$CC" >&6; }
3391 else
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393 $as_echo "no" >&6; }
3398 if test -z "$ac_cv_prog_CC"; then
3399 ac_ct_CC=$CC
3400 # Extract the first word of "gcc", so it can be a program name with args.
3401 set dummy gcc; ac_word=$2
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3403 $as_echo_n "checking for $ac_word... " >&6; }
3404 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3405 $as_echo_n "(cached) " >&6
3406 else
3407 if test -n "$ac_ct_CC"; then
3408 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3409 else
3410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411 for as_dir in $PATH
3413 IFS=$as_save_IFS
3414 test -z "$as_dir" && as_dir=.
3415 for ac_exec_ext in '' $ac_executable_extensions; do
3416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3417 ac_cv_prog_ac_ct_CC="gcc"
3418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3419 break 2
3421 done
3422 done
3423 IFS=$as_save_IFS
3427 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3428 if test -n "$ac_ct_CC"; then
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3430 $as_echo "$ac_ct_CC" >&6; }
3431 else
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3433 $as_echo "no" >&6; }
3436 if test "x$ac_ct_CC" = x; then
3437 CC=""
3438 else
3439 case $cross_compiling:$ac_tool_warned in
3440 yes:)
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3443 ac_tool_warned=yes ;;
3444 esac
3445 CC=$ac_ct_CC
3447 else
3448 CC="$ac_cv_prog_CC"
3451 if test -z "$CC"; then
3452 if test -n "$ac_tool_prefix"; then
3453 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3454 set dummy ${ac_tool_prefix}cc; ac_word=$2
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3456 $as_echo_n "checking for $ac_word... " >&6; }
3457 if test "${ac_cv_prog_CC+set}" = set; then :
3458 $as_echo_n "(cached) " >&6
3459 else
3460 if test -n "$CC"; then
3461 ac_cv_prog_CC="$CC" # Let the user override the test.
3462 else
3463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464 for as_dir in $PATH
3466 IFS=$as_save_IFS
3467 test -z "$as_dir" && as_dir=.
3468 for ac_exec_ext in '' $ac_executable_extensions; do
3469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3470 ac_cv_prog_CC="${ac_tool_prefix}cc"
3471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3472 break 2
3474 done
3475 done
3476 IFS=$as_save_IFS
3480 CC=$ac_cv_prog_CC
3481 if test -n "$CC"; then
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3483 $as_echo "$CC" >&6; }
3484 else
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486 $as_echo "no" >&6; }
3492 if test -z "$CC"; then
3493 # Extract the first word of "cc", so it can be a program name with args.
3494 set dummy cc; ac_word=$2
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3496 $as_echo_n "checking for $ac_word... " >&6; }
3497 if test "${ac_cv_prog_CC+set}" = set; then :
3498 $as_echo_n "(cached) " >&6
3499 else
3500 if test -n "$CC"; then
3501 ac_cv_prog_CC="$CC" # Let the user override the test.
3502 else
3503 ac_prog_rejected=no
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 for as_dir in $PATH
3507 IFS=$as_save_IFS
3508 test -z "$as_dir" && as_dir=.
3509 for ac_exec_ext in '' $ac_executable_extensions; do
3510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3511 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3512 ac_prog_rejected=yes
3513 continue
3515 ac_cv_prog_CC="cc"
3516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3517 break 2
3519 done
3520 done
3521 IFS=$as_save_IFS
3523 if test $ac_prog_rejected = yes; then
3524 # We found a bogon in the path, so make sure we never use it.
3525 set dummy $ac_cv_prog_CC
3526 shift
3527 if test $# != 0; then
3528 # We chose a different compiler from the bogus one.
3529 # However, it has the same basename, so the bogon will be chosen
3530 # first if we set CC to just the basename; use the full file name.
3531 shift
3532 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3537 CC=$ac_cv_prog_CC
3538 if test -n "$CC"; then
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3540 $as_echo "$CC" >&6; }
3541 else
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3543 $as_echo "no" >&6; }
3548 if test -z "$CC"; then
3549 if test -n "$ac_tool_prefix"; then
3550 for ac_prog in cl.exe
3552 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3553 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3555 $as_echo_n "checking for $ac_word... " >&6; }
3556 if test "${ac_cv_prog_CC+set}" = set; then :
3557 $as_echo_n "(cached) " >&6
3558 else
3559 if test -n "$CC"; then
3560 ac_cv_prog_CC="$CC" # Let the user override the test.
3561 else
3562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563 for as_dir in $PATH
3565 IFS=$as_save_IFS
3566 test -z "$as_dir" && as_dir=.
3567 for ac_exec_ext in '' $ac_executable_extensions; do
3568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3569 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3571 break 2
3573 done
3574 done
3575 IFS=$as_save_IFS
3579 CC=$ac_cv_prog_CC
3580 if test -n "$CC"; then
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3582 $as_echo "$CC" >&6; }
3583 else
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3585 $as_echo "no" >&6; }
3589 test -n "$CC" && break
3590 done
3592 if test -z "$CC"; then
3593 ac_ct_CC=$CC
3594 for ac_prog in cl.exe
3596 # Extract the first word of "$ac_prog", so it can be a program name with args.
3597 set dummy $ac_prog; ac_word=$2
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3599 $as_echo_n "checking for $ac_word... " >&6; }
3600 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3601 $as_echo_n "(cached) " >&6
3602 else
3603 if test -n "$ac_ct_CC"; then
3604 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3605 else
3606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3607 for as_dir in $PATH
3609 IFS=$as_save_IFS
3610 test -z "$as_dir" && as_dir=.
3611 for ac_exec_ext in '' $ac_executable_extensions; do
3612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3613 ac_cv_prog_ac_ct_CC="$ac_prog"
3614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3615 break 2
3617 done
3618 done
3619 IFS=$as_save_IFS
3623 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3624 if test -n "$ac_ct_CC"; then
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3626 $as_echo "$ac_ct_CC" >&6; }
3627 else
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3629 $as_echo "no" >&6; }
3633 test -n "$ac_ct_CC" && break
3634 done
3636 if test "x$ac_ct_CC" = x; then
3637 CC=""
3638 else
3639 case $cross_compiling:$ac_tool_warned in
3640 yes:)
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3643 ac_tool_warned=yes ;;
3644 esac
3645 CC=$ac_ct_CC
3652 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3654 as_fn_error "no acceptable C compiler found in \$PATH
3655 See \`config.log' for more details." "$LINENO" 5; }
3657 # Provide some information about the compiler.
3658 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3659 set X $ac_compile
3660 ac_compiler=$2
3661 for ac_option in --version -v -V -qversion; do
3662 { { ac_try="$ac_compiler $ac_option >&5"
3663 case "(($ac_try" in
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3666 esac
3667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3668 $as_echo "$ac_try_echo"; } >&5
3669 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3670 ac_status=$?
3671 if test -s conftest.err; then
3672 sed '10a\
3673 ... rest of stderr output deleted ...
3674 10q' conftest.err >conftest.er1
3675 cat conftest.er1 >&5
3676 rm -f conftest.er1 conftest.err
3678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3679 test $ac_status = 0; }
3680 done
3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h. */
3686 main ()
3690 return 0;
3692 _ACEOF
3693 # FIXME: Cleanup?
3694 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3695 (eval $ac_link) 2>&5
3696 ac_status=$?
3697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3698 test $ac_status = 0; }; then :
3699 gcc_no_link=no
3700 else
3701 gcc_no_link=yes
3703 if test x$gcc_no_link = xyes; then
3704 # Setting cross_compile will disable run tests; it will
3705 # also disable AC_CHECK_FILE but that's generally
3706 # correct if we can't link.
3707 cross_compiling=yes
3708 EXEEXT=
3709 else
3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h. */
3714 main ()
3718 return 0;
3720 _ACEOF
3721 ac_clean_files_save=$ac_clean_files
3722 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3723 # Try to create an executable without -o first, disregard a.out.
3724 # It will help us diagnose broken compilers, and finding out an intuition
3725 # of exeext.
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3727 $as_echo_n "checking for C compiler default output file name... " >&6; }
3728 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3730 # The possible output files:
3731 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3733 ac_rmfiles=
3734 for ac_file in $ac_files
3736 case $ac_file in
3737 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3738 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3739 esac
3740 done
3741 rm -f $ac_rmfiles
3743 if { { ac_try="$ac_link_default"
3744 case "(($ac_try" in
3745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746 *) ac_try_echo=$ac_try;;
3747 esac
3748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3749 $as_echo "$ac_try_echo"; } >&5
3750 (eval "$ac_link_default") 2>&5
3751 ac_status=$?
3752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3753 test $ac_status = 0; }; then :
3754 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3755 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3756 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3757 # so that the user can short-circuit this test for compilers unknown to
3758 # Autoconf.
3759 for ac_file in $ac_files ''
3761 test -f "$ac_file" || continue
3762 case $ac_file in
3763 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3765 [ab].out )
3766 # We found the default executable, but exeext='' is most
3767 # certainly right.
3768 break;;
3769 *.* )
3770 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3771 then :; else
3772 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3774 # We set ac_cv_exeext here because the later test for it is not
3775 # safe: cross compilers may not add the suffix if given an `-o'
3776 # argument, so we may need to know it at that point already.
3777 # Even if this section looks crufty: it has the advantage of
3778 # actually working.
3779 break;;
3781 break;;
3782 esac
3783 done
3784 test "$ac_cv_exeext" = no && ac_cv_exeext=
3786 else
3787 ac_file=''
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3790 $as_echo "$ac_file" >&6; }
3791 if test -z "$ac_file"; then :
3792 $as_echo "$as_me: failed program was:" >&5
3793 sed 's/^/| /' conftest.$ac_ext >&5
3795 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3797 { as_fn_set_status 77
3798 as_fn_error "C compiler cannot create executables
3799 See \`config.log' for more details." "$LINENO" 5; }; }
3801 ac_exeext=$ac_cv_exeext
3803 # Check that the compiler produces executables we can run. If not, either
3804 # the compiler is broken, or we cross compile.
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3806 $as_echo_n "checking whether the C compiler works... " >&6; }
3807 # If not cross compiling, check that we can run a simple program.
3808 if test "$cross_compiling" != yes; then
3809 if { ac_try='./$ac_file'
3810 { { case "(($ac_try" in
3811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812 *) ac_try_echo=$ac_try;;
3813 esac
3814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3815 $as_echo "$ac_try_echo"; } >&5
3816 (eval "$ac_try") 2>&5
3817 ac_status=$?
3818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3819 test $ac_status = 0; }; }; then
3820 cross_compiling=no
3821 else
3822 if test "$cross_compiling" = maybe; then
3823 cross_compiling=yes
3824 else
3825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3827 as_fn_error "cannot run C compiled programs.
3828 If you meant to cross compile, use \`--host'.
3829 See \`config.log' for more details." "$LINENO" 5; }
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3834 $as_echo "yes" >&6; }
3836 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3837 ac_clean_files=$ac_clean_files_save
3838 # Check that the compiler produces executables we can run. If not, either
3839 # the compiler is broken, or we cross compile.
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3841 $as_echo_n "checking whether we are cross compiling... " >&6; }
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3843 $as_echo "$cross_compiling" >&6; }
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3846 $as_echo_n "checking for suffix of executables... " >&6; }
3847 if { { ac_try="$ac_link"
3848 case "(($ac_try" in
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3851 esac
3852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3853 $as_echo "$ac_try_echo"; } >&5
3854 (eval "$ac_link") 2>&5
3855 ac_status=$?
3856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3857 test $ac_status = 0; }; then :
3858 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3859 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3860 # work properly (i.e., refer to `conftest.exe'), while it won't with
3861 # `rm'.
3862 for ac_file in conftest.exe conftest conftest.*; do
3863 test -f "$ac_file" || continue
3864 case $ac_file in
3865 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3866 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3867 break;;
3868 * ) break;;
3869 esac
3870 done
3871 else
3872 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3874 as_fn_error "cannot compute suffix of executables: cannot compile and link
3875 See \`config.log' for more details." "$LINENO" 5; }
3877 rm -f conftest$ac_cv_exeext
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3879 $as_echo "$ac_cv_exeext" >&6; }
3881 rm -f conftest.$ac_ext
3882 EXEEXT=$ac_cv_exeext
3883 ac_exeext=$EXEEXT
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3886 $as_echo_n "checking for suffix of object files... " >&6; }
3887 if test "${ac_cv_objext+set}" = set; then :
3888 $as_echo_n "(cached) " >&6
3889 else
3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891 /* end confdefs.h. */
3894 main ()
3898 return 0;
3900 _ACEOF
3901 rm -f conftest.o conftest.obj
3902 if { { ac_try="$ac_compile"
3903 case "(($ac_try" in
3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3906 esac
3907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3908 $as_echo "$ac_try_echo"; } >&5
3909 (eval "$ac_compile") 2>&5
3910 ac_status=$?
3911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3912 test $ac_status = 0; }; then :
3913 for ac_file in conftest.o conftest.obj conftest.*; do
3914 test -f "$ac_file" || continue;
3915 case $ac_file in
3916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3917 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3918 break;;
3919 esac
3920 done
3921 else
3922 $as_echo "$as_me: failed program was:" >&5
3923 sed 's/^/| /' conftest.$ac_ext >&5
3925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3927 as_fn_error "cannot compute suffix of object files: cannot compile
3928 See \`config.log' for more details." "$LINENO" 5; }
3930 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3933 $as_echo "$ac_cv_objext" >&6; }
3934 OBJEXT=$ac_cv_objext
3935 ac_objext=$OBJEXT
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3937 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3938 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3939 $as_echo_n "(cached) " >&6
3940 else
3941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3942 /* end confdefs.h. */
3945 main ()
3947 #ifndef __GNUC__
3948 choke me
3949 #endif
3952 return 0;
3954 _ACEOF
3955 if ac_fn_c_try_compile "$LINENO"; then :
3956 ac_compiler_gnu=yes
3957 else
3958 ac_compiler_gnu=no
3960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3961 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3965 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3966 if test $ac_compiler_gnu = yes; then
3967 GCC=yes
3968 else
3969 GCC=
3971 ac_test_CFLAGS=${CFLAGS+set}
3972 ac_save_CFLAGS=$CFLAGS
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3974 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3975 if test "${ac_cv_prog_cc_g+set}" = set; then :
3976 $as_echo_n "(cached) " >&6
3977 else
3978 ac_save_c_werror_flag=$ac_c_werror_flag
3979 ac_c_werror_flag=yes
3980 ac_cv_prog_cc_g=no
3981 CFLAGS="-g"
3982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983 /* end confdefs.h. */
3986 main ()
3990 return 0;
3992 _ACEOF
3993 if ac_fn_c_try_compile "$LINENO"; then :
3994 ac_cv_prog_cc_g=yes
3995 else
3996 CFLAGS=""
3997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998 /* end confdefs.h. */
4001 main ()
4005 return 0;
4007 _ACEOF
4008 if ac_fn_c_try_compile "$LINENO"; then :
4010 else
4011 ac_c_werror_flag=$ac_save_c_werror_flag
4012 CFLAGS="-g"
4013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014 /* end confdefs.h. */
4017 main ()
4021 return 0;
4023 _ACEOF
4024 if ac_fn_c_try_compile "$LINENO"; then :
4025 ac_cv_prog_cc_g=yes
4027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4032 ac_c_werror_flag=$ac_save_c_werror_flag
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4035 $as_echo "$ac_cv_prog_cc_g" >&6; }
4036 if test "$ac_test_CFLAGS" = set; then
4037 CFLAGS=$ac_save_CFLAGS
4038 elif test $ac_cv_prog_cc_g = yes; then
4039 if test "$GCC" = yes; then
4040 CFLAGS="-g -O2"
4041 else
4042 CFLAGS="-g"
4044 else
4045 if test "$GCC" = yes; then
4046 CFLAGS="-O2"
4047 else
4048 CFLAGS=
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4052 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4053 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4054 $as_echo_n "(cached) " >&6
4055 else
4056 ac_cv_prog_cc_c89=no
4057 ac_save_CC=$CC
4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h. */
4060 #include <stdarg.h>
4061 #include <stdio.h>
4062 #include <sys/types.h>
4063 #include <sys/stat.h>
4064 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4065 struct buf { int x; };
4066 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4067 static char *e (p, i)
4068 char **p;
4069 int i;
4071 return p[i];
4073 static char *f (char * (*g) (char **, int), char **p, ...)
4075 char *s;
4076 va_list v;
4077 va_start (v,p);
4078 s = g (p, va_arg (v,int));
4079 va_end (v);
4080 return s;
4083 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4084 function prototypes and stuff, but not '\xHH' hex character constants.
4085 These don't provoke an error unfortunately, instead are silently treated
4086 as 'x'. The following induces an error, until -std is added to get
4087 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4088 array size at least. It's necessary to write '\x00'==0 to get something
4089 that's true only with -std. */
4090 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4092 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4093 inside strings and character constants. */
4094 #define FOO(x) 'x'
4095 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4097 int test (int i, double x);
4098 struct s1 {int (*f) (int a);};
4099 struct s2 {int (*f) (double a);};
4100 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4101 int argc;
4102 char **argv;
4104 main ()
4106 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4108 return 0;
4110 _ACEOF
4111 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4112 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4114 CC="$ac_save_CC $ac_arg"
4115 if ac_fn_c_try_compile "$LINENO"; then :
4116 ac_cv_prog_cc_c89=$ac_arg
4118 rm -f core conftest.err conftest.$ac_objext
4119 test "x$ac_cv_prog_cc_c89" != "xno" && break
4120 done
4121 rm -f conftest.$ac_ext
4122 CC=$ac_save_CC
4125 # AC_CACHE_VAL
4126 case "x$ac_cv_prog_cc_c89" in
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4129 $as_echo "none needed" >&6; } ;;
4130 xno)
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4132 $as_echo "unsupported" >&6; } ;;
4134 CC="$CC $ac_cv_prog_cc_c89"
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4136 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4137 esac
4138 if test "x$ac_cv_prog_cc_c89" != xno; then :
4142 ac_ext=c
4143 ac_cpp='$CPP $CPPFLAGS'
4144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4148 ac_ext=cpp
4149 ac_cpp='$CXXCPP $CPPFLAGS'
4150 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4151 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4152 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4153 if test -z "$CXX"; then
4154 if test -n "$CCC"; then
4155 CXX=$CCC
4156 else
4157 if test -n "$ac_tool_prefix"; then
4158 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4160 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4161 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4163 $as_echo_n "checking for $ac_word... " >&6; }
4164 if test "${ac_cv_prog_CXX+set}" = set; then :
4165 $as_echo_n "(cached) " >&6
4166 else
4167 if test -n "$CXX"; then
4168 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4169 else
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 for as_dir in $PATH
4173 IFS=$as_save_IFS
4174 test -z "$as_dir" && as_dir=.
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4177 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4179 break 2
4181 done
4182 done
4183 IFS=$as_save_IFS
4187 CXX=$ac_cv_prog_CXX
4188 if test -n "$CXX"; then
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4190 $as_echo "$CXX" >&6; }
4191 else
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4193 $as_echo "no" >&6; }
4197 test -n "$CXX" && break
4198 done
4200 if test -z "$CXX"; then
4201 ac_ct_CXX=$CXX
4202 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4204 # Extract the first word of "$ac_prog", so it can be a program name with args.
4205 set dummy $ac_prog; ac_word=$2
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4207 $as_echo_n "checking for $ac_word... " >&6; }
4208 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4209 $as_echo_n "(cached) " >&6
4210 else
4211 if test -n "$ac_ct_CXX"; then
4212 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4213 else
4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215 for as_dir in $PATH
4217 IFS=$as_save_IFS
4218 test -z "$as_dir" && as_dir=.
4219 for ac_exec_ext in '' $ac_executable_extensions; do
4220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4221 ac_cv_prog_ac_ct_CXX="$ac_prog"
4222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4223 break 2
4225 done
4226 done
4227 IFS=$as_save_IFS
4231 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4232 if test -n "$ac_ct_CXX"; then
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4234 $as_echo "$ac_ct_CXX" >&6; }
4235 else
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4237 $as_echo "no" >&6; }
4241 test -n "$ac_ct_CXX" && break
4242 done
4244 if test "x$ac_ct_CXX" = x; then
4245 CXX="g++"
4246 else
4247 case $cross_compiling:$ac_tool_warned in
4248 yes:)
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4251 ac_tool_warned=yes ;;
4252 esac
4253 CXX=$ac_ct_CXX
4259 # Provide some information about the compiler.
4260 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4261 set X $ac_compile
4262 ac_compiler=$2
4263 for ac_option in --version -v -V -qversion; do
4264 { { ac_try="$ac_compiler $ac_option >&5"
4265 case "(($ac_try" in
4266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4267 *) ac_try_echo=$ac_try;;
4268 esac
4269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4270 $as_echo "$ac_try_echo"; } >&5
4271 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4272 ac_status=$?
4273 if test -s conftest.err; then
4274 sed '10a\
4275 ... rest of stderr output deleted ...
4276 10q' conftest.err >conftest.er1
4277 cat conftest.er1 >&5
4278 rm -f conftest.er1 conftest.err
4280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4281 test $ac_status = 0; }
4282 done
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4285 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4286 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4287 $as_echo_n "(cached) " >&6
4288 else
4289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4290 /* end confdefs.h. */
4293 main ()
4295 #ifndef __GNUC__
4296 choke me
4297 #endif
4300 return 0;
4302 _ACEOF
4303 if ac_fn_cxx_try_compile "$LINENO"; then :
4304 ac_compiler_gnu=yes
4305 else
4306 ac_compiler_gnu=no
4308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4313 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4314 if test $ac_compiler_gnu = yes; then
4315 GXX=yes
4316 else
4317 GXX=
4319 ac_test_CXXFLAGS=${CXXFLAGS+set}
4320 ac_save_CXXFLAGS=$CXXFLAGS
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4322 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4323 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4324 $as_echo_n "(cached) " >&6
4325 else
4326 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4327 ac_cxx_werror_flag=yes
4328 ac_cv_prog_cxx_g=no
4329 CXXFLAGS="-g"
4330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h. */
4334 main ()
4338 return 0;
4340 _ACEOF
4341 if ac_fn_cxx_try_compile "$LINENO"; then :
4342 ac_cv_prog_cxx_g=yes
4343 else
4344 CXXFLAGS=""
4345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346 /* end confdefs.h. */
4349 main ()
4353 return 0;
4355 _ACEOF
4356 if ac_fn_cxx_try_compile "$LINENO"; then :
4358 else
4359 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4360 CXXFLAGS="-g"
4361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362 /* end confdefs.h. */
4365 main ()
4369 return 0;
4371 _ACEOF
4372 if ac_fn_cxx_try_compile "$LINENO"; then :
4373 ac_cv_prog_cxx_g=yes
4375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4380 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4383 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4384 if test "$ac_test_CXXFLAGS" = set; then
4385 CXXFLAGS=$ac_save_CXXFLAGS
4386 elif test $ac_cv_prog_cxx_g = yes; then
4387 if test "$GXX" = yes; then
4388 CXXFLAGS="-g -O2"
4389 else
4390 CXXFLAGS="-g"
4392 else
4393 if test "$GXX" = yes; then
4394 CXXFLAGS="-O2"
4395 else
4396 CXXFLAGS=
4399 ac_ext=c
4400 ac_cpp='$CPP $CPPFLAGS'
4401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4405 CXXFLAGS="$save_CXXFLAGS"
4407 am__api_version='1.11'
4409 # Find a good install program. We prefer a C program (faster),
4410 # so one script is as good as another. But avoid the broken or
4411 # incompatible versions:
4412 # SysV /etc/install, /usr/sbin/install
4413 # SunOS /usr/etc/install
4414 # IRIX /sbin/install
4415 # AIX /bin/install
4416 # AmigaOS /C/install, which installs bootblocks on floppy discs
4417 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4418 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4419 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4420 # OS/2's system install, which has a completely different semantic
4421 # ./install, which can be erroneously created by make from ./install.sh.
4422 # Reject install programs that cannot install multiple files.
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4424 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4425 if test -z "$INSTALL"; then
4426 if test "${ac_cv_path_install+set}" = set; then :
4427 $as_echo_n "(cached) " >&6
4428 else
4429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430 for as_dir in $PATH
4432 IFS=$as_save_IFS
4433 test -z "$as_dir" && as_dir=.
4434 # Account for people who put trailing slashes in PATH elements.
4435 case $as_dir/ in #((
4436 ./ | .// | /[cC]/* | \
4437 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4438 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4439 /usr/ucb/* ) ;;
4441 # OSF1 and SCO ODT 3.0 have their own names for install.
4442 # Don't use installbsd from OSF since it installs stuff as root
4443 # by default.
4444 for ac_prog in ginstall scoinst install; do
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4447 if test $ac_prog = install &&
4448 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4449 # AIX install. It has an incompatible calling convention.
4451 elif test $ac_prog = install &&
4452 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4453 # program-specific install script used by HP pwplus--don't use.
4455 else
4456 rm -rf conftest.one conftest.two conftest.dir
4457 echo one > conftest.one
4458 echo two > conftest.two
4459 mkdir conftest.dir
4460 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4461 test -s conftest.one && test -s conftest.two &&
4462 test -s conftest.dir/conftest.one &&
4463 test -s conftest.dir/conftest.two
4464 then
4465 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4466 break 3
4470 done
4471 done
4473 esac
4475 done
4476 IFS=$as_save_IFS
4478 rm -rf conftest.one conftest.two conftest.dir
4481 if test "${ac_cv_path_install+set}" = set; then
4482 INSTALL=$ac_cv_path_install
4483 else
4484 # As a last resort, use the slow shell script. Don't cache a
4485 # value for INSTALL within a source directory, because that will
4486 # break other packages using the cache if that directory is
4487 # removed, or if the value is a relative name.
4488 INSTALL=$ac_install_sh
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4492 $as_echo "$INSTALL" >&6; }
4494 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4495 # It thinks the first close brace ends the variable substitution.
4496 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4498 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4500 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4503 $as_echo_n "checking whether build environment is sane... " >&6; }
4504 # Just in case
4505 sleep 1
4506 echo timestamp > conftest.file
4507 # Reject unsafe characters in $srcdir or the absolute working directory
4508 # name. Accept space and tab only in the latter.
4509 am_lf='
4511 case `pwd` in
4512 *[\\\"\#\$\&\'\`$am_lf]*)
4513 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4514 esac
4515 case $srcdir in
4516 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4517 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4518 esac
4520 # Do `set' in a subshell so we don't clobber the current shell's
4521 # arguments. Must try -L first in case configure is actually a
4522 # symlink; some systems play weird games with the mod time of symlinks
4523 # (eg FreeBSD returns the mod time of the symlink's containing
4524 # directory).
4525 if (
4526 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4527 if test "$*" = "X"; then
4528 # -L didn't work.
4529 set X `ls -t "$srcdir/configure" conftest.file`
4531 rm -f conftest.file
4532 if test "$*" != "X $srcdir/configure conftest.file" \
4533 && test "$*" != "X conftest.file $srcdir/configure"; then
4535 # If neither matched, then we have a broken ls. This can happen
4536 # if, for instance, CONFIG_SHELL is bash and it inherits a
4537 # broken ls alias from the environment. This has actually
4538 # happened. Such a system could not be considered "sane".
4539 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4540 alias in your environment" "$LINENO" 5
4543 test "$2" = conftest.file
4545 then
4546 # Ok.
4548 else
4549 as_fn_error "newly created file is older than distributed files!
4550 Check your system clock" "$LINENO" 5
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4553 $as_echo "yes" >&6; }
4554 test "$program_prefix" != NONE &&
4555 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4556 # Use a double $ so make ignores it.
4557 test "$program_suffix" != NONE &&
4558 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4559 # Double any \ or $.
4560 # By default was `s,x,x', remove it if useless.
4561 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4562 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4564 # expand $ac_aux_dir to an absolute path
4565 am_aux_dir=`cd $ac_aux_dir && pwd`
4567 if test x"${MISSING+set}" != xset; then
4568 case $am_aux_dir in
4569 *\ * | *\ *)
4570 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4572 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4573 esac
4575 # Use eval to expand $SHELL
4576 if eval "$MISSING --run true"; then
4577 am_missing_run="$MISSING --run "
4578 else
4579 am_missing_run=
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4581 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4584 if test x"${install_sh}" != xset; then
4585 case $am_aux_dir in
4586 *\ * | *\ *)
4587 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4589 install_sh="\${SHELL} $am_aux_dir/install-sh"
4590 esac
4593 # Installed binaries are usually stripped using `strip' when the user
4594 # run `make install-strip'. However `strip' might not be the right
4595 # tool to use in cross-compilation environments, therefore Automake
4596 # will honor the `STRIP' environment variable to overrule this program.
4597 if test "$cross_compiling" != no; then
4598 if test -n "$ac_tool_prefix"; then
4599 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4600 set dummy ${ac_tool_prefix}strip; ac_word=$2
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4602 $as_echo_n "checking for $ac_word... " >&6; }
4603 if test "${ac_cv_prog_STRIP+set}" = set; then :
4604 $as_echo_n "(cached) " >&6
4605 else
4606 if test -n "$STRIP"; then
4607 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4608 else
4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610 for as_dir in $PATH
4612 IFS=$as_save_IFS
4613 test -z "$as_dir" && as_dir=.
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4616 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618 break 2
4620 done
4621 done
4622 IFS=$as_save_IFS
4626 STRIP=$ac_cv_prog_STRIP
4627 if test -n "$STRIP"; then
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4629 $as_echo "$STRIP" >&6; }
4630 else
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4632 $as_echo "no" >&6; }
4637 if test -z "$ac_cv_prog_STRIP"; then
4638 ac_ct_STRIP=$STRIP
4639 # Extract the first word of "strip", so it can be a program name with args.
4640 set dummy strip; ac_word=$2
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4642 $as_echo_n "checking for $ac_word... " >&6; }
4643 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4644 $as_echo_n "(cached) " >&6
4645 else
4646 if test -n "$ac_ct_STRIP"; then
4647 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4648 else
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 for as_dir in $PATH
4652 IFS=$as_save_IFS
4653 test -z "$as_dir" && as_dir=.
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4656 ac_cv_prog_ac_ct_STRIP="strip"
4657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4658 break 2
4660 done
4661 done
4662 IFS=$as_save_IFS
4666 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4667 if test -n "$ac_ct_STRIP"; then
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4669 $as_echo "$ac_ct_STRIP" >&6; }
4670 else
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672 $as_echo "no" >&6; }
4675 if test "x$ac_ct_STRIP" = x; then
4676 STRIP=":"
4677 else
4678 case $cross_compiling:$ac_tool_warned in
4679 yes:)
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4682 ac_tool_warned=yes ;;
4683 esac
4684 STRIP=$ac_ct_STRIP
4686 else
4687 STRIP="$ac_cv_prog_STRIP"
4691 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4694 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4695 if test -z "$MKDIR_P"; then
4696 if test "${ac_cv_path_mkdir+set}" = set; then :
4697 $as_echo_n "(cached) " >&6
4698 else
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4702 IFS=$as_save_IFS
4703 test -z "$as_dir" && as_dir=.
4704 for ac_prog in mkdir gmkdir; do
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4707 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4708 'mkdir (GNU coreutils) '* | \
4709 'mkdir (coreutils) '* | \
4710 'mkdir (fileutils) '4.1*)
4711 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4712 break 3;;
4713 esac
4714 done
4715 done
4716 done
4717 IFS=$as_save_IFS
4721 if test "${ac_cv_path_mkdir+set}" = set; then
4722 MKDIR_P="$ac_cv_path_mkdir -p"
4723 else
4724 # As a last resort, use the slow shell script. Don't cache a
4725 # value for MKDIR_P within a source directory, because that will
4726 # break other packages using the cache if that directory is
4727 # removed, or if the value is a relative name.
4728 test -d ./--version && rmdir ./--version
4729 MKDIR_P="$ac_install_sh -d"
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4733 $as_echo "$MKDIR_P" >&6; }
4735 mkdir_p="$MKDIR_P"
4736 case $mkdir_p in
4737 [\\/$]* | ?:[\\/]*) ;;
4738 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4739 esac
4741 for ac_prog in gawk mawk nawk awk
4743 # Extract the first word of "$ac_prog", so it can be a program name with args.
4744 set dummy $ac_prog; ac_word=$2
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4746 $as_echo_n "checking for $ac_word... " >&6; }
4747 if test "${ac_cv_prog_AWK+set}" = set; then :
4748 $as_echo_n "(cached) " >&6
4749 else
4750 if test -n "$AWK"; then
4751 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4752 else
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 for as_dir in $PATH
4756 IFS=$as_save_IFS
4757 test -z "$as_dir" && as_dir=.
4758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4760 ac_cv_prog_AWK="$ac_prog"
4761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 break 2
4764 done
4765 done
4766 IFS=$as_save_IFS
4770 AWK=$ac_cv_prog_AWK
4771 if test -n "$AWK"; then
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4773 $as_echo "$AWK" >&6; }
4774 else
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4776 $as_echo "no" >&6; }
4780 test -n "$AWK" && break
4781 done
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4784 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4785 set x ${MAKE-make}
4786 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4787 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4788 $as_echo_n "(cached) " >&6
4789 else
4790 cat >conftest.make <<\_ACEOF
4791 SHELL = /bin/sh
4792 all:
4793 @echo '@@@%%%=$(MAKE)=@@@%%%'
4794 _ACEOF
4795 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4796 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4797 *@@@%%%=?*=@@@%%%*)
4798 eval ac_cv_prog_make_${ac_make}_set=yes;;
4800 eval ac_cv_prog_make_${ac_make}_set=no;;
4801 esac
4802 rm -f conftest.make
4804 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4806 $as_echo "yes" >&6; }
4807 SET_MAKE=
4808 else
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4810 $as_echo "no" >&6; }
4811 SET_MAKE="MAKE=${MAKE-make}"
4814 rm -rf .tst 2>/dev/null
4815 mkdir .tst 2>/dev/null
4816 if test -d .tst; then
4817 am__leading_dot=.
4818 else
4819 am__leading_dot=_
4821 rmdir .tst 2>/dev/null
4823 DEPDIR="${am__leading_dot}deps"
4825 ac_config_commands="$ac_config_commands depfiles"
4828 am_make=${MAKE-make}
4829 cat > confinc << 'END'
4830 am__doit:
4831 @echo this is the am__doit target
4832 .PHONY: am__doit
4834 # If we don't find an include directive, just comment out the code.
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4836 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4837 am__include="#"
4838 am__quote=
4839 _am_result=none
4840 # First try GNU make style include.
4841 echo "include confinc" > confmf
4842 # Ignore all kinds of additional output from `make'.
4843 case `$am_make -s -f confmf 2> /dev/null` in #(
4844 *the\ am__doit\ target*)
4845 am__include=include
4846 am__quote=
4847 _am_result=GNU
4849 esac
4850 # Now try BSD make style include.
4851 if test "$am__include" = "#"; then
4852 echo '.include "confinc"' > confmf
4853 case `$am_make -s -f confmf 2> /dev/null` in #(
4854 *the\ am__doit\ target*)
4855 am__include=.include
4856 am__quote="\""
4857 _am_result=BSD
4859 esac
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4864 $as_echo "$_am_result" >&6; }
4865 rm -f confinc confmf
4867 # Check whether --enable-dependency-tracking was given.
4868 if test "${enable_dependency_tracking+set}" = set; then :
4869 enableval=$enable_dependency_tracking;
4872 if test "x$enable_dependency_tracking" != xno; then
4873 am_depcomp="$ac_aux_dir/depcomp"
4874 AMDEPBACKSLASH='\'
4876 if test "x$enable_dependency_tracking" != xno; then
4877 AMDEP_TRUE=
4878 AMDEP_FALSE='#'
4879 else
4880 AMDEP_TRUE='#'
4881 AMDEP_FALSE=
4885 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4886 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4887 # is not polluted with repeated "-I."
4888 am__isrc=' -I$(srcdir)'
4889 # test to see if srcdir already configured
4890 if test -f $srcdir/config.status; then
4891 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4895 # test whether we have cygpath
4896 if test -z "$CYGPATH_W"; then
4897 if (cygpath --version) >/dev/null 2>/dev/null; then
4898 CYGPATH_W='cygpath -w'
4899 else
4900 CYGPATH_W=echo
4905 # Define the identity of the package.
4906 PACKAGE='libjava'
4907 VERSION='version-unused'
4910 cat >>confdefs.h <<_ACEOF
4911 #define PACKAGE "$PACKAGE"
4912 _ACEOF
4915 cat >>confdefs.h <<_ACEOF
4916 #define VERSION "$VERSION"
4917 _ACEOF
4919 # Some tools Automake needs.
4921 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4924 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4927 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4930 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4933 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4935 # We need awk for the "check" target. The system "awk" is bad on
4936 # some platforms.
4937 # Always define AMTAR for backward compatibility.
4939 AMTAR=${AMTAR-"${am_missing_run}tar"}
4941 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4946 depcc="$CC" am_compiler_list=
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4949 $as_echo_n "checking dependency style of $depcc... " >&6; }
4950 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4951 $as_echo_n "(cached) " >&6
4952 else
4953 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4954 # We make a subdir and do the tests there. Otherwise we can end up
4955 # making bogus files that we don't know about and never remove. For
4956 # instance it was reported that on HP-UX the gcc test will end up
4957 # making a dummy file named `D' -- because `-MD' means `put the output
4958 # in D'.
4959 mkdir conftest.dir
4960 # Copy depcomp to subdir because otherwise we won't find it if we're
4961 # using a relative directory.
4962 cp "$am_depcomp" conftest.dir
4963 cd conftest.dir
4964 # We will build objects and dependencies in a subdirectory because
4965 # it helps to detect inapplicable dependency modes. For instance
4966 # both Tru64's cc and ICC support -MD to output dependencies as a
4967 # side effect of compilation, but ICC will put the dependencies in
4968 # the current directory while Tru64 will put them in the object
4969 # directory.
4970 mkdir sub
4972 am_cv_CC_dependencies_compiler_type=none
4973 if test "$am_compiler_list" = ""; then
4974 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4976 am__universal=false
4977 case " $depcc " in #(
4978 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4979 esac
4981 for depmode in $am_compiler_list; do
4982 # Setup a source with many dependencies, because some compilers
4983 # like to wrap large dependency lists on column 80 (with \), and
4984 # we should not choose a depcomp mode which is confused by this.
4986 # We need to recreate these files for each test, as the compiler may
4987 # overwrite some of them when testing with obscure command lines.
4988 # This happens at least with the AIX C compiler.
4989 : > sub/conftest.c
4990 for i in 1 2 3 4 5 6; do
4991 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4992 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4993 # Solaris 8's {/usr,}/bin/sh.
4994 touch sub/conftst$i.h
4995 done
4996 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4998 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4999 # mode. It turns out that the SunPro C++ compiler does not properly
5000 # handle `-M -o', and we need to detect this. Also, some Intel
5001 # versions had trouble with output in subdirs
5002 am__obj=sub/conftest.${OBJEXT-o}
5003 am__minus_obj="-o $am__obj"
5004 case $depmode in
5005 gcc)
5006 # This depmode causes a compiler race in universal mode.
5007 test "$am__universal" = false || continue
5009 nosideeffect)
5010 # after this tag, mechanisms are not by side-effect, so they'll
5011 # only be used when explicitly requested
5012 if test "x$enable_dependency_tracking" = xyes; then
5013 continue
5014 else
5015 break
5018 msvisualcpp | msvcmsys)
5019 # This compiler won't grok `-c -o', but also, the minuso test has
5020 # not run yet. These depmodes are late enough in the game, and
5021 # so weak that their functioning should not be impacted.
5022 am__obj=conftest.${OBJEXT-o}
5023 am__minus_obj=
5025 none) break ;;
5026 esac
5027 if depmode=$depmode \
5028 source=sub/conftest.c object=$am__obj \
5029 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5030 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5031 >/dev/null 2>conftest.err &&
5032 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5033 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5034 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5035 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5036 # icc doesn't choke on unknown options, it will just issue warnings
5037 # or remarks (even with -Werror). So we grep stderr for any message
5038 # that says an option was ignored or not supported.
5039 # When given -MP, icc 7.0 and 7.1 complain thusly:
5040 # icc: Command line warning: ignoring option '-M'; no argument required
5041 # The diagnosis changed in icc 8.0:
5042 # icc: Command line remark: option '-MP' not supported
5043 if (grep 'ignoring option' conftest.err ||
5044 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5045 am_cv_CC_dependencies_compiler_type=$depmode
5046 break
5049 done
5051 cd ..
5052 rm -rf conftest.dir
5053 else
5054 am_cv_CC_dependencies_compiler_type=none
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5059 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5060 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5063 test "x$enable_dependency_tracking" != xno \
5064 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5065 am__fastdepCC_TRUE=
5066 am__fastdepCC_FALSE='#'
5067 else
5068 am__fastdepCC_TRUE='#'
5069 am__fastdepCC_FALSE=
5073 depcc="$CXX" am_compiler_list=
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5076 $as_echo_n "checking dependency style of $depcc... " >&6; }
5077 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5078 $as_echo_n "(cached) " >&6
5079 else
5080 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5081 # We make a subdir and do the tests there. Otherwise we can end up
5082 # making bogus files that we don't know about and never remove. For
5083 # instance it was reported that on HP-UX the gcc test will end up
5084 # making a dummy file named `D' -- because `-MD' means `put the output
5085 # in D'.
5086 mkdir conftest.dir
5087 # Copy depcomp to subdir because otherwise we won't find it if we're
5088 # using a relative directory.
5089 cp "$am_depcomp" conftest.dir
5090 cd conftest.dir
5091 # We will build objects and dependencies in a subdirectory because
5092 # it helps to detect inapplicable dependency modes. For instance
5093 # both Tru64's cc and ICC support -MD to output dependencies as a
5094 # side effect of compilation, but ICC will put the dependencies in
5095 # the current directory while Tru64 will put them in the object
5096 # directory.
5097 mkdir sub
5099 am_cv_CXX_dependencies_compiler_type=none
5100 if test "$am_compiler_list" = ""; then
5101 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5103 am__universal=false
5104 case " $depcc " in #(
5105 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5106 esac
5108 for depmode in $am_compiler_list; do
5109 # Setup a source with many dependencies, because some compilers
5110 # like to wrap large dependency lists on column 80 (with \), and
5111 # we should not choose a depcomp mode which is confused by this.
5113 # We need to recreate these files for each test, as the compiler may
5114 # overwrite some of them when testing with obscure command lines.
5115 # This happens at least with the AIX C compiler.
5116 : > sub/conftest.c
5117 for i in 1 2 3 4 5 6; do
5118 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5119 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5120 # Solaris 8's {/usr,}/bin/sh.
5121 touch sub/conftst$i.h
5122 done
5123 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5125 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5126 # mode. It turns out that the SunPro C++ compiler does not properly
5127 # handle `-M -o', and we need to detect this. Also, some Intel
5128 # versions had trouble with output in subdirs
5129 am__obj=sub/conftest.${OBJEXT-o}
5130 am__minus_obj="-o $am__obj"
5131 case $depmode in
5132 gcc)
5133 # This depmode causes a compiler race in universal mode.
5134 test "$am__universal" = false || continue
5136 nosideeffect)
5137 # after this tag, mechanisms are not by side-effect, so they'll
5138 # only be used when explicitly requested
5139 if test "x$enable_dependency_tracking" = xyes; then
5140 continue
5141 else
5142 break
5145 msvisualcpp | msvcmsys)
5146 # This compiler won't grok `-c -o', but also, the minuso test has
5147 # not run yet. These depmodes are late enough in the game, and
5148 # so weak that their functioning should not be impacted.
5149 am__obj=conftest.${OBJEXT-o}
5150 am__minus_obj=
5152 none) break ;;
5153 esac
5154 if depmode=$depmode \
5155 source=sub/conftest.c object=$am__obj \
5156 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5157 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5158 >/dev/null 2>conftest.err &&
5159 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5160 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5161 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5162 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5163 # icc doesn't choke on unknown options, it will just issue warnings
5164 # or remarks (even with -Werror). So we grep stderr for any message
5165 # that says an option was ignored or not supported.
5166 # When given -MP, icc 7.0 and 7.1 complain thusly:
5167 # icc: Command line warning: ignoring option '-M'; no argument required
5168 # The diagnosis changed in icc 8.0:
5169 # icc: Command line remark: option '-MP' not supported
5170 if (grep 'ignoring option' conftest.err ||
5171 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5172 am_cv_CXX_dependencies_compiler_type=$depmode
5173 break
5176 done
5178 cd ..
5179 rm -rf conftest.dir
5180 else
5181 am_cv_CXX_dependencies_compiler_type=none
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5186 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5187 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5190 test "x$enable_dependency_tracking" != xno \
5191 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5192 am__fastdepCXX_TRUE=
5193 am__fastdepCXX_FALSE='#'
5194 else
5195 am__fastdepCXX_TRUE='#'
5196 am__fastdepCXX_FALSE=
5202 if test -n "$ac_tool_prefix"; then
5203 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5204 set dummy ${ac_tool_prefix}as; ac_word=$2
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5206 $as_echo_n "checking for $ac_word... " >&6; }
5207 if test "${ac_cv_prog_AS+set}" = set; then :
5208 $as_echo_n "(cached) " >&6
5209 else
5210 if test -n "$AS"; then
5211 ac_cv_prog_AS="$AS" # Let the user override the test.
5212 else
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 for as_dir in $PATH
5216 IFS=$as_save_IFS
5217 test -z "$as_dir" && as_dir=.
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5220 ac_cv_prog_AS="${ac_tool_prefix}as"
5221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 break 2
5224 done
5225 done
5226 IFS=$as_save_IFS
5230 AS=$ac_cv_prog_AS
5231 if test -n "$AS"; then
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5233 $as_echo "$AS" >&6; }
5234 else
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236 $as_echo "no" >&6; }
5241 if test -z "$ac_cv_prog_AS"; then
5242 ac_ct_AS=$AS
5243 # Extract the first word of "as", so it can be a program name with args.
5244 set dummy as; ac_word=$2
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5246 $as_echo_n "checking for $ac_word... " >&6; }
5247 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5248 $as_echo_n "(cached) " >&6
5249 else
5250 if test -n "$ac_ct_AS"; then
5251 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5252 else
5253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5254 for as_dir in $PATH
5256 IFS=$as_save_IFS
5257 test -z "$as_dir" && as_dir=.
5258 for ac_exec_ext in '' $ac_executable_extensions; do
5259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5260 ac_cv_prog_ac_ct_AS="as"
5261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5262 break 2
5264 done
5265 done
5266 IFS=$as_save_IFS
5270 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5271 if test -n "$ac_ct_AS"; then
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5273 $as_echo "$ac_ct_AS" >&6; }
5274 else
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5276 $as_echo "no" >&6; }
5279 if test "x$ac_ct_AS" = x; then
5280 AS=""
5281 else
5282 case $cross_compiling:$ac_tool_warned in
5283 yes:)
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5286 ac_tool_warned=yes ;;
5287 esac
5288 AS=$ac_ct_AS
5290 else
5291 AS="$ac_cv_prog_AS"
5294 if test -n "$ac_tool_prefix"; then
5295 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5296 set dummy ${ac_tool_prefix}ld; ac_word=$2
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5298 $as_echo_n "checking for $ac_word... " >&6; }
5299 if test "${ac_cv_prog_LD+set}" = set; then :
5300 $as_echo_n "(cached) " >&6
5301 else
5302 if test -n "$LD"; then
5303 ac_cv_prog_LD="$LD" # Let the user override the test.
5304 else
5305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306 for as_dir in $PATH
5308 IFS=$as_save_IFS
5309 test -z "$as_dir" && as_dir=.
5310 for ac_exec_ext in '' $ac_executable_extensions; do
5311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5312 ac_cv_prog_LD="${ac_tool_prefix}ld"
5313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5314 break 2
5316 done
5317 done
5318 IFS=$as_save_IFS
5322 LD=$ac_cv_prog_LD
5323 if test -n "$LD"; then
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5325 $as_echo "$LD" >&6; }
5326 else
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5328 $as_echo "no" >&6; }
5333 if test -z "$ac_cv_prog_LD"; then
5334 ac_ct_LD=$LD
5335 # Extract the first word of "ld", so it can be a program name with args.
5336 set dummy ld; ac_word=$2
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5338 $as_echo_n "checking for $ac_word... " >&6; }
5339 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
5340 $as_echo_n "(cached) " >&6
5341 else
5342 if test -n "$ac_ct_LD"; then
5343 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5344 else
5345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346 for as_dir in $PATH
5348 IFS=$as_save_IFS
5349 test -z "$as_dir" && as_dir=.
5350 for ac_exec_ext in '' $ac_executable_extensions; do
5351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5352 ac_cv_prog_ac_ct_LD="ld"
5353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5354 break 2
5356 done
5357 done
5358 IFS=$as_save_IFS
5362 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5363 if test -n "$ac_ct_LD"; then
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
5365 $as_echo "$ac_ct_LD" >&6; }
5366 else
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368 $as_echo "no" >&6; }
5371 if test "x$ac_ct_LD" = x; then
5372 LD=""
5373 else
5374 case $cross_compiling:$ac_tool_warned in
5375 yes:)
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5378 ac_tool_warned=yes ;;
5379 esac
5380 LD=$ac_ct_LD
5382 else
5383 LD="$ac_cv_prog_LD"
5386 if test -n "$ac_tool_prefix"; then
5387 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5388 set dummy ${ac_tool_prefix}ar; ac_word=$2
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5390 $as_echo_n "checking for $ac_word... " >&6; }
5391 if test "${ac_cv_prog_AR+set}" = set; then :
5392 $as_echo_n "(cached) " >&6
5393 else
5394 if test -n "$AR"; then
5395 ac_cv_prog_AR="$AR" # Let the user override the test.
5396 else
5397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398 for as_dir in $PATH
5400 IFS=$as_save_IFS
5401 test -z "$as_dir" && as_dir=.
5402 for ac_exec_ext in '' $ac_executable_extensions; do
5403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5404 ac_cv_prog_AR="${ac_tool_prefix}ar"
5405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5406 break 2
5408 done
5409 done
5410 IFS=$as_save_IFS
5414 AR=$ac_cv_prog_AR
5415 if test -n "$AR"; then
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5417 $as_echo "$AR" >&6; }
5418 else
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5420 $as_echo "no" >&6; }
5425 if test -z "$ac_cv_prog_AR"; then
5426 ac_ct_AR=$AR
5427 # Extract the first word of "ar", so it can be a program name with args.
5428 set dummy ar; ac_word=$2
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5430 $as_echo_n "checking for $ac_word... " >&6; }
5431 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5432 $as_echo_n "(cached) " >&6
5433 else
5434 if test -n "$ac_ct_AR"; then
5435 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5436 else
5437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5438 for as_dir in $PATH
5440 IFS=$as_save_IFS
5441 test -z "$as_dir" && as_dir=.
5442 for ac_exec_ext in '' $ac_executable_extensions; do
5443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5444 ac_cv_prog_ac_ct_AR="ar"
5445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5446 break 2
5448 done
5449 done
5450 IFS=$as_save_IFS
5454 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5455 if test -n "$ac_ct_AR"; then
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5457 $as_echo "$ac_ct_AR" >&6; }
5458 else
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5460 $as_echo "no" >&6; }
5463 if test "x$ac_ct_AR" = x; then
5464 AR=""
5465 else
5466 case $cross_compiling:$ac_tool_warned in
5467 yes:)
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5470 ac_tool_warned=yes ;;
5471 esac
5472 AR=$ac_ct_AR
5474 else
5475 AR="$ac_cv_prog_AR"
5478 if test -n "$ac_tool_prefix"; then
5479 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5480 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5482 $as_echo_n "checking for $ac_word... " >&6; }
5483 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5484 $as_echo_n "(cached) " >&6
5485 else
5486 if test -n "$RANLIB"; then
5487 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5488 else
5489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490 for as_dir in $PATH
5492 IFS=$as_save_IFS
5493 test -z "$as_dir" && as_dir=.
5494 for ac_exec_ext in '' $ac_executable_extensions; do
5495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5496 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5498 break 2
5500 done
5501 done
5502 IFS=$as_save_IFS
5506 RANLIB=$ac_cv_prog_RANLIB
5507 if test -n "$RANLIB"; then
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5509 $as_echo "$RANLIB" >&6; }
5510 else
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512 $as_echo "no" >&6; }
5517 if test -z "$ac_cv_prog_RANLIB"; then
5518 ac_ct_RANLIB=$RANLIB
5519 # Extract the first word of "ranlib", so it can be a program name with args.
5520 set dummy ranlib; ac_word=$2
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5522 $as_echo_n "checking for $ac_word... " >&6; }
5523 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5524 $as_echo_n "(cached) " >&6
5525 else
5526 if test -n "$ac_ct_RANLIB"; then
5527 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5528 else
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 for as_dir in $PATH
5532 IFS=$as_save_IFS
5533 test -z "$as_dir" && as_dir=.
5534 for ac_exec_ext in '' $ac_executable_extensions; do
5535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5536 ac_cv_prog_ac_ct_RANLIB="ranlib"
5537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5538 break 2
5540 done
5541 done
5542 IFS=$as_save_IFS
5546 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5547 if test -n "$ac_ct_RANLIB"; then
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5549 $as_echo "$ac_ct_RANLIB" >&6; }
5550 else
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5552 $as_echo "no" >&6; }
5555 if test "x$ac_ct_RANLIB" = x; then
5556 RANLIB=":"
5557 else
5558 case $cross_compiling:$ac_tool_warned in
5559 yes:)
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5562 ac_tool_warned=yes ;;
5563 esac
5564 RANLIB=$ac_ct_RANLIB
5566 else
5567 RANLIB="$ac_cv_prog_RANLIB"
5570 for ac_prog in gawk mawk nawk awk
5572 # Extract the first word of "$ac_prog", so it can be a program name with args.
5573 set dummy $ac_prog; ac_word=$2
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5575 $as_echo_n "checking for $ac_word... " >&6; }
5576 if test "${ac_cv_prog_AWK+set}" = set; then :
5577 $as_echo_n "(cached) " >&6
5578 else
5579 if test -n "$AWK"; then
5580 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5581 else
5582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5583 for as_dir in $PATH
5585 IFS=$as_save_IFS
5586 test -z "$as_dir" && as_dir=.
5587 for ac_exec_ext in '' $ac_executable_extensions; do
5588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5589 ac_cv_prog_AWK="$ac_prog"
5590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5591 break 2
5593 done
5594 done
5595 IFS=$as_save_IFS
5599 AWK=$ac_cv_prog_AWK
5600 if test -n "$AWK"; then
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5602 $as_echo "$AWK" >&6; }
5603 else
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5605 $as_echo "no" >&6; }
5609 test -n "$AWK" && break
5610 done
5612 for ac_prog in jar fastjar gjar
5614 # Extract the first word of "$ac_prog", so it can be a program name with args.
5615 set dummy $ac_prog; ac_word=$2
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5617 $as_echo_n "checking for $ac_word... " >&6; }
5618 if test "${ac_cv_prog_JAR+set}" = set; then :
5619 $as_echo_n "(cached) " >&6
5620 else
5621 if test -n "$JAR"; then
5622 ac_cv_prog_JAR="$JAR" # Let the user override the test.
5623 else
5624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625 for as_dir in $PATH
5627 IFS=$as_save_IFS
5628 test -z "$as_dir" && as_dir=.
5629 for ac_exec_ext in '' $ac_executable_extensions; do
5630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5631 ac_cv_prog_JAR="$ac_prog"
5632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5633 break 2
5635 done
5636 done
5637 IFS=$as_save_IFS
5641 JAR=$ac_cv_prog_JAR
5642 if test -n "$JAR"; then
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
5644 $as_echo "$JAR" >&6; }
5645 else
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5647 $as_echo "no" >&6; }
5651 test -n "$JAR" && break
5652 done
5653 test -n "$JAR" || JAR="no"
5655 # Extract the first word of "zip", so it can be a program name with args.
5656 set dummy zip; ac_word=$2
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5658 $as_echo_n "checking for $ac_word... " >&6; }
5659 if test "${ac_cv_path_ZIP+set}" = set; then :
5660 $as_echo_n "(cached) " >&6
5661 else
5662 case $ZIP in
5663 [\\/]* | ?:[\\/]*)
5664 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668 for as_dir in $PATH
5670 IFS=$as_save_IFS
5671 test -z "$as_dir" && as_dir=.
5672 for ac_exec_ext in '' $ac_executable_extensions; do
5673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5674 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5676 break 2
5678 done
5679 done
5680 IFS=$as_save_IFS
5682 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
5684 esac
5686 ZIP=$ac_cv_path_ZIP
5687 if test -n "$ZIP"; then
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
5689 $as_echo "$ZIP" >&6; }
5690 else
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692 $as_echo "no" >&6; }
5696 # Extract the first word of "unzip", so it can be a program name with args.
5697 set dummy unzip; ac_word=$2
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5699 $as_echo_n "checking for $ac_word... " >&6; }
5700 if test "${ac_cv_path_UNZIP+set}" = set; then :
5701 $as_echo_n "(cached) " >&6
5702 else
5703 case $UNZIP in
5704 [\\/]* | ?:[\\/]*)
5705 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5709 for as_dir in $PATH
5711 IFS=$as_save_IFS
5712 test -z "$as_dir" && as_dir=.
5713 for ac_exec_ext in '' $ac_executable_extensions; do
5714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5715 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
5716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5717 break 2
5719 done
5720 done
5721 IFS=$as_save_IFS
5723 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
5725 esac
5727 UNZIP=$ac_cv_path_UNZIP
5728 if test -n "$UNZIP"; then
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
5730 $as_echo "$UNZIP" >&6; }
5731 else
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733 $as_echo "no" >&6; }
5738 # We need a jar that supports -@. This is a GNU extension.
5739 if test "$JAR" != no; then
5740 rm -f config-test.jar
5741 echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
5742 if test -f config-test.jar; then
5743 rm -f config-test.jar
5744 else
5745 JAR=no
5749 # Prefer the jar we found, but fall back to our jar script.
5750 if test "$JAR" = no; then
5751 if test "$ZIP" = no; then
5752 as_fn_error "cannot find neither zip nor jar, cannot continue" "$LINENO" 5
5753 else
5754 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
5755 JAR=`pwd`/scripts/jar
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5763 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5764 # Check whether --enable-maintainer-mode was given.
5765 if test "${enable_maintainer_mode+set}" = set; then :
5766 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5767 else
5768 USE_MAINTAINER_MODE=no
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5772 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5773 if test $USE_MAINTAINER_MODE = yes; then
5774 MAINTAINER_MODE_TRUE=
5775 MAINTAINER_MODE_FALSE='#'
5776 else
5777 MAINTAINER_MODE_TRUE='#'
5778 MAINTAINER_MODE_FALSE=
5781 MAINT=$MAINTAINER_MODE_TRUE
5787 # configure.host sets the following important variables
5788 # libgcj_cflags - host specific C compiler flags
5789 # libgcj_cxxflags - host specific C++ compiler flags
5790 # libgcj_javaflags - host specific Java compiler flags
5791 # libgcj_sublib_ltflags - host specific Libtool flags
5792 # (only used when building sublibs)
5793 # and a number of others; see the list at the start of the file.
5795 libgcj_cflags=
5796 libgcj_cxxflags=
5797 libgcj_javaflags=
5798 libgcj_sublib_ltflags=
5800 . ${srcdir}/configure.host
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5803 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5804 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5805 $as_echo_n "(cached) " >&6
5806 else
5807 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5808 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5809 acl_cv_prog_gnu_ld=yes
5810 else
5811 acl_cv_prog_gnu_ld=no
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5815 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5816 with_gnu_ld=$acl_cv_prog_gnu_ld
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
5819 $as_echo_n "checking if the GNU linker ($LD) supports -Bsymbolic-functions... " >&6; }
5820 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then :
5821 $as_echo_n "(cached) " >&6
5822 else
5824 acl_cv_prog_gnu_ld_symbolic=no
5826 if test x"$with_gnu_ld" = x"yes"; then
5827 if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
5828 acl_cv_prog_gnu_ld_symbolic=yes
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld_symbolic" >&5
5833 $as_echo "$acl_cv_prog_gnu_ld_symbolic" >&6; }
5834 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
5835 SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
5836 else
5837 SYMBOLIC_LDFLAGS=''
5840 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
5841 if test -z "$libgcj_ld_symbolic"; then
5842 libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
5845 LIBGCJ_CFLAGS="${libgcj_cflags}"
5846 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
5847 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
5848 LIBGCJ_SUBLIB_LTFLAGS="${libgcj_sublib_ltflags}"
5849 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
5850 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
5858 # Only use libltdl for non-newlib builds.
5859 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
5861 $as_echo_n "checking dynamic linker characteristics... " >&6; }
5862 library_names_spec=
5863 libname_spec='lib$name'
5864 soname_spec=
5865 shrext=".so"
5866 postinstall_cmds=
5867 postuninstall_cmds=
5868 finish_cmds=
5869 finish_eval=
5870 shlibpath_var=
5871 shlibpath_overrides_runpath=unknown
5872 version_type=none
5873 dynamic_linker="$host_os ld.so"
5874 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5875 if test "$GCC" = yes; then
5876 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
5877 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
5878 # if the path contains ";" then we assume it to be the separator
5879 # otherwise default to the standard path separator (i.e. ":") - it is
5880 # assumed that no part of a normal pathname contains ";" but that should
5881 # okay in the real world where ";" in dirpaths is itself problematic.
5882 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
5883 else
5884 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
5886 else
5887 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5889 need_lib_prefix=unknown
5890 hardcode_into_libs=no
5892 # when you set need_version to no, make sure it does not cause -set_version
5893 # flags to be left without arguments
5894 need_version=unknown
5896 case $host_os in
5897 aix3*)
5898 version_type=linux
5899 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
5900 shlibpath_var=LIBPATH
5902 # AIX 3 has no versioning support, so we append a major version to the name.
5903 soname_spec='${libname}${release}${shared_ext}$major'
5906 aix[4-9]*)
5907 version_type=linux
5908 need_lib_prefix=no
5909 need_version=no
5910 hardcode_into_libs=yes
5911 if test "$host_cpu" = ia64; then
5912 # AIX 5 supports IA64
5913 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
5914 shlibpath_var=LD_LIBRARY_PATH
5915 else
5916 # With GCC up to 2.95.x, collect2 would create an import file
5917 # for dependence libraries. The import file would start with
5918 # the line `#! .'. This would cause the generated library to
5919 # depend on `.', always an invalid library. This was fixed in
5920 # development snapshots of GCC prior to 3.0.
5921 case $host_os in
5922 aix4 | aix4.[01] | aix4.[01].*)
5923 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5924 echo ' yes '
5925 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5927 else
5928 can_build_shared=no
5931 esac
5932 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
5933 # soname into executable. Probably we can add versioning support to
5934 # collect2, so additional links can be useful in future.
5935 if test "$aix_use_runtimelinking" = yes; then
5936 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5937 # instead of lib<name>.a to let people know that these are not
5938 # typical AIX shared libraries.
5939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5940 else
5941 # We preserve .a as extension for shared libraries through AIX4.2
5942 # and later when we are not doing run time linking.
5943 library_names_spec='${libname}${release}.a $libname.a'
5944 soname_spec='${libname}${release}${shared_ext}$major'
5946 shlibpath_var=LIBPATH
5950 amigaos*)
5951 library_names_spec='$libname.ixlibrary $libname.a'
5952 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5953 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'
5956 beos*)
5957 library_names_spec='${libname}${shared_ext}'
5958 dynamic_linker="$host_os ld.so"
5959 shlibpath_var=LIBRARY_PATH
5962 bsdi4*)
5963 version_type=linux
5964 need_version=no
5965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5966 soname_spec='${libname}${release}${shared_ext}$major'
5967 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5968 shlibpath_var=LD_LIBRARY_PATH
5969 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5970 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5971 # the default ld.so.conf also contains /usr/contrib/lib and
5972 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5973 # libtool to hard-code these into programs
5976 cygwin* | mingw* | pw32*)
5977 version_type=windows
5978 shrext=".dll"
5979 need_version=no
5980 need_lib_prefix=no
5982 case $GCC,$host_os in
5983 yes,cygwin* | yes,mingw* | yes,pw32*)
5984 library_names_spec='$libname.dll.a'
5985 # DLL is installed to $(libdir)/../bin by postinstall_cmds
5986 postinstall_cmds='base_file=`basename \${file}`~
5987 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
5988 dldir=$destdir/`dirname \$dlpath`~
5989 test -d \$dldir || mkdir -p \$dldir~
5990 $install_prog $dir/$dlname \$dldir/$dlname'
5991 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
5992 dlpath=$dir/\$dldll~
5993 $rm \$dlpath'
5994 shlibpath_overrides_runpath=yes
5996 case $host_os in
5997 cygwin*)
5998 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
5999 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6000 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
6002 mingw*)
6003 # MinGW DLLs use traditional 'lib' prefix
6004 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6005 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
6006 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6007 # It is most probably a Windows format PATH printed by
6008 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6009 # path with ; separators, and with drive letters. We can handle the
6010 # drive letters (cygwin fileutils understands them), so leave them,
6011 # especially as we might pass files found there to a mingw objdump,
6012 # which wouldn't understand a cygwinified path. Ahh.
6013 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6014 else
6015 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6018 pw32*)
6019 # pw32 DLLs use 'pw' prefix rather than 'lib'
6020 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
6022 esac
6026 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6028 esac
6029 dynamic_linker='Win32 ld.exe'
6030 # FIXME: first we should search . and the directory the executable is in
6031 shlibpath_var=PATH
6034 darwin* | rhapsody*)
6035 dynamic_linker="$host_os dyld"
6036 version_type=darwin
6037 need_lib_prefix=no
6038 need_version=no
6039 # FIXME: Relying on posixy $() will cause problems for
6040 # cross-compilation, but unfortunately the echo tests do not
6041 # yet detect zsh echo's removal of \ escapes.
6042 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6043 soname_spec='${libname}${release}${major}$shared_ext'
6044 shlibpath_overrides_runpath=yes
6045 shlibpath_var=DYLD_LIBRARY_PATH
6046 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
6047 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6048 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6049 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"`
6051 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6054 dgux*)
6055 version_type=linux
6056 need_lib_prefix=no
6057 need_version=no
6058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6059 soname_spec='${libname}${release}${shared_ext}$major'
6060 shlibpath_var=LD_LIBRARY_PATH
6063 freebsd1*)
6064 dynamic_linker=no
6067 freebsd*)
6068 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6069 version_type=freebsd-$objformat
6070 case $version_type in
6071 freebsd-elf*)
6072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6073 need_version=no
6074 need_lib_prefix=no
6076 freebsd-*)
6077 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6078 need_version=yes
6080 esac
6081 shlibpath_var=LD_LIBRARY_PATH
6082 case $host_os in
6083 freebsd2*)
6084 shlibpath_overrides_runpath=yes
6086 freebsd3.01* | freebsdelf3.01*)
6087 shlibpath_overrides_runpath=yes
6088 hardcode_into_libs=yes
6090 *) # from 3.2 on
6091 shlibpath_overrides_runpath=no
6092 hardcode_into_libs=yes
6094 esac
6097 gnu*)
6098 version_type=linux
6099 need_lib_prefix=no
6100 need_version=no
6101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6102 soname_spec='${libname}${release}${shared_ext}$major'
6103 shlibpath_var=LD_LIBRARY_PATH
6104 hardcode_into_libs=yes
6107 hpux9* | hpux10* | hpux11*)
6108 # Give a soname corresponding to the major version so that dld.sl refuses to
6109 # link against other versions.
6110 version_type=sunos
6111 need_lib_prefix=no
6112 need_version=no
6113 case "$host_cpu" in
6114 ia64*)
6115 shrext='.so'
6116 hardcode_into_libs=yes
6117 dynamic_linker="$host_os dld.so"
6118 shlibpath_var=LD_LIBRARY_PATH
6119 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6121 soname_spec='${libname}${release}${shared_ext}$major'
6122 if test "X$HPUX_IA64_MODE" = X32; then
6123 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6124 else
6125 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6127 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6129 hppa*64*)
6130 shrext='.sl'
6131 hardcode_into_libs=yes
6132 dynamic_linker="$host_os dld.sl"
6133 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6134 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6136 soname_spec='${libname}${release}${shared_ext}$major'
6137 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6138 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6141 shrext='.sl'
6142 dynamic_linker="$host_os dld.sl"
6143 shlibpath_var=SHLIB_PATH
6144 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6146 soname_spec='${libname}${release}${shared_ext}$major'
6148 esac
6149 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6150 postinstall_cmds='chmod 555 $lib'
6153 irix5* | irix6* | nonstopux*)
6154 case $host_os in
6155 nonstopux*) version_type=nonstopux ;;
6157 if test "$lt_cv_prog_gnu_ld" = yes; then
6158 version_type=linux
6159 else
6160 version_type=irix
6161 fi ;;
6162 esac
6163 need_lib_prefix=no
6164 need_version=no
6165 soname_spec='${libname}${release}${shared_ext}$major'
6166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6167 case $host_os in
6168 irix5* | nonstopux*)
6169 libsuff= shlibsuff=
6172 case $LD in # libtool.m4 will add one of these switches to LD
6173 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6174 libsuff= shlibsuff= libmagic=32-bit;;
6175 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6176 libsuff=32 shlibsuff=N32 libmagic=N32;;
6177 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6178 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6179 *) libsuff= shlibsuff= libmagic=never-match;;
6180 esac
6182 esac
6183 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6184 shlibpath_overrides_runpath=no
6185 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6186 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6187 hardcode_into_libs=yes
6190 # No shared lib support for Linux oldld, aout, or coff.
6191 linux*oldld* | linux*aout* | linux*coff*)
6192 dynamic_linker=no
6195 # This must be Linux ELF.
6196 linux*|k*bsd*-gnu)
6197 version_type=linux
6198 need_lib_prefix=no
6199 need_version=no
6200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6201 soname_spec='${libname}${release}${shared_ext}$major'
6202 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6203 shlibpath_var=LD_LIBRARY_PATH
6204 shlibpath_overrides_runpath=no
6205 # This implies no fast_install, which is unacceptable.
6206 # Some rework will be needed to allow for fast_install
6207 # before this can be enabled.
6208 hardcode_into_libs=yes
6210 # We used to test for /lib/ld.so.1 and disable shared libraries on
6211 # powerpc, because MkLinux only supported shared libraries with the
6212 # GNU dynamic linker. Since this was broken with cross compilers,
6213 # most powerpc-linux boxes support dynamic linking these days and
6214 # people can always --disable-shared, the test was removed, and we
6215 # assume the GNU/Linux dynamic linker is in use.
6216 dynamic_linker='GNU/Linux ld.so'
6219 netbsd*)
6220 version_type=sunos
6221 need_lib_prefix=no
6222 need_version=no
6223 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6225 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6226 dynamic_linker='NetBSD (a.out) ld.so'
6227 else
6228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
6229 soname_spec='${libname}${release}${shared_ext}$major'
6230 dynamic_linker='NetBSD ld.elf_so'
6232 shlibpath_var=LD_LIBRARY_PATH
6233 shlibpath_overrides_runpath=yes
6234 hardcode_into_libs=yes
6237 newsos6)
6238 version_type=linux
6239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6240 shlibpath_var=LD_LIBRARY_PATH
6241 shlibpath_overrides_runpath=yes
6244 nto-qnx)
6245 version_type=linux
6246 need_lib_prefix=no
6247 need_version=no
6248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6249 soname_spec='${libname}${release}${shared_ext}$major'
6250 shlibpath_var=LD_LIBRARY_PATH
6251 shlibpath_overrides_runpath=yes
6254 openbsd*)
6255 version_type=sunos
6256 need_lib_prefix=no
6257 need_version=no
6258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6259 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6260 shlibpath_var=LD_LIBRARY_PATH
6261 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6262 case $host_os in
6263 openbsd2.[89] | openbsd2.[89].*)
6264 shlibpath_overrides_runpath=no
6267 shlibpath_overrides_runpath=yes
6269 esac
6270 else
6271 shlibpath_overrides_runpath=yes
6275 os2*)
6276 libname_spec='$name'
6277 shrext=".dll"
6278 need_lib_prefix=no
6279 library_names_spec='$libname${shared_ext} $libname.a'
6280 dynamic_linker='OS/2 ld.exe'
6281 shlibpath_var=LIBPATH
6284 osf3* | osf4* | osf5*)
6285 version_type=osf
6286 need_lib_prefix=no
6287 need_version=no
6288 soname_spec='${libname}${release}${shared_ext}$major'
6289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6290 shlibpath_var=LD_LIBRARY_PATH
6291 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6292 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6295 sco3.2v5*)
6296 version_type=osf
6297 soname_spec='${libname}${release}${shared_ext}$major'
6298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6299 shlibpath_var=LD_LIBRARY_PATH
6302 solaris*)
6303 version_type=linux
6304 need_lib_prefix=no
6305 need_version=no
6306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6307 soname_spec='${libname}${release}${shared_ext}$major'
6308 shlibpath_var=LD_LIBRARY_PATH
6309 shlibpath_overrides_runpath=yes
6310 hardcode_into_libs=yes
6311 # ldd complains unless libraries are executable
6312 postinstall_cmds='chmod +x $lib'
6315 sunos4*)
6316 version_type=sunos
6317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6318 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6319 shlibpath_var=LD_LIBRARY_PATH
6320 shlibpath_overrides_runpath=yes
6321 if test "$with_gnu_ld" = yes; then
6322 need_lib_prefix=no
6324 need_version=yes
6327 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6328 version_type=linux
6329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6330 soname_spec='${libname}${release}${shared_ext}$major'
6331 shlibpath_var=LD_LIBRARY_PATH
6332 case $host_vendor in
6333 sni)
6334 shlibpath_overrides_runpath=no
6335 need_lib_prefix=no
6336 export_dynamic_flag_spec='${wl}-Blargedynsym'
6337 runpath_var=LD_RUN_PATH
6339 siemens)
6340 need_lib_prefix=no
6342 motorola)
6343 need_lib_prefix=no
6344 need_version=no
6345 shlibpath_overrides_runpath=no
6346 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6348 esac
6351 sysv4*MP*)
6352 if test -d /usr/nec ;then
6353 version_type=linux
6354 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
6355 soname_spec='$libname${shared_ext}.$major'
6356 shlibpath_var=LD_LIBRARY_PATH
6360 uts4*)
6361 version_type=linux
6362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6363 soname_spec='${libname}${release}${shared_ext}$major'
6364 shlibpath_var=LD_LIBRARY_PATH
6368 dynamic_linker=no
6370 esac
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
6372 $as_echo "$dynamic_linker" >&6; }
6373 test "$dynamic_linker" = no && can_build_shared=no
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
6377 $as_echo_n "checking which variable specifies run-time library path... " >&6; }
6378 if test "${libltdl_cv_shlibpath_var+set}" = set; then :
6379 $as_echo_n "(cached) " >&6
6380 else
6381 libltdl_cv_shlibpath_var="$shlibpath_var"
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
6384 $as_echo "$libltdl_cv_shlibpath_var" >&6; }
6385 if test -n "$libltdl_cv_shlibpath_var"; then
6387 cat >>confdefs.h <<_ACEOF
6388 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
6389 _ACEOF
6395 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
6398 # Possibly build libgcj as many sub-libraries.
6399 # Check whether --enable-libgcj-sublibs was given.
6400 if test "${enable_libgcj_sublibs+set}" = set; then :
6401 enableval=$enable_libgcj_sublibs;
6405 if test -z "$enable_libgcj_sublibs"; then
6406 enable_libgcj_sublibs=$enable_libgcj_sublibs_default
6408 if test "$enable_libgcj_sublibs" = yes; then
6409 BUILD_SUBLIBS_TRUE=
6410 BUILD_SUBLIBS_FALSE='#'
6411 else
6412 BUILD_SUBLIBS_TRUE='#'
6413 BUILD_SUBLIBS_FALSE=
6416 if test "$enable_libgcj_sublibs" = yes ; then
6417 # In theory we could make do with only one override and simply
6418 # tag "_bc" onto the end of it when we use it to generate the
6419 # spec, but that's an ugly thing to do when there are multiple
6420 # words in the string and you're relying on the ordering to
6421 # append the correct one.
6422 libgcj_spec_lgcj_override="-lgcj-noncore -lgcj"
6423 libgcj_spec_lgcj_bc_override="-lgcj-noncore -lgcj_bc"
6427 # See if the user has requested runtime debugging.
6428 LIBGCJDEBUG="disable"
6430 # Check whether --enable-libgcj-debug was given.
6431 if test "${enable_libgcj_debug+set}" = set; then :
6432 enableval=$enable_libgcj_debug; if test "$enable_libgcj_debug" = yes; then
6434 $as_echo "#define __GCJ_DEBUG 1" >>confdefs.h
6436 LIBGCJDEBUG="enable"
6442 # Check whether --with-escher was given.
6443 if test "${with_escher+set}" = set; then :
6444 withval=$with_escher;
6447 case "$with_escher" in
6449 use_escher=false
6451 "no")
6452 use_escher=false
6454 "yes")
6455 as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
6458 use_escher=true
6460 esac
6462 # Determine which AWT peer libraries to build
6463 # Check whether --enable-java-awt was given.
6464 if test "${enable_java_awt+set}" = set; then :
6465 enableval=$enable_java_awt;
6469 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6470 use_xlib_awt=""
6471 use_gtk_awt=""
6472 use_qt_awt=""
6473 use_x_awt=""
6474 # The default toolkit to use is the first one specified.
6475 TOOLKIT=
6478 for peer in $peerlibs ; do
6479 case $peer in
6480 xlib)
6481 if test "$no_x" = yes; then
6482 echo "*** xlib peers requested but no X library available" 1>&2
6483 exit 1
6484 else
6485 use_xlib_awt="yes"
6486 if test -z "$TOOLKIT"; then
6487 TOOLKIT=gnu.awt.xlib.XToolkit
6491 gtk)
6492 if test "$no_x" = yes; then
6493 echo "*** gtk peers requested but no X library available" 1>&2
6494 exit 1
6495 else
6496 use_gtk_awt=yes
6497 if test -z "$TOOLKIT"; then
6498 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
6503 if test "$no_x" = yes; then
6504 # Perhaps we should admit the possibility of embedded Qt.
6505 echo "*** Qt peers requested but no X library available" 1>&2
6506 exit 1
6507 else
6508 use_qt_awt=yes
6509 if test -z "$TOOLKIT"; then
6510 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
6515 use_x_awt=yes
6516 if test -z "$TOOLKIT"; then
6517 TOOLKIT=gnu.java.awt.peer.x.XToolkit
6521 use_xlib_awt=
6522 use_gtk_awt=
6523 use_qt_awt=
6524 use_x_awt=
6525 break
6528 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
6529 exit 1
6530 esac
6531 done
6533 if test "$use_xlib_awt" = yes; then
6534 XLIB_AWT_TRUE=
6535 XLIB_AWT_FALSE='#'
6536 else
6537 XLIB_AWT_TRUE='#'
6538 XLIB_AWT_FALSE=
6541 if test "$use_x_awt" = yes; then
6542 X_AWT_TRUE=
6543 X_AWT_FALSE='#'
6544 else
6545 X_AWT_TRUE='#'
6546 X_AWT_FALSE=
6551 cat >>confdefs.h <<_ACEOF
6552 #define AWT_TOOLKIT "$TOOLKIT"
6553 _ACEOF
6556 expanded_prefix=$prefix
6557 if test "X$prefix" = XNONE; then
6558 expanded_prefix=${ac_default_prefix}
6562 cat >>confdefs.h <<_ACEOF
6563 #define LIBGCJ_PREFIX "$expanded_prefix"
6564 _ACEOF
6567 # Create standard.omit based on decisions we just made.
6568 cp $srcdir/standard.omit.in standard.omit
6569 if test "$use_xlib_awt" != yes; then
6570 echo gnu/awt/xlib >> standard.omit
6571 echo gnu/gcj/xlib >> standard.omit
6573 if test "$use_x_awt" != yes; then
6574 echo gnu/java/awt/peer/x >> standard.omit
6577 # Tools that need to be compiled against classpath's tools classes
6578 : > vm-tools-packages
6579 for package in gnu/gcj/tools/gc_analyze ; do
6580 echo $package >> standard.omit
6581 echo $package >> vm-tools-packages
6582 done
6584 if test -z "${with_multisubdir}"; then
6585 builddotdot=.
6586 else
6587 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
6590 NATIVE=yes
6592 # Which gcj and host gcj (for ecjx) do we use?
6593 which_gcj=default
6594 host_exeext=${ac_exeext}
6595 GCJ_FOR_ECJX=
6596 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
6597 if test -n "${with_cross_host}"; then
6598 # We are being configured with a cross compiler. We can't
6599 # use ac_exeext, because that is for the target platform.
6600 NATIVE=no
6601 cross_host_exeext=
6602 GCJ_FOR_ECJX="${with_cross_host}-gcj"
6603 case "${with_cross_host}" in
6604 *mingw* | *cygwin*)
6605 cross_host_exeext=.exe
6607 esac
6608 host_exeext=${cross_host_exeext}
6609 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
6610 if test x"$build_noncanonical" = x"$with_cross_host"; then
6611 # Ordinary cross (host!=target and host=build)
6612 which_gcj=built
6613 else
6614 # Canadian cross (host!=target and host!=build)
6615 which_gcj=cross
6617 else
6618 which_gcj=cross
6620 else
6621 # We are being configured with a native or crossed-native compiler
6622 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
6623 if test x"$build" = x"$host"; then
6624 # True native build (host=target and host=build)
6625 which_gcj=built
6626 else
6627 # Crossed-native build (host=target and host!=build)
6628 which_gcj=cross
6630 else
6631 which_gcj=path
6634 libgcjdir=`${PWDCMD-pwd}`
6635 case $GCJ in
6636 *" -B"*)
6637 # Just in case there is a comma in the build dir, quote it for the
6638 # sed command below.
6639 case $libgcjdir in
6640 *[,\\]*) qlibgcjdir=`echo "$libgcjdir" | sed 's:[,\\]:\\&:g'`;;
6641 *) qlibgcjdir=$libgcjdir;;
6642 esac
6643 GCJ=`echo "$GCJ" | sed "s, -B, -B$qlibgcjdir/&,"`
6646 GCJ=$GCJ" -B$libgcjdir/"
6648 esac
6649 case "${which_gcj}" in
6650 built)
6651 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
6653 cross)
6654 if test "x${with_newlib}" = "xyes"; then
6655 # FIXME (comment): Why is this needed?
6656 GCC_UNWIND_INCLUDE=
6658 GCJH='$(target_noncanonical)-gcjh'
6660 path)
6661 GCJH=gcjh
6663 esac
6664 JAVAC="$GCJ -C"
6665 export JAVAC
6671 # Create it, so that compile/link tests don't fail
6672 test -f libgcj.spec || touch libgcj.spec
6676 # Set up to configure Classpath.
6677 # FIXME: no supported way to pass args in autoconf.
6678 # Disable tool wrappers to avoid ltdl.h configure check.
6679 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
6680 ac_configure_args="$ac_configure_args --disable-load-library"
6681 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
6682 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
6683 dir1=`cd $srcdir && pwd`
6684 dir2=`pwd`
6685 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
6686 ac_configure_args="$ac_configure_args --disable-core-jni"
6687 ac_configure_args="$ac_configure_args --disable-examples"
6688 ac_configure_args="$ac_configure_args --with-glibj=build"
6689 if test "$browser_plugin_enabled" != yes; then
6690 ac_configure_args="$ac_configure_args --disable-plugin"
6691 else
6692 ac_configure_args="$ac_configure_args --enable-plugin"
6694 if test "$gconf_enabled" != yes; then
6695 ac_configure_args="$ac_configure_args --disable-gconf-peer"
6696 ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
6698 if test "$use_gtk_awt" != yes; then
6699 ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
6701 if test "$use_qt_awt" != yes; then
6702 ac_configure_args="$ac_configure_args --disable-qt-peer"
6703 else
6704 # We need this as qt is disabled by default in classpath.
6705 ac_configure_args="$ac_configure_args --enable-qt-peer"
6707 if test "$use_x_awt" != yes; then
6708 ac_configure_args="$ac_configure_args --without-escher"
6709 else
6710 # We need this as escher is disabled by default in classpath.
6711 if test "$use_escher" != true; then
6712 as_fn_error "Please supply an absolute path to the Escher library" "$LINENO" 5
6713 else
6714 ac_configure_args="$ac_configure_args --with-escher=$with_escher"
6717 if test "x$BUILD_GJDOC" = xno; then
6718 ac_configure_args="$ac_configure_args --disable-gjdoc"
6720 # -Werror causes unavoidable problems in code using alsa.
6721 ac_configure_args="$ac_configure_args --disable-regen-headers"
6722 ac_configure_args="$ac_configure_args --disable-Werror"
6724 # Only use libltdl for non-newlib builds.
6725 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
6726 case $enable_ltdl_convenience in
6727 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
6728 "") enable_ltdl_convenience=yes
6729 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
6730 esac
6731 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
6732 LTDLINCL='-I${top_srcdir}/''libltdl'
6733 # For backwards non-gettext consistent compatibility...
6734 INCLTDL="$LTDLINCL"
6736 enable_dlopen=yes
6740 DIRLTDL=libltdl
6742 $as_echo "#define USE_LTDL 1" >>confdefs.h
6744 # Sigh. Libtool's macro doesn't do the right thing.
6745 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
6746 # FIXME: this is a hack.
6747 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
6748 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
6753 case `pwd` in
6754 *\ * | *\ *)
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6756 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6757 esac
6761 macro_version='2.2.7a'
6762 macro_revision='1.3134'
6776 ltmain="$ac_aux_dir/ltmain.sh"
6778 # Backslashify metacharacters that are still active within
6779 # double-quoted strings.
6780 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6782 # Same as above, but do not quote variable references.
6783 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6785 # Sed substitution to delay expansion of an escaped shell variable in a
6786 # double_quote_subst'ed string.
6787 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6789 # Sed substitution to delay expansion of an escaped single quote.
6790 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6792 # Sed substitution to avoid accidental globbing in evaled expressions
6793 no_glob_subst='s/\*/\\\*/g'
6795 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6796 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6797 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6800 $as_echo_n "checking how to print strings... " >&6; }
6801 # Test print first, because it will be a builtin if present.
6802 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6803 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6804 ECHO='print -r --'
6805 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6806 ECHO='printf %s\n'
6807 else
6808 # Use this function as a fallback that always works.
6809 func_fallback_echo ()
6811 eval 'cat <<_LTECHO_EOF
6813 _LTECHO_EOF'
6815 ECHO='func_fallback_echo'
6818 # func_echo_all arg...
6819 # Invoke $ECHO with all args, space-separated.
6820 func_echo_all ()
6822 $ECHO ""
6825 case "$ECHO" in
6826 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6827 $as_echo "printf" >&6; } ;;
6828 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6829 $as_echo "print -r" >&6; } ;;
6830 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6831 $as_echo "cat" >&6; } ;;
6832 esac
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6848 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6849 if test "${ac_cv_path_SED+set}" = set; then :
6850 $as_echo_n "(cached) " >&6
6851 else
6852 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6853 for ac_i in 1 2 3 4 5 6 7; do
6854 ac_script="$ac_script$as_nl$ac_script"
6855 done
6856 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6857 { ac_script=; unset ac_script;}
6858 if test -z "$SED"; then
6859 ac_path_SED_found=false
6860 # Loop through the user's path and test for each of PROGNAME-LIST
6861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862 for as_dir in $PATH
6864 IFS=$as_save_IFS
6865 test -z "$as_dir" && as_dir=.
6866 for ac_prog in sed gsed; do
6867 for ac_exec_ext in '' $ac_executable_extensions; do
6868 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6869 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6870 # Check for GNU ac_path_SED and select it if it is found.
6871 # Check for GNU $ac_path_SED
6872 case `"$ac_path_SED" --version 2>&1` in
6873 *GNU*)
6874 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6876 ac_count=0
6877 $as_echo_n 0123456789 >"conftest.in"
6878 while :
6880 cat "conftest.in" "conftest.in" >"conftest.tmp"
6881 mv "conftest.tmp" "conftest.in"
6882 cp "conftest.in" "conftest.nl"
6883 $as_echo '' >> "conftest.nl"
6884 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6885 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6886 as_fn_arith $ac_count + 1 && ac_count=$as_val
6887 if test $ac_count -gt ${ac_path_SED_max-0}; then
6888 # Best one so far, save it but keep looking for a better one
6889 ac_cv_path_SED="$ac_path_SED"
6890 ac_path_SED_max=$ac_count
6892 # 10*(2^10) chars as input seems more than enough
6893 test $ac_count -gt 10 && break
6894 done
6895 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6896 esac
6898 $ac_path_SED_found && break 3
6899 done
6900 done
6901 done
6902 IFS=$as_save_IFS
6903 if test -z "$ac_cv_path_SED"; then
6904 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6906 else
6907 ac_cv_path_SED=$SED
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6912 $as_echo "$ac_cv_path_SED" >&6; }
6913 SED="$ac_cv_path_SED"
6914 rm -f conftest.sed
6916 test -z "$SED" && SED=sed
6917 Xsed="$SED -e 1s/^X//"
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6930 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6931 if test "${ac_cv_path_GREP+set}" = set; then :
6932 $as_echo_n "(cached) " >&6
6933 else
6934 if test -z "$GREP"; then
6935 ac_path_GREP_found=false
6936 # Loop through the user's path and test for each of PROGNAME-LIST
6937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6940 IFS=$as_save_IFS
6941 test -z "$as_dir" && as_dir=.
6942 for ac_prog in grep ggrep; do
6943 for ac_exec_ext in '' $ac_executable_extensions; do
6944 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6945 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6946 # Check for GNU ac_path_GREP and select it if it is found.
6947 # Check for GNU $ac_path_GREP
6948 case `"$ac_path_GREP" --version 2>&1` in
6949 *GNU*)
6950 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6952 ac_count=0
6953 $as_echo_n 0123456789 >"conftest.in"
6954 while :
6956 cat "conftest.in" "conftest.in" >"conftest.tmp"
6957 mv "conftest.tmp" "conftest.in"
6958 cp "conftest.in" "conftest.nl"
6959 $as_echo 'GREP' >> "conftest.nl"
6960 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6961 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6962 as_fn_arith $ac_count + 1 && ac_count=$as_val
6963 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6964 # Best one so far, save it but keep looking for a better one
6965 ac_cv_path_GREP="$ac_path_GREP"
6966 ac_path_GREP_max=$ac_count
6968 # 10*(2^10) chars as input seems more than enough
6969 test $ac_count -gt 10 && break
6970 done
6971 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6972 esac
6974 $ac_path_GREP_found && break 3
6975 done
6976 done
6977 done
6978 IFS=$as_save_IFS
6979 if test -z "$ac_cv_path_GREP"; then
6980 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6982 else
6983 ac_cv_path_GREP=$GREP
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6988 $as_echo "$ac_cv_path_GREP" >&6; }
6989 GREP="$ac_cv_path_GREP"
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6993 $as_echo_n "checking for egrep... " >&6; }
6994 if test "${ac_cv_path_EGREP+set}" = set; then :
6995 $as_echo_n "(cached) " >&6
6996 else
6997 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6998 then ac_cv_path_EGREP="$GREP -E"
6999 else
7000 if test -z "$EGREP"; then
7001 ac_path_EGREP_found=false
7002 # Loop through the user's path and test for each of PROGNAME-LIST
7003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7006 IFS=$as_save_IFS
7007 test -z "$as_dir" && as_dir=.
7008 for ac_prog in egrep; do
7009 for ac_exec_ext in '' $ac_executable_extensions; do
7010 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7011 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7012 # Check for GNU ac_path_EGREP and select it if it is found.
7013 # Check for GNU $ac_path_EGREP
7014 case `"$ac_path_EGREP" --version 2>&1` in
7015 *GNU*)
7016 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7018 ac_count=0
7019 $as_echo_n 0123456789 >"conftest.in"
7020 while :
7022 cat "conftest.in" "conftest.in" >"conftest.tmp"
7023 mv "conftest.tmp" "conftest.in"
7024 cp "conftest.in" "conftest.nl"
7025 $as_echo 'EGREP' >> "conftest.nl"
7026 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7027 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7028 as_fn_arith $ac_count + 1 && ac_count=$as_val
7029 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7030 # Best one so far, save it but keep looking for a better one
7031 ac_cv_path_EGREP="$ac_path_EGREP"
7032 ac_path_EGREP_max=$ac_count
7034 # 10*(2^10) chars as input seems more than enough
7035 test $ac_count -gt 10 && break
7036 done
7037 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7038 esac
7040 $ac_path_EGREP_found && break 3
7041 done
7042 done
7043 done
7044 IFS=$as_save_IFS
7045 if test -z "$ac_cv_path_EGREP"; then
7046 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7048 else
7049 ac_cv_path_EGREP=$EGREP
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7055 $as_echo "$ac_cv_path_EGREP" >&6; }
7056 EGREP="$ac_cv_path_EGREP"
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7060 $as_echo_n "checking for fgrep... " >&6; }
7061 if test "${ac_cv_path_FGREP+set}" = set; then :
7062 $as_echo_n "(cached) " >&6
7063 else
7064 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7065 then ac_cv_path_FGREP="$GREP -F"
7066 else
7067 if test -z "$FGREP"; then
7068 ac_path_FGREP_found=false
7069 # Loop through the user's path and test for each of PROGNAME-LIST
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7073 IFS=$as_save_IFS
7074 test -z "$as_dir" && as_dir=.
7075 for ac_prog in fgrep; do
7076 for ac_exec_ext in '' $ac_executable_extensions; do
7077 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7078 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7079 # Check for GNU ac_path_FGREP and select it if it is found.
7080 # Check for GNU $ac_path_FGREP
7081 case `"$ac_path_FGREP" --version 2>&1` in
7082 *GNU*)
7083 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7085 ac_count=0
7086 $as_echo_n 0123456789 >"conftest.in"
7087 while :
7089 cat "conftest.in" "conftest.in" >"conftest.tmp"
7090 mv "conftest.tmp" "conftest.in"
7091 cp "conftest.in" "conftest.nl"
7092 $as_echo 'FGREP' >> "conftest.nl"
7093 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7094 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7095 as_fn_arith $ac_count + 1 && ac_count=$as_val
7096 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7097 # Best one so far, save it but keep looking for a better one
7098 ac_cv_path_FGREP="$ac_path_FGREP"
7099 ac_path_FGREP_max=$ac_count
7101 # 10*(2^10) chars as input seems more than enough
7102 test $ac_count -gt 10 && break
7103 done
7104 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7105 esac
7107 $ac_path_FGREP_found && break 3
7108 done
7109 done
7110 done
7111 IFS=$as_save_IFS
7112 if test -z "$ac_cv_path_FGREP"; then
7113 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7115 else
7116 ac_cv_path_FGREP=$FGREP
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7122 $as_echo "$ac_cv_path_FGREP" >&6; }
7123 FGREP="$ac_cv_path_FGREP"
7126 test -z "$GREP" && GREP=grep
7146 # Check whether --with-gnu-ld was given.
7147 if test "${with_gnu_ld+set}" = set; then :
7148 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7149 else
7150 with_gnu_ld=no
7153 ac_prog=ld
7154 if test "$GCC" = yes; then
7155 # Check if gcc -print-prog-name=ld gives a path.
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7157 $as_echo_n "checking for ld used by $CC... " >&6; }
7158 case $host in
7159 *-*-mingw*)
7160 # gcc leaves a trailing carriage return which upsets mingw
7161 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7163 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7164 esac
7165 case $ac_prog in
7166 # Accept absolute paths.
7167 [\\/]* | ?:[\\/]*)
7168 re_direlt='/[^/][^/]*/\.\./'
7169 # Canonicalize the pathname of ld
7170 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7171 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7172 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7173 done
7174 test -z "$LD" && LD="$ac_prog"
7177 # If it fails, then pretend we aren't using GCC.
7178 ac_prog=ld
7181 # If it is relative, then search for the first ld in PATH.
7182 with_gnu_ld=unknown
7184 esac
7185 elif test "$with_gnu_ld" = yes; then
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7187 $as_echo_n "checking for GNU ld... " >&6; }
7188 else
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7190 $as_echo_n "checking for non-GNU ld... " >&6; }
7192 if test "${lt_cv_path_LD+set}" = set; then :
7193 $as_echo_n "(cached) " >&6
7194 else
7195 if test -z "$LD"; then
7196 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7197 for ac_dir in $PATH; do
7198 IFS="$lt_save_ifs"
7199 test -z "$ac_dir" && ac_dir=.
7200 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7201 lt_cv_path_LD="$ac_dir/$ac_prog"
7202 # Check to see if the program is GNU ld. I'd rather use --version,
7203 # but apparently some variants of GNU ld only accept -v.
7204 # Break only if it was the GNU/non-GNU ld that we prefer.
7205 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7206 *GNU* | *'with BFD'*)
7207 test "$with_gnu_ld" != no && break
7210 test "$with_gnu_ld" != yes && break
7212 esac
7214 done
7215 IFS="$lt_save_ifs"
7216 else
7217 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7221 LD="$lt_cv_path_LD"
7222 if test -n "$LD"; then
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7224 $as_echo "$LD" >&6; }
7225 else
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7227 $as_echo "no" >&6; }
7229 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7231 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7232 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7233 $as_echo_n "(cached) " >&6
7234 else
7235 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7236 case `$LD -v 2>&1 </dev/null` in
7237 *GNU* | *'with BFD'*)
7238 lt_cv_prog_gnu_ld=yes
7241 lt_cv_prog_gnu_ld=no
7243 esac
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7246 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7247 with_gnu_ld=$lt_cv_prog_gnu_ld
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7258 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7259 if test "${lt_cv_path_NM+set}" = set; then :
7260 $as_echo_n "(cached) " >&6
7261 else
7262 if test -n "$NM"; then
7263 # Let the user override the test.
7264 lt_cv_path_NM="$NM"
7265 else
7266 lt_nm_to_check="${ac_tool_prefix}nm"
7267 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7268 lt_nm_to_check="$lt_nm_to_check nm"
7270 for lt_tmp_nm in $lt_nm_to_check; do
7271 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7272 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7273 IFS="$lt_save_ifs"
7274 test -z "$ac_dir" && ac_dir=.
7275 tmp_nm="$ac_dir/$lt_tmp_nm"
7276 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7277 # Check to see if the nm accepts a BSD-compat flag.
7278 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7279 # nm: unknown option "B" ignored
7280 # Tru64's nm complains that /dev/null is an invalid object file
7281 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7282 */dev/null* | *'Invalid file or object type'*)
7283 lt_cv_path_NM="$tmp_nm -B"
7284 break
7287 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7288 */dev/null*)
7289 lt_cv_path_NM="$tmp_nm -p"
7290 break
7293 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7294 continue # so that we can try to find one that supports BSD flags
7296 esac
7298 esac
7300 done
7301 IFS="$lt_save_ifs"
7302 done
7303 : ${lt_cv_path_NM=no}
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7307 $as_echo "$lt_cv_path_NM" >&6; }
7308 if test "$lt_cv_path_NM" != "no"; then
7309 NM="$lt_cv_path_NM"
7310 else
7311 # Didn't find any BSD compatible name lister, look for dumpbin.
7312 if test -n "$DUMPBIN"; then :
7313 # Let the user override the test.
7314 else
7315 if test -n "$ac_tool_prefix"; then
7316 for ac_prog in dumpbin "link -dump"
7318 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7319 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7321 $as_echo_n "checking for $ac_word... " >&6; }
7322 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7323 $as_echo_n "(cached) " >&6
7324 else
7325 if test -n "$DUMPBIN"; then
7326 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7327 else
7328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329 for as_dir in $PATH
7331 IFS=$as_save_IFS
7332 test -z "$as_dir" && as_dir=.
7333 for ac_exec_ext in '' $ac_executable_extensions; do
7334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7335 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7337 break 2
7339 done
7340 done
7341 IFS=$as_save_IFS
7345 DUMPBIN=$ac_cv_prog_DUMPBIN
7346 if test -n "$DUMPBIN"; then
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7348 $as_echo "$DUMPBIN" >&6; }
7349 else
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351 $as_echo "no" >&6; }
7355 test -n "$DUMPBIN" && break
7356 done
7358 if test -z "$DUMPBIN"; then
7359 ac_ct_DUMPBIN=$DUMPBIN
7360 for ac_prog in dumpbin "link -dump"
7362 # Extract the first word of "$ac_prog", so it can be a program name with args.
7363 set dummy $ac_prog; ac_word=$2
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7365 $as_echo_n "checking for $ac_word... " >&6; }
7366 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7367 $as_echo_n "(cached) " >&6
7368 else
7369 if test -n "$ac_ct_DUMPBIN"; then
7370 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7371 else
7372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373 for as_dir in $PATH
7375 IFS=$as_save_IFS
7376 test -z "$as_dir" && as_dir=.
7377 for ac_exec_ext in '' $ac_executable_extensions; do
7378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7379 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7381 break 2
7383 done
7384 done
7385 IFS=$as_save_IFS
7389 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7390 if test -n "$ac_ct_DUMPBIN"; then
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7392 $as_echo "$ac_ct_DUMPBIN" >&6; }
7393 else
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7395 $as_echo "no" >&6; }
7399 test -n "$ac_ct_DUMPBIN" && break
7400 done
7402 if test "x$ac_ct_DUMPBIN" = x; then
7403 DUMPBIN=":"
7404 else
7405 case $cross_compiling:$ac_tool_warned in
7406 yes:)
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7409 ac_tool_warned=yes ;;
7410 esac
7411 DUMPBIN=$ac_ct_DUMPBIN
7415 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7416 *COFF*)
7417 DUMPBIN="$DUMPBIN -symbols"
7420 DUMPBIN=:
7422 esac
7425 if test "$DUMPBIN" != ":"; then
7426 NM="$DUMPBIN"
7429 test -z "$NM" && NM=nm
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7437 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7438 if test "${lt_cv_nm_interface+set}" = set; then :
7439 $as_echo_n "(cached) " >&6
7440 else
7441 lt_cv_nm_interface="BSD nm"
7442 echo "int some_variable = 0;" > conftest.$ac_ext
7443 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7444 (eval "$ac_compile" 2>conftest.err)
7445 cat conftest.err >&5
7446 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7447 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7448 cat conftest.err >&5
7449 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7450 cat conftest.out >&5
7451 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7452 lt_cv_nm_interface="MS dumpbin"
7454 rm -f conftest*
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7457 $as_echo "$lt_cv_nm_interface" >&6; }
7459 # find the maximum length of command line arguments
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7461 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7462 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7463 $as_echo_n "(cached) " >&6
7464 else
7466 teststring="ABCD"
7468 case $build_os in
7469 msdosdjgpp*)
7470 # On DJGPP, this test can blow up pretty badly due to problems in libc
7471 # (any single argument exceeding 2000 bytes causes a buffer overrun
7472 # during glob expansion). Even if it were fixed, the result of this
7473 # check would be larger than it should be.
7474 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7477 gnu*)
7478 # Under GNU Hurd, this test is not required because there is
7479 # no limit to the length of command line arguments.
7480 # Libtool will interpret -1 as no limit whatsoever
7481 lt_cv_sys_max_cmd_len=-1;
7484 cygwin* | mingw* | cegcc*)
7485 # On Win9x/ME, this test blows up -- it succeeds, but takes
7486 # about 5 minutes as the teststring grows exponentially.
7487 # Worse, since 9x/ME are not pre-emptively multitasking,
7488 # you end up with a "frozen" computer, even though with patience
7489 # the test eventually succeeds (with a max line length of 256k).
7490 # Instead, let's just punt: use the minimum linelength reported by
7491 # all of the supported platforms: 8192 (on NT/2K/XP).
7492 lt_cv_sys_max_cmd_len=8192;
7495 mint*)
7496 # On MiNT this can take a long time and run out of memory.
7497 lt_cv_sys_max_cmd_len=8192;
7500 amigaos*)
7501 # On AmigaOS with pdksh, this test takes hours, literally.
7502 # So we just punt and use a minimum line length of 8192.
7503 lt_cv_sys_max_cmd_len=8192;
7506 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7507 # This has been around since 386BSD, at least. Likely further.
7508 if test -x /sbin/sysctl; then
7509 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7510 elif test -x /usr/sbin/sysctl; then
7511 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7512 else
7513 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7515 # And add a safety zone
7516 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7517 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7520 interix*)
7521 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7522 lt_cv_sys_max_cmd_len=196608
7525 osf*)
7526 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7527 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7528 # nice to cause kernel panics so lets avoid the loop below.
7529 # First set a reasonable default.
7530 lt_cv_sys_max_cmd_len=16384
7532 if test -x /sbin/sysconfig; then
7533 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7534 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7535 esac
7538 sco3.2v5*)
7539 lt_cv_sys_max_cmd_len=102400
7541 sysv5* | sco5v6* | sysv4.2uw2*)
7542 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7543 if test -n "$kargmax"; then
7544 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7545 else
7546 lt_cv_sys_max_cmd_len=32768
7550 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7551 if test -n "$lt_cv_sys_max_cmd_len"; then
7552 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7553 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7554 else
7555 # Make teststring a little bigger before we do anything with it.
7556 # a 1K string should be a reasonable start.
7557 for i in 1 2 3 4 5 6 7 8 ; do
7558 teststring=$teststring$teststring
7559 done
7560 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7561 # If test is not a shell built-in, we'll probably end up computing a
7562 # maximum length that is only half of the actual maximum length, but
7563 # we can't tell.
7564 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7565 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7566 test $i != 17 # 1/2 MB should be enough
7568 i=`expr $i + 1`
7569 teststring=$teststring$teststring
7570 done
7571 # Only check the string length outside the loop.
7572 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7573 teststring=
7574 # Add a significant safety factor because C++ compilers can tack on
7575 # massive amounts of additional arguments before passing them to the
7576 # linker. It appears as though 1/2 is a usable value.
7577 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7580 esac
7584 if test -n $lt_cv_sys_max_cmd_len ; then
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7586 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7587 else
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7589 $as_echo "none" >&6; }
7591 max_cmd_len=$lt_cv_sys_max_cmd_len
7598 : ${CP="cp -f"}
7599 : ${MV="mv -f"}
7600 : ${RM="rm -f"}
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7603 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7604 # Try some XSI features
7605 xsi_shell=no
7606 ( _lt_dummy="a/b/c"
7607 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7608 = c,a/b,, \
7609 && eval 'test $(( 1 + 1 )) -eq 2 \
7610 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7611 && xsi_shell=yes
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7613 $as_echo "$xsi_shell" >&6; }
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7617 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7618 lt_shell_append=no
7619 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7620 >/dev/null 2>&1 \
7621 && lt_shell_append=yes
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7623 $as_echo "$lt_shell_append" >&6; }
7626 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7627 lt_unset=unset
7628 else
7629 lt_unset=false
7636 # test EBCDIC or ASCII
7637 case `echo X|tr X '\101'` in
7638 A) # ASCII based system
7639 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7640 lt_SP2NL='tr \040 \012'
7641 lt_NL2SP='tr \015\012 \040\040'
7643 *) # EBCDIC based system
7644 lt_SP2NL='tr \100 \n'
7645 lt_NL2SP='tr \r\n \100\100'
7647 esac
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7658 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7659 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7660 $as_echo_n "(cached) " >&6
7661 else
7662 lt_cv_ld_reload_flag='-r'
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7665 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7666 reload_flag=$lt_cv_ld_reload_flag
7667 case $reload_flag in
7668 "" | " "*) ;;
7669 *) reload_flag=" $reload_flag" ;;
7670 esac
7671 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7672 case $host_os in
7673 darwin*)
7674 if test "$GCC" = yes; then
7675 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7676 else
7677 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7680 esac
7690 if test -n "$ac_tool_prefix"; then
7691 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7692 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7694 $as_echo_n "checking for $ac_word... " >&6; }
7695 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7696 $as_echo_n "(cached) " >&6
7697 else
7698 if test -n "$OBJDUMP"; then
7699 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7700 else
7701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7702 for as_dir in $PATH
7704 IFS=$as_save_IFS
7705 test -z "$as_dir" && as_dir=.
7706 for ac_exec_ext in '' $ac_executable_extensions; do
7707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7708 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7710 break 2
7712 done
7713 done
7714 IFS=$as_save_IFS
7718 OBJDUMP=$ac_cv_prog_OBJDUMP
7719 if test -n "$OBJDUMP"; then
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7721 $as_echo "$OBJDUMP" >&6; }
7722 else
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7724 $as_echo "no" >&6; }
7729 if test -z "$ac_cv_prog_OBJDUMP"; then
7730 ac_ct_OBJDUMP=$OBJDUMP
7731 # Extract the first word of "objdump", so it can be a program name with args.
7732 set dummy objdump; ac_word=$2
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7734 $as_echo_n "checking for $ac_word... " >&6; }
7735 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7736 $as_echo_n "(cached) " >&6
7737 else
7738 if test -n "$ac_ct_OBJDUMP"; then
7739 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7740 else
7741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7742 for as_dir in $PATH
7744 IFS=$as_save_IFS
7745 test -z "$as_dir" && as_dir=.
7746 for ac_exec_ext in '' $ac_executable_extensions; do
7747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7748 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7750 break 2
7752 done
7753 done
7754 IFS=$as_save_IFS
7758 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7759 if test -n "$ac_ct_OBJDUMP"; then
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7761 $as_echo "$ac_ct_OBJDUMP" >&6; }
7762 else
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7764 $as_echo "no" >&6; }
7767 if test "x$ac_ct_OBJDUMP" = x; then
7768 OBJDUMP="false"
7769 else
7770 case $cross_compiling:$ac_tool_warned in
7771 yes:)
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7774 ac_tool_warned=yes ;;
7775 esac
7776 OBJDUMP=$ac_ct_OBJDUMP
7778 else
7779 OBJDUMP="$ac_cv_prog_OBJDUMP"
7782 test -z "$OBJDUMP" && OBJDUMP=objdump
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7793 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7794 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7795 $as_echo_n "(cached) " >&6
7796 else
7797 lt_cv_file_magic_cmd='$MAGIC_CMD'
7798 lt_cv_file_magic_test_file=
7799 lt_cv_deplibs_check_method='unknown'
7800 # Need to set the preceding variable on all platforms that support
7801 # interlibrary dependencies.
7802 # 'none' -- dependencies not supported.
7803 # `unknown' -- same as none, but documents that we really don't know.
7804 # 'pass_all' -- all dependencies passed with no checks.
7805 # 'test_compile' -- check by making test program.
7806 # 'file_magic [[regex]]' -- check by looking for files in library path
7807 # which responds to the $file_magic_cmd with a given extended regex.
7808 # If you have `file' or equivalent on your system and you're not sure
7809 # whether `pass_all' will *always* work, you probably want this one.
7811 case $host_os in
7812 aix[4-9]*)
7813 lt_cv_deplibs_check_method=pass_all
7816 beos*)
7817 lt_cv_deplibs_check_method=pass_all
7820 bsdi[45]*)
7821 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7822 lt_cv_file_magic_cmd='/usr/bin/file -L'
7823 lt_cv_file_magic_test_file=/shlib/libc.so
7826 cygwin*)
7827 # func_win32_libid is a shell function defined in ltmain.sh
7828 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7829 lt_cv_file_magic_cmd='func_win32_libid'
7832 mingw* | pw32*)
7833 # Base MSYS/MinGW do not provide the 'file' command needed by
7834 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7835 # unless we find 'file', for example because we are cross-compiling.
7836 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7837 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7838 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7839 lt_cv_file_magic_cmd='func_win32_libid'
7840 else
7841 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7842 lt_cv_file_magic_cmd='$OBJDUMP -f'
7846 cegcc*)
7847 # use the weaker test based on 'objdump'. See mingw*.
7848 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7849 lt_cv_file_magic_cmd='$OBJDUMP -f'
7852 darwin* | rhapsody*)
7853 lt_cv_deplibs_check_method=pass_all
7856 freebsd* | dragonfly*)
7857 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7858 case $host_cpu in
7859 i*86 )
7860 # Not sure whether the presence of OpenBSD here was a mistake.
7861 # Let's accept both of them until this is cleared up.
7862 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7863 lt_cv_file_magic_cmd=/usr/bin/file
7864 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7866 esac
7867 else
7868 lt_cv_deplibs_check_method=pass_all
7872 gnu*)
7873 lt_cv_deplibs_check_method=pass_all
7876 haiku*)
7877 lt_cv_deplibs_check_method=pass_all
7880 hpux10.20* | hpux11*)
7881 lt_cv_file_magic_cmd=/usr/bin/file
7882 case $host_cpu in
7883 ia64*)
7884 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7885 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7887 hppa*64*)
7888 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7889 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7892 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7893 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7895 esac
7898 interix[3-9]*)
7899 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7900 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7903 irix5* | irix6* | nonstopux*)
7904 case $LD in
7905 *-32|*"-32 ") libmagic=32-bit;;
7906 *-n32|*"-n32 ") libmagic=N32;;
7907 *-64|*"-64 ") libmagic=64-bit;;
7908 *) libmagic=never-match;;
7909 esac
7910 lt_cv_deplibs_check_method=pass_all
7913 # This must be Linux ELF.
7914 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7915 lt_cv_deplibs_check_method=pass_all
7918 netbsd*)
7919 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7920 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7921 else
7922 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7926 newos6*)
7927 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7928 lt_cv_file_magic_cmd=/usr/bin/file
7929 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7932 *nto* | *qnx*)
7933 lt_cv_deplibs_check_method=pass_all
7936 openbsd*)
7937 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7938 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7939 else
7940 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7944 osf3* | osf4* | osf5*)
7945 lt_cv_deplibs_check_method=pass_all
7948 rdos*)
7949 lt_cv_deplibs_check_method=pass_all
7952 solaris*)
7953 lt_cv_deplibs_check_method=pass_all
7956 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7957 lt_cv_deplibs_check_method=pass_all
7960 sysv4 | sysv4.3*)
7961 case $host_vendor in
7962 motorola)
7963 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]'
7964 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7966 ncr)
7967 lt_cv_deplibs_check_method=pass_all
7969 sequent)
7970 lt_cv_file_magic_cmd='/bin/file'
7971 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7973 sni)
7974 lt_cv_file_magic_cmd='/bin/file'
7975 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7976 lt_cv_file_magic_test_file=/lib/libc.so
7978 siemens)
7979 lt_cv_deplibs_check_method=pass_all
7982 lt_cv_deplibs_check_method=pass_all
7984 esac
7987 tpf*)
7988 lt_cv_deplibs_check_method=pass_all
7990 esac
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7994 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7995 file_magic_cmd=$lt_cv_file_magic_cmd
7996 deplibs_check_method=$lt_cv_deplibs_check_method
7997 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8010 if test -n "$ac_tool_prefix"; then
8011 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8012 set dummy ${ac_tool_prefix}ar; ac_word=$2
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8014 $as_echo_n "checking for $ac_word... " >&6; }
8015 if test "${ac_cv_prog_AR+set}" = set; then :
8016 $as_echo_n "(cached) " >&6
8017 else
8018 if test -n "$AR"; then
8019 ac_cv_prog_AR="$AR" # Let the user override the test.
8020 else
8021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8022 for as_dir in $PATH
8024 IFS=$as_save_IFS
8025 test -z "$as_dir" && as_dir=.
8026 for ac_exec_ext in '' $ac_executable_extensions; do
8027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8028 ac_cv_prog_AR="${ac_tool_prefix}ar"
8029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8030 break 2
8032 done
8033 done
8034 IFS=$as_save_IFS
8038 AR=$ac_cv_prog_AR
8039 if test -n "$AR"; then
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8041 $as_echo "$AR" >&6; }
8042 else
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8044 $as_echo "no" >&6; }
8049 if test -z "$ac_cv_prog_AR"; then
8050 ac_ct_AR=$AR
8051 # Extract the first word of "ar", so it can be a program name with args.
8052 set dummy ar; ac_word=$2
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8054 $as_echo_n "checking for $ac_word... " >&6; }
8055 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8056 $as_echo_n "(cached) " >&6
8057 else
8058 if test -n "$ac_ct_AR"; then
8059 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8060 else
8061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8062 for as_dir in $PATH
8064 IFS=$as_save_IFS
8065 test -z "$as_dir" && as_dir=.
8066 for ac_exec_ext in '' $ac_executable_extensions; do
8067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8068 ac_cv_prog_ac_ct_AR="ar"
8069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8070 break 2
8072 done
8073 done
8074 IFS=$as_save_IFS
8078 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8079 if test -n "$ac_ct_AR"; then
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8081 $as_echo "$ac_ct_AR" >&6; }
8082 else
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8084 $as_echo "no" >&6; }
8087 if test "x$ac_ct_AR" = x; then
8088 AR="false"
8089 else
8090 case $cross_compiling:$ac_tool_warned in
8091 yes:)
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8094 ac_tool_warned=yes ;;
8095 esac
8096 AR=$ac_ct_AR
8098 else
8099 AR="$ac_cv_prog_AR"
8102 test -z "$AR" && AR=ar
8103 test -z "$AR_FLAGS" && AR_FLAGS=cru
8115 if test -n "$ac_tool_prefix"; then
8116 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8117 set dummy ${ac_tool_prefix}strip; ac_word=$2
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8119 $as_echo_n "checking for $ac_word... " >&6; }
8120 if test "${ac_cv_prog_STRIP+set}" = set; then :
8121 $as_echo_n "(cached) " >&6
8122 else
8123 if test -n "$STRIP"; then
8124 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8125 else
8126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8127 for as_dir in $PATH
8129 IFS=$as_save_IFS
8130 test -z "$as_dir" && as_dir=.
8131 for ac_exec_ext in '' $ac_executable_extensions; do
8132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8133 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8135 break 2
8137 done
8138 done
8139 IFS=$as_save_IFS
8143 STRIP=$ac_cv_prog_STRIP
8144 if test -n "$STRIP"; then
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8146 $as_echo "$STRIP" >&6; }
8147 else
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149 $as_echo "no" >&6; }
8154 if test -z "$ac_cv_prog_STRIP"; then
8155 ac_ct_STRIP=$STRIP
8156 # Extract the first word of "strip", so it can be a program name with args.
8157 set dummy strip; ac_word=$2
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8159 $as_echo_n "checking for $ac_word... " >&6; }
8160 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8161 $as_echo_n "(cached) " >&6
8162 else
8163 if test -n "$ac_ct_STRIP"; then
8164 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8165 else
8166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8167 for as_dir in $PATH
8169 IFS=$as_save_IFS
8170 test -z "$as_dir" && as_dir=.
8171 for ac_exec_ext in '' $ac_executable_extensions; do
8172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8173 ac_cv_prog_ac_ct_STRIP="strip"
8174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8175 break 2
8177 done
8178 done
8179 IFS=$as_save_IFS
8183 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8184 if test -n "$ac_ct_STRIP"; then
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8186 $as_echo "$ac_ct_STRIP" >&6; }
8187 else
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8189 $as_echo "no" >&6; }
8192 if test "x$ac_ct_STRIP" = x; then
8193 STRIP=":"
8194 else
8195 case $cross_compiling:$ac_tool_warned in
8196 yes:)
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8199 ac_tool_warned=yes ;;
8200 esac
8201 STRIP=$ac_ct_STRIP
8203 else
8204 STRIP="$ac_cv_prog_STRIP"
8207 test -z "$STRIP" && STRIP=:
8214 if test -n "$ac_tool_prefix"; then
8215 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8216 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8218 $as_echo_n "checking for $ac_word... " >&6; }
8219 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8220 $as_echo_n "(cached) " >&6
8221 else
8222 if test -n "$RANLIB"; then
8223 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8224 else
8225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226 for as_dir in $PATH
8228 IFS=$as_save_IFS
8229 test -z "$as_dir" && as_dir=.
8230 for ac_exec_ext in '' $ac_executable_extensions; do
8231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8232 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8234 break 2
8236 done
8237 done
8238 IFS=$as_save_IFS
8242 RANLIB=$ac_cv_prog_RANLIB
8243 if test -n "$RANLIB"; then
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8245 $as_echo "$RANLIB" >&6; }
8246 else
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248 $as_echo "no" >&6; }
8253 if test -z "$ac_cv_prog_RANLIB"; then
8254 ac_ct_RANLIB=$RANLIB
8255 # Extract the first word of "ranlib", so it can be a program name with args.
8256 set dummy ranlib; ac_word=$2
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8258 $as_echo_n "checking for $ac_word... " >&6; }
8259 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8260 $as_echo_n "(cached) " >&6
8261 else
8262 if test -n "$ac_ct_RANLIB"; then
8263 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8264 else
8265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8266 for as_dir in $PATH
8268 IFS=$as_save_IFS
8269 test -z "$as_dir" && as_dir=.
8270 for ac_exec_ext in '' $ac_executable_extensions; do
8271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8272 ac_cv_prog_ac_ct_RANLIB="ranlib"
8273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8274 break 2
8276 done
8277 done
8278 IFS=$as_save_IFS
8282 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8283 if test -n "$ac_ct_RANLIB"; then
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8285 $as_echo "$ac_ct_RANLIB" >&6; }
8286 else
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8288 $as_echo "no" >&6; }
8291 if test "x$ac_ct_RANLIB" = x; then
8292 RANLIB=":"
8293 else
8294 case $cross_compiling:$ac_tool_warned in
8295 yes:)
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8298 ac_tool_warned=yes ;;
8299 esac
8300 RANLIB=$ac_ct_RANLIB
8302 else
8303 RANLIB="$ac_cv_prog_RANLIB"
8306 test -z "$RANLIB" && RANLIB=:
8313 # Determine commands to create old-style static archives.
8314 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8315 old_postinstall_cmds='chmod 644 $oldlib'
8316 old_postuninstall_cmds=
8318 if test -n "$RANLIB"; then
8319 case $host_os in
8320 openbsd*)
8321 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8324 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8326 esac
8327 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8330 case $host_os in
8331 darwin*)
8332 lock_old_archive_extraction=yes ;;
8334 lock_old_archive_extraction=no ;;
8335 esac
8375 # If no C compiler was specified, use CC.
8376 LTCC=${LTCC-"$CC"}
8378 # If no C compiler flags were specified, use CFLAGS.
8379 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8381 # Allow CC to be a program name with arguments.
8382 compiler=$CC
8385 # Check for command to grab the raw symbol name followed by C symbol from nm.
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8387 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8388 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8389 $as_echo_n "(cached) " >&6
8390 else
8392 # These are sane defaults that work on at least a few old systems.
8393 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8395 # Character class describing NM global symbol codes.
8396 symcode='[BCDEGRST]'
8398 # Regexp to match symbols that can be accessed directly from C.
8399 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8401 # Define system-specific variables.
8402 case $host_os in
8403 aix*)
8404 symcode='[BCDT]'
8406 cygwin* | mingw* | pw32* | cegcc*)
8407 symcode='[ABCDGISTW]'
8409 hpux*)
8410 if test "$host_cpu" = ia64; then
8411 symcode='[ABCDEGRST]'
8414 irix* | nonstopux*)
8415 symcode='[BCDEGRST]'
8417 osf*)
8418 symcode='[BCDEGQRST]'
8420 solaris*)
8421 symcode='[BDRT]'
8423 sco3.2v5*)
8424 symcode='[DT]'
8426 sysv4.2uw2*)
8427 symcode='[DT]'
8429 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8430 symcode='[ABDT]'
8432 sysv4)
8433 symcode='[DFNSTU]'
8435 esac
8437 # If we're using GNU nm, then use its standard symbol codes.
8438 case `$NM -V 2>&1` in
8439 *GNU* | *'with BFD'*)
8440 symcode='[ABCDGIRSTW]' ;;
8441 esac
8443 # Transform an extracted symbol line into a proper C declaration.
8444 # Some systems (esp. on ia64) link data and code symbols differently,
8445 # so use this general approach.
8446 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8448 # Transform an extracted symbol line into symbol name and symbol address
8449 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8450 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'"
8452 # Handle CRLF in mingw tool chain
8453 opt_cr=
8454 case $build_os in
8455 mingw*)
8456 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8458 esac
8460 # Try without a prefix underscore, then with it.
8461 for ac_symprfx in "" "_"; do
8463 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8464 symxfrm="\\1 $ac_symprfx\\2 \\2"
8466 # Write the raw and C identifiers.
8467 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8468 # Fake it for dumpbin and say T for any non-static function
8469 # and D for any global variable.
8470 # Also find C++ and __fastcall symbols from MSVC++,
8471 # which start with @ or ?.
8472 lt_cv_sys_global_symbol_pipe="$AWK '"\
8473 " {last_section=section; section=\$ 3};"\
8474 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8475 " \$ 0!~/External *\|/{next};"\
8476 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8477 " {if(hide[section]) next};"\
8478 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8479 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8480 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8481 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8482 " ' prfx=^$ac_symprfx"
8483 else
8484 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8487 # Check to see that the pipe works correctly.
8488 pipe_works=no
8490 rm -f conftest*
8491 cat > conftest.$ac_ext <<_LT_EOF
8492 #ifdef __cplusplus
8493 extern "C" {
8494 #endif
8495 char nm_test_var;
8496 void nm_test_func(void);
8497 void nm_test_func(void){}
8498 #ifdef __cplusplus
8500 #endif
8501 int main(){nm_test_var='a';nm_test_func();return(0);}
8502 _LT_EOF
8504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8505 (eval $ac_compile) 2>&5
8506 ac_status=$?
8507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8508 test $ac_status = 0; }; then
8509 # Now try to grab the symbols.
8510 nlist=conftest.nm
8511 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8512 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8513 ac_status=$?
8514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8515 test $ac_status = 0; } && test -s "$nlist"; then
8516 # Try sorting and uniquifying the output.
8517 if sort "$nlist" | uniq > "$nlist"T; then
8518 mv -f "$nlist"T "$nlist"
8519 else
8520 rm -f "$nlist"T
8523 # Make sure that we snagged all the symbols we need.
8524 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8525 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8526 cat <<_LT_EOF > conftest.$ac_ext
8527 #ifdef __cplusplus
8528 extern "C" {
8529 #endif
8531 _LT_EOF
8532 # Now generate the symbol file.
8533 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8535 cat <<_LT_EOF >> conftest.$ac_ext
8537 /* The mapping between symbol names and symbols. */
8538 const struct {
8539 const char *name;
8540 void *address;
8542 lt__PROGRAM__LTX_preloaded_symbols[] =
8544 { "@PROGRAM@", (void *) 0 },
8545 _LT_EOF
8546 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8547 cat <<\_LT_EOF >> conftest.$ac_ext
8548 {0, (void *) 0}
8551 /* This works around a problem in FreeBSD linker */
8552 #ifdef FREEBSD_WORKAROUND
8553 static const void *lt_preloaded_setup() {
8554 return lt__PROGRAM__LTX_preloaded_symbols;
8556 #endif
8558 #ifdef __cplusplus
8560 #endif
8561 _LT_EOF
8562 # Now try linking the two files.
8563 mv conftest.$ac_objext conftstm.$ac_objext
8564 lt_save_LIBS="$LIBS"
8565 lt_save_CFLAGS="$CFLAGS"
8566 LIBS="conftstm.$ac_objext"
8567 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8569 (eval $ac_link) 2>&5
8570 ac_status=$?
8571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8572 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8573 pipe_works=yes
8575 LIBS="$lt_save_LIBS"
8576 CFLAGS="$lt_save_CFLAGS"
8577 else
8578 echo "cannot find nm_test_func in $nlist" >&5
8580 else
8581 echo "cannot find nm_test_var in $nlist" >&5
8583 else
8584 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8586 else
8587 echo "$progname: failed program was:" >&5
8588 cat conftest.$ac_ext >&5
8590 rm -rf conftest* conftst*
8592 # Do not use the global_symbol_pipe unless it works.
8593 if test "$pipe_works" = yes; then
8594 break
8595 else
8596 lt_cv_sys_global_symbol_pipe=
8598 done
8602 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8603 lt_cv_sys_global_symbol_to_cdecl=
8605 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8607 $as_echo "failed" >&6; }
8608 else
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8610 $as_echo "ok" >&6; }
8635 # Check whether --enable-libtool-lock was given.
8636 if test "${enable_libtool_lock+set}" = set; then :
8637 enableval=$enable_libtool_lock;
8640 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8642 # Some flags need to be propagated to the compiler or linker for good
8643 # libtool support.
8644 case $host in
8645 ia64-*-hpux*)
8646 # Find out which ABI we are using.
8647 echo 'int i;' > conftest.$ac_ext
8648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8649 (eval $ac_compile) 2>&5
8650 ac_status=$?
8651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8652 test $ac_status = 0; }; then
8653 case `/usr/bin/file conftest.$ac_objext` in
8654 *ELF-32*)
8655 HPUX_IA64_MODE="32"
8657 *ELF-64*)
8658 HPUX_IA64_MODE="64"
8660 esac
8662 rm -rf conftest*
8664 *-*-irix6*)
8665 # Find out which ABI we are using.
8666 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8667 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8668 (eval $ac_compile) 2>&5
8669 ac_status=$?
8670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8671 test $ac_status = 0; }; then
8672 if test "$lt_cv_prog_gnu_ld" = yes; then
8673 case `/usr/bin/file conftest.$ac_objext` in
8674 *32-bit*)
8675 LD="${LD-ld} -melf32bsmip"
8677 *N32*)
8678 LD="${LD-ld} -melf32bmipn32"
8680 *64-bit*)
8681 LD="${LD-ld} -melf64bmip"
8683 esac
8684 else
8685 case `/usr/bin/file conftest.$ac_objext` in
8686 *32-bit*)
8687 LD="${LD-ld} -32"
8689 *N32*)
8690 LD="${LD-ld} -n32"
8692 *64-bit*)
8693 LD="${LD-ld} -64"
8695 esac
8698 rm -rf conftest*
8701 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8702 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8703 # Find out which ABI we are using.
8704 echo 'int i;' > conftest.$ac_ext
8705 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8706 (eval $ac_compile) 2>&5
8707 ac_status=$?
8708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8709 test $ac_status = 0; }; then
8710 case `/usr/bin/file conftest.o` in
8711 *32-bit*)
8712 case $host in
8713 x86_64-*kfreebsd*-gnu)
8714 LD="${LD-ld} -m elf_i386_fbsd"
8716 x86_64-*linux*)
8717 LD="${LD-ld} -m elf_i386"
8719 ppc64-*linux*|powerpc64-*linux*)
8720 LD="${LD-ld} -m elf32ppclinux"
8722 s390x-*linux*)
8723 LD="${LD-ld} -m elf_s390"
8725 sparc64-*linux*)
8726 LD="${LD-ld} -m elf32_sparc"
8728 esac
8730 *64-bit*)
8731 case $host in
8732 x86_64-*kfreebsd*-gnu)
8733 LD="${LD-ld} -m elf_x86_64_fbsd"
8735 x86_64-*linux*)
8736 LD="${LD-ld} -m elf_x86_64"
8738 ppc*-*linux*|powerpc*-*linux*)
8739 LD="${LD-ld} -m elf64ppc"
8741 s390*-*linux*|s390*-*tpf*)
8742 LD="${LD-ld} -m elf64_s390"
8744 sparc*-*linux*)
8745 LD="${LD-ld} -m elf64_sparc"
8747 esac
8749 esac
8751 rm -rf conftest*
8754 *-*-sco3.2v5*)
8755 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8756 SAVE_CFLAGS="$CFLAGS"
8757 CFLAGS="$CFLAGS -belf"
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8759 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8760 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8761 $as_echo_n "(cached) " >&6
8762 else
8763 ac_ext=c
8764 ac_cpp='$CPP $CPPFLAGS'
8765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8769 if test x$gcc_no_link = xyes; then
8770 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8773 /* end confdefs.h. */
8776 main ()
8780 return 0;
8782 _ACEOF
8783 if ac_fn_c_try_link "$LINENO"; then :
8784 lt_cv_cc_needs_belf=yes
8785 else
8786 lt_cv_cc_needs_belf=no
8788 rm -f core conftest.err conftest.$ac_objext \
8789 conftest$ac_exeext conftest.$ac_ext
8790 ac_ext=c
8791 ac_cpp='$CPP $CPPFLAGS'
8792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8798 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8799 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8800 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8801 CFLAGS="$SAVE_CFLAGS"
8804 sparc*-*solaris*)
8805 # Find out which ABI we are using.
8806 echo 'int i;' > conftest.$ac_ext
8807 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8808 (eval $ac_compile) 2>&5
8809 ac_status=$?
8810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8811 test $ac_status = 0; }; then
8812 case `/usr/bin/file conftest.o` in
8813 *64-bit*)
8814 case $lt_cv_prog_gnu_ld in
8815 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8817 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8818 LD="${LD-ld} -64"
8821 esac
8823 esac
8825 rm -rf conftest*
8827 esac
8829 need_locks="$enable_libtool_lock"
8832 case $host_os in
8833 rhapsody* | darwin*)
8834 if test -n "$ac_tool_prefix"; then
8835 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8836 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8838 $as_echo_n "checking for $ac_word... " >&6; }
8839 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8840 $as_echo_n "(cached) " >&6
8841 else
8842 if test -n "$DSYMUTIL"; then
8843 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8844 else
8845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8846 for as_dir in $PATH
8848 IFS=$as_save_IFS
8849 test -z "$as_dir" && as_dir=.
8850 for ac_exec_ext in '' $ac_executable_extensions; do
8851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8852 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8854 break 2
8856 done
8857 done
8858 IFS=$as_save_IFS
8862 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8863 if test -n "$DSYMUTIL"; then
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8865 $as_echo "$DSYMUTIL" >&6; }
8866 else
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8868 $as_echo "no" >&6; }
8873 if test -z "$ac_cv_prog_DSYMUTIL"; then
8874 ac_ct_DSYMUTIL=$DSYMUTIL
8875 # Extract the first word of "dsymutil", so it can be a program name with args.
8876 set dummy dsymutil; ac_word=$2
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8878 $as_echo_n "checking for $ac_word... " >&6; }
8879 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8880 $as_echo_n "(cached) " >&6
8881 else
8882 if test -n "$ac_ct_DSYMUTIL"; then
8883 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8884 else
8885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8886 for as_dir in $PATH
8888 IFS=$as_save_IFS
8889 test -z "$as_dir" && as_dir=.
8890 for ac_exec_ext in '' $ac_executable_extensions; do
8891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8892 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8894 break 2
8896 done
8897 done
8898 IFS=$as_save_IFS
8902 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8903 if test -n "$ac_ct_DSYMUTIL"; then
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8905 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8906 else
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8908 $as_echo "no" >&6; }
8911 if test "x$ac_ct_DSYMUTIL" = x; then
8912 DSYMUTIL=":"
8913 else
8914 case $cross_compiling:$ac_tool_warned in
8915 yes:)
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8918 ac_tool_warned=yes ;;
8919 esac
8920 DSYMUTIL=$ac_ct_DSYMUTIL
8922 else
8923 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8926 if test -n "$ac_tool_prefix"; then
8927 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8928 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8930 $as_echo_n "checking for $ac_word... " >&6; }
8931 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8932 $as_echo_n "(cached) " >&6
8933 else
8934 if test -n "$NMEDIT"; then
8935 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8936 else
8937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8938 for as_dir in $PATH
8940 IFS=$as_save_IFS
8941 test -z "$as_dir" && as_dir=.
8942 for ac_exec_ext in '' $ac_executable_extensions; do
8943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8944 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8946 break 2
8948 done
8949 done
8950 IFS=$as_save_IFS
8954 NMEDIT=$ac_cv_prog_NMEDIT
8955 if test -n "$NMEDIT"; then
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8957 $as_echo "$NMEDIT" >&6; }
8958 else
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8960 $as_echo "no" >&6; }
8965 if test -z "$ac_cv_prog_NMEDIT"; then
8966 ac_ct_NMEDIT=$NMEDIT
8967 # Extract the first word of "nmedit", so it can be a program name with args.
8968 set dummy nmedit; ac_word=$2
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8970 $as_echo_n "checking for $ac_word... " >&6; }
8971 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8972 $as_echo_n "(cached) " >&6
8973 else
8974 if test -n "$ac_ct_NMEDIT"; then
8975 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8976 else
8977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8978 for as_dir in $PATH
8980 IFS=$as_save_IFS
8981 test -z "$as_dir" && as_dir=.
8982 for ac_exec_ext in '' $ac_executable_extensions; do
8983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8984 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8986 break 2
8988 done
8989 done
8990 IFS=$as_save_IFS
8994 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8995 if test -n "$ac_ct_NMEDIT"; then
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8997 $as_echo "$ac_ct_NMEDIT" >&6; }
8998 else
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9000 $as_echo "no" >&6; }
9003 if test "x$ac_ct_NMEDIT" = x; then
9004 NMEDIT=":"
9005 else
9006 case $cross_compiling:$ac_tool_warned in
9007 yes:)
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9010 ac_tool_warned=yes ;;
9011 esac
9012 NMEDIT=$ac_ct_NMEDIT
9014 else
9015 NMEDIT="$ac_cv_prog_NMEDIT"
9018 if test -n "$ac_tool_prefix"; then
9019 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9020 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9022 $as_echo_n "checking for $ac_word... " >&6; }
9023 if test "${ac_cv_prog_LIPO+set}" = set; then :
9024 $as_echo_n "(cached) " >&6
9025 else
9026 if test -n "$LIPO"; then
9027 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9028 else
9029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9030 for as_dir in $PATH
9032 IFS=$as_save_IFS
9033 test -z "$as_dir" && as_dir=.
9034 for ac_exec_ext in '' $ac_executable_extensions; do
9035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9036 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9038 break 2
9040 done
9041 done
9042 IFS=$as_save_IFS
9046 LIPO=$ac_cv_prog_LIPO
9047 if test -n "$LIPO"; then
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9049 $as_echo "$LIPO" >&6; }
9050 else
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9052 $as_echo "no" >&6; }
9057 if test -z "$ac_cv_prog_LIPO"; then
9058 ac_ct_LIPO=$LIPO
9059 # Extract the first word of "lipo", so it can be a program name with args.
9060 set dummy lipo; ac_word=$2
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9062 $as_echo_n "checking for $ac_word... " >&6; }
9063 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9064 $as_echo_n "(cached) " >&6
9065 else
9066 if test -n "$ac_ct_LIPO"; then
9067 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9068 else
9069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9070 for as_dir in $PATH
9072 IFS=$as_save_IFS
9073 test -z "$as_dir" && as_dir=.
9074 for ac_exec_ext in '' $ac_executable_extensions; do
9075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9076 ac_cv_prog_ac_ct_LIPO="lipo"
9077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9078 break 2
9080 done
9081 done
9082 IFS=$as_save_IFS
9086 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9087 if test -n "$ac_ct_LIPO"; then
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9089 $as_echo "$ac_ct_LIPO" >&6; }
9090 else
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9092 $as_echo "no" >&6; }
9095 if test "x$ac_ct_LIPO" = x; then
9096 LIPO=":"
9097 else
9098 case $cross_compiling:$ac_tool_warned in
9099 yes:)
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9102 ac_tool_warned=yes ;;
9103 esac
9104 LIPO=$ac_ct_LIPO
9106 else
9107 LIPO="$ac_cv_prog_LIPO"
9110 if test -n "$ac_tool_prefix"; then
9111 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9112 set dummy ${ac_tool_prefix}otool; ac_word=$2
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9114 $as_echo_n "checking for $ac_word... " >&6; }
9115 if test "${ac_cv_prog_OTOOL+set}" = set; then :
9116 $as_echo_n "(cached) " >&6
9117 else
9118 if test -n "$OTOOL"; then
9119 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9120 else
9121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9122 for as_dir in $PATH
9124 IFS=$as_save_IFS
9125 test -z "$as_dir" && as_dir=.
9126 for ac_exec_ext in '' $ac_executable_extensions; do
9127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9128 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9130 break 2
9132 done
9133 done
9134 IFS=$as_save_IFS
9138 OTOOL=$ac_cv_prog_OTOOL
9139 if test -n "$OTOOL"; then
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9141 $as_echo "$OTOOL" >&6; }
9142 else
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9144 $as_echo "no" >&6; }
9149 if test -z "$ac_cv_prog_OTOOL"; then
9150 ac_ct_OTOOL=$OTOOL
9151 # Extract the first word of "otool", so it can be a program name with args.
9152 set dummy otool; ac_word=$2
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9154 $as_echo_n "checking for $ac_word... " >&6; }
9155 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9156 $as_echo_n "(cached) " >&6
9157 else
9158 if test -n "$ac_ct_OTOOL"; then
9159 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9160 else
9161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9162 for as_dir in $PATH
9164 IFS=$as_save_IFS
9165 test -z "$as_dir" && as_dir=.
9166 for ac_exec_ext in '' $ac_executable_extensions; do
9167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9168 ac_cv_prog_ac_ct_OTOOL="otool"
9169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9170 break 2
9172 done
9173 done
9174 IFS=$as_save_IFS
9178 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9179 if test -n "$ac_ct_OTOOL"; then
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9181 $as_echo "$ac_ct_OTOOL" >&6; }
9182 else
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9184 $as_echo "no" >&6; }
9187 if test "x$ac_ct_OTOOL" = x; then
9188 OTOOL=":"
9189 else
9190 case $cross_compiling:$ac_tool_warned in
9191 yes:)
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9194 ac_tool_warned=yes ;;
9195 esac
9196 OTOOL=$ac_ct_OTOOL
9198 else
9199 OTOOL="$ac_cv_prog_OTOOL"
9202 if test -n "$ac_tool_prefix"; then
9203 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9204 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9206 $as_echo_n "checking for $ac_word... " >&6; }
9207 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9208 $as_echo_n "(cached) " >&6
9209 else
9210 if test -n "$OTOOL64"; then
9211 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9212 else
9213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9214 for as_dir in $PATH
9216 IFS=$as_save_IFS
9217 test -z "$as_dir" && as_dir=.
9218 for ac_exec_ext in '' $ac_executable_extensions; do
9219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9220 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9222 break 2
9224 done
9225 done
9226 IFS=$as_save_IFS
9230 OTOOL64=$ac_cv_prog_OTOOL64
9231 if test -n "$OTOOL64"; then
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9233 $as_echo "$OTOOL64" >&6; }
9234 else
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9236 $as_echo "no" >&6; }
9241 if test -z "$ac_cv_prog_OTOOL64"; then
9242 ac_ct_OTOOL64=$OTOOL64
9243 # Extract the first word of "otool64", so it can be a program name with args.
9244 set dummy otool64; ac_word=$2
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9246 $as_echo_n "checking for $ac_word... " >&6; }
9247 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9248 $as_echo_n "(cached) " >&6
9249 else
9250 if test -n "$ac_ct_OTOOL64"; then
9251 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9252 else
9253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9254 for as_dir in $PATH
9256 IFS=$as_save_IFS
9257 test -z "$as_dir" && as_dir=.
9258 for ac_exec_ext in '' $ac_executable_extensions; do
9259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9260 ac_cv_prog_ac_ct_OTOOL64="otool64"
9261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9262 break 2
9264 done
9265 done
9266 IFS=$as_save_IFS
9270 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9271 if test -n "$ac_ct_OTOOL64"; then
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9273 $as_echo "$ac_ct_OTOOL64" >&6; }
9274 else
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9276 $as_echo "no" >&6; }
9279 if test "x$ac_ct_OTOOL64" = x; then
9280 OTOOL64=":"
9281 else
9282 case $cross_compiling:$ac_tool_warned in
9283 yes:)
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9286 ac_tool_warned=yes ;;
9287 esac
9288 OTOOL64=$ac_ct_OTOOL64
9290 else
9291 OTOOL64="$ac_cv_prog_OTOOL64"
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9321 $as_echo_n "checking for -single_module linker flag... " >&6; }
9322 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9323 $as_echo_n "(cached) " >&6
9324 else
9325 lt_cv_apple_cc_single_mod=no
9326 if test -z "${LT_MULTI_MODULE}"; then
9327 # By default we will add the -single_module flag. You can override
9328 # by either setting the environment variable LT_MULTI_MODULE
9329 # non-empty at configure time, or by adding -multi_module to the
9330 # link flags.
9331 rm -rf libconftest.dylib*
9332 echo "int foo(void){return 1;}" > conftest.c
9333 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9334 -dynamiclib -Wl,-single_module conftest.c" >&5
9335 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9336 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9337 _lt_result=$?
9338 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9339 lt_cv_apple_cc_single_mod=yes
9340 else
9341 cat conftest.err >&5
9343 rm -rf libconftest.dylib*
9344 rm -f conftest.*
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9348 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9350 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9351 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9352 $as_echo_n "(cached) " >&6
9353 else
9354 lt_cv_ld_exported_symbols_list=no
9355 save_LDFLAGS=$LDFLAGS
9356 echo "_main" > conftest.sym
9357 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9358 if test x$gcc_no_link = xyes; then
9359 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9362 /* end confdefs.h. */
9365 main ()
9369 return 0;
9371 _ACEOF
9372 if ac_fn_c_try_link "$LINENO"; then :
9373 lt_cv_ld_exported_symbols_list=yes
9374 else
9375 lt_cv_ld_exported_symbols_list=no
9377 rm -f core conftest.err conftest.$ac_objext \
9378 conftest$ac_exeext conftest.$ac_ext
9379 LDFLAGS="$save_LDFLAGS"
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9383 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9385 $as_echo_n "checking for -force_load linker flag... " >&6; }
9386 if test "${lt_cv_ld_force_load+set}" = set; then :
9387 $as_echo_n "(cached) " >&6
9388 else
9389 lt_cv_ld_force_load=no
9390 cat > conftest.c << _LT_EOF
9391 int forced_loaded() { return 2;}
9392 _LT_EOF
9393 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9394 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9395 echo "$AR cru libconftest.a conftest.o" >&5
9396 $AR cru libconftest.a conftest.o 2>&5
9397 cat > conftest.c << _LT_EOF
9398 int main() { return 0;}
9399 _LT_EOF
9400 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9401 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9402 _lt_result=$?
9403 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9404 lt_cv_ld_force_load=yes
9405 else
9406 cat conftest.err >&5
9408 rm -f conftest.err libconftest.a conftest conftest.c
9409 rm -rf conftest.dSYM
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9413 $as_echo "$lt_cv_ld_force_load" >&6; }
9414 case $host_os in
9415 rhapsody* | darwin1.[012])
9416 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9417 darwin1.*)
9418 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9419 darwin*) # darwin 5.x on
9420 # if running on 10.5 or later, the deployment target defaults
9421 # to the OS version, if on x86, and 10.4, the deployment
9422 # target defaults to 10.4. Don't you love it?
9423 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9424 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9425 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9426 10.[012]*)
9427 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9428 10.*)
9429 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9430 esac
9432 esac
9433 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9434 _lt_dar_single_mod='$single_module'
9436 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9437 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9438 else
9439 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9441 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9442 _lt_dsymutil='~$DSYMUTIL $lib || :'
9443 else
9444 _lt_dsymutil=
9447 esac
9449 ac_ext=c
9450 ac_cpp='$CPP $CPPFLAGS'
9451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9455 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9456 # On Suns, sometimes $CPP names a directory.
9457 if test -n "$CPP" && test -d "$CPP"; then
9458 CPP=
9460 if test -z "$CPP"; then
9461 if test "${ac_cv_prog_CPP+set}" = set; then :
9462 $as_echo_n "(cached) " >&6
9463 else
9464 # Double quotes because CPP needs to be expanded
9465 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9467 ac_preproc_ok=false
9468 for ac_c_preproc_warn_flag in '' yes
9470 # Use a header file that comes with gcc, so configuring glibc
9471 # with a fresh cross-compiler works.
9472 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9473 # <limits.h> exists even on freestanding compilers.
9474 # On the NeXT, cc -E runs the code through the compiler's parser,
9475 # not just through cpp. "Syntax error" is here to catch this case.
9476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9477 /* end confdefs.h. */
9478 #ifdef __STDC__
9479 # include <limits.h>
9480 #else
9481 # include <assert.h>
9482 #endif
9483 Syntax error
9484 _ACEOF
9485 if ac_fn_c_try_cpp "$LINENO"; then :
9487 else
9488 # Broken: fails on valid input.
9489 continue
9491 rm -f conftest.err conftest.$ac_ext
9493 # OK, works on sane cases. Now check whether nonexistent headers
9494 # can be detected and how.
9495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9496 /* end confdefs.h. */
9497 #include <ac_nonexistent.h>
9498 _ACEOF
9499 if ac_fn_c_try_cpp "$LINENO"; then :
9500 # Broken: success on invalid input.
9501 continue
9502 else
9503 # Passes both tests.
9504 ac_preproc_ok=:
9505 break
9507 rm -f conftest.err conftest.$ac_ext
9509 done
9510 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9511 rm -f conftest.err conftest.$ac_ext
9512 if $ac_preproc_ok; then :
9513 break
9516 done
9517 ac_cv_prog_CPP=$CPP
9520 CPP=$ac_cv_prog_CPP
9521 else
9522 ac_cv_prog_CPP=$CPP
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9525 $as_echo "$CPP" >&6; }
9526 ac_preproc_ok=false
9527 for ac_c_preproc_warn_flag in '' yes
9529 # Use a header file that comes with gcc, so configuring glibc
9530 # with a fresh cross-compiler works.
9531 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9532 # <limits.h> exists even on freestanding compilers.
9533 # On the NeXT, cc -E runs the code through the compiler's parser,
9534 # not just through cpp. "Syntax error" is here to catch this case.
9535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9536 /* end confdefs.h. */
9537 #ifdef __STDC__
9538 # include <limits.h>
9539 #else
9540 # include <assert.h>
9541 #endif
9542 Syntax error
9543 _ACEOF
9544 if ac_fn_c_try_cpp "$LINENO"; then :
9546 else
9547 # Broken: fails on valid input.
9548 continue
9550 rm -f conftest.err conftest.$ac_ext
9552 # OK, works on sane cases. Now check whether nonexistent headers
9553 # can be detected and how.
9554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9555 /* end confdefs.h. */
9556 #include <ac_nonexistent.h>
9557 _ACEOF
9558 if ac_fn_c_try_cpp "$LINENO"; then :
9559 # Broken: success on invalid input.
9560 continue
9561 else
9562 # Passes both tests.
9563 ac_preproc_ok=:
9564 break
9566 rm -f conftest.err conftest.$ac_ext
9568 done
9569 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9570 rm -f conftest.err conftest.$ac_ext
9571 if $ac_preproc_ok; then :
9573 else
9574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9576 as_fn_error "C preprocessor \"$CPP\" fails sanity check
9577 See \`config.log' for more details." "$LINENO" 5; }
9580 ac_ext=c
9581 ac_cpp='$CPP $CPPFLAGS'
9582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9588 $as_echo_n "checking for ANSI C header files... " >&6; }
9589 if test "${ac_cv_header_stdc+set}" = set; then :
9590 $as_echo_n "(cached) " >&6
9591 else
9592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9593 /* end confdefs.h. */
9594 #include <stdlib.h>
9595 #include <stdarg.h>
9596 #include <string.h>
9597 #include <float.h>
9600 main ()
9604 return 0;
9606 _ACEOF
9607 if ac_fn_c_try_compile "$LINENO"; then :
9608 ac_cv_header_stdc=yes
9609 else
9610 ac_cv_header_stdc=no
9612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9614 if test $ac_cv_header_stdc = yes; then
9615 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9617 /* end confdefs.h. */
9618 #include <string.h>
9620 _ACEOF
9621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9622 $EGREP "memchr" >/dev/null 2>&1; then :
9624 else
9625 ac_cv_header_stdc=no
9627 rm -f conftest*
9631 if test $ac_cv_header_stdc = yes; then
9632 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9634 /* end confdefs.h. */
9635 #include <stdlib.h>
9637 _ACEOF
9638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9639 $EGREP "free" >/dev/null 2>&1; then :
9641 else
9642 ac_cv_header_stdc=no
9644 rm -f conftest*
9648 if test $ac_cv_header_stdc = yes; then
9649 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9650 if test "$cross_compiling" = yes; then :
9652 else
9653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9654 /* end confdefs.h. */
9655 #include <ctype.h>
9656 #include <stdlib.h>
9657 #if ((' ' & 0x0FF) == 0x020)
9658 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9659 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9660 #else
9661 # define ISLOWER(c) \
9662 (('a' <= (c) && (c) <= 'i') \
9663 || ('j' <= (c) && (c) <= 'r') \
9664 || ('s' <= (c) && (c) <= 'z'))
9665 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9666 #endif
9668 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9670 main ()
9672 int i;
9673 for (i = 0; i < 256; i++)
9674 if (XOR (islower (i), ISLOWER (i))
9675 || toupper (i) != TOUPPER (i))
9676 return 2;
9677 return 0;
9679 _ACEOF
9680 if ac_fn_c_try_run "$LINENO"; then :
9682 else
9683 ac_cv_header_stdc=no
9685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9686 conftest.$ac_objext conftest.beam conftest.$ac_ext
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9692 $as_echo "$ac_cv_header_stdc" >&6; }
9693 if test $ac_cv_header_stdc = yes; then
9695 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9699 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9700 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9701 inttypes.h stdint.h unistd.h
9702 do :
9703 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9704 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9706 eval as_val=\$$as_ac_Header
9707 if test "x$as_val" = x""yes; then :
9708 cat >>confdefs.h <<_ACEOF
9709 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9710 _ACEOF
9714 done
9717 for ac_header in dlfcn.h
9718 do :
9719 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9721 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9722 cat >>confdefs.h <<_ACEOF
9723 #define HAVE_DLFCN_H 1
9724 _ACEOF
9728 done
9735 # Set options
9740 enable_win32_dll=no
9743 # Check whether --enable-shared was given.
9744 if test "${enable_shared+set}" = set; then :
9745 enableval=$enable_shared; p=${PACKAGE-default}
9746 case $enableval in
9747 yes) enable_shared=yes ;;
9748 no) enable_shared=no ;;
9750 enable_shared=no
9751 # Look at the argument we got. We use all the common list separators.
9752 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9753 for pkg in $enableval; do
9754 IFS="$lt_save_ifs"
9755 if test "X$pkg" = "X$p"; then
9756 enable_shared=yes
9758 done
9759 IFS="$lt_save_ifs"
9761 esac
9762 else
9763 enable_shared=yes
9774 # Check whether --enable-static was given.
9775 if test "${enable_static+set}" = set; then :
9776 enableval=$enable_static; p=${PACKAGE-default}
9777 case $enableval in
9778 yes) enable_static=yes ;;
9779 no) enable_static=no ;;
9781 enable_static=no
9782 # Look at the argument we got. We use all the common list separators.
9783 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9784 for pkg in $enableval; do
9785 IFS="$lt_save_ifs"
9786 if test "X$pkg" = "X$p"; then
9787 enable_static=yes
9789 done
9790 IFS="$lt_save_ifs"
9792 esac
9793 else
9794 enable_static=yes
9806 # Check whether --with-pic was given.
9807 if test "${with_pic+set}" = set; then :
9808 withval=$with_pic; pic_mode="$withval"
9809 else
9810 pic_mode=default
9814 test -z "$pic_mode" && pic_mode=default
9822 # Check whether --enable-fast-install was given.
9823 if test "${enable_fast_install+set}" = set; then :
9824 enableval=$enable_fast_install; p=${PACKAGE-default}
9825 case $enableval in
9826 yes) enable_fast_install=yes ;;
9827 no) enable_fast_install=no ;;
9829 enable_fast_install=no
9830 # Look at the argument we got. We use all the common list separators.
9831 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9832 for pkg in $enableval; do
9833 IFS="$lt_save_ifs"
9834 if test "X$pkg" = "X$p"; then
9835 enable_fast_install=yes
9837 done
9838 IFS="$lt_save_ifs"
9840 esac
9841 else
9842 enable_fast_install=yes
9855 # This can be used to rebuild libtool when needed
9856 LIBTOOL_DEPS="$ltmain"
9858 # Always use our own libtool.
9859 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9886 test -z "$LN_S" && LN_S="ln -s"
9901 if test -n "${ZSH_VERSION+set}" ; then
9902 setopt NO_GLOB_SUBST
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9906 $as_echo_n "checking for objdir... " >&6; }
9907 if test "${lt_cv_objdir+set}" = set; then :
9908 $as_echo_n "(cached) " >&6
9909 else
9910 rm -f .libs 2>/dev/null
9911 mkdir .libs 2>/dev/null
9912 if test -d .libs; then
9913 lt_cv_objdir=.libs
9914 else
9915 # MS-DOS does not allow filenames that begin with a dot.
9916 lt_cv_objdir=_libs
9918 rmdir .libs 2>/dev/null
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9921 $as_echo "$lt_cv_objdir" >&6; }
9922 objdir=$lt_cv_objdir
9928 cat >>confdefs.h <<_ACEOF
9929 #define LT_OBJDIR "$lt_cv_objdir/"
9930 _ACEOF
9935 case $host_os in
9936 aix3*)
9937 # AIX sometimes has problems with the GCC collect2 program. For some
9938 # reason, if we set the COLLECT_NAMES environment variable, the problems
9939 # vanish in a puff of smoke.
9940 if test "X${COLLECT_NAMES+set}" != Xset; then
9941 COLLECT_NAMES=
9942 export COLLECT_NAMES
9945 esac
9947 # Global variables:
9948 ofile=libtool
9949 can_build_shared=yes
9951 # All known linkers require a `.a' archive for static linking (except MSVC,
9952 # which needs '.lib').
9953 libext=a
9955 with_gnu_ld="$lt_cv_prog_gnu_ld"
9957 old_CC="$CC"
9958 old_CFLAGS="$CFLAGS"
9960 # Set sane defaults for various variables
9961 test -z "$CC" && CC=cc
9962 test -z "$LTCC" && LTCC=$CC
9963 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9964 test -z "$LD" && LD=ld
9965 test -z "$ac_objext" && ac_objext=o
9967 for cc_temp in $compiler""; do
9968 case $cc_temp in
9969 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9970 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9971 \-*) ;;
9972 *) break;;
9973 esac
9974 done
9975 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9978 # Only perform the check for file, if the check method requires it
9979 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9980 case $deplibs_check_method in
9981 file_magic*)
9982 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9984 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9985 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9986 $as_echo_n "(cached) " >&6
9987 else
9988 case $MAGIC_CMD in
9989 [\\/*] | ?:[\\/]*)
9990 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9993 lt_save_MAGIC_CMD="$MAGIC_CMD"
9994 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9995 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9996 for ac_dir in $ac_dummy; do
9997 IFS="$lt_save_ifs"
9998 test -z "$ac_dir" && ac_dir=.
9999 if test -f $ac_dir/${ac_tool_prefix}file; then
10000 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10001 if test -n "$file_magic_test_file"; then
10002 case $deplibs_check_method in
10003 "file_magic "*)
10004 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10005 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10006 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10007 $EGREP "$file_magic_regex" > /dev/null; then
10009 else
10010 cat <<_LT_EOF 1>&2
10012 *** Warning: the command libtool uses to detect shared libraries,
10013 *** $file_magic_cmd, produces output that libtool cannot recognize.
10014 *** The result is that libtool may fail to recognize shared libraries
10015 *** as such. This will affect the creation of libtool libraries that
10016 *** depend on shared libraries, but programs linked with such libtool
10017 *** libraries will work regardless of this problem. Nevertheless, you
10018 *** may want to report the problem to your system manager and/or to
10019 *** bug-libtool@gnu.org
10021 _LT_EOF
10022 fi ;;
10023 esac
10025 break
10027 done
10028 IFS="$lt_save_ifs"
10029 MAGIC_CMD="$lt_save_MAGIC_CMD"
10031 esac
10034 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10035 if test -n "$MAGIC_CMD"; then
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10037 $as_echo "$MAGIC_CMD" >&6; }
10038 else
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10040 $as_echo "no" >&6; }
10047 if test -z "$lt_cv_path_MAGIC_CMD"; then
10048 if test -n "$ac_tool_prefix"; then
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10050 $as_echo_n "checking for file... " >&6; }
10051 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10052 $as_echo_n "(cached) " >&6
10053 else
10054 case $MAGIC_CMD in
10055 [\\/*] | ?:[\\/]*)
10056 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10059 lt_save_MAGIC_CMD="$MAGIC_CMD"
10060 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10061 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10062 for ac_dir in $ac_dummy; do
10063 IFS="$lt_save_ifs"
10064 test -z "$ac_dir" && ac_dir=.
10065 if test -f $ac_dir/file; then
10066 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10067 if test -n "$file_magic_test_file"; then
10068 case $deplibs_check_method in
10069 "file_magic "*)
10070 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10071 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10072 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10073 $EGREP "$file_magic_regex" > /dev/null; then
10075 else
10076 cat <<_LT_EOF 1>&2
10078 *** Warning: the command libtool uses to detect shared libraries,
10079 *** $file_magic_cmd, produces output that libtool cannot recognize.
10080 *** The result is that libtool may fail to recognize shared libraries
10081 *** as such. This will affect the creation of libtool libraries that
10082 *** depend on shared libraries, but programs linked with such libtool
10083 *** libraries will work regardless of this problem. Nevertheless, you
10084 *** may want to report the problem to your system manager and/or to
10085 *** bug-libtool@gnu.org
10087 _LT_EOF
10088 fi ;;
10089 esac
10091 break
10093 done
10094 IFS="$lt_save_ifs"
10095 MAGIC_CMD="$lt_save_MAGIC_CMD"
10097 esac
10100 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10101 if test -n "$MAGIC_CMD"; then
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10103 $as_echo "$MAGIC_CMD" >&6; }
10104 else
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10106 $as_echo "no" >&6; }
10110 else
10111 MAGIC_CMD=:
10117 esac
10119 # Use C for the default configuration in the libtool script
10121 lt_save_CC="$CC"
10122 ac_ext=c
10123 ac_cpp='$CPP $CPPFLAGS'
10124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10129 # Source file extension for C test sources.
10130 ac_ext=c
10132 # Object file extension for compiled C test sources.
10133 objext=o
10134 objext=$objext
10136 # Code to be used in simple compile tests
10137 lt_simple_compile_test_code="int some_variable = 0;"
10139 # Code to be used in simple link tests
10140 lt_simple_link_test_code='int main(){return(0);}'
10148 # If no C compiler was specified, use CC.
10149 LTCC=${LTCC-"$CC"}
10151 # If no C compiler flags were specified, use CFLAGS.
10152 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10154 # Allow CC to be a program name with arguments.
10155 compiler=$CC
10157 # Save the default compiler, since it gets overwritten when the other
10158 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10159 compiler_DEFAULT=$CC
10161 # save warnings/boilerplate of simple test code
10162 ac_outfile=conftest.$ac_objext
10163 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10164 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10165 _lt_compiler_boilerplate=`cat conftest.err`
10166 $RM conftest*
10168 ac_outfile=conftest.$ac_objext
10169 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10170 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10171 _lt_linker_boilerplate=`cat conftest.err`
10172 $RM -r conftest*
10175 ## CAVEAT EMPTOR:
10176 ## There is no encapsulation within the following macros, do not change
10177 ## the running order or otherwise move them around unless you know exactly
10178 ## what you are doing...
10179 if test -n "$compiler"; then
10181 lt_prog_compiler_no_builtin_flag=
10183 if test "$GCC" = yes; then
10184 case $cc_basename in
10185 nvcc*)
10186 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10188 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10189 esac
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10192 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10193 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10194 $as_echo_n "(cached) " >&6
10195 else
10196 lt_cv_prog_compiler_rtti_exceptions=no
10197 ac_outfile=conftest.$ac_objext
10198 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10199 lt_compiler_flag="-fno-rtti -fno-exceptions"
10200 # Insert the option either (1) after the last *FLAGS variable, or
10201 # (2) before a word containing "conftest.", or (3) at the end.
10202 # Note that $ac_compile itself does not contain backslashes and begins
10203 # with a dollar sign (not a hyphen), so the echo should work correctly.
10204 # The option is referenced via a variable to avoid confusing sed.
10205 lt_compile=`echo "$ac_compile" | $SED \
10206 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10207 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10208 -e 's:$: $lt_compiler_flag:'`
10209 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10210 (eval "$lt_compile" 2>conftest.err)
10211 ac_status=$?
10212 cat conftest.err >&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 if (exit $ac_status) && test -s "$ac_outfile"; then
10215 # The compiler can only warn and ignore the option if not recognized
10216 # So say no if there are warnings other than the usual output.
10217 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10218 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10219 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10220 lt_cv_prog_compiler_rtti_exceptions=yes
10223 $RM conftest*
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10227 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10229 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10230 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10231 else
10242 lt_prog_compiler_wl=
10243 lt_prog_compiler_pic=
10244 lt_prog_compiler_static=
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10247 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10249 if test "$GCC" = yes; then
10250 lt_prog_compiler_wl='-Wl,'
10251 lt_prog_compiler_static='-static'
10253 case $host_os in
10254 aix*)
10255 # All AIX code is PIC.
10256 if test "$host_cpu" = ia64; then
10257 # AIX 5 now supports IA64 processor
10258 lt_prog_compiler_static='-Bstatic'
10262 amigaos*)
10263 case $host_cpu in
10264 powerpc)
10265 # see comment about AmigaOS4 .so support
10266 lt_prog_compiler_pic='-fPIC'
10268 m68k)
10269 # FIXME: we need at least 68020 code to build shared libraries, but
10270 # adding the `-m68020' flag to GCC prevents building anything better,
10271 # like `-m68040'.
10272 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10274 esac
10277 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10278 # PIC is the default for these OSes.
10281 mingw* | cygwin* | pw32* | os2* | cegcc*)
10282 # This hack is so that the source file can tell whether it is being
10283 # built for inclusion in a dll (and should export symbols for example).
10284 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10285 # (--disable-auto-import) libraries
10286 lt_prog_compiler_pic='-DDLL_EXPORT'
10289 darwin* | rhapsody*)
10290 # PIC is the default on this platform
10291 # Common symbols not allowed in MH_DYLIB files
10292 lt_prog_compiler_pic='-fno-common'
10295 haiku*)
10296 # PIC is the default for Haiku.
10297 # The "-static" flag exists, but is broken.
10298 lt_prog_compiler_static=
10301 hpux*)
10302 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10303 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10304 # sets the default TLS model and affects inlining.
10305 case $host_cpu in
10306 hppa*64*)
10307 # +Z the default
10310 lt_prog_compiler_pic='-fPIC'
10312 esac
10315 interix[3-9]*)
10316 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10317 # Instead, we relocate shared libraries at runtime.
10320 msdosdjgpp*)
10321 # Just because we use GCC doesn't mean we suddenly get shared libraries
10322 # on systems that don't support them.
10323 lt_prog_compiler_can_build_shared=no
10324 enable_shared=no
10327 *nto* | *qnx*)
10328 # QNX uses GNU C++, but need to define -shared option too, otherwise
10329 # it will coredump.
10330 lt_prog_compiler_pic='-fPIC -shared'
10333 sysv4*MP*)
10334 if test -d /usr/nec; then
10335 lt_prog_compiler_pic=-Kconform_pic
10340 lt_prog_compiler_pic='-fPIC'
10342 esac
10344 case $cc_basename in
10345 nvcc*) # Cuda Compiler Driver 2.2
10346 lt_prog_compiler_wl='-Xlinker '
10347 lt_prog_compiler_pic='-Xcompiler -fPIC'
10349 esac
10350 else
10351 # PORTME Check for flag to pass linker flags through the system compiler.
10352 case $host_os in
10353 aix*)
10354 lt_prog_compiler_wl='-Wl,'
10355 if test "$host_cpu" = ia64; then
10356 # AIX 5 now supports IA64 processor
10357 lt_prog_compiler_static='-Bstatic'
10358 else
10359 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10363 mingw* | cygwin* | pw32* | os2* | cegcc*)
10364 # This hack is so that the source file can tell whether it is being
10365 # built for inclusion in a dll (and should export symbols for example).
10366 lt_prog_compiler_pic='-DDLL_EXPORT'
10369 hpux9* | hpux10* | hpux11*)
10370 lt_prog_compiler_wl='-Wl,'
10371 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10372 # not for PA HP-UX.
10373 case $host_cpu in
10374 hppa*64*|ia64*)
10375 # +Z the default
10378 lt_prog_compiler_pic='+Z'
10380 esac
10381 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10382 lt_prog_compiler_static='${wl}-a ${wl}archive'
10385 irix5* | irix6* | nonstopux*)
10386 lt_prog_compiler_wl='-Wl,'
10387 # PIC (with -KPIC) is the default.
10388 lt_prog_compiler_static='-non_shared'
10391 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10392 case $cc_basename in
10393 # old Intel for x86_64 which still supported -KPIC.
10394 ecc*)
10395 lt_prog_compiler_wl='-Wl,'
10396 lt_prog_compiler_pic='-KPIC'
10397 lt_prog_compiler_static='-static'
10399 # icc used to be incompatible with GCC.
10400 # ICC 10 doesn't accept -KPIC any more.
10401 icc* | ifort*)
10402 lt_prog_compiler_wl='-Wl,'
10403 lt_prog_compiler_pic='-fPIC'
10404 lt_prog_compiler_static='-static'
10406 # Lahey Fortran 8.1.
10407 lf95*)
10408 lt_prog_compiler_wl='-Wl,'
10409 lt_prog_compiler_pic='--shared'
10410 lt_prog_compiler_static='--static'
10412 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10413 # Portland Group compilers (*not* the Pentium gcc compiler,
10414 # which looks to be a dead project)
10415 lt_prog_compiler_wl='-Wl,'
10416 lt_prog_compiler_pic='-fpic'
10417 lt_prog_compiler_static='-Bstatic'
10419 ccc*)
10420 lt_prog_compiler_wl='-Wl,'
10421 # All Alpha code is PIC.
10422 lt_prog_compiler_static='-non_shared'
10424 xl* | bgxl* | bgf* | mpixl*)
10425 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10426 lt_prog_compiler_wl='-Wl,'
10427 lt_prog_compiler_pic='-qpic'
10428 lt_prog_compiler_static='-qstaticlink'
10431 case `$CC -V 2>&1 | sed 5q` in
10432 *Sun\ F* | *Sun*Fortran*)
10433 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10434 lt_prog_compiler_pic='-KPIC'
10435 lt_prog_compiler_static='-Bstatic'
10436 lt_prog_compiler_wl=''
10438 *Sun\ C*)
10439 # Sun C 5.9
10440 lt_prog_compiler_pic='-KPIC'
10441 lt_prog_compiler_static='-Bstatic'
10442 lt_prog_compiler_wl='-Wl,'
10444 esac
10446 esac
10449 newsos6)
10450 lt_prog_compiler_pic='-KPIC'
10451 lt_prog_compiler_static='-Bstatic'
10454 *nto* | *qnx*)
10455 # QNX uses GNU C++, but need to define -shared option too, otherwise
10456 # it will coredump.
10457 lt_prog_compiler_pic='-fPIC -shared'
10460 osf3* | osf4* | osf5*)
10461 lt_prog_compiler_wl='-Wl,'
10462 # All OSF/1 code is PIC.
10463 lt_prog_compiler_static='-non_shared'
10466 rdos*)
10467 lt_prog_compiler_static='-non_shared'
10470 solaris*)
10471 lt_prog_compiler_pic='-KPIC'
10472 lt_prog_compiler_static='-Bstatic'
10473 case $cc_basename in
10474 f77* | f90* | f95*)
10475 lt_prog_compiler_wl='-Qoption ld ';;
10477 lt_prog_compiler_wl='-Wl,';;
10478 esac
10481 sunos4*)
10482 lt_prog_compiler_wl='-Qoption ld '
10483 lt_prog_compiler_pic='-PIC'
10484 lt_prog_compiler_static='-Bstatic'
10487 sysv4 | sysv4.2uw2* | sysv4.3*)
10488 lt_prog_compiler_wl='-Wl,'
10489 lt_prog_compiler_pic='-KPIC'
10490 lt_prog_compiler_static='-Bstatic'
10493 sysv4*MP*)
10494 if test -d /usr/nec ;then
10495 lt_prog_compiler_pic='-Kconform_pic'
10496 lt_prog_compiler_static='-Bstatic'
10500 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10501 lt_prog_compiler_wl='-Wl,'
10502 lt_prog_compiler_pic='-KPIC'
10503 lt_prog_compiler_static='-Bstatic'
10506 unicos*)
10507 lt_prog_compiler_wl='-Wl,'
10508 lt_prog_compiler_can_build_shared=no
10511 uts4*)
10512 lt_prog_compiler_pic='-pic'
10513 lt_prog_compiler_static='-Bstatic'
10517 lt_prog_compiler_can_build_shared=no
10519 esac
10522 case $host_os in
10523 # For platforms which do not support PIC, -DPIC is meaningless:
10524 *djgpp*)
10525 lt_prog_compiler_pic=
10528 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10530 esac
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10532 $as_echo "$lt_prog_compiler_pic" >&6; }
10540 # Check to make sure the PIC flag actually works.
10542 if test -n "$lt_prog_compiler_pic"; then
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10544 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10545 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10546 $as_echo_n "(cached) " >&6
10547 else
10548 lt_cv_prog_compiler_pic_works=no
10549 ac_outfile=conftest.$ac_objext
10550 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10551 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10552 # Insert the option either (1) after the last *FLAGS variable, or
10553 # (2) before a word containing "conftest.", or (3) at the end.
10554 # Note that $ac_compile itself does not contain backslashes and begins
10555 # with a dollar sign (not a hyphen), so the echo should work correctly.
10556 # The option is referenced via a variable to avoid confusing sed.
10557 lt_compile=`echo "$ac_compile" | $SED \
10558 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10559 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10560 -e 's:$: $lt_compiler_flag:'`
10561 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10562 (eval "$lt_compile" 2>conftest.err)
10563 ac_status=$?
10564 cat conftest.err >&5
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 if (exit $ac_status) && test -s "$ac_outfile"; then
10567 # The compiler can only warn and ignore the option if not recognized
10568 # So say no if there are warnings other than the usual output.
10569 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10570 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10571 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10572 lt_cv_prog_compiler_pic_works=yes
10575 $RM conftest*
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10579 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10581 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10582 case $lt_prog_compiler_pic in
10583 "" | " "*) ;;
10584 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10585 esac
10586 else
10587 lt_prog_compiler_pic=
10588 lt_prog_compiler_can_build_shared=no
10599 # Check to make sure the static flag actually works.
10601 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10603 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10604 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10605 $as_echo_n "(cached) " >&6
10606 else
10607 lt_cv_prog_compiler_static_works=no
10608 save_LDFLAGS="$LDFLAGS"
10609 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10610 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10611 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10612 # The linker can only warn and ignore the option if not recognized
10613 # So say no if there are warnings
10614 if test -s conftest.err; then
10615 # Append any errors to the config.log.
10616 cat conftest.err 1>&5
10617 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10618 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10619 if diff conftest.exp conftest.er2 >/dev/null; then
10620 lt_cv_prog_compiler_static_works=yes
10622 else
10623 lt_cv_prog_compiler_static_works=yes
10626 $RM -r conftest*
10627 LDFLAGS="$save_LDFLAGS"
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10631 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10633 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10635 else
10636 lt_prog_compiler_static=
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10646 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10647 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10648 $as_echo_n "(cached) " >&6
10649 else
10650 lt_cv_prog_compiler_c_o=no
10651 $RM -r conftest 2>/dev/null
10652 mkdir conftest
10653 cd conftest
10654 mkdir out
10655 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10657 lt_compiler_flag="-o out/conftest2.$ac_objext"
10658 # Insert the option either (1) after the last *FLAGS variable, or
10659 # (2) before a word containing "conftest.", or (3) at the end.
10660 # Note that $ac_compile itself does not contain backslashes and begins
10661 # with a dollar sign (not a hyphen), so the echo should work correctly.
10662 lt_compile=`echo "$ac_compile" | $SED \
10663 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10664 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10665 -e 's:$: $lt_compiler_flag:'`
10666 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10667 (eval "$lt_compile" 2>out/conftest.err)
10668 ac_status=$?
10669 cat out/conftest.err >&5
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10672 then
10673 # The compiler can only warn and ignore the option if not recognized
10674 # So say no if there are warnings
10675 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10676 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10677 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10678 lt_cv_prog_compiler_c_o=yes
10681 chmod u+w . 2>&5
10682 $RM conftest*
10683 # SGI C++ compiler will create directory out/ii_files/ for
10684 # template instantiation
10685 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10686 $RM out/* && rmdir out
10687 cd ..
10688 $RM -r conftest
10689 $RM conftest*
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10693 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10701 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10702 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10703 $as_echo_n "(cached) " >&6
10704 else
10705 lt_cv_prog_compiler_c_o=no
10706 $RM -r conftest 2>/dev/null
10707 mkdir conftest
10708 cd conftest
10709 mkdir out
10710 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10712 lt_compiler_flag="-o out/conftest2.$ac_objext"
10713 # Insert the option either (1) after the last *FLAGS variable, or
10714 # (2) before a word containing "conftest.", or (3) at the end.
10715 # Note that $ac_compile itself does not contain backslashes and begins
10716 # with a dollar sign (not a hyphen), so the echo should work correctly.
10717 lt_compile=`echo "$ac_compile" | $SED \
10718 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10719 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10720 -e 's:$: $lt_compiler_flag:'`
10721 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10722 (eval "$lt_compile" 2>out/conftest.err)
10723 ac_status=$?
10724 cat out/conftest.err >&5
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10727 then
10728 # The compiler can only warn and ignore the option if not recognized
10729 # So say no if there are warnings
10730 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10731 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10732 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10733 lt_cv_prog_compiler_c_o=yes
10736 chmod u+w . 2>&5
10737 $RM conftest*
10738 # SGI C++ compiler will create directory out/ii_files/ for
10739 # template instantiation
10740 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10741 $RM out/* && rmdir out
10742 cd ..
10743 $RM -r conftest
10744 $RM conftest*
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10748 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10753 hard_links="nottested"
10754 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10755 # do not overwrite the value of need_locks provided by the user
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10757 $as_echo_n "checking if we can lock with hard links... " >&6; }
10758 hard_links=yes
10759 $RM conftest*
10760 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10761 touch conftest.a
10762 ln conftest.a conftest.b 2>&5 || hard_links=no
10763 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10765 $as_echo "$hard_links" >&6; }
10766 if test "$hard_links" = no; then
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10768 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10769 need_locks=warn
10771 else
10772 need_locks=no
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10781 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10783 runpath_var=
10784 allow_undefined_flag=
10785 always_export_symbols=no
10786 archive_cmds=
10787 archive_expsym_cmds=
10788 compiler_needs_object=no
10789 enable_shared_with_static_runtimes=no
10790 export_dynamic_flag_spec=
10791 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10792 hardcode_automatic=no
10793 hardcode_direct=no
10794 hardcode_direct_absolute=no
10795 hardcode_libdir_flag_spec=
10796 hardcode_libdir_flag_spec_ld=
10797 hardcode_libdir_separator=
10798 hardcode_minus_L=no
10799 hardcode_shlibpath_var=unsupported
10800 inherit_rpath=no
10801 link_all_deplibs=unknown
10802 module_cmds=
10803 module_expsym_cmds=
10804 old_archive_from_new_cmds=
10805 old_archive_from_expsyms_cmds=
10806 thread_safe_flag_spec=
10807 whole_archive_flag_spec=
10808 # include_expsyms should be a list of space-separated symbols to be *always*
10809 # included in the symbol list
10810 include_expsyms=
10811 # exclude_expsyms can be an extended regexp of symbols to exclude
10812 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10813 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10814 # as well as any symbol that contains `d'.
10815 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10816 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10817 # platforms (ab)use it in PIC code, but their linkers get confused if
10818 # the symbol is explicitly referenced. Since portable code cannot
10819 # rely on this symbol name, it's probably fine to never include it in
10820 # preloaded symbol tables.
10821 # Exclude shared library initialization/finalization symbols.
10822 extract_expsyms_cmds=
10824 case $host_os in
10825 cygwin* | mingw* | pw32* | cegcc*)
10826 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10827 # When not using gcc, we currently assume that we are using
10828 # Microsoft Visual C++.
10829 if test "$GCC" != yes; then
10830 with_gnu_ld=no
10833 interix*)
10834 # we just hope/assume this is gcc and not c89 (= MSVC++)
10835 with_gnu_ld=yes
10837 openbsd*)
10838 with_gnu_ld=no
10840 esac
10842 ld_shlibs=yes
10844 # On some targets, GNU ld is compatible enough with the native linker
10845 # that we're better off using the native interface for both.
10846 lt_use_gnu_ld_interface=no
10847 if test "$with_gnu_ld" = yes; then
10848 case $host_os in
10849 aix*)
10850 # The AIX port of GNU ld has always aspired to compatibility
10851 # with the native linker. However, as the warning in the GNU ld
10852 # block says, versions before 2.19.5* couldn't really create working
10853 # shared libraries, regardless of the interface used.
10854 case `$LD -v 2>&1` in
10855 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10856 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10857 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10859 lt_use_gnu_ld_interface=yes
10861 esac
10864 lt_use_gnu_ld_interface=yes
10866 esac
10869 if test "$lt_use_gnu_ld_interface" = yes; then
10870 # If archive_cmds runs LD, not CC, wlarc should be empty
10871 wlarc='${wl}'
10873 # Set some defaults for GNU ld with shared library support. These
10874 # are reset later if shared libraries are not supported. Putting them
10875 # here allows them to be overridden if necessary.
10876 runpath_var=LD_RUN_PATH
10877 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10878 export_dynamic_flag_spec='${wl}--export-dynamic'
10879 # ancient GNU ld didn't support --whole-archive et. al.
10880 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10881 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10882 else
10883 whole_archive_flag_spec=
10885 supports_anon_versioning=no
10886 case `$LD -v 2>&1` in
10887 *GNU\ gold*) supports_anon_versioning=yes ;;
10888 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10889 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10890 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10891 *\ 2.11.*) ;; # other 2.11 versions
10892 *) supports_anon_versioning=yes ;;
10893 esac
10895 # See if GNU ld supports shared libraries.
10896 case $host_os in
10897 aix[3-9]*)
10898 # On AIX/PPC, the GNU linker is very broken
10899 if test "$host_cpu" != ia64; then
10900 ld_shlibs=no
10901 cat <<_LT_EOF 1>&2
10903 *** Warning: the GNU linker, at least up to release 2.19, is reported
10904 *** to be unable to reliably create shared libraries on AIX.
10905 *** Therefore, libtool is disabling shared libraries support. If you
10906 *** really care for shared libraries, you may want to install binutils
10907 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10908 *** You will then need to restart the configuration process.
10910 _LT_EOF
10914 amigaos*)
10915 case $host_cpu in
10916 powerpc)
10917 # see comment about AmigaOS4 .so support
10918 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10919 archive_expsym_cmds=''
10921 m68k)
10922 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)'
10923 hardcode_libdir_flag_spec='-L$libdir'
10924 hardcode_minus_L=yes
10926 esac
10929 beos*)
10930 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10931 allow_undefined_flag=unsupported
10932 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10933 # support --undefined. This deserves some investigation. FIXME
10934 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10935 else
10936 ld_shlibs=no
10940 cygwin* | mingw* | pw32* | cegcc*)
10941 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10942 # as there is no search path for DLLs.
10943 hardcode_libdir_flag_spec='-L$libdir'
10944 export_dynamic_flag_spec='${wl}--export-all-symbols'
10945 allow_undefined_flag=unsupported
10946 always_export_symbols=no
10947 enable_shared_with_static_runtimes=yes
10948 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10950 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10951 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10952 # If the export-symbols file already is a .def file (1st line
10953 # is EXPORTS), use it as is; otherwise, prepend...
10954 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10955 cp $export_symbols $output_objdir/$soname.def;
10956 else
10957 echo EXPORTS > $output_objdir/$soname.def;
10958 cat $export_symbols >> $output_objdir/$soname.def;
10960 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10961 else
10962 ld_shlibs=no
10966 haiku*)
10967 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10968 link_all_deplibs=yes
10971 interix[3-9]*)
10972 hardcode_direct=no
10973 hardcode_shlibpath_var=no
10974 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10975 export_dynamic_flag_spec='${wl}-E'
10976 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10977 # Instead, shared libraries are loaded at an image base (0x10000000 by
10978 # default) and relocated if they conflict, which is a slow very memory
10979 # consuming and fragmenting process. To avoid this, we pick a random,
10980 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10981 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10982 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10983 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'
10986 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10987 tmp_diet=no
10988 if test "$host_os" = linux-dietlibc; then
10989 case $cc_basename in
10990 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10991 esac
10993 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10994 && test "$tmp_diet" = no
10995 then
10996 tmp_addflag=
10997 tmp_sharedflag='-shared'
10998 case $cc_basename,$host_cpu in
10999 pgcc*) # Portland Group C compiler
11000 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11001 tmp_addflag=' $pic_flag'
11003 pgf77* | pgf90* | pgf95* | pgfortran*)
11004 # Portland Group f77 and f90 compilers
11005 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11006 tmp_addflag=' $pic_flag -Mnomain' ;;
11007 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11008 tmp_addflag=' -i_dynamic' ;;
11009 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11010 tmp_addflag=' -i_dynamic -nofor_main' ;;
11011 ifc* | ifort*) # Intel Fortran compiler
11012 tmp_addflag=' -nofor_main' ;;
11013 lf95*) # Lahey Fortran 8.1
11014 whole_archive_flag_spec=
11015 tmp_sharedflag='--shared' ;;
11016 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11017 tmp_sharedflag='-qmkshrobj'
11018 tmp_addflag= ;;
11019 nvcc*) # Cuda Compiler Driver 2.2
11020 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11021 compiler_needs_object=yes
11023 esac
11024 case `$CC -V 2>&1 | sed 5q` in
11025 *Sun\ C*) # Sun C 5.9
11026 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11027 compiler_needs_object=yes
11028 tmp_sharedflag='-G' ;;
11029 *Sun\ F*) # Sun Fortran 8.3
11030 tmp_sharedflag='-G' ;;
11031 esac
11032 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11034 if test "x$supports_anon_versioning" = xyes; then
11035 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11036 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11037 echo "local: *; };" >> $output_objdir/$libname.ver~
11038 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11041 case $cc_basename in
11042 xlf* | bgf* | bgxlf* | mpixlf*)
11043 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11044 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11045 hardcode_libdir_flag_spec=
11046 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11047 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11048 if test "x$supports_anon_versioning" = xyes; then
11049 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11050 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11051 echo "local: *; };" >> $output_objdir/$libname.ver~
11052 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11055 esac
11056 else
11057 ld_shlibs=no
11061 netbsd*)
11062 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11063 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11064 wlarc=
11065 else
11066 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11067 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11071 solaris*)
11072 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11073 ld_shlibs=no
11074 cat <<_LT_EOF 1>&2
11076 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11077 *** create shared libraries on Solaris systems. Therefore, libtool
11078 *** is disabling shared libraries support. We urge you to upgrade GNU
11079 *** binutils to release 2.9.1 or newer. Another option is to modify
11080 *** your PATH or compiler configuration so that the native linker is
11081 *** used, and then restart.
11083 _LT_EOF
11084 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11085 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11086 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11087 else
11088 ld_shlibs=no
11092 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11093 case `$LD -v 2>&1` in
11094 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11095 ld_shlibs=no
11096 cat <<_LT_EOF 1>&2
11098 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11099 *** reliably create shared libraries on SCO systems. Therefore, libtool
11100 *** is disabling shared libraries support. We urge you to upgrade GNU
11101 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11102 *** your PATH or compiler configuration so that the native linker is
11103 *** used, and then restart.
11105 _LT_EOF
11108 # For security reasons, it is highly recommended that you always
11109 # use absolute paths for naming shared libraries, and exclude the
11110 # DT_RUNPATH tag from executables and libraries. But doing so
11111 # requires that you compile everything twice, which is a pain.
11112 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11113 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11114 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11115 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11116 else
11117 ld_shlibs=no
11120 esac
11123 sunos4*)
11124 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11125 wlarc=
11126 hardcode_direct=yes
11127 hardcode_shlibpath_var=no
11131 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11132 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11133 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11134 else
11135 ld_shlibs=no
11138 esac
11140 if test "$ld_shlibs" = no; then
11141 runpath_var=
11142 hardcode_libdir_flag_spec=
11143 export_dynamic_flag_spec=
11144 whole_archive_flag_spec=
11146 else
11147 # PORTME fill in a description of your system's linker (not GNU ld)
11148 case $host_os in
11149 aix3*)
11150 allow_undefined_flag=unsupported
11151 always_export_symbols=yes
11152 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'
11153 # Note: this linker hardcodes the directories in LIBPATH if there
11154 # are no directories specified by -L.
11155 hardcode_minus_L=yes
11156 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11157 # Neither direct hardcoding nor static linking is supported with a
11158 # broken collect2.
11159 hardcode_direct=unsupported
11163 aix[4-9]*)
11164 if test "$host_cpu" = ia64; then
11165 # On IA64, the linker does run time linking by default, so we don't
11166 # have to do anything special.
11167 aix_use_runtimelinking=no
11168 exp_sym_flag='-Bexport'
11169 no_entry_flag=""
11170 else
11171 # If we're using GNU nm, then we don't want the "-C" option.
11172 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11173 # Also, AIX nm treats weak defined symbols like other global
11174 # defined symbols, whereas GNU nm marks them as "W".
11175 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11176 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11177 else
11178 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'
11180 aix_use_runtimelinking=no
11182 # Test if we are trying to use run time linking or normal
11183 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11184 # need to do runtime linking.
11185 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11186 for ld_flag in $LDFLAGS; do
11187 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11188 aix_use_runtimelinking=yes
11189 break
11191 done
11193 esac
11195 exp_sym_flag='-bexport'
11196 no_entry_flag='-bnoentry'
11199 # When large executables or shared objects are built, AIX ld can
11200 # have problems creating the table of contents. If linking a library
11201 # or program results in "error TOC overflow" add -mminimal-toc to
11202 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11203 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11205 archive_cmds=''
11206 hardcode_direct=yes
11207 hardcode_direct_absolute=yes
11208 hardcode_libdir_separator=':'
11209 link_all_deplibs=yes
11210 file_list_spec='${wl}-f,'
11212 if test "$GCC" = yes; then
11213 case $host_os in aix4.[012]|aix4.[012].*)
11214 # We only want to do this on AIX 4.2 and lower, the check
11215 # below for broken collect2 doesn't work under 4.3+
11216 collect2name=`${CC} -print-prog-name=collect2`
11217 if test -f "$collect2name" &&
11218 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11219 then
11220 # We have reworked collect2
11222 else
11223 # We have old collect2
11224 hardcode_direct=unsupported
11225 # It fails to find uninstalled libraries when the uninstalled
11226 # path is not listed in the libpath. Setting hardcode_minus_L
11227 # to unsupported forces relinking
11228 hardcode_minus_L=yes
11229 hardcode_libdir_flag_spec='-L$libdir'
11230 hardcode_libdir_separator=
11233 esac
11234 shared_flag='-shared'
11235 if test "$aix_use_runtimelinking" = yes; then
11236 shared_flag="$shared_flag "'${wl}-G'
11238 else
11239 # not using gcc
11240 if test "$host_cpu" = ia64; then
11241 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11242 # chokes on -Wl,-G. The following line is correct:
11243 shared_flag='-G'
11244 else
11245 if test "$aix_use_runtimelinking" = yes; then
11246 shared_flag='${wl}-G'
11247 else
11248 shared_flag='${wl}-bM:SRE'
11253 export_dynamic_flag_spec='${wl}-bexpall'
11254 # It seems that -bexpall does not export symbols beginning with
11255 # underscore (_), so it is better to generate a list of symbols to export.
11256 always_export_symbols=yes
11257 if test "$aix_use_runtimelinking" = yes; then
11258 # Warning - without using the other runtime loading flags (-brtl),
11259 # -berok will link without error, but may produce a broken library.
11260 allow_undefined_flag='-berok'
11261 # Determine the default libpath from the value encoded in an
11262 # empty executable.
11263 if test x$gcc_no_link = xyes; then
11264 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11267 /* end confdefs.h. */
11270 main ()
11274 return 0;
11276 _ACEOF
11277 if ac_fn_c_try_link "$LINENO"; then :
11279 lt_aix_libpath_sed='
11280 /Import File Strings/,/^$/ {
11281 /^0/ {
11282 s/^0 *\(.*\)$/\1/
11286 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11287 # Check for a 64-bit object if we didn't find anything.
11288 if test -z "$aix_libpath"; then
11289 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11292 rm -f core conftest.err conftest.$ac_objext \
11293 conftest$ac_exeext conftest.$ac_ext
11294 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11296 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11297 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11298 else
11299 if test "$host_cpu" = ia64; then
11300 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11301 allow_undefined_flag="-z nodefs"
11302 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"
11303 else
11304 # Determine the default libpath from the value encoded in an
11305 # empty executable.
11306 if test x$gcc_no_link = xyes; then
11307 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11310 /* end confdefs.h. */
11313 main ()
11317 return 0;
11319 _ACEOF
11320 if ac_fn_c_try_link "$LINENO"; then :
11322 lt_aix_libpath_sed='
11323 /Import File Strings/,/^$/ {
11324 /^0/ {
11325 s/^0 *\(.*\)$/\1/
11329 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11330 # Check for a 64-bit object if we didn't find anything.
11331 if test -z "$aix_libpath"; then
11332 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11335 rm -f core conftest.err conftest.$ac_objext \
11336 conftest$ac_exeext conftest.$ac_ext
11337 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11339 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11340 # Warning - without using the other run time loading flags,
11341 # -berok will link without error, but may produce a broken library.
11342 no_undefined_flag=' ${wl}-bernotok'
11343 allow_undefined_flag=' ${wl}-berok'
11344 if test "$with_gnu_ld" = yes; then
11345 # We only use this code for GNU lds that support --whole-archive.
11346 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11347 else
11348 # Exported symbols can be pulled into shared objects from archives
11349 whole_archive_flag_spec='$convenience'
11351 archive_cmds_need_lc=yes
11352 # This is similar to how AIX traditionally builds its shared libraries.
11353 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'
11358 amigaos*)
11359 case $host_cpu in
11360 powerpc)
11361 # see comment about AmigaOS4 .so support
11362 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11363 archive_expsym_cmds=''
11365 m68k)
11366 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)'
11367 hardcode_libdir_flag_spec='-L$libdir'
11368 hardcode_minus_L=yes
11370 esac
11373 bsdi[45]*)
11374 export_dynamic_flag_spec=-rdynamic
11377 cygwin* | mingw* | pw32* | cegcc*)
11378 # When not using gcc, we currently assume that we are using
11379 # Microsoft Visual C++.
11380 # hardcode_libdir_flag_spec is actually meaningless, as there is
11381 # no search path for DLLs.
11382 hardcode_libdir_flag_spec=' '
11383 allow_undefined_flag=unsupported
11384 # Tell ltmain to make .lib files, not .a files.
11385 libext=lib
11386 # Tell ltmain to make .dll files, not .so files.
11387 shrext_cmds=".dll"
11388 # FIXME: Setting linknames here is a bad hack.
11389 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11390 # The linker will automatically build a .lib file if we build a DLL.
11391 old_archive_from_new_cmds='true'
11392 # FIXME: Should let the user specify the lib program.
11393 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11394 fix_srcfile_path='`cygpath -w "$srcfile"`'
11395 enable_shared_with_static_runtimes=yes
11398 darwin* | rhapsody*)
11401 archive_cmds_need_lc=no
11402 hardcode_direct=no
11403 hardcode_automatic=yes
11404 hardcode_shlibpath_var=unsupported
11405 if test "$lt_cv_ld_force_load" = "yes"; then
11406 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11407 else
11408 whole_archive_flag_spec=''
11410 link_all_deplibs=yes
11411 allow_undefined_flag="$_lt_dar_allow_undefined"
11412 case $cc_basename in
11413 ifort*) _lt_dar_can_shared=yes ;;
11414 *) _lt_dar_can_shared=$GCC ;;
11415 esac
11416 if test "$_lt_dar_can_shared" = "yes"; then
11417 output_verbose_link_cmd=func_echo_all
11418 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11419 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11420 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}"
11421 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}"
11423 else
11424 ld_shlibs=no
11429 dgux*)
11430 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11431 hardcode_libdir_flag_spec='-L$libdir'
11432 hardcode_shlibpath_var=no
11435 freebsd1*)
11436 ld_shlibs=no
11439 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11440 # support. Future versions do this automatically, but an explicit c++rt0.o
11441 # does not break anything, and helps significantly (at the cost of a little
11442 # extra space).
11443 freebsd2.2*)
11444 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11445 hardcode_libdir_flag_spec='-R$libdir'
11446 hardcode_direct=yes
11447 hardcode_shlibpath_var=no
11450 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11451 freebsd2*)
11452 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11453 hardcode_direct=yes
11454 hardcode_minus_L=yes
11455 hardcode_shlibpath_var=no
11458 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11459 freebsd* | dragonfly*)
11460 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11461 hardcode_libdir_flag_spec='-R$libdir'
11462 hardcode_direct=yes
11463 hardcode_shlibpath_var=no
11466 hpux9*)
11467 if test "$GCC" = yes; then
11468 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'
11469 else
11470 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'
11472 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11473 hardcode_libdir_separator=:
11474 hardcode_direct=yes
11476 # hardcode_minus_L: Not really in the search PATH,
11477 # but as the default location of the library.
11478 hardcode_minus_L=yes
11479 export_dynamic_flag_spec='${wl}-E'
11482 hpux10*)
11483 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11484 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11485 else
11486 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11488 if test "$with_gnu_ld" = no; then
11489 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11490 hardcode_libdir_flag_spec_ld='+b $libdir'
11491 hardcode_libdir_separator=:
11492 hardcode_direct=yes
11493 hardcode_direct_absolute=yes
11494 export_dynamic_flag_spec='${wl}-E'
11495 # hardcode_minus_L: Not really in the search PATH,
11496 # but as the default location of the library.
11497 hardcode_minus_L=yes
11501 hpux11*)
11502 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11503 case $host_cpu in
11504 hppa*64*)
11505 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11507 ia64*)
11508 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11511 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11513 esac
11514 else
11515 case $host_cpu in
11516 hppa*64*)
11517 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11519 ia64*)
11520 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11524 # Older versions of the 11.00 compiler do not understand -b yet
11525 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11527 $as_echo_n "checking if $CC understands -b... " >&6; }
11528 if test "${lt_cv_prog_compiler__b+set}" = set; then :
11529 $as_echo_n "(cached) " >&6
11530 else
11531 lt_cv_prog_compiler__b=no
11532 save_LDFLAGS="$LDFLAGS"
11533 LDFLAGS="$LDFLAGS -b"
11534 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11535 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11536 # The linker can only warn and ignore the option if not recognized
11537 # So say no if there are warnings
11538 if test -s conftest.err; then
11539 # Append any errors to the config.log.
11540 cat conftest.err 1>&5
11541 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11542 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11543 if diff conftest.exp conftest.er2 >/dev/null; then
11544 lt_cv_prog_compiler__b=yes
11546 else
11547 lt_cv_prog_compiler__b=yes
11550 $RM -r conftest*
11551 LDFLAGS="$save_LDFLAGS"
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11555 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11557 if test x"$lt_cv_prog_compiler__b" = xyes; then
11558 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11559 else
11560 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11564 esac
11566 if test "$with_gnu_ld" = no; then
11567 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11568 hardcode_libdir_separator=:
11570 case $host_cpu in
11571 hppa*64*|ia64*)
11572 hardcode_direct=no
11573 hardcode_shlibpath_var=no
11576 hardcode_direct=yes
11577 hardcode_direct_absolute=yes
11578 export_dynamic_flag_spec='${wl}-E'
11580 # hardcode_minus_L: Not really in the search PATH,
11581 # but as the default location of the library.
11582 hardcode_minus_L=yes
11584 esac
11588 irix5* | irix6* | nonstopux*)
11589 if test "$GCC" = yes; then
11590 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11591 # Try to use the -exported_symbol ld option, if it does not
11592 # work, assume that -exports_file does not work either and
11593 # implicitly export all symbols.
11594 save_LDFLAGS="$LDFLAGS"
11595 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11596 if test x$gcc_no_link = xyes; then
11597 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11600 /* end confdefs.h. */
11601 int foo(void) {}
11602 _ACEOF
11603 if ac_fn_c_try_link "$LINENO"; then :
11604 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11607 rm -f core conftest.err conftest.$ac_objext \
11608 conftest$ac_exeext conftest.$ac_ext
11609 LDFLAGS="$save_LDFLAGS"
11610 else
11611 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11612 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11614 archive_cmds_need_lc='no'
11615 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11616 hardcode_libdir_separator=:
11617 inherit_rpath=yes
11618 link_all_deplibs=yes
11621 netbsd*)
11622 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11623 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11624 else
11625 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11627 hardcode_libdir_flag_spec='-R$libdir'
11628 hardcode_direct=yes
11629 hardcode_shlibpath_var=no
11632 newsos6)
11633 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11634 hardcode_direct=yes
11635 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11636 hardcode_libdir_separator=:
11637 hardcode_shlibpath_var=no
11640 *nto* | *qnx*)
11643 openbsd*)
11644 if test -f /usr/libexec/ld.so; then
11645 hardcode_direct=yes
11646 hardcode_shlibpath_var=no
11647 hardcode_direct_absolute=yes
11648 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11649 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11650 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11651 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11652 export_dynamic_flag_spec='${wl}-E'
11653 else
11654 case $host_os in
11655 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11656 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11657 hardcode_libdir_flag_spec='-R$libdir'
11660 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11661 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11663 esac
11665 else
11666 ld_shlibs=no
11670 os2*)
11671 hardcode_libdir_flag_spec='-L$libdir'
11672 hardcode_minus_L=yes
11673 allow_undefined_flag=unsupported
11674 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'
11675 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11678 osf3*)
11679 if test "$GCC" = yes; then
11680 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11681 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11682 else
11683 allow_undefined_flag=' -expect_unresolved \*'
11684 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11686 archive_cmds_need_lc='no'
11687 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11688 hardcode_libdir_separator=:
11691 osf4* | osf5*) # as osf3* with the addition of -msym flag
11692 if test "$GCC" = yes; then
11693 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11694 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11695 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11696 else
11697 allow_undefined_flag=' -expect_unresolved \*'
11698 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11699 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~
11700 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11702 # Both c and cxx compiler support -rpath directly
11703 hardcode_libdir_flag_spec='-rpath $libdir'
11705 archive_cmds_need_lc='no'
11706 hardcode_libdir_separator=:
11709 solaris*)
11710 no_undefined_flag=' -z defs'
11711 if test "$GCC" = yes; then
11712 wlarc='${wl}'
11713 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11714 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11715 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11716 else
11717 case `$CC -V 2>&1` in
11718 *"Compilers 5.0"*)
11719 wlarc=''
11720 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11721 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11722 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11725 wlarc='${wl}'
11726 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11727 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11728 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11730 esac
11732 hardcode_libdir_flag_spec='-R$libdir'
11733 hardcode_shlibpath_var=no
11734 case $host_os in
11735 solaris2.[0-5] | solaris2.[0-5].*) ;;
11737 # The compiler driver will combine and reorder linker options,
11738 # but understands `-z linker_flag'. GCC discards it without `$wl',
11739 # but is careful enough not to reorder.
11740 # Supported since Solaris 2.6 (maybe 2.5.1?)
11741 if test "$GCC" = yes; then
11742 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11743 else
11744 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11747 esac
11748 link_all_deplibs=yes
11751 sunos4*)
11752 if test "x$host_vendor" = xsequent; then
11753 # Use $CC to link under sequent, because it throws in some extra .o
11754 # files that make .init and .fini sections work.
11755 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11756 else
11757 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11759 hardcode_libdir_flag_spec='-L$libdir'
11760 hardcode_direct=yes
11761 hardcode_minus_L=yes
11762 hardcode_shlibpath_var=no
11765 sysv4)
11766 case $host_vendor in
11767 sni)
11768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11769 hardcode_direct=yes # is this really true???
11771 siemens)
11772 ## LD is ld it makes a PLAMLIB
11773 ## CC just makes a GrossModule.
11774 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11775 reload_cmds='$CC -r -o $output$reload_objs'
11776 hardcode_direct=no
11778 motorola)
11779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11780 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11782 esac
11783 runpath_var='LD_RUN_PATH'
11784 hardcode_shlibpath_var=no
11787 sysv4.3*)
11788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11789 hardcode_shlibpath_var=no
11790 export_dynamic_flag_spec='-Bexport'
11793 sysv4*MP*)
11794 if test -d /usr/nec; then
11795 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11796 hardcode_shlibpath_var=no
11797 runpath_var=LD_RUN_PATH
11798 hardcode_runpath_var=yes
11799 ld_shlibs=yes
11803 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11804 no_undefined_flag='${wl}-z,text'
11805 archive_cmds_need_lc=no
11806 hardcode_shlibpath_var=no
11807 runpath_var='LD_RUN_PATH'
11809 if test "$GCC" = yes; then
11810 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11811 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11812 else
11813 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11814 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11818 sysv5* | sco3.2v5* | sco5v6*)
11819 # Note: We can NOT use -z defs as we might desire, because we do not
11820 # link with -lc, and that would cause any symbols used from libc to
11821 # always be unresolved, which means just about no library would
11822 # ever link correctly. If we're not using GNU ld we use -z text
11823 # though, which does catch some bad symbols but isn't as heavy-handed
11824 # as -z defs.
11825 no_undefined_flag='${wl}-z,text'
11826 allow_undefined_flag='${wl}-z,nodefs'
11827 archive_cmds_need_lc=no
11828 hardcode_shlibpath_var=no
11829 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11830 hardcode_libdir_separator=':'
11831 link_all_deplibs=yes
11832 export_dynamic_flag_spec='${wl}-Bexport'
11833 runpath_var='LD_RUN_PATH'
11835 if test "$GCC" = yes; then
11836 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11837 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11838 else
11839 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11840 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11844 uts4*)
11845 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11846 hardcode_libdir_flag_spec='-L$libdir'
11847 hardcode_shlibpath_var=no
11851 ld_shlibs=no
11853 esac
11855 if test x$host_vendor = xsni; then
11856 case $host in
11857 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11858 export_dynamic_flag_spec='${wl}-Blargedynsym'
11860 esac
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11865 $as_echo "$ld_shlibs" >&6; }
11866 test "$ld_shlibs" = no && can_build_shared=no
11868 with_gnu_ld=$with_gnu_ld
11885 # Do we need to explicitly link libc?
11887 case "x$archive_cmds_need_lc" in
11888 x|xyes)
11889 # Assume -lc should be added
11890 archive_cmds_need_lc=yes
11892 if test "$enable_shared" = yes && test "$GCC" = yes; then
11893 case $archive_cmds in
11894 *'~'*)
11895 # FIXME: we may have to deal with multi-command sequences.
11897 '$CC '*)
11898 # Test whether the compiler implicitly links with -lc since on some
11899 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11900 # to ld, don't add -lc before -lgcc.
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11902 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11903 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
11904 $as_echo_n "(cached) " >&6
11905 else
11906 $RM conftest*
11907 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11910 (eval $ac_compile) 2>&5
11911 ac_status=$?
11912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11913 test $ac_status = 0; } 2>conftest.err; then
11914 soname=conftest
11915 lib=conftest
11916 libobjs=conftest.$ac_objext
11917 deplibs=
11918 wl=$lt_prog_compiler_wl
11919 pic_flag=$lt_prog_compiler_pic
11920 compiler_flags=-v
11921 linker_flags=-v
11922 verstring=
11923 output_objdir=.
11924 libname=conftest
11925 lt_save_allow_undefined_flag=$allow_undefined_flag
11926 allow_undefined_flag=
11927 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11928 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11929 ac_status=$?
11930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11931 test $ac_status = 0; }
11932 then
11933 lt_cv_archive_cmds_need_lc=no
11934 else
11935 lt_cv_archive_cmds_need_lc=yes
11937 allow_undefined_flag=$lt_save_allow_undefined_flag
11938 else
11939 cat conftest.err 1>&5
11941 $RM conftest*
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11945 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11946 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11948 esac
11951 esac
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12110 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12112 if test "$GCC" = yes; then
12113 case $host_os in
12114 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12115 *) lt_awk_arg="/^libraries:/" ;;
12116 esac
12117 case $host_os in
12118 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12119 *) lt_sed_strip_eq="s,=/,/,g" ;;
12120 esac
12121 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12122 case $lt_search_path_spec in
12123 *\;*)
12124 # if the path contains ";" then we assume it to be the separator
12125 # otherwise default to the standard path separator (i.e. ":") - it is
12126 # assumed that no part of a normal pathname contains ";" but that should
12127 # okay in the real world where ";" in dirpaths is itself problematic.
12128 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12131 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12133 esac
12134 # Ok, now we have the path, separated by spaces, we can step through it
12135 # and add multilib dir if necessary.
12136 lt_tmp_lt_search_path_spec=
12137 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12138 for lt_sys_path in $lt_search_path_spec; do
12139 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12140 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12141 else
12142 test -d "$lt_sys_path" && \
12143 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12145 done
12146 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12147 BEGIN {RS=" "; FS="/|\n";} {
12148 lt_foo="";
12149 lt_count=0;
12150 for (lt_i = NF; lt_i > 0; lt_i--) {
12151 if ($lt_i != "" && $lt_i != ".") {
12152 if ($lt_i == "..") {
12153 lt_count++;
12154 } else {
12155 if (lt_count == 0) {
12156 lt_foo="/" $lt_i lt_foo;
12157 } else {
12158 lt_count--;
12163 if (lt_foo != "") { lt_freq[lt_foo]++; }
12164 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12166 # AWK program above erroneously prepends '/' to C:/dos/paths
12167 # for these hosts.
12168 case $host_os in
12169 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12170 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12171 esac
12172 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12173 else
12174 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12176 library_names_spec=
12177 libname_spec='lib$name'
12178 soname_spec=
12179 shrext_cmds=".so"
12180 postinstall_cmds=
12181 postuninstall_cmds=
12182 finish_cmds=
12183 finish_eval=
12184 shlibpath_var=
12185 shlibpath_overrides_runpath=unknown
12186 version_type=none
12187 dynamic_linker="$host_os ld.so"
12188 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12189 need_lib_prefix=unknown
12190 hardcode_into_libs=no
12192 # when you set need_version to no, make sure it does not cause -set_version
12193 # flags to be left without arguments
12194 need_version=unknown
12196 case $host_os in
12197 aix3*)
12198 version_type=linux
12199 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12200 shlibpath_var=LIBPATH
12202 # AIX 3 has no versioning support, so we append a major version to the name.
12203 soname_spec='${libname}${release}${shared_ext}$major'
12206 aix[4-9]*)
12207 version_type=linux
12208 need_lib_prefix=no
12209 need_version=no
12210 hardcode_into_libs=yes
12211 if test "$host_cpu" = ia64; then
12212 # AIX 5 supports IA64
12213 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12214 shlibpath_var=LD_LIBRARY_PATH
12215 else
12216 # With GCC up to 2.95.x, collect2 would create an import file
12217 # for dependence libraries. The import file would start with
12218 # the line `#! .'. This would cause the generated library to
12219 # depend on `.', always an invalid library. This was fixed in
12220 # development snapshots of GCC prior to 3.0.
12221 case $host_os in
12222 aix4 | aix4.[01] | aix4.[01].*)
12223 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12224 echo ' yes '
12225 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12227 else
12228 can_build_shared=no
12231 esac
12232 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12233 # soname into executable. Probably we can add versioning support to
12234 # collect2, so additional links can be useful in future.
12235 if test "$aix_use_runtimelinking" = yes; then
12236 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12237 # instead of lib<name>.a to let people know that these are not
12238 # typical AIX shared libraries.
12239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12240 else
12241 # We preserve .a as extension for shared libraries through AIX4.2
12242 # and later when we are not doing run time linking.
12243 library_names_spec='${libname}${release}.a $libname.a'
12244 soname_spec='${libname}${release}${shared_ext}$major'
12246 shlibpath_var=LIBPATH
12250 amigaos*)
12251 case $host_cpu in
12252 powerpc)
12253 # Since July 2007 AmigaOS4 officially supports .so libraries.
12254 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12257 m68k)
12258 library_names_spec='$libname.ixlibrary $libname.a'
12259 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12260 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12262 esac
12265 beos*)
12266 library_names_spec='${libname}${shared_ext}'
12267 dynamic_linker="$host_os ld.so"
12268 shlibpath_var=LIBRARY_PATH
12271 bsdi[45]*)
12272 version_type=linux
12273 need_version=no
12274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12275 soname_spec='${libname}${release}${shared_ext}$major'
12276 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12277 shlibpath_var=LD_LIBRARY_PATH
12278 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12279 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12280 # the default ld.so.conf also contains /usr/contrib/lib and
12281 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12282 # libtool to hard-code these into programs
12285 cygwin* | mingw* | pw32* | cegcc*)
12286 version_type=windows
12287 shrext_cmds=".dll"
12288 need_version=no
12289 need_lib_prefix=no
12291 case $GCC,$host_os in
12292 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12293 library_names_spec='$libname.dll.a'
12294 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12295 postinstall_cmds='base_file=`basename \${file}`~
12296 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12297 dldir=$destdir/`dirname \$dlpath`~
12298 test -d \$dldir || mkdir -p \$dldir~
12299 $install_prog $dir/$dlname \$dldir/$dlname~
12300 chmod a+x \$dldir/$dlname~
12301 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12302 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12304 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12305 dlpath=$dir/\$dldll~
12306 $RM \$dlpath'
12307 shlibpath_overrides_runpath=yes
12309 case $host_os in
12310 cygwin*)
12311 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12312 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12314 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12316 mingw* | cegcc*)
12317 # MinGW DLLs use traditional 'lib' prefix
12318 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12320 pw32*)
12321 # pw32 DLLs use 'pw' prefix rather than 'lib'
12322 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12324 esac
12328 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12330 esac
12331 dynamic_linker='Win32 ld.exe'
12332 # FIXME: first we should search . and the directory the executable is in
12333 shlibpath_var=PATH
12336 darwin* | rhapsody*)
12337 dynamic_linker="$host_os dyld"
12338 version_type=darwin
12339 need_lib_prefix=no
12340 need_version=no
12341 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12342 soname_spec='${libname}${release}${major}$shared_ext'
12343 shlibpath_overrides_runpath=yes
12344 shlibpath_var=DYLD_LIBRARY_PATH
12345 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12347 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12348 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12351 dgux*)
12352 version_type=linux
12353 need_lib_prefix=no
12354 need_version=no
12355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12356 soname_spec='${libname}${release}${shared_ext}$major'
12357 shlibpath_var=LD_LIBRARY_PATH
12360 freebsd1*)
12361 dynamic_linker=no
12364 freebsd* | dragonfly*)
12365 # DragonFly does not have aout. When/if they implement a new
12366 # versioning mechanism, adjust this.
12367 if test -x /usr/bin/objformat; then
12368 objformat=`/usr/bin/objformat`
12369 else
12370 case $host_os in
12371 freebsd[123]*) objformat=aout ;;
12372 *) objformat=elf ;;
12373 esac
12375 version_type=freebsd-$objformat
12376 case $version_type in
12377 freebsd-elf*)
12378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12379 need_version=no
12380 need_lib_prefix=no
12382 freebsd-*)
12383 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12384 need_version=yes
12386 esac
12387 shlibpath_var=LD_LIBRARY_PATH
12388 case $host_os in
12389 freebsd2*)
12390 shlibpath_overrides_runpath=yes
12392 freebsd3.[01]* | freebsdelf3.[01]*)
12393 shlibpath_overrides_runpath=yes
12394 hardcode_into_libs=yes
12396 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12397 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12398 shlibpath_overrides_runpath=no
12399 hardcode_into_libs=yes
12401 *) # from 4.6 on, and DragonFly
12402 shlibpath_overrides_runpath=yes
12403 hardcode_into_libs=yes
12405 esac
12408 gnu*)
12409 version_type=linux
12410 need_lib_prefix=no
12411 need_version=no
12412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12413 soname_spec='${libname}${release}${shared_ext}$major'
12414 shlibpath_var=LD_LIBRARY_PATH
12415 hardcode_into_libs=yes
12418 haiku*)
12419 version_type=linux
12420 need_lib_prefix=no
12421 need_version=no
12422 dynamic_linker="$host_os runtime_loader"
12423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12424 soname_spec='${libname}${release}${shared_ext}$major'
12425 shlibpath_var=LIBRARY_PATH
12426 shlibpath_overrides_runpath=yes
12427 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
12428 hardcode_into_libs=yes
12431 hpux9* | hpux10* | hpux11*)
12432 # Give a soname corresponding to the major version so that dld.sl refuses to
12433 # link against other versions.
12434 version_type=sunos
12435 need_lib_prefix=no
12436 need_version=no
12437 case $host_cpu in
12438 ia64*)
12439 shrext_cmds='.so'
12440 hardcode_into_libs=yes
12441 dynamic_linker="$host_os dld.so"
12442 shlibpath_var=LD_LIBRARY_PATH
12443 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12445 soname_spec='${libname}${release}${shared_ext}$major'
12446 if test "X$HPUX_IA64_MODE" = X32; then
12447 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12448 else
12449 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12451 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12453 hppa*64*)
12454 shrext_cmds='.sl'
12455 hardcode_into_libs=yes
12456 dynamic_linker="$host_os dld.sl"
12457 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12458 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12460 soname_spec='${libname}${release}${shared_ext}$major'
12461 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12462 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12465 shrext_cmds='.sl'
12466 dynamic_linker="$host_os dld.sl"
12467 shlibpath_var=SHLIB_PATH
12468 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12470 soname_spec='${libname}${release}${shared_ext}$major'
12472 esac
12473 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12474 postinstall_cmds='chmod 555 $lib'
12475 # or fails outright, so override atomically:
12476 install_override_mode=555
12479 interix[3-9]*)
12480 version_type=linux
12481 need_lib_prefix=no
12482 need_version=no
12483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12484 soname_spec='${libname}${release}${shared_ext}$major'
12485 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12486 shlibpath_var=LD_LIBRARY_PATH
12487 shlibpath_overrides_runpath=no
12488 hardcode_into_libs=yes
12491 irix5* | irix6* | nonstopux*)
12492 case $host_os in
12493 nonstopux*) version_type=nonstopux ;;
12495 if test "$lt_cv_prog_gnu_ld" = yes; then
12496 version_type=linux
12497 else
12498 version_type=irix
12499 fi ;;
12500 esac
12501 need_lib_prefix=no
12502 need_version=no
12503 soname_spec='${libname}${release}${shared_ext}$major'
12504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12505 case $host_os in
12506 irix5* | nonstopux*)
12507 libsuff= shlibsuff=
12510 case $LD in # libtool.m4 will add one of these switches to LD
12511 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12512 libsuff= shlibsuff= libmagic=32-bit;;
12513 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12514 libsuff=32 shlibsuff=N32 libmagic=N32;;
12515 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12516 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12517 *) libsuff= shlibsuff= libmagic=never-match;;
12518 esac
12520 esac
12521 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12522 shlibpath_overrides_runpath=no
12523 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12524 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12525 hardcode_into_libs=yes
12528 # No shared lib support for Linux oldld, aout, or coff.
12529 linux*oldld* | linux*aout* | linux*coff*)
12530 dynamic_linker=no
12533 # This must be Linux ELF.
12534 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12535 version_type=linux
12536 need_lib_prefix=no
12537 need_version=no
12538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12539 soname_spec='${libname}${release}${shared_ext}$major'
12540 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12541 shlibpath_var=LD_LIBRARY_PATH
12542 shlibpath_overrides_runpath=no
12544 # Some binutils ld are patched to set DT_RUNPATH
12545 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
12546 $as_echo_n "(cached) " >&6
12547 else
12548 lt_cv_shlibpath_overrides_runpath=no
12549 save_LDFLAGS=$LDFLAGS
12550 save_libdir=$libdir
12551 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12552 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12553 if test x$gcc_no_link = xyes; then
12554 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12557 /* end confdefs.h. */
12560 main ()
12564 return 0;
12566 _ACEOF
12567 if ac_fn_c_try_link "$LINENO"; then :
12568 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12569 lt_cv_shlibpath_overrides_runpath=yes
12572 rm -f core conftest.err conftest.$ac_objext \
12573 conftest$ac_exeext conftest.$ac_ext
12574 LDFLAGS=$save_LDFLAGS
12575 libdir=$save_libdir
12579 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12581 # This implies no fast_install, which is unacceptable.
12582 # Some rework will be needed to allow for fast_install
12583 # before this can be enabled.
12584 hardcode_into_libs=yes
12586 # Append ld.so.conf contents to the search path
12587 if test -f /etc/ld.so.conf; then
12588 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12589 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12592 # We used to test for /lib/ld.so.1 and disable shared libraries on
12593 # powerpc, because MkLinux only supported shared libraries with the
12594 # GNU dynamic linker. Since this was broken with cross compilers,
12595 # most powerpc-linux boxes support dynamic linking these days and
12596 # people can always --disable-shared, the test was removed, and we
12597 # assume the GNU/Linux dynamic linker is in use.
12598 dynamic_linker='GNU/Linux ld.so'
12601 netbsd*)
12602 version_type=sunos
12603 need_lib_prefix=no
12604 need_version=no
12605 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12607 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12608 dynamic_linker='NetBSD (a.out) ld.so'
12609 else
12610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12611 soname_spec='${libname}${release}${shared_ext}$major'
12612 dynamic_linker='NetBSD ld.elf_so'
12614 shlibpath_var=LD_LIBRARY_PATH
12615 shlibpath_overrides_runpath=yes
12616 hardcode_into_libs=yes
12619 newsos6)
12620 version_type=linux
12621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12622 shlibpath_var=LD_LIBRARY_PATH
12623 shlibpath_overrides_runpath=yes
12626 *nto* | *qnx*)
12627 version_type=qnx
12628 need_lib_prefix=no
12629 need_version=no
12630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12631 soname_spec='${libname}${release}${shared_ext}$major'
12632 shlibpath_var=LD_LIBRARY_PATH
12633 shlibpath_overrides_runpath=no
12634 hardcode_into_libs=yes
12635 dynamic_linker='ldqnx.so'
12638 openbsd*)
12639 version_type=sunos
12640 sys_lib_dlsearch_path_spec="/usr/lib"
12641 need_lib_prefix=no
12642 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12643 case $host_os in
12644 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12645 *) need_version=no ;;
12646 esac
12647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12648 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12649 shlibpath_var=LD_LIBRARY_PATH
12650 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12651 case $host_os in
12652 openbsd2.[89] | openbsd2.[89].*)
12653 shlibpath_overrides_runpath=no
12656 shlibpath_overrides_runpath=yes
12658 esac
12659 else
12660 shlibpath_overrides_runpath=yes
12664 os2*)
12665 libname_spec='$name'
12666 shrext_cmds=".dll"
12667 need_lib_prefix=no
12668 library_names_spec='$libname${shared_ext} $libname.a'
12669 dynamic_linker='OS/2 ld.exe'
12670 shlibpath_var=LIBPATH
12673 osf3* | osf4* | osf5*)
12674 version_type=osf
12675 need_lib_prefix=no
12676 need_version=no
12677 soname_spec='${libname}${release}${shared_ext}$major'
12678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12679 shlibpath_var=LD_LIBRARY_PATH
12680 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12681 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12684 rdos*)
12685 dynamic_linker=no
12688 solaris*)
12689 version_type=linux
12690 need_lib_prefix=no
12691 need_version=no
12692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12693 soname_spec='${libname}${release}${shared_ext}$major'
12694 shlibpath_var=LD_LIBRARY_PATH
12695 shlibpath_overrides_runpath=yes
12696 hardcode_into_libs=yes
12697 # ldd complains unless libraries are executable
12698 postinstall_cmds='chmod +x $lib'
12701 sunos4*)
12702 version_type=sunos
12703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12704 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12705 shlibpath_var=LD_LIBRARY_PATH
12706 shlibpath_overrides_runpath=yes
12707 if test "$with_gnu_ld" = yes; then
12708 need_lib_prefix=no
12710 need_version=yes
12713 sysv4 | sysv4.3*)
12714 version_type=linux
12715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12716 soname_spec='${libname}${release}${shared_ext}$major'
12717 shlibpath_var=LD_LIBRARY_PATH
12718 case $host_vendor in
12719 sni)
12720 shlibpath_overrides_runpath=no
12721 need_lib_prefix=no
12722 runpath_var=LD_RUN_PATH
12724 siemens)
12725 need_lib_prefix=no
12727 motorola)
12728 need_lib_prefix=no
12729 need_version=no
12730 shlibpath_overrides_runpath=no
12731 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12733 esac
12736 sysv4*MP*)
12737 if test -d /usr/nec ;then
12738 version_type=linux
12739 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12740 soname_spec='$libname${shared_ext}.$major'
12741 shlibpath_var=LD_LIBRARY_PATH
12745 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12746 version_type=freebsd-elf
12747 need_lib_prefix=no
12748 need_version=no
12749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12750 soname_spec='${libname}${release}${shared_ext}$major'
12751 shlibpath_var=LD_LIBRARY_PATH
12752 shlibpath_overrides_runpath=yes
12753 hardcode_into_libs=yes
12754 if test "$with_gnu_ld" = yes; then
12755 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12756 else
12757 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12758 case $host_os in
12759 sco3.2v5*)
12760 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12762 esac
12764 sys_lib_dlsearch_path_spec='/usr/lib'
12767 tpf*)
12768 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12769 version_type=linux
12770 need_lib_prefix=no
12771 need_version=no
12772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12773 shlibpath_var=LD_LIBRARY_PATH
12774 shlibpath_overrides_runpath=no
12775 hardcode_into_libs=yes
12778 uts4*)
12779 version_type=linux
12780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12781 soname_spec='${libname}${release}${shared_ext}$major'
12782 shlibpath_var=LD_LIBRARY_PATH
12786 dynamic_linker=no
12788 esac
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12790 $as_echo "$dynamic_linker" >&6; }
12791 test "$dynamic_linker" = no && can_build_shared=no
12793 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12794 if test "$GCC" = yes; then
12795 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12798 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12799 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12801 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12802 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12897 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12898 hardcode_action=
12899 if test -n "$hardcode_libdir_flag_spec" ||
12900 test -n "$runpath_var" ||
12901 test "X$hardcode_automatic" = "Xyes" ; then
12903 # We can hardcode non-existent directories.
12904 if test "$hardcode_direct" != no &&
12905 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12906 # have to relink, otherwise we might link with an installed library
12907 # when we should be linking with a yet-to-be-installed one
12908 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12909 test "$hardcode_minus_L" != no; then
12910 # Linking always hardcodes the temporary library directory.
12911 hardcode_action=relink
12912 else
12913 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12914 hardcode_action=immediate
12916 else
12917 # We cannot hardcode anything, or else we can only hardcode existing
12918 # directories.
12919 hardcode_action=unsupported
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12922 $as_echo "$hardcode_action" >&6; }
12924 if test "$hardcode_action" = relink ||
12925 test "$inherit_rpath" = yes; then
12926 # Fast installation is not supported
12927 enable_fast_install=no
12928 elif test "$shlibpath_overrides_runpath" = yes ||
12929 test "$enable_shared" = no; then
12930 # Fast installation is not necessary
12931 enable_fast_install=needless
12939 if test "x$enable_dlopen" != xyes; then
12940 enable_dlopen=unknown
12941 enable_dlopen_self=unknown
12942 enable_dlopen_self_static=unknown
12943 else
12944 lt_cv_dlopen=no
12945 lt_cv_dlopen_libs=
12947 case $host_os in
12948 beos*)
12949 lt_cv_dlopen="load_add_on"
12950 lt_cv_dlopen_libs=
12951 lt_cv_dlopen_self=yes
12954 mingw* | pw32* | cegcc*)
12955 lt_cv_dlopen="LoadLibrary"
12956 lt_cv_dlopen_libs=
12959 cygwin*)
12960 lt_cv_dlopen="dlopen"
12961 lt_cv_dlopen_libs=
12964 darwin*)
12965 # if libdl is installed we need to link against it
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12967 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12968 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12969 $as_echo_n "(cached) " >&6
12970 else
12971 ac_check_lib_save_LIBS=$LIBS
12972 LIBS="-ldl $LIBS"
12973 if test x$gcc_no_link = xyes; then
12974 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12977 /* end confdefs.h. */
12979 /* Override any GCC internal prototype to avoid an error.
12980 Use char because int might match the return type of a GCC
12981 builtin and then its argument prototype would still apply. */
12982 #ifdef __cplusplus
12983 extern "C"
12984 #endif
12985 char dlopen ();
12987 main ()
12989 return dlopen ();
12991 return 0;
12993 _ACEOF
12994 if ac_fn_c_try_link "$LINENO"; then :
12995 ac_cv_lib_dl_dlopen=yes
12996 else
12997 ac_cv_lib_dl_dlopen=no
12999 rm -f core conftest.err conftest.$ac_objext \
13000 conftest$ac_exeext conftest.$ac_ext
13001 LIBS=$ac_check_lib_save_LIBS
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13004 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13005 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13006 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13007 else
13009 lt_cv_dlopen="dyld"
13010 lt_cv_dlopen_libs=
13011 lt_cv_dlopen_self=yes
13018 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13019 if test "x$ac_cv_func_shl_load" = x""yes; then :
13020 lt_cv_dlopen="shl_load"
13021 else
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13023 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13024 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13025 $as_echo_n "(cached) " >&6
13026 else
13027 ac_check_lib_save_LIBS=$LIBS
13028 LIBS="-ldld $LIBS"
13029 if test x$gcc_no_link = xyes; then
13030 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13033 /* end confdefs.h. */
13035 /* Override any GCC internal prototype to avoid an error.
13036 Use char because int might match the return type of a GCC
13037 builtin and then its argument prototype would still apply. */
13038 #ifdef __cplusplus
13039 extern "C"
13040 #endif
13041 char shl_load ();
13043 main ()
13045 return shl_load ();
13047 return 0;
13049 _ACEOF
13050 if ac_fn_c_try_link "$LINENO"; then :
13051 ac_cv_lib_dld_shl_load=yes
13052 else
13053 ac_cv_lib_dld_shl_load=no
13055 rm -f core conftest.err conftest.$ac_objext \
13056 conftest$ac_exeext conftest.$ac_ext
13057 LIBS=$ac_check_lib_save_LIBS
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13060 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13061 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13062 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13063 else
13064 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13065 if test "x$ac_cv_func_dlopen" = x""yes; then :
13066 lt_cv_dlopen="dlopen"
13067 else
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13069 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13070 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13071 $as_echo_n "(cached) " >&6
13072 else
13073 ac_check_lib_save_LIBS=$LIBS
13074 LIBS="-ldl $LIBS"
13075 if test x$gcc_no_link = xyes; then
13076 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13079 /* end confdefs.h. */
13081 /* Override any GCC internal prototype to avoid an error.
13082 Use char because int might match the return type of a GCC
13083 builtin and then its argument prototype would still apply. */
13084 #ifdef __cplusplus
13085 extern "C"
13086 #endif
13087 char dlopen ();
13089 main ()
13091 return dlopen ();
13093 return 0;
13095 _ACEOF
13096 if ac_fn_c_try_link "$LINENO"; then :
13097 ac_cv_lib_dl_dlopen=yes
13098 else
13099 ac_cv_lib_dl_dlopen=no
13101 rm -f core conftest.err conftest.$ac_objext \
13102 conftest$ac_exeext conftest.$ac_ext
13103 LIBS=$ac_check_lib_save_LIBS
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13106 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13107 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13108 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13109 else
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13111 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13112 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13113 $as_echo_n "(cached) " >&6
13114 else
13115 ac_check_lib_save_LIBS=$LIBS
13116 LIBS="-lsvld $LIBS"
13117 if test x$gcc_no_link = xyes; then
13118 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13121 /* end confdefs.h. */
13123 /* Override any GCC internal prototype to avoid an error.
13124 Use char because int might match the return type of a GCC
13125 builtin and then its argument prototype would still apply. */
13126 #ifdef __cplusplus
13127 extern "C"
13128 #endif
13129 char dlopen ();
13131 main ()
13133 return dlopen ();
13135 return 0;
13137 _ACEOF
13138 if ac_fn_c_try_link "$LINENO"; then :
13139 ac_cv_lib_svld_dlopen=yes
13140 else
13141 ac_cv_lib_svld_dlopen=no
13143 rm -f core conftest.err conftest.$ac_objext \
13144 conftest$ac_exeext conftest.$ac_ext
13145 LIBS=$ac_check_lib_save_LIBS
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13148 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13149 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13150 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13151 else
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13153 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13154 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13155 $as_echo_n "(cached) " >&6
13156 else
13157 ac_check_lib_save_LIBS=$LIBS
13158 LIBS="-ldld $LIBS"
13159 if test x$gcc_no_link = xyes; then
13160 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13163 /* end confdefs.h. */
13165 /* Override any GCC internal prototype to avoid an error.
13166 Use char because int might match the return type of a GCC
13167 builtin and then its argument prototype would still apply. */
13168 #ifdef __cplusplus
13169 extern "C"
13170 #endif
13171 char dld_link ();
13173 main ()
13175 return dld_link ();
13177 return 0;
13179 _ACEOF
13180 if ac_fn_c_try_link "$LINENO"; then :
13181 ac_cv_lib_dld_dld_link=yes
13182 else
13183 ac_cv_lib_dld_dld_link=no
13185 rm -f core conftest.err conftest.$ac_objext \
13186 conftest$ac_exeext conftest.$ac_ext
13187 LIBS=$ac_check_lib_save_LIBS
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13190 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13191 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13192 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13211 esac
13213 if test "x$lt_cv_dlopen" != xno; then
13214 enable_dlopen=yes
13215 else
13216 enable_dlopen=no
13219 case $lt_cv_dlopen in
13220 dlopen)
13221 save_CPPFLAGS="$CPPFLAGS"
13222 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13224 save_LDFLAGS="$LDFLAGS"
13225 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13227 save_LIBS="$LIBS"
13228 LIBS="$lt_cv_dlopen_libs $LIBS"
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13231 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13232 if test "${lt_cv_dlopen_self+set}" = set; then :
13233 $as_echo_n "(cached) " >&6
13234 else
13235 if test "$cross_compiling" = yes; then :
13236 lt_cv_dlopen_self=cross
13237 else
13238 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13239 lt_status=$lt_dlunknown
13240 cat > conftest.$ac_ext <<_LT_EOF
13241 #line 13241 "configure"
13242 #include "confdefs.h"
13244 #if HAVE_DLFCN_H
13245 #include <dlfcn.h>
13246 #endif
13248 #include <stdio.h>
13250 #ifdef RTLD_GLOBAL
13251 # define LT_DLGLOBAL RTLD_GLOBAL
13252 #else
13253 # ifdef DL_GLOBAL
13254 # define LT_DLGLOBAL DL_GLOBAL
13255 # else
13256 # define LT_DLGLOBAL 0
13257 # endif
13258 #endif
13260 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13261 find out it does not work in some platform. */
13262 #ifndef LT_DLLAZY_OR_NOW
13263 # ifdef RTLD_LAZY
13264 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13265 # else
13266 # ifdef DL_LAZY
13267 # define LT_DLLAZY_OR_NOW DL_LAZY
13268 # else
13269 # ifdef RTLD_NOW
13270 # define LT_DLLAZY_OR_NOW RTLD_NOW
13271 # else
13272 # ifdef DL_NOW
13273 # define LT_DLLAZY_OR_NOW DL_NOW
13274 # else
13275 # define LT_DLLAZY_OR_NOW 0
13276 # endif
13277 # endif
13278 # endif
13279 # endif
13280 #endif
13282 /* When -fvisbility=hidden is used, assume the code has been annotated
13283 correspondingly for the symbols needed. */
13284 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13285 void fnord () __attribute__((visibility("default")));
13286 #endif
13288 void fnord () { int i=42; }
13289 int main ()
13291 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13292 int status = $lt_dlunknown;
13294 if (self)
13296 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13297 else
13299 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13300 else puts (dlerror ());
13302 /* dlclose (self); */
13304 else
13305 puts (dlerror ());
13307 return status;
13309 _LT_EOF
13310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13311 (eval $ac_link) 2>&5
13312 ac_status=$?
13313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13314 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13315 (./conftest; exit; ) >&5 2>/dev/null
13316 lt_status=$?
13317 case x$lt_status in
13318 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13319 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13320 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13321 esac
13322 else :
13323 # compilation failed
13324 lt_cv_dlopen_self=no
13327 rm -fr conftest*
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13332 $as_echo "$lt_cv_dlopen_self" >&6; }
13334 if test "x$lt_cv_dlopen_self" = xyes; then
13335 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13337 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13338 if test "${lt_cv_dlopen_self_static+set}" = set; then :
13339 $as_echo_n "(cached) " >&6
13340 else
13341 if test "$cross_compiling" = yes; then :
13342 lt_cv_dlopen_self_static=cross
13343 else
13344 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13345 lt_status=$lt_dlunknown
13346 cat > conftest.$ac_ext <<_LT_EOF
13347 #line 13347 "configure"
13348 #include "confdefs.h"
13350 #if HAVE_DLFCN_H
13351 #include <dlfcn.h>
13352 #endif
13354 #include <stdio.h>
13356 #ifdef RTLD_GLOBAL
13357 # define LT_DLGLOBAL RTLD_GLOBAL
13358 #else
13359 # ifdef DL_GLOBAL
13360 # define LT_DLGLOBAL DL_GLOBAL
13361 # else
13362 # define LT_DLGLOBAL 0
13363 # endif
13364 #endif
13366 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13367 find out it does not work in some platform. */
13368 #ifndef LT_DLLAZY_OR_NOW
13369 # ifdef RTLD_LAZY
13370 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13371 # else
13372 # ifdef DL_LAZY
13373 # define LT_DLLAZY_OR_NOW DL_LAZY
13374 # else
13375 # ifdef RTLD_NOW
13376 # define LT_DLLAZY_OR_NOW RTLD_NOW
13377 # else
13378 # ifdef DL_NOW
13379 # define LT_DLLAZY_OR_NOW DL_NOW
13380 # else
13381 # define LT_DLLAZY_OR_NOW 0
13382 # endif
13383 # endif
13384 # endif
13385 # endif
13386 #endif
13388 /* When -fvisbility=hidden is used, assume the code has been annotated
13389 correspondingly for the symbols needed. */
13390 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13391 void fnord () __attribute__((visibility("default")));
13392 #endif
13394 void fnord () { int i=42; }
13395 int main ()
13397 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13398 int status = $lt_dlunknown;
13400 if (self)
13402 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13403 else
13405 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13406 else puts (dlerror ());
13408 /* dlclose (self); */
13410 else
13411 puts (dlerror ());
13413 return status;
13415 _LT_EOF
13416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13417 (eval $ac_link) 2>&5
13418 ac_status=$?
13419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13420 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13421 (./conftest; exit; ) >&5 2>/dev/null
13422 lt_status=$?
13423 case x$lt_status in
13424 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13425 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13426 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13427 esac
13428 else :
13429 # compilation failed
13430 lt_cv_dlopen_self_static=no
13433 rm -fr conftest*
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13438 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13441 CPPFLAGS="$save_CPPFLAGS"
13442 LDFLAGS="$save_LDFLAGS"
13443 LIBS="$save_LIBS"
13445 esac
13447 case $lt_cv_dlopen_self in
13448 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13449 *) enable_dlopen_self=unknown ;;
13450 esac
13452 case $lt_cv_dlopen_self_static in
13453 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13454 *) enable_dlopen_self_static=unknown ;;
13455 esac
13474 striplib=
13475 old_striplib=
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13477 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13478 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13479 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13480 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13482 $as_echo "yes" >&6; }
13483 else
13484 # FIXME - insert some real tests, host_os isn't really good enough
13485 case $host_os in
13486 darwin*)
13487 if test -n "$STRIP" ; then
13488 striplib="$STRIP -x"
13489 old_striplib="$STRIP -S"
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13491 $as_echo "yes" >&6; }
13492 else
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13494 $as_echo "no" >&6; }
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13499 $as_echo "no" >&6; }
13501 esac
13515 # Report which library types will actually be built
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13517 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13519 $as_echo "$can_build_shared" >&6; }
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13522 $as_echo_n "checking whether to build shared libraries... " >&6; }
13523 test "$can_build_shared" = "no" && enable_shared=no
13525 # On AIX, shared libraries and static libraries use the same namespace, and
13526 # are all built from PIC.
13527 case $host_os in
13528 aix3*)
13529 test "$enable_shared" = yes && enable_static=no
13530 if test -n "$RANLIB"; then
13531 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13532 postinstall_cmds='$RANLIB $lib'
13536 aix[4-9]*)
13537 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13538 test "$enable_shared" = yes && enable_static=no
13541 esac
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13543 $as_echo "$enable_shared" >&6; }
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13546 $as_echo_n "checking whether to build static libraries... " >&6; }
13547 # Make sure either enable_shared or enable_static is yes.
13548 test "$enable_shared" = yes || enable_static=yes
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13550 $as_echo "$enable_static" >&6; }
13556 ac_ext=c
13557 ac_cpp='$CPP $CPPFLAGS'
13558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13562 CC="$lt_save_CC"
13564 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13565 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13566 (test "X$CXX" != "Xg++"))) ; then
13567 ac_ext=cpp
13568 ac_cpp='$CXXCPP $CPPFLAGS'
13569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13573 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13574 if test -z "$CXXCPP"; then
13575 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13576 $as_echo_n "(cached) " >&6
13577 else
13578 # Double quotes because CXXCPP needs to be expanded
13579 for CXXCPP in "$CXX -E" "/lib/cpp"
13581 ac_preproc_ok=false
13582 for ac_cxx_preproc_warn_flag in '' yes
13584 # Use a header file that comes with gcc, so configuring glibc
13585 # with a fresh cross-compiler works.
13586 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13587 # <limits.h> exists even on freestanding compilers.
13588 # On the NeXT, cc -E runs the code through the compiler's parser,
13589 # not just through cpp. "Syntax error" is here to catch this case.
13590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13591 /* end confdefs.h. */
13592 #ifdef __STDC__
13593 # include <limits.h>
13594 #else
13595 # include <assert.h>
13596 #endif
13597 Syntax error
13598 _ACEOF
13599 if ac_fn_cxx_try_cpp "$LINENO"; then :
13601 else
13602 # Broken: fails on valid input.
13603 continue
13605 rm -f conftest.err conftest.$ac_ext
13607 # OK, works on sane cases. Now check whether nonexistent headers
13608 # can be detected and how.
13609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13610 /* end confdefs.h. */
13611 #include <ac_nonexistent.h>
13612 _ACEOF
13613 if ac_fn_cxx_try_cpp "$LINENO"; then :
13614 # Broken: success on invalid input.
13615 continue
13616 else
13617 # Passes both tests.
13618 ac_preproc_ok=:
13619 break
13621 rm -f conftest.err conftest.$ac_ext
13623 done
13624 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13625 rm -f conftest.err conftest.$ac_ext
13626 if $ac_preproc_ok; then :
13627 break
13630 done
13631 ac_cv_prog_CXXCPP=$CXXCPP
13634 CXXCPP=$ac_cv_prog_CXXCPP
13635 else
13636 ac_cv_prog_CXXCPP=$CXXCPP
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13639 $as_echo "$CXXCPP" >&6; }
13640 ac_preproc_ok=false
13641 for ac_cxx_preproc_warn_flag in '' yes
13643 # Use a header file that comes with gcc, so configuring glibc
13644 # with a fresh cross-compiler works.
13645 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13646 # <limits.h> exists even on freestanding compilers.
13647 # On the NeXT, cc -E runs the code through the compiler's parser,
13648 # not just through cpp. "Syntax error" is here to catch this case.
13649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13650 /* end confdefs.h. */
13651 #ifdef __STDC__
13652 # include <limits.h>
13653 #else
13654 # include <assert.h>
13655 #endif
13656 Syntax error
13657 _ACEOF
13658 if ac_fn_cxx_try_cpp "$LINENO"; then :
13660 else
13661 # Broken: fails on valid input.
13662 continue
13664 rm -f conftest.err conftest.$ac_ext
13666 # OK, works on sane cases. Now check whether nonexistent headers
13667 # can be detected and how.
13668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13669 /* end confdefs.h. */
13670 #include <ac_nonexistent.h>
13671 _ACEOF
13672 if ac_fn_cxx_try_cpp "$LINENO"; then :
13673 # Broken: success on invalid input.
13674 continue
13675 else
13676 # Passes both tests.
13677 ac_preproc_ok=:
13678 break
13680 rm -f conftest.err conftest.$ac_ext
13682 done
13683 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13684 rm -f conftest.err conftest.$ac_ext
13685 if $ac_preproc_ok; then :
13687 else
13688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13690 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
13691 See \`config.log' for more details." "$LINENO" 5; }
13694 ac_ext=c
13695 ac_cpp='$CPP $CPPFLAGS'
13696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13700 else
13701 _lt_caught_CXX_error=yes
13704 ac_ext=cpp
13705 ac_cpp='$CXXCPP $CPPFLAGS'
13706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13710 archive_cmds_need_lc_CXX=no
13711 allow_undefined_flag_CXX=
13712 always_export_symbols_CXX=no
13713 archive_expsym_cmds_CXX=
13714 compiler_needs_object_CXX=no
13715 export_dynamic_flag_spec_CXX=
13716 hardcode_direct_CXX=no
13717 hardcode_direct_absolute_CXX=no
13718 hardcode_libdir_flag_spec_CXX=
13719 hardcode_libdir_flag_spec_ld_CXX=
13720 hardcode_libdir_separator_CXX=
13721 hardcode_minus_L_CXX=no
13722 hardcode_shlibpath_var_CXX=unsupported
13723 hardcode_automatic_CXX=no
13724 inherit_rpath_CXX=no
13725 module_cmds_CXX=
13726 module_expsym_cmds_CXX=
13727 link_all_deplibs_CXX=unknown
13728 old_archive_cmds_CXX=$old_archive_cmds
13729 reload_flag_CXX=$reload_flag
13730 reload_cmds_CXX=$reload_cmds
13731 no_undefined_flag_CXX=
13732 whole_archive_flag_spec_CXX=
13733 enable_shared_with_static_runtimes_CXX=no
13735 # Source file extension for C++ test sources.
13736 ac_ext=cpp
13738 # Object file extension for compiled C++ test sources.
13739 objext=o
13740 objext_CXX=$objext
13742 # No sense in running all these tests if we already determined that
13743 # the CXX compiler isn't working. Some variables (like enable_shared)
13744 # are currently assumed to apply to all compilers on this platform,
13745 # and will be corrupted by setting them based on a non-working compiler.
13746 if test "$_lt_caught_CXX_error" != yes; then
13747 # Code to be used in simple compile tests
13748 lt_simple_compile_test_code="int some_variable = 0;"
13750 # Code to be used in simple link tests
13751 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13753 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13760 # If no C compiler was specified, use CC.
13761 LTCC=${LTCC-"$CC"}
13763 # If no C compiler flags were specified, use CFLAGS.
13764 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13766 # Allow CC to be a program name with arguments.
13767 compiler=$CC
13770 # save warnings/boilerplate of simple test code
13771 ac_outfile=conftest.$ac_objext
13772 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13773 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13774 _lt_compiler_boilerplate=`cat conftest.err`
13775 $RM conftest*
13777 ac_outfile=conftest.$ac_objext
13778 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13779 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13780 _lt_linker_boilerplate=`cat conftest.err`
13781 $RM -r conftest*
13784 # Allow CC to be a program name with arguments.
13785 lt_save_CC=$CC
13786 lt_save_LD=$LD
13787 lt_save_GCC=$GCC
13788 GCC=$GXX
13789 lt_save_with_gnu_ld=$with_gnu_ld
13790 lt_save_path_LD=$lt_cv_path_LD
13791 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13792 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13793 else
13794 $as_unset lt_cv_prog_gnu_ld
13796 if test -n "${lt_cv_path_LDCXX+set}"; then
13797 lt_cv_path_LD=$lt_cv_path_LDCXX
13798 else
13799 $as_unset lt_cv_path_LD
13801 test -z "${LDCXX+set}" || LD=$LDCXX
13802 CC=${CXX-"c++"}
13803 compiler=$CC
13804 compiler_CXX=$CC
13805 for cc_temp in $compiler""; do
13806 case $cc_temp in
13807 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13808 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13809 \-*) ;;
13810 *) break;;
13811 esac
13812 done
13813 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13816 if test -n "$compiler"; then
13817 # We don't want -fno-exception when compiling C++ code, so set the
13818 # no_builtin_flag separately
13819 if test "$GXX" = yes; then
13820 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13821 else
13822 lt_prog_compiler_no_builtin_flag_CXX=
13825 if test "$GXX" = yes; then
13826 # Set up default GNU C++ configuration
13830 # Check whether --with-gnu-ld was given.
13831 if test "${with_gnu_ld+set}" = set; then :
13832 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13833 else
13834 with_gnu_ld=no
13837 ac_prog=ld
13838 if test "$GCC" = yes; then
13839 # Check if gcc -print-prog-name=ld gives a path.
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13841 $as_echo_n "checking for ld used by $CC... " >&6; }
13842 case $host in
13843 *-*-mingw*)
13844 # gcc leaves a trailing carriage return which upsets mingw
13845 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13847 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13848 esac
13849 case $ac_prog in
13850 # Accept absolute paths.
13851 [\\/]* | ?:[\\/]*)
13852 re_direlt='/[^/][^/]*/\.\./'
13853 # Canonicalize the pathname of ld
13854 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13855 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13856 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13857 done
13858 test -z "$LD" && LD="$ac_prog"
13861 # If it fails, then pretend we aren't using GCC.
13862 ac_prog=ld
13865 # If it is relative, then search for the first ld in PATH.
13866 with_gnu_ld=unknown
13868 esac
13869 elif test "$with_gnu_ld" = yes; then
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13871 $as_echo_n "checking for GNU ld... " >&6; }
13872 else
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13874 $as_echo_n "checking for non-GNU ld... " >&6; }
13876 if test "${lt_cv_path_LD+set}" = set; then :
13877 $as_echo_n "(cached) " >&6
13878 else
13879 if test -z "$LD"; then
13880 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13881 for ac_dir in $PATH; do
13882 IFS="$lt_save_ifs"
13883 test -z "$ac_dir" && ac_dir=.
13884 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13885 lt_cv_path_LD="$ac_dir/$ac_prog"
13886 # Check to see if the program is GNU ld. I'd rather use --version,
13887 # but apparently some variants of GNU ld only accept -v.
13888 # Break only if it was the GNU/non-GNU ld that we prefer.
13889 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13890 *GNU* | *'with BFD'*)
13891 test "$with_gnu_ld" != no && break
13894 test "$with_gnu_ld" != yes && break
13896 esac
13898 done
13899 IFS="$lt_save_ifs"
13900 else
13901 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13905 LD="$lt_cv_path_LD"
13906 if test -n "$LD"; then
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13908 $as_echo "$LD" >&6; }
13909 else
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13911 $as_echo "no" >&6; }
13913 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13915 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13916 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
13917 $as_echo_n "(cached) " >&6
13918 else
13919 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13920 case `$LD -v 2>&1 </dev/null` in
13921 *GNU* | *'with BFD'*)
13922 lt_cv_prog_gnu_ld=yes
13925 lt_cv_prog_gnu_ld=no
13927 esac
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13930 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13931 with_gnu_ld=$lt_cv_prog_gnu_ld
13939 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13940 # archiving commands below assume that GNU ld is being used.
13941 if test "$with_gnu_ld" = yes; then
13942 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13943 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'
13945 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13946 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13948 # If archive_cmds runs LD, not CC, wlarc should be empty
13949 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13950 # investigate it a little bit more. (MM)
13951 wlarc='${wl}'
13953 # ancient GNU ld didn't support --whole-archive et. al.
13954 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13955 $GREP 'no-whole-archive' > /dev/null; then
13956 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13957 else
13958 whole_archive_flag_spec_CXX=
13960 else
13961 with_gnu_ld=no
13962 wlarc=
13964 # A generic and very simple default shared library creation
13965 # command for GNU C++ for the case where it uses the native
13966 # linker, instead of GNU ld. If possible, this setting should
13967 # overridden to take advantage of the native linker features on
13968 # the platform it is being used on.
13969 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13972 # Commands to make compiler produce verbose output that lists
13973 # what "hidden" libraries, object files and flags are used when
13974 # linking a shared library.
13975 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13977 else
13978 GXX=no
13979 with_gnu_ld=no
13980 wlarc=
13983 # PORTME: fill in a description of your system's C++ link characteristics
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13985 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13986 ld_shlibs_CXX=yes
13987 case $host_os in
13988 aix3*)
13989 # FIXME: insert proper C++ library support
13990 ld_shlibs_CXX=no
13992 aix[4-9]*)
13993 if test "$host_cpu" = ia64; then
13994 # On IA64, the linker does run time linking by default, so we don't
13995 # have to do anything special.
13996 aix_use_runtimelinking=no
13997 exp_sym_flag='-Bexport'
13998 no_entry_flag=""
13999 else
14000 aix_use_runtimelinking=no
14002 # Test if we are trying to use run time linking or normal
14003 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14004 # need to do runtime linking.
14005 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14006 for ld_flag in $LDFLAGS; do
14007 case $ld_flag in
14008 *-brtl*)
14009 aix_use_runtimelinking=yes
14010 break
14012 esac
14013 done
14015 esac
14017 exp_sym_flag='-bexport'
14018 no_entry_flag='-bnoentry'
14021 # When large executables or shared objects are built, AIX ld can
14022 # have problems creating the table of contents. If linking a library
14023 # or program results in "error TOC overflow" add -mminimal-toc to
14024 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14025 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14027 archive_cmds_CXX=''
14028 hardcode_direct_CXX=yes
14029 hardcode_direct_absolute_CXX=yes
14030 hardcode_libdir_separator_CXX=':'
14031 link_all_deplibs_CXX=yes
14032 file_list_spec_CXX='${wl}-f,'
14034 if test "$GXX" = yes; then
14035 case $host_os in aix4.[012]|aix4.[012].*)
14036 # We only want to do this on AIX 4.2 and lower, the check
14037 # below for broken collect2 doesn't work under 4.3+
14038 collect2name=`${CC} -print-prog-name=collect2`
14039 if test -f "$collect2name" &&
14040 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14041 then
14042 # We have reworked collect2
14044 else
14045 # We have old collect2
14046 hardcode_direct_CXX=unsupported
14047 # It fails to find uninstalled libraries when the uninstalled
14048 # path is not listed in the libpath. Setting hardcode_minus_L
14049 # to unsupported forces relinking
14050 hardcode_minus_L_CXX=yes
14051 hardcode_libdir_flag_spec_CXX='-L$libdir'
14052 hardcode_libdir_separator_CXX=
14054 esac
14055 shared_flag='-shared'
14056 if test "$aix_use_runtimelinking" = yes; then
14057 shared_flag="$shared_flag "'${wl}-G'
14059 else
14060 # not using gcc
14061 if test "$host_cpu" = ia64; then
14062 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14063 # chokes on -Wl,-G. The following line is correct:
14064 shared_flag='-G'
14065 else
14066 if test "$aix_use_runtimelinking" = yes; then
14067 shared_flag='${wl}-G'
14068 else
14069 shared_flag='${wl}-bM:SRE'
14074 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14075 # It seems that -bexpall does not export symbols beginning with
14076 # underscore (_), so it is better to generate a list of symbols to
14077 # export.
14078 always_export_symbols_CXX=yes
14079 if test "$aix_use_runtimelinking" = yes; then
14080 # Warning - without using the other runtime loading flags (-brtl),
14081 # -berok will link without error, but may produce a broken library.
14082 allow_undefined_flag_CXX='-berok'
14083 # Determine the default libpath from the value encoded in an empty
14084 # executable.
14085 if test x$gcc_no_link = xyes; then
14086 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14089 /* end confdefs.h. */
14092 main ()
14096 return 0;
14098 _ACEOF
14099 if ac_fn_cxx_try_link "$LINENO"; then :
14101 lt_aix_libpath_sed='
14102 /Import File Strings/,/^$/ {
14103 /^0/ {
14104 s/^0 *\(.*\)$/\1/
14108 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14109 # Check for a 64-bit object if we didn't find anything.
14110 if test -z "$aix_libpath"; then
14111 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14114 rm -f core conftest.err conftest.$ac_objext \
14115 conftest$ac_exeext conftest.$ac_ext
14116 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14118 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14120 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14121 else
14122 if test "$host_cpu" = ia64; then
14123 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14124 allow_undefined_flag_CXX="-z nodefs"
14125 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"
14126 else
14127 # Determine the default libpath from the value encoded in an
14128 # empty executable.
14129 if test x$gcc_no_link = xyes; then
14130 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14133 /* end confdefs.h. */
14136 main ()
14140 return 0;
14142 _ACEOF
14143 if ac_fn_cxx_try_link "$LINENO"; then :
14145 lt_aix_libpath_sed='
14146 /Import File Strings/,/^$/ {
14147 /^0/ {
14148 s/^0 *\(.*\)$/\1/
14152 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14153 # Check for a 64-bit object if we didn't find anything.
14154 if test -z "$aix_libpath"; then
14155 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14158 rm -f core conftest.err conftest.$ac_objext \
14159 conftest$ac_exeext conftest.$ac_ext
14160 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14162 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14163 # Warning - without using the other run time loading flags,
14164 # -berok will link without error, but may produce a broken library.
14165 no_undefined_flag_CXX=' ${wl}-bernotok'
14166 allow_undefined_flag_CXX=' ${wl}-berok'
14167 if test "$with_gnu_ld" = yes; then
14168 # We only use this code for GNU lds that support --whole-archive.
14169 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14170 else
14171 # Exported symbols can be pulled into shared objects from archives
14172 whole_archive_flag_spec_CXX='$convenience'
14174 archive_cmds_need_lc_CXX=yes
14175 # This is similar to how AIX traditionally builds its shared
14176 # libraries.
14177 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'
14182 beos*)
14183 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14184 allow_undefined_flag_CXX=unsupported
14185 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14186 # support --undefined. This deserves some investigation. FIXME
14187 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14188 else
14189 ld_shlibs_CXX=no
14193 chorus*)
14194 case $cc_basename in
14196 # FIXME: insert proper C++ library support
14197 ld_shlibs_CXX=no
14199 esac
14202 cygwin* | mingw* | pw32* | cegcc*)
14203 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14204 # as there is no search path for DLLs.
14205 hardcode_libdir_flag_spec_CXX='-L$libdir'
14206 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14207 allow_undefined_flag_CXX=unsupported
14208 always_export_symbols_CXX=no
14209 enable_shared_with_static_runtimes_CXX=yes
14211 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14212 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'
14213 # If the export-symbols file already is a .def file (1st line
14214 # is EXPORTS), use it as is; otherwise, prepend...
14215 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14216 cp $export_symbols $output_objdir/$soname.def;
14217 else
14218 echo EXPORTS > $output_objdir/$soname.def;
14219 cat $export_symbols >> $output_objdir/$soname.def;
14221 $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'
14222 else
14223 ld_shlibs_CXX=no
14226 darwin* | rhapsody*)
14229 archive_cmds_need_lc_CXX=no
14230 hardcode_direct_CXX=no
14231 hardcode_automatic_CXX=yes
14232 hardcode_shlibpath_var_CXX=unsupported
14233 if test "$lt_cv_ld_force_load" = "yes"; then
14234 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14235 else
14236 whole_archive_flag_spec_CXX=''
14238 link_all_deplibs_CXX=yes
14239 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14240 case $cc_basename in
14241 ifort*) _lt_dar_can_shared=yes ;;
14242 *) _lt_dar_can_shared=$GCC ;;
14243 esac
14244 if test "$_lt_dar_can_shared" = "yes"; then
14245 output_verbose_link_cmd=func_echo_all
14246 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}"
14247 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14248 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}"
14249 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}"
14250 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14251 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}"
14252 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}"
14255 else
14256 ld_shlibs_CXX=no
14261 dgux*)
14262 case $cc_basename in
14263 ec++*)
14264 # FIXME: insert proper C++ library support
14265 ld_shlibs_CXX=no
14267 ghcx*)
14268 # Green Hills C++ Compiler
14269 # FIXME: insert proper C++ library support
14270 ld_shlibs_CXX=no
14273 # FIXME: insert proper C++ library support
14274 ld_shlibs_CXX=no
14276 esac
14279 freebsd[12]*)
14280 # C++ shared libraries reported to be fairly broken before
14281 # switch to ELF
14282 ld_shlibs_CXX=no
14285 freebsd-elf*)
14286 archive_cmds_need_lc_CXX=no
14289 freebsd* | dragonfly*)
14290 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14291 # conventions
14292 ld_shlibs_CXX=yes
14295 gnu*)
14298 haiku*)
14299 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14300 link_all_deplibs_CXX=yes
14303 hpux9*)
14304 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14305 hardcode_libdir_separator_CXX=:
14306 export_dynamic_flag_spec_CXX='${wl}-E'
14307 hardcode_direct_CXX=yes
14308 hardcode_minus_L_CXX=yes # Not in the search PATH,
14309 # but as the default
14310 # location of the library.
14312 case $cc_basename in
14313 CC*)
14314 # FIXME: insert proper C++ library support
14315 ld_shlibs_CXX=no
14317 aCC*)
14318 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'
14319 # Commands to make compiler produce verbose output that lists
14320 # what "hidden" libraries, object files and flags are used when
14321 # linking a shared library.
14323 # There doesn't appear to be a way to prevent this compiler from
14324 # explicitly linking system object files so we need to strip them
14325 # from the output so that they don't get included in the library
14326 # dependencies.
14327 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14330 if test "$GXX" = yes; then
14331 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'
14332 else
14333 # FIXME: insert proper C++ library support
14334 ld_shlibs_CXX=no
14337 esac
14340 hpux10*|hpux11*)
14341 if test $with_gnu_ld = no; then
14342 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14343 hardcode_libdir_separator_CXX=:
14345 case $host_cpu in
14346 hppa*64*|ia64*)
14349 export_dynamic_flag_spec_CXX='${wl}-E'
14351 esac
14353 case $host_cpu in
14354 hppa*64*|ia64*)
14355 hardcode_direct_CXX=no
14356 hardcode_shlibpath_var_CXX=no
14359 hardcode_direct_CXX=yes
14360 hardcode_direct_absolute_CXX=yes
14361 hardcode_minus_L_CXX=yes # Not in the search PATH,
14362 # but as the default
14363 # location of the library.
14365 esac
14367 case $cc_basename in
14368 CC*)
14369 # FIXME: insert proper C++ library support
14370 ld_shlibs_CXX=no
14372 aCC*)
14373 case $host_cpu in
14374 hppa*64*)
14375 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14377 ia64*)
14378 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14381 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14383 esac
14384 # Commands to make compiler produce verbose output that lists
14385 # what "hidden" libraries, object files and flags are used when
14386 # linking a shared library.
14388 # There doesn't appear to be a way to prevent this compiler from
14389 # explicitly linking system object files so we need to strip them
14390 # from the output so that they don't get included in the library
14391 # dependencies.
14392 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14395 if test "$GXX" = yes; then
14396 if test $with_gnu_ld = no; then
14397 case $host_cpu in
14398 hppa*64*)
14399 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14401 ia64*)
14402 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14405 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'
14407 esac
14409 else
14410 # FIXME: insert proper C++ library support
14411 ld_shlibs_CXX=no
14414 esac
14417 interix[3-9]*)
14418 hardcode_direct_CXX=no
14419 hardcode_shlibpath_var_CXX=no
14420 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14421 export_dynamic_flag_spec_CXX='${wl}-E'
14422 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14423 # Instead, shared libraries are loaded at an image base (0x10000000 by
14424 # default) and relocated if they conflict, which is a slow very memory
14425 # consuming and fragmenting process. To avoid this, we pick a random,
14426 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14427 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14428 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'
14429 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'
14431 irix5* | irix6*)
14432 case $cc_basename in
14433 CC*)
14434 # SGI C++
14435 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14437 # Archives containing C++ object files must be created using
14438 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14439 # necessary to make sure instantiated templates are included
14440 # in the archive.
14441 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14444 if test "$GXX" = yes; then
14445 if test "$with_gnu_ld" = no; then
14446 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14447 else
14448 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
14451 link_all_deplibs_CXX=yes
14453 esac
14454 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14455 hardcode_libdir_separator_CXX=:
14456 inherit_rpath_CXX=yes
14459 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14460 case $cc_basename in
14461 KCC*)
14462 # Kuck and Associates, Inc. (KAI) C++ Compiler
14464 # KCC will only create a shared library if the output file
14465 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14466 # to its proper name (with version) after linking.
14467 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'
14468 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'
14469 # Commands to make compiler produce verbose output that lists
14470 # what "hidden" libraries, object files and flags are used when
14471 # linking a shared library.
14473 # There doesn't appear to be a way to prevent this compiler from
14474 # explicitly linking system object files so we need to strip them
14475 # from the output so that they don't get included in the library
14476 # dependencies.
14477 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14479 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14480 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14482 # Archives containing C++ object files must be created using
14483 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14484 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14486 icpc* | ecpc* )
14487 # Intel C++
14488 with_gnu_ld=yes
14489 # version 8.0 and above of icpc choke on multiply defined symbols
14490 # if we add $predep_objects and $postdep_objects, however 7.1 and
14491 # earlier do not add the objects themselves.
14492 case `$CC -V 2>&1` in
14493 *"Version 7."*)
14494 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14495 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'
14497 *) # Version 8.0 or newer
14498 tmp_idyn=
14499 case $host_cpu in
14500 ia64*) tmp_idyn=' -i_dynamic';;
14501 esac
14502 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14503 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'
14505 esac
14506 archive_cmds_need_lc_CXX=no
14507 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14508 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14509 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14511 pgCC* | pgcpp*)
14512 # Portland Group C++ compiler
14513 case `$CC -V` in
14514 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14515 prelink_cmds_CXX='tpldir=Template.dir~
14516 rm -rf $tpldir~
14517 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14518 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14519 old_archive_cmds_CXX='tpldir=Template.dir~
14520 rm -rf $tpldir~
14521 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14522 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14523 $RANLIB $oldlib'
14524 archive_cmds_CXX='tpldir=Template.dir~
14525 rm -rf $tpldir~
14526 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14527 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14528 archive_expsym_cmds_CXX='tpldir=Template.dir~
14529 rm -rf $tpldir~
14530 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14531 $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'
14533 *) # Version 6 and above use weak symbols
14534 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14535 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'
14537 esac
14539 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14540 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14541 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14543 cxx*)
14544 # Compaq C++
14545 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14546 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'
14548 runpath_var=LD_RUN_PATH
14549 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14550 hardcode_libdir_separator_CXX=:
14552 # Commands to make compiler produce verbose output that lists
14553 # what "hidden" libraries, object files and flags are used when
14554 # linking a shared library.
14556 # There doesn't appear to be a way to prevent this compiler from
14557 # explicitly linking system object files so we need to strip them
14558 # from the output so that they don't get included in the library
14559 # dependencies.
14560 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14562 xl* | mpixl* | bgxl*)
14563 # IBM XL 8.0 on PPC, with GNU ld
14564 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14565 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14566 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14567 if test "x$supports_anon_versioning" = xyes; then
14568 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14569 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14570 echo "local: *; };" >> $output_objdir/$libname.ver~
14571 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14575 case `$CC -V 2>&1 | sed 5q` in
14576 *Sun\ C*)
14577 # Sun C++ 5.9
14578 no_undefined_flag_CXX=' -zdefs'
14579 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14580 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'
14581 hardcode_libdir_flag_spec_CXX='-R$libdir'
14582 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14583 compiler_needs_object_CXX=yes
14585 # Not sure whether something based on
14586 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14587 # would be better.
14588 output_verbose_link_cmd='func_echo_all'
14590 # Archives containing C++ object files must be created using
14591 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14592 # necessary to make sure instantiated templates are included
14593 # in the archive.
14594 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14596 esac
14598 esac
14601 lynxos*)
14602 # FIXME: insert proper C++ library support
14603 ld_shlibs_CXX=no
14606 m88k*)
14607 # FIXME: insert proper C++ library support
14608 ld_shlibs_CXX=no
14611 mvs*)
14612 case $cc_basename in
14613 cxx*)
14614 # FIXME: insert proper C++ library support
14615 ld_shlibs_CXX=no
14618 # FIXME: insert proper C++ library support
14619 ld_shlibs_CXX=no
14621 esac
14624 netbsd*)
14625 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14626 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14627 wlarc=
14628 hardcode_libdir_flag_spec_CXX='-R$libdir'
14629 hardcode_direct_CXX=yes
14630 hardcode_shlibpath_var_CXX=no
14632 # Workaround some broken pre-1.5 toolchains
14633 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14636 *nto* | *qnx*)
14637 ld_shlibs_CXX=yes
14640 openbsd2*)
14641 # C++ shared libraries are fairly broken
14642 ld_shlibs_CXX=no
14645 openbsd*)
14646 if test -f /usr/libexec/ld.so; then
14647 hardcode_direct_CXX=yes
14648 hardcode_shlibpath_var_CXX=no
14649 hardcode_direct_absolute_CXX=yes
14650 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14651 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14652 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14653 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14654 export_dynamic_flag_spec_CXX='${wl}-E'
14655 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14657 output_verbose_link_cmd=func_echo_all
14658 else
14659 ld_shlibs_CXX=no
14663 osf3* | osf4* | osf5*)
14664 case $cc_basename in
14665 KCC*)
14666 # Kuck and Associates, Inc. (KAI) C++ Compiler
14668 # KCC will only create a shared library if the output file
14669 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14670 # to its proper name (with version) after linking.
14671 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'
14673 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14674 hardcode_libdir_separator_CXX=:
14676 # Archives containing C++ object files must be created using
14677 # the KAI C++ compiler.
14678 case $host in
14679 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14680 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14681 esac
14683 RCC*)
14684 # Rational C++ 2.4.1
14685 # FIXME: insert proper C++ library support
14686 ld_shlibs_CXX=no
14688 cxx*)
14689 case $host in
14690 osf3*)
14691 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14692 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14693 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14696 allow_undefined_flag_CXX=' -expect_unresolved \*'
14697 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14698 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14699 echo "-hidden">> $lib.exp~
14700 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
14701 $RM $lib.exp'
14702 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14704 esac
14706 hardcode_libdir_separator_CXX=:
14708 # Commands to make compiler produce verbose output that lists
14709 # what "hidden" libraries, object files and flags are used when
14710 # linking a shared library.
14712 # There doesn't appear to be a way to prevent this compiler from
14713 # explicitly linking system object files so we need to strip them
14714 # from the output so that they don't get included in the library
14715 # dependencies.
14716 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14719 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14720 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14721 case $host in
14722 osf3*)
14723 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14726 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14728 esac
14730 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14731 hardcode_libdir_separator_CXX=:
14733 # Commands to make compiler produce verbose output that lists
14734 # what "hidden" libraries, object files and flags are used when
14735 # linking a shared library.
14736 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14738 else
14739 # FIXME: insert proper C++ library support
14740 ld_shlibs_CXX=no
14743 esac
14746 psos*)
14747 # FIXME: insert proper C++ library support
14748 ld_shlibs_CXX=no
14751 sunos4*)
14752 case $cc_basename in
14753 CC*)
14754 # Sun C++ 4.x
14755 # FIXME: insert proper C++ library support
14756 ld_shlibs_CXX=no
14758 lcc*)
14759 # Lucid
14760 # FIXME: insert proper C++ library support
14761 ld_shlibs_CXX=no
14764 # FIXME: insert proper C++ library support
14765 ld_shlibs_CXX=no
14767 esac
14770 solaris*)
14771 case $cc_basename in
14772 CC*)
14773 # Sun C++ 4.2, 5.x and Centerline C++
14774 archive_cmds_need_lc_CXX=yes
14775 no_undefined_flag_CXX=' -zdefs'
14776 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14777 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14778 $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'
14780 hardcode_libdir_flag_spec_CXX='-R$libdir'
14781 hardcode_shlibpath_var_CXX=no
14782 case $host_os in
14783 solaris2.[0-5] | solaris2.[0-5].*) ;;
14785 # The compiler driver will combine and reorder linker options,
14786 # but understands `-z linker_flag'.
14787 # Supported since Solaris 2.6 (maybe 2.5.1?)
14788 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14790 esac
14791 link_all_deplibs_CXX=yes
14793 output_verbose_link_cmd='func_echo_all'
14795 # Archives containing C++ object files must be created using
14796 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14797 # necessary to make sure instantiated templates are included
14798 # in the archive.
14799 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14801 gcx*)
14802 # Green Hills C++ Compiler
14803 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14805 # The C++ compiler must be used to create the archive.
14806 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14809 # GNU C++ compiler with Solaris linker
14810 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14811 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14812 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14813 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14814 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14815 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14817 # Commands to make compiler produce verbose output that lists
14818 # what "hidden" libraries, object files and flags are used when
14819 # linking a shared library.
14820 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14821 else
14822 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14823 # platform.
14824 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14825 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14826 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14828 # Commands to make compiler produce verbose output that lists
14829 # what "hidden" libraries, object files and flags are used when
14830 # linking a shared library.
14831 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14834 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14835 case $host_os in
14836 solaris2.[0-5] | solaris2.[0-5].*) ;;
14838 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14840 esac
14843 esac
14846 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14847 no_undefined_flag_CXX='${wl}-z,text'
14848 archive_cmds_need_lc_CXX=no
14849 hardcode_shlibpath_var_CXX=no
14850 runpath_var='LD_RUN_PATH'
14852 case $cc_basename in
14853 CC*)
14854 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14855 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14858 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14859 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14861 esac
14864 sysv5* | sco3.2v5* | sco5v6*)
14865 # Note: We can NOT use -z defs as we might desire, because we do not
14866 # link with -lc, and that would cause any symbols used from libc to
14867 # always be unresolved, which means just about no library would
14868 # ever link correctly. If we're not using GNU ld we use -z text
14869 # though, which does catch some bad symbols but isn't as heavy-handed
14870 # as -z defs.
14871 no_undefined_flag_CXX='${wl}-z,text'
14872 allow_undefined_flag_CXX='${wl}-z,nodefs'
14873 archive_cmds_need_lc_CXX=no
14874 hardcode_shlibpath_var_CXX=no
14875 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14876 hardcode_libdir_separator_CXX=':'
14877 link_all_deplibs_CXX=yes
14878 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14879 runpath_var='LD_RUN_PATH'
14881 case $cc_basename in
14882 CC*)
14883 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14884 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14885 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14886 '"$old_archive_cmds_CXX"
14887 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14888 '"$reload_cmds_CXX"
14891 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14892 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14894 esac
14897 tandem*)
14898 case $cc_basename in
14899 NCC*)
14900 # NonStop-UX NCC 3.20
14901 # FIXME: insert proper C++ library support
14902 ld_shlibs_CXX=no
14905 # FIXME: insert proper C++ library support
14906 ld_shlibs_CXX=no
14908 esac
14911 vxworks*)
14912 # FIXME: insert proper C++ library support
14913 ld_shlibs_CXX=no
14917 # FIXME: insert proper C++ library support
14918 ld_shlibs_CXX=no
14920 esac
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14923 $as_echo "$ld_shlibs_CXX" >&6; }
14924 test "$ld_shlibs_CXX" = no && can_build_shared=no
14926 GCC_CXX="$GXX"
14927 LD_CXX="$LD"
14929 ## CAVEAT EMPTOR:
14930 ## There is no encapsulation within the following macros, do not change
14931 ## the running order or otherwise move them around unless you know exactly
14932 ## what you are doing...
14933 # Dependencies to place before and after the object being linked:
14934 predep_objects_CXX=
14935 postdep_objects_CXX=
14936 predeps_CXX=
14937 postdeps_CXX=
14938 compiler_lib_search_path_CXX=
14940 cat > conftest.$ac_ext <<_LT_EOF
14941 class Foo
14943 public:
14944 Foo (void) { a = 0; }
14945 private:
14946 int a;
14948 _LT_EOF
14950 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14951 (eval $ac_compile) 2>&5
14952 ac_status=$?
14953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14954 test $ac_status = 0; }; then
14955 # Parse the compiler output and extract the necessary
14956 # objects, libraries and library flags.
14958 # Sentinel used to keep track of whether or not we are before
14959 # the conftest object file.
14960 pre_test_object_deps_done=no
14962 for p in `eval "$output_verbose_link_cmd"`; do
14963 case $p in
14965 -L* | -R* | -l*)
14966 # Some compilers place space between "-{L,R}" and the path.
14967 # Remove the space.
14968 if test $p = "-L" ||
14969 test $p = "-R"; then
14970 prev=$p
14971 continue
14972 else
14973 prev=
14976 if test "$pre_test_object_deps_done" = no; then
14977 case $p in
14978 -L* | -R*)
14979 # Internal compiler library paths should come after those
14980 # provided the user. The postdeps already come after the
14981 # user supplied libs so there is no need to process them.
14982 if test -z "$compiler_lib_search_path_CXX"; then
14983 compiler_lib_search_path_CXX="${prev}${p}"
14984 else
14985 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14988 # The "-l" case would never come before the object being
14989 # linked, so don't bother handling this case.
14990 esac
14991 else
14992 if test -z "$postdeps_CXX"; then
14993 postdeps_CXX="${prev}${p}"
14994 else
14995 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15000 *.$objext)
15001 # This assumes that the test object file only shows up
15002 # once in the compiler output.
15003 if test "$p" = "conftest.$objext"; then
15004 pre_test_object_deps_done=yes
15005 continue
15008 if test "$pre_test_object_deps_done" = no; then
15009 if test -z "$predep_objects_CXX"; then
15010 predep_objects_CXX="$p"
15011 else
15012 predep_objects_CXX="$predep_objects_CXX $p"
15014 else
15015 if test -z "$postdep_objects_CXX"; then
15016 postdep_objects_CXX="$p"
15017 else
15018 postdep_objects_CXX="$postdep_objects_CXX $p"
15023 *) ;; # Ignore the rest.
15025 esac
15026 done
15028 # Clean up.
15029 rm -f a.out a.exe
15030 else
15031 echo "libtool.m4: error: problem compiling CXX test program"
15034 $RM -f confest.$objext
15036 # PORTME: override above test on systems where it is broken
15037 case $host_os in
15038 interix[3-9]*)
15039 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15040 # hack all around it, let's just trust "g++" to DTRT.
15041 predep_objects_CXX=
15042 postdep_objects_CXX=
15043 postdeps_CXX=
15046 linux*)
15047 case `$CC -V 2>&1 | sed 5q` in
15048 *Sun\ C*)
15049 # Sun C++ 5.9
15051 # The more standards-conforming stlport4 library is
15052 # incompatible with the Cstd library. Avoid specifying
15053 # it if it's in CXXFLAGS. Ignore libCrun as
15054 # -library=stlport4 depends on it.
15055 case " $CXX $CXXFLAGS " in
15056 *" -library=stlport4 "*)
15057 solaris_use_stlport4=yes
15059 esac
15061 if test "$solaris_use_stlport4" != yes; then
15062 postdeps_CXX='-library=Cstd -library=Crun'
15065 esac
15068 solaris*)
15069 case $cc_basename in
15070 CC*)
15071 # The more standards-conforming stlport4 library is
15072 # incompatible with the Cstd library. Avoid specifying
15073 # it if it's in CXXFLAGS. Ignore libCrun as
15074 # -library=stlport4 depends on it.
15075 case " $CXX $CXXFLAGS " in
15076 *" -library=stlport4 "*)
15077 solaris_use_stlport4=yes
15079 esac
15081 # Adding this requires a known-good setup of shared libraries for
15082 # Sun compiler versions before 5.6, else PIC objects from an old
15083 # archive will be linked into the output, leading to subtle bugs.
15084 if test "$solaris_use_stlport4" != yes; then
15085 postdeps_CXX='-library=Cstd -library=Crun'
15088 esac
15090 esac
15093 case " $postdeps_CXX " in
15094 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15095 esac
15096 compiler_lib_search_dirs_CXX=
15097 if test -n "${compiler_lib_search_path_CXX}"; then
15098 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15131 lt_prog_compiler_wl_CXX=
15132 lt_prog_compiler_pic_CXX=
15133 lt_prog_compiler_static_CXX=
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15136 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15138 # C++ specific cases for pic, static, wl, etc.
15139 if test "$GXX" = yes; then
15140 lt_prog_compiler_wl_CXX='-Wl,'
15141 lt_prog_compiler_static_CXX='-static'
15143 case $host_os in
15144 aix*)
15145 # All AIX code is PIC.
15146 if test "$host_cpu" = ia64; then
15147 # AIX 5 now supports IA64 processor
15148 lt_prog_compiler_static_CXX='-Bstatic'
15152 amigaos*)
15153 case $host_cpu in
15154 powerpc)
15155 # see comment about AmigaOS4 .so support
15156 lt_prog_compiler_pic_CXX='-fPIC'
15158 m68k)
15159 # FIXME: we need at least 68020 code to build shared libraries, but
15160 # adding the `-m68020' flag to GCC prevents building anything better,
15161 # like `-m68040'.
15162 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15164 esac
15167 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15168 # PIC is the default for these OSes.
15170 mingw* | cygwin* | os2* | pw32* | cegcc*)
15171 # This hack is so that the source file can tell whether it is being
15172 # built for inclusion in a dll (and should export symbols for example).
15173 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15174 # (--disable-auto-import) libraries
15175 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15177 darwin* | rhapsody*)
15178 # PIC is the default on this platform
15179 # Common symbols not allowed in MH_DYLIB files
15180 lt_prog_compiler_pic_CXX='-fno-common'
15182 *djgpp*)
15183 # DJGPP does not support shared libraries at all
15184 lt_prog_compiler_pic_CXX=
15186 haiku*)
15187 # PIC is the default for Haiku.
15188 # The "-static" flag exists, but is broken.
15189 lt_prog_compiler_static_CXX=
15191 interix[3-9]*)
15192 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15193 # Instead, we relocate shared libraries at runtime.
15195 sysv4*MP*)
15196 if test -d /usr/nec; then
15197 lt_prog_compiler_pic_CXX=-Kconform_pic
15200 hpux*)
15201 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15202 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15203 # sets the default TLS model and affects inlining.
15204 case $host_cpu in
15205 hppa*64*)
15208 lt_prog_compiler_pic_CXX='-fPIC'
15210 esac
15212 *qnx* | *nto*)
15213 # QNX uses GNU C++, but need to define -shared option too, otherwise
15214 # it will coredump.
15215 lt_prog_compiler_pic_CXX='-fPIC -shared'
15218 lt_prog_compiler_pic_CXX='-fPIC'
15220 esac
15221 else
15222 case $host_os in
15223 aix[4-9]*)
15224 # All AIX code is PIC.
15225 if test "$host_cpu" = ia64; then
15226 # AIX 5 now supports IA64 processor
15227 lt_prog_compiler_static_CXX='-Bstatic'
15228 else
15229 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15232 chorus*)
15233 case $cc_basename in
15234 cxch68*)
15235 # Green Hills C++ Compiler
15236 # _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"
15238 esac
15240 dgux*)
15241 case $cc_basename in
15242 ec++*)
15243 lt_prog_compiler_pic_CXX='-KPIC'
15245 ghcx*)
15246 # Green Hills C++ Compiler
15247 lt_prog_compiler_pic_CXX='-pic'
15251 esac
15253 freebsd* | dragonfly*)
15254 # FreeBSD uses GNU C++
15256 hpux9* | hpux10* | hpux11*)
15257 case $cc_basename in
15258 CC*)
15259 lt_prog_compiler_wl_CXX='-Wl,'
15260 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15261 if test "$host_cpu" != ia64; then
15262 lt_prog_compiler_pic_CXX='+Z'
15265 aCC*)
15266 lt_prog_compiler_wl_CXX='-Wl,'
15267 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15268 case $host_cpu in
15269 hppa*64*|ia64*)
15270 # +Z the default
15273 lt_prog_compiler_pic_CXX='+Z'
15275 esac
15279 esac
15281 interix*)
15282 # This is c89, which is MS Visual C++ (no shared libs)
15283 # Anyone wants to do a port?
15285 irix5* | irix6* | nonstopux*)
15286 case $cc_basename in
15287 CC*)
15288 lt_prog_compiler_wl_CXX='-Wl,'
15289 lt_prog_compiler_static_CXX='-non_shared'
15290 # CC pic flag -KPIC is the default.
15294 esac
15296 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15297 case $cc_basename in
15298 KCC*)
15299 # KAI C++ Compiler
15300 lt_prog_compiler_wl_CXX='--backend -Wl,'
15301 lt_prog_compiler_pic_CXX='-fPIC'
15303 ecpc* )
15304 # old Intel C++ for x86_64 which still supported -KPIC.
15305 lt_prog_compiler_wl_CXX='-Wl,'
15306 lt_prog_compiler_pic_CXX='-KPIC'
15307 lt_prog_compiler_static_CXX='-static'
15309 icpc* )
15310 # Intel C++, used to be incompatible with GCC.
15311 # ICC 10 doesn't accept -KPIC any more.
15312 lt_prog_compiler_wl_CXX='-Wl,'
15313 lt_prog_compiler_pic_CXX='-fPIC'
15314 lt_prog_compiler_static_CXX='-static'
15316 pgCC* | pgcpp*)
15317 # Portland Group C++ compiler
15318 lt_prog_compiler_wl_CXX='-Wl,'
15319 lt_prog_compiler_pic_CXX='-fpic'
15320 lt_prog_compiler_static_CXX='-Bstatic'
15322 cxx*)
15323 # Compaq C++
15324 # Make sure the PIC flag is empty. It appears that all Alpha
15325 # Linux and Compaq Tru64 Unix objects are PIC.
15326 lt_prog_compiler_pic_CXX=
15327 lt_prog_compiler_static_CXX='-non_shared'
15329 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15330 # IBM XL 8.0, 9.0 on PPC and BlueGene
15331 lt_prog_compiler_wl_CXX='-Wl,'
15332 lt_prog_compiler_pic_CXX='-qpic'
15333 lt_prog_compiler_static_CXX='-qstaticlink'
15336 case `$CC -V 2>&1 | sed 5q` in
15337 *Sun\ C*)
15338 # Sun C++ 5.9
15339 lt_prog_compiler_pic_CXX='-KPIC'
15340 lt_prog_compiler_static_CXX='-Bstatic'
15341 lt_prog_compiler_wl_CXX='-Qoption ld '
15343 esac
15345 esac
15347 lynxos*)
15349 m88k*)
15351 mvs*)
15352 case $cc_basename in
15353 cxx*)
15354 lt_prog_compiler_pic_CXX='-W c,exportall'
15358 esac
15360 netbsd*)
15362 *qnx* | *nto*)
15363 # QNX uses GNU C++, but need to define -shared option too, otherwise
15364 # it will coredump.
15365 lt_prog_compiler_pic_CXX='-fPIC -shared'
15367 osf3* | osf4* | osf5*)
15368 case $cc_basename in
15369 KCC*)
15370 lt_prog_compiler_wl_CXX='--backend -Wl,'
15372 RCC*)
15373 # Rational C++ 2.4.1
15374 lt_prog_compiler_pic_CXX='-pic'
15376 cxx*)
15377 # Digital/Compaq C++
15378 lt_prog_compiler_wl_CXX='-Wl,'
15379 # Make sure the PIC flag is empty. It appears that all Alpha
15380 # Linux and Compaq Tru64 Unix objects are PIC.
15381 lt_prog_compiler_pic_CXX=
15382 lt_prog_compiler_static_CXX='-non_shared'
15386 esac
15388 psos*)
15390 solaris*)
15391 case $cc_basename in
15392 CC*)
15393 # Sun C++ 4.2, 5.x and Centerline C++
15394 lt_prog_compiler_pic_CXX='-KPIC'
15395 lt_prog_compiler_static_CXX='-Bstatic'
15396 lt_prog_compiler_wl_CXX='-Qoption ld '
15398 gcx*)
15399 # Green Hills C++ Compiler
15400 lt_prog_compiler_pic_CXX='-PIC'
15404 esac
15406 sunos4*)
15407 case $cc_basename in
15408 CC*)
15409 # Sun C++ 4.x
15410 lt_prog_compiler_pic_CXX='-pic'
15411 lt_prog_compiler_static_CXX='-Bstatic'
15413 lcc*)
15414 # Lucid
15415 lt_prog_compiler_pic_CXX='-pic'
15419 esac
15421 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15422 case $cc_basename in
15423 CC*)
15424 lt_prog_compiler_wl_CXX='-Wl,'
15425 lt_prog_compiler_pic_CXX='-KPIC'
15426 lt_prog_compiler_static_CXX='-Bstatic'
15428 esac
15430 tandem*)
15431 case $cc_basename in
15432 NCC*)
15433 # NonStop-UX NCC 3.20
15434 lt_prog_compiler_pic_CXX='-KPIC'
15438 esac
15440 vxworks*)
15443 lt_prog_compiler_can_build_shared_CXX=no
15445 esac
15448 case $host_os in
15449 # For platforms which do not support PIC, -DPIC is meaningless:
15450 *djgpp*)
15451 lt_prog_compiler_pic_CXX=
15454 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15456 esac
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15458 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15463 # Check to make sure the PIC flag actually works.
15465 if test -n "$lt_prog_compiler_pic_CXX"; then
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15467 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15468 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15469 $as_echo_n "(cached) " >&6
15470 else
15471 lt_cv_prog_compiler_pic_works_CXX=no
15472 ac_outfile=conftest.$ac_objext
15473 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15474 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15475 # Insert the option either (1) after the last *FLAGS variable, or
15476 # (2) before a word containing "conftest.", or (3) at the end.
15477 # Note that $ac_compile itself does not contain backslashes and begins
15478 # with a dollar sign (not a hyphen), so the echo should work correctly.
15479 # The option is referenced via a variable to avoid confusing sed.
15480 lt_compile=`echo "$ac_compile" | $SED \
15481 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15482 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15483 -e 's:$: $lt_compiler_flag:'`
15484 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15485 (eval "$lt_compile" 2>conftest.err)
15486 ac_status=$?
15487 cat conftest.err >&5
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 if (exit $ac_status) && test -s "$ac_outfile"; then
15490 # The compiler can only warn and ignore the option if not recognized
15491 # So say no if there are warnings other than the usual output.
15492 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15493 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15494 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15495 lt_cv_prog_compiler_pic_works_CXX=yes
15498 $RM conftest*
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15502 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15504 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15505 case $lt_prog_compiler_pic_CXX in
15506 "" | " "*) ;;
15507 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15508 esac
15509 else
15510 lt_prog_compiler_pic_CXX=
15511 lt_prog_compiler_can_build_shared_CXX=no
15519 # Check to make sure the static flag actually works.
15521 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15523 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15524 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15525 $as_echo_n "(cached) " >&6
15526 else
15527 lt_cv_prog_compiler_static_works_CXX=no
15528 save_LDFLAGS="$LDFLAGS"
15529 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15530 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15531 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15532 # The linker can only warn and ignore the option if not recognized
15533 # So say no if there are warnings
15534 if test -s conftest.err; then
15535 # Append any errors to the config.log.
15536 cat conftest.err 1>&5
15537 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15538 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15539 if diff conftest.exp conftest.er2 >/dev/null; then
15540 lt_cv_prog_compiler_static_works_CXX=yes
15542 else
15543 lt_cv_prog_compiler_static_works_CXX=yes
15546 $RM -r conftest*
15547 LDFLAGS="$save_LDFLAGS"
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15551 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15553 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15555 else
15556 lt_prog_compiler_static_CXX=
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15563 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15564 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15565 $as_echo_n "(cached) " >&6
15566 else
15567 lt_cv_prog_compiler_c_o_CXX=no
15568 $RM -r conftest 2>/dev/null
15569 mkdir conftest
15570 cd conftest
15571 mkdir out
15572 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15574 lt_compiler_flag="-o out/conftest2.$ac_objext"
15575 # Insert the option either (1) after the last *FLAGS variable, or
15576 # (2) before a word containing "conftest.", or (3) at the end.
15577 # Note that $ac_compile itself does not contain backslashes and begins
15578 # with a dollar sign (not a hyphen), so the echo should work correctly.
15579 lt_compile=`echo "$ac_compile" | $SED \
15580 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15581 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15582 -e 's:$: $lt_compiler_flag:'`
15583 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15584 (eval "$lt_compile" 2>out/conftest.err)
15585 ac_status=$?
15586 cat out/conftest.err >&5
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15589 then
15590 # The compiler can only warn and ignore the option if not recognized
15591 # So say no if there are warnings
15592 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15593 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15594 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15595 lt_cv_prog_compiler_c_o_CXX=yes
15598 chmod u+w . 2>&5
15599 $RM conftest*
15600 # SGI C++ compiler will create directory out/ii_files/ for
15601 # template instantiation
15602 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15603 $RM out/* && rmdir out
15604 cd ..
15605 $RM -r conftest
15606 $RM conftest*
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15610 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15615 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15616 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15617 $as_echo_n "(cached) " >&6
15618 else
15619 lt_cv_prog_compiler_c_o_CXX=no
15620 $RM -r conftest 2>/dev/null
15621 mkdir conftest
15622 cd conftest
15623 mkdir out
15624 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15626 lt_compiler_flag="-o out/conftest2.$ac_objext"
15627 # Insert the option either (1) after the last *FLAGS variable, or
15628 # (2) before a word containing "conftest.", or (3) at the end.
15629 # Note that $ac_compile itself does not contain backslashes and begins
15630 # with a dollar sign (not a hyphen), so the echo should work correctly.
15631 lt_compile=`echo "$ac_compile" | $SED \
15632 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15633 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15634 -e 's:$: $lt_compiler_flag:'`
15635 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15636 (eval "$lt_compile" 2>out/conftest.err)
15637 ac_status=$?
15638 cat out/conftest.err >&5
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15641 then
15642 # The compiler can only warn and ignore the option if not recognized
15643 # So say no if there are warnings
15644 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15645 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15646 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15647 lt_cv_prog_compiler_c_o_CXX=yes
15650 chmod u+w . 2>&5
15651 $RM conftest*
15652 # SGI C++ compiler will create directory out/ii_files/ for
15653 # template instantiation
15654 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15655 $RM out/* && rmdir out
15656 cd ..
15657 $RM -r conftest
15658 $RM conftest*
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15662 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15667 hard_links="nottested"
15668 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15669 # do not overwrite the value of need_locks provided by the user
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15671 $as_echo_n "checking if we can lock with hard links... " >&6; }
15672 hard_links=yes
15673 $RM conftest*
15674 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15675 touch conftest.a
15676 ln conftest.a conftest.b 2>&5 || hard_links=no
15677 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15679 $as_echo "$hard_links" >&6; }
15680 if test "$hard_links" = no; then
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15682 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15683 need_locks=warn
15685 else
15686 need_locks=no
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15692 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15694 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15695 case $host_os in
15696 aix[4-9]*)
15697 # If we're using GNU nm, then we don't want the "-C" option.
15698 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15699 # Also, AIX nm treats weak defined symbols like other global defined
15700 # symbols, whereas GNU nm marks them as "W".
15701 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15702 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15703 else
15704 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'
15707 pw32*)
15708 export_symbols_cmds_CXX="$ltdll_cmds"
15710 cygwin* | mingw* | cegcc*)
15711 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'
15714 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15716 esac
15717 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15720 $as_echo "$ld_shlibs_CXX" >&6; }
15721 test "$ld_shlibs_CXX" = no && can_build_shared=no
15723 with_gnu_ld_CXX=$with_gnu_ld
15731 # Do we need to explicitly link libc?
15733 case "x$archive_cmds_need_lc_CXX" in
15734 x|xyes)
15735 # Assume -lc should be added
15736 archive_cmds_need_lc_CXX=yes
15738 if test "$enable_shared" = yes && test "$GCC" = yes; then
15739 case $archive_cmds_CXX in
15740 *'~'*)
15741 # FIXME: we may have to deal with multi-command sequences.
15743 '$CC '*)
15744 # Test whether the compiler implicitly links with -lc since on some
15745 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15746 # to ld, don't add -lc before -lgcc.
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15748 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15749 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15750 $as_echo_n "(cached) " >&6
15751 else
15752 $RM conftest*
15753 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15755 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15756 (eval $ac_compile) 2>&5
15757 ac_status=$?
15758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15759 test $ac_status = 0; } 2>conftest.err; then
15760 soname=conftest
15761 lib=conftest
15762 libobjs=conftest.$ac_objext
15763 deplibs=
15764 wl=$lt_prog_compiler_wl_CXX
15765 pic_flag=$lt_prog_compiler_pic_CXX
15766 compiler_flags=-v
15767 linker_flags=-v
15768 verstring=
15769 output_objdir=.
15770 libname=conftest
15771 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15772 allow_undefined_flag_CXX=
15773 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15774 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15775 ac_status=$?
15776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15777 test $ac_status = 0; }
15778 then
15779 lt_cv_archive_cmds_need_lc_CXX=no
15780 else
15781 lt_cv_archive_cmds_need_lc_CXX=yes
15783 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15784 else
15785 cat conftest.err 1>&5
15787 $RM conftest*
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15791 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15792 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15794 esac
15797 esac
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15863 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15865 library_names_spec=
15866 libname_spec='lib$name'
15867 soname_spec=
15868 shrext_cmds=".so"
15869 postinstall_cmds=
15870 postuninstall_cmds=
15871 finish_cmds=
15872 finish_eval=
15873 shlibpath_var=
15874 shlibpath_overrides_runpath=unknown
15875 version_type=none
15876 dynamic_linker="$host_os ld.so"
15877 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15878 need_lib_prefix=unknown
15879 hardcode_into_libs=no
15881 # when you set need_version to no, make sure it does not cause -set_version
15882 # flags to be left without arguments
15883 need_version=unknown
15885 case $host_os in
15886 aix3*)
15887 version_type=linux
15888 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15889 shlibpath_var=LIBPATH
15891 # AIX 3 has no versioning support, so we append a major version to the name.
15892 soname_spec='${libname}${release}${shared_ext}$major'
15895 aix[4-9]*)
15896 version_type=linux
15897 need_lib_prefix=no
15898 need_version=no
15899 hardcode_into_libs=yes
15900 if test "$host_cpu" = ia64; then
15901 # AIX 5 supports IA64
15902 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15903 shlibpath_var=LD_LIBRARY_PATH
15904 else
15905 # With GCC up to 2.95.x, collect2 would create an import file
15906 # for dependence libraries. The import file would start with
15907 # the line `#! .'. This would cause the generated library to
15908 # depend on `.', always an invalid library. This was fixed in
15909 # development snapshots of GCC prior to 3.0.
15910 case $host_os in
15911 aix4 | aix4.[01] | aix4.[01].*)
15912 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15913 echo ' yes '
15914 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15916 else
15917 can_build_shared=no
15920 esac
15921 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15922 # soname into executable. Probably we can add versioning support to
15923 # collect2, so additional links can be useful in future.
15924 if test "$aix_use_runtimelinking" = yes; then
15925 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15926 # instead of lib<name>.a to let people know that these are not
15927 # typical AIX shared libraries.
15928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15929 else
15930 # We preserve .a as extension for shared libraries through AIX4.2
15931 # and later when we are not doing run time linking.
15932 library_names_spec='${libname}${release}.a $libname.a'
15933 soname_spec='${libname}${release}${shared_ext}$major'
15935 shlibpath_var=LIBPATH
15939 amigaos*)
15940 case $host_cpu in
15941 powerpc)
15942 # Since July 2007 AmigaOS4 officially supports .so libraries.
15943 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15946 m68k)
15947 library_names_spec='$libname.ixlibrary $libname.a'
15948 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15949 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15951 esac
15954 beos*)
15955 library_names_spec='${libname}${shared_ext}'
15956 dynamic_linker="$host_os ld.so"
15957 shlibpath_var=LIBRARY_PATH
15960 bsdi[45]*)
15961 version_type=linux
15962 need_version=no
15963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15964 soname_spec='${libname}${release}${shared_ext}$major'
15965 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15966 shlibpath_var=LD_LIBRARY_PATH
15967 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15968 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15969 # the default ld.so.conf also contains /usr/contrib/lib and
15970 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15971 # libtool to hard-code these into programs
15974 cygwin* | mingw* | pw32* | cegcc*)
15975 version_type=windows
15976 shrext_cmds=".dll"
15977 need_version=no
15978 need_lib_prefix=no
15980 case $GCC,$host_os in
15981 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15982 library_names_spec='$libname.dll.a'
15983 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15984 postinstall_cmds='base_file=`basename \${file}`~
15985 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15986 dldir=$destdir/`dirname \$dlpath`~
15987 test -d \$dldir || mkdir -p \$dldir~
15988 $install_prog $dir/$dlname \$dldir/$dlname~
15989 chmod a+x \$dldir/$dlname~
15990 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15991 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15993 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15994 dlpath=$dir/\$dldll~
15995 $RM \$dlpath'
15996 shlibpath_overrides_runpath=yes
15998 case $host_os in
15999 cygwin*)
16000 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16001 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16004 mingw* | cegcc*)
16005 # MinGW DLLs use traditional 'lib' prefix
16006 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16008 pw32*)
16009 # pw32 DLLs use 'pw' prefix rather than 'lib'
16010 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16012 esac
16016 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16018 esac
16019 dynamic_linker='Win32 ld.exe'
16020 # FIXME: first we should search . and the directory the executable is in
16021 shlibpath_var=PATH
16024 darwin* | rhapsody*)
16025 dynamic_linker="$host_os dyld"
16026 version_type=darwin
16027 need_lib_prefix=no
16028 need_version=no
16029 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16030 soname_spec='${libname}${release}${major}$shared_ext'
16031 shlibpath_overrides_runpath=yes
16032 shlibpath_var=DYLD_LIBRARY_PATH
16033 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16035 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16038 dgux*)
16039 version_type=linux
16040 need_lib_prefix=no
16041 need_version=no
16042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16043 soname_spec='${libname}${release}${shared_ext}$major'
16044 shlibpath_var=LD_LIBRARY_PATH
16047 freebsd1*)
16048 dynamic_linker=no
16051 freebsd* | dragonfly*)
16052 # DragonFly does not have aout. When/if they implement a new
16053 # versioning mechanism, adjust this.
16054 if test -x /usr/bin/objformat; then
16055 objformat=`/usr/bin/objformat`
16056 else
16057 case $host_os in
16058 freebsd[123]*) objformat=aout ;;
16059 *) objformat=elf ;;
16060 esac
16062 version_type=freebsd-$objformat
16063 case $version_type in
16064 freebsd-elf*)
16065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16066 need_version=no
16067 need_lib_prefix=no
16069 freebsd-*)
16070 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16071 need_version=yes
16073 esac
16074 shlibpath_var=LD_LIBRARY_PATH
16075 case $host_os in
16076 freebsd2*)
16077 shlibpath_overrides_runpath=yes
16079 freebsd3.[01]* | freebsdelf3.[01]*)
16080 shlibpath_overrides_runpath=yes
16081 hardcode_into_libs=yes
16083 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16084 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16085 shlibpath_overrides_runpath=no
16086 hardcode_into_libs=yes
16088 *) # from 4.6 on, and DragonFly
16089 shlibpath_overrides_runpath=yes
16090 hardcode_into_libs=yes
16092 esac
16095 gnu*)
16096 version_type=linux
16097 need_lib_prefix=no
16098 need_version=no
16099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16100 soname_spec='${libname}${release}${shared_ext}$major'
16101 shlibpath_var=LD_LIBRARY_PATH
16102 hardcode_into_libs=yes
16105 haiku*)
16106 version_type=linux
16107 need_lib_prefix=no
16108 need_version=no
16109 dynamic_linker="$host_os runtime_loader"
16110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16111 soname_spec='${libname}${release}${shared_ext}$major'
16112 shlibpath_var=LIBRARY_PATH
16113 shlibpath_overrides_runpath=yes
16114 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16115 hardcode_into_libs=yes
16118 hpux9* | hpux10* | hpux11*)
16119 # Give a soname corresponding to the major version so that dld.sl refuses to
16120 # link against other versions.
16121 version_type=sunos
16122 need_lib_prefix=no
16123 need_version=no
16124 case $host_cpu in
16125 ia64*)
16126 shrext_cmds='.so'
16127 hardcode_into_libs=yes
16128 dynamic_linker="$host_os dld.so"
16129 shlibpath_var=LD_LIBRARY_PATH
16130 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16132 soname_spec='${libname}${release}${shared_ext}$major'
16133 if test "X$HPUX_IA64_MODE" = X32; then
16134 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16135 else
16136 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16138 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16140 hppa*64*)
16141 shrext_cmds='.sl'
16142 hardcode_into_libs=yes
16143 dynamic_linker="$host_os dld.sl"
16144 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16145 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16147 soname_spec='${libname}${release}${shared_ext}$major'
16148 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16149 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16152 shrext_cmds='.sl'
16153 dynamic_linker="$host_os dld.sl"
16154 shlibpath_var=SHLIB_PATH
16155 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16157 soname_spec='${libname}${release}${shared_ext}$major'
16159 esac
16160 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16161 postinstall_cmds='chmod 555 $lib'
16162 # or fails outright, so override atomically:
16163 install_override_mode=555
16166 interix[3-9]*)
16167 version_type=linux
16168 need_lib_prefix=no
16169 need_version=no
16170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16171 soname_spec='${libname}${release}${shared_ext}$major'
16172 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16173 shlibpath_var=LD_LIBRARY_PATH
16174 shlibpath_overrides_runpath=no
16175 hardcode_into_libs=yes
16178 irix5* | irix6* | nonstopux*)
16179 case $host_os in
16180 nonstopux*) version_type=nonstopux ;;
16182 if test "$lt_cv_prog_gnu_ld" = yes; then
16183 version_type=linux
16184 else
16185 version_type=irix
16186 fi ;;
16187 esac
16188 need_lib_prefix=no
16189 need_version=no
16190 soname_spec='${libname}${release}${shared_ext}$major'
16191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16192 case $host_os in
16193 irix5* | nonstopux*)
16194 libsuff= shlibsuff=
16197 case $LD in # libtool.m4 will add one of these switches to LD
16198 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16199 libsuff= shlibsuff= libmagic=32-bit;;
16200 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16201 libsuff=32 shlibsuff=N32 libmagic=N32;;
16202 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16203 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16204 *) libsuff= shlibsuff= libmagic=never-match;;
16205 esac
16207 esac
16208 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16209 shlibpath_overrides_runpath=no
16210 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16211 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16212 hardcode_into_libs=yes
16215 # No shared lib support for Linux oldld, aout, or coff.
16216 linux*oldld* | linux*aout* | linux*coff*)
16217 dynamic_linker=no
16220 # This must be Linux ELF.
16221 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16222 version_type=linux
16223 need_lib_prefix=no
16224 need_version=no
16225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16226 soname_spec='${libname}${release}${shared_ext}$major'
16227 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16228 shlibpath_var=LD_LIBRARY_PATH
16229 shlibpath_overrides_runpath=no
16231 # Some binutils ld are patched to set DT_RUNPATH
16232 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16233 $as_echo_n "(cached) " >&6
16234 else
16235 lt_cv_shlibpath_overrides_runpath=no
16236 save_LDFLAGS=$LDFLAGS
16237 save_libdir=$libdir
16238 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16239 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16240 if test x$gcc_no_link = xyes; then
16241 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16244 /* end confdefs.h. */
16247 main ()
16251 return 0;
16253 _ACEOF
16254 if ac_fn_cxx_try_link "$LINENO"; then :
16255 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16256 lt_cv_shlibpath_overrides_runpath=yes
16259 rm -f core conftest.err conftest.$ac_objext \
16260 conftest$ac_exeext conftest.$ac_ext
16261 LDFLAGS=$save_LDFLAGS
16262 libdir=$save_libdir
16266 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16268 # This implies no fast_install, which is unacceptable.
16269 # Some rework will be needed to allow for fast_install
16270 # before this can be enabled.
16271 hardcode_into_libs=yes
16273 # Append ld.so.conf contents to the search path
16274 if test -f /etc/ld.so.conf; then
16275 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
16276 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16279 # We used to test for /lib/ld.so.1 and disable shared libraries on
16280 # powerpc, because MkLinux only supported shared libraries with the
16281 # GNU dynamic linker. Since this was broken with cross compilers,
16282 # most powerpc-linux boxes support dynamic linking these days and
16283 # people can always --disable-shared, the test was removed, and we
16284 # assume the GNU/Linux dynamic linker is in use.
16285 dynamic_linker='GNU/Linux ld.so'
16288 netbsd*)
16289 version_type=sunos
16290 need_lib_prefix=no
16291 need_version=no
16292 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16294 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16295 dynamic_linker='NetBSD (a.out) ld.so'
16296 else
16297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16298 soname_spec='${libname}${release}${shared_ext}$major'
16299 dynamic_linker='NetBSD ld.elf_so'
16301 shlibpath_var=LD_LIBRARY_PATH
16302 shlibpath_overrides_runpath=yes
16303 hardcode_into_libs=yes
16306 newsos6)
16307 version_type=linux
16308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16309 shlibpath_var=LD_LIBRARY_PATH
16310 shlibpath_overrides_runpath=yes
16313 *nto* | *qnx*)
16314 version_type=qnx
16315 need_lib_prefix=no
16316 need_version=no
16317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16318 soname_spec='${libname}${release}${shared_ext}$major'
16319 shlibpath_var=LD_LIBRARY_PATH
16320 shlibpath_overrides_runpath=no
16321 hardcode_into_libs=yes
16322 dynamic_linker='ldqnx.so'
16325 openbsd*)
16326 version_type=sunos
16327 sys_lib_dlsearch_path_spec="/usr/lib"
16328 need_lib_prefix=no
16329 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16330 case $host_os in
16331 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16332 *) need_version=no ;;
16333 esac
16334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16335 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16336 shlibpath_var=LD_LIBRARY_PATH
16337 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16338 case $host_os in
16339 openbsd2.[89] | openbsd2.[89].*)
16340 shlibpath_overrides_runpath=no
16343 shlibpath_overrides_runpath=yes
16345 esac
16346 else
16347 shlibpath_overrides_runpath=yes
16351 os2*)
16352 libname_spec='$name'
16353 shrext_cmds=".dll"
16354 need_lib_prefix=no
16355 library_names_spec='$libname${shared_ext} $libname.a'
16356 dynamic_linker='OS/2 ld.exe'
16357 shlibpath_var=LIBPATH
16360 osf3* | osf4* | osf5*)
16361 version_type=osf
16362 need_lib_prefix=no
16363 need_version=no
16364 soname_spec='${libname}${release}${shared_ext}$major'
16365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16366 shlibpath_var=LD_LIBRARY_PATH
16367 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16368 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16371 rdos*)
16372 dynamic_linker=no
16375 solaris*)
16376 version_type=linux
16377 need_lib_prefix=no
16378 need_version=no
16379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16380 soname_spec='${libname}${release}${shared_ext}$major'
16381 shlibpath_var=LD_LIBRARY_PATH
16382 shlibpath_overrides_runpath=yes
16383 hardcode_into_libs=yes
16384 # ldd complains unless libraries are executable
16385 postinstall_cmds='chmod +x $lib'
16388 sunos4*)
16389 version_type=sunos
16390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16391 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16392 shlibpath_var=LD_LIBRARY_PATH
16393 shlibpath_overrides_runpath=yes
16394 if test "$with_gnu_ld" = yes; then
16395 need_lib_prefix=no
16397 need_version=yes
16400 sysv4 | sysv4.3*)
16401 version_type=linux
16402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16403 soname_spec='${libname}${release}${shared_ext}$major'
16404 shlibpath_var=LD_LIBRARY_PATH
16405 case $host_vendor in
16406 sni)
16407 shlibpath_overrides_runpath=no
16408 need_lib_prefix=no
16409 runpath_var=LD_RUN_PATH
16411 siemens)
16412 need_lib_prefix=no
16414 motorola)
16415 need_lib_prefix=no
16416 need_version=no
16417 shlibpath_overrides_runpath=no
16418 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16420 esac
16423 sysv4*MP*)
16424 if test -d /usr/nec ;then
16425 version_type=linux
16426 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16427 soname_spec='$libname${shared_ext}.$major'
16428 shlibpath_var=LD_LIBRARY_PATH
16432 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16433 version_type=freebsd-elf
16434 need_lib_prefix=no
16435 need_version=no
16436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16437 soname_spec='${libname}${release}${shared_ext}$major'
16438 shlibpath_var=LD_LIBRARY_PATH
16439 shlibpath_overrides_runpath=yes
16440 hardcode_into_libs=yes
16441 if test "$with_gnu_ld" = yes; then
16442 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16443 else
16444 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16445 case $host_os in
16446 sco3.2v5*)
16447 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16449 esac
16451 sys_lib_dlsearch_path_spec='/usr/lib'
16454 tpf*)
16455 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16456 version_type=linux
16457 need_lib_prefix=no
16458 need_version=no
16459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16460 shlibpath_var=LD_LIBRARY_PATH
16461 shlibpath_overrides_runpath=no
16462 hardcode_into_libs=yes
16465 uts4*)
16466 version_type=linux
16467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16468 soname_spec='${libname}${release}${shared_ext}$major'
16469 shlibpath_var=LD_LIBRARY_PATH
16473 dynamic_linker=no
16475 esac
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16477 $as_echo "$dynamic_linker" >&6; }
16478 test "$dynamic_linker" = no && can_build_shared=no
16480 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16481 if test "$GCC" = yes; then
16482 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16485 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16486 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16488 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16489 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16530 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16531 hardcode_action_CXX=
16532 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16533 test -n "$runpath_var_CXX" ||
16534 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16536 # We can hardcode non-existent directories.
16537 if test "$hardcode_direct_CXX" != no &&
16538 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16539 # have to relink, otherwise we might link with an installed library
16540 # when we should be linking with a yet-to-be-installed one
16541 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16542 test "$hardcode_minus_L_CXX" != no; then
16543 # Linking always hardcodes the temporary library directory.
16544 hardcode_action_CXX=relink
16545 else
16546 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16547 hardcode_action_CXX=immediate
16549 else
16550 # We cannot hardcode anything, or else we can only hardcode existing
16551 # directories.
16552 hardcode_action_CXX=unsupported
16554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16555 $as_echo "$hardcode_action_CXX" >&6; }
16557 if test "$hardcode_action_CXX" = relink ||
16558 test "$inherit_rpath_CXX" = yes; then
16559 # Fast installation is not supported
16560 enable_fast_install=no
16561 elif test "$shlibpath_overrides_runpath" = yes ||
16562 test "$enable_shared" = no; then
16563 # Fast installation is not necessary
16564 enable_fast_install=needless
16573 fi # test -n "$compiler"
16575 CC=$lt_save_CC
16576 LDCXX=$LD
16577 LD=$lt_save_LD
16578 GCC=$lt_save_GCC
16579 with_gnu_ld=$lt_save_with_gnu_ld
16580 lt_cv_path_LDCXX=$lt_cv_path_LD
16581 lt_cv_path_LD=$lt_save_path_LD
16582 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16583 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16584 fi # test "$_lt_caught_CXX_error" != yes
16586 ac_ext=c
16587 ac_cpp='$CPP $CPPFLAGS'
16588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16604 ac_config_commands="$ac_config_commands libtool"
16609 # Only expand once:
16613 for ac_prog in gcj
16615 # Extract the first word of "$ac_prog", so it can be a program name with args.
16616 set dummy $ac_prog; ac_word=$2
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16618 $as_echo_n "checking for $ac_word... " >&6; }
16619 if test "${ac_cv_prog_GCJ+set}" = set; then :
16620 $as_echo_n "(cached) " >&6
16621 else
16622 if test -n "$GCJ"; then
16623 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16624 else
16625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16626 for as_dir in $PATH
16628 IFS=$as_save_IFS
16629 test -z "$as_dir" && as_dir=.
16630 for ac_exec_ext in '' $ac_executable_extensions; do
16631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16632 ac_cv_prog_GCJ="$ac_prog"
16633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16634 break 2
16636 done
16637 done
16638 IFS=$as_save_IFS
16642 GCJ=$ac_cv_prog_GCJ
16643 if test -n "$GCJ"; then
16644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16645 $as_echo "$GCJ" >&6; }
16646 else
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16648 $as_echo "no" >&6; }
16652 test -n "$GCJ" && break
16653 done
16654 test -n "$GCJ" || GCJ="gcj"
16656 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
16657 if test "x${GCJFLAGS-unset}" = xunset; then
16658 GCJFLAGS="-g -O2"
16662 depcc="$GCJ" am_compiler_list='gcc3 gcc'
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16665 $as_echo_n "checking dependency style of $depcc... " >&6; }
16666 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16667 $as_echo_n "(cached) " >&6
16668 else
16669 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16670 # We make a subdir and do the tests there. Otherwise we can end up
16671 # making bogus files that we don't know about and never remove. For
16672 # instance it was reported that on HP-UX the gcc test will end up
16673 # making a dummy file named `D' -- because `-MD' means `put the output
16674 # in D'.
16675 mkdir conftest.dir
16676 # Copy depcomp to subdir because otherwise we won't find it if we're
16677 # using a relative directory.
16678 cp "$am_depcomp" conftest.dir
16679 cd conftest.dir
16680 # We will build objects and dependencies in a subdirectory because
16681 # it helps to detect inapplicable dependency modes. For instance
16682 # both Tru64's cc and ICC support -MD to output dependencies as a
16683 # side effect of compilation, but ICC will put the dependencies in
16684 # the current directory while Tru64 will put them in the object
16685 # directory.
16686 mkdir sub
16688 am_cv_GCJ_dependencies_compiler_type=none
16689 if test "$am_compiler_list" = ""; then
16690 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16692 am__universal=false
16695 for depmode in $am_compiler_list; do
16696 # Setup a source with many dependencies, because some compilers
16697 # like to wrap large dependency lists on column 80 (with \), and
16698 # we should not choose a depcomp mode which is confused by this.
16700 # We need to recreate these files for each test, as the compiler may
16701 # overwrite some of them when testing with obscure command lines.
16702 # This happens at least with the AIX C compiler.
16703 : > sub/conftest.c
16704 for i in 1 2 3 4 5 6; do
16705 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16706 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16707 # Solaris 8's {/usr,}/bin/sh.
16708 touch sub/conftst$i.h
16709 done
16710 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16712 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16713 # mode. It turns out that the SunPro C++ compiler does not properly
16714 # handle `-M -o', and we need to detect this. Also, some Intel
16715 # versions had trouble with output in subdirs
16716 am__obj=sub/conftest.${OBJEXT-o}
16717 am__minus_obj="-o $am__obj"
16718 case $depmode in
16719 gcc)
16720 # This depmode causes a compiler race in universal mode.
16721 test "$am__universal" = false || continue
16723 nosideeffect)
16724 # after this tag, mechanisms are not by side-effect, so they'll
16725 # only be used when explicitly requested
16726 if test "x$enable_dependency_tracking" = xyes; then
16727 continue
16728 else
16729 break
16732 msvisualcpp | msvcmsys)
16733 # This compiler won't grok `-c -o', but also, the minuso test has
16734 # not run yet. These depmodes are late enough in the game, and
16735 # so weak that their functioning should not be impacted.
16736 am__obj=conftest.${OBJEXT-o}
16737 am__minus_obj=
16739 none) break ;;
16740 esac
16741 if depmode=$depmode \
16742 source=sub/conftest.c object=$am__obj \
16743 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16744 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16745 >/dev/null 2>conftest.err &&
16746 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16747 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16748 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16749 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16750 # icc doesn't choke on unknown options, it will just issue warnings
16751 # or remarks (even with -Werror). So we grep stderr for any message
16752 # that says an option was ignored or not supported.
16753 # When given -MP, icc 7.0 and 7.1 complain thusly:
16754 # icc: Command line warning: ignoring option '-M'; no argument required
16755 # The diagnosis changed in icc 8.0:
16756 # icc: Command line remark: option '-MP' not supported
16757 if (grep 'ignoring option' conftest.err ||
16758 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16759 am_cv_GCJ_dependencies_compiler_type=$depmode
16760 break
16763 done
16765 cd ..
16766 rm -rf conftest.dir
16767 else
16768 am_cv_GCJ_dependencies_compiler_type=none
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16773 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
16774 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
16777 test "x$enable_dependency_tracking" != xno \
16778 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16779 am__fastdepGCJ_TRUE=
16780 am__fastdepGCJ_FALSE='#'
16781 else
16782 am__fastdepGCJ_TRUE='#'
16783 am__fastdepGCJ_FALSE=
16788 for ac_prog in gcj
16790 # Extract the first word of "$ac_prog", so it can be a program name with args.
16791 set dummy $ac_prog; ac_word=$2
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16793 $as_echo_n "checking for $ac_word... " >&6; }
16794 if test "${ac_cv_prog_GCJ+set}" = set; then :
16795 $as_echo_n "(cached) " >&6
16796 else
16797 if test -n "$GCJ"; then
16798 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16799 else
16800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16801 for as_dir in $PATH
16803 IFS=$as_save_IFS
16804 test -z "$as_dir" && as_dir=.
16805 for ac_exec_ext in '' $ac_executable_extensions; do
16806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16807 ac_cv_prog_GCJ="$ac_prog"
16808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16809 break 2
16811 done
16812 done
16813 IFS=$as_save_IFS
16817 GCJ=$ac_cv_prog_GCJ
16818 if test -n "$GCJ"; then
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16820 $as_echo "$GCJ" >&6; }
16821 else
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16823 $as_echo "no" >&6; }
16827 test -n "$GCJ" && break
16828 done
16829 test -n "$GCJ" || GCJ="gcj"
16831 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
16832 if test "x${GCJFLAGS-unset}" = xunset; then
16833 GCJFLAGS="-g -O2"
16837 depcc="$GCJ" am_compiler_list='gcc3 gcc'
16839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16840 $as_echo_n "checking dependency style of $depcc... " >&6; }
16841 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16842 $as_echo_n "(cached) " >&6
16843 else
16844 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16845 # We make a subdir and do the tests there. Otherwise we can end up
16846 # making bogus files that we don't know about and never remove. For
16847 # instance it was reported that on HP-UX the gcc test will end up
16848 # making a dummy file named `D' -- because `-MD' means `put the output
16849 # in D'.
16850 mkdir conftest.dir
16851 # Copy depcomp to subdir because otherwise we won't find it if we're
16852 # using a relative directory.
16853 cp "$am_depcomp" conftest.dir
16854 cd conftest.dir
16855 # We will build objects and dependencies in a subdirectory because
16856 # it helps to detect inapplicable dependency modes. For instance
16857 # both Tru64's cc and ICC support -MD to output dependencies as a
16858 # side effect of compilation, but ICC will put the dependencies in
16859 # the current directory while Tru64 will put them in the object
16860 # directory.
16861 mkdir sub
16863 am_cv_GCJ_dependencies_compiler_type=none
16864 if test "$am_compiler_list" = ""; then
16865 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16867 am__universal=false
16870 for depmode in $am_compiler_list; do
16871 # Setup a source with many dependencies, because some compilers
16872 # like to wrap large dependency lists on column 80 (with \), and
16873 # we should not choose a depcomp mode which is confused by this.
16875 # We need to recreate these files for each test, as the compiler may
16876 # overwrite some of them when testing with obscure command lines.
16877 # This happens at least with the AIX C compiler.
16878 : > sub/conftest.c
16879 for i in 1 2 3 4 5 6; do
16880 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16881 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16882 # Solaris 8's {/usr,}/bin/sh.
16883 touch sub/conftst$i.h
16884 done
16885 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16887 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16888 # mode. It turns out that the SunPro C++ compiler does not properly
16889 # handle `-M -o', and we need to detect this. Also, some Intel
16890 # versions had trouble with output in subdirs
16891 am__obj=sub/conftest.${OBJEXT-o}
16892 am__minus_obj="-o $am__obj"
16893 case $depmode in
16894 gcc)
16895 # This depmode causes a compiler race in universal mode.
16896 test "$am__universal" = false || continue
16898 nosideeffect)
16899 # after this tag, mechanisms are not by side-effect, so they'll
16900 # only be used when explicitly requested
16901 if test "x$enable_dependency_tracking" = xyes; then
16902 continue
16903 else
16904 break
16907 msvisualcpp | msvcmsys)
16908 # This compiler won't grok `-c -o', but also, the minuso test has
16909 # not run yet. These depmodes are late enough in the game, and
16910 # so weak that their functioning should not be impacted.
16911 am__obj=conftest.${OBJEXT-o}
16912 am__minus_obj=
16914 none) break ;;
16915 esac
16916 if depmode=$depmode \
16917 source=sub/conftest.c object=$am__obj \
16918 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16919 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16920 >/dev/null 2>conftest.err &&
16921 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16922 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16923 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16924 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16925 # icc doesn't choke on unknown options, it will just issue warnings
16926 # or remarks (even with -Werror). So we grep stderr for any message
16927 # that says an option was ignored or not supported.
16928 # When given -MP, icc 7.0 and 7.1 complain thusly:
16929 # icc: Command line warning: ignoring option '-M'; no argument required
16930 # The diagnosis changed in icc 8.0:
16931 # icc: Command line remark: option '-MP' not supported
16932 if (grep 'ignoring option' conftest.err ||
16933 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16934 am_cv_GCJ_dependencies_compiler_type=$depmode
16935 break
16938 done
16940 cd ..
16941 rm -rf conftest.dir
16942 else
16943 am_cv_GCJ_dependencies_compiler_type=none
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16948 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
16949 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
16952 test "x$enable_dependency_tracking" != xno \
16953 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16954 am__fastdepGCJ_TRUE=
16955 am__fastdepGCJ_FALSE='#'
16956 else
16957 am__fastdepGCJ_TRUE='#'
16958 am__fastdepGCJ_FALSE=
16965 # Source file extension for Java test sources.
16966 ac_ext=c
16968 # Object file extension for compiled Java test sources.
16969 objext=o
16970 objext_GCJ=$objext
16972 # Code to be used in simple compile tests
16973 lt_simple_compile_test_code="int some_variable = 0;"
16975 # Code to be used in simple link tests
16976 lt_simple_link_test_code='int main(){return(0);}'
16978 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16985 # If no C compiler was specified, use CC.
16986 LTCC=${LTCC-"$CC"}
16988 # If no C compiler flags were specified, use CFLAGS.
16989 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16991 # Allow CC to be a program name with arguments.
16992 compiler=$CC
16995 # save warnings/boilerplate of simple test code
16996 ac_outfile=conftest.$ac_objext
16997 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16998 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16999 _lt_compiler_boilerplate=`cat conftest.err`
17000 $RM conftest*
17002 ac_outfile=conftest.$ac_objext
17003 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17004 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17005 _lt_linker_boilerplate=`cat conftest.err`
17006 $RM -r conftest*
17009 # Allow CC to be a program name with arguments.
17010 GCC=yes
17011 compiler=$CC
17012 compiler_GCJ=$CC
17013 for cc_temp in $compiler""; do
17014 case $cc_temp in
17015 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17016 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17017 \-*) ;;
17018 *) break;;
17019 esac
17020 done
17021 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17024 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17025 archive_cmds_need_lc_GCJ=no
17027 old_archive_cmds_GCJ=$old_archive_cmds
17029 ## CAVEAT EMPTOR:
17030 ## There is no encapsulation within the following macros, do not change
17031 ## the running order or otherwise move them around unless you know exactly
17032 ## what you are doing...
17033 if test -n "$compiler"; then
17035 lt_prog_compiler_no_builtin_flag_GCJ=
17037 if test "$GCC" = yes; then
17038 case $cc_basename in
17039 nvcc*)
17040 lt_prog_compiler_no_builtin_flag_GCJ=' -Xcompiler -fno-builtin' ;;
17042 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' ;;
17043 esac
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17046 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17047 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
17048 $as_echo_n "(cached) " >&6
17049 else
17050 lt_cv_prog_compiler_rtti_exceptions=no
17051 ac_outfile=conftest.$ac_objext
17052 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17053 lt_compiler_flag="-fno-rtti -fno-exceptions"
17054 # Insert the option either (1) after the last *FLAGS variable, or
17055 # (2) before a word containing "conftest.", or (3) at the end.
17056 # Note that $ac_compile itself does not contain backslashes and begins
17057 # with a dollar sign (not a hyphen), so the echo should work correctly.
17058 # The option is referenced via a variable to avoid confusing sed.
17059 lt_compile=`echo "$ac_compile" | $SED \
17060 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17061 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17062 -e 's:$: $lt_compiler_flag:'`
17063 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17064 (eval "$lt_compile" 2>conftest.err)
17065 ac_status=$?
17066 cat conftest.err >&5
17067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068 if (exit $ac_status) && test -s "$ac_outfile"; then
17069 # The compiler can only warn and ignore the option if not recognized
17070 # So say no if there are warnings other than the usual output.
17071 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17072 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17073 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17074 lt_cv_prog_compiler_rtti_exceptions=yes
17077 $RM conftest*
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17081 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17083 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17084 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17085 else
17093 lt_prog_compiler_wl_GCJ=
17094 lt_prog_compiler_pic_GCJ=
17095 lt_prog_compiler_static_GCJ=
17097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17098 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17100 if test "$GCC" = yes; then
17101 lt_prog_compiler_wl_GCJ='-Wl,'
17102 lt_prog_compiler_static_GCJ='-static'
17104 case $host_os in
17105 aix*)
17106 # All AIX code is PIC.
17107 if test "$host_cpu" = ia64; then
17108 # AIX 5 now supports IA64 processor
17109 lt_prog_compiler_static_GCJ='-Bstatic'
17113 amigaos*)
17114 case $host_cpu in
17115 powerpc)
17116 # see comment about AmigaOS4 .so support
17117 lt_prog_compiler_pic_GCJ='-fPIC'
17119 m68k)
17120 # FIXME: we need at least 68020 code to build shared libraries, but
17121 # adding the `-m68020' flag to GCC prevents building anything better,
17122 # like `-m68040'.
17123 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17125 esac
17128 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17129 # PIC is the default for these OSes.
17132 mingw* | cygwin* | pw32* | os2* | cegcc*)
17133 # This hack is so that the source file can tell whether it is being
17134 # built for inclusion in a dll (and should export symbols for example).
17135 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17136 # (--disable-auto-import) libraries
17140 darwin* | rhapsody*)
17141 # PIC is the default on this platform
17142 # Common symbols not allowed in MH_DYLIB files
17143 lt_prog_compiler_pic_GCJ='-fno-common'
17146 haiku*)
17147 # PIC is the default for Haiku.
17148 # The "-static" flag exists, but is broken.
17149 lt_prog_compiler_static_GCJ=
17152 hpux*)
17153 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17154 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17155 # sets the default TLS model and affects inlining.
17156 case $host_cpu in
17157 hppa*64*)
17158 # +Z the default
17161 lt_prog_compiler_pic_GCJ='-fPIC'
17163 esac
17166 interix[3-9]*)
17167 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17168 # Instead, we relocate shared libraries at runtime.
17171 msdosdjgpp*)
17172 # Just because we use GCC doesn't mean we suddenly get shared libraries
17173 # on systems that don't support them.
17174 lt_prog_compiler_can_build_shared_GCJ=no
17175 enable_shared=no
17178 *nto* | *qnx*)
17179 # QNX uses GNU C++, but need to define -shared option too, otherwise
17180 # it will coredump.
17181 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17184 sysv4*MP*)
17185 if test -d /usr/nec; then
17186 lt_prog_compiler_pic_GCJ=-Kconform_pic
17191 lt_prog_compiler_pic_GCJ='-fPIC'
17193 esac
17195 case $cc_basename in
17196 nvcc*) # Cuda Compiler Driver 2.2
17197 lt_prog_compiler_wl_GCJ='-Xlinker '
17198 lt_prog_compiler_pic_GCJ='-Xcompiler -fPIC'
17200 esac
17201 else
17202 # PORTME Check for flag to pass linker flags through the system compiler.
17203 case $host_os in
17204 aix*)
17205 lt_prog_compiler_wl_GCJ='-Wl,'
17206 if test "$host_cpu" = ia64; then
17207 # AIX 5 now supports IA64 processor
17208 lt_prog_compiler_static_GCJ='-Bstatic'
17209 else
17210 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17214 mingw* | cygwin* | pw32* | os2* | cegcc*)
17215 # This hack is so that the source file can tell whether it is being
17216 # built for inclusion in a dll (and should export symbols for example).
17220 hpux9* | hpux10* | hpux11*)
17221 lt_prog_compiler_wl_GCJ='-Wl,'
17222 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17223 # not for PA HP-UX.
17224 case $host_cpu in
17225 hppa*64*|ia64*)
17226 # +Z the default
17229 lt_prog_compiler_pic_GCJ='+Z'
17231 esac
17232 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17233 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17236 irix5* | irix6* | nonstopux*)
17237 lt_prog_compiler_wl_GCJ='-Wl,'
17238 # PIC (with -KPIC) is the default.
17239 lt_prog_compiler_static_GCJ='-non_shared'
17242 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17243 case $cc_basename in
17244 # old Intel for x86_64 which still supported -KPIC.
17245 ecc*)
17246 lt_prog_compiler_wl_GCJ='-Wl,'
17247 lt_prog_compiler_pic_GCJ='-KPIC'
17248 lt_prog_compiler_static_GCJ='-static'
17250 # icc used to be incompatible with GCC.
17251 # ICC 10 doesn't accept -KPIC any more.
17252 icc* | ifort*)
17253 lt_prog_compiler_wl_GCJ='-Wl,'
17254 lt_prog_compiler_pic_GCJ='-fPIC'
17255 lt_prog_compiler_static_GCJ='-static'
17257 # Lahey Fortran 8.1.
17258 lf95*)
17259 lt_prog_compiler_wl_GCJ='-Wl,'
17260 lt_prog_compiler_pic_GCJ='--shared'
17261 lt_prog_compiler_static_GCJ='--static'
17263 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17264 # Portland Group compilers (*not* the Pentium gcc compiler,
17265 # which looks to be a dead project)
17266 lt_prog_compiler_wl_GCJ='-Wl,'
17267 lt_prog_compiler_pic_GCJ='-fpic'
17268 lt_prog_compiler_static_GCJ='-Bstatic'
17270 ccc*)
17271 lt_prog_compiler_wl_GCJ='-Wl,'
17272 # All Alpha code is PIC.
17273 lt_prog_compiler_static_GCJ='-non_shared'
17275 xl* | bgxl* | bgf* | mpixl*)
17276 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17277 lt_prog_compiler_wl_GCJ='-Wl,'
17278 lt_prog_compiler_pic_GCJ='-qpic'
17279 lt_prog_compiler_static_GCJ='-qstaticlink'
17282 case `$CC -V 2>&1 | sed 5q` in
17283 *Sun\ F* | *Sun*Fortran*)
17284 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17285 lt_prog_compiler_pic_GCJ='-KPIC'
17286 lt_prog_compiler_static_GCJ='-Bstatic'
17287 lt_prog_compiler_wl_GCJ=''
17289 *Sun\ C*)
17290 # Sun C 5.9
17291 lt_prog_compiler_pic_GCJ='-KPIC'
17292 lt_prog_compiler_static_GCJ='-Bstatic'
17293 lt_prog_compiler_wl_GCJ='-Wl,'
17295 esac
17297 esac
17300 newsos6)
17301 lt_prog_compiler_pic_GCJ='-KPIC'
17302 lt_prog_compiler_static_GCJ='-Bstatic'
17305 *nto* | *qnx*)
17306 # QNX uses GNU C++, but need to define -shared option too, otherwise
17307 # it will coredump.
17308 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17311 osf3* | osf4* | osf5*)
17312 lt_prog_compiler_wl_GCJ='-Wl,'
17313 # All OSF/1 code is PIC.
17314 lt_prog_compiler_static_GCJ='-non_shared'
17317 rdos*)
17318 lt_prog_compiler_static_GCJ='-non_shared'
17321 solaris*)
17322 lt_prog_compiler_pic_GCJ='-KPIC'
17323 lt_prog_compiler_static_GCJ='-Bstatic'
17324 case $cc_basename in
17325 f77* | f90* | f95*)
17326 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17328 lt_prog_compiler_wl_GCJ='-Wl,';;
17329 esac
17332 sunos4*)
17333 lt_prog_compiler_wl_GCJ='-Qoption ld '
17334 lt_prog_compiler_pic_GCJ='-PIC'
17335 lt_prog_compiler_static_GCJ='-Bstatic'
17338 sysv4 | sysv4.2uw2* | sysv4.3*)
17339 lt_prog_compiler_wl_GCJ='-Wl,'
17340 lt_prog_compiler_pic_GCJ='-KPIC'
17341 lt_prog_compiler_static_GCJ='-Bstatic'
17344 sysv4*MP*)
17345 if test -d /usr/nec ;then
17346 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17347 lt_prog_compiler_static_GCJ='-Bstatic'
17351 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17352 lt_prog_compiler_wl_GCJ='-Wl,'
17353 lt_prog_compiler_pic_GCJ='-KPIC'
17354 lt_prog_compiler_static_GCJ='-Bstatic'
17357 unicos*)
17358 lt_prog_compiler_wl_GCJ='-Wl,'
17359 lt_prog_compiler_can_build_shared_GCJ=no
17362 uts4*)
17363 lt_prog_compiler_pic_GCJ='-pic'
17364 lt_prog_compiler_static_GCJ='-Bstatic'
17368 lt_prog_compiler_can_build_shared_GCJ=no
17370 esac
17373 case $host_os in
17374 # For platforms which do not support PIC, -DPIC is meaningless:
17375 *djgpp*)
17376 lt_prog_compiler_pic_GCJ=
17379 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17381 esac
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
17383 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17388 # Check to make sure the PIC flag actually works.
17390 if test -n "$lt_prog_compiler_pic_GCJ"; then
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17392 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17393 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
17394 $as_echo_n "(cached) " >&6
17395 else
17396 lt_cv_prog_compiler_pic_works_GCJ=no
17397 ac_outfile=conftest.$ac_objext
17398 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17399 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17400 # Insert the option either (1) after the last *FLAGS variable, or
17401 # (2) before a word containing "conftest.", or (3) at the end.
17402 # Note that $ac_compile itself does not contain backslashes and begins
17403 # with a dollar sign (not a hyphen), so the echo should work correctly.
17404 # The option is referenced via a variable to avoid confusing sed.
17405 lt_compile=`echo "$ac_compile" | $SED \
17406 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17407 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17408 -e 's:$: $lt_compiler_flag:'`
17409 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17410 (eval "$lt_compile" 2>conftest.err)
17411 ac_status=$?
17412 cat conftest.err >&5
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 if (exit $ac_status) && test -s "$ac_outfile"; then
17415 # The compiler can only warn and ignore the option if not recognized
17416 # So say no if there are warnings other than the usual output.
17417 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17418 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17419 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17420 lt_cv_prog_compiler_pic_works_GCJ=yes
17423 $RM conftest*
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17427 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17429 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17430 case $lt_prog_compiler_pic_GCJ in
17431 "" | " "*) ;;
17432 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17433 esac
17434 else
17435 lt_prog_compiler_pic_GCJ=
17436 lt_prog_compiler_can_build_shared_GCJ=no
17444 # Check to make sure the static flag actually works.
17446 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17448 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17449 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
17450 $as_echo_n "(cached) " >&6
17451 else
17452 lt_cv_prog_compiler_static_works_GCJ=no
17453 save_LDFLAGS="$LDFLAGS"
17454 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17455 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17456 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17457 # The linker can only warn and ignore the option if not recognized
17458 # So say no if there are warnings
17459 if test -s conftest.err; then
17460 # Append any errors to the config.log.
17461 cat conftest.err 1>&5
17462 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17463 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17464 if diff conftest.exp conftest.er2 >/dev/null; then
17465 lt_cv_prog_compiler_static_works_GCJ=yes
17467 else
17468 lt_cv_prog_compiler_static_works_GCJ=yes
17471 $RM -r conftest*
17472 LDFLAGS="$save_LDFLAGS"
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17476 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17478 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17480 else
17481 lt_prog_compiler_static_GCJ=
17487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17488 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17489 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17490 $as_echo_n "(cached) " >&6
17491 else
17492 lt_cv_prog_compiler_c_o_GCJ=no
17493 $RM -r conftest 2>/dev/null
17494 mkdir conftest
17495 cd conftest
17496 mkdir out
17497 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17499 lt_compiler_flag="-o out/conftest2.$ac_objext"
17500 # Insert the option either (1) after the last *FLAGS variable, or
17501 # (2) before a word containing "conftest.", or (3) at the end.
17502 # Note that $ac_compile itself does not contain backslashes and begins
17503 # with a dollar sign (not a hyphen), so the echo should work correctly.
17504 lt_compile=`echo "$ac_compile" | $SED \
17505 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17506 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17507 -e 's:$: $lt_compiler_flag:'`
17508 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17509 (eval "$lt_compile" 2>out/conftest.err)
17510 ac_status=$?
17511 cat out/conftest.err >&5
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17514 then
17515 # The compiler can only warn and ignore the option if not recognized
17516 # So say no if there are warnings
17517 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17518 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17519 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17520 lt_cv_prog_compiler_c_o_GCJ=yes
17523 chmod u+w . 2>&5
17524 $RM conftest*
17525 # SGI C++ compiler will create directory out/ii_files/ for
17526 # template instantiation
17527 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17528 $RM out/* && rmdir out
17529 cd ..
17530 $RM -r conftest
17531 $RM conftest*
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17535 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17540 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17541 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17542 $as_echo_n "(cached) " >&6
17543 else
17544 lt_cv_prog_compiler_c_o_GCJ=no
17545 $RM -r conftest 2>/dev/null
17546 mkdir conftest
17547 cd conftest
17548 mkdir out
17549 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17551 lt_compiler_flag="-o out/conftest2.$ac_objext"
17552 # Insert the option either (1) after the last *FLAGS variable, or
17553 # (2) before a word containing "conftest.", or (3) at the end.
17554 # Note that $ac_compile itself does not contain backslashes and begins
17555 # with a dollar sign (not a hyphen), so the echo should work correctly.
17556 lt_compile=`echo "$ac_compile" | $SED \
17557 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17558 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17559 -e 's:$: $lt_compiler_flag:'`
17560 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17561 (eval "$lt_compile" 2>out/conftest.err)
17562 ac_status=$?
17563 cat out/conftest.err >&5
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17566 then
17567 # The compiler can only warn and ignore the option if not recognized
17568 # So say no if there are warnings
17569 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17570 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17571 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17572 lt_cv_prog_compiler_c_o_GCJ=yes
17575 chmod u+w . 2>&5
17576 $RM conftest*
17577 # SGI C++ compiler will create directory out/ii_files/ for
17578 # template instantiation
17579 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17580 $RM out/* && rmdir out
17581 cd ..
17582 $RM -r conftest
17583 $RM conftest*
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17587 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17592 hard_links="nottested"
17593 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17594 # do not overwrite the value of need_locks provided by the user
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17596 $as_echo_n "checking if we can lock with hard links... " >&6; }
17597 hard_links=yes
17598 $RM conftest*
17599 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17600 touch conftest.a
17601 ln conftest.a conftest.b 2>&5 || hard_links=no
17602 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17604 $as_echo "$hard_links" >&6; }
17605 if test "$hard_links" = no; then
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17607 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17608 need_locks=warn
17610 else
17611 need_locks=no
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17617 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17619 runpath_var=
17620 allow_undefined_flag_GCJ=
17621 always_export_symbols_GCJ=no
17622 archive_cmds_GCJ=
17623 archive_expsym_cmds_GCJ=
17624 compiler_needs_object_GCJ=no
17625 enable_shared_with_static_runtimes_GCJ=no
17626 export_dynamic_flag_spec_GCJ=
17627 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17628 hardcode_automatic_GCJ=no
17629 hardcode_direct_GCJ=no
17630 hardcode_direct_absolute_GCJ=no
17631 hardcode_libdir_flag_spec_GCJ=
17632 hardcode_libdir_flag_spec_ld_GCJ=
17633 hardcode_libdir_separator_GCJ=
17634 hardcode_minus_L_GCJ=no
17635 hardcode_shlibpath_var_GCJ=unsupported
17636 inherit_rpath_GCJ=no
17637 link_all_deplibs_GCJ=unknown
17638 module_cmds_GCJ=
17639 module_expsym_cmds_GCJ=
17640 old_archive_from_new_cmds_GCJ=
17641 old_archive_from_expsyms_cmds_GCJ=
17642 thread_safe_flag_spec_GCJ=
17643 whole_archive_flag_spec_GCJ=
17644 # include_expsyms should be a list of space-separated symbols to be *always*
17645 # included in the symbol list
17646 include_expsyms_GCJ=
17647 # exclude_expsyms can be an extended regexp of symbols to exclude
17648 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17649 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17650 # as well as any symbol that contains `d'.
17651 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17652 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17653 # platforms (ab)use it in PIC code, but their linkers get confused if
17654 # the symbol is explicitly referenced. Since portable code cannot
17655 # rely on this symbol name, it's probably fine to never include it in
17656 # preloaded symbol tables.
17657 # Exclude shared library initialization/finalization symbols.
17658 extract_expsyms_cmds=
17660 case $host_os in
17661 cygwin* | mingw* | pw32* | cegcc*)
17662 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17663 # When not using gcc, we currently assume that we are using
17664 # Microsoft Visual C++.
17665 if test "$GCC" != yes; then
17666 with_gnu_ld=no
17669 interix*)
17670 # we just hope/assume this is gcc and not c89 (= MSVC++)
17671 with_gnu_ld=yes
17673 openbsd*)
17674 with_gnu_ld=no
17676 esac
17678 ld_shlibs_GCJ=yes
17680 # On some targets, GNU ld is compatible enough with the native linker
17681 # that we're better off using the native interface for both.
17682 lt_use_gnu_ld_interface=no
17683 if test "$with_gnu_ld" = yes; then
17684 case $host_os in
17685 aix*)
17686 # The AIX port of GNU ld has always aspired to compatibility
17687 # with the native linker. However, as the warning in the GNU ld
17688 # block says, versions before 2.19.5* couldn't really create working
17689 # shared libraries, regardless of the interface used.
17690 case `$LD -v 2>&1` in
17691 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17692 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17693 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17695 lt_use_gnu_ld_interface=yes
17697 esac
17700 lt_use_gnu_ld_interface=yes
17702 esac
17705 if test "$lt_use_gnu_ld_interface" = yes; then
17706 # If archive_cmds runs LD, not CC, wlarc should be empty
17707 wlarc='${wl}'
17709 # Set some defaults for GNU ld with shared library support. These
17710 # are reset later if shared libraries are not supported. Putting them
17711 # here allows them to be overridden if necessary.
17712 runpath_var=LD_RUN_PATH
17713 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17714 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17715 # ancient GNU ld didn't support --whole-archive et. al.
17716 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17717 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17718 else
17719 whole_archive_flag_spec_GCJ=
17721 supports_anon_versioning=no
17722 case `$LD -v 2>&1` in
17723 *GNU\ gold*) supports_anon_versioning=yes ;;
17724 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17725 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17726 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17727 *\ 2.11.*) ;; # other 2.11 versions
17728 *) supports_anon_versioning=yes ;;
17729 esac
17731 # See if GNU ld supports shared libraries.
17732 case $host_os in
17733 aix[3-9]*)
17734 # On AIX/PPC, the GNU linker is very broken
17735 if test "$host_cpu" != ia64; then
17736 ld_shlibs_GCJ=no
17737 cat <<_LT_EOF 1>&2
17739 *** Warning: the GNU linker, at least up to release 2.19, is reported
17740 *** to be unable to reliably create shared libraries on AIX.
17741 *** Therefore, libtool is disabling shared libraries support. If you
17742 *** really care for shared libraries, you may want to install binutils
17743 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17744 *** You will then need to restart the configuration process.
17746 _LT_EOF
17750 amigaos*)
17751 case $host_cpu in
17752 powerpc)
17753 # see comment about AmigaOS4 .so support
17754 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17755 archive_expsym_cmds_GCJ=''
17757 m68k)
17758 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)'
17759 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17760 hardcode_minus_L_GCJ=yes
17762 esac
17765 beos*)
17766 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17767 allow_undefined_flag_GCJ=unsupported
17768 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17769 # support --undefined. This deserves some investigation. FIXME
17770 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17771 else
17772 ld_shlibs_GCJ=no
17776 cygwin* | mingw* | pw32* | cegcc*)
17777 # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17778 # as there is no search path for DLLs.
17779 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17780 export_dynamic_flag_spec_GCJ='${wl}--export-all-symbols'
17781 allow_undefined_flag_GCJ=unsupported
17782 always_export_symbols_GCJ=no
17783 enable_shared_with_static_runtimes_GCJ=yes
17784 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17786 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17787 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17788 # If the export-symbols file already is a .def file (1st line
17789 # is EXPORTS), use it as is; otherwise, prepend...
17790 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17791 cp $export_symbols $output_objdir/$soname.def;
17792 else
17793 echo EXPORTS > $output_objdir/$soname.def;
17794 cat $export_symbols >> $output_objdir/$soname.def;
17796 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17797 else
17798 ld_shlibs_GCJ=no
17802 haiku*)
17803 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17804 link_all_deplibs_GCJ=yes
17807 interix[3-9]*)
17808 hardcode_direct_GCJ=no
17809 hardcode_shlibpath_var_GCJ=no
17810 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17811 export_dynamic_flag_spec_GCJ='${wl}-E'
17812 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17813 # Instead, shared libraries are loaded at an image base (0x10000000 by
17814 # default) and relocated if they conflict, which is a slow very memory
17815 # consuming and fragmenting process. To avoid this, we pick a random,
17816 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17817 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17818 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'
17819 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'
17822 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
17823 tmp_diet=no
17824 if test "$host_os" = linux-dietlibc; then
17825 case $cc_basename in
17826 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17827 esac
17829 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17830 && test "$tmp_diet" = no
17831 then
17832 tmp_addflag=
17833 tmp_sharedflag='-shared'
17834 case $cc_basename,$host_cpu in
17835 pgcc*) # Portland Group C compiler
17836 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
17837 tmp_addflag=' $pic_flag'
17839 pgf77* | pgf90* | pgf95* | pgfortran*)
17840 # Portland Group f77 and f90 compilers
17841 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
17842 tmp_addflag=' $pic_flag -Mnomain' ;;
17843 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17844 tmp_addflag=' -i_dynamic' ;;
17845 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17846 tmp_addflag=' -i_dynamic -nofor_main' ;;
17847 ifc* | ifort*) # Intel Fortran compiler
17848 tmp_addflag=' -nofor_main' ;;
17849 lf95*) # Lahey Fortran 8.1
17850 whole_archive_flag_spec_GCJ=
17851 tmp_sharedflag='--shared' ;;
17852 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17853 tmp_sharedflag='-qmkshrobj'
17854 tmp_addflag= ;;
17855 nvcc*) # Cuda Compiler Driver 2.2
17856 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
17857 compiler_needs_object_GCJ=yes
17859 esac
17860 case `$CC -V 2>&1 | sed 5q` in
17861 *Sun\ C*) # Sun C 5.9
17862 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
17863 compiler_needs_object_GCJ=yes
17864 tmp_sharedflag='-G' ;;
17865 *Sun\ F*) # Sun Fortran 8.3
17866 tmp_sharedflag='-G' ;;
17867 esac
17868 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17870 if test "x$supports_anon_versioning" = xyes; then
17871 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
17872 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17873 echo "local: *; };" >> $output_objdir/$libname.ver~
17874 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17877 case $cc_basename in
17878 xlf* | bgf* | bgxlf* | mpixlf*)
17879 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17880 whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
17881 hardcode_libdir_flag_spec_GCJ=
17882 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17883 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17884 if test "x$supports_anon_versioning" = xyes; then
17885 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
17886 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17887 echo "local: *; };" >> $output_objdir/$libname.ver~
17888 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17891 esac
17892 else
17893 ld_shlibs_GCJ=no
17897 netbsd*)
17898 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17899 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17900 wlarc=
17901 else
17902 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17903 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17907 solaris*)
17908 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17909 ld_shlibs_GCJ=no
17910 cat <<_LT_EOF 1>&2
17912 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17913 *** create shared libraries on Solaris systems. Therefore, libtool
17914 *** is disabling shared libraries support. We urge you to upgrade GNU
17915 *** binutils to release 2.9.1 or newer. Another option is to modify
17916 *** your PATH or compiler configuration so that the native linker is
17917 *** used, and then restart.
17919 _LT_EOF
17920 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17921 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17922 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17923 else
17924 ld_shlibs_GCJ=no
17928 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17929 case `$LD -v 2>&1` in
17930 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17931 ld_shlibs_GCJ=no
17932 cat <<_LT_EOF 1>&2
17934 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17935 *** reliably create shared libraries on SCO systems. Therefore, libtool
17936 *** is disabling shared libraries support. We urge you to upgrade GNU
17937 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17938 *** your PATH or compiler configuration so that the native linker is
17939 *** used, and then restart.
17941 _LT_EOF
17944 # For security reasons, it is highly recommended that you always
17945 # use absolute paths for naming shared libraries, and exclude the
17946 # DT_RUNPATH tag from executables and libraries. But doing so
17947 # requires that you compile everything twice, which is a pain.
17948 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17949 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17950 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17951 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17952 else
17953 ld_shlibs_GCJ=no
17956 esac
17959 sunos4*)
17960 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17961 wlarc=
17962 hardcode_direct_GCJ=yes
17963 hardcode_shlibpath_var_GCJ=no
17967 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17968 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17969 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17970 else
17971 ld_shlibs_GCJ=no
17974 esac
17976 if test "$ld_shlibs_GCJ" = no; then
17977 runpath_var=
17978 hardcode_libdir_flag_spec_GCJ=
17979 export_dynamic_flag_spec_GCJ=
17980 whole_archive_flag_spec_GCJ=
17982 else
17983 # PORTME fill in a description of your system's linker (not GNU ld)
17984 case $host_os in
17985 aix3*)
17986 allow_undefined_flag_GCJ=unsupported
17987 always_export_symbols_GCJ=yes
17988 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'
17989 # Note: this linker hardcodes the directories in LIBPATH if there
17990 # are no directories specified by -L.
17991 hardcode_minus_L_GCJ=yes
17992 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17993 # Neither direct hardcoding nor static linking is supported with a
17994 # broken collect2.
17995 hardcode_direct_GCJ=unsupported
17999 aix[4-9]*)
18000 if test "$host_cpu" = ia64; then
18001 # On IA64, the linker does run time linking by default, so we don't
18002 # have to do anything special.
18003 aix_use_runtimelinking=no
18004 exp_sym_flag='-Bexport'
18005 no_entry_flag=""
18006 else
18007 # If we're using GNU nm, then we don't want the "-C" option.
18008 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18009 # Also, AIX nm treats weak defined symbols like other global
18010 # defined symbols, whereas GNU nm marks them as "W".
18011 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18012 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
18013 else
18014 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'
18016 aix_use_runtimelinking=no
18018 # Test if we are trying to use run time linking or normal
18019 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18020 # need to do runtime linking.
18021 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18022 for ld_flag in $LDFLAGS; do
18023 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18024 aix_use_runtimelinking=yes
18025 break
18027 done
18029 esac
18031 exp_sym_flag='-bexport'
18032 no_entry_flag='-bnoentry'
18035 # When large executables or shared objects are built, AIX ld can
18036 # have problems creating the table of contents. If linking a library
18037 # or program results in "error TOC overflow" add -mminimal-toc to
18038 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18039 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18041 archive_cmds_GCJ=''
18042 hardcode_direct_GCJ=yes
18043 hardcode_direct_absolute_GCJ=yes
18044 hardcode_libdir_separator_GCJ=':'
18045 link_all_deplibs_GCJ=yes
18046 file_list_spec_GCJ='${wl}-f,'
18048 if test "$GCC" = yes; then
18049 case $host_os in aix4.[012]|aix4.[012].*)
18050 # We only want to do this on AIX 4.2 and lower, the check
18051 # below for broken collect2 doesn't work under 4.3+
18052 collect2name=`${CC} -print-prog-name=collect2`
18053 if test -f "$collect2name" &&
18054 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18055 then
18056 # We have reworked collect2
18058 else
18059 # We have old collect2
18060 hardcode_direct_GCJ=unsupported
18061 # It fails to find uninstalled libraries when the uninstalled
18062 # path is not listed in the libpath. Setting hardcode_minus_L
18063 # to unsupported forces relinking
18064 hardcode_minus_L_GCJ=yes
18065 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18066 hardcode_libdir_separator_GCJ=
18069 esac
18070 shared_flag='-shared'
18071 if test "$aix_use_runtimelinking" = yes; then
18072 shared_flag="$shared_flag "'${wl}-G'
18074 else
18075 # not using gcc
18076 if test "$host_cpu" = ia64; then
18077 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18078 # chokes on -Wl,-G. The following line is correct:
18079 shared_flag='-G'
18080 else
18081 if test "$aix_use_runtimelinking" = yes; then
18082 shared_flag='${wl}-G'
18083 else
18084 shared_flag='${wl}-bM:SRE'
18089 export_dynamic_flag_spec_GCJ='${wl}-bexpall'
18090 # It seems that -bexpall does not export symbols beginning with
18091 # underscore (_), so it is better to generate a list of symbols to export.
18092 always_export_symbols_GCJ=yes
18093 if test "$aix_use_runtimelinking" = yes; then
18094 # Warning - without using the other runtime loading flags (-brtl),
18095 # -berok will link without error, but may produce a broken library.
18096 allow_undefined_flag_GCJ='-berok'
18097 # Determine the default libpath from the value encoded in an
18098 # empty executable.
18099 if test x$gcc_no_link = xyes; then
18100 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18103 /* end confdefs.h. */
18106 main ()
18110 return 0;
18112 _ACEOF
18113 if ac_fn_c_try_link "$LINENO"; then :
18115 lt_aix_libpath_sed='
18116 /Import File Strings/,/^$/ {
18117 /^0/ {
18118 s/^0 *\(.*\)$/\1/
18122 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18123 # Check for a 64-bit object if we didn't find anything.
18124 if test -z "$aix_libpath"; then
18125 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18128 rm -f core conftest.err conftest.$ac_objext \
18129 conftest$ac_exeext conftest.$ac_ext
18130 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18132 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18133 archive_expsym_cmds_GCJ='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18134 else
18135 if test "$host_cpu" = ia64; then
18136 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18137 allow_undefined_flag_GCJ="-z nodefs"
18138 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"
18139 else
18140 # Determine the default libpath from the value encoded in an
18141 # empty executable.
18142 if test x$gcc_no_link = xyes; then
18143 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18146 /* end confdefs.h. */
18149 main ()
18153 return 0;
18155 _ACEOF
18156 if ac_fn_c_try_link "$LINENO"; then :
18158 lt_aix_libpath_sed='
18159 /Import File Strings/,/^$/ {
18160 /^0/ {
18161 s/^0 *\(.*\)$/\1/
18165 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18166 # Check for a 64-bit object if we didn't find anything.
18167 if test -z "$aix_libpath"; then
18168 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18171 rm -f core conftest.err conftest.$ac_objext \
18172 conftest$ac_exeext conftest.$ac_ext
18173 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18175 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18176 # Warning - without using the other run time loading flags,
18177 # -berok will link without error, but may produce a broken library.
18178 no_undefined_flag_GCJ=' ${wl}-bernotok'
18179 allow_undefined_flag_GCJ=' ${wl}-berok'
18180 if test "$with_gnu_ld" = yes; then
18181 # We only use this code for GNU lds that support --whole-archive.
18182 whole_archive_flag_spec_GCJ='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18183 else
18184 # Exported symbols can be pulled into shared objects from archives
18185 whole_archive_flag_spec_GCJ='$convenience'
18187 archive_cmds_need_lc_GCJ=yes
18188 # This is similar to how AIX traditionally builds its shared libraries.
18189 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'
18194 amigaos*)
18195 case $host_cpu in
18196 powerpc)
18197 # see comment about AmigaOS4 .so support
18198 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18199 archive_expsym_cmds_GCJ=''
18201 m68k)
18202 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)'
18203 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18204 hardcode_minus_L_GCJ=yes
18206 esac
18209 bsdi[45]*)
18210 export_dynamic_flag_spec_GCJ=-rdynamic
18213 cygwin* | mingw* | pw32* | cegcc*)
18214 # When not using gcc, we currently assume that we are using
18215 # Microsoft Visual C++.
18216 # hardcode_libdir_flag_spec is actually meaningless, as there is
18217 # no search path for DLLs.
18218 hardcode_libdir_flag_spec_GCJ=' '
18219 allow_undefined_flag_GCJ=unsupported
18220 # Tell ltmain to make .lib files, not .a files.
18221 libext=lib
18222 # Tell ltmain to make .dll files, not .so files.
18223 shrext_cmds=".dll"
18224 # FIXME: Setting linknames here is a bad hack.
18225 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18226 # The linker will automatically build a .lib file if we build a DLL.
18227 old_archive_from_new_cmds_GCJ='true'
18228 # FIXME: Should let the user specify the lib program.
18229 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18230 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18231 enable_shared_with_static_runtimes_GCJ=yes
18234 darwin* | rhapsody*)
18237 archive_cmds_need_lc_GCJ=no
18238 hardcode_direct_GCJ=no
18239 hardcode_automatic_GCJ=yes
18240 hardcode_shlibpath_var_GCJ=unsupported
18241 if test "$lt_cv_ld_force_load" = "yes"; then
18242 whole_archive_flag_spec_GCJ='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
18243 else
18244 whole_archive_flag_spec_GCJ=''
18246 link_all_deplibs_GCJ=yes
18247 allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
18248 case $cc_basename in
18249 ifort*) _lt_dar_can_shared=yes ;;
18250 *) _lt_dar_can_shared=$GCC ;;
18251 esac
18252 if test "$_lt_dar_can_shared" = "yes"; then
18253 output_verbose_link_cmd=func_echo_all
18254 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}"
18255 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18256 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}"
18257 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}"
18259 else
18260 ld_shlibs_GCJ=no
18265 dgux*)
18266 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18267 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18268 hardcode_shlibpath_var_GCJ=no
18271 freebsd1*)
18272 ld_shlibs_GCJ=no
18275 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18276 # support. Future versions do this automatically, but an explicit c++rt0.o
18277 # does not break anything, and helps significantly (at the cost of a little
18278 # extra space).
18279 freebsd2.2*)
18280 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18281 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18282 hardcode_direct_GCJ=yes
18283 hardcode_shlibpath_var_GCJ=no
18286 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18287 freebsd2*)
18288 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18289 hardcode_direct_GCJ=yes
18290 hardcode_minus_L_GCJ=yes
18291 hardcode_shlibpath_var_GCJ=no
18294 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18295 freebsd* | dragonfly*)
18296 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18297 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18298 hardcode_direct_GCJ=yes
18299 hardcode_shlibpath_var_GCJ=no
18302 hpux9*)
18303 if test "$GCC" = yes; then
18304 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'
18305 else
18306 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'
18308 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18309 hardcode_libdir_separator_GCJ=:
18310 hardcode_direct_GCJ=yes
18312 # hardcode_minus_L: Not really in the search PATH,
18313 # but as the default location of the library.
18314 hardcode_minus_L_GCJ=yes
18315 export_dynamic_flag_spec_GCJ='${wl}-E'
18318 hpux10*)
18319 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18320 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18321 else
18322 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18324 if test "$with_gnu_ld" = no; then
18325 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18326 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18327 hardcode_libdir_separator_GCJ=:
18328 hardcode_direct_GCJ=yes
18329 hardcode_direct_absolute_GCJ=yes
18330 export_dynamic_flag_spec_GCJ='${wl}-E'
18331 # hardcode_minus_L: Not really in the search PATH,
18332 # but as the default location of the library.
18333 hardcode_minus_L_GCJ=yes
18337 hpux11*)
18338 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18339 case $host_cpu in
18340 hppa*64*)
18341 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18343 ia64*)
18344 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18347 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18349 esac
18350 else
18351 case $host_cpu in
18352 hppa*64*)
18353 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18355 ia64*)
18356 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18359 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18361 esac
18363 if test "$with_gnu_ld" = no; then
18364 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18365 hardcode_libdir_separator_GCJ=:
18367 case $host_cpu in
18368 hppa*64*|ia64*)
18369 hardcode_direct_GCJ=no
18370 hardcode_shlibpath_var_GCJ=no
18373 hardcode_direct_GCJ=yes
18374 hardcode_direct_absolute_GCJ=yes
18375 export_dynamic_flag_spec_GCJ='${wl}-E'
18377 # hardcode_minus_L: Not really in the search PATH,
18378 # but as the default location of the library.
18379 hardcode_minus_L_GCJ=yes
18381 esac
18385 irix5* | irix6* | nonstopux*)
18386 if test "$GCC" = yes; then
18387 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18388 # Try to use the -exported_symbol ld option, if it does not
18389 # work, assume that -exports_file does not work either and
18390 # implicitly export all symbols.
18391 save_LDFLAGS="$LDFLAGS"
18392 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18393 if test x$gcc_no_link = xyes; then
18394 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18397 /* end confdefs.h. */
18398 int foo(void) {}
18399 _ACEOF
18400 if ac_fn_c_try_link "$LINENO"; then :
18401 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
18404 rm -f core conftest.err conftest.$ac_objext \
18405 conftest$ac_exeext conftest.$ac_ext
18406 LDFLAGS="$save_LDFLAGS"
18407 else
18408 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
18409 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
18411 archive_cmds_need_lc_GCJ='no'
18412 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18413 hardcode_libdir_separator_GCJ=:
18414 inherit_rpath_GCJ=yes
18415 link_all_deplibs_GCJ=yes
18418 netbsd*)
18419 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18420 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18421 else
18422 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18424 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18425 hardcode_direct_GCJ=yes
18426 hardcode_shlibpath_var_GCJ=no
18429 newsos6)
18430 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18431 hardcode_direct_GCJ=yes
18432 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18433 hardcode_libdir_separator_GCJ=:
18434 hardcode_shlibpath_var_GCJ=no
18437 *nto* | *qnx*)
18440 openbsd*)
18441 if test -f /usr/libexec/ld.so; then
18442 hardcode_direct_GCJ=yes
18443 hardcode_shlibpath_var_GCJ=no
18444 hardcode_direct_absolute_GCJ=yes
18445 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18446 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18447 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18448 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18449 export_dynamic_flag_spec_GCJ='${wl}-E'
18450 else
18451 case $host_os in
18452 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18453 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18454 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18457 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18458 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18460 esac
18462 else
18463 ld_shlibs_GCJ=no
18467 os2*)
18468 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18469 hardcode_minus_L_GCJ=yes
18470 allow_undefined_flag_GCJ=unsupported
18471 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'
18472 old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18475 osf3*)
18476 if test "$GCC" = yes; then
18477 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18478 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18479 else
18480 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18481 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
18483 archive_cmds_need_lc_GCJ='no'
18484 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18485 hardcode_libdir_separator_GCJ=:
18488 osf4* | osf5*) # as osf3* with the addition of -msym flag
18489 if test "$GCC" = yes; then
18490 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18491 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18492 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18493 else
18494 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18495 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
18496 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~
18497 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
18499 # Both c and cxx compiler support -rpath directly
18500 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18502 archive_cmds_need_lc_GCJ='no'
18503 hardcode_libdir_separator_GCJ=:
18506 solaris*)
18507 no_undefined_flag_GCJ=' -z defs'
18508 if test "$GCC" = yes; then
18509 wlarc='${wl}'
18510 archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18511 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18512 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18513 else
18514 case `$CC -V 2>&1` in
18515 *"Compilers 5.0"*)
18516 wlarc=''
18517 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18518 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18519 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18522 wlarc='${wl}'
18523 archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18524 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18525 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18527 esac
18529 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18530 hardcode_shlibpath_var_GCJ=no
18531 case $host_os in
18532 solaris2.[0-5] | solaris2.[0-5].*) ;;
18534 # The compiler driver will combine and reorder linker options,
18535 # but understands `-z linker_flag'. GCC discards it without `$wl',
18536 # but is careful enough not to reorder.
18537 # Supported since Solaris 2.6 (maybe 2.5.1?)
18538 if test "$GCC" = yes; then
18539 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18540 else
18541 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18544 esac
18545 link_all_deplibs_GCJ=yes
18548 sunos4*)
18549 if test "x$host_vendor" = xsequent; then
18550 # Use $CC to link under sequent, because it throws in some extra .o
18551 # files that make .init and .fini sections work.
18552 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18553 else
18554 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18556 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18557 hardcode_direct_GCJ=yes
18558 hardcode_minus_L_GCJ=yes
18559 hardcode_shlibpath_var_GCJ=no
18562 sysv4)
18563 case $host_vendor in
18564 sni)
18565 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18566 hardcode_direct_GCJ=yes # is this really true???
18568 siemens)
18569 ## LD is ld it makes a PLAMLIB
18570 ## CC just makes a GrossModule.
18571 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18572 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18573 hardcode_direct_GCJ=no
18575 motorola)
18576 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18577 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18579 esac
18580 runpath_var='LD_RUN_PATH'
18581 hardcode_shlibpath_var_GCJ=no
18584 sysv4.3*)
18585 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18586 hardcode_shlibpath_var_GCJ=no
18587 export_dynamic_flag_spec_GCJ='-Bexport'
18590 sysv4*MP*)
18591 if test -d /usr/nec; then
18592 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18593 hardcode_shlibpath_var_GCJ=no
18594 runpath_var=LD_RUN_PATH
18595 hardcode_runpath_var=yes
18596 ld_shlibs_GCJ=yes
18600 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18601 no_undefined_flag_GCJ='${wl}-z,text'
18602 archive_cmds_need_lc_GCJ=no
18603 hardcode_shlibpath_var_GCJ=no
18604 runpath_var='LD_RUN_PATH'
18606 if test "$GCC" = yes; then
18607 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18608 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18609 else
18610 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18611 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18615 sysv5* | sco3.2v5* | sco5v6*)
18616 # Note: We can NOT use -z defs as we might desire, because we do not
18617 # link with -lc, and that would cause any symbols used from libc to
18618 # always be unresolved, which means just about no library would
18619 # ever link correctly. If we're not using GNU ld we use -z text
18620 # though, which does catch some bad symbols but isn't as heavy-handed
18621 # as -z defs.
18622 no_undefined_flag_GCJ='${wl}-z,text'
18623 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18624 archive_cmds_need_lc_GCJ=no
18625 hardcode_shlibpath_var_GCJ=no
18626 hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
18627 hardcode_libdir_separator_GCJ=':'
18628 link_all_deplibs_GCJ=yes
18629 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18630 runpath_var='LD_RUN_PATH'
18632 if test "$GCC" = yes; then
18633 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18634 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18635 else
18636 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18637 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18641 uts4*)
18642 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18643 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18644 hardcode_shlibpath_var_GCJ=no
18648 ld_shlibs_GCJ=no
18650 esac
18652 if test x$host_vendor = xsni; then
18653 case $host in
18654 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18655 export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
18657 esac
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
18662 $as_echo "$ld_shlibs_GCJ" >&6; }
18663 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18665 with_gnu_ld_GCJ=$with_gnu_ld
18673 # Do we need to explicitly link libc?
18675 case "x$archive_cmds_need_lc_GCJ" in
18676 x|xyes)
18677 # Assume -lc should be added
18678 archive_cmds_need_lc_GCJ=yes
18680 if test "$enable_shared" = yes && test "$GCC" = yes; then
18681 case $archive_cmds_GCJ in
18682 *'~'*)
18683 # FIXME: we may have to deal with multi-command sequences.
18685 '$CC '*)
18686 # Test whether the compiler implicitly links with -lc since on some
18687 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18688 # to ld, don't add -lc before -lgcc.
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18690 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18691 if test "${lt_cv_archive_cmds_need_lc_GCJ+set}" = set; then :
18692 $as_echo_n "(cached) " >&6
18693 else
18694 $RM conftest*
18695 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18698 (eval $ac_compile) 2>&5
18699 ac_status=$?
18700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18701 test $ac_status = 0; } 2>conftest.err; then
18702 soname=conftest
18703 lib=conftest
18704 libobjs=conftest.$ac_objext
18705 deplibs=
18706 wl=$lt_prog_compiler_wl_GCJ
18707 pic_flag=$lt_prog_compiler_pic_GCJ
18708 compiler_flags=-v
18709 linker_flags=-v
18710 verstring=
18711 output_objdir=.
18712 libname=conftest
18713 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18714 allow_undefined_flag_GCJ=
18715 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18716 (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18717 ac_status=$?
18718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18719 test $ac_status = 0; }
18720 then
18721 lt_cv_archive_cmds_need_lc_GCJ=no
18722 else
18723 lt_cv_archive_cmds_need_lc_GCJ=yes
18725 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18726 else
18727 cat conftest.err 1>&5
18729 $RM conftest*
18732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GCJ" >&5
18733 $as_echo "$lt_cv_archive_cmds_need_lc_GCJ" >&6; }
18734 archive_cmds_need_lc_GCJ=$lt_cv_archive_cmds_need_lc_GCJ
18736 esac
18739 esac
18804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18805 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18806 hardcode_action_GCJ=
18807 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
18808 test -n "$runpath_var_GCJ" ||
18809 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18811 # We can hardcode non-existent directories.
18812 if test "$hardcode_direct_GCJ" != no &&
18813 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18814 # have to relink, otherwise we might link with an installed library
18815 # when we should be linking with a yet-to-be-installed one
18816 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18817 test "$hardcode_minus_L_GCJ" != no; then
18818 # Linking always hardcodes the temporary library directory.
18819 hardcode_action_GCJ=relink
18820 else
18821 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18822 hardcode_action_GCJ=immediate
18824 else
18825 # We cannot hardcode anything, or else we can only hardcode existing
18826 # directories.
18827 hardcode_action_GCJ=unsupported
18829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18830 $as_echo "$hardcode_action_GCJ" >&6; }
18832 if test "$hardcode_action_GCJ" = relink ||
18833 test "$inherit_rpath_GCJ" = yes; then
18834 # Fast installation is not supported
18835 enable_fast_install=no
18836 elif test "$shlibpath_overrides_runpath" = yes ||
18837 test "$enable_shared" = no; then
18838 # Fast installation is not necessary
18839 enable_fast_install=needless
18850 compiler_GCJ=${GCJ-gcj}
18851 ac_ext=c
18852 ac_cpp='$CPP $CPPFLAGS'
18853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18858 if test "x$CC" != xcc; then
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
18860 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
18861 else
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
18863 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
18865 set dummy $CC; ac_cc=`$as_echo "$2" |
18866 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18867 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
18868 $as_echo_n "(cached) " >&6
18869 else
18870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18871 /* end confdefs.h. */
18874 main ()
18878 return 0;
18880 _ACEOF
18881 # Make sure it works both with $CC and with simple cc.
18882 # We do the test twice because some compilers refuse to overwrite an
18883 # existing .o file with -o, though they will create one.
18884 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
18885 rm -f conftest2.*
18886 if { { case "(($ac_try" in
18887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18888 *) ac_try_echo=$ac_try;;
18889 esac
18890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18891 $as_echo "$ac_try_echo"; } >&5
18892 (eval "$ac_try") 2>&5
18893 ac_status=$?
18894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18895 test $ac_status = 0; } &&
18896 test -f conftest2.$ac_objext && { { case "(($ac_try" in
18897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18898 *) ac_try_echo=$ac_try;;
18899 esac
18900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18901 $as_echo "$ac_try_echo"; } >&5
18902 (eval "$ac_try") 2>&5
18903 ac_status=$?
18904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18905 test $ac_status = 0; };
18906 then
18907 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
18908 if test "x$CC" != xcc; then
18909 # Test first that cc exists at all.
18910 if { ac_try='cc -c conftest.$ac_ext >&5'
18911 { { case "(($ac_try" in
18912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18913 *) ac_try_echo=$ac_try;;
18914 esac
18915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18916 $as_echo "$ac_try_echo"; } >&5
18917 (eval "$ac_try") 2>&5
18918 ac_status=$?
18919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18920 test $ac_status = 0; }; }; then
18921 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
18922 rm -f conftest2.*
18923 if { { case "(($ac_try" in
18924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18925 *) ac_try_echo=$ac_try;;
18926 esac
18927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18928 $as_echo "$ac_try_echo"; } >&5
18929 (eval "$ac_try") 2>&5
18930 ac_status=$?
18931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18932 test $ac_status = 0; } &&
18933 test -f conftest2.$ac_objext && { { case "(($ac_try" in
18934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18935 *) ac_try_echo=$ac_try;;
18936 esac
18937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18938 $as_echo "$ac_try_echo"; } >&5
18939 (eval "$ac_try") 2>&5
18940 ac_status=$?
18941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18942 test $ac_status = 0; };
18943 then
18944 # cc works too.
18946 else
18947 # cc exists but doesn't like -o.
18948 eval ac_cv_prog_cc_${ac_cc}_c_o=no
18952 else
18953 eval ac_cv_prog_cc_${ac_cc}_c_o=no
18955 rm -f core conftest*
18958 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
18959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18960 $as_echo "yes" >&6; }
18961 else
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18963 $as_echo "no" >&6; }
18965 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
18969 # FIXME: we rely on the cache variable name because
18970 # there is no other way.
18971 set dummy $CC
18972 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18973 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
18974 if test "$am_t" != yes; then
18975 # Losing compiler, so override with the script.
18976 # FIXME: It is wrong to rewrite CC.
18977 # But if we don't then we get into trouble of one sort or another.
18978 # A longer-term fix would be to have automake use am__CC in this case,
18979 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
18980 CC="$am_aux_dir/compile $CC"
18987 subdirs="$subdirs classpath libltdl"
18990 # The -no-testsuite modules omit the test subdir.
18991 if test -d $srcdir/testsuite; then
18992 TESTSUBDIR_TRUE=
18993 TESTSUBDIR_FALSE='#'
18994 else
18995 TESTSUBDIR_TRUE='#'
18996 TESTSUBDIR_FALSE=
19000 # Should the runtime set system properties by examining the
19001 # environment variable GCJ_PROPERTIES?
19002 # Check whether --enable-getenv-properties was given.
19003 if test "${enable_getenv_properties+set}" = set; then :
19004 enableval=$enable_getenv_properties;
19008 # Whether GCJ_PROPERTIES is used depends on the target.
19009 if test -z "$enable_getenv_properties"; then
19010 enable_getenv_properties=${enable_getenv_properties_default-yes}
19012 if test "$enable_getenv_properties" = no; then
19014 $as_echo "#define DISABLE_GETENV_PROPERTIES 1" >>confdefs.h
19018 # Whether we should use arguments to main()
19019 if test -z "$enable_main_args"; then
19020 enable_main_args=${enable_main_args_default-yes}
19022 if test "$enable_main_args" = no; then
19024 $as_echo "#define DISABLE_MAIN_ARGS 1" >>confdefs.h
19029 # Should we use hashtable-based synchronization?
19030 # Currently works only for Linux X86/ia64
19031 # Typically faster and more space-efficient
19032 # Check whether --enable-hash-synchronization was given.
19033 if test "${enable_hash_synchronization+set}" = set; then :
19034 enableval=$enable_hash_synchronization;
19038 if test -z "$enable_hash_synchronization"; then
19039 enable_hash_synchronization=$enable_hash_synchronization_default
19043 install_ecj_jar=no
19044 ECJ_BUILD_JAR=
19045 ECJ_JAR=
19047 # Check whether --with-ecj-jar was given.
19048 if test "${with_ecj_jar+set}" = set; then :
19049 withval=$with_ecj_jar; ECJ_JAR=$withval
19050 else
19051 if test -f $multi_basedir/ecj.jar; then
19052 ECJ_BUILD_JAR=$multi_basedir/ecj.jar
19053 ECJ_JAR='$(jardir)/ecj.jar'
19054 install_ecj_jar=yes
19060 if test "$ECJ_JAR" != ""; then
19061 BUILD_ECJ1_TRUE=
19062 BUILD_ECJ1_FALSE='#'
19063 else
19064 BUILD_ECJ1_TRUE='#'
19065 BUILD_ECJ1_FALSE=
19068 if test $install_ecj_jar = yes; then
19069 INSTALL_ECJ_JAR_TRUE=
19070 INSTALL_ECJ_JAR_FALSE='#'
19071 else
19072 INSTALL_ECJ_JAR_TRUE='#'
19073 INSTALL_ECJ_JAR_FALSE=
19078 # Check whether --with-java-home was given.
19079 if test "${with_java_home+set}" = set; then :
19080 withval=$with_java_home; JAVA_HOME="${withval}"
19081 else
19082 JAVA_HOME=""
19085 if test ! -z "$JAVA_HOME"; then
19086 JAVA_HOME_SET_TRUE=
19087 JAVA_HOME_SET_FALSE='#'
19088 else
19089 JAVA_HOME_SET_TRUE='#'
19090 JAVA_HOME_SET_FALSE=
19095 suppress_libgcj_bc=no
19096 # Check whether --enable-libgcj-bc was given.
19097 if test "${enable_libgcj_bc+set}" = set; then :
19098 enableval=$enable_libgcj_bc; if test "$enable_libgcj_bc" = "no"; then
19099 suppress_libgcj_bc=yes
19103 if test "$suppress_libgcj_bc" = "yes"; then
19104 SUPPRESS_LIBGCJ_BC_TRUE=
19105 SUPPRESS_LIBGCJ_BC_FALSE='#'
19106 else
19107 SUPPRESS_LIBGCJ_BC_TRUE='#'
19108 SUPPRESS_LIBGCJ_BC_FALSE=
19112 build_libgcj_reduced_reflection=no
19113 # Check whether --enable-reduced-reflection was given.
19114 if test "${enable_reduced_reflection+set}" = set; then :
19115 enableval=$enable_reduced_reflection; if test "$enable_reduced_reflection" = "yes"; then
19116 build_libgcj_reduced_reflection=yes
19120 if test "$build_libgcj_reduced_reflection" = "yes"; then
19121 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE=
19122 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE='#'
19123 else
19124 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE='#'
19125 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE=
19129 # What is the native OS API for MinGW?
19131 # Check whether --with-win32-nlsapi was given.
19132 if test "${with_win32_nlsapi+set}" = set; then :
19133 withval=$with_win32_nlsapi; case "${withval}" in
19134 ansi) with_win32_nlsapi=ansi ;;
19135 unicows) with_win32_nlsapi=unicows ;;
19136 unicode) with_win32_nlsapi=unicode ;;
19137 *) as_fn_error "Bad value ${withval} for --with-win32-nlsapi." "$LINENO" 5 ;;
19138 esac
19139 else
19140 with_win32_nlsapi=ansi
19144 case "${with_win32_nlsapi}" in
19145 unicows | unicode)
19147 $as_echo "#define MINGW_LIBGCJ_UNICODE 1" >>confdefs.h
19150 esac
19152 # configure.host sets slow_pthread_self if the synchronization code should
19153 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
19154 if test "${slow_pthread_self}" = "yes"; then
19156 $as_echo "#define SLOW_PTHREAD_SELF 1" >>confdefs.h
19160 # Check for gc debugging. This option is handled both here and in the GC.
19161 # Check whether --enable-gc-debug was given.
19162 if test "${enable_gc_debug+set}" = set; then :
19163 enableval=$enable_gc_debug; if test "$enable_gc_debug" = "yes"; then
19165 $as_echo "#define LIBGCJ_GC_DEBUG 1" >>confdefs.h
19171 # See if the user has the interpreter included.
19172 # Check whether --enable-interpreter was given.
19173 if test "${enable_interpreter+set}" = set; then :
19174 enableval=$enable_interpreter; if test "$enable_interpreter" = yes; then
19175 # This can also be set in configure.host.
19176 libgcj_interpreter=yes
19177 elif test "$enable_interpreter" = no; then
19178 libgcj_interpreter=no
19183 if test "$libgcj_interpreter" = yes; then
19185 $as_echo "#define INTERPRETER 1" >>confdefs.h
19188 INTERPRETER="$libgcj_interpreter"
19190 if test "$libgcj_interpreter" = yes; then
19191 INTERPRETER_TRUE=
19192 INTERPRETER_FALSE='#'
19193 else
19194 INTERPRETER_TRUE='#'
19195 INTERPRETER_FALSE=
19199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception model to use" >&5
19200 $as_echo_n "checking for exception model to use... " >&6; }
19201 ac_ext=cpp
19202 ac_cpp='$CXXCPP $CPPFLAGS'
19203 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19204 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19205 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19207 # Check whether --enable-sjlj-exceptions was given.
19208 if test "${enable_sjlj_exceptions+set}" = set; then :
19209 enableval=$enable_sjlj_exceptions; :
19210 else
19211 cat > conftest.$ac_ext << EOF
19212 #line 19212 "configure"
19213 struct S { ~S(); };
19214 void bar();
19215 void foo()
19217 S s;
19218 bar();
19221 old_CXXFLAGS="$CXXFLAGS"
19222 CXXFLAGS=-S
19223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19224 (eval $ac_compile) 2>&5
19225 ac_status=$?
19226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19227 test $ac_status = 0; }; then
19228 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
19229 enable_sjlj_exceptions=yes
19230 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
19231 enable_sjlj_exceptions=no
19232 elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then
19233 # ARM EH ABI.
19234 enable_sjlj_exceptions=no
19237 CXXFLAGS="$old_CXXFLAGS"
19238 rm -f conftest*
19241 if test x$enable_sjlj_exceptions = xyes; then
19243 $as_echo "#define SJLJ_EXCEPTIONS 1" >>confdefs.h
19245 ac_exception_model_name=sjlj
19246 elif test x$enable_sjlj_exceptions = xno; then
19247 ac_exception_model_name="call frame"
19248 else
19249 as_fn_error "unable to detect exception model" "$LINENO" 5
19251 ac_ext=c
19252 ac_cpp='$CPP $CPPFLAGS'
19253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_exception_model_name" >&5
19258 $as_echo "$ac_exception_model_name" >&6; }
19260 # If we are non using SJLJ exceptions, and this host does not have support
19261 # for unwinding from a signal handler, enable checked dereferences and divides.
19262 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
19263 CHECKREFSPEC=-fcheck-references
19264 DIVIDESPEC=-fuse-divide-subroutine
19265 EXCEPTIONSPEC=
19268 # See if the user wants to disable java.net. This is the mildly
19269 # ugly way that we admit that target-side configuration sucks.
19270 # Check whether --enable-java-net was given.
19271 if test "${enable_java_net+set}" = set; then :
19272 enableval=$enable_java_net;
19276 # Whether java.net is built by default can depend on the target.
19277 if test -z "$enable_java_net"; then
19278 enable_java_net=${enable_java_net_default-yes}
19280 if test "$enable_java_net" = no; then
19282 $as_echo "#define DISABLE_JAVA_NET 1" >>confdefs.h
19286 # See if the user wants to configure without libffi. Some
19287 # architectures don't support it, and default values are set in
19288 # configure.host.
19290 # Check whether --with-libffi was given.
19291 if test "${with_libffi+set}" = set; then :
19292 withval=$with_libffi; :
19293 else
19294 with_libffi=${with_libffi_default-yes}
19298 LIBFFI=
19299 LIBFFIINCS=
19300 if test "$with_libffi" != no; then
19302 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
19304 LIBFFI=../libffi/libffi_convenience.la
19305 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
19310 # See if the user wants to disable JVMPI support.
19311 # Check whether --enable-jvmpi was given.
19312 if test "${enable_jvmpi+set}" = set; then :
19313 enableval=$enable_jvmpi;
19317 if test "$enable_jvmpi" != no; then
19319 $as_echo "#define ENABLE_JVMPI 1" >>confdefs.h
19323 # If the target is an eCos system, use the appropriate eCos
19324 # I/O routines.
19325 # FIXME: this should not be a local option but a global target
19326 # system; at present there is no eCos target.
19327 TARGET_ECOS=${PROCESS-"no"}
19329 # Check whether --with-ecos was given.
19330 if test "${with_ecos+set}" = set; then :
19331 withval=$with_ecos; TARGET_ECOS="$with_ecos"
19336 case "$TARGET_ECOS" in
19337 no) case "$host" in
19338 *mingw*)
19339 PLATFORM=Win32
19340 PLATFORMNET=Win32
19341 PLATFORMH=win32.h
19343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'ld' is at least 2.13" >&5
19344 $as_echo_n "checking whether 'ld' is at least 2.13... " >&6; }
19345 LD_PROG=`$CC --print-prog-name=ld`
19346 LD_VERSION=`$LD_PROG --version`
19347 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
19348 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
19349 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
19350 LD_OK="ok"
19351 else
19352 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
19353 LD_OK="ok"
19356 if test "x$LD_OK" != x; then
19357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19358 $as_echo "yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19359 else
19360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19361 $as_echo "no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
19363 $as_echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
19365 $as_echo "#define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1" >>confdefs.h
19370 PLATFORM=Posix
19371 PLATFORMNET=Posix
19372 PLATFORMH=posix.h
19374 esac
19377 PLATFORM=Ecos
19378 PLATFORMNET=NoNet
19380 $as_echo "#define ECOS 1" >>confdefs.h
19382 PLATFORMH=posix.h
19384 esac
19386 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
19389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19390 /* end confdefs.h. */
19391 #include <stdint.h>
19393 _ACEOF
19394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19395 $EGREP "uint32_t" >/dev/null 2>&1; then :
19397 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19400 rm -f conftest*
19402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19403 /* end confdefs.h. */
19404 #include <inttypes.h>
19406 _ACEOF
19407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19408 $EGREP "uint32_t" >/dev/null 2>&1; then :
19410 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19413 rm -f conftest*
19415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19416 /* end confdefs.h. */
19417 #include <sys/types.h>
19419 _ACEOF
19420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19421 $EGREP "u_int32_t" >/dev/null 2>&1; then :
19423 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19426 rm -f conftest*
19428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19429 /* end confdefs.h. */
19430 #include <sys/config.h>
19432 _ACEOF
19433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19434 $EGREP "u_int32_t" >/dev/null 2>&1; then :
19436 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19439 rm -f conftest*
19442 if test "$PLATFORM" = Win32; then
19443 USING_WIN32_PLATFORM_TRUE=
19444 USING_WIN32_PLATFORM_FALSE='#'
19445 else
19446 USING_WIN32_PLATFORM_TRUE='#'
19447 USING_WIN32_PLATFORM_FALSE=
19450 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
19451 USING_POSIX_PLATFORM_TRUE=
19452 USING_POSIX_PLATFORM_FALSE='#'
19453 else
19454 USING_POSIX_PLATFORM_TRUE='#'
19455 USING_POSIX_PLATFORM_FALSE=
19459 case "$host" in
19460 *-darwin*) DARWIN_CRT=true ;;
19461 *) DARWIN_CRT=false ;;
19462 esac
19463 if $DARWIN_CRT; then
19464 USING_DARWIN_CRT_TRUE=
19465 USING_DARWIN_CRT_FALSE='#'
19466 else
19467 USING_DARWIN_CRT_TRUE='#'
19468 USING_DARWIN_CRT_FALSE=
19472 # This may not be defined in a non-ANS conformant embedded system.
19473 # FIXME: Should these case a runtime exception in that case?
19474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19475 /* end confdefs.h. */
19476 #include <time.h>
19478 _ACEOF
19479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19480 $EGREP "localtime" >/dev/null 2>&1; then :
19482 $as_echo "#define HAVE_LOCALTIME 1" >>confdefs.h
19485 rm -f conftest*
19488 # Create the subdirectory for natFile.cc, or the attempt
19489 # to create the link will fail.
19490 test -d java || mkdir java
19491 test -d java/io || mkdir java/io
19492 test -d gnu || mkdir gnu
19493 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
19496 # Likewise for natConcreteProcess.cc.
19497 test -d java/lang || mkdir java/lang
19498 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
19501 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
19502 test -d java/net || mkdir java/net
19503 ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
19505 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
19508 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
19509 test -d gnu/java || mkdir gnu/java
19510 test -d gnu/java/net || mkdir gnu/java/net
19511 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
19513 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
19516 # Likewise for natVMPipe.cc and natVMSelector.cc.
19517 test -d gnu/java/nio || mkdir gnu/java/nio
19518 ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
19520 ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
19523 # Likewise for natFileChannelImpl.cc
19524 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
19525 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
19528 # Likewise for natVMSecureRandom.cc
19529 test -d gnu/java/security || mkdir gnu/java/security
19530 test -d gnu/java/security/jce || mkdir gnu/java/security/jce
19531 test -d gnu/java/security/jce/prng || mkdir gnu/java/security/jce/prng
19532 ac_config_links="$ac_config_links gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc"
19535 case "${host}" in
19536 *mingw*)
19537 SYSTEMSPEC="-lgdi32 -lws2_32"
19538 if test "${with_win32_nlsapi}" = "unicows"; then
19539 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
19542 *-*-darwin[912]*)
19543 SYSTEMSPEC="-allow_stack_execute"
19546 SYSTEMSPEC=
19548 esac
19552 # Check whether --with-system-zlib was given.
19553 if test "${with_system_zlib+set}" = set; then :
19554 withval=$with_system_zlib;
19557 ZLIBSPEC=
19559 ZLIBTESTSPEC=
19562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19563 $as_echo_n "checking for X... " >&6; }
19566 # Check whether --with-x was given.
19567 if test "${with_x+set}" = set; then :
19568 withval=$with_x;
19571 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19572 if test "x$with_x" = xno; then
19573 # The user explicitly disabled X.
19574 have_x=disabled
19575 else
19576 case $x_includes,$x_libraries in #(
19577 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
19578 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
19579 $as_echo_n "(cached) " >&6
19580 else
19581 # One or both of the vars are not set, and there is no cached value.
19582 ac_x_includes=no ac_x_libraries=no
19583 rm -f -r conftest.dir
19584 if mkdir conftest.dir; then
19585 cd conftest.dir
19586 cat >Imakefile <<'_ACEOF'
19587 incroot:
19588 @echo incroot='${INCROOT}'
19589 usrlibdir:
19590 @echo usrlibdir='${USRLIBDIR}'
19591 libdir:
19592 @echo libdir='${LIBDIR}'
19593 _ACEOF
19594 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19595 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19596 for ac_var in incroot usrlibdir libdir; do
19597 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19598 done
19599 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19600 for ac_extension in a so sl dylib la dll; do
19601 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19602 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19603 ac_im_usrlibdir=$ac_im_libdir; break
19605 done
19606 # Screen out bogus values from the imake configuration. They are
19607 # bogus both because they are the default anyway, and because
19608 # using them would break gcc on systems where it needs fixed includes.
19609 case $ac_im_incroot in
19610 /usr/include) ac_x_includes= ;;
19611 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19612 esac
19613 case $ac_im_usrlibdir in
19614 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19615 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19616 esac
19618 cd ..
19619 rm -f -r conftest.dir
19622 # Standard set of common directories for X headers.
19623 # Check X11 before X11Rn because it is often a symlink to the current release.
19624 ac_x_header_dirs='
19625 /usr/X11/include
19626 /usr/X11R7/include
19627 /usr/X11R6/include
19628 /usr/X11R5/include
19629 /usr/X11R4/include
19631 /usr/include/X11
19632 /usr/include/X11R7
19633 /usr/include/X11R6
19634 /usr/include/X11R5
19635 /usr/include/X11R4
19637 /usr/local/X11/include
19638 /usr/local/X11R7/include
19639 /usr/local/X11R6/include
19640 /usr/local/X11R5/include
19641 /usr/local/X11R4/include
19643 /usr/local/include/X11
19644 /usr/local/include/X11R7
19645 /usr/local/include/X11R6
19646 /usr/local/include/X11R5
19647 /usr/local/include/X11R4
19649 /usr/X386/include
19650 /usr/x386/include
19651 /usr/XFree86/include/X11
19653 /usr/include
19654 /usr/local/include
19655 /usr/unsupported/include
19656 /usr/athena/include
19657 /usr/local/x11r5/include
19658 /usr/lpp/Xamples/include
19660 /usr/openwin/include
19661 /usr/openwin/share/include'
19663 if test "$ac_x_includes" = no; then
19664 # Guess where to find include files, by looking for Xlib.h.
19665 # First, try using that file with no special directory specified.
19666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19667 /* end confdefs.h. */
19668 #include <X11/Xlib.h>
19669 _ACEOF
19670 if ac_fn_c_try_cpp "$LINENO"; then :
19671 # We can compile using X headers with no special include directory.
19672 ac_x_includes=
19673 else
19674 for ac_dir in $ac_x_header_dirs; do
19675 if test -r "$ac_dir/X11/Xlib.h"; then
19676 ac_x_includes=$ac_dir
19677 break
19679 done
19681 rm -f conftest.err conftest.$ac_ext
19682 fi # $ac_x_includes = no
19684 if test "$ac_x_libraries" = no; then
19685 # Check for the libraries.
19686 # See if we find them without any special options.
19687 # Don't add to $LIBS permanently.
19688 ac_save_LIBS=$LIBS
19689 LIBS="-lX11 $LIBS"
19690 if test x$gcc_no_link = xyes; then
19691 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19694 /* end confdefs.h. */
19695 #include <X11/Xlib.h>
19697 main ()
19699 XrmInitialize ()
19701 return 0;
19703 _ACEOF
19704 if ac_fn_c_try_link "$LINENO"; then :
19705 LIBS=$ac_save_LIBS
19706 # We can link X programs with no special library path.
19707 ac_x_libraries=
19708 else
19709 LIBS=$ac_save_LIBS
19710 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19712 # Don't even attempt the hair of trying to link an X program!
19713 for ac_extension in a so sl dylib la dll; do
19714 if test -r "$ac_dir/libX11.$ac_extension"; then
19715 ac_x_libraries=$ac_dir
19716 break 2
19718 done
19719 done
19721 rm -f core conftest.err conftest.$ac_objext \
19722 conftest$ac_exeext conftest.$ac_ext
19723 fi # $ac_x_libraries = no
19725 case $ac_x_includes,$ac_x_libraries in #(
19726 no,* | *,no | *\'*)
19727 # Didn't find X, or a directory has "'" in its name.
19728 ac_cv_have_x="have_x=no";; #(
19730 # Record where we found X for the cache.
19731 ac_cv_have_x="have_x=yes\
19732 ac_x_includes='$ac_x_includes'\
19733 ac_x_libraries='$ac_x_libraries'"
19734 esac
19736 ;; #(
19737 *) have_x=yes;;
19738 esac
19739 eval "$ac_cv_have_x"
19740 fi # $with_x != no
19742 if test "$have_x" != yes; then
19743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19744 $as_echo "$have_x" >&6; }
19745 no_x=yes
19746 else
19747 # If each of the values was on the command line, it overrides each guess.
19748 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19749 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19750 # Update the cache value to reflect the command line values.
19751 ac_cv_have_x="have_x=yes\
19752 ac_x_includes='$x_includes'\
19753 ac_x_libraries='$x_libraries'"
19754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19755 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
19758 if test "$no_x" = yes; then
19759 # Not all programs may use this symbol, but it does not hurt to define it.
19761 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
19763 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19764 else
19765 if test -n "$x_includes"; then
19766 X_CFLAGS="$X_CFLAGS -I$x_includes"
19769 # It would also be nice to do this for all -L options, not just this one.
19770 if test -n "$x_libraries"; then
19771 X_LIBS="$X_LIBS -L$x_libraries"
19772 # For Solaris; some versions of Sun CC require a space after -R and
19773 # others require no space. Words are not sufficient . . . .
19774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
19775 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
19776 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19777 ac_xsave_c_werror_flag=$ac_c_werror_flag
19778 ac_c_werror_flag=yes
19779 if test x$gcc_no_link = xyes; then
19780 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19783 /* end confdefs.h. */
19786 main ()
19790 return 0;
19792 _ACEOF
19793 if ac_fn_c_try_link "$LINENO"; then :
19794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19795 $as_echo "no" >&6; }
19796 X_LIBS="$X_LIBS -R$x_libraries"
19797 else
19798 LIBS="$ac_xsave_LIBS -R $x_libraries"
19799 if test x$gcc_no_link = xyes; then
19800 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19803 /* end confdefs.h. */
19806 main ()
19810 return 0;
19812 _ACEOF
19813 if ac_fn_c_try_link "$LINENO"; then :
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19815 $as_echo "yes" >&6; }
19816 X_LIBS="$X_LIBS -R $x_libraries"
19817 else
19818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
19819 $as_echo "neither works" >&6; }
19821 rm -f core conftest.err conftest.$ac_objext \
19822 conftest$ac_exeext conftest.$ac_ext
19824 rm -f core conftest.err conftest.$ac_objext \
19825 conftest$ac_exeext conftest.$ac_ext
19826 ac_c_werror_flag=$ac_xsave_c_werror_flag
19827 LIBS=$ac_xsave_LIBS
19830 # Check for system-dependent libraries X programs must link with.
19831 # Do this before checking for the system-independent R6 libraries
19832 # (-lICE), since we may need -lsocket or whatever for X linking.
19834 if test "$ISC" = yes; then
19835 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19836 else
19837 # Martyn Johnson says this is needed for Ultrix, if the X
19838 # libraries were built with DECnet support. And Karl Berry says
19839 # the Alpha needs dnet_stub (dnet does not exist).
19840 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19841 if test x$gcc_no_link = xyes; then
19842 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19845 /* end confdefs.h. */
19847 /* Override any GCC internal prototype to avoid an error.
19848 Use char because int might match the return type of a GCC
19849 builtin and then its argument prototype would still apply. */
19850 #ifdef __cplusplus
19851 extern "C"
19852 #endif
19853 char XOpenDisplay ();
19855 main ()
19857 return XOpenDisplay ();
19859 return 0;
19861 _ACEOF
19862 if ac_fn_c_try_link "$LINENO"; then :
19864 else
19865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
19866 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
19867 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
19868 $as_echo_n "(cached) " >&6
19869 else
19870 ac_check_lib_save_LIBS=$LIBS
19871 LIBS="-ldnet $LIBS"
19872 if test x$gcc_no_link = xyes; then
19873 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19876 /* end confdefs.h. */
19878 /* Override any GCC internal prototype to avoid an error.
19879 Use char because int might match the return type of a GCC
19880 builtin and then its argument prototype would still apply. */
19881 #ifdef __cplusplus
19882 extern "C"
19883 #endif
19884 char dnet_ntoa ();
19886 main ()
19888 return dnet_ntoa ();
19890 return 0;
19892 _ACEOF
19893 if ac_fn_c_try_link "$LINENO"; then :
19894 ac_cv_lib_dnet_dnet_ntoa=yes
19895 else
19896 ac_cv_lib_dnet_dnet_ntoa=no
19898 rm -f core conftest.err conftest.$ac_objext \
19899 conftest$ac_exeext conftest.$ac_ext
19900 LIBS=$ac_check_lib_save_LIBS
19902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19903 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19904 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
19905 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19908 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
19910 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
19911 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
19912 $as_echo_n "(cached) " >&6
19913 else
19914 ac_check_lib_save_LIBS=$LIBS
19915 LIBS="-ldnet_stub $LIBS"
19916 if test x$gcc_no_link = xyes; then
19917 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19920 /* end confdefs.h. */
19922 /* Override any GCC internal prototype to avoid an error.
19923 Use char because int might match the return type of a GCC
19924 builtin and then its argument prototype would still apply. */
19925 #ifdef __cplusplus
19926 extern "C"
19927 #endif
19928 char dnet_ntoa ();
19930 main ()
19932 return dnet_ntoa ();
19934 return 0;
19936 _ACEOF
19937 if ac_fn_c_try_link "$LINENO"; then :
19938 ac_cv_lib_dnet_stub_dnet_ntoa=yes
19939 else
19940 ac_cv_lib_dnet_stub_dnet_ntoa=no
19942 rm -f core conftest.err conftest.$ac_objext \
19943 conftest$ac_exeext conftest.$ac_ext
19944 LIBS=$ac_check_lib_save_LIBS
19946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19947 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19948 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
19949 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19954 rm -f core conftest.err conftest.$ac_objext \
19955 conftest$ac_exeext conftest.$ac_ext
19956 LIBS="$ac_xsave_LIBS"
19958 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19959 # to get the SysV transport functions.
19960 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19961 # needs -lnsl.
19962 # The nsl library prevents programs from opening the X display
19963 # on Irix 5.2, according to T.E. Dickey.
19964 # The functions gethostbyname, getservbyname, and inet_addr are
19965 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19966 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19967 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
19971 if test $ac_cv_func_gethostbyname = no; then
19972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19973 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19974 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
19975 $as_echo_n "(cached) " >&6
19976 else
19977 ac_check_lib_save_LIBS=$LIBS
19978 LIBS="-lnsl $LIBS"
19979 if test x$gcc_no_link = xyes; then
19980 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19983 /* end confdefs.h. */
19985 /* Override any GCC internal prototype to avoid an error.
19986 Use char because int might match the return type of a GCC
19987 builtin and then its argument prototype would still apply. */
19988 #ifdef __cplusplus
19989 extern "C"
19990 #endif
19991 char gethostbyname ();
19993 main ()
19995 return gethostbyname ();
19997 return 0;
19999 _ACEOF
20000 if ac_fn_c_try_link "$LINENO"; then :
20001 ac_cv_lib_nsl_gethostbyname=yes
20002 else
20003 ac_cv_lib_nsl_gethostbyname=no
20005 rm -f core conftest.err conftest.$ac_objext \
20006 conftest$ac_exeext conftest.$ac_ext
20007 LIBS=$ac_check_lib_save_LIBS
20009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20010 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20011 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
20012 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20015 if test $ac_cv_lib_nsl_gethostbyname = no; then
20016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20017 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20018 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
20019 $as_echo_n "(cached) " >&6
20020 else
20021 ac_check_lib_save_LIBS=$LIBS
20022 LIBS="-lbsd $LIBS"
20023 if test x$gcc_no_link = xyes; then
20024 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20027 /* end confdefs.h. */
20029 /* Override any GCC internal prototype to avoid an error.
20030 Use char because int might match the return type of a GCC
20031 builtin and then its argument prototype would still apply. */
20032 #ifdef __cplusplus
20033 extern "C"
20034 #endif
20035 char gethostbyname ();
20037 main ()
20039 return gethostbyname ();
20041 return 0;
20043 _ACEOF
20044 if ac_fn_c_try_link "$LINENO"; then :
20045 ac_cv_lib_bsd_gethostbyname=yes
20046 else
20047 ac_cv_lib_bsd_gethostbyname=no
20049 rm -f core conftest.err conftest.$ac_objext \
20050 conftest$ac_exeext conftest.$ac_ext
20051 LIBS=$ac_check_lib_save_LIBS
20053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
20054 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
20055 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
20056 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20062 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20063 # socket/setsockopt and other routines are undefined under SCO ODT
20064 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20065 # on later versions), says Simon Leinen: it contains gethostby*
20066 # variants that don't use the name server (or something). -lsocket
20067 # must be given before -lnsl if both are needed. We assume that
20068 # if connect needs -lnsl, so does gethostbyname.
20069 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
20070 if test "x$ac_cv_func_connect" = x""yes; then :
20074 if test $ac_cv_func_connect = no; then
20075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
20076 $as_echo_n "checking for connect in -lsocket... " >&6; }
20077 if test "${ac_cv_lib_socket_connect+set}" = set; then :
20078 $as_echo_n "(cached) " >&6
20079 else
20080 ac_check_lib_save_LIBS=$LIBS
20081 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20082 if test x$gcc_no_link = xyes; then
20083 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20086 /* end confdefs.h. */
20088 /* Override any GCC internal prototype to avoid an error.
20089 Use char because int might match the return type of a GCC
20090 builtin and then its argument prototype would still apply. */
20091 #ifdef __cplusplus
20092 extern "C"
20093 #endif
20094 char connect ();
20096 main ()
20098 return connect ();
20100 return 0;
20102 _ACEOF
20103 if ac_fn_c_try_link "$LINENO"; then :
20104 ac_cv_lib_socket_connect=yes
20105 else
20106 ac_cv_lib_socket_connect=no
20108 rm -f core conftest.err conftest.$ac_objext \
20109 conftest$ac_exeext conftest.$ac_ext
20110 LIBS=$ac_check_lib_save_LIBS
20112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
20113 $as_echo "$ac_cv_lib_socket_connect" >&6; }
20114 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
20115 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20120 # Guillermo Gomez says -lposix is necessary on A/UX.
20121 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
20122 if test "x$ac_cv_func_remove" = x""yes; then :
20126 if test $ac_cv_func_remove = no; then
20127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
20128 $as_echo_n "checking for remove in -lposix... " >&6; }
20129 if test "${ac_cv_lib_posix_remove+set}" = set; then :
20130 $as_echo_n "(cached) " >&6
20131 else
20132 ac_check_lib_save_LIBS=$LIBS
20133 LIBS="-lposix $LIBS"
20134 if test x$gcc_no_link = xyes; then
20135 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20138 /* end confdefs.h. */
20140 /* Override any GCC internal prototype to avoid an error.
20141 Use char because int might match the return type of a GCC
20142 builtin and then its argument prototype would still apply. */
20143 #ifdef __cplusplus
20144 extern "C"
20145 #endif
20146 char remove ();
20148 main ()
20150 return remove ();
20152 return 0;
20154 _ACEOF
20155 if ac_fn_c_try_link "$LINENO"; then :
20156 ac_cv_lib_posix_remove=yes
20157 else
20158 ac_cv_lib_posix_remove=no
20160 rm -f core conftest.err conftest.$ac_objext \
20161 conftest$ac_exeext conftest.$ac_ext
20162 LIBS=$ac_check_lib_save_LIBS
20164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
20165 $as_echo "$ac_cv_lib_posix_remove" >&6; }
20166 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
20167 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20172 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20173 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20174 if test "x$ac_cv_func_shmat" = x""yes; then :
20178 if test $ac_cv_func_shmat = no; then
20179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
20180 $as_echo_n "checking for shmat in -lipc... " >&6; }
20181 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
20182 $as_echo_n "(cached) " >&6
20183 else
20184 ac_check_lib_save_LIBS=$LIBS
20185 LIBS="-lipc $LIBS"
20186 if test x$gcc_no_link = xyes; then
20187 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20190 /* end confdefs.h. */
20192 /* Override any GCC internal prototype to avoid an error.
20193 Use char because int might match the return type of a GCC
20194 builtin and then its argument prototype would still apply. */
20195 #ifdef __cplusplus
20196 extern "C"
20197 #endif
20198 char shmat ();
20200 main ()
20202 return shmat ();
20204 return 0;
20206 _ACEOF
20207 if ac_fn_c_try_link "$LINENO"; then :
20208 ac_cv_lib_ipc_shmat=yes
20209 else
20210 ac_cv_lib_ipc_shmat=no
20212 rm -f core conftest.err conftest.$ac_objext \
20213 conftest$ac_exeext conftest.$ac_ext
20214 LIBS=$ac_check_lib_save_LIBS
20216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
20217 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20218 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
20219 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20225 # Check for libraries that X11R6 Xt/Xaw programs need.
20226 ac_save_LDFLAGS=$LDFLAGS
20227 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20228 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20229 # check for ICE first), but we must link in the order -lSM -lICE or
20230 # we get undefined symbols. So assume we have SM if we have ICE.
20231 # These have to be linked with before -lX11, unlike the other
20232 # libraries we check for below, so use a different variable.
20233 # John Interrante, Karl Berry
20234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
20235 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20236 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
20237 $as_echo_n "(cached) " >&6
20238 else
20239 ac_check_lib_save_LIBS=$LIBS
20240 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20241 if test x$gcc_no_link = xyes; then
20242 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20245 /* end confdefs.h. */
20247 /* Override any GCC internal prototype to avoid an error.
20248 Use char because int might match the return type of a GCC
20249 builtin and then its argument prototype would still apply. */
20250 #ifdef __cplusplus
20251 extern "C"
20252 #endif
20253 char IceConnectionNumber ();
20255 main ()
20257 return IceConnectionNumber ();
20259 return 0;
20261 _ACEOF
20262 if ac_fn_c_try_link "$LINENO"; then :
20263 ac_cv_lib_ICE_IceConnectionNumber=yes
20264 else
20265 ac_cv_lib_ICE_IceConnectionNumber=no
20267 rm -f core conftest.err conftest.$ac_objext \
20268 conftest$ac_exeext conftest.$ac_ext
20269 LIBS=$ac_check_lib_save_LIBS
20271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20272 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20273 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
20274 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20277 LDFLAGS=$ac_save_LDFLAGS
20282 # FIXME: this should be _libs on some hosts.
20283 libsubdir=.libs
20285 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20287 LIBSTDCXXSPEC=
20288 # extra LD Flags which are required for targets
20289 case "${host}" in
20290 *-*-darwin[0-7].*)
20291 # For now we have to disable it on darwin[8-9] because it slows down
20292 # the linking phase. A possible bug in ld?
20293 # on Darwin -single_module speeds up loading of the dynamic libraries.
20294 extra_ldflags_libjava=-Wl,-single_module
20296 arm*linux*eabi)
20297 # Some of the ARM unwinder code is actually in libstdc++. We
20298 # could in principle replicate it in libgcj, but it's better to
20299 # have a dependency on libstdc++.
20300 extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20301 LIBSTDCXXSPEC=-lstdc++
20302 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20304 *-*-cygwin)
20305 extra_ldflags_libjava=-liconv
20307 esac
20314 # Allow the GC to be disabled. Can be useful when debugging.
20315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for garbage collector to use" >&5
20316 $as_echo_n "checking for garbage collector to use... " >&6; }
20317 # Check whether --enable-java-gc was given.
20318 if test "${enable_java_gc+set}" = set; then :
20319 enableval=$enable_java_gc; GC=$enableval
20320 else
20321 GC=boehm
20324 GCLIBS=
20325 GCINCS=
20326 GCDEPS=
20327 GCSPEC=
20328 JC1GCSPEC=
20329 GCTESTSPEC=
20330 case "$GC" in
20331 boehm)
20332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: boehm" >&5
20333 $as_echo "boehm" >&6; }
20334 GCLIBS=../boehm-gc/libgcjgc_convenience.la
20335 JC1GCSPEC='-fuse-boehm-gc'
20336 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20337 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20338 GCOBJS=boehm.lo
20339 GCHDR=boehm-gc.h
20340 # The POSIX thread support needs to know this.
20342 $as_echo "#define HAVE_BOEHM_GC 1" >>confdefs.h
20346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
20347 $as_echo "none" >&6; }
20348 GCHDR=no-gc.h
20351 as_fn_error "unrecognized collector \"$GC\"" "$LINENO" 5
20353 esac
20360 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20362 if test "$GC" = boehm; then
20363 USING_BOEHMGC_TRUE=
20364 USING_BOEHMGC_FALSE='#'
20365 else
20366 USING_BOEHMGC_TRUE='#'
20367 USING_BOEHMGC_FALSE=
20370 if test "$GC" = no; then
20371 USING_NOGC_TRUE=
20372 USING_NOGC_FALSE='#'
20373 else
20374 USING_NOGC_TRUE='#'
20375 USING_NOGC_FALSE=
20380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
20381 $as_echo_n "checking for thread model used by GCC... " >&6; }
20382 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
20384 $as_echo "$THREADS" >&6; }
20386 case "$THREADS" in
20387 no | none | single)
20388 THREADS=none
20390 aix | posix | posix95 | pthreads)
20391 THREADS=posix
20392 case "$host" in
20393 *-*-linux*)
20395 $as_echo "#define LINUX_THREADS 1" >>confdefs.h
20398 esac
20400 win32)
20402 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
20403 as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
20406 as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
20408 esac
20410 THREADCXXFLAGS=
20411 THREADLDFLAGS=
20412 THREADLIBS=
20413 THREADINCS=
20414 THREADDEPS=
20415 THREADH=
20416 THREADSPEC=
20417 THREADSTARTFILESPEC=
20418 case "$THREADS" in
20419 posix)
20420 case "$host" in
20421 *-*-cygwin*)
20422 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
20424 *-*-freebsd[1234]*)
20425 # Before FreeBSD 5, it didn't have -lpthread (or any library which
20426 # merely adds pthread_* functions) but it does have a -pthread switch
20427 # which is required at link-time to select -lc_r *instead* of -lc.
20428 THREADLDFLAGS=-pthread
20429 # Don't set THREADSPEC here as might be expected since -pthread is
20430 # not processed when found within a spec file, it must come from
20431 # the command line. For now, the user must provide the -pthread
20432 # switch to link code compiled with gcj. In future, consider adding
20433 # support for weak references to pthread_* functions ala gthr.h API.
20434 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20436 *-*-freebsd*)
20437 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20438 # systems which support threads and -lpthread.
20439 THREADLDFLAGS=-pthread
20440 THREADSPEC=-lpthread
20442 alpha*-dec-osf* | hppa*-hp-hpux*)
20443 THREADCXXFLAGS=-pthread
20444 # boehm-gc needs some functions from librt, so link that too.
20445 THREADLIBS='-lpthread -lrt'
20446 THREADSPEC='-lpthread -lrt'
20449 THREADLIBS=-lpthread
20450 THREADSPEC=-lpthread
20452 esac
20453 THREADH=posix-threads.h
20454 # MIT pthreads doesn't seem to have the mutexattr functions.
20455 # But for now we don't check for it. We just assume you aren't
20456 # using MIT pthreads.
20458 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20461 # If we're using the Boehm GC, then we happen to know that it
20462 # defines _REENTRANT, so we don't bother. Eww.
20463 if test "$GC" != boehm; then
20465 $as_echo "#define _REENTRANT 1" >>confdefs.h
20469 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
20473 win32)
20474 THREADH=win32-threads.h
20475 THREADCXXFLAGS=-mthreads
20476 # We need thread-safe exception handling so _CRT_MT should be set to 1.
20477 # But we do not want the executables created to be dependent on
20478 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20479 # exception handling contexts. The following kludge achieves this effect
20480 # and causes a dummy __mingwthr_key_dtor() to be linked in from
20481 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
20482 # A workaround is to explicitly use -mthreads while linking Java programs.
20483 # See PR libgcj/28263.
20485 # FIXME: In Java we are able to detect thread death at the end of
20486 # Thread.run() so we should be able to clean up the exception handling
20487 # contexts ourselves.
20488 THREADSTARTFILESPEC='crtmt%O%s'
20491 none)
20492 THREADH=no-threads.h
20494 esac
20495 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20504 if test "$THREADS" = posix; then
20505 USING_POSIX_THREADS_TRUE=
20506 USING_POSIX_THREADS_FALSE='#'
20507 else
20508 USING_POSIX_THREADS_TRUE='#'
20509 USING_POSIX_THREADS_FALSE=
20512 if test "$THREADS" = win32; then
20513 USING_WIN32_THREADS_TRUE=
20514 USING_WIN32_THREADS_FALSE='#'
20515 else
20516 USING_WIN32_THREADS_TRUE='#'
20517 USING_WIN32_THREADS_FALSE=
20520 if test "$THREADS" = none; then
20521 USING_NO_THREADS_TRUE=
20522 USING_NO_THREADS_FALSE='#'
20523 else
20524 USING_NO_THREADS_TRUE='#'
20525 USING_NO_THREADS_FALSE=
20528 if test "$enable_shared" != yes; then
20529 use_libgcj_bc=no
20531 if test "$use_libgcj_bc" = yes; then
20532 USE_LIBGCJ_BC_TRUE=
20533 USE_LIBGCJ_BC_FALSE='#'
20534 else
20535 USE_LIBGCJ_BC_TRUE='#'
20536 USE_LIBGCJ_BC_FALSE=
20540 if test -d sysdep; then true; else mkdir sysdep; fi
20541 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20543 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20545 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20548 LIBGCJ_SPEC_LGCJ=-lgcj
20549 LIBGCJ_SPEC_LGCJ_BC=-lgcj_bc
20550 if test x"$libgcj_spec_lgcj_override" != x ; then
20551 LIBGCJ_SPEC_LGCJ=$libgcj_spec_lgcj_override
20553 if test x"$libgcj_spec_lgcj_bc_override" != x ; then
20554 LIBGCJ_SPEC_LGCJ_BC=$libgcj_spec_lgcj_bc_override
20556 LIBGCJ_SPEC="%{s-bc-abi:} $LIBGCJ_SPEC_LGCJ"
20557 if test "$use_libgcj_bc" = yes; then
20558 LIBGCJ_SPEC="%{static|static-libgcj|!s-bc-abi:$LIBGCJ_SPEC_LGCJ;:$LIBGCJ_SPEC_LGCJ_BC}"
20559 LIBGCJ_BC_SPEC="%{findirect-dispatch:-fPIC}"
20564 HASH_SYNC_SPEC=
20565 # Hash synchronization is only useful with posix threads right now.
20566 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20567 HASH_SYNC_SPEC=-fhash-synchronization
20569 $as_echo "#define JV_HASH_SYNCHRONIZATION 1" >>confdefs.h
20574 if test "$GCC" = yes; then
20575 USING_GCC_TRUE=
20576 USING_GCC_FALSE='#'
20577 else
20578 USING_GCC_TRUE='#'
20579 USING_GCC_FALSE=
20583 # We're in the tree with gcc, and need to include some of its headers.
20584 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
20586 if test "x${with_newlib}" = "xyes"; then
20587 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
20588 # may not work correctly, because the compiler may not be able to
20589 # link executables.
20591 # We assume newlib. This lets us hard-code the functions we know
20592 # we'll have.
20594 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20597 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
20600 $as_echo "#define HAVE_TIME 1" >>confdefs.h
20603 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20606 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
20609 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
20611 # This is only for POSIX threads.
20613 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20616 # Assume we do not have getuid and friends.
20618 $as_echo "#define NO_GETUID 1" >>confdefs.h
20620 PLATFORMNET=NoNet
20621 else
20622 for ac_func in strerror_r select fstat open fsync sleep opendir \
20623 localtime_r getpwuid_r getcwd \
20624 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20625 nl_langinfo setlocale \
20626 inet_pton uname inet_ntoa \
20627 getrlimit sigaction ftruncate mmap \
20628 getifaddrs
20629 do :
20630 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20631 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20632 eval as_val=\$$as_ac_var
20633 if test "x$as_val" = x""yes; then :
20634 cat >>confdefs.h <<_ACEOF
20635 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20636 _ACEOF
20639 done
20641 for ac_func in inet_aton inet_addr
20642 do :
20643 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20644 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20645 eval as_val=\$$as_ac_var
20646 if test "x$as_val" = x""yes; then :
20647 cat >>confdefs.h <<_ACEOF
20648 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20649 _ACEOF
20650 break
20652 done
20654 for ac_header in unistd.h dlfcn.h sys/resource.h
20655 do :
20656 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20657 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20658 eval as_val=\$$as_ac_Header
20659 if test "x$as_val" = x""yes; then :
20660 cat >>confdefs.h <<_ACEOF
20661 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20662 _ACEOF
20666 done
20668 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
20669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5
20670 $as_echo_n "checking for dladdr in -ldl... " >&6; }
20671 if test "${ac_cv_lib_dl_dladdr+set}" = set; then :
20672 $as_echo_n "(cached) " >&6
20673 else
20674 ac_check_lib_save_LIBS=$LIBS
20675 LIBS="-ldl $LIBS"
20676 if test x$gcc_no_link = xyes; then
20677 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20680 /* end confdefs.h. */
20682 /* Override any GCC internal prototype to avoid an error.
20683 Use char because int might match the return type of a GCC
20684 builtin and then its argument prototype would still apply. */
20685 #ifdef __cplusplus
20686 extern "C"
20687 #endif
20688 char dladdr ();
20690 main ()
20692 return dladdr ();
20694 return 0;
20696 _ACEOF
20697 if ac_fn_c_try_link "$LINENO"; then :
20698 ac_cv_lib_dl_dladdr=yes
20699 else
20700 ac_cv_lib_dl_dladdr=no
20702 rm -f core conftest.err conftest.$ac_objext \
20703 conftest$ac_exeext conftest.$ac_ext
20704 LIBS=$ac_check_lib_save_LIBS
20706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
20707 $as_echo "$ac_cv_lib_dl_dladdr" >&6; }
20708 if test "x$ac_cv_lib_dl_dladdr" = x""yes; then :
20711 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
20713 else
20715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldld" >&5
20716 $as_echo_n "checking for dladdr in -ldld... " >&6; }
20717 if test "${ac_cv_lib_dld_dladdr+set}" = set; then :
20718 $as_echo_n "(cached) " >&6
20719 else
20720 ac_check_lib_save_LIBS=$LIBS
20721 LIBS="-ldld $LIBS"
20722 if test x$gcc_no_link = xyes; then
20723 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20726 /* end confdefs.h. */
20728 /* Override any GCC internal prototype to avoid an error.
20729 Use char because int might match the return type of a GCC
20730 builtin and then its argument prototype would still apply. */
20731 #ifdef __cplusplus
20732 extern "C"
20733 #endif
20734 char dladdr ();
20736 main ()
20738 return dladdr ();
20740 return 0;
20742 _ACEOF
20743 if ac_fn_c_try_link "$LINENO"; then :
20744 ac_cv_lib_dld_dladdr=yes
20745 else
20746 ac_cv_lib_dld_dladdr=no
20748 rm -f core conftest.err conftest.$ac_objext \
20749 conftest$ac_exeext conftest.$ac_ext
20750 LIBS=$ac_check_lib_save_LIBS
20752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dladdr" >&5
20753 $as_echo "$ac_cv_lib_dld_dladdr" >&6; }
20754 if test "x$ac_cv_lib_dld_dladdr" = x""yes; then :
20757 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
20764 if test x"$cross_compiling" = x"no"; then
20765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/exe" >&5
20766 $as_echo_n "checking for /proc/self/exe... " >&6; }
20767 if test "${ac_cv_file__proc_self_exe+set}" = set; then :
20768 $as_echo_n "(cached) " >&6
20769 else
20770 test "$cross_compiling" = yes &&
20771 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
20772 if test -r "/proc/self/exe"; then
20773 ac_cv_file__proc_self_exe=yes
20774 else
20775 ac_cv_file__proc_self_exe=no
20778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_exe" >&5
20779 $as_echo "$ac_cv_file__proc_self_exe" >&6; }
20780 if test "x$ac_cv_file__proc_self_exe" = x""yes; then :
20782 cat >>confdefs.h <<_ACEOF
20783 #define HAVE__PROC_SELF_EXE 1
20784 _ACEOF
20787 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
20791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/maps" >&5
20792 $as_echo_n "checking for /proc/self/maps... " >&6; }
20793 if test "${ac_cv_file__proc_self_maps+set}" = set; then :
20794 $as_echo_n "(cached) " >&6
20795 else
20796 test "$cross_compiling" = yes &&
20797 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
20798 if test -r "/proc/self/maps"; then
20799 ac_cv_file__proc_self_maps=yes
20800 else
20801 ac_cv_file__proc_self_maps=no
20804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_maps" >&5
20805 $as_echo "$ac_cv_file__proc_self_maps" >&6; }
20806 if test "x$ac_cv_file__proc_self_maps" = x""yes; then :
20808 cat >>confdefs.h <<_ACEOF
20809 #define HAVE__PROC_SELF_MAPS 1
20810 _ACEOF
20813 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
20817 else
20818 case $host in
20819 *-linux*)
20821 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
20824 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
20827 esac
20831 if test "X$prefix" = "XNONE"; then
20832 acl_final_prefix="$ac_default_prefix"
20833 else
20834 acl_final_prefix="$prefix"
20836 if test "X$exec_prefix" = "XNONE"; then
20837 acl_final_exec_prefix='${prefix}'
20838 else
20839 acl_final_exec_prefix="$exec_prefix"
20841 acl_save_prefix="$prefix"
20842 prefix="$acl_final_prefix"
20843 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
20844 prefix="$acl_save_prefix"
20847 # Check whether --with-gnu-ld was given.
20848 if test "${with_gnu_ld+set}" = set; then :
20849 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20850 else
20851 with_gnu_ld=no
20854 # Prepare PATH_SEPARATOR.
20855 # The user is always right.
20856 if test "${PATH_SEPARATOR+set}" != set; then
20857 echo "#! /bin/sh" >conf$$.sh
20858 echo "exit 0" >>conf$$.sh
20859 chmod +x conf$$.sh
20860 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20861 PATH_SEPARATOR=';'
20862 else
20863 PATH_SEPARATOR=:
20865 rm -f conf$$.sh
20867 ac_prog=ld
20868 if test "$GCC" = yes; then
20869 # Check if gcc -print-prog-name=ld gives a path.
20870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
20871 $as_echo_n "checking for ld used by GCC... " >&6; }
20872 case $host in
20873 *-*-mingw*)
20874 # gcc leaves a trailing carriage return which upsets mingw
20875 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20877 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20878 esac
20879 case $ac_prog in
20880 # Accept absolute paths.
20881 [\\/]* | [A-Za-z]:[\\/]*)
20882 re_direlt='/[^/][^/]*/\.\./'
20883 # Canonicalize the path of ld
20884 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
20885 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
20886 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
20887 done
20888 test -z "$LD" && LD="$ac_prog"
20891 # If it fails, then pretend we aren't using GCC.
20892 ac_prog=ld
20895 # If it is relative, then search for the first ld in PATH.
20896 with_gnu_ld=unknown
20898 esac
20899 elif test "$with_gnu_ld" = yes; then
20900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20901 $as_echo_n "checking for GNU ld... " >&6; }
20902 else
20903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20904 $as_echo_n "checking for non-GNU ld... " >&6; }
20906 if test "${acl_cv_path_LD+set}" = set; then :
20907 $as_echo_n "(cached) " >&6
20908 else
20909 if test -z "$LD"; then
20910 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
20911 for ac_dir in $PATH; do
20912 test -z "$ac_dir" && ac_dir=.
20913 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20914 acl_cv_path_LD="$ac_dir/$ac_prog"
20915 # Check to see if the program is GNU ld. I'd rather use --version,
20916 # but apparently some GNU ld's only accept -v.
20917 # Break only if it was the GNU/non-GNU ld that we prefer.
20918 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
20919 test "$with_gnu_ld" != no && break
20920 else
20921 test "$with_gnu_ld" != yes && break
20924 done
20925 IFS="$ac_save_ifs"
20926 else
20927 acl_cv_path_LD="$LD" # Let the user override the test with a path.
20931 LD="$acl_cv_path_LD"
20932 if test -n "$LD"; then
20933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20934 $as_echo "$LD" >&6; }
20935 else
20936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20937 $as_echo "no" >&6; }
20939 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
20940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20941 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20942 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
20943 $as_echo_n "(cached) " >&6
20944 else
20945 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
20946 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
20947 acl_cv_prog_gnu_ld=yes
20948 else
20949 acl_cv_prog_gnu_ld=no
20952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
20953 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
20954 with_gnu_ld=$acl_cv_prog_gnu_ld
20958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
20959 $as_echo_n "checking for shared library run path origin... " >&6; }
20960 if test "${acl_cv_rpath+set}" = set; then :
20961 $as_echo_n "(cached) " >&6
20962 else
20964 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
20965 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
20966 . ./conftest.sh
20967 rm -f ./conftest.sh
20968 acl_cv_rpath=done
20971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
20972 $as_echo "$acl_cv_rpath" >&6; }
20973 wl="$acl_cv_wl"
20974 libext="$acl_cv_libext"
20975 shlibext="$acl_cv_shlibext"
20976 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
20977 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
20978 hardcode_direct="$acl_cv_hardcode_direct"
20979 hardcode_minus_L="$acl_cv_hardcode_minus_L"
20980 # Check whether --enable-rpath was given.
20981 if test "${enable_rpath+set}" = set; then :
20982 enableval=$enable_rpath; :
20983 else
20984 enable_rpath=yes
20994 use_additional=yes
20996 acl_save_prefix="$prefix"
20997 prefix="$acl_final_prefix"
20998 acl_save_exec_prefix="$exec_prefix"
20999 exec_prefix="$acl_final_exec_prefix"
21001 eval additional_includedir=\"$includedir\"
21002 eval additional_libdir=\"$libdir\"
21004 exec_prefix="$acl_save_exec_prefix"
21005 prefix="$acl_save_prefix"
21008 # Check whether --with-libiconv-prefix was given.
21009 if test "${with_libiconv_prefix+set}" = set; then :
21010 withval=$with_libiconv_prefix;
21011 if test "X$withval" = "Xno"; then
21012 use_additional=no
21013 else
21014 if test "X$withval" = "X"; then
21016 acl_save_prefix="$prefix"
21017 prefix="$acl_final_prefix"
21018 acl_save_exec_prefix="$exec_prefix"
21019 exec_prefix="$acl_final_exec_prefix"
21021 eval additional_includedir=\"$includedir\"
21022 eval additional_libdir=\"$libdir\"
21024 exec_prefix="$acl_save_exec_prefix"
21025 prefix="$acl_save_prefix"
21027 else
21028 additional_includedir="$withval/include"
21029 additional_libdir="$withval/lib"
21035 LIBICONV=
21036 LTLIBICONV=
21037 INCICONV=
21038 rpathdirs=
21039 ltrpathdirs=
21040 names_already_handled=
21041 names_next_round='iconv '
21042 while test -n "$names_next_round"; do
21043 names_this_round="$names_next_round"
21044 names_next_round=
21045 for name in $names_this_round; do
21046 already_handled=
21047 for n in $names_already_handled; do
21048 if test "$n" = "$name"; then
21049 already_handled=yes
21050 break
21052 done
21053 if test -z "$already_handled"; then
21054 names_already_handled="$names_already_handled $name"
21055 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21056 eval value=\"\$HAVE_LIB$uppername\"
21057 if test -n "$value"; then
21058 if test "$value" = yes; then
21059 eval value=\"\$LIB$uppername\"
21060 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21061 eval value=\"\$LTLIB$uppername\"
21062 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21063 else
21066 else
21067 found_dir=
21068 found_la=
21069 found_so=
21070 found_a=
21071 if test $use_additional = yes; then
21072 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21073 found_dir="$additional_libdir"
21074 found_so="$additional_libdir/lib$name.$shlibext"
21075 if test -f "$additional_libdir/lib$name.la"; then
21076 found_la="$additional_libdir/lib$name.la"
21078 else
21079 if test -f "$additional_libdir/lib$name.$libext"; then
21080 found_dir="$additional_libdir"
21081 found_a="$additional_libdir/lib$name.$libext"
21082 if test -f "$additional_libdir/lib$name.la"; then
21083 found_la="$additional_libdir/lib$name.la"
21088 if test "X$found_dir" = "X"; then
21089 for x in $LDFLAGS $LTLIBICONV; do
21091 acl_save_prefix="$prefix"
21092 prefix="$acl_final_prefix"
21093 acl_save_exec_prefix="$exec_prefix"
21094 exec_prefix="$acl_final_exec_prefix"
21095 eval x=\"$x\"
21096 exec_prefix="$acl_save_exec_prefix"
21097 prefix="$acl_save_prefix"
21099 case "$x" in
21100 -L*)
21101 dir=`echo "X$x" | sed -e 's/^X-L//'`
21102 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21103 found_dir="$dir"
21104 found_so="$dir/lib$name.$shlibext"
21105 if test -f "$dir/lib$name.la"; then
21106 found_la="$dir/lib$name.la"
21108 else
21109 if test -f "$dir/lib$name.$libext"; then
21110 found_dir="$dir"
21111 found_a="$dir/lib$name.$libext"
21112 if test -f "$dir/lib$name.la"; then
21113 found_la="$dir/lib$name.la"
21118 esac
21119 if test "X$found_dir" != "X"; then
21120 break
21122 done
21124 if test "X$found_dir" != "X"; then
21125 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21126 if test "X$found_so" != "X"; then
21127 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21128 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21129 else
21130 haveit=
21131 for x in $ltrpathdirs; do
21132 if test "X$x" = "X$found_dir"; then
21133 haveit=yes
21134 break
21136 done
21137 if test -z "$haveit"; then
21138 ltrpathdirs="$ltrpathdirs $found_dir"
21140 if test "$hardcode_direct" = yes; then
21141 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21142 else
21143 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21144 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21145 haveit=
21146 for x in $rpathdirs; do
21147 if test "X$x" = "X$found_dir"; then
21148 haveit=yes
21149 break
21151 done
21152 if test -z "$haveit"; then
21153 rpathdirs="$rpathdirs $found_dir"
21155 else
21156 haveit=
21157 for x in $LDFLAGS $LIBICONV; do
21159 acl_save_prefix="$prefix"
21160 prefix="$acl_final_prefix"
21161 acl_save_exec_prefix="$exec_prefix"
21162 exec_prefix="$acl_final_exec_prefix"
21163 eval x=\"$x\"
21164 exec_prefix="$acl_save_exec_prefix"
21165 prefix="$acl_save_prefix"
21167 if test "X$x" = "X-L$found_dir"; then
21168 haveit=yes
21169 break
21171 done
21172 if test -z "$haveit"; then
21173 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21175 if test "$hardcode_minus_L" != no; then
21176 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21177 else
21178 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21183 else
21184 if test "X$found_a" != "X"; then
21185 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21186 else
21187 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21190 additional_includedir=
21191 case "$found_dir" in
21192 */lib | */lib/)
21193 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21194 additional_includedir="$basedir/include"
21196 esac
21197 if test "X$additional_includedir" != "X"; then
21198 if test "X$additional_includedir" != "X/usr/include"; then
21199 haveit=
21200 if test "X$additional_includedir" = "X/usr/local/include"; then
21201 if test -n "$GCC"; then
21202 case $host_os in
21203 linux*) haveit=yes;;
21204 esac
21207 if test -z "$haveit"; then
21208 for x in $CPPFLAGS $INCICONV; do
21210 acl_save_prefix="$prefix"
21211 prefix="$acl_final_prefix"
21212 acl_save_exec_prefix="$exec_prefix"
21213 exec_prefix="$acl_final_exec_prefix"
21214 eval x=\"$x\"
21215 exec_prefix="$acl_save_exec_prefix"
21216 prefix="$acl_save_prefix"
21218 if test "X$x" = "X-I$additional_includedir"; then
21219 haveit=yes
21220 break
21222 done
21223 if test -z "$haveit"; then
21224 if test -d "$additional_includedir"; then
21225 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21231 if test -n "$found_la"; then
21232 save_libdir="$libdir"
21233 case "$found_la" in
21234 */* | *\\*) . "$found_la" ;;
21235 *) . "./$found_la" ;;
21236 esac
21237 libdir="$save_libdir"
21238 for dep in $dependency_libs; do
21239 case "$dep" in
21240 -L*)
21241 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21242 if test "X$additional_libdir" != "X/usr/lib"; then
21243 haveit=
21244 if test "X$additional_libdir" = "X/usr/local/lib"; then
21245 if test -n "$GCC"; then
21246 case $host_os in
21247 linux*) haveit=yes;;
21248 esac
21251 if test -z "$haveit"; then
21252 haveit=
21253 for x in $LDFLAGS $LIBICONV; do
21255 acl_save_prefix="$prefix"
21256 prefix="$acl_final_prefix"
21257 acl_save_exec_prefix="$exec_prefix"
21258 exec_prefix="$acl_final_exec_prefix"
21259 eval x=\"$x\"
21260 exec_prefix="$acl_save_exec_prefix"
21261 prefix="$acl_save_prefix"
21263 if test "X$x" = "X-L$additional_libdir"; then
21264 haveit=yes
21265 break
21267 done
21268 if test -z "$haveit"; then
21269 if test -d "$additional_libdir"; then
21270 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21273 haveit=
21274 for x in $LDFLAGS $LTLIBICONV; do
21276 acl_save_prefix="$prefix"
21277 prefix="$acl_final_prefix"
21278 acl_save_exec_prefix="$exec_prefix"
21279 exec_prefix="$acl_final_exec_prefix"
21280 eval x=\"$x\"
21281 exec_prefix="$acl_save_exec_prefix"
21282 prefix="$acl_save_prefix"
21284 if test "X$x" = "X-L$additional_libdir"; then
21285 haveit=yes
21286 break
21288 done
21289 if test -z "$haveit"; then
21290 if test -d "$additional_libdir"; then
21291 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21297 -R*)
21298 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21299 if test "$enable_rpath" != no; then
21300 haveit=
21301 for x in $rpathdirs; do
21302 if test "X$x" = "X$dir"; then
21303 haveit=yes
21304 break
21306 done
21307 if test -z "$haveit"; then
21308 rpathdirs="$rpathdirs $dir"
21310 haveit=
21311 for x in $ltrpathdirs; do
21312 if test "X$x" = "X$dir"; then
21313 haveit=yes
21314 break
21316 done
21317 if test -z "$haveit"; then
21318 ltrpathdirs="$ltrpathdirs $dir"
21322 -l*)
21323 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21325 *.la)
21326 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21329 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21330 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21332 esac
21333 done
21335 else
21336 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21337 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21341 done
21342 done
21343 if test "X$rpathdirs" != "X"; then
21344 if test -n "$hardcode_libdir_separator"; then
21345 alldirs=
21346 for found_dir in $rpathdirs; do
21347 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21348 done
21349 acl_save_libdir="$libdir"
21350 libdir="$alldirs"
21351 eval flag=\"$hardcode_libdir_flag_spec\"
21352 libdir="$acl_save_libdir"
21353 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21354 else
21355 for found_dir in $rpathdirs; do
21356 acl_save_libdir="$libdir"
21357 libdir="$found_dir"
21358 eval flag=\"$hardcode_libdir_flag_spec\"
21359 libdir="$acl_save_libdir"
21360 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21361 done
21364 if test "X$ltrpathdirs" != "X"; then
21365 for found_dir in $ltrpathdirs; do
21366 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21367 done
21376 am_save_CPPFLAGS="$CPPFLAGS"
21378 for element in $INCICONV; do
21379 haveit=
21380 for x in $CPPFLAGS; do
21382 acl_save_prefix="$prefix"
21383 prefix="$acl_final_prefix"
21384 acl_save_exec_prefix="$exec_prefix"
21385 exec_prefix="$acl_final_exec_prefix"
21386 eval x=\"$x\"
21387 exec_prefix="$acl_save_exec_prefix"
21388 prefix="$acl_save_prefix"
21390 if test "X$x" = "X$element"; then
21391 haveit=yes
21392 break
21394 done
21395 if test -z "$haveit"; then
21396 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21398 done
21401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
21402 $as_echo_n "checking for iconv... " >&6; }
21403 if test "${am_cv_func_iconv+set}" = set; then :
21404 $as_echo_n "(cached) " >&6
21405 else
21407 am_cv_func_iconv="no, consider installing GNU libiconv"
21408 am_cv_lib_iconv=no
21409 if test x$gcc_no_link = xyes; then
21410 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21413 /* end confdefs.h. */
21414 #include <stdlib.h>
21415 #include <iconv.h>
21417 main ()
21419 iconv_t cd = iconv_open("","");
21420 iconv(cd,NULL,NULL,NULL,NULL);
21421 iconv_close(cd);
21423 return 0;
21425 _ACEOF
21426 if ac_fn_c_try_link "$LINENO"; then :
21427 am_cv_func_iconv=yes
21429 rm -f core conftest.err conftest.$ac_objext \
21430 conftest$ac_exeext conftest.$ac_ext
21431 if test "$am_cv_func_iconv" != yes; then
21432 am_save_LIBS="$LIBS"
21433 LIBS="$LIBS $LIBICONV"
21434 if test x$gcc_no_link = xyes; then
21435 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21438 /* end confdefs.h. */
21439 #include <stdlib.h>
21440 #include <iconv.h>
21442 main ()
21444 iconv_t cd = iconv_open("","");
21445 iconv(cd,NULL,NULL,NULL,NULL);
21446 iconv_close(cd);
21448 return 0;
21450 _ACEOF
21451 if ac_fn_c_try_link "$LINENO"; then :
21452 am_cv_lib_iconv=yes
21453 am_cv_func_iconv=yes
21455 rm -f core conftest.err conftest.$ac_objext \
21456 conftest$ac_exeext conftest.$ac_ext
21457 LIBS="$am_save_LIBS"
21461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
21462 $as_echo "$am_cv_func_iconv" >&6; }
21463 if test "$am_cv_func_iconv" = yes; then
21465 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
21468 if test "$am_cv_lib_iconv" = yes; then
21469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
21470 $as_echo_n "checking how to link with libiconv... " >&6; }
21471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
21472 $as_echo "$LIBICONV" >&6; }
21473 else
21474 CPPFLAGS="$am_save_CPPFLAGS"
21475 LIBICONV=
21476 LTLIBICONV=
21481 if test "$am_cv_func_iconv" = yes; then
21482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
21483 $as_echo_n "checking for iconv declaration... " >&6; }
21484 if test "${am_cv_proto_iconv+set}" = set; then :
21485 $as_echo_n "(cached) " >&6
21486 else
21488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21489 /* end confdefs.h. */
21491 #include <stdlib.h>
21492 #include <iconv.h>
21493 extern
21494 #ifdef __cplusplus
21496 #endif
21497 #if defined(__STDC__) || defined(__cplusplus)
21498 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21499 #else
21500 size_t iconv();
21501 #endif
21504 main ()
21508 return 0;
21510 _ACEOF
21511 if ac_fn_c_try_compile "$LINENO"; then :
21512 am_cv_proto_iconv_arg1=""
21513 else
21514 am_cv_proto_iconv_arg1="const"
21516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21517 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);"
21520 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
21522 }$am_cv_proto_iconv" >&5
21523 $as_echo "${ac_t:-
21524 }$am_cv_proto_iconv" >&6; }
21526 cat >>confdefs.h <<_ACEOF
21527 #define ICONV_CONST $am_cv_proto_iconv_arg1
21528 _ACEOF
21533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
21534 $as_echo_n "checking for LC_MESSAGES... " >&6; }
21535 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
21536 $as_echo_n "(cached) " >&6
21537 else
21538 if test x$gcc_no_link = xyes; then
21539 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21542 /* end confdefs.h. */
21543 #include <locale.h>
21545 main ()
21547 return LC_MESSAGES
21549 return 0;
21551 _ACEOF
21552 if ac_fn_c_try_link "$LINENO"; then :
21553 am_cv_val_LC_MESSAGES=yes
21554 else
21555 am_cv_val_LC_MESSAGES=no
21557 rm -f core conftest.err conftest.$ac_objext \
21558 conftest$ac_exeext conftest.$ac_ext
21560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
21561 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
21562 if test $am_cv_val_LC_MESSAGES = yes; then
21564 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
21568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21569 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21570 if test "${ac_cv_struct_tm+set}" = set; then :
21571 $as_echo_n "(cached) " >&6
21572 else
21573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21574 /* end confdefs.h. */
21575 #include <sys/types.h>
21576 #include <time.h>
21579 main ()
21581 struct tm tm;
21582 int *p = &tm.tm_sec;
21583 return !p;
21585 return 0;
21587 _ACEOF
21588 if ac_fn_c_try_compile "$LINENO"; then :
21589 ac_cv_struct_tm=time.h
21590 else
21591 ac_cv_struct_tm=sys/time.h
21593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21596 $as_echo "$ac_cv_struct_tm" >&6; }
21597 if test $ac_cv_struct_tm = sys/time.h; then
21599 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21603 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21604 #include <$ac_cv_struct_tm>
21607 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21609 cat >>confdefs.h <<_ACEOF
21610 #define HAVE_STRUCT_TM_TM_ZONE 1
21611 _ACEOF
21616 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21618 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21620 else
21621 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21623 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21624 ac_have_decl=1
21625 else
21626 ac_have_decl=0
21629 cat >>confdefs.h <<_ACEOF
21630 #define HAVE_DECL_TZNAME $ac_have_decl
21631 _ACEOF
21633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21634 $as_echo_n "checking for tzname... " >&6; }
21635 if test "${ac_cv_var_tzname+set}" = set; then :
21636 $as_echo_n "(cached) " >&6
21637 else
21638 if test x$gcc_no_link = xyes; then
21639 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21642 /* end confdefs.h. */
21643 #include <time.h>
21644 #if !HAVE_DECL_TZNAME
21645 extern char *tzname[];
21646 #endif
21649 main ()
21651 return tzname[0][0];
21653 return 0;
21655 _ACEOF
21656 if ac_fn_c_try_link "$LINENO"; then :
21657 ac_cv_var_tzname=yes
21658 else
21659 ac_cv_var_tzname=no
21661 rm -f core conftest.err conftest.$ac_objext \
21662 conftest$ac_exeext conftest.$ac_ext
21664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21665 $as_echo "$ac_cv_var_tzname" >&6; }
21666 if test $ac_cv_var_tzname = yes; then
21668 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21674 for ac_func in gethostbyname_r
21675 do :
21676 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
21677 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
21678 cat >>confdefs.h <<_ACEOF
21679 #define HAVE_GETHOSTBYNAME_R 1
21680 _ACEOF
21683 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
21685 # There are two different kinds of gethostbyname_r.
21686 # We look for the one that returns `int'.
21687 # Hopefully this check is robust enough.
21688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21689 /* end confdefs.h. */
21690 #include <netdb.h>
21692 _ACEOF
21693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21694 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then :
21697 $as_echo "#define GETHOSTBYNAME_R_RETURNS_INT 1" >>confdefs.h
21700 rm -f conftest*
21703 case " $GCINCS " in
21704 *" -D_REENTRANT "*) ;;
21706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
21707 $as_echo_n "checking whether gethostbyname_r declaration requires -D_REENTRANT... " >&6; }
21708 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then :
21709 $as_echo_n "(cached) " >&6
21710 else
21711 ac_ext=cpp
21712 ac_cpp='$CXXCPP $CPPFLAGS'
21713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21718 /* end confdefs.h. */
21719 #include <netdb.h>
21721 main ()
21723 gethostbyname_r("", 0, 0);
21725 return 0;
21727 _ACEOF
21728 if ac_fn_cxx_try_compile "$LINENO"; then :
21729 libjava_cv_gethostbyname_r_needs_reentrant=no
21730 else
21731 CPPFLAGS_SAVE="$CPPFLAGS"
21732 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
21733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21734 /* end confdefs.h. */
21735 #include <netdb.h>
21737 main ()
21739 gethostbyname_r("", 0, 0);
21741 return 0;
21743 _ACEOF
21744 if ac_fn_cxx_try_compile "$LINENO"; then :
21745 libjava_cv_gethostbyname_r_needs_reentrant=yes
21746 else
21747 libjava_cv_gethostbyname_r_needs_reentrant=fail
21749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21750 CPPFLAGS="$CPPFLAGS_SAVE"
21753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21754 ac_ext=c
21755 ac_cpp='$CPP $CPPFLAGS'
21756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
21763 $as_echo "$libjava_cv_gethostbyname_r_needs_reentrant" >&6; }
21764 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
21766 $as_echo "#define _REENTRANT 1" >>confdefs.h
21770 esac
21772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct hostent_data" >&5
21773 $as_echo_n "checking for struct hostent_data... " >&6; }
21774 if test "${libjava_cv_struct_hostent_data+set}" = set; then :
21775 $as_echo_n "(cached) " >&6
21776 else
21777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21778 /* end confdefs.h. */
21780 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
21781 # define _REENTRANT 1
21782 #endif
21783 #include <netdb.h>
21785 main ()
21787 struct hostent_data data;
21789 return 0;
21791 _ACEOF
21792 if ac_fn_c_try_compile "$LINENO"; then :
21793 libjava_cv_struct_hostent_data=yes
21794 else
21795 libjava_cv_struct_hostent_data=no
21797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_struct_hostent_data" >&5
21800 $as_echo "$libjava_cv_struct_hostent_data" >&6; }
21801 if test "x$libjava_cv_struct_hostent_data" = xyes; then
21803 $as_echo "#define HAVE_STRUCT_HOSTENT_DATA 1" >>confdefs.h
21808 done
21811 # FIXME: libjava source code expects to find a prototype for
21812 # gethostbyaddr_r in netdb.h. The outer check ensures that
21813 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
21814 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
21815 # linkage check is enough, yet C++ code requires proper prototypes.)
21816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21817 /* end confdefs.h. */
21818 #include <netdb.h>
21820 _ACEOF
21821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21822 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
21824 for ac_func in gethostbyaddr_r
21825 do :
21826 ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
21827 if test "x$ac_cv_func_gethostbyaddr_r" = x""yes; then :
21828 cat >>confdefs.h <<_ACEOF
21829 #define HAVE_GETHOSTBYADDR_R 1
21830 _ACEOF
21833 $as_echo "#define HAVE_GETHOSTBYADDR_R 1" >>confdefs.h
21835 # There are two different kinds of gethostbyaddr_r.
21836 # We look for the one that returns `int'.
21837 # Hopefully this check is robust enough.
21838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21839 /* end confdefs.h. */
21840 #include <netdb.h>
21842 _ACEOF
21843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21844 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then :
21847 $as_echo "#define GETHOSTBYADDR_R_RETURNS_INT 1" >>confdefs.h
21850 rm -f conftest*
21853 done
21856 rm -f conftest*
21859 for ac_func in gethostname
21860 do :
21861 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
21862 if test "x$ac_cv_func_gethostname" = x""yes; then :
21863 cat >>confdefs.h <<_ACEOF
21864 #define HAVE_GETHOSTNAME 1
21865 _ACEOF
21868 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
21870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21871 /* end confdefs.h. */
21872 #include <unistd.h>
21874 _ACEOF
21875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21876 $EGREP "gethostname" >/dev/null 2>&1; then :
21879 $as_echo "#define HAVE_GETHOSTNAME_DECL 1" >>confdefs.h
21882 rm -f conftest*
21885 done
21888 for ac_func in usleep
21889 do :
21890 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
21891 if test "x$ac_cv_func_usleep" = x""yes; then :
21892 cat >>confdefs.h <<_ACEOF
21893 #define HAVE_USLEEP 1
21894 _ACEOF
21896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21897 /* end confdefs.h. */
21898 #include <unistd.h>
21900 _ACEOF
21901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21902 $EGREP "usleep" >/dev/null 2>&1; then :
21905 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
21908 rm -f conftest*
21911 done
21914 # Look for these functions in the thread library, but only bother
21915 # if using POSIX threads.
21916 if test "$THREADS" = posix; then
21917 save_LIBS="$LIBS"
21918 LIBS="$LIBS $THREADLIBS"
21920 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
21921 # Solaris 7 the name librt is preferred.
21922 for ac_func in sched_yield
21923 do :
21924 ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
21925 if test "x$ac_cv_func_sched_yield" = x""yes; then :
21926 cat >>confdefs.h <<_ACEOF
21927 #define HAVE_SCHED_YIELD 1
21928 _ACEOF
21930 else
21932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
21933 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
21934 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
21935 $as_echo_n "(cached) " >&6
21936 else
21937 ac_check_lib_save_LIBS=$LIBS
21938 LIBS="-lrt $LIBS"
21939 if test x$gcc_no_link = xyes; then
21940 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21943 /* end confdefs.h. */
21945 /* Override any GCC internal prototype to avoid an error.
21946 Use char because int might match the return type of a GCC
21947 builtin and then its argument prototype would still apply. */
21948 #ifdef __cplusplus
21949 extern "C"
21950 #endif
21951 char sched_yield ();
21953 main ()
21955 return sched_yield ();
21957 return 0;
21959 _ACEOF
21960 if ac_fn_c_try_link "$LINENO"; then :
21961 ac_cv_lib_rt_sched_yield=yes
21962 else
21963 ac_cv_lib_rt_sched_yield=no
21965 rm -f core conftest.err conftest.$ac_objext \
21966 conftest$ac_exeext conftest.$ac_ext
21967 LIBS=$ac_check_lib_save_LIBS
21969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
21970 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
21971 if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
21973 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
21975 THREADLIBS="$THREADLIBS -lrt"
21976 THREADSPEC="$THREADSPEC -lrt"
21977 else
21979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
21980 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
21981 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then :
21982 $as_echo_n "(cached) " >&6
21983 else
21984 ac_check_lib_save_LIBS=$LIBS
21985 LIBS="-lposix4 $LIBS"
21986 if test x$gcc_no_link = xyes; then
21987 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21990 /* end confdefs.h. */
21992 /* Override any GCC internal prototype to avoid an error.
21993 Use char because int might match the return type of a GCC
21994 builtin and then its argument prototype would still apply. */
21995 #ifdef __cplusplus
21996 extern "C"
21997 #endif
21998 char sched_yield ();
22000 main ()
22002 return sched_yield ();
22004 return 0;
22006 _ACEOF
22007 if ac_fn_c_try_link "$LINENO"; then :
22008 ac_cv_lib_posix4_sched_yield=yes
22009 else
22010 ac_cv_lib_posix4_sched_yield=no
22012 rm -f core conftest.err conftest.$ac_objext \
22013 conftest$ac_exeext conftest.$ac_ext
22014 LIBS=$ac_check_lib_save_LIBS
22016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
22017 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
22018 if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then :
22020 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22022 THREADLIBS="$THREADLIBS -lposix4"
22023 THREADSPEC="$THREADSPEC -lposix4"
22029 done
22032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22033 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22034 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
22035 $as_echo_n "(cached) " >&6
22036 else
22037 ac_check_lib_save_LIBS=$LIBS
22038 LIBS="-lrt $LIBS"
22039 if test x$gcc_no_link = xyes; then
22040 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22043 /* end confdefs.h. */
22045 /* Override any GCC internal prototype to avoid an error.
22046 Use char because int might match the return type of a GCC
22047 builtin and then its argument prototype would still apply. */
22048 #ifdef __cplusplus
22049 extern "C"
22050 #endif
22051 char clock_gettime ();
22053 main ()
22055 return clock_gettime ();
22057 return 0;
22059 _ACEOF
22060 if ac_fn_c_try_link "$LINENO"; then :
22061 ac_cv_lib_rt_clock_gettime=yes
22062 else
22063 ac_cv_lib_rt_clock_gettime=no
22065 rm -f core conftest.err conftest.$ac_objext \
22066 conftest$ac_exeext conftest.$ac_ext
22067 LIBS=$ac_check_lib_save_LIBS
22069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22070 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22071 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
22074 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22076 case "$THREADSPEC" in
22077 *-lrt*) ;;
22079 THREADSPEC="$THREADSPEC -lrt"
22080 THREADLIBS="$THREADLIBS -lrt"
22082 esac
22086 LIBS="$save_LIBS"
22088 # We can save a little space at runtime if the mutex has m_count
22089 # or __m_count. This is a nice hack for Linux.
22090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22091 /* end confdefs.h. */
22092 #include <pthread.h>
22094 main ()
22097 extern pthread_mutex_t *mutex; int q = mutex->m_count;
22100 return 0;
22102 _ACEOF
22103 if ac_fn_c_try_compile "$LINENO"; then :
22105 $as_echo "#define PTHREAD_MUTEX_HAVE_M_COUNT 1" >>confdefs.h
22107 else
22109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22110 /* end confdefs.h. */
22111 #include <pthread.h>
22113 main ()
22116 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
22119 return 0;
22121 _ACEOF
22122 if ac_fn_c_try_compile "$LINENO"; then :
22124 $as_echo "#define PTHREAD_MUTEX_HAVE___M_COUNT 1" >>confdefs.h
22127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22132 # We require a way to get the time.
22133 time_found=no
22134 for ac_func in gettimeofday time ftime
22135 do :
22136 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22137 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22138 eval as_val=\$$as_ac_var
22139 if test "x$as_val" = x""yes; then :
22140 cat >>confdefs.h <<_ACEOF
22141 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22142 _ACEOF
22143 time_found=yes
22145 done
22147 if test "$time_found" = no; then
22148 as_fn_error "no function found to get the time" "$LINENO" 5
22151 for ac_func in memmove
22152 do :
22153 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22154 if test "x$ac_cv_func_memmove" = x""yes; then :
22155 cat >>confdefs.h <<_ACEOF
22156 #define HAVE_MEMMOVE 1
22157 _ACEOF
22160 done
22163 # We require memcpy.
22164 memcpy_found=no
22165 for ac_func in memcpy
22166 do :
22167 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
22168 if test "x$ac_cv_func_memcpy" = x""yes; then :
22169 cat >>confdefs.h <<_ACEOF
22170 #define HAVE_MEMCPY 1
22171 _ACEOF
22172 memcpy_found=yes
22174 done
22176 if test "$memcpy_found" = no; then
22177 as_fn_error "memcpy is required" "$LINENO" 5
22179 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
22180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22181 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22182 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
22183 $as_echo_n "(cached) " >&6
22184 else
22185 ac_check_lib_save_LIBS=$LIBS
22186 LIBS="-ldl $LIBS"
22187 if test x$gcc_no_link = xyes; then
22188 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22191 /* end confdefs.h. */
22193 /* Override any GCC internal prototype to avoid an error.
22194 Use char because int might match the return type of a GCC
22195 builtin and then its argument prototype would still apply. */
22196 #ifdef __cplusplus
22197 extern "C"
22198 #endif
22199 char dlopen ();
22201 main ()
22203 return dlopen ();
22205 return 0;
22207 _ACEOF
22208 if ac_fn_c_try_link "$LINENO"; then :
22209 ac_cv_lib_dl_dlopen=yes
22210 else
22211 ac_cv_lib_dl_dlopen=no
22213 rm -f core conftest.err conftest.$ac_objext \
22214 conftest$ac_exeext conftest.$ac_ext
22215 LIBS=$ac_check_lib_save_LIBS
22217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22218 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22219 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
22222 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22224 else
22226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldld" >&5
22227 $as_echo_n "checking for dlopen in -ldld... " >&6; }
22228 if test "${ac_cv_lib_dld_dlopen+set}" = set; then :
22229 $as_echo_n "(cached) " >&6
22230 else
22231 ac_check_lib_save_LIBS=$LIBS
22232 LIBS="-ldld $LIBS"
22233 if test x$gcc_no_link = xyes; then
22234 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22237 /* end confdefs.h. */
22239 /* Override any GCC internal prototype to avoid an error.
22240 Use char because int might match the return type of a GCC
22241 builtin and then its argument prototype would still apply. */
22242 #ifdef __cplusplus
22243 extern "C"
22244 #endif
22245 char dlopen ();
22247 main ()
22249 return dlopen ();
22251 return 0;
22253 _ACEOF
22254 if ac_fn_c_try_link "$LINENO"; then :
22255 ac_cv_lib_dld_dlopen=yes
22256 else
22257 ac_cv_lib_dld_dlopen=no
22259 rm -f core conftest.err conftest.$ac_objext \
22260 conftest$ac_exeext conftest.$ac_ext
22261 LIBS=$ac_check_lib_save_LIBS
22263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dlopen" >&5
22264 $as_echo "$ac_cv_lib_dld_dlopen" >&6; }
22265 if test "x$ac_cv_lib_dld_dlopen" = x""yes; then :
22268 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22275 # Some library-finding code we stole from Tcl.
22276 #--------------------------------------------------------------------
22277 # Check for the existence of the -lsocket and -lnsl libraries.
22278 # The order here is important, so that they end up in the right
22279 # order in the command line generated by make. Here are some
22280 # special considerations:
22281 # 1. Use "connect" and "accept" to check for -lsocket, and
22282 # "gethostbyname" to check for -lnsl.
22283 # 2. Use each function name only once: can't redo a check because
22284 # autoconf caches the results of the last check and won't redo it.
22285 # 3. Use -lnsl and -lsocket only if they supply procedures that
22286 # aren't already present in the normal libraries. This is because
22287 # IRIX 5.2 has libraries, but they aren't needed and they're
22288 # bogus: they goof up name resolution if used.
22289 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
22290 # To get around this problem, check for both libraries together
22291 # if -lsocket doesn't work by itself.
22292 #--------------------------------------------------------------------
22294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
22295 $as_echo_n "checking for socket libraries... " >&6; }
22296 if test "${gcj_cv_lib_sockets+set}" = set; then :
22297 $as_echo_n "(cached) " >&6
22298 else
22299 gcj_cv_lib_sockets=
22300 gcj_checkBoth=0
22301 unset ac_cv_func_connect
22302 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
22303 if test "x$ac_cv_func_connect" = x""yes; then :
22304 gcj_checkSocket=0
22305 else
22306 gcj_checkSocket=1
22309 if test "$gcj_checkSocket" = 1; then
22310 unset ac_cv_func_connect
22311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
22312 $as_echo_n "checking for main in -lsocket... " >&6; }
22313 if test "${ac_cv_lib_socket_main+set}" = set; then :
22314 $as_echo_n "(cached) " >&6
22315 else
22316 ac_check_lib_save_LIBS=$LIBS
22317 LIBS="-lsocket $LIBS"
22318 if test x$gcc_no_link = xyes; then
22319 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22322 /* end confdefs.h. */
22326 main ()
22328 return main ();
22330 return 0;
22332 _ACEOF
22333 if ac_fn_c_try_link "$LINENO"; then :
22334 ac_cv_lib_socket_main=yes
22335 else
22336 ac_cv_lib_socket_main=no
22338 rm -f core conftest.err conftest.$ac_objext \
22339 conftest$ac_exeext conftest.$ac_ext
22340 LIBS=$ac_check_lib_save_LIBS
22342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
22343 $as_echo "$ac_cv_lib_socket_main" >&6; }
22344 if test "x$ac_cv_lib_socket_main" = x""yes; then :
22345 gcj_cv_lib_sockets="-lsocket"
22346 else
22347 gcj_checkBoth=1
22351 if test "$gcj_checkBoth" = 1; then
22352 gcj_oldLibs=$LIBS
22353 LIBS="$LIBS -lsocket -lnsl"
22354 unset ac_cv_func_accept
22355 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
22356 if test "x$ac_cv_func_accept" = x""yes; then :
22357 gcj_checkNsl=0
22358 gcj_cv_lib_sockets="-lsocket -lnsl"
22361 unset ac_cv_func_accept
22362 LIBS=$gcj_oldLibs
22364 unset ac_cv_func_gethostbyname
22365 gcj_oldLibs=$LIBS
22366 LIBS="$LIBS $gcj_cv_lib_sockets"
22367 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22368 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
22370 else
22371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
22372 $as_echo_n "checking for main in -lnsl... " >&6; }
22373 if test "${ac_cv_lib_nsl_main+set}" = set; then :
22374 $as_echo_n "(cached) " >&6
22375 else
22376 ac_check_lib_save_LIBS=$LIBS
22377 LIBS="-lnsl $LIBS"
22378 if test x$gcc_no_link = xyes; then
22379 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22382 /* end confdefs.h. */
22386 main ()
22388 return main ();
22390 return 0;
22392 _ACEOF
22393 if ac_fn_c_try_link "$LINENO"; then :
22394 ac_cv_lib_nsl_main=yes
22395 else
22396 ac_cv_lib_nsl_main=no
22398 rm -f core conftest.err conftest.$ac_objext \
22399 conftest$ac_exeext conftest.$ac_ext
22400 LIBS=$ac_check_lib_save_LIBS
22402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
22403 $as_echo "$ac_cv_lib_nsl_main" >&6; }
22404 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
22405 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
22410 unset ac_cv_func_gethostbyname
22411 LIBS=$gcj_oldLIBS
22414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcj_cv_lib_sockets" >&5
22415 $as_echo "$gcj_cv_lib_sockets" >&6; }
22416 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
22418 if test "$with_system_zlib" = yes; then
22419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
22420 $as_echo_n "checking for deflate in -lz... " >&6; }
22421 if test "${ac_cv_lib_z_deflate+set}" = set; then :
22422 $as_echo_n "(cached) " >&6
22423 else
22424 ac_check_lib_save_LIBS=$LIBS
22425 LIBS="-lz $LIBS"
22426 if test x$gcc_no_link = xyes; then
22427 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22430 /* end confdefs.h. */
22432 /* Override any GCC internal prototype to avoid an error.
22433 Use char because int might match the return type of a GCC
22434 builtin and then its argument prototype would still apply. */
22435 #ifdef __cplusplus
22436 extern "C"
22437 #endif
22438 char deflate ();
22440 main ()
22442 return deflate ();
22444 return 0;
22446 _ACEOF
22447 if ac_fn_c_try_link "$LINENO"; then :
22448 ac_cv_lib_z_deflate=yes
22449 else
22450 ac_cv_lib_z_deflate=no
22452 rm -f core conftest.err conftest.$ac_objext \
22453 conftest$ac_exeext conftest.$ac_ext
22454 LIBS=$ac_check_lib_save_LIBS
22456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
22457 $as_echo "$ac_cv_lib_z_deflate" >&6; }
22458 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
22459 ZLIBSPEC=-lz
22460 else
22461 ZLIBSPEC=
22466 # Test for Gtk stuff, if asked for.
22467 if test "$use_gtk_awt" = yes; then
22469 succeeded=no
22471 if test -z "$PKG_CONFIG"; then
22472 # Extract the first word of "pkg-config", so it can be a program name with args.
22473 set dummy pkg-config; ac_word=$2
22474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22475 $as_echo_n "checking for $ac_word... " >&6; }
22476 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22477 $as_echo_n "(cached) " >&6
22478 else
22479 case $PKG_CONFIG in
22480 [\\/]* | ?:[\\/]*)
22481 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22485 for as_dir in $PATH
22487 IFS=$as_save_IFS
22488 test -z "$as_dir" && as_dir=.
22489 for ac_exec_ext in '' $ac_executable_extensions; do
22490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22491 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22493 break 2
22495 done
22496 done
22497 IFS=$as_save_IFS
22499 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22501 esac
22503 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22504 if test -n "$PKG_CONFIG"; then
22505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22506 $as_echo "$PKG_CONFIG" >&6; }
22507 else
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22509 $as_echo "no" >&6; }
22515 if test "$PKG_CONFIG" = "no" ; then
22516 echo "*** The pkg-config script could not be found. Make sure it is"
22517 echo "*** in your path, or set the PKG_CONFIG environment variable"
22518 echo "*** to the full path to pkg-config."
22519 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22520 else
22521 PKG_CONFIG_MIN_VERSION=0.9.0
22522 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.4" >&5
22524 $as_echo_n "checking for gtk+-2.0 >= 2.4... " >&6; }
22526 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
22527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22528 $as_echo "yes" >&6; }
22529 succeeded=yes
22531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
22532 $as_echo_n "checking GTK_CFLAGS... " >&6; }
22533 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
22534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
22535 $as_echo "$GTK_CFLAGS" >&6; }
22537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
22538 $as_echo_n "checking GTK_LIBS... " >&6; }
22539 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
22541 $as_echo "$GTK_LIBS" >&6; }
22542 else
22543 GTK_CFLAGS=""
22544 GTK_LIBS=""
22545 ## If we have a custom action on failure, don't print errors, but
22546 ## do set a variable so people can do so.
22547 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
22548 echo $GTK_PKG_ERRORS
22553 else
22554 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22555 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22559 if test $succeeded = yes; then
22561 else
22562 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
22569 succeeded=no
22571 if test -z "$PKG_CONFIG"; then
22572 # Extract the first word of "pkg-config", so it can be a program name with args.
22573 set dummy pkg-config; ac_word=$2
22574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22575 $as_echo_n "checking for $ac_word... " >&6; }
22576 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22577 $as_echo_n "(cached) " >&6
22578 else
22579 case $PKG_CONFIG in
22580 [\\/]* | ?:[\\/]*)
22581 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22585 for as_dir in $PATH
22587 IFS=$as_save_IFS
22588 test -z "$as_dir" && as_dir=.
22589 for ac_exec_ext in '' $ac_executable_extensions; do
22590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22591 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22593 break 2
22595 done
22596 done
22597 IFS=$as_save_IFS
22599 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22601 esac
22603 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22604 if test -n "$PKG_CONFIG"; then
22605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22606 $as_echo "$PKG_CONFIG" >&6; }
22607 else
22608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22609 $as_echo "no" >&6; }
22615 if test "$PKG_CONFIG" = "no" ; then
22616 echo "*** The pkg-config script could not be found. Make sure it is"
22617 echo "*** in your path, or set the PKG_CONFIG environment variable"
22618 echo "*** to the full path to pkg-config."
22619 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22620 else
22621 PKG_CONFIG_MIN_VERSION=0.9.0
22622 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
22624 $as_echo_n "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... " >&6; }
22626 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
22627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22628 $as_echo "yes" >&6; }
22629 succeeded=yes
22631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
22632 $as_echo_n "checking GLIB_CFLAGS... " >&6; }
22633 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
22635 $as_echo "$GLIB_CFLAGS" >&6; }
22637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
22638 $as_echo_n "checking GLIB_LIBS... " >&6; }
22639 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
22641 $as_echo "$GLIB_LIBS" >&6; }
22642 else
22643 GLIB_CFLAGS=""
22644 GLIB_LIBS=""
22645 ## If we have a custom action on failure, don't print errors, but
22646 ## do set a variable so people can do so.
22647 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22648 echo $GLIB_PKG_ERRORS
22653 else
22654 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22655 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22659 if test $succeeded = yes; then
22661 else
22662 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
22669 succeeded=no
22671 if test -z "$PKG_CONFIG"; then
22672 # Extract the first word of "pkg-config", so it can be a program name with args.
22673 set dummy pkg-config; ac_word=$2
22674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22675 $as_echo_n "checking for $ac_word... " >&6; }
22676 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22677 $as_echo_n "(cached) " >&6
22678 else
22679 case $PKG_CONFIG in
22680 [\\/]* | ?:[\\/]*)
22681 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22685 for as_dir in $PATH
22687 IFS=$as_save_IFS
22688 test -z "$as_dir" && as_dir=.
22689 for ac_exec_ext in '' $ac_executable_extensions; do
22690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22691 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22693 break 2
22695 done
22696 done
22697 IFS=$as_save_IFS
22699 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22701 esac
22703 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22704 if test -n "$PKG_CONFIG"; then
22705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22706 $as_echo "$PKG_CONFIG" >&6; }
22707 else
22708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22709 $as_echo "no" >&6; }
22715 if test "$PKG_CONFIG" = "no" ; then
22716 echo "*** The pkg-config script could not be found. Make sure it is"
22717 echo "*** in your path, or set the PKG_CONFIG environment variable"
22718 echo "*** to the full path to pkg-config."
22719 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22720 else
22721 PKG_CONFIG_MIN_VERSION=0.9.0
22722 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libart-2.0 >= 2.1" >&5
22724 $as_echo_n "checking for libart-2.0 >= 2.1... " >&6; }
22726 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
22727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22728 $as_echo "yes" >&6; }
22729 succeeded=yes
22731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_CFLAGS" >&5
22732 $as_echo_n "checking LIBART_CFLAGS... " >&6; }
22733 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
22734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_CFLAGS" >&5
22735 $as_echo "$LIBART_CFLAGS" >&6; }
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_LIBS" >&5
22738 $as_echo_n "checking LIBART_LIBS... " >&6; }
22739 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
22740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_LIBS" >&5
22741 $as_echo "$LIBART_LIBS" >&6; }
22742 else
22743 LIBART_CFLAGS=""
22744 LIBART_LIBS=""
22745 ## If we have a custom action on failure, don't print errors, but
22746 ## do set a variable so people can do so.
22747 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
22748 echo $LIBART_PKG_ERRORS
22753 else
22754 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22755 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22759 if test $succeeded = yes; then
22761 else
22762 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
22768 # We require the XTest Extension to support java.awt.Robot.
22769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
22770 $as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
22771 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
22772 $as_echo_n "(cached) " >&6
22773 else
22774 ac_check_lib_save_LIBS=$LIBS
22775 LIBS="-lXtst ${X_LIBS} $LIBS"
22776 if test x$gcc_no_link = xyes; then
22777 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22780 /* end confdefs.h. */
22782 /* Override any GCC internal prototype to avoid an error.
22783 Use char because int might match the return type of a GCC
22784 builtin and then its argument prototype would still apply. */
22785 #ifdef __cplusplus
22786 extern "C"
22787 #endif
22788 char XTestQueryExtension ();
22790 main ()
22792 return XTestQueryExtension ();
22794 return 0;
22796 _ACEOF
22797 if ac_fn_c_try_link "$LINENO"; then :
22798 ac_cv_lib_Xtst_XTestQueryExtension=yes
22799 else
22800 ac_cv_lib_Xtst_XTestQueryExtension=no
22802 rm -f core conftest.err conftest.$ac_objext \
22803 conftest$ac_exeext conftest.$ac_ext
22804 LIBS=$ac_check_lib_save_LIBS
22806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
22807 $as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
22808 if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
22809 true
22810 else
22811 as_fn_error "libXtst not found, required by java.awt.Robot" "$LINENO" 5
22816 # On Solaris, and maybe other architectures, the Boehm collector
22817 # requires -ldl.
22818 if test "$GC" = boehm; then
22819 case "${host}" in
22820 mips-sgi-irix6*)
22821 # IRIX 6 lacks a N64 libdl.so, but only the N32 (default multilib)
22822 # libgcj.spec is used, so override here
22823 SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}"
22826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
22827 $as_echo_n "checking for main in -ldl... " >&6; }
22828 if test "${ac_cv_lib_dl_main+set}" = set; then :
22829 $as_echo_n "(cached) " >&6
22830 else
22831 ac_check_lib_save_LIBS=$LIBS
22832 LIBS="-ldl $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. */
22841 main ()
22843 return main ();
22845 return 0;
22847 _ACEOF
22848 if ac_fn_c_try_link "$LINENO"; then :
22849 ac_cv_lib_dl_main=yes
22850 else
22851 ac_cv_lib_dl_main=no
22853 rm -f core conftest.err conftest.$ac_objext \
22854 conftest$ac_exeext conftest.$ac_ext
22855 LIBS=$ac_check_lib_save_LIBS
22857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
22858 $as_echo "$ac_cv_lib_dl_main" >&6; }
22859 if test "x$ac_cv_lib_dl_main" = x""yes; then :
22860 SYSTEMSPEC="$SYSTEMSPEC -ldl"
22864 esac
22868 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
22869 case $build in
22870 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
22871 *) CLASSPATH_SEPARATOR=':' ;;
22872 esac
22875 # We must search the source tree for java.lang, since we still don't
22876 # have libgcj.jar nor java/lang/*.class
22877 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
22878 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
22880 # Since some classes depend on this one, we need its source available
22881 # before we can do any GCJ compilation test :-(
22882 if test ! -f gnu/classpath/Configuration.java; then
22883 test -d gnu || mkdir gnu
22884 test -d gnu/classpath || mkdir gnu/classpath
22885 # Note that it is not crucial that all the values here be correct.
22886 sed -e "s,@prefix@,$expanded_prefix," \
22887 -e "s,@VERSION@,$VERSION," \
22888 -e "s,@LIBDEBUG@,false," \
22889 -e "s,@INIT_LOAD_LIBRARY@,false," \
22890 -e "s,@@,$LIBGCJDEBUG," \
22891 -e "s,@default_toolkit@,$TOOLKIT," \
22892 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
22893 -e "s,@GTK_CAIRO_ENABLED@,false," \
22894 -e "s,@ECJ_JAR@,," \
22895 -e "s,@WANT_NATIVE_BIG_INTEGER@,false," \
22896 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
22897 > gnu/classpath/Configuration.java
22898 # We do not want to redirect the output of the grep below to /dev/null,
22899 # but we add /dev/null to the input list so that grep will print the
22900 # filename of Configuration.java in case it finds any matches.
22901 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
22902 as_fn_error "configure.ac is missing the substitutions above" "$LINENO" 5
22907 for ac_prog in gcj
22909 # Extract the first word of "$ac_prog", so it can be a program name with args.
22910 set dummy $ac_prog; ac_word=$2
22911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22912 $as_echo_n "checking for $ac_word... " >&6; }
22913 if test "${ac_cv_prog_GCJ+set}" = set; then :
22914 $as_echo_n "(cached) " >&6
22915 else
22916 if test -n "$GCJ"; then
22917 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
22918 else
22919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22920 for as_dir in $PATH
22922 IFS=$as_save_IFS
22923 test -z "$as_dir" && as_dir=.
22924 for ac_exec_ext in '' $ac_executable_extensions; do
22925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22926 ac_cv_prog_GCJ="$ac_prog"
22927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22928 break 2
22930 done
22931 done
22932 IFS=$as_save_IFS
22936 GCJ=$ac_cv_prog_GCJ
22937 if test -n "$GCJ"; then
22938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
22939 $as_echo "$GCJ" >&6; }
22940 else
22941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22942 $as_echo "no" >&6; }
22946 test -n "$GCJ" && break
22947 done
22948 test -n "$GCJ" || GCJ="gcj"
22950 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
22951 if test "x${GCJFLAGS-unset}" = xunset; then
22952 GCJFLAGS="-g -O2"
22956 depcc="$GCJ" am_compiler_list='gcc3 gcc'
22958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
22959 $as_echo_n "checking dependency style of $depcc... " >&6; }
22960 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
22961 $as_echo_n "(cached) " >&6
22962 else
22963 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22964 # We make a subdir and do the tests there. Otherwise we can end up
22965 # making bogus files that we don't know about and never remove. For
22966 # instance it was reported that on HP-UX the gcc test will end up
22967 # making a dummy file named `D' -- because `-MD' means `put the output
22968 # in D'.
22969 mkdir conftest.dir
22970 # Copy depcomp to subdir because otherwise we won't find it if we're
22971 # using a relative directory.
22972 cp "$am_depcomp" conftest.dir
22973 cd conftest.dir
22974 # We will build objects and dependencies in a subdirectory because
22975 # it helps to detect inapplicable dependency modes. For instance
22976 # both Tru64's cc and ICC support -MD to output dependencies as a
22977 # side effect of compilation, but ICC will put the dependencies in
22978 # the current directory while Tru64 will put them in the object
22979 # directory.
22980 mkdir sub
22982 am_cv_GCJ_dependencies_compiler_type=none
22983 if test "$am_compiler_list" = ""; then
22984 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22986 am__universal=false
22989 for depmode in $am_compiler_list; do
22990 # Setup a source with many dependencies, because some compilers
22991 # like to wrap large dependency lists on column 80 (with \), and
22992 # we should not choose a depcomp mode which is confused by this.
22994 # We need to recreate these files for each test, as the compiler may
22995 # overwrite some of them when testing with obscure command lines.
22996 # This happens at least with the AIX C compiler.
22997 : > sub/conftest.c
22998 for i in 1 2 3 4 5 6; do
22999 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23000 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23001 # Solaris 8's {/usr,}/bin/sh.
23002 touch sub/conftst$i.h
23003 done
23004 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23006 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23007 # mode. It turns out that the SunPro C++ compiler does not properly
23008 # handle `-M -o', and we need to detect this. Also, some Intel
23009 # versions had trouble with output in subdirs
23010 am__obj=sub/conftest.${OBJEXT-o}
23011 am__minus_obj="-o $am__obj"
23012 case $depmode in
23013 gcc)
23014 # This depmode causes a compiler race in universal mode.
23015 test "$am__universal" = false || continue
23017 nosideeffect)
23018 # after this tag, mechanisms are not by side-effect, so they'll
23019 # only be used when explicitly requested
23020 if test "x$enable_dependency_tracking" = xyes; then
23021 continue
23022 else
23023 break
23026 msvisualcpp | msvcmsys)
23027 # This compiler won't grok `-c -o', but also, the minuso test has
23028 # not run yet. These depmodes are late enough in the game, and
23029 # so weak that their functioning should not be impacted.
23030 am__obj=conftest.${OBJEXT-o}
23031 am__minus_obj=
23033 none) break ;;
23034 esac
23035 if depmode=$depmode \
23036 source=sub/conftest.c object=$am__obj \
23037 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23038 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23039 >/dev/null 2>conftest.err &&
23040 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23041 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23042 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23043 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23044 # icc doesn't choke on unknown options, it will just issue warnings
23045 # or remarks (even with -Werror). So we grep stderr for any message
23046 # that says an option was ignored or not supported.
23047 # When given -MP, icc 7.0 and 7.1 complain thusly:
23048 # icc: Command line warning: ignoring option '-M'; no argument required
23049 # The diagnosis changed in icc 8.0:
23050 # icc: Command line remark: option '-MP' not supported
23051 if (grep 'ignoring option' conftest.err ||
23052 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23053 am_cv_GCJ_dependencies_compiler_type=$depmode
23054 break
23057 done
23059 cd ..
23060 rm -rf conftest.dir
23061 else
23062 am_cv_GCJ_dependencies_compiler_type=none
23066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
23067 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
23068 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
23071 test "x$enable_dependency_tracking" != xno \
23072 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
23073 am__fastdepGCJ_TRUE=
23074 am__fastdepGCJ_FALSE='#'
23075 else
23076 am__fastdepGCJ_TRUE='#'
23077 am__fastdepGCJ_FALSE=
23083 # Now remove it.
23084 rm -f gnu/classpath/Configuration.java
23086 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
23088 # The cast to long int works around a bug in the HP C Compiler
23089 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23090 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23091 # This bug is HP SR number 8606223364.
23092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
23093 $as_echo_n "checking size of void *... " >&6; }
23094 if test "${ac_cv_sizeof_void_p+set}" = set; then :
23095 $as_echo_n "(cached) " >&6
23096 else
23097 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
23099 else
23100 if test "$ac_cv_type_void_p" = yes; then
23101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23103 { as_fn_set_status 77
23104 as_fn_error "cannot compute sizeof (void *)
23105 See \`config.log' for more details." "$LINENO" 5; }; }
23106 else
23107 ac_cv_sizeof_void_p=0
23112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
23113 $as_echo "$ac_cv_sizeof_void_p" >&6; }
23117 cat >>confdefs.h <<_ACEOF
23118 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23119 _ACEOF
23123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23124 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23125 if test "${ac_cv_c_bigendian+set}" = set; then :
23126 $as_echo_n "(cached) " >&6
23127 else
23128 ac_cv_c_bigendian=unknown
23129 # See if we're dealing with a universal compiler.
23130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23131 /* end confdefs.h. */
23132 #ifndef __APPLE_CC__
23133 not a universal capable compiler
23134 #endif
23135 typedef int dummy;
23137 _ACEOF
23138 if ac_fn_c_try_compile "$LINENO"; then :
23140 # Check for potential -arch flags. It is not universal unless
23141 # there are at least two -arch flags with different values.
23142 ac_arch=
23143 ac_prev=
23144 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23145 if test -n "$ac_prev"; then
23146 case $ac_word in
23147 i?86 | x86_64 | ppc | ppc64)
23148 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23149 ac_arch=$ac_word
23150 else
23151 ac_cv_c_bigendian=universal
23152 break
23155 esac
23156 ac_prev=
23157 elif test "x$ac_word" = "x-arch"; then
23158 ac_prev=arch
23160 done
23162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23163 if test $ac_cv_c_bigendian = unknown; then
23164 # See if sys/param.h defines the BYTE_ORDER macro.
23165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23166 /* end confdefs.h. */
23167 #include <sys/types.h>
23168 #include <sys/param.h>
23171 main ()
23173 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23174 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23175 && LITTLE_ENDIAN)
23176 bogus endian macros
23177 #endif
23180 return 0;
23182 _ACEOF
23183 if ac_fn_c_try_compile "$LINENO"; then :
23184 # It does; now see whether it defined to BIG_ENDIAN or not.
23185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23186 /* end confdefs.h. */
23187 #include <sys/types.h>
23188 #include <sys/param.h>
23191 main ()
23193 #if BYTE_ORDER != BIG_ENDIAN
23194 not big endian
23195 #endif
23198 return 0;
23200 _ACEOF
23201 if ac_fn_c_try_compile "$LINENO"; then :
23202 ac_cv_c_bigendian=yes
23203 else
23204 ac_cv_c_bigendian=no
23206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23210 if test $ac_cv_c_bigendian = unknown; then
23211 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23213 /* end confdefs.h. */
23214 #include <limits.h>
23217 main ()
23219 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23220 bogus endian macros
23221 #endif
23224 return 0;
23226 _ACEOF
23227 if ac_fn_c_try_compile "$LINENO"; then :
23228 # It does; now see whether it defined to _BIG_ENDIAN or not.
23229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23230 /* end confdefs.h. */
23231 #include <limits.h>
23234 main ()
23236 #ifndef _BIG_ENDIAN
23237 not big endian
23238 #endif
23241 return 0;
23243 _ACEOF
23244 if ac_fn_c_try_compile "$LINENO"; then :
23245 ac_cv_c_bigendian=yes
23246 else
23247 ac_cv_c_bigendian=no
23249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23253 if test $ac_cv_c_bigendian = unknown; then
23254 # Compile a test program.
23255 if test "$cross_compiling" = yes; then :
23256 # Try to guess by grepping values from an object file.
23257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23258 /* end confdefs.h. */
23259 short int ascii_mm[] =
23260 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23261 short int ascii_ii[] =
23262 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23263 int use_ascii (int i) {
23264 return ascii_mm[i] + ascii_ii[i];
23266 short int ebcdic_ii[] =
23267 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23268 short int ebcdic_mm[] =
23269 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23270 int use_ebcdic (int i) {
23271 return ebcdic_mm[i] + ebcdic_ii[i];
23273 extern int foo;
23276 main ()
23278 return use_ascii (foo) == use_ebcdic (foo);
23280 return 0;
23282 _ACEOF
23283 if ac_fn_c_try_compile "$LINENO"; then :
23284 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23285 ac_cv_c_bigendian=yes
23287 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23288 if test "$ac_cv_c_bigendian" = unknown; then
23289 ac_cv_c_bigendian=no
23290 else
23291 # finding both strings is unlikely to happen, but who knows?
23292 ac_cv_c_bigendian=unknown
23296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23297 else
23298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23299 /* end confdefs.h. */
23300 $ac_includes_default
23302 main ()
23305 /* Are we little or big endian? From Harbison&Steele. */
23306 union
23308 long int l;
23309 char c[sizeof (long int)];
23310 } u;
23311 u.l = 1;
23312 return u.c[sizeof (long int) - 1] == 1;
23315 return 0;
23317 _ACEOF
23318 if ac_fn_c_try_run "$LINENO"; then :
23319 ac_cv_c_bigendian=no
23320 else
23321 ac_cv_c_bigendian=yes
23323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23324 conftest.$ac_objext conftest.beam conftest.$ac_ext
23329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23330 $as_echo "$ac_cv_c_bigendian" >&6; }
23331 case $ac_cv_c_bigendian in #(
23332 yes)
23333 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23334 ;; #(
23336 ;; #(
23337 universal)
23339 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23341 ;; #(
23343 as_fn_error "unknown endianness
23344 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23345 esac
23348 ZLIBS=
23349 SYS_ZLIBS=
23350 ZINCS=
23352 if test -z "$ZLIBSPEC"; then
23353 # Use zlib from the GCC tree.
23354 ZINCS='-I$(top_srcdir)/../zlib'
23355 ZLIBS=../zlib/libzgcj_convenience.la
23356 else
23357 # System's zlib.
23358 SYS_ZLIBS="$ZLIBSPEC"
23370 if test "$NATIVE" = yes; then
23371 NATIVE_TRUE=
23372 NATIVE_FALSE='#'
23373 else
23374 NATIVE_TRUE='#'
23375 NATIVE_FALSE=
23378 if test "$enable_shared" = yes; then
23379 ENABLE_SHARED_TRUE=
23380 ENABLE_SHARED_FALSE='#'
23381 else
23382 ENABLE_SHARED_TRUE='#'
23383 ENABLE_SHARED_FALSE=
23386 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
23387 NEEDS_DATA_START_TRUE=
23388 NEEDS_DATA_START_FALSE='#'
23389 else
23390 NEEDS_DATA_START_TRUE='#'
23391 NEEDS_DATA_START_FALSE=
23394 if test -z "${with_multisubdir}"; then
23395 INSTALL_BINARIES_TRUE=
23396 INSTALL_BINARIES_FALSE='#'
23397 else
23398 INSTALL_BINARIES_TRUE='#'
23399 INSTALL_BINARIES_FALSE=
23404 # Process the option "--enable-version-specific-runtime-libs"
23405 # Calculate toolexeclibdir
23406 case ${version_specific_libs} in
23407 yes)
23408 # Need the gcc compiler version to know where to install libraries
23409 # and header files if --enable-version-specific-runtime-libs option
23410 # is selected.
23411 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
23412 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
23413 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
23414 toolexeclibdir=$toolexecmainlibdir
23417 if test -n "$with_cross_host" &&
23418 test x"$with_cross_host" != x"no"; then
23419 # Install a library built with a cross compiler in tooldir, not libdir.
23420 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
23421 toolexecmainlibdir='$(toolexecdir)/lib'
23422 else
23423 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
23424 toolexecmainlibdir='$(libdir)'
23426 multi_os_directory=`$CC -print-multi-os-directory`
23427 case $multi_os_directory in
23428 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
23429 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
23430 esac
23432 esac
23437 # Determine gcj and libgcj version number.
23438 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
23439 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
23440 GCJVERSION=$gcjversion
23443 cat >>confdefs.h <<_ACEOF
23444 #define GCJVERSION "$GCJVERSION"
23445 _ACEOF
23448 # Determine where the standard .db file and GNU Classpath JNI
23449 # libraries are found.
23450 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
23451 multi_os_directory=`$CC -print-multi-os-directory`
23452 case $multi_os_directory in
23454 dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
23457 dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
23459 esac
23464 $as_echo "#define JV_VERSION \"1.5.0\"" >>confdefs.h
23467 $as_echo "#define JV_API_VERSION \"1.5\"" >>confdefs.h
23471 case "${with_gxx_include_dir}" in
23472 yes)
23473 as_fn_error "--with-gxx-include-dir=[dir] requires a directory" "$LINENO" 5
23475 no | "")
23476 case "${enable_version_specific_runtime_libs}" in
23477 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
23479 libstdcxx_incdir='c++/$(gcc_version)'
23480 gxx_include_dir='include/$(libstdcxx_incdir)'
23481 if test -n "$with_cross_host" &&
23482 test x"$with_cross_host" != x"no"; then
23483 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
23484 else
23485 gxx_include_dir='${prefix}/'"$gxx_include_dir"
23486 fi;;
23487 esac ;;
23488 *) gxx_include_dir=${with_gxx_include_dir} ;;
23489 esac
23494 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
23495 # On that system, sys/ioctl.h will not include sys/filio.h unless
23496 # BSD_COMP is defined; just including sys/filio.h is simpler.
23497 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
23498 # for now. If you change this, you also must update natFile.cc.
23499 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
23500 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
23501 sys/socket.h netinet/in.h arpa/inet.h netdb.h \
23502 pwd.h sys/config.h stdint.h langinfo.h locale.h \
23503 dirent.h sys/rw_lock.h magic.h ifaddrs.h
23504 do :
23505 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23506 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23507 eval as_val=\$$as_ac_Header
23508 if test "x$as_val" = x""yes; then :
23509 cat >>confdefs.h <<_ACEOF
23510 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23511 _ACEOF
23515 done
23518 # sys/socket.h is a prerequisite for net/if.h on Solaris.
23519 for ac_header in net/if.h
23520 do :
23521 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
23522 #ifdef HAVE_SYS_SOCKET_H
23523 #include <sys/socket.h>
23524 #endif
23527 if test "x$ac_cv_header_net_if_h" = x""yes; then :
23528 cat >>confdefs.h <<_ACEOF
23529 #define HAVE_NET_IF_H 1
23530 _ACEOF
23534 done
23537 for ac_header in inttypes.h
23538 do :
23539 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
23540 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
23541 cat >>confdefs.h <<_ACEOF
23542 #define HAVE_INTTYPES_H 1
23543 _ACEOF
23546 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
23549 $as_echo "#define JV_HAVE_INTTYPES_H 1" >>confdefs.h
23554 done
23557 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23558 if test "x$ac_cv_type_ssize_t" = x""yes; then :
23560 else
23562 cat >>confdefs.h <<_ACEOF
23563 #define ssize_t int
23564 _ACEOF
23568 ac_fn_c_check_type "$LINENO" "magic_t" "ac_cv_type_magic_t" "
23569 #ifdef HAVE_MAGIC_H
23570 #include <magic.h>
23571 #endif
23573 if test "x$ac_cv_type_magic_t" = x""yes; then :
23576 $as_echo "#define HAVE_MAGIC_T 1" >>confdefs.h
23581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5
23582 $as_echo_n "checking for in_addr_t... " >&6; }
23583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23584 /* end confdefs.h. */
23585 #include <sys/types.h>
23586 #if STDC_HEADERS
23587 #include <stdlib.h>
23588 #include <stddef.h>
23589 #endif
23590 #if HAVE_NETINET_IN_H
23591 #include <netinet/in.h>
23592 #endif
23594 main ()
23596 in_addr_t foo;
23598 return 0;
23600 _ACEOF
23601 if ac_fn_c_try_compile "$LINENO"; then :
23603 $as_echo "#define HAVE_IN_ADDR_T 1" >>confdefs.h
23605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23606 $as_echo "yes" >&6; }
23607 else
23608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23609 $as_echo "no" >&6; }
23611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ip_mreq is in netinet/in.h" >&5
23614 $as_echo_n "checking whether struct ip_mreq is in netinet/in.h... " >&6; }
23615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23616 /* end confdefs.h. */
23617 #include <netinet/in.h>
23619 main ()
23621 struct ip_mreq mreq;
23623 return 0;
23625 _ACEOF
23626 if ac_fn_c_try_compile "$LINENO"; then :
23628 $as_echo "#define HAVE_STRUCT_IP_MREQ 1" >>confdefs.h
23630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23631 $as_echo "yes" >&6; }
23632 else
23633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23634 $as_echo "no" >&6; }
23636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ipv6_mreq is in netinet/in.h" >&5
23639 $as_echo_n "checking whether struct ipv6_mreq is in netinet/in.h... " >&6; }
23640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23641 /* end confdefs.h. */
23642 #include <netinet/in.h>
23644 main ()
23646 struct ipv6_mreq mreq6;
23648 return 0;
23650 _ACEOF
23651 if ac_fn_c_try_compile "$LINENO"; then :
23653 $as_echo "#define HAVE_STRUCT_IPV6_MREQ 1" >>confdefs.h
23655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23656 $as_echo "yes" >&6; }
23657 else
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23659 $as_echo "no" >&6; }
23661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
23664 $as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
23665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23666 /* end confdefs.h. */
23667 #include <netinet/in.h>
23669 main ()
23671 struct sockaddr_in6 addr6;
23673 return 0;
23675 _ACEOF
23676 if ac_fn_c_try_compile "$LINENO"; then :
23678 $as_echo "#define HAVE_INET6 1" >>confdefs.h
23680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23681 $as_echo "yes" >&6; }
23682 else
23683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23684 $as_echo "no" >&6; }
23686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
23689 $as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
23690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23691 /* end confdefs.h. */
23692 #define _POSIX_PII_SOCKET
23693 #include <sys/types.h>
23694 #include <sys/socket.h>
23696 main ()
23698 socklen_t x = 5;
23700 return 0;
23702 _ACEOF
23703 if ac_fn_c_try_compile "$LINENO"; then :
23705 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
23707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23708 $as_echo "yes" >&6; }
23709 else
23710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23711 $as_echo "no" >&6; }
23713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
23716 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
23717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23718 /* end confdefs.h. */
23719 #include <time.h>
23721 main ()
23723 struct tm tim; tim.tm_gmtoff = 0;
23725 return 0;
23727 _ACEOF
23728 if ac_fn_c_try_compile "$LINENO"; then :
23730 $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
23732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23733 $as_echo "yes" >&6; }
23734 else
23735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23736 $as_echo "no" >&6; }
23737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
23738 $as_echo_n "checking for global timezone variable... " >&6; }
23739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23740 /* end confdefs.h. */
23741 #include <time.h>
23743 main ()
23745 void i(){long z2 = 2*timezone;}
23747 return 0;
23749 _ACEOF
23750 if ac_fn_c_try_compile "$LINENO"; then :
23752 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
23754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23755 $as_echo "yes" >&6; }
23756 else
23757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23758 $as_echo "no" >&6; }
23759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
23760 $as_echo_n "checking for global _timezone variable... " >&6; }
23761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23762 /* end confdefs.h. */
23763 #include <time.h>
23765 main ()
23767 long z2 = _timezone;
23769 return 0;
23771 _ACEOF
23772 if ac_fn_c_try_compile "$LINENO"; then :
23774 $as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
23776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23777 $as_echo "yes" >&6; }
23778 else
23779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23780 $as_echo "no" >&6; }
23782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23788 for ac_prog in perl
23790 # Extract the first word of "$ac_prog", so it can be a program name with args.
23791 set dummy $ac_prog; ac_word=$2
23792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23793 $as_echo_n "checking for $ac_word... " >&6; }
23794 if test "${ac_cv_prog_PERL+set}" = set; then :
23795 $as_echo_n "(cached) " >&6
23796 else
23797 if test -n "$PERL"; then
23798 ac_cv_prog_PERL="$PERL" # Let the user override the test.
23799 else
23800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23801 for as_dir in $PATH
23803 IFS=$as_save_IFS
23804 test -z "$as_dir" && as_dir=.
23805 for ac_exec_ext in '' $ac_executable_extensions; do
23806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23807 ac_cv_prog_PERL="$ac_prog"
23808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23809 break 2
23811 done
23812 done
23813 IFS=$as_save_IFS
23817 PERL=$ac_cv_prog_PERL
23818 if test -n "$PERL"; then
23819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
23820 $as_echo "$PERL" >&6; }
23821 else
23822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23823 $as_echo "no" >&6; }
23827 test -n "$PERL" && break
23828 done
23829 test -n "$PERL" || PERL="false"
23832 SYSDEP_SOURCES=
23833 SIGNAL_HANDLER_AUX=
23835 case "${host}" in
23836 i?86-*-linux*)
23837 SIGNAL_HANDLER=include/i386-signal.h
23839 sparc*-sun-solaris*)
23840 SIGNAL_HANDLER=include/sparc-signal.h
23842 # ia64-*)
23843 # SYSDEP_SOURCES=sysdep/ia64.c
23844 # test -d sysdep || mkdir sysdep
23845 # ;;
23846 hppa*-*-linux*)
23847 SIGNAL_HANDLER=include/pa-signal.h
23849 hppa*-hp-hpux*)
23850 SIGNAL_HANDLER=include/hppa-signal.h
23852 ia64-*-linux*)
23853 SIGNAL_HANDLER=include/dwarf2-signal.h
23855 powerpc*-*-linux*)
23856 SIGNAL_HANDLER=include/powerpc-signal.h
23858 alpha*-*-linux*)
23859 SIGNAL_HANDLER=include/dwarf2-signal.h
23861 s390*-*-linux*)
23862 SIGNAL_HANDLER=include/s390-signal.h
23864 x86_64*-*-linux*)
23865 SIGNAL_HANDLER=include/x86_64-signal.h
23866 SIGNAL_HANDLER_AUX=include/i386-signal.h
23868 sparc*-*-linux*)
23869 SIGNAL_HANDLER=include/dwarf2-signal.h
23871 sh*-*-linux*)
23872 SIGNAL_HANDLER=include/sh-signal.h
23874 *mingw*)
23875 SIGNAL_HANDLER=include/win32-signal.h
23877 mips*-*-linux*)
23878 SIGNAL_HANDLER=include/mips-signal.h
23880 m68*-*-linux*)
23881 SIGNAL_HANDLER=include/dwarf2-signal.h
23883 powerpc*-*-darwin* | i?86-*-darwin[912]* | x86_64-*-darwin[912]*)
23884 SIGNAL_HANDLER=include/darwin-signal.h
23886 powerpc*-*-aix*)
23887 SIGNAL_HANDLER=include/aix-signal.h
23890 SIGNAL_HANDLER=include/default-signal.h
23892 esac
23894 # If we're using sjlj exceptions, forget what we just learned.
23895 if test "$enable_sjlj_exceptions" = yes; then
23896 SIGNAL_HANDLER=include/default-signal.h
23897 SIGNAL_HANDLER_AUX=
23902 if test -z "$SIGNAL_HANDLER_AUX"; then
23903 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
23906 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
23909 if test "${multilib}" = "yes"; then
23910 multilib_arg="--enable-multilib"
23911 else
23912 multilib_arg=
23915 # See if we support thread-local storage.
23918 # Check whether --enable-tls was given.
23919 if test "${enable_tls+set}" = set; then :
23920 enableval=$enable_tls;
23921 case "$enableval" in
23922 yes|no) ;;
23923 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
23924 esac
23926 else
23927 enable_tls=yes
23931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
23932 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
23933 if test "${gcc_cv_have_tls+set}" = set; then :
23934 $as_echo_n "(cached) " >&6
23935 else
23937 if test "$cross_compiling" = yes; then :
23938 if test x$gcc_no_link = xyes; then
23939 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23942 /* end confdefs.h. */
23943 __thread int a; int b; int main() { return a = b; }
23944 _ACEOF
23945 if ac_fn_c_try_link "$LINENO"; then :
23946 chktls_save_LDFLAGS="$LDFLAGS"
23947 case $host in
23948 *-*-linux*)
23949 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
23951 esac
23952 chktls_save_CFLAGS="$CFLAGS"
23953 CFLAGS="-fPIC $CFLAGS"
23954 if test x$gcc_no_link = xyes; then
23955 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23958 /* end confdefs.h. */
23959 int f() { return 0; }
23960 _ACEOF
23961 if ac_fn_c_try_link "$LINENO"; then :
23962 if test x$gcc_no_link = xyes; then
23963 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23966 /* end confdefs.h. */
23967 __thread int a; int b; int f() { return a = b; }
23968 _ACEOF
23969 if ac_fn_c_try_link "$LINENO"; then :
23970 gcc_cv_have_tls=yes
23971 else
23972 gcc_cv_have_tls=no
23974 rm -f core conftest.err conftest.$ac_objext \
23975 conftest$ac_exeext conftest.$ac_ext
23976 else
23977 gcc_cv_have_tls=yes
23979 rm -f core conftest.err conftest.$ac_objext \
23980 conftest$ac_exeext conftest.$ac_ext
23981 CFLAGS="$chktls_save_CFLAGS"
23982 LDFLAGS="$chktls_save_LDFLAGS"
23983 else
23984 gcc_cv_have_tls=no
23986 rm -f core conftest.err conftest.$ac_objext \
23987 conftest$ac_exeext conftest.$ac_ext
23990 else
23991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23992 /* end confdefs.h. */
23993 __thread int a; int b; int main() { return a = b; }
23994 _ACEOF
23995 if ac_fn_c_try_run "$LINENO"; then :
23996 chktls_save_LDFLAGS="$LDFLAGS"
23997 LDFLAGS="-static $LDFLAGS"
23998 if test x$gcc_no_link = xyes; then
23999 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24002 /* end confdefs.h. */
24003 int main() { return 0; }
24004 _ACEOF
24005 if ac_fn_c_try_link "$LINENO"; then :
24006 if test "$cross_compiling" = yes; then :
24007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24009 as_fn_error "cannot run test program while cross compiling
24010 See \`config.log' for more details." "$LINENO" 5; }
24011 else
24012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24013 /* end confdefs.h. */
24014 __thread int a; int b; int main() { return a = b; }
24015 _ACEOF
24016 if ac_fn_c_try_run "$LINENO"; then :
24017 gcc_cv_have_tls=yes
24018 else
24019 gcc_cv_have_tls=no
24021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24022 conftest.$ac_objext conftest.beam conftest.$ac_ext
24025 else
24026 gcc_cv_have_tls=yes
24028 rm -f core conftest.err conftest.$ac_objext \
24029 conftest$ac_exeext conftest.$ac_ext
24030 LDFLAGS="$chktls_save_LDFLAGS"
24031 if test $gcc_cv_have_tls = yes; then
24032 chktls_save_CFLAGS="$CFLAGS"
24033 thread_CFLAGS=failed
24034 for flag in '' '-pthread' '-lpthread'; do
24035 CFLAGS="$flag $chktls_save_CFLAGS"
24036 if test x$gcc_no_link = xyes; then
24037 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24040 /* end confdefs.h. */
24041 #include <pthread.h>
24042 void *g(void *d) { return NULL; }
24044 main ()
24046 pthread_t t; pthread_create(&t,NULL,g,NULL);
24048 return 0;
24050 _ACEOF
24051 if ac_fn_c_try_link "$LINENO"; then :
24052 thread_CFLAGS="$flag"
24054 rm -f core conftest.err conftest.$ac_objext \
24055 conftest$ac_exeext conftest.$ac_ext
24056 if test "X$thread_CFLAGS" != Xfailed; then
24057 break
24059 done
24060 CFLAGS="$chktls_save_CFLAGS"
24061 if test "X$thread_CFLAGS" != Xfailed; then
24062 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
24063 if test "$cross_compiling" = yes; then :
24064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24066 as_fn_error "cannot run test program while cross compiling
24067 See \`config.log' for more details." "$LINENO" 5; }
24068 else
24069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24070 /* end confdefs.h. */
24071 #include <pthread.h>
24072 __thread int a;
24073 static int *a_in_other_thread;
24074 static void *
24075 thread_func (void *arg)
24077 a_in_other_thread = &a;
24078 return (void *)0;
24081 main ()
24083 pthread_t thread;
24084 void *thread_retval;
24085 int *a_in_main_thread;
24086 if (pthread_create (&thread, (pthread_attr_t *)0,
24087 thread_func, (void *)0))
24088 return 0;
24089 a_in_main_thread = &a;
24090 if (pthread_join (thread, &thread_retval))
24091 return 0;
24092 return (a_in_other_thread == a_in_main_thread);
24094 return 0;
24096 _ACEOF
24097 if ac_fn_c_try_run "$LINENO"; then :
24098 gcc_cv_have_tls=yes
24099 else
24100 gcc_cv_have_tls=no
24102 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24103 conftest.$ac_objext conftest.beam conftest.$ac_ext
24106 CFLAGS="$chktls_save_CFLAGS"
24109 else
24110 gcc_cv_have_tls=no
24112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24113 conftest.$ac_objext conftest.beam conftest.$ac_ext
24117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
24118 $as_echo "$gcc_cv_have_tls" >&6; }
24119 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
24121 $as_echo "#define HAVE_TLS 1" >>confdefs.h
24125 # For _Unwind_GetIPInfo.
24128 # Check whether --with-system-libunwind was given.
24129 if test "${with_system_libunwind+set}" = set; then :
24130 withval=$with_system_libunwind;
24133 # If system-libunwind was not specifically set, pick a default setting.
24134 if test x$with_system_libunwind = x; then
24135 case ${target} in
24136 ia64-*-hpux*) with_system_libunwind=yes ;;
24137 *) with_system_libunwind=no ;;
24138 esac
24140 # Based on system-libunwind and target, do we have ipinfo?
24141 if test x$with_system_libunwind = xyes; then
24142 case ${target} in
24143 ia64-*-*) have_unwind_getipinfo=no ;;
24144 *) have_unwind_getipinfo=yes ;;
24145 esac
24146 else
24147 # Darwin before version 9 does not have _Unwind_GetIPInfo.
24149 case ${target} in
24150 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
24151 *) have_unwind_getipinfo=yes ;;
24152 esac
24156 if test x$have_unwind_getipinfo = xyes; then
24158 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
24163 # See if linker supports anonymous version scripts.
24164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous version scripts" >&5
24165 $as_echo_n "checking whether ld supports anonymous version scripts... " >&6; }
24166 if test "${libjava_cv_anon_version_script+set}" = set; then :
24167 $as_echo_n "(cached) " >&6
24168 else
24169 save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
24170 libjava_cv_anon_version_script=no
24171 CFLAGS="$CFLAGS -fPIC"; LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
24172 echo '{ global: globalsymb*; local: *; };' > conftest.map
24173 if test x$gcc_no_link = xyes; then
24174 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24177 /* end confdefs.h. */
24178 void globalsymbol (void) {} void localsymbol (void) {}
24180 main ()
24184 return 0;
24186 _ACEOF
24187 if ac_fn_c_try_link "$LINENO"; then :
24188 libjava_cv_anon_version_script=yes
24190 rm -f core conftest.err conftest.$ac_objext \
24191 conftest$ac_exeext conftest.$ac_ext
24192 CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
24195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_anon_version_script" >&5
24196 $as_echo "$libjava_cv_anon_version_script" >&6; }
24197 if test "$libjava_cv_anon_version_script" = yes; then
24198 ANONVERSCRIPT_TRUE=
24199 ANONVERSCRIPT_FALSE='#'
24200 else
24201 ANONVERSCRIPT_TRUE='#'
24202 ANONVERSCRIPT_FALSE=
24206 # Check if linker supports static linking on a per library basis
24207 LD_START_STATIC_SPEC=
24208 LD_FINISH_STATIC_SPEC=
24209 if $LD --help 2>&1 | grep -q -e -call_shared ; then
24210 if $LD --help 2>&1 | grep -q -e -non_shared ; then
24211 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
24212 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
24218 here=`${PWDCMD-pwd}`
24221 # We get this from the environment.
24225 # Check whether --with-python-dir was given.
24226 if test "${with_python_dir+set}" = set; then :
24227 withval=$with_python_dir; with_python_dir=$withval
24228 else
24229 with_python_dir=""
24233 if test "x${with_python_dir}" = "x"
24234 then
24235 # Needed for installing Python modules during make install.
24236 python_mod_dir="\${prefix}/share/python"
24237 # Needed for substituting into aot-compile*
24238 python_mod_dir_expanded="${expanded_prefix}/share/python"
24239 else
24240 python_mod_dir="\${prefix}${with_python_dir}"
24241 python_mod_dir_expanded="${expanded_prefix}${with_python_dir}"
24243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Python modules dir: ${python_mod_dir_expanded}" >&5
24244 $as_echo "Python modules dir: ${python_mod_dir_expanded}" >&6; };
24248 # needed for aot-compile-rpm
24249 MAKE=`which make`
24252 # Check whether --enable-aot-compile-rpm was given.
24253 if test "${enable_aot_compile_rpm+set}" = set; then :
24254 enableval=$enable_aot_compile_rpm; case "${enableval}" in
24255 yes) AOT_RPM_ENABLED=yes ;;
24256 no) AOT_RPM_ENABLED=no ;;
24257 *) as_fn_error "Unknown argument to enable/disable aot-compile-rpm" "$LINENO" 5 ;;
24258 esac
24259 else
24260 AOT_RPM_ENABLED=no
24264 if test "x${AOT_RPM_ENABLED}" = xyes; then
24265 INSTALL_AOT_RPM_TRUE=
24266 INSTALL_AOT_RPM_FALSE='#'
24267 else
24268 INSTALL_AOT_RPM_TRUE='#'
24269 INSTALL_AOT_RPM_FALSE=
24273 # Check whether --enable-java-home was given.
24274 if test "${enable_java_home+set}" = set; then :
24275 enableval=$enable_java_home; case "${enableval}" in
24276 yes) JAVA_HOME_ENABLED=yes ;;
24277 no) JAVA_HOME_ENABLED=no ;;
24278 *) as_fn_error "Unknown argument to enable/disable java-home" "$LINENO" 5 ;;
24279 esac
24280 else
24281 JAVA_HOME_ENABLED=no
24285 if test "x${JAVA_HOME_ENABLED}" = xyes; then
24286 CREATE_JAVA_HOME_TRUE=
24287 CREATE_JAVA_HOME_FALSE='#'
24288 else
24289 CREATE_JAVA_HOME_TRUE='#'
24290 CREATE_JAVA_HOME_FALSE=
24294 # Only do these checks if java-home above is enabled.
24295 if test "x${JAVA_HOME_ENABLED}" = xyes
24296 then
24299 # Check whether --with-gcc-suffix was given.
24300 if test "${with_gcc_suffix+set}" = set; then :
24301 withval=$with_gcc_suffix; gcc_suffix=$withval
24302 else
24303 gcc_suffix=""
24306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCC suffix: ${gcc_suffix}" >&5
24307 $as_echo "GCC suffix: ${gcc_suffix}" >&6; }
24311 # Check whether --with-arch-directory was given.
24312 if test "${with_arch_directory+set}" = set; then :
24313 withval=$with_arch_directory; host_cpu=$withval
24314 else
24315 host_cpu=""
24320 # Check whether --with-os-directory was given.
24321 if test "${with_os_directory+set}" = set; then :
24322 withval=$with_os_directory; host_os=$withval
24323 else
24324 host_os=""
24329 # Check whether --with-origin-name was given.
24330 if test "${with_origin_name+set}" = set; then :
24331 withval=$with_origin_name; origin_name=$withval
24332 else
24333 origin_name=gcj${gcc_suffix}
24336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JPackage origin name: ${origin_name}" >&5
24337 $as_echo "JPackage origin name: ${origin_name}" >&6; }
24340 # Check whether --with-arch-suffix was given.
24341 if test "${with_arch_suffix+set}" = set; then :
24342 withval=$with_arch_suffix; arch_suffix=$withval
24343 else
24344 arch_suffix=""
24347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch suffix: ${arch_suffix}" >&5
24348 $as_echo "arch suffix: ${arch_suffix}" >&6; }
24351 # Check whether --with-jvm-root-dir was given.
24352 if test "${with_jvm_root_dir+set}" = set; then :
24353 withval=$with_jvm_root_dir; jvm_root_dir=$withval
24354 else
24355 jvm_root_dir="\${prefix}/lib/jvm"
24358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM root installation directory: ${jvm_root_dir}" >&5
24359 $as_echo "JVM root installation directory: ${jvm_root_dir}" >&6; }
24362 # Check whether --with-jvm-jar-dir was given.
24363 if test "${with_jvm_jar_dir+set}" = set; then :
24364 withval=$with_jvm_jar_dir; jvm_jar_dir=$withval
24365 else
24366 jvm_jar_dir=\${prefix}/lib/jvm-exports
24369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JAR root installation directory: ${jvm_jar_dir}" >&5
24370 $as_echo "JAR root installation directory: ${jvm_jar_dir}" >&6; }
24372 JAVA_VERSION=1.5.0
24373 BUILD_VERSION=0
24376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Java version: ${JAVA_VERSION}" >&5
24377 $as_echo "Java version: ${JAVA_VERSION}" >&6; }
24379 jre_dir=jre
24380 jre_lnk=jre-${JAVA_VERSION}-${origin_name}
24381 sdk_lnk=java-${JAVA_VERSION}-${origin_name}
24383 JVM_ROOT_DIR=${jvm_root_dir}
24385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5
24386 $as_echo "JVM ROOT directory: ${JVM_ROOT_DIR}" >&6; }
24388 JVM_JAR_ROOT_DIR=${jvm_jar_dir}
24390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5
24391 $as_echo "JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6; }
24393 JVM_JAR_DIR=${jvm_jar_dir}
24395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5
24396 $as_echo "JVM JAR directory: ${JVM_JAR_DIR}" >&6; }
24398 JRE_DIR=${jre_dir}
24401 JRE_LNK=${jre_lnk}
24404 SDK_LNK=${sdk_lnk}
24407 SDK_BIN_DIR=${jvm_root_dir}/bin
24409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK tools directory: ${SDK_BIN_DIR}" >&5
24410 $as_echo "SDK tools directory: ${SDK_BIN_DIR}" >&6; }
24412 SDK_LIB_DIR=${jvm_root_dir}/lib
24414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK jar directory: ${SDK_LIB_DIR}" >&5
24415 $as_echo "SDK jar directory: ${SDK_LIB_DIR}" >&6; }
24417 SDK_INCLUDE_DIR=${jvm_root_dir}/include
24419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5
24420 $as_echo "SDK include directory: ${SDK_INCLUDE_DIR}" >&6; }
24422 JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin
24424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE tools directory: ${JRE_BIN_DIR}" >&5
24425 $as_echo "JRE tools directory: ${JRE_BIN_DIR}" >&6; }
24427 JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib
24429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE lib directory: ${JRE_LIB_DIR}" >&5
24430 $as_echo "JRE lib directory: ${JRE_LIB_DIR}" >&6; }
24432 # Find gcj prefix using gcj found in PATH.
24433 gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"`
24435 # Where do the gcj binaries live?
24436 # For jhbuild based builds, they all live in a sibling of bin called
24437 # gcj-bin. Check for gcj-bin first, and use bin otherwise.
24438 GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi`
24440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5
24441 $as_echo "GCJ tools directory: ${GCJ_BIN_DIR}" >&6; }
24443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host is ${host}" >&5
24444 $as_echo "host is ${host}" >&6; }
24445 if test "x${host_cpu}" = "x"
24446 then
24447 case ${host} in
24448 *-mingw* | *-cygwin*)
24449 host_cpu=x86;;
24450 i486-* | i586-* | i686-*)
24451 host_cpu=i386;;
24452 x86_64-*)
24453 host_cpu=amd64;;
24455 host_cpu=${host_cpu};;
24456 esac
24458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch directory: ${host_cpu}" >&5
24459 $as_echo "arch directory: ${host_cpu}" >&6; }
24460 CPU=${host_cpu}
24463 if test "x${host_os}" = "x"
24464 then
24465 case ${host} in
24466 *-mingw* | *-cygwin*)
24467 host_os=win32;;
24468 *-linux*)
24469 host_os=linux;;
24471 host_os=${host_os};;
24472 esac
24474 echo os directory: ${host_os}
24475 OS=${host_os}
24478 # make an expanded $libdir, for substituting into
24479 # scripts (and other non-Makefile things).
24480 LIBDIR=$libdir
24481 if test "x${exec_prefix}" = "xNONE"
24482 then
24483 lib_exec_prefix=$expanded_prefix
24484 else
24485 lib_exec_prefix=$exec_prefix
24487 LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"`
24491 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"
24494 if test ${multilib} = yes; then
24495 multilib_arg="--enable-multilib"
24496 else
24497 multilib_arg=
24500 ac_config_files="$ac_config_files scripts/jar"
24502 cat >confcache <<\_ACEOF
24503 # This file is a shell script that caches the results of configure
24504 # tests run on this system so they can be shared between configure
24505 # scripts and configure runs, see configure's option --config-cache.
24506 # It is not useful on other systems. If it contains results you don't
24507 # want to keep, you may remove or edit it.
24509 # config.status only pays attention to the cache file if you give it
24510 # the --recheck option to rerun configure.
24512 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24513 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24514 # following values.
24516 _ACEOF
24518 # The following way of writing the cache mishandles newlines in values,
24519 # but we know of no workaround that is simple, portable, and efficient.
24520 # So, we kill variables containing newlines.
24521 # Ultrix sh set writes to stderr and can't be redirected directly,
24522 # and sets the high bit in the cache file unless we assign to the vars.
24524 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24525 eval ac_val=\$$ac_var
24526 case $ac_val in #(
24527 *${as_nl}*)
24528 case $ac_var in #(
24529 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24530 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24531 esac
24532 case $ac_var in #(
24533 _ | IFS | as_nl) ;; #(
24534 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24535 *) { eval $ac_var=; unset $ac_var;} ;;
24536 esac ;;
24537 esac
24538 done
24540 (set) 2>&1 |
24541 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24542 *${as_nl}ac_space=\ *)
24543 # `set' does not quote correctly, so add quotes: double-quote
24544 # substitution turns \\\\ into \\, and sed turns \\ into \.
24545 sed -n \
24546 "s/'/'\\\\''/g;
24547 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24548 ;; #(
24550 # `set' quotes correctly as required by POSIX, so do not add quotes.
24551 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24553 esac |
24554 sort
24556 sed '
24557 /^ac_cv_env_/b end
24558 t clear
24559 :clear
24560 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24561 t end
24562 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24563 :end' >>confcache
24564 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24565 if test -w "$cache_file"; then
24566 test "x$cache_file" != "x/dev/null" &&
24567 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24568 $as_echo "$as_me: updating cache $cache_file" >&6;}
24569 cat confcache >$cache_file
24570 else
24571 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24572 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24575 rm -f confcache
24577 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24578 # Let make expand exec_prefix.
24579 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24581 DEFS=-DHAVE_CONFIG_H
24583 ac_libobjs=
24584 ac_ltlibobjs=
24585 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24586 # 1. Remove the extension, and $U if already installed.
24587 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24588 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24589 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24590 # will be set to the directory where LIBOBJS objects are built.
24591 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24592 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24593 done
24594 LIBOBJS=$ac_libobjs
24596 LTLIBOBJS=$ac_ltlibobjs
24599 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
24600 as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
24601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24603 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
24604 as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
24605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24607 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24608 as_fn_error "conditional \"AMDEP\" was never defined.
24609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24611 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24612 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24615 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24616 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
24617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24619 if test -n "$EXEEXT"; then
24620 am__EXEEXT_TRUE=
24621 am__EXEEXT_FALSE='#'
24622 else
24623 am__EXEEXT_TRUE='#'
24624 am__EXEEXT_FALSE=
24627 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24628 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
24629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24631 if test -z "${BUILD_SUBLIBS_TRUE}" && test -z "${BUILD_SUBLIBS_FALSE}"; then
24632 as_fn_error "conditional \"BUILD_SUBLIBS\" was never defined.
24633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24635 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
24636 as_fn_error "conditional \"XLIB_AWT\" was never defined.
24637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24639 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
24640 as_fn_error "conditional \"X_AWT\" was never defined.
24641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24643 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24644 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24647 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24648 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24651 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
24652 as_fn_error "conditional \"TESTSUBDIR\" was never defined.
24653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24655 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
24656 as_fn_error "conditional \"BUILD_ECJ1\" was never defined.
24657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24659 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
24660 as_fn_error "conditional \"INSTALL_ECJ_JAR\" was never defined.
24661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24663 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
24664 as_fn_error "conditional \"JAVA_HOME_SET\" was never defined.
24665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24667 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
24668 as_fn_error "conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
24669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24671 if test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE}" && test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE}"; then
24672 as_fn_error "conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
24673 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24675 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
24676 as_fn_error "conditional \"INTERPRETER\" was never defined.
24677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24679 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
24680 as_fn_error "conditional \"USING_WIN32_PLATFORM\" was never defined.
24681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24683 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
24684 as_fn_error "conditional \"USING_POSIX_PLATFORM\" was never defined.
24685 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24687 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
24688 as_fn_error "conditional \"USING_DARWIN_CRT\" was never defined.
24689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24691 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
24692 as_fn_error "conditional \"USING_BOEHMGC\" was never defined.
24693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24695 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
24696 as_fn_error "conditional \"USING_NOGC\" was never defined.
24697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24699 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
24700 as_fn_error "conditional \"USING_POSIX_THREADS\" was never defined.
24701 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24703 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
24704 as_fn_error "conditional \"USING_WIN32_THREADS\" was never defined.
24705 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24707 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
24708 as_fn_error "conditional \"USING_NO_THREADS\" was never defined.
24709 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24711 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
24712 as_fn_error "conditional \"USE_LIBGCJ_BC\" was never defined.
24713 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24715 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
24716 as_fn_error "conditional \"USING_GCC\" was never defined.
24717 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24719 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24720 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24721 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24724 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
24725 as_fn_error "conditional \"NATIVE\" was never defined.
24726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24728 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
24729 as_fn_error "conditional \"ENABLE_SHARED\" was never defined.
24730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24732 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
24733 as_fn_error "conditional \"NEEDS_DATA_START\" was never defined.
24734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24736 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
24737 as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
24738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24740 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
24741 as_fn_error "conditional \"ANONVERSCRIPT\" was never defined.
24742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24744 if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then
24745 as_fn_error "conditional \"INSTALL_AOT_RPM\" was never defined.
24746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24748 if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then
24749 as_fn_error "conditional \"CREATE_JAVA_HOME\" was never defined.
24750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24753 : ${CONFIG_STATUS=./config.status}
24754 ac_write_fail=0
24755 ac_clean_files_save=$ac_clean_files
24756 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24757 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24758 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24759 as_write_fail=0
24760 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24761 #! $SHELL
24762 # Generated by $as_me.
24763 # Run this file to recreate the current configuration.
24764 # Compiler output produced by configure, useful for debugging
24765 # configure, is in config.log if it exists.
24767 debug=false
24768 ac_cs_recheck=false
24769 ac_cs_silent=false
24771 SHELL=\${CONFIG_SHELL-$SHELL}
24772 export SHELL
24773 _ASEOF
24774 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24775 ## -------------------- ##
24776 ## M4sh Initialization. ##
24777 ## -------------------- ##
24779 # Be more Bourne compatible
24780 DUALCASE=1; export DUALCASE # for MKS sh
24781 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24782 emulate sh
24783 NULLCMD=:
24784 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24785 # is contrary to our usage. Disable this feature.
24786 alias -g '${1+"$@"}'='"$@"'
24787 setopt NO_GLOB_SUBST
24788 else
24789 case `(set -o) 2>/dev/null` in #(
24790 *posix*) :
24791 set -o posix ;; #(
24792 *) :
24794 esac
24798 as_nl='
24800 export as_nl
24801 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24802 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24803 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24804 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24805 # Prefer a ksh shell builtin over an external printf program on Solaris,
24806 # but without wasting forks for bash or zsh.
24807 if test -z "$BASH_VERSION$ZSH_VERSION" \
24808 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24809 as_echo='print -r --'
24810 as_echo_n='print -rn --'
24811 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24812 as_echo='printf %s\n'
24813 as_echo_n='printf %s'
24814 else
24815 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24816 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24817 as_echo_n='/usr/ucb/echo -n'
24818 else
24819 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24820 as_echo_n_body='eval
24821 arg=$1;
24822 case $arg in #(
24823 *"$as_nl"*)
24824 expr "X$arg" : "X\\(.*\\)$as_nl";
24825 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24826 esac;
24827 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24829 export as_echo_n_body
24830 as_echo_n='sh -c $as_echo_n_body as_echo'
24832 export as_echo_body
24833 as_echo='sh -c $as_echo_body as_echo'
24836 # The user is always right.
24837 if test "${PATH_SEPARATOR+set}" != set; then
24838 PATH_SEPARATOR=:
24839 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24840 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24841 PATH_SEPARATOR=';'
24846 # IFS
24847 # We need space, tab and new line, in precisely that order. Quoting is
24848 # there to prevent editors from complaining about space-tab.
24849 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24850 # splitting by setting IFS to empty value.)
24851 IFS=" "" $as_nl"
24853 # Find who we are. Look in the path if we contain no directory separator.
24854 case $0 in #((
24855 *[\\/]* ) as_myself=$0 ;;
24856 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24857 for as_dir in $PATH
24859 IFS=$as_save_IFS
24860 test -z "$as_dir" && as_dir=.
24861 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24862 done
24863 IFS=$as_save_IFS
24866 esac
24867 # We did not find ourselves, most probably we were run as `sh COMMAND'
24868 # in which case we are not to be found in the path.
24869 if test "x$as_myself" = x; then
24870 as_myself=$0
24872 if test ! -f "$as_myself"; then
24873 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24874 exit 1
24877 # Unset variables that we do not need and which cause bugs (e.g. in
24878 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24879 # suppresses any "Segmentation fault" message there. '((' could
24880 # trigger a bug in pdksh 5.2.14.
24881 for as_var in BASH_ENV ENV MAIL MAILPATH
24882 do eval test x\${$as_var+set} = xset \
24883 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24884 done
24885 PS1='$ '
24886 PS2='> '
24887 PS4='+ '
24889 # NLS nuisances.
24890 LC_ALL=C
24891 export LC_ALL
24892 LANGUAGE=C
24893 export LANGUAGE
24895 # CDPATH.
24896 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24899 # as_fn_error ERROR [LINENO LOG_FD]
24900 # ---------------------------------
24901 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24902 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24903 # script with status $?, using 1 if that was 0.
24904 as_fn_error ()
24906 as_status=$?; test $as_status -eq 0 && as_status=1
24907 if test "$3"; then
24908 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24909 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24911 $as_echo "$as_me: error: $1" >&2
24912 as_fn_exit $as_status
24913 } # as_fn_error
24916 # as_fn_set_status STATUS
24917 # -----------------------
24918 # Set $? to STATUS, without forking.
24919 as_fn_set_status ()
24921 return $1
24922 } # as_fn_set_status
24924 # as_fn_exit STATUS
24925 # -----------------
24926 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24927 as_fn_exit ()
24929 set +e
24930 as_fn_set_status $1
24931 exit $1
24932 } # as_fn_exit
24934 # as_fn_unset VAR
24935 # ---------------
24936 # Portably unset VAR.
24937 as_fn_unset ()
24939 { eval $1=; unset $1;}
24941 as_unset=as_fn_unset
24942 # as_fn_append VAR VALUE
24943 # ----------------------
24944 # Append the text in VALUE to the end of the definition contained in VAR. Take
24945 # advantage of any shell optimizations that allow amortized linear growth over
24946 # repeated appends, instead of the typical quadratic growth present in naive
24947 # implementations.
24948 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24949 eval 'as_fn_append ()
24951 eval $1+=\$2
24953 else
24954 as_fn_append ()
24956 eval $1=\$$1\$2
24958 fi # as_fn_append
24960 # as_fn_arith ARG...
24961 # ------------------
24962 # Perform arithmetic evaluation on the ARGs, and store the result in the
24963 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24964 # must be portable across $(()) and expr.
24965 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24966 eval 'as_fn_arith ()
24968 as_val=$(( $* ))
24970 else
24971 as_fn_arith ()
24973 as_val=`expr "$@" || test $? -eq 1`
24975 fi # as_fn_arith
24978 if expr a : '\(a\)' >/dev/null 2>&1 &&
24979 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24980 as_expr=expr
24981 else
24982 as_expr=false
24985 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24986 as_basename=basename
24987 else
24988 as_basename=false
24991 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24992 as_dirname=dirname
24993 else
24994 as_dirname=false
24997 as_me=`$as_basename -- "$0" ||
24998 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24999 X"$0" : 'X\(//\)$' \| \
25000 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25001 $as_echo X/"$0" |
25002 sed '/^.*\/\([^/][^/]*\)\/*$/{
25003 s//\1/
25006 /^X\/\(\/\/\)$/{
25007 s//\1/
25010 /^X\/\(\/\).*/{
25011 s//\1/
25014 s/.*/./; q'`
25016 # Avoid depending upon Character Ranges.
25017 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25018 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25019 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25020 as_cr_digits='0123456789'
25021 as_cr_alnum=$as_cr_Letters$as_cr_digits
25023 ECHO_C= ECHO_N= ECHO_T=
25024 case `echo -n x` in #(((((
25025 -n*)
25026 case `echo 'xy\c'` in
25027 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25028 xy) ECHO_C='\c';;
25029 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25030 ECHO_T=' ';;
25031 esac;;
25033 ECHO_N='-n';;
25034 esac
25036 rm -f conf$$ conf$$.exe conf$$.file
25037 if test -d conf$$.dir; then
25038 rm -f conf$$.dir/conf$$.file
25039 else
25040 rm -f conf$$.dir
25041 mkdir conf$$.dir 2>/dev/null
25043 if (echo >conf$$.file) 2>/dev/null; then
25044 if ln -s conf$$.file conf$$ 2>/dev/null; then
25045 as_ln_s='ln -s'
25046 # ... but there are two gotchas:
25047 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25048 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25049 # In both cases, we have to default to `cp -p'.
25050 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25051 as_ln_s='cp -p'
25052 elif ln conf$$.file conf$$ 2>/dev/null; then
25053 as_ln_s=ln
25054 else
25055 as_ln_s='cp -p'
25057 else
25058 as_ln_s='cp -p'
25060 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25061 rmdir conf$$.dir 2>/dev/null
25064 # as_fn_mkdir_p
25065 # -------------
25066 # Create "$as_dir" as a directory, including parents if necessary.
25067 as_fn_mkdir_p ()
25070 case $as_dir in #(
25071 -*) as_dir=./$as_dir;;
25072 esac
25073 test -d "$as_dir" || eval $as_mkdir_p || {
25074 as_dirs=
25075 while :; do
25076 case $as_dir in #(
25077 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25078 *) as_qdir=$as_dir;;
25079 esac
25080 as_dirs="'$as_qdir' $as_dirs"
25081 as_dir=`$as_dirname -- "$as_dir" ||
25082 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25083 X"$as_dir" : 'X\(//\)[^/]' \| \
25084 X"$as_dir" : 'X\(//\)$' \| \
25085 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25086 $as_echo X"$as_dir" |
25087 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25088 s//\1/
25091 /^X\(\/\/\)[^/].*/{
25092 s//\1/
25095 /^X\(\/\/\)$/{
25096 s//\1/
25099 /^X\(\/\).*/{
25100 s//\1/
25103 s/.*/./; q'`
25104 test -d "$as_dir" && break
25105 done
25106 test -z "$as_dirs" || eval "mkdir $as_dirs"
25107 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25110 } # as_fn_mkdir_p
25111 if mkdir -p . 2>/dev/null; then
25112 as_mkdir_p='mkdir -p "$as_dir"'
25113 else
25114 test -d ./-p && rmdir ./-p
25115 as_mkdir_p=false
25118 if test -x / >/dev/null 2>&1; then
25119 as_test_x='test -x'
25120 else
25121 if ls -dL / >/dev/null 2>&1; then
25122 as_ls_L_option=L
25123 else
25124 as_ls_L_option=
25126 as_test_x='
25127 eval sh -c '\''
25128 if test -d "$1"; then
25129 test -d "$1/.";
25130 else
25131 case $1 in #(
25132 -*)set "./$1";;
25133 esac;
25134 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25135 ???[sx]*):;;*)false;;esac;fi
25136 '\'' sh
25139 as_executable_p=$as_test_x
25141 # Sed expression to map a string onto a valid CPP name.
25142 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25144 # Sed expression to map a string onto a valid variable name.
25145 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25148 exec 6>&1
25149 ## ----------------------------------- ##
25150 ## Main body of $CONFIG_STATUS script. ##
25151 ## ----------------------------------- ##
25152 _ASEOF
25153 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25156 # Save the log message, to keep $0 and so on meaningful, and to
25157 # report actual input values of CONFIG_FILES etc. instead of their
25158 # values after options handling.
25159 ac_log="
25160 This file was extended by libjava $as_me version-unused, which was
25161 generated by GNU Autoconf 2.64. Invocation command line was
25163 CONFIG_FILES = $CONFIG_FILES
25164 CONFIG_HEADERS = $CONFIG_HEADERS
25165 CONFIG_LINKS = $CONFIG_LINKS
25166 CONFIG_COMMANDS = $CONFIG_COMMANDS
25167 $ $0 $@
25169 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25172 _ACEOF
25174 case $ac_config_files in *"
25175 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25176 esac
25178 case $ac_config_headers in *"
25179 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25180 esac
25183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25184 # Files that config.status was made for.
25185 config_files="$ac_config_files"
25186 config_headers="$ac_config_headers"
25187 config_links="$ac_config_links"
25188 config_commands="$ac_config_commands"
25190 _ACEOF
25192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25193 ac_cs_usage="\
25194 \`$as_me' instantiates files and other configuration actions
25195 from templates according to the current configuration. Unless the files
25196 and actions are specified as TAGs, all are instantiated by default.
25198 Usage: $0 [OPTION]... [TAG]...
25200 -h, --help print this help, then exit
25201 -V, --version print version number and configuration settings, then exit
25202 -q, --quiet, --silent
25203 do not print progress messages
25204 -d, --debug don't remove temporary files
25205 --recheck update $as_me by reconfiguring in the same conditions
25206 --file=FILE[:TEMPLATE]
25207 instantiate the configuration file FILE
25208 --header=FILE[:TEMPLATE]
25209 instantiate the configuration header FILE
25211 Configuration files:
25212 $config_files
25214 Configuration headers:
25215 $config_headers
25217 Configuration links:
25218 $config_links
25220 Configuration commands:
25221 $config_commands
25223 Report bugs to the package provider."
25225 _ACEOF
25226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25227 ac_cs_version="\\
25228 libjava config.status version-unused
25229 configured by $0, generated by GNU Autoconf 2.64,
25230 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25232 Copyright (C) 2009 Free Software Foundation, Inc.
25233 This config.status script is free software; the Free Software Foundation
25234 gives unlimited permission to copy, distribute and modify it."
25236 ac_pwd='$ac_pwd'
25237 srcdir='$srcdir'
25238 INSTALL='$INSTALL'
25239 MKDIR_P='$MKDIR_P'
25240 AWK='$AWK'
25241 test -n "\$AWK" || AWK=awk
25242 _ACEOF
25244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25245 # The default lists apply if the user does not specify any file.
25246 ac_need_defaults=:
25247 while test $# != 0
25249 case $1 in
25250 --*=*)
25251 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25252 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25253 ac_shift=:
25256 ac_option=$1
25257 ac_optarg=$2
25258 ac_shift=shift
25260 esac
25262 case $ac_option in
25263 # Handling of the options.
25264 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25265 ac_cs_recheck=: ;;
25266 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25267 $as_echo "$ac_cs_version"; exit ;;
25268 --debug | --debu | --deb | --de | --d | -d )
25269 debug=: ;;
25270 --file | --fil | --fi | --f )
25271 $ac_shift
25272 case $ac_optarg in
25273 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25274 esac
25275 as_fn_append CONFIG_FILES " '$ac_optarg'"
25276 ac_need_defaults=false;;
25277 --header | --heade | --head | --hea )
25278 $ac_shift
25279 case $ac_optarg in
25280 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25281 esac
25282 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25283 ac_need_defaults=false;;
25284 --he | --h)
25285 # Conflict between --help and --header
25286 as_fn_error "ambiguous option: \`$1'
25287 Try \`$0 --help' for more information.";;
25288 --help | --hel | -h )
25289 $as_echo "$ac_cs_usage"; exit ;;
25290 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25291 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25292 ac_cs_silent=: ;;
25294 # This is an error.
25295 -*) as_fn_error "unrecognized option: \`$1'
25296 Try \`$0 --help' for more information." ;;
25298 *) as_fn_append ac_config_targets " $1"
25299 ac_need_defaults=false ;;
25301 esac
25302 shift
25303 done
25305 ac_configure_extra_args=
25307 if $ac_cs_silent; then
25308 exec 6>/dev/null
25309 ac_configure_extra_args="$ac_configure_extra_args --silent"
25312 _ACEOF
25313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25314 if \$ac_cs_recheck; then
25315 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25316 shift
25317 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25318 CONFIG_SHELL='$SHELL'
25319 export CONFIG_SHELL
25320 exec "\$@"
25323 _ACEOF
25324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25325 exec 5>>config.log
25327 echo
25328 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25329 ## Running $as_me. ##
25330 _ASBOX
25331 $as_echo "$ac_log"
25332 } >&5
25334 _ACEOF
25335 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25337 # INIT-COMMANDS
25340 srcdir="$srcdir"
25341 host="$host"
25342 target="$target"
25343 with_multisubdir="$with_multisubdir"
25344 with_multisrctop="$with_multisrctop"
25345 with_target_subdir="$with_target_subdir"
25346 ac_configure_args="${multilib_arg} ${ac_configure_args}"
25347 multi_basedir="$multi_basedir"
25348 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
25349 CC="$CC"
25350 CXX="$CXX"
25351 GFORTRAN="$GFORTRAN"
25352 GCJ="$GCJ"
25353 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25356 # The HP-UX ksh and POSIX shell print the target directory to stdout
25357 # if CDPATH is set.
25358 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25360 sed_quote_subst='$sed_quote_subst'
25361 double_quote_subst='$double_quote_subst'
25362 delay_variable_subst='$delay_variable_subst'
25363 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25364 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25365 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25366 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25367 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25368 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25369 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25370 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25371 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25372 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25373 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25374 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25375 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25376 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25377 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25378 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25379 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25380 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25381 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25382 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25383 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25384 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25385 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25386 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25387 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25388 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25389 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25390 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25391 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25392 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25393 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25394 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25395 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25396 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25397 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25398 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25399 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25400 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25401 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25402 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25403 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25404 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25405 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25406 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25407 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25408 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25409 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25410 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25411 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
25412 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25413 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25414 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25415 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25416 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25417 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25418 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25419 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25420 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25421 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25422 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25423 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25424 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25425 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25426 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25427 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25428 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25429 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25430 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25431 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25432 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25433 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25434 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25435 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25436 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25437 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25438 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25439 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25440 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25441 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25442 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25443 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
25444 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25445 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25446 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25447 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25448 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25449 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25450 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25451 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25452 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
25453 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25454 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25455 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25456 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25457 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25458 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25459 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25460 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25461 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25462 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25463 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25464 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25465 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25466 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25467 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25468 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25469 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25470 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25471 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25472 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25473 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25474 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25475 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25476 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25477 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25478 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25479 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25480 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25481 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25482 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25483 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25484 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25485 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25486 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25487 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25488 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25489 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25490 LD_GCJ='`$ECHO "$LD_GCJ" | $SED "$delay_single_quote_subst"`'
25491 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25492 reload_flag_GCJ='`$ECHO "$reload_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25493 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25494 reload_cmds_GCJ='`$ECHO "$reload_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25495 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25496 old_archive_cmds_GCJ='`$ECHO "$old_archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25497 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25498 compiler_GCJ='`$ECHO "$compiler_GCJ" | $SED "$delay_single_quote_subst"`'
25499 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25500 GCC_GCJ='`$ECHO "$GCC_GCJ" | $SED "$delay_single_quote_subst"`'
25501 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25502 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "$lt_prog_compiler_no_builtin_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25503 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25504 lt_prog_compiler_wl_GCJ='`$ECHO "$lt_prog_compiler_wl_GCJ" | $SED "$delay_single_quote_subst"`'
25505 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25506 lt_prog_compiler_pic_GCJ='`$ECHO "$lt_prog_compiler_pic_GCJ" | $SED "$delay_single_quote_subst"`'
25507 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25508 lt_prog_compiler_static_GCJ='`$ECHO "$lt_prog_compiler_static_GCJ" | $SED "$delay_single_quote_subst"`'
25509 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25510 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "$lt_cv_prog_compiler_c_o_GCJ" | $SED "$delay_single_quote_subst"`'
25511 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25512 archive_cmds_need_lc_GCJ='`$ECHO "$archive_cmds_need_lc_GCJ" | $SED "$delay_single_quote_subst"`'
25513 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25514 enable_shared_with_static_runtimes_GCJ='`$ECHO "$enable_shared_with_static_runtimes_GCJ" | $SED "$delay_single_quote_subst"`'
25515 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25516 export_dynamic_flag_spec_GCJ='`$ECHO "$export_dynamic_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25517 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25518 whole_archive_flag_spec_GCJ='`$ECHO "$whole_archive_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25519 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25520 compiler_needs_object_GCJ='`$ECHO "$compiler_needs_object_GCJ" | $SED "$delay_single_quote_subst"`'
25521 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25522 old_archive_from_new_cmds_GCJ='`$ECHO "$old_archive_from_new_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25523 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25524 old_archive_from_expsyms_cmds_GCJ='`$ECHO "$old_archive_from_expsyms_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25525 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25526 archive_cmds_GCJ='`$ECHO "$archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25527 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25528 archive_expsym_cmds_GCJ='`$ECHO "$archive_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25529 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25530 module_cmds_GCJ='`$ECHO "$module_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25531 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25532 module_expsym_cmds_GCJ='`$ECHO "$module_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25533 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25534 with_gnu_ld_GCJ='`$ECHO "$with_gnu_ld_GCJ" | $SED "$delay_single_quote_subst"`'
25535 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25536 allow_undefined_flag_GCJ='`$ECHO "$allow_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25537 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25538 no_undefined_flag_GCJ='`$ECHO "$no_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25539 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25540 hardcode_libdir_flag_spec_GCJ='`$ECHO "$hardcode_libdir_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25541 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
25542 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "$hardcode_libdir_flag_spec_ld_GCJ" | $SED "$delay_single_quote_subst"`'
25543 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25544 hardcode_libdir_separator_GCJ='`$ECHO "$hardcode_libdir_separator_GCJ" | $SED "$delay_single_quote_subst"`'
25545 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25546 hardcode_direct_GCJ='`$ECHO "$hardcode_direct_GCJ" | $SED "$delay_single_quote_subst"`'
25547 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25548 hardcode_direct_absolute_GCJ='`$ECHO "$hardcode_direct_absolute_GCJ" | $SED "$delay_single_quote_subst"`'
25549 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25550 hardcode_minus_L_GCJ='`$ECHO "$hardcode_minus_L_GCJ" | $SED "$delay_single_quote_subst"`'
25551 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25552 hardcode_shlibpath_var_GCJ='`$ECHO "$hardcode_shlibpath_var_GCJ" | $SED "$delay_single_quote_subst"`'
25553 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25554 hardcode_automatic_GCJ='`$ECHO "$hardcode_automatic_GCJ" | $SED "$delay_single_quote_subst"`'
25555 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25556 inherit_rpath_GCJ='`$ECHO "$inherit_rpath_GCJ" | $SED "$delay_single_quote_subst"`'
25557 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25558 link_all_deplibs_GCJ='`$ECHO "$link_all_deplibs_GCJ" | $SED "$delay_single_quote_subst"`'
25559 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
25560 fix_srcfile_path_GCJ='`$ECHO "$fix_srcfile_path_GCJ" | $SED "$delay_single_quote_subst"`'
25561 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
25562 always_export_symbols_GCJ='`$ECHO "$always_export_symbols_GCJ" | $SED "$delay_single_quote_subst"`'
25563 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25564 export_symbols_cmds_GCJ='`$ECHO "$export_symbols_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25565 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25566 exclude_expsyms_GCJ='`$ECHO "$exclude_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
25567 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25568 include_expsyms_GCJ='`$ECHO "$include_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
25569 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25570 prelink_cmds_GCJ='`$ECHO "$prelink_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25571 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
25572 file_list_spec_GCJ='`$ECHO "$file_list_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25573 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
25574 hardcode_action_GCJ='`$ECHO "$hardcode_action_GCJ" | $SED "$delay_single_quote_subst"`'
25575 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
25576 compiler_lib_search_dirs_GCJ='`$ECHO "$compiler_lib_search_dirs_GCJ" | $SED "$delay_single_quote_subst"`'
25577 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25578 predep_objects_GCJ='`$ECHO "$predep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
25579 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25580 postdep_objects_GCJ='`$ECHO "$postdep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
25581 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
25582 predeps_GCJ='`$ECHO "$predeps_GCJ" | $SED "$delay_single_quote_subst"`'
25583 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
25584 postdeps_GCJ='`$ECHO "$postdeps_GCJ" | $SED "$delay_single_quote_subst"`'
25585 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
25586 compiler_lib_search_path_GCJ='`$ECHO "$compiler_lib_search_path_GCJ" | $SED "$delay_single_quote_subst"`'
25588 LTCC='$LTCC'
25589 LTCFLAGS='$LTCFLAGS'
25590 compiler='$compiler_DEFAULT'
25592 # A function that is used when there is no print builtin or printf.
25593 func_fallback_echo ()
25595 eval 'cat <<_LTECHO_EOF
25597 _LTECHO_EOF'
25600 # Quote evaled strings.
25601 for var in SHELL \
25602 ECHO \
25603 SED \
25604 GREP \
25605 EGREP \
25606 FGREP \
25607 LD \
25608 NM \
25609 LN_S \
25610 lt_SP2NL \
25611 lt_NL2SP \
25612 reload_flag \
25613 OBJDUMP \
25614 deplibs_check_method \
25615 file_magic_cmd \
25616 AR \
25617 AR_FLAGS \
25618 STRIP \
25619 RANLIB \
25620 CC \
25621 CFLAGS \
25622 compiler \
25623 lt_cv_sys_global_symbol_pipe \
25624 lt_cv_sys_global_symbol_to_cdecl \
25625 lt_cv_sys_global_symbol_to_c_name_address \
25626 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25627 lt_prog_compiler_no_builtin_flag \
25628 lt_prog_compiler_wl \
25629 lt_prog_compiler_pic \
25630 lt_prog_compiler_static \
25631 lt_cv_prog_compiler_c_o \
25632 need_locks \
25633 DSYMUTIL \
25634 NMEDIT \
25635 LIPO \
25636 OTOOL \
25637 OTOOL64 \
25638 shrext_cmds \
25639 export_dynamic_flag_spec \
25640 whole_archive_flag_spec \
25641 compiler_needs_object \
25642 with_gnu_ld \
25643 allow_undefined_flag \
25644 no_undefined_flag \
25645 hardcode_libdir_flag_spec \
25646 hardcode_libdir_flag_spec_ld \
25647 hardcode_libdir_separator \
25648 fix_srcfile_path \
25649 exclude_expsyms \
25650 include_expsyms \
25651 file_list_spec \
25652 variables_saved_for_relink \
25653 libname_spec \
25654 library_names_spec \
25655 soname_spec \
25656 install_override_mode \
25657 finish_eval \
25658 old_striplib \
25659 striplib \
25660 compiler_lib_search_dirs \
25661 predep_objects \
25662 postdep_objects \
25663 predeps \
25664 postdeps \
25665 compiler_lib_search_path \
25666 LD_CXX \
25667 LD_GCJ \
25668 reload_flag_CXX \
25669 reload_flag_GCJ \
25670 compiler_CXX \
25671 compiler_GCJ \
25672 lt_prog_compiler_no_builtin_flag_CXX \
25673 lt_prog_compiler_no_builtin_flag_GCJ \
25674 lt_prog_compiler_wl_CXX \
25675 lt_prog_compiler_wl_GCJ \
25676 lt_prog_compiler_pic_CXX \
25677 lt_prog_compiler_pic_GCJ \
25678 lt_prog_compiler_static_CXX \
25679 lt_prog_compiler_static_GCJ \
25680 lt_cv_prog_compiler_c_o_CXX \
25681 lt_cv_prog_compiler_c_o_GCJ \
25682 export_dynamic_flag_spec_CXX \
25683 export_dynamic_flag_spec_GCJ \
25684 whole_archive_flag_spec_CXX \
25685 whole_archive_flag_spec_GCJ \
25686 compiler_needs_object_CXX \
25687 compiler_needs_object_GCJ \
25688 with_gnu_ld_CXX \
25689 with_gnu_ld_GCJ \
25690 allow_undefined_flag_CXX \
25691 allow_undefined_flag_GCJ \
25692 no_undefined_flag_CXX \
25693 no_undefined_flag_GCJ \
25694 hardcode_libdir_flag_spec_CXX \
25695 hardcode_libdir_flag_spec_GCJ \
25696 hardcode_libdir_flag_spec_ld_CXX \
25697 hardcode_libdir_flag_spec_ld_GCJ \
25698 hardcode_libdir_separator_CXX \
25699 hardcode_libdir_separator_GCJ \
25700 fix_srcfile_path_CXX \
25701 fix_srcfile_path_GCJ \
25702 exclude_expsyms_CXX \
25703 exclude_expsyms_GCJ \
25704 include_expsyms_CXX \
25705 include_expsyms_GCJ \
25706 file_list_spec_CXX \
25707 file_list_spec_GCJ \
25708 compiler_lib_search_dirs_CXX \
25709 compiler_lib_search_dirs_GCJ \
25710 predep_objects_CXX \
25711 predep_objects_GCJ \
25712 postdep_objects_CXX \
25713 postdep_objects_GCJ \
25714 predeps_CXX \
25715 predeps_GCJ \
25716 postdeps_CXX \
25717 postdeps_GCJ \
25718 compiler_lib_search_path_CXX \
25719 compiler_lib_search_path_GCJ; do
25720 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25721 *[\\\\\\\`\\"\\\$]*)
25722 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
25725 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25727 esac
25728 done
25730 # Double-quote double-evaled strings.
25731 for var in reload_cmds \
25732 old_postinstall_cmds \
25733 old_postuninstall_cmds \
25734 old_archive_cmds \
25735 extract_expsyms_cmds \
25736 old_archive_from_new_cmds \
25737 old_archive_from_expsyms_cmds \
25738 archive_cmds \
25739 archive_expsym_cmds \
25740 module_cmds \
25741 module_expsym_cmds \
25742 export_symbols_cmds \
25743 prelink_cmds \
25744 postinstall_cmds \
25745 postuninstall_cmds \
25746 finish_cmds \
25747 sys_lib_search_path_spec \
25748 sys_lib_dlsearch_path_spec \
25749 reload_cmds_CXX \
25750 reload_cmds_GCJ \
25751 old_archive_cmds_CXX \
25752 old_archive_cmds_GCJ \
25753 old_archive_from_new_cmds_CXX \
25754 old_archive_from_new_cmds_GCJ \
25755 old_archive_from_expsyms_cmds_CXX \
25756 old_archive_from_expsyms_cmds_GCJ \
25757 archive_cmds_CXX \
25758 archive_cmds_GCJ \
25759 archive_expsym_cmds_CXX \
25760 archive_expsym_cmds_GCJ \
25761 module_cmds_CXX \
25762 module_cmds_GCJ \
25763 module_expsym_cmds_CXX \
25764 module_expsym_cmds_GCJ \
25765 export_symbols_cmds_CXX \
25766 export_symbols_cmds_GCJ \
25767 prelink_cmds_CXX \
25768 prelink_cmds_GCJ; do
25769 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25770 *[\\\\\\\`\\"\\\$]*)
25771 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
25774 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25776 esac
25777 done
25779 ac_aux_dir='$ac_aux_dir'
25780 xsi_shell='$xsi_shell'
25781 lt_shell_append='$lt_shell_append'
25783 # See if we are running on zsh, and set the options which allow our
25784 # commands through without removal of \ escapes INIT.
25785 if test -n "\${ZSH_VERSION+set}" ; then
25786 setopt NO_GLOB_SUBST
25790 PACKAGE='$PACKAGE'
25791 VERSION='$VERSION'
25792 TIMESTAMP='$TIMESTAMP'
25793 RM='$RM'
25794 ofile='$ofile'
25803 _ACEOF
25805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25807 # Handling of arguments.
25808 for ac_config_target in $ac_config_targets
25810 case $ac_config_target in
25811 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
25812 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25813 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
25814 "gcj/libgcj-config.h") CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
25815 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25816 "include/platform.h") CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
25817 "java/io/natFile.cc") CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
25818 "java/lang/natConcreteProcess.cc") CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
25819 "java/net/natVMInetAddress.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
25820 "java/net/natVMNetworkInterface.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
25821 "gnu/java/net/natPlainSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
25822 "gnu/java/net/natPlainDatagramSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
25823 "gnu/java/nio/natVMPipe.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
25824 "gnu/java/nio/natVMSelector.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
25825 "gnu/java/nio/channels/natFileChannelImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
25826 "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" ;;
25827 "include/java-gc.h") CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
25828 "include/java-threads.h") CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
25829 "sysdep/locks.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
25830 "sysdep/backtrace.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
25831 "sysdep/descriptor.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
25832 "include/java-signal.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
25833 "include/java-signal-aux.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
25834 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25835 "libgcj.pc") CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
25836 "libgcj.spec") CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
25837 "libgcj-test.spec") CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
25838 "gcj/Makefile") CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
25839 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
25840 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
25841 "contrib/aotcompile.py") CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;;
25842 "contrib/aot-compile") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;;
25843 "contrib/aot-compile-rpm") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;;
25844 "contrib/generate-cacerts.pl") CONFIG_FILES="$CONFIG_FILES contrib/generate-cacerts.pl" ;;
25845 "contrib/rebuild-gcj-db") CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;;
25846 "scripts/jar") CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
25848 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25849 esac
25850 done
25853 # If the user did not use the arguments to specify the items to instantiate,
25854 # then the envvar interface is used. Set only those that are not.
25855 # We use the long form for the default assignment because of an extremely
25856 # bizarre bug on SunOS 4.1.3.
25857 if $ac_need_defaults; then
25858 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25859 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25860 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25861 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25864 # Have a temporary directory for convenience. Make it in the build tree
25865 # simply because there is no reason against having it here, and in addition,
25866 # creating and moving files from /tmp can sometimes cause problems.
25867 # Hook for its removal unless debugging.
25868 # Note that there is a small window in which the directory will not be cleaned:
25869 # after its creation but before its name has been assigned to `$tmp'.
25870 $debug ||
25872 tmp=
25873 trap 'exit_status=$?
25874 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25876 trap 'as_fn_exit 1' 1 2 13 15
25878 # Create a (secure) tmp directory for tmp files.
25881 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25882 test -n "$tmp" && test -d "$tmp"
25883 } ||
25885 tmp=./conf$$-$RANDOM
25886 (umask 077 && mkdir "$tmp")
25887 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25889 # Set up the scripts for CONFIG_FILES section.
25890 # No need to generate them if there are no CONFIG_FILES.
25891 # This happens for instance with `./config.status config.h'.
25892 if test -n "$CONFIG_FILES"; then
25895 ac_cr=`echo X | tr X '\015'`
25896 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25897 # But we know of no other shell where ac_cr would be empty at this
25898 # point, so we can use a bashism as a fallback.
25899 if test "x$ac_cr" = x; then
25900 eval ac_cr=\$\'\\r\'
25902 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25903 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25904 ac_cs_awk_cr='\r'
25905 else
25906 ac_cs_awk_cr=$ac_cr
25909 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25910 _ACEOF
25914 echo "cat >conf$$subs.awk <<_ACEOF" &&
25915 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25916 echo "_ACEOF"
25917 } >conf$$subs.sh ||
25918 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25919 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25920 ac_delim='%!_!# '
25921 for ac_last_try in false false false false false :; do
25922 . ./conf$$subs.sh ||
25923 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25925 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25926 if test $ac_delim_n = $ac_delim_num; then
25927 break
25928 elif $ac_last_try; then
25929 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25930 else
25931 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25933 done
25934 rm -f conf$$subs.sh
25936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25937 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25938 _ACEOF
25939 sed -n '
25941 s/^/S["/; s/!.*/"]=/
25944 s/^[^!]*!//
25945 :repl
25946 t repl
25947 s/'"$ac_delim"'$//
25948 t delim
25951 s/\(.\{148\}\).*/\1/
25952 t more1
25953 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25956 b repl
25957 :more1
25958 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25961 s/.\{148\}//
25962 t nl
25963 :delim
25965 s/\(.\{148\}\).*/\1/
25966 t more2
25967 s/["\\]/\\&/g; s/^/"/; s/$/"/
25970 :more2
25971 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25974 s/.\{148\}//
25975 t delim
25976 ' <conf$$subs.awk | sed '
25977 /^[^""]/{
25979 s/\n//
25981 ' >>$CONFIG_STATUS || ac_write_fail=1
25982 rm -f conf$$subs.awk
25983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25984 _ACAWK
25985 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25986 for (key in S) S_is_set[key] = 1
25987 FS = "\a"
25991 line = $ 0
25992 nfields = split(line, field, "@")
25993 substed = 0
25994 len = length(field[1])
25995 for (i = 2; i < nfields; i++) {
25996 key = field[i]
25997 keylen = length(key)
25998 if (S_is_set[key]) {
25999 value = S[key]
26000 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26001 len += length(value) + length(field[++i])
26002 substed = 1
26003 } else
26004 len += 1 + keylen
26007 print line
26010 _ACAWK
26011 _ACEOF
26012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26013 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26014 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26015 else
26017 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26018 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26019 _ACEOF
26021 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26022 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26023 # trailing colons and then remove the whole line if VPATH becomes empty
26024 # (actually we leave an empty line to preserve line numbers).
26025 if test "x$srcdir" = x.; then
26026 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26027 s/:*\$(srcdir):*/:/
26028 s/:*\${srcdir}:*/:/
26029 s/:*@srcdir@:*/:/
26030 s/^\([^=]*=[ ]*\):*/\1/
26031 s/:*$//
26032 s/^[^=]*=[ ]*$//
26036 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26037 fi # test -n "$CONFIG_FILES"
26039 # Set up the scripts for CONFIG_HEADERS section.
26040 # No need to generate them if there are no CONFIG_HEADERS.
26041 # This happens for instance with `./config.status Makefile'.
26042 if test -n "$CONFIG_HEADERS"; then
26043 cat >"$tmp/defines.awk" <<\_ACAWK ||
26044 BEGIN {
26045 _ACEOF
26047 # Transform confdefs.h into an awk script `defines.awk', embedded as
26048 # here-document in config.status, that substitutes the proper values into
26049 # config.h.in to produce config.h.
26051 # Create a delimiter string that does not exist in confdefs.h, to ease
26052 # handling of long lines.
26053 ac_delim='%!_!# '
26054 for ac_last_try in false false :; do
26055 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26056 if test -z "$ac_t"; then
26057 break
26058 elif $ac_last_try; then
26059 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26060 else
26061 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26063 done
26065 # For the awk script, D is an array of macro values keyed by name,
26066 # likewise P contains macro parameters if any. Preserve backslash
26067 # newline sequences.
26069 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26070 sed -n '
26071 s/.\{148\}/&'"$ac_delim"'/g
26072 t rset
26073 :rset
26074 s/^[ ]*#[ ]*define[ ][ ]*/ /
26075 t def
26077 :def
26078 s/\\$//
26079 t bsnl
26080 s/["\\]/\\&/g
26081 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26082 D["\1"]=" \3"/p
26083 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26085 :bsnl
26086 s/["\\]/\\&/g
26087 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26088 D["\1"]=" \3\\\\\\n"\\/p
26089 t cont
26090 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26091 t cont
26093 :cont
26095 s/.\{148\}/&'"$ac_delim"'/g
26096 t clear
26097 :clear
26098 s/\\$//
26099 t bsnlc
26100 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26102 :bsnlc
26103 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26104 b cont
26105 ' <confdefs.h | sed '
26106 s/'"$ac_delim"'/"\\\
26107 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26110 for (key in D) D_is_set[key] = 1
26111 FS = "\a"
26113 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26114 line = \$ 0
26115 split(line, arg, " ")
26116 if (arg[1] == "#") {
26117 defundef = arg[2]
26118 mac1 = arg[3]
26119 } else {
26120 defundef = substr(arg[1], 2)
26121 mac1 = arg[2]
26123 split(mac1, mac2, "(") #)
26124 macro = mac2[1]
26125 prefix = substr(line, 1, index(line, defundef) - 1)
26126 if (D_is_set[macro]) {
26127 # Preserve the white space surrounding the "#".
26128 print prefix "define", macro P[macro] D[macro]
26129 next
26130 } else {
26131 # Replace #undef with comments. This is necessary, for example,
26132 # in the case of _POSIX_SOURCE, which is predefined and required
26133 # on some systems where configure will not decide to define it.
26134 if (defundef == "undef") {
26135 print "/*", prefix defundef, macro, "*/"
26136 next
26140 { print }
26141 _ACAWK
26142 _ACEOF
26143 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26144 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26145 fi # test -n "$CONFIG_HEADERS"
26148 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
26149 shift
26150 for ac_tag
26152 case $ac_tag in
26153 :[FHLC]) ac_mode=$ac_tag; continue;;
26154 esac
26155 case $ac_mode$ac_tag in
26156 :[FHL]*:*);;
26157 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26158 :[FH]-) ac_tag=-:-;;
26159 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26160 esac
26161 ac_save_IFS=$IFS
26162 IFS=:
26163 set x $ac_tag
26164 IFS=$ac_save_IFS
26165 shift
26166 ac_file=$1
26167 shift
26169 case $ac_mode in
26170 :L) ac_source=$1;;
26171 :[FH])
26172 ac_file_inputs=
26173 for ac_f
26175 case $ac_f in
26176 -) ac_f="$tmp/stdin";;
26177 *) # Look for the file first in the build tree, then in the source tree
26178 # (if the path is not absolute). The absolute path cannot be DOS-style,
26179 # because $ac_f cannot contain `:'.
26180 test -f "$ac_f" ||
26181 case $ac_f in
26182 [\\/$]*) false;;
26183 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26184 esac ||
26185 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26186 esac
26187 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26188 as_fn_append ac_file_inputs " '$ac_f'"
26189 done
26191 # Let's still pretend it is `configure' which instantiates (i.e., don't
26192 # use $as_me), people would be surprised to read:
26193 # /* config.h. Generated by config.status. */
26194 configure_input='Generated from '`
26195 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26196 `' by configure.'
26197 if test x"$ac_file" != x-; then
26198 configure_input="$ac_file. $configure_input"
26199 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26200 $as_echo "$as_me: creating $ac_file" >&6;}
26202 # Neutralize special characters interpreted by sed in replacement strings.
26203 case $configure_input in #(
26204 *\&* | *\|* | *\\* )
26205 ac_sed_conf_input=`$as_echo "$configure_input" |
26206 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26207 *) ac_sed_conf_input=$configure_input;;
26208 esac
26210 case $ac_tag in
26211 *:-:* | *:-) cat >"$tmp/stdin" \
26212 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26213 esac
26215 esac
26217 ac_dir=`$as_dirname -- "$ac_file" ||
26218 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26219 X"$ac_file" : 'X\(//\)[^/]' \| \
26220 X"$ac_file" : 'X\(//\)$' \| \
26221 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26222 $as_echo X"$ac_file" |
26223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26224 s//\1/
26227 /^X\(\/\/\)[^/].*/{
26228 s//\1/
26231 /^X\(\/\/\)$/{
26232 s//\1/
26235 /^X\(\/\).*/{
26236 s//\1/
26239 s/.*/./; q'`
26240 as_dir="$ac_dir"; as_fn_mkdir_p
26241 ac_builddir=.
26243 case "$ac_dir" in
26244 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26246 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26247 # A ".." for each directory in $ac_dir_suffix.
26248 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26249 case $ac_top_builddir_sub in
26250 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26251 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26252 esac ;;
26253 esac
26254 ac_abs_top_builddir=$ac_pwd
26255 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26256 # for backward compatibility:
26257 ac_top_builddir=$ac_top_build_prefix
26259 case $srcdir in
26260 .) # We are building in place.
26261 ac_srcdir=.
26262 ac_top_srcdir=$ac_top_builddir_sub
26263 ac_abs_top_srcdir=$ac_pwd ;;
26264 [\\/]* | ?:[\\/]* ) # Absolute name.
26265 ac_srcdir=$srcdir$ac_dir_suffix;
26266 ac_top_srcdir=$srcdir
26267 ac_abs_top_srcdir=$srcdir ;;
26268 *) # Relative name.
26269 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26270 ac_top_srcdir=$ac_top_build_prefix$srcdir
26271 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26272 esac
26273 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26276 case $ac_mode in
26279 # CONFIG_FILE
26282 case $INSTALL in
26283 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26284 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26285 esac
26286 ac_MKDIR_P=$MKDIR_P
26287 case $MKDIR_P in
26288 [\\/$]* | ?:[\\/]* ) ;;
26289 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26290 esac
26291 _ACEOF
26293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26294 # If the template does not know about datarootdir, expand it.
26295 # FIXME: This hack should be removed a few years after 2.60.
26296 ac_datarootdir_hack=; ac_datarootdir_seen=
26297 ac_sed_dataroot='
26298 /datarootdir/ {
26302 /@datadir@/p
26303 /@docdir@/p
26304 /@infodir@/p
26305 /@localedir@/p
26306 /@mandir@/p'
26307 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26308 *datarootdir*) ac_datarootdir_seen=yes;;
26309 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26311 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26312 _ACEOF
26313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26314 ac_datarootdir_hack='
26315 s&@datadir@&$datadir&g
26316 s&@docdir@&$docdir&g
26317 s&@infodir@&$infodir&g
26318 s&@localedir@&$localedir&g
26319 s&@mandir@&$mandir&g
26320 s&\\\${datarootdir}&$datarootdir&g' ;;
26321 esac
26322 _ACEOF
26324 # Neutralize VPATH when `$srcdir' = `.'.
26325 # Shell code in configure.ac might set extrasub.
26326 # FIXME: do we really want to maintain this feature?
26327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26328 ac_sed_extra="$ac_vpsub
26329 $extrasub
26330 _ACEOF
26331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26333 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26334 s|@configure_input@|$ac_sed_conf_input|;t t
26335 s&@top_builddir@&$ac_top_builddir_sub&;t t
26336 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26337 s&@srcdir@&$ac_srcdir&;t t
26338 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26339 s&@top_srcdir@&$ac_top_srcdir&;t t
26340 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26341 s&@builddir@&$ac_builddir&;t t
26342 s&@abs_builddir@&$ac_abs_builddir&;t t
26343 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26344 s&@INSTALL@&$ac_INSTALL&;t t
26345 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26346 $ac_datarootdir_hack
26348 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26349 || as_fn_error "could not create $ac_file" "$LINENO" 5
26351 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26352 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26353 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26355 which seems to be undefined. Please make sure it is defined." >&5
26356 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26357 which seems to be undefined. Please make sure it is defined." >&2;}
26359 rm -f "$tmp/stdin"
26360 case $ac_file in
26361 -) cat "$tmp/out" && rm -f "$tmp/out";;
26362 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26363 esac \
26364 || as_fn_error "could not create $ac_file" "$LINENO" 5
26368 # CONFIG_HEADER
26370 if test x"$ac_file" != x-; then
26372 $as_echo "/* $configure_input */" \
26373 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26374 } >"$tmp/config.h" \
26375 || as_fn_error "could not create $ac_file" "$LINENO" 5
26376 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26377 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26378 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26379 else
26380 rm -f "$ac_file"
26381 mv "$tmp/config.h" "$ac_file" \
26382 || as_fn_error "could not create $ac_file" "$LINENO" 5
26384 else
26385 $as_echo "/* $configure_input */" \
26386 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26387 || as_fn_error "could not create -" "$LINENO" 5
26389 # Compute "$ac_file"'s index in $config_headers.
26390 _am_arg="$ac_file"
26391 _am_stamp_count=1
26392 for _am_header in $config_headers :; do
26393 case $_am_header in
26394 $_am_arg | $_am_arg:* )
26395 break ;;
26397 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26398 esac
26399 done
26400 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26401 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26402 X"$_am_arg" : 'X\(//\)[^/]' \| \
26403 X"$_am_arg" : 'X\(//\)$' \| \
26404 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26405 $as_echo X"$_am_arg" |
26406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26407 s//\1/
26410 /^X\(\/\/\)[^/].*/{
26411 s//\1/
26414 /^X\(\/\/\)$/{
26415 s//\1/
26418 /^X\(\/\).*/{
26419 s//\1/
26422 s/.*/./; q'`/stamp-h$_am_stamp_count
26426 # CONFIG_LINK
26429 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
26431 else
26432 # Prefer the file from the source tree if names are identical.
26433 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
26434 ac_source=$srcdir/$ac_source
26437 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
26438 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
26440 if test ! -r "$ac_source"; then
26441 as_fn_error "$ac_source: file not found" "$LINENO" 5
26443 rm -f "$ac_file"
26445 # Try a relative symlink, then a hard link, then a copy.
26446 case $srcdir in
26447 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
26448 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
26449 esac
26450 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26451 ln "$ac_source" "$ac_file" 2>/dev/null ||
26452 cp -p "$ac_source" "$ac_file" ||
26453 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
26456 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26457 $as_echo "$as_me: executing $ac_file commands" >&6;}
26459 esac
26462 case $ac_file$ac_mode in
26463 "default-1":C)
26464 # Only add multilib support code if we just rebuilt the top-level
26465 # Makefile.
26466 case " $CONFIG_FILES " in
26467 *" Makefile "*)
26468 ac_file=Makefile . ${multi_basedir}/config-ml.in
26470 esac ;;
26471 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26472 # Autoconf 2.62 quotes --file arguments for eval, but not when files
26473 # are listed without --file. Let's play safe and only enable the eval
26474 # if we detect the quoting.
26475 case $CONFIG_FILES in
26476 *\'*) eval set x "$CONFIG_FILES" ;;
26477 *) set x $CONFIG_FILES ;;
26478 esac
26479 shift
26480 for mf
26482 # Strip MF so we end up with the name of the file.
26483 mf=`echo "$mf" | sed -e 's/:.*$//'`
26484 # Check whether this is an Automake generated Makefile or not.
26485 # We used to match only the files named `Makefile.in', but
26486 # some people rename them; so instead we look at the file content.
26487 # Grep'ing the first line is not enough: some people post-process
26488 # each Makefile.in and add a new line on top of each file to say so.
26489 # Grep'ing the whole file is not good either: AIX grep has a line
26490 # limit of 2048, but all sed's we know have understand at least 4000.
26491 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26492 dirpart=`$as_dirname -- "$mf" ||
26493 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26494 X"$mf" : 'X\(//\)[^/]' \| \
26495 X"$mf" : 'X\(//\)$' \| \
26496 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26497 $as_echo X"$mf" |
26498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26499 s//\1/
26502 /^X\(\/\/\)[^/].*/{
26503 s//\1/
26506 /^X\(\/\/\)$/{
26507 s//\1/
26510 /^X\(\/\).*/{
26511 s//\1/
26514 s/.*/./; q'`
26515 else
26516 continue
26518 # Extract the definition of DEPDIR, am__include, and am__quote
26519 # from the Makefile without running `make'.
26520 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26521 test -z "$DEPDIR" && continue
26522 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26523 test -z "am__include" && continue
26524 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26525 # When using ansi2knr, U may be empty or an underscore; expand it
26526 U=`sed -n 's/^U = //p' < "$mf"`
26527 # Find all dependency output files, they are included files with
26528 # $(DEPDIR) in their names. We invoke sed twice because it is the
26529 # simplest approach to changing $(DEPDIR) to its actual value in the
26530 # expansion.
26531 for file in `sed -n "
26532 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26533 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26534 # Make sure the directory exists.
26535 test -f "$dirpart/$file" && continue
26536 fdir=`$as_dirname -- "$file" ||
26537 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26538 X"$file" : 'X\(//\)[^/]' \| \
26539 X"$file" : 'X\(//\)$' \| \
26540 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26541 $as_echo X"$file" |
26542 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26543 s//\1/
26546 /^X\(\/\/\)[^/].*/{
26547 s//\1/
26550 /^X\(\/\/\)$/{
26551 s//\1/
26554 /^X\(\/\).*/{
26555 s//\1/
26558 s/.*/./; q'`
26559 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26560 # echo "creating $dirpart/$file"
26561 echo '# dummy' > "$dirpart/$file"
26562 done
26563 done
26566 "libtool":C)
26568 # See if we are running on zsh, and set the options which allow our
26569 # commands through without removal of \ escapes.
26570 if test -n "${ZSH_VERSION+set}" ; then
26571 setopt NO_GLOB_SUBST
26574 cfgfile="${ofile}T"
26575 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26576 $RM "$cfgfile"
26578 cat <<_LT_EOF >> "$cfgfile"
26579 #! $SHELL
26581 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26582 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26583 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26584 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26586 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26587 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
26588 # Written by Gordon Matzigkeit, 1996
26590 # This file is part of GNU Libtool.
26592 # GNU Libtool is free software; you can redistribute it and/or
26593 # modify it under the terms of the GNU General Public License as
26594 # published by the Free Software Foundation; either version 2 of
26595 # the License, or (at your option) any later version.
26597 # As a special exception to the GNU General Public License,
26598 # if you distribute this file as part of a program or library that
26599 # is built using GNU Libtool, you may include this file under the
26600 # same distribution terms that you use for the rest of that program.
26602 # GNU Libtool is distributed in the hope that it will be useful,
26603 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26604 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26605 # GNU General Public License for more details.
26607 # You should have received a copy of the GNU General Public License
26608 # along with GNU Libtool; see the file COPYING. If not, a copy
26609 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26610 # obtained by writing to the Free Software Foundation, Inc.,
26611 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26614 # The names of the tagged configurations supported by this script.
26615 available_tags="CXX GCJ "
26617 # ### BEGIN LIBTOOL CONFIG
26619 # Which release of libtool.m4 was used?
26620 macro_version=$macro_version
26621 macro_revision=$macro_revision
26623 # Whether or not to build shared libraries.
26624 build_libtool_libs=$enable_shared
26626 # Whether or not to build static libraries.
26627 build_old_libs=$enable_static
26629 # What type of objects to build.
26630 pic_mode=$pic_mode
26632 # Whether or not to optimize for fast installation.
26633 fast_install=$enable_fast_install
26635 # Shell to use when invoking shell scripts.
26636 SHELL=$lt_SHELL
26638 # An echo program that protects backslashes.
26639 ECHO=$lt_ECHO
26641 # The host system.
26642 host_alias=$host_alias
26643 host=$host
26644 host_os=$host_os
26646 # The build system.
26647 build_alias=$build_alias
26648 build=$build
26649 build_os=$build_os
26651 # A sed program that does not truncate output.
26652 SED=$lt_SED
26654 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26655 Xsed="\$SED -e 1s/^X//"
26657 # A grep program that handles long lines.
26658 GREP=$lt_GREP
26660 # An ERE matcher.
26661 EGREP=$lt_EGREP
26663 # A literal string matcher.
26664 FGREP=$lt_FGREP
26666 # A BSD- or MS-compatible name lister.
26667 NM=$lt_NM
26669 # Whether we need soft or hard links.
26670 LN_S=$lt_LN_S
26672 # What is the maximum length of a command?
26673 max_cmd_len=$max_cmd_len
26675 # Object file suffix (normally "o").
26676 objext=$ac_objext
26678 # Executable file suffix (normally "").
26679 exeext=$exeext
26681 # whether the shell understands "unset".
26682 lt_unset=$lt_unset
26684 # turn spaces into newlines.
26685 SP2NL=$lt_lt_SP2NL
26687 # turn newlines into spaces.
26688 NL2SP=$lt_lt_NL2SP
26690 # An object symbol dumper.
26691 OBJDUMP=$lt_OBJDUMP
26693 # Method to check whether dependent libraries are shared objects.
26694 deplibs_check_method=$lt_deplibs_check_method
26696 # Command to use when deplibs_check_method == "file_magic".
26697 file_magic_cmd=$lt_file_magic_cmd
26699 # The archiver.
26700 AR=$lt_AR
26701 AR_FLAGS=$lt_AR_FLAGS
26703 # A symbol stripping program.
26704 STRIP=$lt_STRIP
26706 # Commands used to install an old-style archive.
26707 RANLIB=$lt_RANLIB
26708 old_postinstall_cmds=$lt_old_postinstall_cmds
26709 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26711 # Whether to use a lock for old archive extraction.
26712 lock_old_archive_extraction=$lock_old_archive_extraction
26714 # A C compiler.
26715 LTCC=$lt_CC
26717 # LTCC compiler flags.
26718 LTCFLAGS=$lt_CFLAGS
26720 # Take the output of nm and produce a listing of raw symbols and C names.
26721 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26723 # Transform the output of nm in a proper C declaration.
26724 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26726 # Transform the output of nm in a C name address pair.
26727 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26729 # Transform the output of nm in a C name address pair when lib prefix is needed.
26730 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26732 # The name of the directory that contains temporary libtool files.
26733 objdir=$objdir
26735 # Used to examine libraries when file_magic_cmd begins with "file".
26736 MAGIC_CMD=$MAGIC_CMD
26738 # Must we lock files when doing compilation?
26739 need_locks=$lt_need_locks
26741 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26742 DSYMUTIL=$lt_DSYMUTIL
26744 # Tool to change global to local symbols on Mac OS X.
26745 NMEDIT=$lt_NMEDIT
26747 # Tool to manipulate fat objects and archives on Mac OS X.
26748 LIPO=$lt_LIPO
26750 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
26751 OTOOL=$lt_OTOOL
26753 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26754 OTOOL64=$lt_OTOOL64
26756 # Old archive suffix (normally "a").
26757 libext=$libext
26759 # Shared library suffix (normally ".so").
26760 shrext_cmds=$lt_shrext_cmds
26762 # The commands to extract the exported symbol list from a shared archive.
26763 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26765 # Variables whose values should be saved in libtool wrapper scripts and
26766 # restored at link time.
26767 variables_saved_for_relink=$lt_variables_saved_for_relink
26769 # Do we need the "lib" prefix for modules?
26770 need_lib_prefix=$need_lib_prefix
26772 # Do we need a version for libraries?
26773 need_version=$need_version
26775 # Library versioning type.
26776 version_type=$version_type
26778 # Shared library runtime path variable.
26779 runpath_var=$runpath_var
26781 # Shared library path variable.
26782 shlibpath_var=$shlibpath_var
26784 # Is shlibpath searched before the hard-coded library search path?
26785 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26787 # Format of library name prefix.
26788 libname_spec=$lt_libname_spec
26790 # List of archive names. First name is the real one, the rest are links.
26791 # The last name is the one that the linker finds with -lNAME
26792 library_names_spec=$lt_library_names_spec
26794 # The coded name of the library, if different from the real name.
26795 soname_spec=$lt_soname_spec
26797 # Permission mode override for installation of shared libraries.
26798 install_override_mode=$lt_install_override_mode
26800 # Command to use after installation of a shared archive.
26801 postinstall_cmds=$lt_postinstall_cmds
26803 # Command to use after uninstallation of a shared archive.
26804 postuninstall_cmds=$lt_postuninstall_cmds
26806 # Commands used to finish a libtool library installation in a directory.
26807 finish_cmds=$lt_finish_cmds
26809 # As "finish_cmds", except a single script fragment to be evaled but
26810 # not shown.
26811 finish_eval=$lt_finish_eval
26813 # Whether we should hardcode library paths into libraries.
26814 hardcode_into_libs=$hardcode_into_libs
26816 # Compile-time system search path for libraries.
26817 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26819 # Run-time system search path for libraries.
26820 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26822 # Whether dlopen is supported.
26823 dlopen_support=$enable_dlopen
26825 # Whether dlopen of programs is supported.
26826 dlopen_self=$enable_dlopen_self
26828 # Whether dlopen of statically linked programs is supported.
26829 dlopen_self_static=$enable_dlopen_self_static
26831 # Commands to strip libraries.
26832 old_striplib=$lt_old_striplib
26833 striplib=$lt_striplib
26836 # The linker used to build libraries.
26837 LD=$lt_LD
26839 # How to create reloadable object files.
26840 reload_flag=$lt_reload_flag
26841 reload_cmds=$lt_reload_cmds
26843 # Commands used to build an old-style archive.
26844 old_archive_cmds=$lt_old_archive_cmds
26846 # A language specific compiler.
26847 CC=$lt_compiler
26849 # Is the compiler the GNU compiler?
26850 with_gcc=$GCC
26852 # Compiler flag to turn off builtin functions.
26853 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26855 # How to pass a linker flag through the compiler.
26856 wl=$lt_lt_prog_compiler_wl
26858 # Additional compiler flags for building library objects.
26859 pic_flag=$lt_lt_prog_compiler_pic
26861 # Compiler flag to prevent dynamic linking.
26862 link_static_flag=$lt_lt_prog_compiler_static
26864 # Does compiler simultaneously support -c and -o options?
26865 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26867 # Whether or not to add -lc for building shared libraries.
26868 build_libtool_need_lc=$archive_cmds_need_lc
26870 # Whether or not to disallow shared libs when runtime libs are static.
26871 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26873 # Compiler flag to allow reflexive dlopens.
26874 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26876 # Compiler flag to generate shared objects directly from archives.
26877 whole_archive_flag_spec=$lt_whole_archive_flag_spec
26879 # Whether the compiler copes with passing no objects directly.
26880 compiler_needs_object=$lt_compiler_needs_object
26882 # Create an old-style archive from a shared archive.
26883 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26885 # Create a temporary old-style archive to link instead of a shared archive.
26886 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26888 # Commands used to build a shared archive.
26889 archive_cmds=$lt_archive_cmds
26890 archive_expsym_cmds=$lt_archive_expsym_cmds
26892 # Commands used to build a loadable module if different from building
26893 # a shared archive.
26894 module_cmds=$lt_module_cmds
26895 module_expsym_cmds=$lt_module_expsym_cmds
26897 # Whether we are building with GNU ld or not.
26898 with_gnu_ld=$lt_with_gnu_ld
26900 # Flag that allows shared libraries with undefined symbols to be built.
26901 allow_undefined_flag=$lt_allow_undefined_flag
26903 # Flag that enforces no undefined symbols.
26904 no_undefined_flag=$lt_no_undefined_flag
26906 # Flag to hardcode \$libdir into a binary during linking.
26907 # This must work even if \$libdir does not exist
26908 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26910 # If ld is used when linking, flag to hardcode \$libdir into a binary
26911 # during linking. This must work even if \$libdir does not exist.
26912 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
26914 # Whether we need a single "-rpath" flag with a separated argument.
26915 hardcode_libdir_separator=$lt_hardcode_libdir_separator
26917 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26918 # DIR into the resulting binary.
26919 hardcode_direct=$hardcode_direct
26921 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26922 # DIR into the resulting binary and the resulting library dependency is
26923 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
26924 # library is relocated.
26925 hardcode_direct_absolute=$hardcode_direct_absolute
26927 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26928 # into the resulting binary.
26929 hardcode_minus_L=$hardcode_minus_L
26931 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26932 # into the resulting binary.
26933 hardcode_shlibpath_var=$hardcode_shlibpath_var
26935 # Set to "yes" if building a shared library automatically hardcodes DIR
26936 # into the library and all subsequent libraries and executables linked
26937 # against it.
26938 hardcode_automatic=$hardcode_automatic
26940 # Set to yes if linker adds runtime paths of dependent libraries
26941 # to runtime path list.
26942 inherit_rpath=$inherit_rpath
26944 # Whether libtool must link a program against all its dependency libraries.
26945 link_all_deplibs=$link_all_deplibs
26947 # Fix the shell variable \$srcfile for the compiler.
26948 fix_srcfile_path=$lt_fix_srcfile_path
26950 # Set to "yes" if exported symbols are required.
26951 always_export_symbols=$always_export_symbols
26953 # The commands to list exported symbols.
26954 export_symbols_cmds=$lt_export_symbols_cmds
26956 # Symbols that should not be listed in the preloaded symbols.
26957 exclude_expsyms=$lt_exclude_expsyms
26959 # Symbols that must always be exported.
26960 include_expsyms=$lt_include_expsyms
26962 # Commands necessary for linking programs (against libraries) with templates.
26963 prelink_cmds=$lt_prelink_cmds
26965 # Specify filename containing input files.
26966 file_list_spec=$lt_file_list_spec
26968 # How to hardcode a shared library path into an executable.
26969 hardcode_action=$hardcode_action
26971 # The directories searched by this compiler when creating a shared library.
26972 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
26974 # Dependencies to place before and after the objects being linked to
26975 # create a shared library.
26976 predep_objects=$lt_predep_objects
26977 postdep_objects=$lt_postdep_objects
26978 predeps=$lt_predeps
26979 postdeps=$lt_postdeps
26981 # The library search path used internally by the compiler when linking
26982 # a shared library.
26983 compiler_lib_search_path=$lt_compiler_lib_search_path
26985 # ### END LIBTOOL CONFIG
26987 _LT_EOF
26989 case $host_os in
26990 aix3*)
26991 cat <<\_LT_EOF >> "$cfgfile"
26992 # AIX sometimes has problems with the GCC collect2 program. For some
26993 # reason, if we set the COLLECT_NAMES environment variable, the problems
26994 # vanish in a puff of smoke.
26995 if test "X${COLLECT_NAMES+set}" != Xset; then
26996 COLLECT_NAMES=
26997 export COLLECT_NAMES
26999 _LT_EOF
27001 esac
27004 ltmain="$ac_aux_dir/ltmain.sh"
27007 # We use sed instead of cat because bash on DJGPP gets confused if
27008 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27009 # text mode, it properly converts lines to CR/LF. This bash problem
27010 # is reportedly fixed, but why not run on old versions too?
27011 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27012 || (rm -f "$cfgfile"; exit 1)
27014 case $xsi_shell in
27015 yes)
27016 cat << \_LT_EOF >> "$cfgfile"
27018 # func_dirname file append nondir_replacement
27019 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27020 # otherwise set result to NONDIR_REPLACEMENT.
27021 func_dirname ()
27023 case ${1} in
27024 */*) func_dirname_result="${1%/*}${2}" ;;
27025 * ) func_dirname_result="${3}" ;;
27026 esac
27029 # func_basename file
27030 func_basename ()
27032 func_basename_result="${1##*/}"
27035 # func_dirname_and_basename file append nondir_replacement
27036 # perform func_basename and func_dirname in a single function
27037 # call:
27038 # dirname: Compute the dirname of FILE. If nonempty,
27039 # add APPEND to the result, otherwise set result
27040 # to NONDIR_REPLACEMENT.
27041 # value returned in "$func_dirname_result"
27042 # basename: Compute filename of FILE.
27043 # value retuned in "$func_basename_result"
27044 # Implementation must be kept synchronized with func_dirname
27045 # and func_basename. For efficiency, we do not delegate to
27046 # those functions but instead duplicate the functionality here.
27047 func_dirname_and_basename ()
27049 case ${1} in
27050 */*) func_dirname_result="${1%/*}${2}" ;;
27051 * ) func_dirname_result="${3}" ;;
27052 esac
27053 func_basename_result="${1##*/}"
27056 # func_stripname prefix suffix name
27057 # strip PREFIX and SUFFIX off of NAME.
27058 # PREFIX and SUFFIX must not contain globbing or regex special
27059 # characters, hashes, percent signs, but SUFFIX may contain a leading
27060 # dot (in which case that matches only a dot).
27061 func_stripname ()
27063 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27064 # positional parameters, so assign one to ordinary parameter first.
27065 func_stripname_result=${3}
27066 func_stripname_result=${func_stripname_result#"${1}"}
27067 func_stripname_result=${func_stripname_result%"${2}"}
27070 # func_opt_split
27071 func_opt_split ()
27073 func_opt_split_opt=${1%%=*}
27074 func_opt_split_arg=${1#*=}
27077 # func_lo2o object
27078 func_lo2o ()
27080 case ${1} in
27081 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27082 *) func_lo2o_result=${1} ;;
27083 esac
27086 # func_xform libobj-or-source
27087 func_xform ()
27089 func_xform_result=${1%.*}.lo
27092 # func_arith arithmetic-term...
27093 func_arith ()
27095 func_arith_result=$(( $* ))
27098 # func_len string
27099 # STRING may not start with a hyphen.
27100 func_len ()
27102 func_len_result=${#1}
27105 _LT_EOF
27107 *) # Bourne compatible functions.
27108 cat << \_LT_EOF >> "$cfgfile"
27110 # func_dirname file append nondir_replacement
27111 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27112 # otherwise set result to NONDIR_REPLACEMENT.
27113 func_dirname ()
27115 # Extract subdirectory from the argument.
27116 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
27117 if test "X$func_dirname_result" = "X${1}"; then
27118 func_dirname_result="${3}"
27119 else
27120 func_dirname_result="$func_dirname_result${2}"
27124 # func_basename file
27125 func_basename ()
27127 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
27131 # func_stripname prefix suffix name
27132 # strip PREFIX and SUFFIX off of NAME.
27133 # PREFIX and SUFFIX must not contain globbing or regex special
27134 # characters, hashes, percent signs, but SUFFIX may contain a leading
27135 # dot (in which case that matches only a dot).
27136 # func_strip_suffix prefix name
27137 func_stripname ()
27139 case ${2} in
27140 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
27141 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
27142 esac
27145 # sed scripts:
27146 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27147 my_sed_long_arg='1s/^-[^=]*=//'
27149 # func_opt_split
27150 func_opt_split ()
27152 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
27153 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
27156 # func_lo2o object
27157 func_lo2o ()
27159 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
27162 # func_xform libobj-or-source
27163 func_xform ()
27165 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
27168 # func_arith arithmetic-term...
27169 func_arith ()
27171 func_arith_result=`expr "$@"`
27174 # func_len string
27175 # STRING may not start with a hyphen.
27176 func_len ()
27178 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27181 _LT_EOF
27182 esac
27184 case $lt_shell_append in
27185 yes)
27186 cat << \_LT_EOF >> "$cfgfile"
27188 # func_append var value
27189 # Append VALUE to the end of shell variable VAR.
27190 func_append ()
27192 eval "$1+=\$2"
27194 _LT_EOF
27197 cat << \_LT_EOF >> "$cfgfile"
27199 # func_append var value
27200 # Append VALUE to the end of shell variable VAR.
27201 func_append ()
27203 eval "$1=\$$1\$2"
27206 _LT_EOF
27208 esac
27211 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27212 || (rm -f "$cfgfile"; exit 1)
27214 mv -f "$cfgfile" "$ofile" ||
27215 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27216 chmod +x "$ofile"
27219 cat <<_LT_EOF >> "$ofile"
27221 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27223 # The linker used to build libraries.
27224 LD=$lt_LD_CXX
27226 # How to create reloadable object files.
27227 reload_flag=$lt_reload_flag_CXX
27228 reload_cmds=$lt_reload_cmds_CXX
27230 # Commands used to build an old-style archive.
27231 old_archive_cmds=$lt_old_archive_cmds_CXX
27233 # A language specific compiler.
27234 CC=$lt_compiler_CXX
27236 # Is the compiler the GNU compiler?
27237 with_gcc=$GCC_CXX
27239 # Compiler flag to turn off builtin functions.
27240 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27242 # How to pass a linker flag through the compiler.
27243 wl=$lt_lt_prog_compiler_wl_CXX
27245 # Additional compiler flags for building library objects.
27246 pic_flag=$lt_lt_prog_compiler_pic_CXX
27248 # Compiler flag to prevent dynamic linking.
27249 link_static_flag=$lt_lt_prog_compiler_static_CXX
27251 # Does compiler simultaneously support -c and -o options?
27252 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27254 # Whether or not to add -lc for building shared libraries.
27255 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27257 # Whether or not to disallow shared libs when runtime libs are static.
27258 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27260 # Compiler flag to allow reflexive dlopens.
27261 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27263 # Compiler flag to generate shared objects directly from archives.
27264 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27266 # Whether the compiler copes with passing no objects directly.
27267 compiler_needs_object=$lt_compiler_needs_object_CXX
27269 # Create an old-style archive from a shared archive.
27270 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27272 # Create a temporary old-style archive to link instead of a shared archive.
27273 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27275 # Commands used to build a shared archive.
27276 archive_cmds=$lt_archive_cmds_CXX
27277 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27279 # Commands used to build a loadable module if different from building
27280 # a shared archive.
27281 module_cmds=$lt_module_cmds_CXX
27282 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27284 # Whether we are building with GNU ld or not.
27285 with_gnu_ld=$lt_with_gnu_ld_CXX
27287 # Flag that allows shared libraries with undefined symbols to be built.
27288 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27290 # Flag that enforces no undefined symbols.
27291 no_undefined_flag=$lt_no_undefined_flag_CXX
27293 # Flag to hardcode \$libdir into a binary during linking.
27294 # This must work even if \$libdir does not exist
27295 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27297 # If ld is used when linking, flag to hardcode \$libdir into a binary
27298 # during linking. This must work even if \$libdir does not exist.
27299 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27301 # Whether we need a single "-rpath" flag with a separated argument.
27302 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27304 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27305 # DIR into the resulting binary.
27306 hardcode_direct=$hardcode_direct_CXX
27308 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27309 # DIR into the resulting binary and the resulting library dependency is
27310 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27311 # library is relocated.
27312 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27314 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27315 # into the resulting binary.
27316 hardcode_minus_L=$hardcode_minus_L_CXX
27318 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27319 # into the resulting binary.
27320 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27322 # Set to "yes" if building a shared library automatically hardcodes DIR
27323 # into the library and all subsequent libraries and executables linked
27324 # against it.
27325 hardcode_automatic=$hardcode_automatic_CXX
27327 # Set to yes if linker adds runtime paths of dependent libraries
27328 # to runtime path list.
27329 inherit_rpath=$inherit_rpath_CXX
27331 # Whether libtool must link a program against all its dependency libraries.
27332 link_all_deplibs=$link_all_deplibs_CXX
27334 # Fix the shell variable \$srcfile for the compiler.
27335 fix_srcfile_path=$lt_fix_srcfile_path_CXX
27337 # Set to "yes" if exported symbols are required.
27338 always_export_symbols=$always_export_symbols_CXX
27340 # The commands to list exported symbols.
27341 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27343 # Symbols that should not be listed in the preloaded symbols.
27344 exclude_expsyms=$lt_exclude_expsyms_CXX
27346 # Symbols that must always be exported.
27347 include_expsyms=$lt_include_expsyms_CXX
27349 # Commands necessary for linking programs (against libraries) with templates.
27350 prelink_cmds=$lt_prelink_cmds_CXX
27352 # Specify filename containing input files.
27353 file_list_spec=$lt_file_list_spec_CXX
27355 # How to hardcode a shared library path into an executable.
27356 hardcode_action=$hardcode_action_CXX
27358 # The directories searched by this compiler when creating a shared library.
27359 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27361 # Dependencies to place before and after the objects being linked to
27362 # create a shared library.
27363 predep_objects=$lt_predep_objects_CXX
27364 postdep_objects=$lt_postdep_objects_CXX
27365 predeps=$lt_predeps_CXX
27366 postdeps=$lt_postdeps_CXX
27368 # The library search path used internally by the compiler when linking
27369 # a shared library.
27370 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27372 # ### END LIBTOOL TAG CONFIG: CXX
27373 _LT_EOF
27376 cat <<_LT_EOF >> "$ofile"
27378 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
27380 # The linker used to build libraries.
27381 LD=$lt_LD_GCJ
27383 # How to create reloadable object files.
27384 reload_flag=$lt_reload_flag_GCJ
27385 reload_cmds=$lt_reload_cmds_GCJ
27387 # Commands used to build an old-style archive.
27388 old_archive_cmds=$lt_old_archive_cmds_GCJ
27390 # A language specific compiler.
27391 CC=$lt_compiler_GCJ
27393 # Is the compiler the GNU compiler?
27394 with_gcc=$GCC_GCJ
27396 # Compiler flag to turn off builtin functions.
27397 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
27399 # How to pass a linker flag through the compiler.
27400 wl=$lt_lt_prog_compiler_wl_GCJ
27402 # Additional compiler flags for building library objects.
27403 pic_flag=$lt_lt_prog_compiler_pic_GCJ
27405 # Compiler flag to prevent dynamic linking.
27406 link_static_flag=$lt_lt_prog_compiler_static_GCJ
27408 # Does compiler simultaneously support -c and -o options?
27409 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
27411 # Whether or not to add -lc for building shared libraries.
27412 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
27414 # Whether or not to disallow shared libs when runtime libs are static.
27415 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
27417 # Compiler flag to allow reflexive dlopens.
27418 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
27420 # Compiler flag to generate shared objects directly from archives.
27421 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
27423 # Whether the compiler copes with passing no objects directly.
27424 compiler_needs_object=$lt_compiler_needs_object_GCJ
27426 # Create an old-style archive from a shared archive.
27427 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
27429 # Create a temporary old-style archive to link instead of a shared archive.
27430 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
27432 # Commands used to build a shared archive.
27433 archive_cmds=$lt_archive_cmds_GCJ
27434 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
27436 # Commands used to build a loadable module if different from building
27437 # a shared archive.
27438 module_cmds=$lt_module_cmds_GCJ
27439 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
27441 # Whether we are building with GNU ld or not.
27442 with_gnu_ld=$lt_with_gnu_ld_GCJ
27444 # Flag that allows shared libraries with undefined symbols to be built.
27445 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
27447 # Flag that enforces no undefined symbols.
27448 no_undefined_flag=$lt_no_undefined_flag_GCJ
27450 # Flag to hardcode \$libdir into a binary during linking.
27451 # This must work even if \$libdir does not exist
27452 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
27454 # If ld is used when linking, flag to hardcode \$libdir into a binary
27455 # during linking. This must work even if \$libdir does not exist.
27456 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
27458 # Whether we need a single "-rpath" flag with a separated argument.
27459 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
27461 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27462 # DIR into the resulting binary.
27463 hardcode_direct=$hardcode_direct_GCJ
27465 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27466 # DIR into the resulting binary and the resulting library dependency is
27467 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27468 # library is relocated.
27469 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
27471 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27472 # into the resulting binary.
27473 hardcode_minus_L=$hardcode_minus_L_GCJ
27475 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27476 # into the resulting binary.
27477 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
27479 # Set to "yes" if building a shared library automatically hardcodes DIR
27480 # into the library and all subsequent libraries and executables linked
27481 # against it.
27482 hardcode_automatic=$hardcode_automatic_GCJ
27484 # Set to yes if linker adds runtime paths of dependent libraries
27485 # to runtime path list.
27486 inherit_rpath=$inherit_rpath_GCJ
27488 # Whether libtool must link a program against all its dependency libraries.
27489 link_all_deplibs=$link_all_deplibs_GCJ
27491 # Fix the shell variable \$srcfile for the compiler.
27492 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
27494 # Set to "yes" if exported symbols are required.
27495 always_export_symbols=$always_export_symbols_GCJ
27497 # The commands to list exported symbols.
27498 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
27500 # Symbols that should not be listed in the preloaded symbols.
27501 exclude_expsyms=$lt_exclude_expsyms_GCJ
27503 # Symbols that must always be exported.
27504 include_expsyms=$lt_include_expsyms_GCJ
27506 # Commands necessary for linking programs (against libraries) with templates.
27507 prelink_cmds=$lt_prelink_cmds_GCJ
27509 # Specify filename containing input files.
27510 file_list_spec=$lt_file_list_spec_GCJ
27512 # How to hardcode a shared library path into an executable.
27513 hardcode_action=$hardcode_action_GCJ
27515 # The directories searched by this compiler when creating a shared library.
27516 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
27518 # Dependencies to place before and after the objects being linked to
27519 # create a shared library.
27520 predep_objects=$lt_predep_objects_GCJ
27521 postdep_objects=$lt_postdep_objects_GCJ
27522 predeps=$lt_predeps_GCJ
27523 postdeps=$lt_postdeps_GCJ
27525 # The library search path used internally by the compiler when linking
27526 # a shared library.
27527 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
27529 # ### END LIBTOOL TAG CONFIG: GCJ
27530 _LT_EOF
27533 "scripts/jar":F) chmod +x scripts/jar ;;
27535 esac
27536 done # for ac_tag
27539 as_fn_exit 0
27540 _ACEOF
27541 ac_clean_files=$ac_clean_files_save
27543 test $ac_write_fail = 0 ||
27544 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27547 # configure is writing to config.log, and then calls config.status.
27548 # config.status does its own redirection, appending to config.log.
27549 # Unfortunately, on DOS this fails, as config.log is still kept open
27550 # by configure, so config.status won't be able to write to it; its
27551 # output is simply discarded. So we exec the FD to /dev/null,
27552 # effectively closing config.log, so it can be properly (re)opened and
27553 # appended to by config.status. When coming back to configure, we
27554 # need to make the FD available again.
27555 if test "$no_create" != yes; then
27556 ac_cs_success=:
27557 ac_config_status_args=
27558 test "$silent" = yes &&
27559 ac_config_status_args="$ac_config_status_args --quiet"
27560 exec 5>/dev/null
27561 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27562 exec 5>>config.log
27563 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27564 # would make configure fail if this is the last instruction.
27565 $ac_cs_success || as_fn_exit $?
27569 # CONFIG_SUBDIRS section.
27571 if test "$no_recursion" != yes; then
27573 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
27574 # so they do not pile up.
27575 ac_sub_configure_args=
27576 ac_prev=
27577 eval "set x $ac_configure_args"
27578 shift
27579 for ac_arg
27581 if test -n "$ac_prev"; then
27582 ac_prev=
27583 continue
27585 case $ac_arg in
27586 -cache-file | --cache-file | --cache-fil | --cache-fi \
27587 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27588 ac_prev=cache_file ;;
27589 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27590 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27591 | --c=*)
27593 --config-cache | -C)
27595 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27596 ac_prev=srcdir ;;
27597 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27599 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27600 ac_prev=prefix ;;
27601 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27603 --disable-option-checking)
27606 case $ac_arg in
27607 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27608 esac
27609 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
27610 esac
27611 done
27613 # Always prepend --prefix to ensure using the same prefix
27614 # in subdir configurations.
27615 ac_arg="--prefix=$prefix"
27616 case $ac_arg in
27617 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27618 esac
27619 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
27621 # Pass --silent
27622 if test "$silent" = yes; then
27623 ac_sub_configure_args="--silent $ac_sub_configure_args"
27626 # Always prepend --disable-option-checking to silence warnings, since
27627 # different subdirs can have different --enable and --with options.
27628 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
27630 ac_popdir=`pwd`
27631 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27633 # Do not complain, so a configure script can configure whichever
27634 # parts of a large source tree are present.
27635 test -d "$srcdir/$ac_dir" || continue
27637 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
27638 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
27639 $as_echo "$ac_msg" >&6
27640 as_dir="$ac_dir"; as_fn_mkdir_p
27641 ac_builddir=.
27643 case "$ac_dir" in
27644 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27646 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27647 # A ".." for each directory in $ac_dir_suffix.
27648 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27649 case $ac_top_builddir_sub in
27650 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27651 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27652 esac ;;
27653 esac
27654 ac_abs_top_builddir=$ac_pwd
27655 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27656 # for backward compatibility:
27657 ac_top_builddir=$ac_top_build_prefix
27659 case $srcdir in
27660 .) # We are building in place.
27661 ac_srcdir=.
27662 ac_top_srcdir=$ac_top_builddir_sub
27663 ac_abs_top_srcdir=$ac_pwd ;;
27664 [\\/]* | ?:[\\/]* ) # Absolute name.
27665 ac_srcdir=$srcdir$ac_dir_suffix;
27666 ac_top_srcdir=$srcdir
27667 ac_abs_top_srcdir=$srcdir ;;
27668 *) # Relative name.
27669 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27670 ac_top_srcdir=$ac_top_build_prefix$srcdir
27671 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27672 esac
27673 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27676 cd "$ac_dir"
27678 # Check for guested configure; otherwise get Cygnus style configure.
27679 if test -f "$ac_srcdir/configure.gnu"; then
27680 ac_sub_configure=$ac_srcdir/configure.gnu
27681 elif test -f "$ac_srcdir/configure"; then
27682 ac_sub_configure=$ac_srcdir/configure
27683 elif test -f "$ac_srcdir/configure.in"; then
27684 # This should be Cygnus configure.
27685 ac_sub_configure=$ac_aux_dir/configure
27686 else
27687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
27688 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27689 ac_sub_configure=
27692 # The recursion is here.
27693 if test -n "$ac_sub_configure"; then
27694 # Make the cache file name correct relative to the subdirectory.
27695 case $cache_file in
27696 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27697 *) # Relative name.
27698 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
27699 esac
27701 { $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
27702 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27703 # The eval makes quoting arguments work.
27704 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27705 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27706 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
27709 cd "$ac_popdir"
27710 done
27712 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27714 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}