Fix a bug in varpool_finalize_decl to match trunk
[official-gcc.git] / gcc-4_7-mobile-vtable-verification / libjava / configure
bloba09bfab346bb11340e207a4522518fc8760e1e76
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_c_werror_flag=
603 ac_subst_vars='am__EXEEXT_FALSE
604 am__EXEEXT_TRUE
605 LTLIBOBJS
606 LIBOBJS
607 LIBDIR
610 GCJ_BIN_DIR
611 JRE_LIB_DIR
612 JRE_BIN_DIR
613 SDK_INCLUDE_DIR
614 SDK_LIB_DIR
615 SDK_BIN_DIR
616 SDK_LNK
617 JRE_LNK
618 JRE_DIR
619 JVM_JAR_DIR
620 JVM_JAR_ROOT_DIR
621 JVM_ROOT_DIR
622 BUILD_VERSION
623 JAVA_VERSION
624 gcc_suffix
625 CREATE_JAVA_HOME_FALSE
626 CREATE_JAVA_HOME_TRUE
627 INSTALL_AOT_RPM_FALSE
628 INSTALL_AOT_RPM_TRUE
629 MAKE
630 python_mod_dir_expanded
631 python_mod_dir
632 here
633 LD_FINISH_STATIC_SPEC
634 LD_START_STATIC_SPEC
635 ANONVERSCRIPT_SUN_FALSE
636 ANONVERSCRIPT_SUN_TRUE
637 ANONVERSCRIPT_GNU_FALSE
638 ANONVERSCRIPT_GNU_TRUE
639 ANONVERSCRIPT_FALSE
640 ANONVERSCRIPT_TRUE
641 SYSDEP_SOURCES
642 PERL
643 libstdcxx_incdir
644 gxx_include_dir
645 gcjsubdir
646 dbexecdir
647 GCJVERSION
648 toolexeclibdir
649 toolexecmainlibdir
650 toolexecdir
651 LIBGCC_UNWIND_INCLUDE
652 INSTALL_BINARIES_FALSE
653 INSTALL_BINARIES_TRUE
654 NEEDS_DATA_START_FALSE
655 NEEDS_DATA_START_TRUE
656 ENABLE_SHARED_FALSE
657 ENABLE_SHARED_TRUE
658 NATIVE_FALSE
659 NATIVE_TRUE
660 ATOMICSPEC
661 IEEESPEC
662 BACKTRACESPEC
663 EXCEPTIONSPEC
664 CHECKREFSPEC
665 DIVIDESPEC
666 ZINCS
667 SYS_ZLIBS
668 ZLIBS
669 CLASSPATH_SEPARATOR
670 LIBART_LIBS
671 LIBART_CFLAGS
672 GLIB_LIBS
673 GLIB_CFLAGS
674 GTK_LIBS
675 GTK_CFLAGS
676 PKG_CONFIG
677 LDLIBICONV
678 LTLIBICONV
679 LIBICONV
680 USING_GCC_FALSE
681 USING_GCC_TRUE
682 HASH_SYNC_SPEC
683 LIBGCJ_BC_SPEC
684 LIBGCJ_SPEC
685 USE_LIBGCJ_BC_FALSE
686 USE_LIBGCJ_BC_TRUE
687 USING_NO_THREADS_FALSE
688 USING_NO_THREADS_TRUE
689 USING_WIN32_THREADS_FALSE
690 USING_WIN32_THREADS_TRUE
691 USING_POSIX_THREADS_FALSE
692 USING_POSIX_THREADS_TRUE
693 THREADCXXFLAGS
694 THREADLDFLAGS
695 THREADSTARTFILESPEC
696 THREADSPEC
697 THREADDEPS
698 THREADINCS
699 THREADLIBS
700 USING_NOGC_FALSE
701 USING_NOGC_TRUE
702 USING_BOEHMGC_FALSE
703 USING_BOEHMGC_TRUE
704 GCTESTSPEC
705 JC1GCSPEC
706 GCSPEC
707 GCDEPS
708 GCINCS
709 GCLIBS
710 LIBGCJTESTSPEC
711 LIBMATHSPEC
712 LIBSTDCXXSPEC
713 extra_ldflags
714 extra_ldflags_libjava
715 X_EXTRA_LIBS
716 X_LIBS
717 X_PRE_LIBS
718 X_CFLAGS
719 XMKMF
720 ZLIBTESTSPEC
721 ZLIBSPEC
722 SYSTEMSPEC
723 USING_DARWIN_CRT_FALSE
724 USING_DARWIN_CRT_TRUE
725 USING_POSIX_PLATFORM_FALSE
726 USING_POSIX_PLATFORM_TRUE
727 USING_WIN32_PLATFORM_FALSE
728 USING_WIN32_PLATFORM_TRUE
729 PLATFORM
730 LIBFFIINCS
731 LIBFFI
732 INTERPRETER_FALSE
733 INTERPRETER_TRUE
734 INTERPRETER
735 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE
736 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE
737 SUPPRESS_LIBGCJ_BC_FALSE
738 SUPPRESS_LIBGCJ_BC_TRUE
739 JAVA_HOME
740 JAVA_HOME_SET_FALSE
741 JAVA_HOME_SET_TRUE
742 INSTALL_ECJ_JAR_FALSE
743 INSTALL_ECJ_JAR_TRUE
744 BUILD_ECJ1_FALSE
745 BUILD_ECJ1_TRUE
746 ECJ_JAR
747 ECJ_BUILD_JAR
748 TESTSUBDIR_FALSE
749 TESTSUBDIR_TRUE
750 subdirs
751 am__fastdepGCJ_FALSE
752 am__fastdepGCJ_TRUE
753 GCJDEPMODE
754 GCJFLAGS
755 ac_ct_GCJ
757 lt_host_flags
758 CXXCPP
760 OTOOL64
761 OTOOL
762 LIPO
763 NMEDIT
764 DSYMUTIL
765 OBJDUMP
767 ac_ct_DUMPBIN
768 DUMPBIN
769 FGREP
770 EGREP
771 GREP
773 LIBTOOL
774 DIRLTDL
775 LIBLTDL
776 INCLTDL
777 host_exeext
778 GCJH
779 GCC_FOR_ECJX
780 GCJ_FOR_ECJX
781 X_AWT_FALSE
782 X_AWT_TRUE
783 XLIB_AWT_FALSE
784 XLIB_AWT_TRUE
785 TOOLKIT
786 LIBGCJDEBUG
787 BUILD_SUBLIBS_FALSE
788 BUILD_SUBLIBS_TRUE
789 LIBGCJ_LD_EXPORT_ALL
790 LIBGCJ_LD_SYMBOLIC_FUNCTIONS
791 LIBGCJ_LD_SYMBOLIC
792 LIBGCJ_SUBLIB_CORE_EXTRA_DEPS
793 LIBGCJ_SUBLIB_LTFLAGS
794 LIBGCJ_JAVAFLAGS
795 LIBGCJ_CXXFLAGS
796 LIBGCJ_CFLAGS
797 MAINT
798 MAINTAINER_MODE_FALSE
799 MAINTAINER_MODE_TRUE
800 UNZIP
803 DLLTOOL
804 RANLIB
808 am__fastdepCXX_FALSE
809 am__fastdepCXX_TRUE
810 CXXDEPMODE
811 am__fastdepCC_FALSE
812 am__fastdepCC_TRUE
813 CCDEPMODE
814 AMDEPBACKSLASH
815 AMDEP_FALSE
816 AMDEP_TRUE
817 am__quote
818 am__include
819 DEPDIR
820 am__untar
821 am__tar
822 AMTAR
823 am__leading_dot
824 SET_MAKE
826 mkdir_p
827 MKDIR_P
828 INSTALL_STRIP_PROGRAM
829 STRIP
830 install_sh
831 MAKEINFO
832 AUTOHEADER
833 AUTOMAKE
834 AUTOCONF
835 ACLOCAL
836 VERSION
837 PACKAGE
838 CYGPATH_W
839 am__isrc
840 INSTALL_DATA
841 INSTALL_SCRIPT
842 INSTALL_PROGRAM
843 ac_ct_CXX
844 CXXFLAGS
846 OBJEXT
847 EXEEXT
848 ac_ct_CC
849 CPPFLAGS
850 LDFLAGS
851 CFLAGS
853 JAVA_MAINTAINER_MODE_FALSE
854 JAVA_MAINTAINER_MODE_TRUE
855 CREATE_GJDOC_FALSE
856 CREATE_GJDOC_TRUE
857 ANTLR_JAR
858 mkinstalldirs
859 LN_S
860 target_noncanonical
861 target_os
862 target_vendor
863 target_cpu
864 target
865 host_os
866 host_vendor
867 host_cpu
868 host
869 multi_basedir
870 target_subdir
871 host_subdir
872 build_subdir
873 build_libsubdir
874 build_os
875 build_vendor
876 build_cpu
877 build
878 target_alias
879 host_alias
880 build_alias
881 LIBS
882 ECHO_T
883 ECHO_N
884 ECHO_C
885 DEFS
886 mandir
887 localedir
888 libdir
889 psdir
890 pdfdir
891 dvidir
892 htmldir
893 infodir
894 docdir
895 oldincludedir
896 includedir
897 localstatedir
898 sharedstatedir
899 sysconfdir
900 datadir
901 datarootdir
902 libexecdir
903 sbindir
904 bindir
905 program_transform_name
906 prefix
907 exec_prefix
908 PACKAGE_URL
909 PACKAGE_BUGREPORT
910 PACKAGE_STRING
911 PACKAGE_VERSION
912 PACKAGE_TARNAME
913 PACKAGE_NAME
914 PATH_SEPARATOR
915 SHELL'
916 ac_subst_files=''
917 ac_user_opts='
918 enable_option_checking
919 with_build_libsubdir
920 with_target_subdir
921 enable_multilib
922 with_cross_host
923 with_newlib
924 enable_version_specific_runtime_libs
925 enable_browser_plugin
926 enable_gconf_peer
927 with_antlr_jar
928 enable_gjdoc
929 enable_java_maintainer_mode
930 enable_dependency_tracking
931 enable_maintainer_mode
932 enable_libgcj_sublibs
933 enable_libgcj_debug
934 with_escher
935 enable_java_awt
936 enable_shared
937 enable_static
938 with_pic
939 enable_fast_install
940 with_gnu_ld
941 enable_libtool_lock
942 enable_getenv_properties
943 enable_hash_synchronization
944 with_ecj_jar
945 with_java_home
946 enable_libgcj_bc
947 enable_reduced_reflection
948 with_win32_nlsapi
949 enable_gc_debug
950 enable_interpreter
951 enable_sjlj_exceptions
952 enable_java_net
953 with_libffi
954 enable_jvmpi
955 with_ecos
956 with_system_zlib
957 with_x
958 enable_java_gc
959 enable_rpath
960 with_libiconv_prefix
961 enable_tls
962 with_system_libunwind
963 enable_symvers
964 with_python_dir
965 enable_aot_compile_rpm
966 enable_java_home
967 with_gcc_suffix
968 with_arch_directory
969 with_os_directory
970 with_origin_name
971 with_arch_suffix
972 with_jvm_root_dir
973 with_jvm_jar_dir
975 ac_precious_vars='build_alias
976 host_alias
977 target_alias
979 CFLAGS
980 LDFLAGS
981 LIBS
982 CPPFLAGS
984 CXXFLAGS
987 CXXCPP
988 XMKMF'
989 ac_subdirs_all='classpath libltdl'
991 # Initialize some variables set by options.
992 ac_init_help=
993 ac_init_version=false
994 ac_unrecognized_opts=
995 ac_unrecognized_sep=
996 # The variables have the same names as the options, with
997 # dashes changed to underlines.
998 cache_file=/dev/null
999 exec_prefix=NONE
1000 no_create=
1001 no_recursion=
1002 prefix=NONE
1003 program_prefix=NONE
1004 program_suffix=NONE
1005 program_transform_name=s,x,x,
1006 silent=
1007 site=
1008 srcdir=
1009 verbose=
1010 x_includes=NONE
1011 x_libraries=NONE
1013 # Installation directory options.
1014 # These are left unexpanded so users can "make install exec_prefix=/foo"
1015 # and all the variables that are supposed to be based on exec_prefix
1016 # by default will actually change.
1017 # Use braces instead of parens because sh, perl, etc. also accept them.
1018 # (The list follows the same order as the GNU Coding Standards.)
1019 bindir='${exec_prefix}/bin'
1020 sbindir='${exec_prefix}/sbin'
1021 libexecdir='${exec_prefix}/libexec'
1022 datarootdir='${prefix}/share'
1023 datadir='${datarootdir}'
1024 sysconfdir='${prefix}/etc'
1025 sharedstatedir='${prefix}/com'
1026 localstatedir='${prefix}/var'
1027 includedir='${prefix}/include'
1028 oldincludedir='/usr/include'
1029 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1030 infodir='${datarootdir}/info'
1031 htmldir='${docdir}'
1032 dvidir='${docdir}'
1033 pdfdir='${docdir}'
1034 psdir='${docdir}'
1035 libdir='${exec_prefix}/lib'
1036 localedir='${datarootdir}/locale'
1037 mandir='${datarootdir}/man'
1039 ac_prev=
1040 ac_dashdash=
1041 for ac_option
1043 # If the previous option needs an argument, assign it.
1044 if test -n "$ac_prev"; then
1045 eval $ac_prev=\$ac_option
1046 ac_prev=
1047 continue
1050 case $ac_option in
1051 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1052 *) ac_optarg=yes ;;
1053 esac
1055 # Accept the important Cygnus configure options, so we can diagnose typos.
1057 case $ac_dashdash$ac_option in
1059 ac_dashdash=yes ;;
1061 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1062 ac_prev=bindir ;;
1063 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1064 bindir=$ac_optarg ;;
1066 -build | --build | --buil | --bui | --bu)
1067 ac_prev=build_alias ;;
1068 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1069 build_alias=$ac_optarg ;;
1071 -cache-file | --cache-file | --cache-fil | --cache-fi \
1072 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1073 ac_prev=cache_file ;;
1074 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1075 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1076 cache_file=$ac_optarg ;;
1078 --config-cache | -C)
1079 cache_file=config.cache ;;
1081 -datadir | --datadir | --datadi | --datad)
1082 ac_prev=datadir ;;
1083 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1084 datadir=$ac_optarg ;;
1086 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1087 | --dataroo | --dataro | --datar)
1088 ac_prev=datarootdir ;;
1089 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1090 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1091 datarootdir=$ac_optarg ;;
1093 -disable-* | --disable-*)
1094 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097 as_fn_error "invalid feature name: $ac_useropt"
1098 ac_useropt_orig=$ac_useropt
1099 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100 case $ac_user_opts in
1102 "enable_$ac_useropt"
1103 "*) ;;
1104 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1105 ac_unrecognized_sep=', ';;
1106 esac
1107 eval enable_$ac_useropt=no ;;
1109 -docdir | --docdir | --docdi | --doc | --do)
1110 ac_prev=docdir ;;
1111 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1112 docdir=$ac_optarg ;;
1114 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1115 ac_prev=dvidir ;;
1116 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1117 dvidir=$ac_optarg ;;
1119 -enable-* | --enable-*)
1120 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123 as_fn_error "invalid feature name: $ac_useropt"
1124 ac_useropt_orig=$ac_useropt
1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1128 "enable_$ac_useropt"
1129 "*) ;;
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1131 ac_unrecognized_sep=', ';;
1132 esac
1133 eval enable_$ac_useropt=\$ac_optarg ;;
1135 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1136 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1137 | --exec | --exe | --ex)
1138 ac_prev=exec_prefix ;;
1139 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1140 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1141 | --exec=* | --exe=* | --ex=*)
1142 exec_prefix=$ac_optarg ;;
1144 -gas | --gas | --ga | --g)
1145 # Obsolete; use --with-gas.
1146 with_gas=yes ;;
1148 -help | --help | --hel | --he | -h)
1149 ac_init_help=long ;;
1150 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1151 ac_init_help=recursive ;;
1152 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1153 ac_init_help=short ;;
1155 -host | --host | --hos | --ho)
1156 ac_prev=host_alias ;;
1157 -host=* | --host=* | --hos=* | --ho=*)
1158 host_alias=$ac_optarg ;;
1160 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1161 ac_prev=htmldir ;;
1162 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1163 | --ht=*)
1164 htmldir=$ac_optarg ;;
1166 -includedir | --includedir | --includedi | --included | --include \
1167 | --includ | --inclu | --incl | --inc)
1168 ac_prev=includedir ;;
1169 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1170 | --includ=* | --inclu=* | --incl=* | --inc=*)
1171 includedir=$ac_optarg ;;
1173 -infodir | --infodir | --infodi | --infod | --info | --inf)
1174 ac_prev=infodir ;;
1175 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1176 infodir=$ac_optarg ;;
1178 -libdir | --libdir | --libdi | --libd)
1179 ac_prev=libdir ;;
1180 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1181 libdir=$ac_optarg ;;
1183 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1184 | --libexe | --libex | --libe)
1185 ac_prev=libexecdir ;;
1186 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1187 | --libexe=* | --libex=* | --libe=*)
1188 libexecdir=$ac_optarg ;;
1190 -localedir | --localedir | --localedi | --localed | --locale)
1191 ac_prev=localedir ;;
1192 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1193 localedir=$ac_optarg ;;
1195 -localstatedir | --localstatedir | --localstatedi | --localstated \
1196 | --localstate | --localstat | --localsta | --localst | --locals)
1197 ac_prev=localstatedir ;;
1198 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1199 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1200 localstatedir=$ac_optarg ;;
1202 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1203 ac_prev=mandir ;;
1204 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1205 mandir=$ac_optarg ;;
1207 -nfp | --nfp | --nf)
1208 # Obsolete; use --without-fp.
1209 with_fp=no ;;
1211 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1212 | --no-cr | --no-c | -n)
1213 no_create=yes ;;
1215 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1216 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1217 no_recursion=yes ;;
1219 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1220 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1221 | --oldin | --oldi | --old | --ol | --o)
1222 ac_prev=oldincludedir ;;
1223 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1224 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1225 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1226 oldincludedir=$ac_optarg ;;
1228 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1229 ac_prev=prefix ;;
1230 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1231 prefix=$ac_optarg ;;
1233 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1234 | --program-pre | --program-pr | --program-p)
1235 ac_prev=program_prefix ;;
1236 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1237 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1238 program_prefix=$ac_optarg ;;
1240 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1241 | --program-suf | --program-su | --program-s)
1242 ac_prev=program_suffix ;;
1243 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1244 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1245 program_suffix=$ac_optarg ;;
1247 -program-transform-name | --program-transform-name \
1248 | --program-transform-nam | --program-transform-na \
1249 | --program-transform-n | --program-transform- \
1250 | --program-transform | --program-transfor \
1251 | --program-transfo | --program-transf \
1252 | --program-trans | --program-tran \
1253 | --progr-tra | --program-tr | --program-t)
1254 ac_prev=program_transform_name ;;
1255 -program-transform-name=* | --program-transform-name=* \
1256 | --program-transform-nam=* | --program-transform-na=* \
1257 | --program-transform-n=* | --program-transform-=* \
1258 | --program-transform=* | --program-transfor=* \
1259 | --program-transfo=* | --program-transf=* \
1260 | --program-trans=* | --program-tran=* \
1261 | --progr-tra=* | --program-tr=* | --program-t=*)
1262 program_transform_name=$ac_optarg ;;
1264 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1265 ac_prev=pdfdir ;;
1266 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1267 pdfdir=$ac_optarg ;;
1269 -psdir | --psdir | --psdi | --psd | --ps)
1270 ac_prev=psdir ;;
1271 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1272 psdir=$ac_optarg ;;
1274 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1275 | -silent | --silent | --silen | --sile | --sil)
1276 silent=yes ;;
1278 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1279 ac_prev=sbindir ;;
1280 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1281 | --sbi=* | --sb=*)
1282 sbindir=$ac_optarg ;;
1284 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1285 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1286 | --sharedst | --shareds | --shared | --share | --shar \
1287 | --sha | --sh)
1288 ac_prev=sharedstatedir ;;
1289 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1290 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1291 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1292 | --sha=* | --sh=*)
1293 sharedstatedir=$ac_optarg ;;
1295 -site | --site | --sit)
1296 ac_prev=site ;;
1297 -site=* | --site=* | --sit=*)
1298 site=$ac_optarg ;;
1300 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1301 ac_prev=srcdir ;;
1302 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1303 srcdir=$ac_optarg ;;
1305 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1306 | --syscon | --sysco | --sysc | --sys | --sy)
1307 ac_prev=sysconfdir ;;
1308 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1309 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1310 sysconfdir=$ac_optarg ;;
1312 -target | --target | --targe | --targ | --tar | --ta | --t)
1313 ac_prev=target_alias ;;
1314 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1315 target_alias=$ac_optarg ;;
1317 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1318 verbose=yes ;;
1320 -version | --version | --versio | --versi | --vers | -V)
1321 ac_init_version=: ;;
1323 -with-* | --with-*)
1324 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1325 # Reject names that are not valid shell variable names.
1326 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1327 as_fn_error "invalid package name: $ac_useropt"
1328 ac_useropt_orig=$ac_useropt
1329 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1330 case $ac_user_opts in
1332 "with_$ac_useropt"
1333 "*) ;;
1334 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1335 ac_unrecognized_sep=', ';;
1336 esac
1337 eval with_$ac_useropt=\$ac_optarg ;;
1339 -without-* | --without-*)
1340 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1341 # Reject names that are not valid shell variable names.
1342 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1343 as_fn_error "invalid package name: $ac_useropt"
1344 ac_useropt_orig=$ac_useropt
1345 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1346 case $ac_user_opts in
1348 "with_$ac_useropt"
1349 "*) ;;
1350 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1351 ac_unrecognized_sep=', ';;
1352 esac
1353 eval with_$ac_useropt=no ;;
1355 --x)
1356 # Obsolete; use --with-x.
1357 with_x=yes ;;
1359 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1360 | --x-incl | --x-inc | --x-in | --x-i)
1361 ac_prev=x_includes ;;
1362 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1363 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1364 x_includes=$ac_optarg ;;
1366 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1367 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1368 ac_prev=x_libraries ;;
1369 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1370 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1371 x_libraries=$ac_optarg ;;
1373 -*) as_fn_error "unrecognized option: \`$ac_option'
1374 Try \`$0 --help' for more information."
1377 *=*)
1378 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1379 # Reject names that are not valid shell variable names.
1380 case $ac_envvar in #(
1381 '' | [0-9]* | *[!_$as_cr_alnum]* )
1382 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1383 esac
1384 eval $ac_envvar=\$ac_optarg
1385 export $ac_envvar ;;
1388 # FIXME: should be removed in autoconf 3.0.
1389 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1390 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1391 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1392 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1395 esac
1396 done
1398 if test -n "$ac_prev"; then
1399 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1400 as_fn_error "missing argument to $ac_option"
1403 if test -n "$ac_unrecognized_opts"; then
1404 case $enable_option_checking in
1405 no) ;;
1406 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1407 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1408 esac
1411 # Check all directory arguments for consistency.
1412 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1413 datadir sysconfdir sharedstatedir localstatedir includedir \
1414 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1415 libdir localedir mandir
1417 eval ac_val=\$$ac_var
1418 # Remove trailing slashes.
1419 case $ac_val in
1420 */ )
1421 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1422 eval $ac_var=\$ac_val;;
1423 esac
1424 # Be sure to have absolute directory names.
1425 case $ac_val in
1426 [\\/$]* | ?:[\\/]* ) continue;;
1427 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1428 esac
1429 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1430 done
1432 # There might be people who depend on the old broken behavior: `$host'
1433 # used to hold the argument of --host etc.
1434 # FIXME: To remove some day.
1435 build=$build_alias
1436 host=$host_alias
1437 target=$target_alias
1439 # FIXME: To remove some day.
1440 if test "x$host_alias" != x; then
1441 if test "x$build_alias" = x; then
1442 cross_compiling=maybe
1443 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1444 If a cross compiler is detected then cross compile mode will be used." >&2
1445 elif test "x$build_alias" != "x$host_alias"; then
1446 cross_compiling=yes
1450 ac_tool_prefix=
1451 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1453 test "$silent" = yes && exec 6>/dev/null
1456 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1457 ac_ls_di=`ls -di .` &&
1458 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1459 as_fn_error "working directory cannot be determined"
1460 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1461 as_fn_error "pwd does not report name of working directory"
1464 # Find the source files, if location was not specified.
1465 if test -z "$srcdir"; then
1466 ac_srcdir_defaulted=yes
1467 # Try the directory containing this script, then the parent directory.
1468 ac_confdir=`$as_dirname -- "$as_myself" ||
1469 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1470 X"$as_myself" : 'X\(//\)[^/]' \| \
1471 X"$as_myself" : 'X\(//\)$' \| \
1472 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1473 $as_echo X"$as_myself" |
1474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1475 s//\1/
1478 /^X\(\/\/\)[^/].*/{
1479 s//\1/
1482 /^X\(\/\/\)$/{
1483 s//\1/
1486 /^X\(\/\).*/{
1487 s//\1/
1490 s/.*/./; q'`
1491 srcdir=$ac_confdir
1492 if test ! -r "$srcdir/$ac_unique_file"; then
1493 srcdir=..
1495 else
1496 ac_srcdir_defaulted=no
1498 if test ! -r "$srcdir/$ac_unique_file"; then
1499 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1500 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1502 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1503 ac_abs_confdir=`(
1504 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1505 pwd)`
1506 # When building in place, set srcdir=.
1507 if test "$ac_abs_confdir" = "$ac_pwd"; then
1508 srcdir=.
1510 # Remove unnecessary trailing slashes from srcdir.
1511 # Double slashes in file names in object file debugging info
1512 # mess up M-x gdb in Emacs.
1513 case $srcdir in
1514 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1515 esac
1516 for ac_var in $ac_precious_vars; do
1517 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1518 eval ac_env_${ac_var}_value=\$${ac_var}
1519 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1520 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1521 done
1524 # Report the --help message.
1526 if test "$ac_init_help" = "long"; then
1527 # Omit some internal or obsolete options to make the list less imposing.
1528 # This message is too long to be a string in the A/UX 3.1 sh.
1529 cat <<_ACEOF
1530 \`configure' configures libjava version-unused to adapt to many kinds of systems.
1532 Usage: $0 [OPTION]... [VAR=VALUE]...
1534 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1535 VAR=VALUE. See below for descriptions of some of the useful variables.
1537 Defaults for the options are specified in brackets.
1539 Configuration:
1540 -h, --help display this help and exit
1541 --help=short display options specific to this package
1542 --help=recursive display the short help of all the included packages
1543 -V, --version display version information and exit
1544 -q, --quiet, --silent do not print \`checking...' messages
1545 --cache-file=FILE cache test results in FILE [disabled]
1546 -C, --config-cache alias for \`--cache-file=config.cache'
1547 -n, --no-create do not create output files
1548 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1550 Installation directories:
1551 --prefix=PREFIX install architecture-independent files in PREFIX
1552 [$ac_default_prefix]
1553 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1554 [PREFIX]
1556 By default, \`make install' will install all the files in
1557 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1558 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1559 for instance \`--prefix=\$HOME'.
1561 For better control, use the options below.
1563 Fine tuning of the installation directories:
1564 --bindir=DIR user executables [EPREFIX/bin]
1565 --sbindir=DIR system admin executables [EPREFIX/sbin]
1566 --libexecdir=DIR program executables [EPREFIX/libexec]
1567 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1568 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1569 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1570 --libdir=DIR object code libraries [EPREFIX/lib]
1571 --includedir=DIR C header files [PREFIX/include]
1572 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1573 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1574 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1575 --infodir=DIR info documentation [DATAROOTDIR/info]
1576 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1577 --mandir=DIR man documentation [DATAROOTDIR/man]
1578 --docdir=DIR documentation root [DATAROOTDIR/doc/libjava]
1579 --htmldir=DIR html documentation [DOCDIR]
1580 --dvidir=DIR dvi documentation [DOCDIR]
1581 --pdfdir=DIR pdf documentation [DOCDIR]
1582 --psdir=DIR ps documentation [DOCDIR]
1583 _ACEOF
1585 cat <<\_ACEOF
1587 Program names:
1588 --program-prefix=PREFIX prepend PREFIX to installed program names
1589 --program-suffix=SUFFIX append SUFFIX to installed program names
1590 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1592 X features:
1593 --x-includes=DIR X include files are in DIR
1594 --x-libraries=DIR X library files are in DIR
1596 System types:
1597 --build=BUILD configure for building on BUILD [guessed]
1598 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1599 --target=TARGET configure for building compilers for TARGET [HOST]
1600 _ACEOF
1603 if test -n "$ac_init_help"; then
1604 case $ac_init_help in
1605 short | recursive ) echo "Configuration of libjava version-unused:";;
1606 esac
1607 cat <<\_ACEOF
1609 Optional Features:
1610 --disable-option-checking ignore unrecognized --enable/--with options
1611 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1612 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1613 --enable-multilib build many library versions (default)
1614 --enable-version-specific-runtime-libs
1615 specify that runtime libraries should be installed
1616 in a compiler-specific directory
1617 --enable-browser-plugin build gcjwebplugin web browser plugin
1618 --enable-gconf-peer compile GConf native peers for util.preferences
1619 --disable-gjdoc compile GJDoc (disabled by --disable-gjdoc)
1620 default=yes
1621 --enable-java-maintainer-mode
1622 allow rebuilding of .class and .h files
1623 --disable-dependency-tracking speeds up one-time build
1624 --enable-dependency-tracking do not reject slow dependency extractors
1625 --enable-maintainer-mode enable make rules and dependencies not useful
1626 (and sometimes confusing) to the casual installer
1627 --enable-libgcj-sublibs build libgcj as many sub-libraries
1628 --enable-libgcj-debug enable runtime debugging code
1629 --enable-java-awt list of AWT peer implementations to be built
1630 --enable-shared[=PKGS] build shared libraries [default=yes]
1631 --enable-static[=PKGS] build static libraries [default=yes]
1632 --enable-fast-install[=PKGS]
1633 optimize for fast installation [default=yes]
1634 --disable-libtool-lock avoid locking (might break parallel builds)
1635 --disable-getenv-properties
1636 don't set system properties from GCJ_PROPERTIES
1637 --enable-hash-synchronization
1638 use global hash table for monitor locks
1639 --enable-libgcj-bc enable(default) or disable BC ABI for portions of
1640 libgcj
1641 --enable-reduced-reflection
1642 enable or disable(default) -freduced-reflection when
1643 building portions of libgcj
1644 --enable-gc-debug include full support for pointer backtracing etc.
1645 --enable-interpreter enable interpreter
1646 --enable-sjlj-exceptions
1647 force use of builtin_setjmp for exceptions
1648 --disable-java-net disable java.net
1649 --disable-jvmpi disable JVMPI support
1650 --enable-java-gc=TYPE choose garbage collector (default is boehm)
1651 --disable-rpath do not hardcode runtime library paths
1652 --enable-tls Use thread-local storage [default=yes]
1653 --disable-symvers disable symbol versioning for libjava
1654 --enable-aot-compile-rpm
1655 enable installation of aot-compile-rpm [default=no]
1656 --enable-java-home create a standard JDK-style directory layout in the
1657 install tree [default=no]
1659 Optional Packages:
1660 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1661 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1662 --with-build-libsubdir=DIR Directory where to find libraries for build system
1663 --with-target-subdir=SUBDIR
1664 configure in a subdirectory
1665 --with-cross-host=HOST configure with a cross compiler from HOST
1666 --with-newlib configure with newlib
1667 --with-antlr-jar=file Use ANTLR from the specified jar file
1668 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
1669 --with-pic try to use only PIC/non-PIC objects [default=use
1670 both]
1671 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1672 --with-ecj-jar=FILE use preinstalled ecj jar
1673 --with-java-home=DIRECTORY
1674 value of java.home system property
1675 --with-win32-nlsapi=ansi or unicows or unicode
1676 native MinGW libgcj Win32 OS API (default is ansi)
1677 --without-libffi don't use libffi
1678 --with-ecos enable runtime eCos target support
1679 --with-system-zlib use installed libz
1680 --with-x use the X Window System
1681 --with-gnu-ld assume the C compiler uses GNU ld default=no
1682 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1683 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1684 --with-system-libunwind use installed libunwind
1685 --with-python-dir the location to install Python modules. This path
1686 should NOT include the prefix.
1687 --with-gcc-suffix the GCC tool suffix (defaults to empty string)
1688 --with-arch-directory the arch directory under jre/lib (defaults to
1689 auto-detect)
1690 --with-os-directory the os directory under include (defaults to
1691 auto-detect)
1692 --with-origin-name the JPackage origin name of this package (default is
1693 gcj${gcc_suffix}
1694 --with-arch-suffix the arch directory suffix (default is the empty
1695 string
1696 --with-jvm-root-dir where to install SDK (default is ${prefix}/lib/jvm)
1697 --with-jvm-jar-dir where to install jars (default is
1698 ${prefix}/lib/jvm-exports)
1700 Some influential environment variables:
1701 CC C compiler command
1702 CFLAGS C compiler flags
1703 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1704 nonstandard directory <lib dir>
1705 LIBS libraries to pass to the linker, e.g. -l<library>
1706 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1707 you have headers in a nonstandard directory <include dir>
1708 CXX C++ compiler command
1709 CXXFLAGS C++ compiler flags
1710 CPP C preprocessor
1711 CXXCPP C++ preprocessor
1712 XMKMF Path to xmkmf, Makefile generator for X Window System
1714 Use these variables to override the choices made by `configure' or to help
1715 it to find libraries and programs with nonstandard names/locations.
1717 Report bugs to the package provider.
1718 _ACEOF
1719 ac_status=$?
1722 if test "$ac_init_help" = "recursive"; then
1723 # If there are subdirs, report their specific --help.
1724 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1725 test -d "$ac_dir" ||
1726 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1727 continue
1728 ac_builddir=.
1730 case "$ac_dir" in
1731 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1733 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1734 # A ".." for each directory in $ac_dir_suffix.
1735 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1736 case $ac_top_builddir_sub in
1737 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1738 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1739 esac ;;
1740 esac
1741 ac_abs_top_builddir=$ac_pwd
1742 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1743 # for backward compatibility:
1744 ac_top_builddir=$ac_top_build_prefix
1746 case $srcdir in
1747 .) # We are building in place.
1748 ac_srcdir=.
1749 ac_top_srcdir=$ac_top_builddir_sub
1750 ac_abs_top_srcdir=$ac_pwd ;;
1751 [\\/]* | ?:[\\/]* ) # Absolute name.
1752 ac_srcdir=$srcdir$ac_dir_suffix;
1753 ac_top_srcdir=$srcdir
1754 ac_abs_top_srcdir=$srcdir ;;
1755 *) # Relative name.
1756 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1757 ac_top_srcdir=$ac_top_build_prefix$srcdir
1758 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1759 esac
1760 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1762 cd "$ac_dir" || { ac_status=$?; continue; }
1763 # Check for guested configure.
1764 if test -f "$ac_srcdir/configure.gnu"; then
1765 echo &&
1766 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1767 elif test -f "$ac_srcdir/configure"; then
1768 echo &&
1769 $SHELL "$ac_srcdir/configure" --help=recursive
1770 else
1771 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1772 fi || ac_status=$?
1773 cd "$ac_pwd" || { ac_status=$?; break; }
1774 done
1777 test -n "$ac_init_help" && exit $ac_status
1778 if $ac_init_version; then
1779 cat <<\_ACEOF
1780 libjava configure version-unused
1781 generated by GNU Autoconf 2.64
1783 Copyright (C) 2009 Free Software Foundation, Inc.
1784 This configure script is free software; the Free Software Foundation
1785 gives unlimited permission to copy, distribute and modify it.
1786 _ACEOF
1787 exit
1790 ## ------------------------ ##
1791 ## Autoconf initialization. ##
1792 ## ------------------------ ##
1794 # ac_fn_c_try_compile LINENO
1795 # --------------------------
1796 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1797 ac_fn_c_try_compile ()
1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800 rm -f conftest.$ac_objext
1801 if { { ac_try="$ac_compile"
1802 case "(($ac_try" in
1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804 *) ac_try_echo=$ac_try;;
1805 esac
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_compile") 2>conftest.err
1809 ac_status=$?
1810 if test -s conftest.err; then
1811 grep -v '^ *+' conftest.err >conftest.er1
1812 cat conftest.er1 >&5
1813 mv -f conftest.er1 conftest.err
1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816 test $ac_status = 0; } && {
1817 test -z "$ac_c_werror_flag" ||
1818 test ! -s conftest.err
1819 } && test -s conftest.$ac_objext; then :
1820 ac_retval=0
1821 else
1822 $as_echo "$as_me: failed program was:" >&5
1823 sed 's/^/| /' conftest.$ac_ext >&5
1825 ac_retval=1
1827 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1828 return $ac_retval
1830 } # ac_fn_c_try_compile
1832 # ac_fn_cxx_try_compile LINENO
1833 # ----------------------------
1834 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1835 ac_fn_cxx_try_compile ()
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 rm -f conftest.$ac_objext
1839 if { { ac_try="$ac_compile"
1840 case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1843 esac
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_compile") 2>conftest.err
1847 ac_status=$?
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && {
1855 test -z "$ac_cxx_werror_flag" ||
1856 test ! -s conftest.err
1857 } && test -s conftest.$ac_objext; then :
1858 ac_retval=0
1859 else
1860 $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1863 ac_retval=1
1865 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1866 return $ac_retval
1868 } # ac_fn_cxx_try_compile
1870 # ac_fn_c_try_link LINENO
1871 # -----------------------
1872 # Try to link conftest.$ac_ext, and return whether this succeeded.
1873 ac_fn_c_try_link ()
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 rm -f conftest.$ac_objext conftest$ac_exeext
1877 if { { ac_try="$ac_link"
1878 case "(($ac_try" in
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1881 esac
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_link") 2>conftest.err
1885 ac_status=$?
1886 if test -s conftest.err; then
1887 grep -v '^ *+' conftest.err >conftest.er1
1888 cat conftest.er1 >&5
1889 mv -f conftest.er1 conftest.err
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } && {
1893 test -z "$ac_c_werror_flag" ||
1894 test ! -s conftest.err
1895 } && test -s conftest$ac_exeext && {
1896 test "$cross_compiling" = yes ||
1897 $as_test_x conftest$ac_exeext
1898 }; then :
1899 ac_retval=0
1900 else
1901 $as_echo "$as_me: failed program was:" >&5
1902 sed 's/^/| /' conftest.$ac_ext >&5
1904 ac_retval=1
1906 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1907 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1908 # interfere with the next link command; also delete a directory that is
1909 # left behind by Apple's compiler. We do this before executing the actions.
1910 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1911 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1912 return $ac_retval
1914 } # ac_fn_c_try_link
1916 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1917 # -------------------------------------------------------
1918 # Tests whether HEADER exists and can be compiled using the include files in
1919 # INCLUDES, setting the cache variable VAR accordingly.
1920 ac_fn_c_check_header_compile ()
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924 $as_echo_n "checking for $2... " >&6; }
1925 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1926 $as_echo_n "(cached) " >&6
1927 else
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1931 #include <$2>
1932 _ACEOF
1933 if ac_fn_c_try_compile "$LINENO"; then :
1934 eval "$3=yes"
1935 else
1936 eval "$3=no"
1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940 eval ac_res=\$$3
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942 $as_echo "$ac_res" >&6; }
1943 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1945 } # ac_fn_c_check_header_compile
1947 # ac_fn_c_try_cpp LINENO
1948 # ----------------------
1949 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1950 ac_fn_c_try_cpp ()
1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953 if { { ac_try="$ac_cpp conftest.$ac_ext"
1954 case "(($ac_try" in
1955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1956 *) ac_try_echo=$ac_try;;
1957 esac
1958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1959 $as_echo "$ac_try_echo"; } >&5
1960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1961 ac_status=$?
1962 if test -s conftest.err; then
1963 grep -v '^ *+' conftest.err >conftest.er1
1964 cat conftest.er1 >&5
1965 mv -f conftest.er1 conftest.err
1967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1968 test $ac_status = 0; } >/dev/null && {
1969 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1970 test ! -s conftest.err
1971 }; then :
1972 ac_retval=0
1973 else
1974 $as_echo "$as_me: failed program was:" >&5
1975 sed 's/^/| /' conftest.$ac_ext >&5
1977 ac_retval=1
1979 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1980 return $ac_retval
1982 } # ac_fn_c_try_cpp
1984 # ac_fn_c_try_run LINENO
1985 # ----------------------
1986 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1987 # that executables *can* be run.
1988 ac_fn_c_try_run ()
1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991 if { { ac_try="$ac_link"
1992 case "(($ac_try" in
1993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1994 *) ac_try_echo=$ac_try;;
1995 esac
1996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997 $as_echo "$ac_try_echo"; } >&5
1998 (eval "$ac_link") 2>&5
1999 ac_status=$?
2000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2002 { { case "(($ac_try" in
2003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2004 *) ac_try_echo=$ac_try;;
2005 esac
2006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2007 $as_echo "$ac_try_echo"; } >&5
2008 (eval "$ac_try") 2>&5
2009 ac_status=$?
2010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2011 test $ac_status = 0; }; }; then :
2012 ac_retval=0
2013 else
2014 $as_echo "$as_me: program exited with status $ac_status" >&5
2015 $as_echo "$as_me: failed program was:" >&5
2016 sed 's/^/| /' conftest.$ac_ext >&5
2018 ac_retval=$ac_status
2020 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2021 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2022 return $ac_retval
2024 } # ac_fn_c_try_run
2026 # ac_fn_c_check_func LINENO FUNC VAR
2027 # ----------------------------------
2028 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2029 ac_fn_c_check_func ()
2031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2033 $as_echo_n "checking for $2... " >&6; }
2034 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2035 $as_echo_n "(cached) " >&6
2036 else
2037 if test x$gcc_no_link = xyes; then
2038 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2042 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2044 #define $2 innocuous_$2
2046 /* System header to define __stub macros and hopefully few prototypes,
2047 which can conflict with char $2 (); below.
2048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2049 <limits.h> exists even on freestanding compilers. */
2051 #ifdef __STDC__
2052 # include <limits.h>
2053 #else
2054 # include <assert.h>
2055 #endif
2057 #undef $2
2059 /* Override any GCC internal prototype to avoid an error.
2060 Use char because int might match the return type of a GCC
2061 builtin and then its argument prototype would still apply. */
2062 #ifdef __cplusplus
2063 extern "C"
2064 #endif
2065 char $2 ();
2066 /* The GNU C library defines this for functions which it implements
2067 to always fail with ENOSYS. Some functions are actually named
2068 something starting with __ and the normal name is an alias. */
2069 #if defined __stub_$2 || defined __stub___$2
2070 choke me
2071 #endif
2074 main ()
2076 return $2 ();
2078 return 0;
2080 _ACEOF
2081 if ac_fn_c_try_link "$LINENO"; then :
2082 eval "$3=yes"
2083 else
2084 eval "$3=no"
2086 rm -f core conftest.err conftest.$ac_objext \
2087 conftest$ac_exeext conftest.$ac_ext
2089 eval ac_res=\$$3
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2091 $as_echo "$ac_res" >&6; }
2092 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2094 } # ac_fn_c_check_func
2096 # ac_fn_cxx_try_cpp LINENO
2097 # ------------------------
2098 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2099 ac_fn_cxx_try_cpp ()
2101 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2102 if { { ac_try="$ac_cpp conftest.$ac_ext"
2103 case "(($ac_try" in
2104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2105 *) ac_try_echo=$ac_try;;
2106 esac
2107 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2108 $as_echo "$ac_try_echo"; } >&5
2109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2110 ac_status=$?
2111 if test -s conftest.err; then
2112 grep -v '^ *+' conftest.err >conftest.er1
2113 cat conftest.er1 >&5
2114 mv -f conftest.er1 conftest.err
2116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2117 test $ac_status = 0; } >/dev/null && {
2118 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2119 test ! -s conftest.err
2120 }; then :
2121 ac_retval=0
2122 else
2123 $as_echo "$as_me: failed program was:" >&5
2124 sed 's/^/| /' conftest.$ac_ext >&5
2126 ac_retval=1
2128 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2129 return $ac_retval
2131 } # ac_fn_cxx_try_cpp
2133 # ac_fn_cxx_try_link LINENO
2134 # -------------------------
2135 # Try to link conftest.$ac_ext, and return whether this succeeded.
2136 ac_fn_cxx_try_link ()
2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139 rm -f conftest.$ac_objext conftest$ac_exeext
2140 if { { ac_try="$ac_link"
2141 case "(($ac_try" in
2142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2143 *) ac_try_echo=$ac_try;;
2144 esac
2145 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2146 $as_echo "$ac_try_echo"; } >&5
2147 (eval "$ac_link") 2>conftest.err
2148 ac_status=$?
2149 if test -s conftest.err; then
2150 grep -v '^ *+' conftest.err >conftest.er1
2151 cat conftest.er1 >&5
2152 mv -f conftest.er1 conftest.err
2154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2155 test $ac_status = 0; } && {
2156 test -z "$ac_cxx_werror_flag" ||
2157 test ! -s conftest.err
2158 } && test -s conftest$ac_exeext && {
2159 test "$cross_compiling" = yes ||
2160 $as_test_x conftest$ac_exeext
2161 }; then :
2162 ac_retval=0
2163 else
2164 $as_echo "$as_me: failed program was:" >&5
2165 sed 's/^/| /' conftest.$ac_ext >&5
2167 ac_retval=1
2169 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2170 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2171 # interfere with the next link command; also delete a directory that is
2172 # left behind by Apple's compiler. We do this before executing the actions.
2173 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2174 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2175 return $ac_retval
2177 } # ac_fn_cxx_try_link
2179 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2180 # -------------------------------------------------------
2181 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2182 # the include files in INCLUDES and setting the cache variable VAR
2183 # accordingly.
2184 ac_fn_c_check_header_mongrel ()
2186 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2187 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2189 $as_echo_n "checking for $2... " >&6; }
2190 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2191 $as_echo_n "(cached) " >&6
2193 eval ac_res=\$$3
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2195 $as_echo "$ac_res" >&6; }
2196 else
2197 # Is the header compilable?
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2199 $as_echo_n "checking $2 usability... " >&6; }
2200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2201 /* end confdefs.h. */
2203 #include <$2>
2204 _ACEOF
2205 if ac_fn_c_try_compile "$LINENO"; then :
2206 ac_header_compiler=yes
2207 else
2208 ac_header_compiler=no
2210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2212 $as_echo "$ac_header_compiler" >&6; }
2214 # Is the header present?
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2216 $as_echo_n "checking $2 presence... " >&6; }
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2219 #include <$2>
2220 _ACEOF
2221 if ac_fn_c_try_cpp "$LINENO"; then :
2222 ac_header_preproc=yes
2223 else
2224 ac_header_preproc=no
2226 rm -f conftest.err conftest.$ac_ext
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2228 $as_echo "$ac_header_preproc" >&6; }
2230 # So? What about this header?
2231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2232 yes:no: )
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2234 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2236 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2238 no:yes:* )
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2240 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2242 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2244 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2246 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2248 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2250 esac
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2252 $as_echo_n "checking for $2... " >&6; }
2253 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2254 $as_echo_n "(cached) " >&6
2255 else
2256 eval "$3=\$ac_header_compiler"
2258 eval ac_res=\$$3
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2260 $as_echo "$ac_res" >&6; }
2262 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2264 } # ac_fn_c_check_header_mongrel
2266 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2267 # ----------------------------------------------------
2268 # Tries to find if the field MEMBER exists in type AGGR, after including
2269 # INCLUDES, setting cache variable VAR accordingly.
2270 ac_fn_c_check_member ()
2272 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2274 $as_echo_n "checking for $2.$3... " >&6; }
2275 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2276 $as_echo_n "(cached) " >&6
2277 else
2278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279 /* end confdefs.h. */
2282 main ()
2284 static $2 ac_aggr;
2285 if (ac_aggr.$3)
2286 return 0;
2288 return 0;
2290 _ACEOF
2291 if ac_fn_c_try_compile "$LINENO"; then :
2292 eval "$4=yes"
2293 else
2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295 /* end confdefs.h. */
2298 main ()
2300 static $2 ac_aggr;
2301 if (sizeof ac_aggr.$3)
2302 return 0;
2304 return 0;
2306 _ACEOF
2307 if ac_fn_c_try_compile "$LINENO"; then :
2308 eval "$4=yes"
2309 else
2310 eval "$4=no"
2312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2316 eval ac_res=\$$4
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2318 $as_echo "$ac_res" >&6; }
2319 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2321 } # ac_fn_c_check_member
2323 # ac_fn_c_check_decl LINENO SYMBOL VAR
2324 # ------------------------------------
2325 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2326 ac_fn_c_check_decl ()
2328 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2329 as_decl_name=`echo $2|sed 's/ *(.*//'`
2330 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2332 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2333 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2334 $as_echo_n "(cached) " >&6
2335 else
2336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2337 /* end confdefs.h. */
2340 main ()
2342 #ifndef $as_decl_name
2343 #ifdef __cplusplus
2344 (void) $as_decl_use;
2345 #else
2346 (void) $as_decl_name;
2347 #endif
2348 #endif
2351 return 0;
2353 _ACEOF
2354 if ac_fn_c_try_compile "$LINENO"; then :
2355 eval "$3=yes"
2356 else
2357 eval "$3=no"
2359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2361 eval ac_res=\$$3
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2363 $as_echo "$ac_res" >&6; }
2364 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2366 } # ac_fn_c_check_decl
2368 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2369 # --------------------------------------------
2370 # Tries to find the compile-time value of EXPR in a program that includes
2371 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2372 # computed
2373 ac_fn_c_compute_int ()
2375 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2376 if test "$cross_compiling" = yes; then
2377 # Depending upon the size, compute the lo and hi bounds.
2378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2379 /* end confdefs.h. */
2382 main ()
2384 static int test_array [1 - 2 * !(($2) >= 0)];
2385 test_array [0] = 0
2388 return 0;
2390 _ACEOF
2391 if ac_fn_c_try_compile "$LINENO"; then :
2392 ac_lo=0 ac_mid=0
2393 while :; do
2394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2395 /* end confdefs.h. */
2398 main ()
2400 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2401 test_array [0] = 0
2404 return 0;
2406 _ACEOF
2407 if ac_fn_c_try_compile "$LINENO"; then :
2408 ac_hi=$ac_mid; break
2409 else
2410 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2411 if test $ac_lo -le $ac_mid; then
2412 ac_lo= ac_hi=
2413 break
2415 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2418 done
2419 else
2420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2421 /* end confdefs.h. */
2424 main ()
2426 static int test_array [1 - 2 * !(($2) < 0)];
2427 test_array [0] = 0
2430 return 0;
2432 _ACEOF
2433 if ac_fn_c_try_compile "$LINENO"; then :
2434 ac_hi=-1 ac_mid=-1
2435 while :; do
2436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2437 /* end confdefs.h. */
2440 main ()
2442 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2443 test_array [0] = 0
2446 return 0;
2448 _ACEOF
2449 if ac_fn_c_try_compile "$LINENO"; then :
2450 ac_lo=$ac_mid; break
2451 else
2452 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2453 if test $ac_mid -le $ac_hi; then
2454 ac_lo= ac_hi=
2455 break
2457 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2460 done
2461 else
2462 ac_lo= ac_hi=
2464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2467 # Binary search between lo and hi bounds.
2468 while test "x$ac_lo" != "x$ac_hi"; do
2469 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2471 /* end confdefs.h. */
2474 main ()
2476 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2477 test_array [0] = 0
2480 return 0;
2482 _ACEOF
2483 if ac_fn_c_try_compile "$LINENO"; then :
2484 ac_hi=$ac_mid
2485 else
2486 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2489 done
2490 case $ac_lo in #((
2491 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2492 '') ac_retval=1 ;;
2493 esac
2494 else
2495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2496 /* end confdefs.h. */
2498 static long int longval () { return $2; }
2499 static unsigned long int ulongval () { return $2; }
2500 #include <stdio.h>
2501 #include <stdlib.h>
2503 main ()
2506 FILE *f = fopen ("conftest.val", "w");
2507 if (! f)
2508 return 1;
2509 if (($2) < 0)
2511 long int i = longval ();
2512 if (i != ($2))
2513 return 1;
2514 fprintf (f, "%ld", i);
2516 else
2518 unsigned long int i = ulongval ();
2519 if (i != ($2))
2520 return 1;
2521 fprintf (f, "%lu", i);
2523 /* Do not output a trailing newline, as this causes \r\n confusion
2524 on some platforms. */
2525 return ferror (f) || fclose (f) != 0;
2528 return 0;
2530 _ACEOF
2531 if ac_fn_c_try_run "$LINENO"; then :
2532 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2533 else
2534 ac_retval=1
2536 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2537 conftest.$ac_objext conftest.beam conftest.$ac_ext
2538 rm -f conftest.val
2541 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2542 return $ac_retval
2544 } # ac_fn_c_compute_int
2546 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2547 # -------------------------------------------
2548 # Tests whether TYPE exists after having included INCLUDES, setting cache
2549 # variable VAR accordingly.
2550 ac_fn_c_check_type ()
2552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2554 $as_echo_n "checking for $2... " >&6; }
2555 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2556 $as_echo_n "(cached) " >&6
2557 else
2558 eval "$3=no"
2559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2560 /* end confdefs.h. */
2563 main ()
2565 if (sizeof ($2))
2566 return 0;
2568 return 0;
2570 _ACEOF
2571 if ac_fn_c_try_compile "$LINENO"; then :
2572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2573 /* end confdefs.h. */
2576 main ()
2578 if (sizeof (($2)))
2579 return 0;
2581 return 0;
2583 _ACEOF
2584 if ac_fn_c_try_compile "$LINENO"; then :
2586 else
2587 eval "$3=yes"
2589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2593 eval ac_res=\$$3
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2595 $as_echo "$ac_res" >&6; }
2596 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2598 } # ac_fn_c_check_type
2599 cat >config.log <<_ACEOF
2600 This file contains any messages produced by compilers while
2601 running configure, to aid debugging if configure makes a mistake.
2603 It was created by libjava $as_me version-unused, which was
2604 generated by GNU Autoconf 2.64. Invocation command line was
2606 $ $0 $@
2608 _ACEOF
2609 exec 5>>config.log
2611 cat <<_ASUNAME
2612 ## --------- ##
2613 ## Platform. ##
2614 ## --------- ##
2616 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2617 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2618 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2619 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2620 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2622 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2623 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2625 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2626 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2627 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2628 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2629 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2630 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2631 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2633 _ASUNAME
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636 for as_dir in $PATH
2638 IFS=$as_save_IFS
2639 test -z "$as_dir" && as_dir=.
2640 $as_echo "PATH: $as_dir"
2641 done
2642 IFS=$as_save_IFS
2644 } >&5
2646 cat >&5 <<_ACEOF
2649 ## ----------- ##
2650 ## Core tests. ##
2651 ## ----------- ##
2653 _ACEOF
2656 # Keep a trace of the command line.
2657 # Strip out --no-create and --no-recursion so they do not pile up.
2658 # Strip out --silent because we don't want to record it for future runs.
2659 # Also quote any args containing shell meta-characters.
2660 # Make two passes to allow for proper duplicate-argument suppression.
2661 ac_configure_args=
2662 ac_configure_args0=
2663 ac_configure_args1=
2664 ac_must_keep_next=false
2665 for ac_pass in 1 2
2667 for ac_arg
2669 case $ac_arg in
2670 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2671 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2672 | -silent | --silent | --silen | --sile | --sil)
2673 continue ;;
2674 *\'*)
2675 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2676 esac
2677 case $ac_pass in
2678 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2680 as_fn_append ac_configure_args1 " '$ac_arg'"
2681 if test $ac_must_keep_next = true; then
2682 ac_must_keep_next=false # Got value, back to normal.
2683 else
2684 case $ac_arg in
2685 *=* | --config-cache | -C | -disable-* | --disable-* \
2686 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2687 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2688 | -with-* | --with-* | -without-* | --without-* | --x)
2689 case "$ac_configure_args0 " in
2690 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2691 esac
2693 -* ) ac_must_keep_next=true ;;
2694 esac
2696 as_fn_append ac_configure_args " '$ac_arg'"
2698 esac
2699 done
2700 done
2701 { ac_configure_args0=; unset ac_configure_args0;}
2702 { ac_configure_args1=; unset ac_configure_args1;}
2704 # When interrupted or exit'd, cleanup temporary files, and complete
2705 # config.log. We remove comments because anyway the quotes in there
2706 # would cause problems or look ugly.
2707 # WARNING: Use '\'' to represent an apostrophe within the trap.
2708 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2709 trap 'exit_status=$?
2710 # Save into config.log some information that might help in debugging.
2712 echo
2714 cat <<\_ASBOX
2715 ## ---------------- ##
2716 ## Cache variables. ##
2717 ## ---------------- ##
2718 _ASBOX
2719 echo
2720 # The following way of writing the cache mishandles newlines in values,
2722 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2723 eval ac_val=\$$ac_var
2724 case $ac_val in #(
2725 *${as_nl}*)
2726 case $ac_var in #(
2727 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2728 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2729 esac
2730 case $ac_var in #(
2731 _ | IFS | as_nl) ;; #(
2732 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2733 *) { eval $ac_var=; unset $ac_var;} ;;
2734 esac ;;
2735 esac
2736 done
2737 (set) 2>&1 |
2738 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2739 *${as_nl}ac_space=\ *)
2740 sed -n \
2741 "s/'\''/'\''\\\\'\'''\''/g;
2742 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2743 ;; #(
2745 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2747 esac |
2748 sort
2750 echo
2752 cat <<\_ASBOX
2753 ## ----------------- ##
2754 ## Output variables. ##
2755 ## ----------------- ##
2756 _ASBOX
2757 echo
2758 for ac_var in $ac_subst_vars
2760 eval ac_val=\$$ac_var
2761 case $ac_val in
2762 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2763 esac
2764 $as_echo "$ac_var='\''$ac_val'\''"
2765 done | sort
2766 echo
2768 if test -n "$ac_subst_files"; then
2769 cat <<\_ASBOX
2770 ## ------------------- ##
2771 ## File substitutions. ##
2772 ## ------------------- ##
2773 _ASBOX
2774 echo
2775 for ac_var in $ac_subst_files
2777 eval ac_val=\$$ac_var
2778 case $ac_val in
2779 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2780 esac
2781 $as_echo "$ac_var='\''$ac_val'\''"
2782 done | sort
2783 echo
2786 if test -s confdefs.h; then
2787 cat <<\_ASBOX
2788 ## ----------- ##
2789 ## confdefs.h. ##
2790 ## ----------- ##
2791 _ASBOX
2792 echo
2793 cat confdefs.h
2794 echo
2796 test "$ac_signal" != 0 &&
2797 $as_echo "$as_me: caught signal $ac_signal"
2798 $as_echo "$as_me: exit $exit_status"
2799 } >&5
2800 rm -f core *.core core.conftest.* &&
2801 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2802 exit $exit_status
2804 for ac_signal in 1 2 13 15; do
2805 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2806 done
2807 ac_signal=0
2809 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2810 rm -f -r conftest* confdefs.h
2812 $as_echo "/* confdefs.h */" > confdefs.h
2814 # Predefined preprocessor variables.
2816 cat >>confdefs.h <<_ACEOF
2817 #define PACKAGE_NAME "$PACKAGE_NAME"
2818 _ACEOF
2820 cat >>confdefs.h <<_ACEOF
2821 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2822 _ACEOF
2824 cat >>confdefs.h <<_ACEOF
2825 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2826 _ACEOF
2828 cat >>confdefs.h <<_ACEOF
2829 #define PACKAGE_STRING "$PACKAGE_STRING"
2830 _ACEOF
2832 cat >>confdefs.h <<_ACEOF
2833 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2834 _ACEOF
2836 cat >>confdefs.h <<_ACEOF
2837 #define PACKAGE_URL "$PACKAGE_URL"
2838 _ACEOF
2841 # Let the site file select an alternate cache file if it wants to.
2842 # Prefer an explicitly selected file to automatically selected ones.
2843 ac_site_file1=NONE
2844 ac_site_file2=NONE
2845 if test -n "$CONFIG_SITE"; then
2846 ac_site_file1=$CONFIG_SITE
2847 elif test "x$prefix" != xNONE; then
2848 ac_site_file1=$prefix/share/config.site
2849 ac_site_file2=$prefix/etc/config.site
2850 else
2851 ac_site_file1=$ac_default_prefix/share/config.site
2852 ac_site_file2=$ac_default_prefix/etc/config.site
2854 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2856 test "x$ac_site_file" = xNONE && continue
2857 if test -r "$ac_site_file"; then
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2859 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2860 sed 's/^/| /' "$ac_site_file" >&5
2861 . "$ac_site_file"
2863 done
2865 if test -r "$cache_file"; then
2866 # Some versions of bash will fail to source /dev/null (special
2867 # files actually), so we avoid doing that.
2868 if test -f "$cache_file"; then
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2870 $as_echo "$as_me: loading cache $cache_file" >&6;}
2871 case $cache_file in
2872 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2873 *) . "./$cache_file";;
2874 esac
2876 else
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2878 $as_echo "$as_me: creating cache $cache_file" >&6;}
2879 >$cache_file
2882 # Check that the precious variables saved in the cache have kept the same
2883 # value.
2884 ac_cache_corrupted=false
2885 for ac_var in $ac_precious_vars; do
2886 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2887 eval ac_new_set=\$ac_env_${ac_var}_set
2888 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2889 eval ac_new_val=\$ac_env_${ac_var}_value
2890 case $ac_old_set,$ac_new_set in
2891 set,)
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2893 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2894 ac_cache_corrupted=: ;;
2895 ,set)
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2897 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2898 ac_cache_corrupted=: ;;
2899 ,);;
2901 if test "x$ac_old_val" != "x$ac_new_val"; then
2902 # differences in whitespace do not lead to failure.
2903 ac_old_val_w=`echo x $ac_old_val`
2904 ac_new_val_w=`echo x $ac_new_val`
2905 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2907 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2908 ac_cache_corrupted=:
2909 else
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2911 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2912 eval $ac_var=\$ac_old_val
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2915 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2917 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2918 fi;;
2919 esac
2920 # Pass precious variables to config.status.
2921 if test "$ac_new_set" = set; then
2922 case $ac_new_val in
2923 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2924 *) ac_arg=$ac_var=$ac_new_val ;;
2925 esac
2926 case " $ac_configure_args " in
2927 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2928 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2929 esac
2931 done
2932 if $ac_cache_corrupted; then
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2936 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2937 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2939 ## -------------------- ##
2940 ## Main body of script. ##
2941 ## -------------------- ##
2943 ac_ext=c
2944 ac_cpp='$CPP $CPPFLAGS'
2945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2956 ac_aux_dir=
2957 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2958 for ac_t in install-sh install.sh shtool; do
2959 if test -f "$ac_dir/$ac_t"; then
2960 ac_aux_dir=$ac_dir
2961 ac_install_sh="$ac_aux_dir/$ac_t -c"
2962 break 2
2964 done
2965 done
2966 if test -z "$ac_aux_dir"; then
2967 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2970 # These three variables are undocumented and unsupported,
2971 # and are intended to be withdrawn in a future Autoconf release.
2972 # They can cause serious problems if a builder's source tree is in a directory
2973 # whose full name contains unusual characters.
2974 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2975 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2976 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2979 # Make sure we can run config.sub.
2980 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2981 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2984 $as_echo_n "checking build system type... " >&6; }
2985 if test "${ac_cv_build+set}" = set; then :
2986 $as_echo_n "(cached) " >&6
2987 else
2988 ac_build_alias=$build_alias
2989 test "x$ac_build_alias" = x &&
2990 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2991 test "x$ac_build_alias" = x &&
2992 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2993 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2994 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2998 $as_echo "$ac_cv_build" >&6; }
2999 case $ac_cv_build in
3000 *-*-*) ;;
3001 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3002 esac
3003 build=$ac_cv_build
3004 ac_save_IFS=$IFS; IFS='-'
3005 set x $ac_cv_build
3006 shift
3007 build_cpu=$1
3008 build_vendor=$2
3009 shift; shift
3010 # Remember, the first character of IFS is used to create $*,
3011 # except with old shells:
3012 build_os=$*
3013 IFS=$ac_save_IFS
3014 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3017 case ${build_alias} in
3018 "") build_noncanonical=${build} ;;
3019 *) build_noncanonical=${build_alias} ;;
3020 esac
3022 case ${host_alias} in
3023 "") host_noncanonical=${build_noncanonical} ;;
3024 *) host_noncanonical=${host_alias} ;;
3025 esac
3027 case ${target_alias} in
3028 "") target_noncanonical=${host_noncanonical} ;;
3029 *) target_noncanonical=${target_alias} ;;
3030 esac
3033 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3034 # have matching libraries, they should use host libraries: Makefile.tpl
3035 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3036 # However, they still use the build modules, because the corresponding
3037 # host modules (e.g. bison) are only built for the host when bootstrap
3038 # finishes. So:
3039 # - build_subdir is where we find build modules, and never changes.
3040 # - build_libsubdir is where we find build libraries, and can be overridden.
3042 # Prefix 'build-' so this never conflicts with target_subdir.
3043 build_subdir="build-${build_noncanonical}"
3045 # Check whether --with-build-libsubdir was given.
3046 if test "${with_build_libsubdir+set}" = set; then :
3047 withval=$with_build_libsubdir; build_libsubdir="$withval"
3048 else
3049 build_libsubdir="$build_subdir"
3052 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3053 if ( test $srcdir = . && test -d gcc ) \
3054 || test -d $srcdir/../host-${host_noncanonical}; then
3055 host_subdir="host-${host_noncanonical}"
3056 else
3057 host_subdir=.
3059 # No prefix.
3060 target_subdir=${target_noncanonical}
3063 # We use these options to decide which functions to include.
3065 # Check whether --with-target-subdir was given.
3066 if test "${with_target_subdir+set}" = set; then :
3067 withval=$with_target_subdir;
3071 # We may get other options which we don't document:
3072 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3074 # Find the rest of the source tree framework.
3075 # Default to --enable-multilib
3076 # Check whether --enable-multilib was given.
3077 if test "${enable_multilib+set}" = set; then :
3078 enableval=$enable_multilib; case "$enableval" in
3079 yes) multilib=yes ;;
3080 no) multilib=no ;;
3081 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3082 esac
3083 else
3084 multilib=yes
3088 # We may get other options which we leave undocumented:
3089 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3090 # See config-ml.in if you want the gory details.
3092 if test "$srcdir" = "."; then
3093 if test "$with_target_subdir" != "."; then
3094 multi_basedir="$srcdir/$with_multisrctop../.."
3095 else
3096 multi_basedir="$srcdir/$with_multisrctop.."
3098 else
3099 multi_basedir="$srcdir/.."
3103 # Even if the default multilib is not a cross compilation,
3104 # it may be that some of the other multilibs are.
3105 if test $cross_compiling = no && test $multilib = yes \
3106 && test "x${with_multisubdir}" != x ; then
3107 cross_compiling=maybe
3110 ac_config_commands="$ac_config_commands default-1"
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3114 $as_echo_n "checking host system type... " >&6; }
3115 if test "${ac_cv_host+set}" = set; then :
3116 $as_echo_n "(cached) " >&6
3117 else
3118 if test "x$host_alias" = x; then
3119 ac_cv_host=$ac_cv_build
3120 else
3121 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3122 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3127 $as_echo "$ac_cv_host" >&6; }
3128 case $ac_cv_host in
3129 *-*-*) ;;
3130 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3131 esac
3132 host=$ac_cv_host
3133 ac_save_IFS=$IFS; IFS='-'
3134 set x $ac_cv_host
3135 shift
3136 host_cpu=$1
3137 host_vendor=$2
3138 shift; shift
3139 # Remember, the first character of IFS is used to create $*,
3140 # except with old shells:
3141 host_os=$*
3142 IFS=$ac_save_IFS
3143 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3147 $as_echo_n "checking target system type... " >&6; }
3148 if test "${ac_cv_target+set}" = set; then :
3149 $as_echo_n "(cached) " >&6
3150 else
3151 if test "x$target_alias" = x; then
3152 ac_cv_target=$ac_cv_host
3153 else
3154 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3155 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3160 $as_echo "$ac_cv_target" >&6; }
3161 case $ac_cv_target in
3162 *-*-*) ;;
3163 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3164 esac
3165 target=$ac_cv_target
3166 ac_save_IFS=$IFS; IFS='-'
3167 set x $ac_cv_target
3168 shift
3169 target_cpu=$1
3170 target_vendor=$2
3171 shift; shift
3172 # Remember, the first character of IFS is used to create $*,
3173 # except with old shells:
3174 target_os=$*
3175 IFS=$ac_save_IFS
3176 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3179 # The aliases save the names the user supplied, while $host etc.
3180 # will get canonicalized.
3181 test -n "$target_alias" &&
3182 test "$program_prefix$program_suffix$program_transform_name" = \
3183 NONENONEs,x,x, &&
3184 program_prefix=${target_alias}-
3186 case ${build_alias} in
3187 "") build_noncanonical=${build} ;;
3188 *) build_noncanonical=${build_alias} ;;
3189 esac
3191 case ${target_alias} in
3192 "") target_noncanonical=${host_noncanonical} ;;
3193 *) target_noncanonical=${target_alias} ;;
3194 esac
3199 # This works around the fact that libtool configuration may change LD
3200 # for this particular configuration, but some shells, instead of
3201 # keeping the changes in LD private, export them just because LD is
3202 # exported.
3203 ORIGINAL_LD_FOR_MULTILIBS=$LD
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3206 $as_echo_n "checking whether ln -s works... " >&6; }
3207 LN_S=$as_ln_s
3208 if test "$LN_S" = "ln -s"; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3210 $as_echo "yes" >&6; }
3211 else
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3213 $as_echo "no, using $LN_S" >&6; }
3217 # This works around an automake problem.
3218 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
3222 # Check whether --with-cross-host was given.
3223 if test "${with_cross_host+set}" = set; then :
3224 withval=$with_cross_host;
3229 # Check whether --with-newlib was given.
3230 if test "${with_newlib+set}" = set; then :
3231 withval=$with_newlib;
3235 # Check whether --enable-version-specific-runtime-libs was given.
3236 if test "${enable_version_specific_runtime_libs+set}" = set; then :
3237 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
3238 yes) version_specific_libs=yes ;;
3239 no) version_specific_libs=no ;;
3240 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3241 esac
3242 else
3243 version_specific_libs=no
3248 # Check whether --enable-browser-plugin was given.
3249 if test "${enable_browser_plugin+set}" = set; then :
3250 enableval=$enable_browser_plugin; case "$enableval" in
3251 yes) browser_plugin_enabled=yes ;;
3252 no) browser_plugin_enabled=no ;;
3253 *) as_fn_error "Unknown argument to enable/disable browser plugin" "$LINENO" 5;;
3254 esac
3255 else
3256 browser_plugin_enabled=no
3261 # Check whether --enable-gconf-peer was given.
3262 if test "${enable_gconf_peer+set}" = set; then :
3263 enableval=$enable_gconf_peer; case "$enableval" in
3264 yes) gconf_enabled=yes ;;
3265 no) gconf_enabled=no ;;
3266 *) as_fn_error "Unknown argument to enable/disable gconf-peer" "$LINENO" 5;;
3267 esac
3268 else
3269 gconf_enabled=no
3275 # Check whether --with-antlr-jar was given.
3276 if test "${with_antlr_jar+set}" = set; then :
3277 withval=$with_antlr_jar;
3278 ANTLR_JAR=$withval
3280 else
3282 ANTLR_JAR=
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr.jar" >&5
3288 $as_echo_n "checking for antlr.jar... " >&6; }
3289 if test "x$ANTLR_JAR" = x; then
3290 for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
3291 /usr/share/antlr/lib /usr/share/java /usr/lib;
3293 if test -f "$antlr_lib_home/antlr.jar"; then
3294 # FIXME: version check for antlr needed without using a VM
3295 ANTLR_JAR="$antlr_lib_home/antlr.jar"
3296 break
3298 done
3299 if test "x$ANTLR_JAR" = x; then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
3301 $as_echo "not found" >&6; }
3302 else
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3304 $as_echo "$ANTLR_JAR" >&6; }
3306 else
3307 if test -f "${ANTLR_JAR}"; then
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3309 $as_echo "$ANTLR_JAR" >&6; }
3310 else
3311 as_fn_error "antlr jar file not found: $ANTLR_JAR" "$LINENO" 5
3316 # Check whether --enable-gjdoc was given.
3317 if test "${enable_gjdoc+set}" = set; then :
3318 enableval=$enable_gjdoc; case "${enableval}" in
3319 yes) BUILD_GJDOC=yes ;;
3320 no) BUILD_GJDOC=no ;;
3321 *) BUILD_GJDOC=yes ;;
3322 esac
3323 else
3324 BUILD_GJDOC=maybe
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gjdoc" >&5
3329 $as_echo_n "checking whether to build gjdoc... " >&6; }
3330 if test "x$BUILD_GJDOC" = xmaybe; then
3331 if test -f "${ANTLR_JAR}"; then
3332 BUILD_GJDOC=yes
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3334 $as_echo "yes" >&6; }
3335 else
3336 BUILD_GJDOC=no
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, antlr.jar not found" >&5
3338 $as_echo "no, antlr.jar not found" >&6; }
3340 else
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_GJDOC" >&5
3342 $as_echo "$BUILD_GJDOC" >&6; }
3344 if test "x${BUILD_GJDOC}" = xyes; then
3345 CREATE_GJDOC_TRUE=
3346 CREATE_GJDOC_FALSE='#'
3347 else
3348 CREATE_GJDOC_TRUE='#'
3349 CREATE_GJDOC_FALSE=
3353 # Check whether --enable-java-maintainer-mode was given.
3354 if test "${enable_java_maintainer_mode+set}" = set; then :
3355 enableval=$enable_java_maintainer_mode;
3358 if test "$enable_java_maintainer_mode" = yes; then
3359 JAVA_MAINTAINER_MODE_TRUE=
3360 JAVA_MAINTAINER_MODE_FALSE='#'
3361 else
3362 JAVA_MAINTAINER_MODE_TRUE='#'
3363 JAVA_MAINTAINER_MODE_FALSE=
3367 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
3370 # For libstdc++-v3, -fno-builtin must be present here so that a
3371 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
3372 # used in later tests. This may not be necessary in libjava; I don't know.
3373 save_CXXFLAGS="$CXXFLAGS"
3374 CXXFLAGS="$CXXFLAGS -fno-builtin"
3375 ac_ext=c
3376 ac_cpp='$CPP $CPPFLAGS'
3377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3380 if test -n "$ac_tool_prefix"; then
3381 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3382 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3384 $as_echo_n "checking for $ac_word... " >&6; }
3385 if test "${ac_cv_prog_CC+set}" = set; then :
3386 $as_echo_n "(cached) " >&6
3387 else
3388 if test -n "$CC"; then
3389 ac_cv_prog_CC="$CC" # Let the user override the test.
3390 else
3391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392 for as_dir in $PATH
3394 IFS=$as_save_IFS
3395 test -z "$as_dir" && as_dir=.
3396 for ac_exec_ext in '' $ac_executable_extensions; do
3397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3398 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3400 break 2
3402 done
3403 done
3404 IFS=$as_save_IFS
3408 CC=$ac_cv_prog_CC
3409 if test -n "$CC"; then
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3411 $as_echo "$CC" >&6; }
3412 else
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3414 $as_echo "no" >&6; }
3419 if test -z "$ac_cv_prog_CC"; then
3420 ac_ct_CC=$CC
3421 # Extract the first word of "gcc", so it can be a program name with args.
3422 set dummy gcc; ac_word=$2
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3424 $as_echo_n "checking for $ac_word... " >&6; }
3425 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3426 $as_echo_n "(cached) " >&6
3427 else
3428 if test -n "$ac_ct_CC"; then
3429 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3430 else
3431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432 for as_dir in $PATH
3434 IFS=$as_save_IFS
3435 test -z "$as_dir" && as_dir=.
3436 for ac_exec_ext in '' $ac_executable_extensions; do
3437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3438 ac_cv_prog_ac_ct_CC="gcc"
3439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3440 break 2
3442 done
3443 done
3444 IFS=$as_save_IFS
3448 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3449 if test -n "$ac_ct_CC"; then
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3451 $as_echo "$ac_ct_CC" >&6; }
3452 else
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454 $as_echo "no" >&6; }
3457 if test "x$ac_ct_CC" = x; then
3458 CC=""
3459 else
3460 case $cross_compiling:$ac_tool_warned in
3461 yes:)
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3464 ac_tool_warned=yes ;;
3465 esac
3466 CC=$ac_ct_CC
3468 else
3469 CC="$ac_cv_prog_CC"
3472 if test -z "$CC"; then
3473 if test -n "$ac_tool_prefix"; then
3474 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3475 set dummy ${ac_tool_prefix}cc; ac_word=$2
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3477 $as_echo_n "checking for $ac_word... " >&6; }
3478 if test "${ac_cv_prog_CC+set}" = set; then :
3479 $as_echo_n "(cached) " >&6
3480 else
3481 if test -n "$CC"; then
3482 ac_cv_prog_CC="$CC" # Let the user override the test.
3483 else
3484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485 for as_dir in $PATH
3487 IFS=$as_save_IFS
3488 test -z "$as_dir" && as_dir=.
3489 for ac_exec_ext in '' $ac_executable_extensions; do
3490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3491 ac_cv_prog_CC="${ac_tool_prefix}cc"
3492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3493 break 2
3495 done
3496 done
3497 IFS=$as_save_IFS
3501 CC=$ac_cv_prog_CC
3502 if test -n "$CC"; then
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3504 $as_echo "$CC" >&6; }
3505 else
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3507 $as_echo "no" >&6; }
3513 if test -z "$CC"; then
3514 # Extract the first word of "cc", so it can be a program name with args.
3515 set dummy cc; ac_word=$2
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3517 $as_echo_n "checking for $ac_word... " >&6; }
3518 if test "${ac_cv_prog_CC+set}" = set; then :
3519 $as_echo_n "(cached) " >&6
3520 else
3521 if test -n "$CC"; then
3522 ac_cv_prog_CC="$CC" # Let the user override the test.
3523 else
3524 ac_prog_rejected=no
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 for as_dir in $PATH
3528 IFS=$as_save_IFS
3529 test -z "$as_dir" && as_dir=.
3530 for ac_exec_ext in '' $ac_executable_extensions; do
3531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3532 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3533 ac_prog_rejected=yes
3534 continue
3536 ac_cv_prog_CC="cc"
3537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3538 break 2
3540 done
3541 done
3542 IFS=$as_save_IFS
3544 if test $ac_prog_rejected = yes; then
3545 # We found a bogon in the path, so make sure we never use it.
3546 set dummy $ac_cv_prog_CC
3547 shift
3548 if test $# != 0; then
3549 # We chose a different compiler from the bogus one.
3550 # However, it has the same basename, so the bogon will be chosen
3551 # first if we set CC to just the basename; use the full file name.
3552 shift
3553 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3558 CC=$ac_cv_prog_CC
3559 if test -n "$CC"; then
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3561 $as_echo "$CC" >&6; }
3562 else
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564 $as_echo "no" >&6; }
3569 if test -z "$CC"; then
3570 if test -n "$ac_tool_prefix"; then
3571 for ac_prog in cl.exe
3573 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3574 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3576 $as_echo_n "checking for $ac_word... " >&6; }
3577 if test "${ac_cv_prog_CC+set}" = set; then :
3578 $as_echo_n "(cached) " >&6
3579 else
3580 if test -n "$CC"; then
3581 ac_cv_prog_CC="$CC" # Let the user override the test.
3582 else
3583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584 for as_dir in $PATH
3586 IFS=$as_save_IFS
3587 test -z "$as_dir" && as_dir=.
3588 for ac_exec_ext in '' $ac_executable_extensions; do
3589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3590 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3592 break 2
3594 done
3595 done
3596 IFS=$as_save_IFS
3600 CC=$ac_cv_prog_CC
3601 if test -n "$CC"; then
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3603 $as_echo "$CC" >&6; }
3604 else
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3606 $as_echo "no" >&6; }
3610 test -n "$CC" && break
3611 done
3613 if test -z "$CC"; then
3614 ac_ct_CC=$CC
3615 for ac_prog in cl.exe
3617 # Extract the first word of "$ac_prog", so it can be a program name with args.
3618 set dummy $ac_prog; ac_word=$2
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3620 $as_echo_n "checking for $ac_word... " >&6; }
3621 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3622 $as_echo_n "(cached) " >&6
3623 else
3624 if test -n "$ac_ct_CC"; then
3625 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3626 else
3627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628 for as_dir in $PATH
3630 IFS=$as_save_IFS
3631 test -z "$as_dir" && as_dir=.
3632 for ac_exec_ext in '' $ac_executable_extensions; do
3633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3634 ac_cv_prog_ac_ct_CC="$ac_prog"
3635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3636 break 2
3638 done
3639 done
3640 IFS=$as_save_IFS
3644 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3645 if test -n "$ac_ct_CC"; then
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3647 $as_echo "$ac_ct_CC" >&6; }
3648 else
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3650 $as_echo "no" >&6; }
3654 test -n "$ac_ct_CC" && break
3655 done
3657 if test "x$ac_ct_CC" = x; then
3658 CC=""
3659 else
3660 case $cross_compiling:$ac_tool_warned in
3661 yes:)
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3664 ac_tool_warned=yes ;;
3665 esac
3666 CC=$ac_ct_CC
3673 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3675 as_fn_error "no acceptable C compiler found in \$PATH
3676 See \`config.log' for more details." "$LINENO" 5; }
3678 # Provide some information about the compiler.
3679 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3680 set X $ac_compile
3681 ac_compiler=$2
3682 for ac_option in --version -v -V -qversion; do
3683 { { ac_try="$ac_compiler $ac_option >&5"
3684 case "(($ac_try" in
3685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686 *) ac_try_echo=$ac_try;;
3687 esac
3688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3689 $as_echo "$ac_try_echo"; } >&5
3690 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3691 ac_status=$?
3692 if test -s conftest.err; then
3693 sed '10a\
3694 ... rest of stderr output deleted ...
3695 10q' conftest.err >conftest.er1
3696 cat conftest.er1 >&5
3697 rm -f conftest.er1 conftest.err
3699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3700 test $ac_status = 0; }
3701 done
3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704 /* end confdefs.h. */
3707 main ()
3711 return 0;
3713 _ACEOF
3714 # FIXME: Cleanup?
3715 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3716 (eval $ac_link) 2>&5
3717 ac_status=$?
3718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3719 test $ac_status = 0; }; then :
3720 gcc_no_link=no
3721 else
3722 gcc_no_link=yes
3724 if test x$gcc_no_link = xyes; then
3725 # Setting cross_compile will disable run tests; it will
3726 # also disable AC_CHECK_FILE but that's generally
3727 # correct if we can't link.
3728 cross_compiling=yes
3729 EXEEXT=
3730 else
3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h. */
3735 main ()
3739 return 0;
3741 _ACEOF
3742 ac_clean_files_save=$ac_clean_files
3743 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3744 # Try to create an executable without -o first, disregard a.out.
3745 # It will help us diagnose broken compilers, and finding out an intuition
3746 # of exeext.
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3748 $as_echo_n "checking for C compiler default output file name... " >&6; }
3749 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3751 # The possible output files:
3752 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3754 ac_rmfiles=
3755 for ac_file in $ac_files
3757 case $ac_file in
3758 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3759 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3760 esac
3761 done
3762 rm -f $ac_rmfiles
3764 if { { ac_try="$ac_link_default"
3765 case "(($ac_try" in
3766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3767 *) ac_try_echo=$ac_try;;
3768 esac
3769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3770 $as_echo "$ac_try_echo"; } >&5
3771 (eval "$ac_link_default") 2>&5
3772 ac_status=$?
3773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3774 test $ac_status = 0; }; then :
3775 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3776 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3777 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3778 # so that the user can short-circuit this test for compilers unknown to
3779 # Autoconf.
3780 for ac_file in $ac_files ''
3782 test -f "$ac_file" || continue
3783 case $ac_file in
3784 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3786 [ab].out )
3787 # We found the default executable, but exeext='' is most
3788 # certainly right.
3789 break;;
3790 *.* )
3791 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3792 then :; else
3793 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3795 # We set ac_cv_exeext here because the later test for it is not
3796 # safe: cross compilers may not add the suffix if given an `-o'
3797 # argument, so we may need to know it at that point already.
3798 # Even if this section looks crufty: it has the advantage of
3799 # actually working.
3800 break;;
3802 break;;
3803 esac
3804 done
3805 test "$ac_cv_exeext" = no && ac_cv_exeext=
3807 else
3808 ac_file=''
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3811 $as_echo "$ac_file" >&6; }
3812 if test -z "$ac_file"; then :
3813 $as_echo "$as_me: failed program was:" >&5
3814 sed 's/^/| /' conftest.$ac_ext >&5
3816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3818 { as_fn_set_status 77
3819 as_fn_error "C compiler cannot create executables
3820 See \`config.log' for more details." "$LINENO" 5; }; }
3822 ac_exeext=$ac_cv_exeext
3824 # Check that the compiler produces executables we can run. If not, either
3825 # the compiler is broken, or we cross compile.
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3827 $as_echo_n "checking whether the C compiler works... " >&6; }
3828 # If not cross compiling, check that we can run a simple program.
3829 if test "$cross_compiling" != yes; then
3830 if { ac_try='./$ac_file'
3831 { { case "(($ac_try" in
3832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833 *) ac_try_echo=$ac_try;;
3834 esac
3835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3836 $as_echo "$ac_try_echo"; } >&5
3837 (eval "$ac_try") 2>&5
3838 ac_status=$?
3839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3840 test $ac_status = 0; }; }; then
3841 cross_compiling=no
3842 else
3843 if test "$cross_compiling" = maybe; then
3844 cross_compiling=yes
3845 else
3846 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3848 as_fn_error "cannot run C compiled programs.
3849 If you meant to cross compile, use \`--host'.
3850 See \`config.log' for more details." "$LINENO" 5; }
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3855 $as_echo "yes" >&6; }
3857 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3858 ac_clean_files=$ac_clean_files_save
3859 # Check that the compiler produces executables we can run. If not, either
3860 # the compiler is broken, or we cross compile.
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3862 $as_echo_n "checking whether we are cross compiling... " >&6; }
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3864 $as_echo "$cross_compiling" >&6; }
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3867 $as_echo_n "checking for suffix of executables... " >&6; }
3868 if { { ac_try="$ac_link"
3869 case "(($ac_try" in
3870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871 *) ac_try_echo=$ac_try;;
3872 esac
3873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3874 $as_echo "$ac_try_echo"; } >&5
3875 (eval "$ac_link") 2>&5
3876 ac_status=$?
3877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3878 test $ac_status = 0; }; then :
3879 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3880 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3881 # work properly (i.e., refer to `conftest.exe'), while it won't with
3882 # `rm'.
3883 for ac_file in conftest.exe conftest conftest.*; do
3884 test -f "$ac_file" || continue
3885 case $ac_file in
3886 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3887 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3888 break;;
3889 * ) break;;
3890 esac
3891 done
3892 else
3893 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3895 as_fn_error "cannot compute suffix of executables: cannot compile and link
3896 See \`config.log' for more details." "$LINENO" 5; }
3898 rm -f conftest$ac_cv_exeext
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3900 $as_echo "$ac_cv_exeext" >&6; }
3902 rm -f conftest.$ac_ext
3903 EXEEXT=$ac_cv_exeext
3904 ac_exeext=$EXEEXT
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3907 $as_echo_n "checking for suffix of object files... " >&6; }
3908 if test "${ac_cv_objext+set}" = set; then :
3909 $as_echo_n "(cached) " >&6
3910 else
3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h. */
3915 main ()
3919 return 0;
3921 _ACEOF
3922 rm -f conftest.o conftest.obj
3923 if { { ac_try="$ac_compile"
3924 case "(($ac_try" in
3925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926 *) ac_try_echo=$ac_try;;
3927 esac
3928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3929 $as_echo "$ac_try_echo"; } >&5
3930 (eval "$ac_compile") 2>&5
3931 ac_status=$?
3932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3933 test $ac_status = 0; }; then :
3934 for ac_file in conftest.o conftest.obj conftest.*; do
3935 test -f "$ac_file" || continue;
3936 case $ac_file in
3937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3938 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3939 break;;
3940 esac
3941 done
3942 else
3943 $as_echo "$as_me: failed program was:" >&5
3944 sed 's/^/| /' conftest.$ac_ext >&5
3946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3948 as_fn_error "cannot compute suffix of object files: cannot compile
3949 See \`config.log' for more details." "$LINENO" 5; }
3951 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3954 $as_echo "$ac_cv_objext" >&6; }
3955 OBJEXT=$ac_cv_objext
3956 ac_objext=$OBJEXT
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3958 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3959 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3960 $as_echo_n "(cached) " >&6
3961 else
3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963 /* end confdefs.h. */
3966 main ()
3968 #ifndef __GNUC__
3969 choke me
3970 #endif
3973 return 0;
3975 _ACEOF
3976 if ac_fn_c_try_compile "$LINENO"; then :
3977 ac_compiler_gnu=yes
3978 else
3979 ac_compiler_gnu=no
3981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3982 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3986 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3987 if test $ac_compiler_gnu = yes; then
3988 GCC=yes
3989 else
3990 GCC=
3992 ac_test_CFLAGS=${CFLAGS+set}
3993 ac_save_CFLAGS=$CFLAGS
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3995 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3996 if test "${ac_cv_prog_cc_g+set}" = set; then :
3997 $as_echo_n "(cached) " >&6
3998 else
3999 ac_save_c_werror_flag=$ac_c_werror_flag
4000 ac_c_werror_flag=yes
4001 ac_cv_prog_cc_g=no
4002 CFLAGS="-g"
4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h. */
4007 main ()
4011 return 0;
4013 _ACEOF
4014 if ac_fn_c_try_compile "$LINENO"; then :
4015 ac_cv_prog_cc_g=yes
4016 else
4017 CFLAGS=""
4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019 /* end confdefs.h. */
4022 main ()
4026 return 0;
4028 _ACEOF
4029 if ac_fn_c_try_compile "$LINENO"; then :
4031 else
4032 ac_c_werror_flag=$ac_save_c_werror_flag
4033 CFLAGS="-g"
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4038 main ()
4042 return 0;
4044 _ACEOF
4045 if ac_fn_c_try_compile "$LINENO"; then :
4046 ac_cv_prog_cc_g=yes
4048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4053 ac_c_werror_flag=$ac_save_c_werror_flag
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4056 $as_echo "$ac_cv_prog_cc_g" >&6; }
4057 if test "$ac_test_CFLAGS" = set; then
4058 CFLAGS=$ac_save_CFLAGS
4059 elif test $ac_cv_prog_cc_g = yes; then
4060 if test "$GCC" = yes; then
4061 CFLAGS="-g -O2"
4062 else
4063 CFLAGS="-g"
4065 else
4066 if test "$GCC" = yes; then
4067 CFLAGS="-O2"
4068 else
4069 CFLAGS=
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4073 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4074 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4075 $as_echo_n "(cached) " >&6
4076 else
4077 ac_cv_prog_cc_c89=no
4078 ac_save_CC=$CC
4079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080 /* end confdefs.h. */
4081 #include <stdarg.h>
4082 #include <stdio.h>
4083 #include <sys/types.h>
4084 #include <sys/stat.h>
4085 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4086 struct buf { int x; };
4087 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4088 static char *e (p, i)
4089 char **p;
4090 int i;
4092 return p[i];
4094 static char *f (char * (*g) (char **, int), char **p, ...)
4096 char *s;
4097 va_list v;
4098 va_start (v,p);
4099 s = g (p, va_arg (v,int));
4100 va_end (v);
4101 return s;
4104 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4105 function prototypes and stuff, but not '\xHH' hex character constants.
4106 These don't provoke an error unfortunately, instead are silently treated
4107 as 'x'. The following induces an error, until -std is added to get
4108 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4109 array size at least. It's necessary to write '\x00'==0 to get something
4110 that's true only with -std. */
4111 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4113 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4114 inside strings and character constants. */
4115 #define FOO(x) 'x'
4116 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4118 int test (int i, double x);
4119 struct s1 {int (*f) (int a);};
4120 struct s2 {int (*f) (double a);};
4121 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4122 int argc;
4123 char **argv;
4125 main ()
4127 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4129 return 0;
4131 _ACEOF
4132 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4133 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4135 CC="$ac_save_CC $ac_arg"
4136 if ac_fn_c_try_compile "$LINENO"; then :
4137 ac_cv_prog_cc_c89=$ac_arg
4139 rm -f core conftest.err conftest.$ac_objext
4140 test "x$ac_cv_prog_cc_c89" != "xno" && break
4141 done
4142 rm -f conftest.$ac_ext
4143 CC=$ac_save_CC
4146 # AC_CACHE_VAL
4147 case "x$ac_cv_prog_cc_c89" in
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4150 $as_echo "none needed" >&6; } ;;
4151 xno)
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4153 $as_echo "unsupported" >&6; } ;;
4155 CC="$CC $ac_cv_prog_cc_c89"
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4157 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4158 esac
4159 if test "x$ac_cv_prog_cc_c89" != xno; then :
4163 ac_ext=c
4164 ac_cpp='$CPP $CPPFLAGS'
4165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4169 ac_ext=cpp
4170 ac_cpp='$CXXCPP $CPPFLAGS'
4171 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4172 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4173 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4174 if test -z "$CXX"; then
4175 if test -n "$CCC"; then
4176 CXX=$CCC
4177 else
4178 if test -n "$ac_tool_prefix"; then
4179 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4181 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4182 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4184 $as_echo_n "checking for $ac_word... " >&6; }
4185 if test "${ac_cv_prog_CXX+set}" = set; then :
4186 $as_echo_n "(cached) " >&6
4187 else
4188 if test -n "$CXX"; then
4189 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4190 else
4191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192 for as_dir in $PATH
4194 IFS=$as_save_IFS
4195 test -z "$as_dir" && as_dir=.
4196 for ac_exec_ext in '' $ac_executable_extensions; do
4197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4198 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4200 break 2
4202 done
4203 done
4204 IFS=$as_save_IFS
4208 CXX=$ac_cv_prog_CXX
4209 if test -n "$CXX"; then
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4211 $as_echo "$CXX" >&6; }
4212 else
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4214 $as_echo "no" >&6; }
4218 test -n "$CXX" && break
4219 done
4221 if test -z "$CXX"; then
4222 ac_ct_CXX=$CXX
4223 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4225 # Extract the first word of "$ac_prog", so it can be a program name with args.
4226 set dummy $ac_prog; ac_word=$2
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4228 $as_echo_n "checking for $ac_word... " >&6; }
4229 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4230 $as_echo_n "(cached) " >&6
4231 else
4232 if test -n "$ac_ct_CXX"; then
4233 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4234 else
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236 for as_dir in $PATH
4238 IFS=$as_save_IFS
4239 test -z "$as_dir" && as_dir=.
4240 for ac_exec_ext in '' $ac_executable_extensions; do
4241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4242 ac_cv_prog_ac_ct_CXX="$ac_prog"
4243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4244 break 2
4246 done
4247 done
4248 IFS=$as_save_IFS
4252 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4253 if test -n "$ac_ct_CXX"; then
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4255 $as_echo "$ac_ct_CXX" >&6; }
4256 else
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4258 $as_echo "no" >&6; }
4262 test -n "$ac_ct_CXX" && break
4263 done
4265 if test "x$ac_ct_CXX" = x; then
4266 CXX="g++"
4267 else
4268 case $cross_compiling:$ac_tool_warned in
4269 yes:)
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4272 ac_tool_warned=yes ;;
4273 esac
4274 CXX=$ac_ct_CXX
4280 # Provide some information about the compiler.
4281 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4282 set X $ac_compile
4283 ac_compiler=$2
4284 for ac_option in --version -v -V -qversion; do
4285 { { ac_try="$ac_compiler $ac_option >&5"
4286 case "(($ac_try" in
4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4289 esac
4290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4291 $as_echo "$ac_try_echo"; } >&5
4292 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4293 ac_status=$?
4294 if test -s conftest.err; then
4295 sed '10a\
4296 ... rest of stderr output deleted ...
4297 10q' conftest.err >conftest.er1
4298 cat conftest.er1 >&5
4299 rm -f conftest.er1 conftest.err
4301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4302 test $ac_status = 0; }
4303 done
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4306 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4307 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4308 $as_echo_n "(cached) " >&6
4309 else
4310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311 /* end confdefs.h. */
4314 main ()
4316 #ifndef __GNUC__
4317 choke me
4318 #endif
4321 return 0;
4323 _ACEOF
4324 if ac_fn_cxx_try_compile "$LINENO"; then :
4325 ac_compiler_gnu=yes
4326 else
4327 ac_compiler_gnu=no
4329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4330 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4334 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4335 if test $ac_compiler_gnu = yes; then
4336 GXX=yes
4337 else
4338 GXX=
4340 ac_test_CXXFLAGS=${CXXFLAGS+set}
4341 ac_save_CXXFLAGS=$CXXFLAGS
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4343 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4344 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4345 $as_echo_n "(cached) " >&6
4346 else
4347 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4348 ac_cxx_werror_flag=yes
4349 ac_cv_prog_cxx_g=no
4350 CXXFLAGS="-g"
4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h. */
4355 main ()
4359 return 0;
4361 _ACEOF
4362 if ac_fn_cxx_try_compile "$LINENO"; then :
4363 ac_cv_prog_cxx_g=yes
4364 else
4365 CXXFLAGS=""
4366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367 /* end confdefs.h. */
4370 main ()
4374 return 0;
4376 _ACEOF
4377 if ac_fn_cxx_try_compile "$LINENO"; then :
4379 else
4380 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4381 CXXFLAGS="-g"
4382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4383 /* end confdefs.h. */
4386 main ()
4390 return 0;
4392 _ACEOF
4393 if ac_fn_cxx_try_compile "$LINENO"; then :
4394 ac_cv_prog_cxx_g=yes
4396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4401 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4404 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4405 if test "$ac_test_CXXFLAGS" = set; then
4406 CXXFLAGS=$ac_save_CXXFLAGS
4407 elif test $ac_cv_prog_cxx_g = yes; then
4408 if test "$GXX" = yes; then
4409 CXXFLAGS="-g -O2"
4410 else
4411 CXXFLAGS="-g"
4413 else
4414 if test "$GXX" = yes; then
4415 CXXFLAGS="-O2"
4416 else
4417 CXXFLAGS=
4420 ac_ext=c
4421 ac_cpp='$CPP $CPPFLAGS'
4422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4426 CXXFLAGS="$save_CXXFLAGS"
4428 am__api_version='1.11'
4430 # Find a good install program. We prefer a C program (faster),
4431 # so one script is as good as another. But avoid the broken or
4432 # incompatible versions:
4433 # SysV /etc/install, /usr/sbin/install
4434 # SunOS /usr/etc/install
4435 # IRIX /sbin/install
4436 # AIX /bin/install
4437 # AmigaOS /C/install, which installs bootblocks on floppy discs
4438 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4439 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4440 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4441 # OS/2's system install, which has a completely different semantic
4442 # ./install, which can be erroneously created by make from ./install.sh.
4443 # Reject install programs that cannot install multiple files.
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4445 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4446 if test -z "$INSTALL"; then
4447 if test "${ac_cv_path_install+set}" = set; then :
4448 $as_echo_n "(cached) " >&6
4449 else
4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 for as_dir in $PATH
4453 IFS=$as_save_IFS
4454 test -z "$as_dir" && as_dir=.
4455 # Account for people who put trailing slashes in PATH elements.
4456 case $as_dir/ in #((
4457 ./ | .// | /[cC]/* | \
4458 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4459 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4460 /usr/ucb/* ) ;;
4462 # OSF1 and SCO ODT 3.0 have their own names for install.
4463 # Don't use installbsd from OSF since it installs stuff as root
4464 # by default.
4465 for ac_prog in ginstall scoinst install; do
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4468 if test $ac_prog = install &&
4469 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4470 # AIX install. It has an incompatible calling convention.
4472 elif test $ac_prog = install &&
4473 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4474 # program-specific install script used by HP pwplus--don't use.
4476 else
4477 rm -rf conftest.one conftest.two conftest.dir
4478 echo one > conftest.one
4479 echo two > conftest.two
4480 mkdir conftest.dir
4481 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4482 test -s conftest.one && test -s conftest.two &&
4483 test -s conftest.dir/conftest.one &&
4484 test -s conftest.dir/conftest.two
4485 then
4486 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4487 break 3
4491 done
4492 done
4494 esac
4496 done
4497 IFS=$as_save_IFS
4499 rm -rf conftest.one conftest.two conftest.dir
4502 if test "${ac_cv_path_install+set}" = set; then
4503 INSTALL=$ac_cv_path_install
4504 else
4505 # As a last resort, use the slow shell script. Don't cache a
4506 # value for INSTALL within a source directory, because that will
4507 # break other packages using the cache if that directory is
4508 # removed, or if the value is a relative name.
4509 INSTALL=$ac_install_sh
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4513 $as_echo "$INSTALL" >&6; }
4515 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4516 # It thinks the first close brace ends the variable substitution.
4517 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4519 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4521 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4524 $as_echo_n "checking whether build environment is sane... " >&6; }
4525 # Just in case
4526 sleep 1
4527 echo timestamp > conftest.file
4528 # Reject unsafe characters in $srcdir or the absolute working directory
4529 # name. Accept space and tab only in the latter.
4530 am_lf='
4532 case `pwd` in
4533 *[\\\"\#\$\&\'\`$am_lf]*)
4534 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4535 esac
4536 case $srcdir in
4537 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4538 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4539 esac
4541 # Do `set' in a subshell so we don't clobber the current shell's
4542 # arguments. Must try -L first in case configure is actually a
4543 # symlink; some systems play weird games with the mod time of symlinks
4544 # (eg FreeBSD returns the mod time of the symlink's containing
4545 # directory).
4546 if (
4547 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4548 if test "$*" = "X"; then
4549 # -L didn't work.
4550 set X `ls -t "$srcdir/configure" conftest.file`
4552 rm -f conftest.file
4553 if test "$*" != "X $srcdir/configure conftest.file" \
4554 && test "$*" != "X conftest.file $srcdir/configure"; then
4556 # If neither matched, then we have a broken ls. This can happen
4557 # if, for instance, CONFIG_SHELL is bash and it inherits a
4558 # broken ls alias from the environment. This has actually
4559 # happened. Such a system could not be considered "sane".
4560 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4561 alias in your environment" "$LINENO" 5
4564 test "$2" = conftest.file
4566 then
4567 # Ok.
4569 else
4570 as_fn_error "newly created file is older than distributed files!
4571 Check your system clock" "$LINENO" 5
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4574 $as_echo "yes" >&6; }
4575 test "$program_prefix" != NONE &&
4576 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4577 # Use a double $ so make ignores it.
4578 test "$program_suffix" != NONE &&
4579 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4580 # Double any \ or $.
4581 # By default was `s,x,x', remove it if useless.
4582 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4583 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4585 # expand $ac_aux_dir to an absolute path
4586 am_aux_dir=`cd $ac_aux_dir && pwd`
4588 if test x"${MISSING+set}" != xset; then
4589 case $am_aux_dir in
4590 *\ * | *\ *)
4591 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4593 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4594 esac
4596 # Use eval to expand $SHELL
4597 if eval "$MISSING --run true"; then
4598 am_missing_run="$MISSING --run "
4599 else
4600 am_missing_run=
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4602 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4605 if test x"${install_sh}" != xset; then
4606 case $am_aux_dir in
4607 *\ * | *\ *)
4608 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4610 install_sh="\${SHELL} $am_aux_dir/install-sh"
4611 esac
4614 # Installed binaries are usually stripped using `strip' when the user
4615 # run `make install-strip'. However `strip' might not be the right
4616 # tool to use in cross-compilation environments, therefore Automake
4617 # will honor the `STRIP' environment variable to overrule this program.
4618 if test "$cross_compiling" != no; then
4619 if test -n "$ac_tool_prefix"; then
4620 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4621 set dummy ${ac_tool_prefix}strip; ac_word=$2
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4623 $as_echo_n "checking for $ac_word... " >&6; }
4624 if test "${ac_cv_prog_STRIP+set}" = set; then :
4625 $as_echo_n "(cached) " >&6
4626 else
4627 if test -n "$STRIP"; then
4628 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4629 else
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 for as_dir in $PATH
4633 IFS=$as_save_IFS
4634 test -z "$as_dir" && as_dir=.
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4637 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4639 break 2
4641 done
4642 done
4643 IFS=$as_save_IFS
4647 STRIP=$ac_cv_prog_STRIP
4648 if test -n "$STRIP"; then
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4650 $as_echo "$STRIP" >&6; }
4651 else
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4653 $as_echo "no" >&6; }
4658 if test -z "$ac_cv_prog_STRIP"; then
4659 ac_ct_STRIP=$STRIP
4660 # Extract the first word of "strip", so it can be a program name with args.
4661 set dummy strip; ac_word=$2
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4663 $as_echo_n "checking for $ac_word... " >&6; }
4664 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4665 $as_echo_n "(cached) " >&6
4666 else
4667 if test -n "$ac_ct_STRIP"; then
4668 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4669 else
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4677 ac_cv_prog_ac_ct_STRIP="strip"
4678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 break 2
4681 done
4682 done
4683 IFS=$as_save_IFS
4687 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4688 if test -n "$ac_ct_STRIP"; then
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4690 $as_echo "$ac_ct_STRIP" >&6; }
4691 else
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693 $as_echo "no" >&6; }
4696 if test "x$ac_ct_STRIP" = x; then
4697 STRIP=":"
4698 else
4699 case $cross_compiling:$ac_tool_warned in
4700 yes:)
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4703 ac_tool_warned=yes ;;
4704 esac
4705 STRIP=$ac_ct_STRIP
4707 else
4708 STRIP="$ac_cv_prog_STRIP"
4712 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4715 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4716 if test -z "$MKDIR_P"; then
4717 if test "${ac_cv_path_mkdir+set}" = set; then :
4718 $as_echo_n "(cached) " >&6
4719 else
4720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4723 IFS=$as_save_IFS
4724 test -z "$as_dir" && as_dir=.
4725 for ac_prog in mkdir gmkdir; do
4726 for ac_exec_ext in '' $ac_executable_extensions; do
4727 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4728 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4729 'mkdir (GNU coreutils) '* | \
4730 'mkdir (coreutils) '* | \
4731 'mkdir (fileutils) '4.1*)
4732 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4733 break 3;;
4734 esac
4735 done
4736 done
4737 done
4738 IFS=$as_save_IFS
4742 if test "${ac_cv_path_mkdir+set}" = set; then
4743 MKDIR_P="$ac_cv_path_mkdir -p"
4744 else
4745 # As a last resort, use the slow shell script. Don't cache a
4746 # value for MKDIR_P within a source directory, because that will
4747 # break other packages using the cache if that directory is
4748 # removed, or if the value is a relative name.
4749 test -d ./--version && rmdir ./--version
4750 MKDIR_P="$ac_install_sh -d"
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4754 $as_echo "$MKDIR_P" >&6; }
4756 mkdir_p="$MKDIR_P"
4757 case $mkdir_p in
4758 [\\/$]* | ?:[\\/]*) ;;
4759 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4760 esac
4762 for ac_prog in gawk mawk nawk awk
4764 # Extract the first word of "$ac_prog", so it can be a program name with args.
4765 set dummy $ac_prog; ac_word=$2
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767 $as_echo_n "checking for $ac_word... " >&6; }
4768 if test "${ac_cv_prog_AWK+set}" = set; then :
4769 $as_echo_n "(cached) " >&6
4770 else
4771 if test -n "$AWK"; then
4772 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4773 else
4774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775 for as_dir in $PATH
4777 IFS=$as_save_IFS
4778 test -z "$as_dir" && as_dir=.
4779 for ac_exec_ext in '' $ac_executable_extensions; do
4780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4781 ac_cv_prog_AWK="$ac_prog"
4782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4783 break 2
4785 done
4786 done
4787 IFS=$as_save_IFS
4791 AWK=$ac_cv_prog_AWK
4792 if test -n "$AWK"; then
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4794 $as_echo "$AWK" >&6; }
4795 else
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797 $as_echo "no" >&6; }
4801 test -n "$AWK" && break
4802 done
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4805 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4806 set x ${MAKE-make}
4807 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4808 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4809 $as_echo_n "(cached) " >&6
4810 else
4811 cat >conftest.make <<\_ACEOF
4812 SHELL = /bin/sh
4813 all:
4814 @echo '@@@%%%=$(MAKE)=@@@%%%'
4815 _ACEOF
4816 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4817 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4818 *@@@%%%=?*=@@@%%%*)
4819 eval ac_cv_prog_make_${ac_make}_set=yes;;
4821 eval ac_cv_prog_make_${ac_make}_set=no;;
4822 esac
4823 rm -f conftest.make
4825 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4827 $as_echo "yes" >&6; }
4828 SET_MAKE=
4829 else
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4831 $as_echo "no" >&6; }
4832 SET_MAKE="MAKE=${MAKE-make}"
4835 rm -rf .tst 2>/dev/null
4836 mkdir .tst 2>/dev/null
4837 if test -d .tst; then
4838 am__leading_dot=.
4839 else
4840 am__leading_dot=_
4842 rmdir .tst 2>/dev/null
4844 DEPDIR="${am__leading_dot}deps"
4846 ac_config_commands="$ac_config_commands depfiles"
4849 am_make=${MAKE-make}
4850 cat > confinc << 'END'
4851 am__doit:
4852 @echo this is the am__doit target
4853 .PHONY: am__doit
4855 # If we don't find an include directive, just comment out the code.
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4857 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4858 am__include="#"
4859 am__quote=
4860 _am_result=none
4861 # First try GNU make style include.
4862 echo "include confinc" > confmf
4863 # Ignore all kinds of additional output from `make'.
4864 case `$am_make -s -f confmf 2> /dev/null` in #(
4865 *the\ am__doit\ target*)
4866 am__include=include
4867 am__quote=
4868 _am_result=GNU
4870 esac
4871 # Now try BSD make style include.
4872 if test "$am__include" = "#"; then
4873 echo '.include "confinc"' > confmf
4874 case `$am_make -s -f confmf 2> /dev/null` in #(
4875 *the\ am__doit\ target*)
4876 am__include=.include
4877 am__quote="\""
4878 _am_result=BSD
4880 esac
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4885 $as_echo "$_am_result" >&6; }
4886 rm -f confinc confmf
4888 # Check whether --enable-dependency-tracking was given.
4889 if test "${enable_dependency_tracking+set}" = set; then :
4890 enableval=$enable_dependency_tracking;
4893 if test "x$enable_dependency_tracking" != xno; then
4894 am_depcomp="$ac_aux_dir/depcomp"
4895 AMDEPBACKSLASH='\'
4897 if test "x$enable_dependency_tracking" != xno; then
4898 AMDEP_TRUE=
4899 AMDEP_FALSE='#'
4900 else
4901 AMDEP_TRUE='#'
4902 AMDEP_FALSE=
4906 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4907 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4908 # is not polluted with repeated "-I."
4909 am__isrc=' -I$(srcdir)'
4910 # test to see if srcdir already configured
4911 if test -f $srcdir/config.status; then
4912 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4916 # test whether we have cygpath
4917 if test -z "$CYGPATH_W"; then
4918 if (cygpath --version) >/dev/null 2>/dev/null; then
4919 CYGPATH_W='cygpath -w'
4920 else
4921 CYGPATH_W=echo
4926 # Define the identity of the package.
4927 PACKAGE='libjava'
4928 VERSION='version-unused'
4931 cat >>confdefs.h <<_ACEOF
4932 #define PACKAGE "$PACKAGE"
4933 _ACEOF
4936 cat >>confdefs.h <<_ACEOF
4937 #define VERSION "$VERSION"
4938 _ACEOF
4940 # Some tools Automake needs.
4942 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4945 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4948 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4951 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4954 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4956 # We need awk for the "check" target. The system "awk" is bad on
4957 # some platforms.
4958 # Always define AMTAR for backward compatibility.
4960 AMTAR=${AMTAR-"${am_missing_run}tar"}
4962 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4967 depcc="$CC" am_compiler_list=
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4970 $as_echo_n "checking dependency style of $depcc... " >&6; }
4971 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4972 $as_echo_n "(cached) " >&6
4973 else
4974 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4975 # We make a subdir and do the tests there. Otherwise we can end up
4976 # making bogus files that we don't know about and never remove. For
4977 # instance it was reported that on HP-UX the gcc test will end up
4978 # making a dummy file named `D' -- because `-MD' means `put the output
4979 # in D'.
4980 mkdir conftest.dir
4981 # Copy depcomp to subdir because otherwise we won't find it if we're
4982 # using a relative directory.
4983 cp "$am_depcomp" conftest.dir
4984 cd conftest.dir
4985 # We will build objects and dependencies in a subdirectory because
4986 # it helps to detect inapplicable dependency modes. For instance
4987 # both Tru64's cc and ICC support -MD to output dependencies as a
4988 # side effect of compilation, but ICC will put the dependencies in
4989 # the current directory while Tru64 will put them in the object
4990 # directory.
4991 mkdir sub
4993 am_cv_CC_dependencies_compiler_type=none
4994 if test "$am_compiler_list" = ""; then
4995 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4997 am__universal=false
4998 case " $depcc " in #(
4999 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5000 esac
5002 for depmode in $am_compiler_list; do
5003 # Setup a source with many dependencies, because some compilers
5004 # like to wrap large dependency lists on column 80 (with \), and
5005 # we should not choose a depcomp mode which is confused by this.
5007 # We need to recreate these files for each test, as the compiler may
5008 # overwrite some of them when testing with obscure command lines.
5009 # This happens at least with the AIX C compiler.
5010 : > sub/conftest.c
5011 for i in 1 2 3 4 5 6; do
5012 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5013 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5014 # Solaris 8's {/usr,}/bin/sh.
5015 touch sub/conftst$i.h
5016 done
5017 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5019 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5020 # mode. It turns out that the SunPro C++ compiler does not properly
5021 # handle `-M -o', and we need to detect this. Also, some Intel
5022 # versions had trouble with output in subdirs
5023 am__obj=sub/conftest.${OBJEXT-o}
5024 am__minus_obj="-o $am__obj"
5025 case $depmode in
5026 gcc)
5027 # This depmode causes a compiler race in universal mode.
5028 test "$am__universal" = false || continue
5030 nosideeffect)
5031 # after this tag, mechanisms are not by side-effect, so they'll
5032 # only be used when explicitly requested
5033 if test "x$enable_dependency_tracking" = xyes; then
5034 continue
5035 else
5036 break
5039 msvisualcpp | msvcmsys)
5040 # This compiler won't grok `-c -o', but also, the minuso test has
5041 # not run yet. These depmodes are late enough in the game, and
5042 # so weak that their functioning should not be impacted.
5043 am__obj=conftest.${OBJEXT-o}
5044 am__minus_obj=
5046 none) break ;;
5047 esac
5048 if depmode=$depmode \
5049 source=sub/conftest.c object=$am__obj \
5050 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5051 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5052 >/dev/null 2>conftest.err &&
5053 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5054 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5055 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5056 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5057 # icc doesn't choke on unknown options, it will just issue warnings
5058 # or remarks (even with -Werror). So we grep stderr for any message
5059 # that says an option was ignored or not supported.
5060 # When given -MP, icc 7.0 and 7.1 complain thusly:
5061 # icc: Command line warning: ignoring option '-M'; no argument required
5062 # The diagnosis changed in icc 8.0:
5063 # icc: Command line remark: option '-MP' not supported
5064 if (grep 'ignoring option' conftest.err ||
5065 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5066 am_cv_CC_dependencies_compiler_type=$depmode
5067 break
5070 done
5072 cd ..
5073 rm -rf conftest.dir
5074 else
5075 am_cv_CC_dependencies_compiler_type=none
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5080 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5081 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5084 test "x$enable_dependency_tracking" != xno \
5085 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5086 am__fastdepCC_TRUE=
5087 am__fastdepCC_FALSE='#'
5088 else
5089 am__fastdepCC_TRUE='#'
5090 am__fastdepCC_FALSE=
5094 depcc="$CXX" am_compiler_list=
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5097 $as_echo_n "checking dependency style of $depcc... " >&6; }
5098 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5099 $as_echo_n "(cached) " >&6
5100 else
5101 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5102 # We make a subdir and do the tests there. Otherwise we can end up
5103 # making bogus files that we don't know about and never remove. For
5104 # instance it was reported that on HP-UX the gcc test will end up
5105 # making a dummy file named `D' -- because `-MD' means `put the output
5106 # in D'.
5107 mkdir conftest.dir
5108 # Copy depcomp to subdir because otherwise we won't find it if we're
5109 # using a relative directory.
5110 cp "$am_depcomp" conftest.dir
5111 cd conftest.dir
5112 # We will build objects and dependencies in a subdirectory because
5113 # it helps to detect inapplicable dependency modes. For instance
5114 # both Tru64's cc and ICC support -MD to output dependencies as a
5115 # side effect of compilation, but ICC will put the dependencies in
5116 # the current directory while Tru64 will put them in the object
5117 # directory.
5118 mkdir sub
5120 am_cv_CXX_dependencies_compiler_type=none
5121 if test "$am_compiler_list" = ""; then
5122 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5124 am__universal=false
5125 case " $depcc " in #(
5126 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5127 esac
5129 for depmode in $am_compiler_list; do
5130 # Setup a source with many dependencies, because some compilers
5131 # like to wrap large dependency lists on column 80 (with \), and
5132 # we should not choose a depcomp mode which is confused by this.
5134 # We need to recreate these files for each test, as the compiler may
5135 # overwrite some of them when testing with obscure command lines.
5136 # This happens at least with the AIX C compiler.
5137 : > sub/conftest.c
5138 for i in 1 2 3 4 5 6; do
5139 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5140 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5141 # Solaris 8's {/usr,}/bin/sh.
5142 touch sub/conftst$i.h
5143 done
5144 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5146 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5147 # mode. It turns out that the SunPro C++ compiler does not properly
5148 # handle `-M -o', and we need to detect this. Also, some Intel
5149 # versions had trouble with output in subdirs
5150 am__obj=sub/conftest.${OBJEXT-o}
5151 am__minus_obj="-o $am__obj"
5152 case $depmode in
5153 gcc)
5154 # This depmode causes a compiler race in universal mode.
5155 test "$am__universal" = false || continue
5157 nosideeffect)
5158 # after this tag, mechanisms are not by side-effect, so they'll
5159 # only be used when explicitly requested
5160 if test "x$enable_dependency_tracking" = xyes; then
5161 continue
5162 else
5163 break
5166 msvisualcpp | msvcmsys)
5167 # This compiler won't grok `-c -o', but also, the minuso test has
5168 # not run yet. These depmodes are late enough in the game, and
5169 # so weak that their functioning should not be impacted.
5170 am__obj=conftest.${OBJEXT-o}
5171 am__minus_obj=
5173 none) break ;;
5174 esac
5175 if depmode=$depmode \
5176 source=sub/conftest.c object=$am__obj \
5177 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5178 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5179 >/dev/null 2>conftest.err &&
5180 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5181 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5182 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5183 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5184 # icc doesn't choke on unknown options, it will just issue warnings
5185 # or remarks (even with -Werror). So we grep stderr for any message
5186 # that says an option was ignored or not supported.
5187 # When given -MP, icc 7.0 and 7.1 complain thusly:
5188 # icc: Command line warning: ignoring option '-M'; no argument required
5189 # The diagnosis changed in icc 8.0:
5190 # icc: Command line remark: option '-MP' not supported
5191 if (grep 'ignoring option' conftest.err ||
5192 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5193 am_cv_CXX_dependencies_compiler_type=$depmode
5194 break
5197 done
5199 cd ..
5200 rm -rf conftest.dir
5201 else
5202 am_cv_CXX_dependencies_compiler_type=none
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5207 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5208 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5211 test "x$enable_dependency_tracking" != xno \
5212 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5213 am__fastdepCXX_TRUE=
5214 am__fastdepCXX_FALSE='#'
5215 else
5216 am__fastdepCXX_TRUE='#'
5217 am__fastdepCXX_FALSE=
5223 if test -n "$ac_tool_prefix"; then
5224 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5225 set dummy ${ac_tool_prefix}as; ac_word=$2
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5227 $as_echo_n "checking for $ac_word... " >&6; }
5228 if test "${ac_cv_prog_AS+set}" = set; then :
5229 $as_echo_n "(cached) " >&6
5230 else
5231 if test -n "$AS"; then
5232 ac_cv_prog_AS="$AS" # Let the user override the test.
5233 else
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 for as_dir in $PATH
5237 IFS=$as_save_IFS
5238 test -z "$as_dir" && as_dir=.
5239 for ac_exec_ext in '' $ac_executable_extensions; do
5240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5241 ac_cv_prog_AS="${ac_tool_prefix}as"
5242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5243 break 2
5245 done
5246 done
5247 IFS=$as_save_IFS
5251 AS=$ac_cv_prog_AS
5252 if test -n "$AS"; then
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5254 $as_echo "$AS" >&6; }
5255 else
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5257 $as_echo "no" >&6; }
5262 if test -z "$ac_cv_prog_AS"; then
5263 ac_ct_AS=$AS
5264 # Extract the first word of "as", so it can be a program name with args.
5265 set dummy as; ac_word=$2
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5267 $as_echo_n "checking for $ac_word... " >&6; }
5268 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5269 $as_echo_n "(cached) " >&6
5270 else
5271 if test -n "$ac_ct_AS"; then
5272 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5273 else
5274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275 for as_dir in $PATH
5277 IFS=$as_save_IFS
5278 test -z "$as_dir" && as_dir=.
5279 for ac_exec_ext in '' $ac_executable_extensions; do
5280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5281 ac_cv_prog_ac_ct_AS="as"
5282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5283 break 2
5285 done
5286 done
5287 IFS=$as_save_IFS
5291 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5292 if test -n "$ac_ct_AS"; then
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5294 $as_echo "$ac_ct_AS" >&6; }
5295 else
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297 $as_echo "no" >&6; }
5300 if test "x$ac_ct_AS" = x; then
5301 AS=""
5302 else
5303 case $cross_compiling:$ac_tool_warned in
5304 yes:)
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5307 ac_tool_warned=yes ;;
5308 esac
5309 AS=$ac_ct_AS
5311 else
5312 AS="$ac_cv_prog_AS"
5315 if test -n "$ac_tool_prefix"; then
5316 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5317 set dummy ${ac_tool_prefix}ld; ac_word=$2
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5319 $as_echo_n "checking for $ac_word... " >&6; }
5320 if test "${ac_cv_prog_LD+set}" = set; then :
5321 $as_echo_n "(cached) " >&6
5322 else
5323 if test -n "$LD"; then
5324 ac_cv_prog_LD="$LD" # Let the user override the test.
5325 else
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $PATH
5329 IFS=$as_save_IFS
5330 test -z "$as_dir" && as_dir=.
5331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5333 ac_cv_prog_LD="${ac_tool_prefix}ld"
5334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5335 break 2
5337 done
5338 done
5339 IFS=$as_save_IFS
5343 LD=$ac_cv_prog_LD
5344 if test -n "$LD"; then
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5346 $as_echo "$LD" >&6; }
5347 else
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5349 $as_echo "no" >&6; }
5354 if test -z "$ac_cv_prog_LD"; then
5355 ac_ct_LD=$LD
5356 # Extract the first word of "ld", so it can be a program name with args.
5357 set dummy ld; ac_word=$2
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5359 $as_echo_n "checking for $ac_word... " >&6; }
5360 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
5361 $as_echo_n "(cached) " >&6
5362 else
5363 if test -n "$ac_ct_LD"; then
5364 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5365 else
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367 for as_dir in $PATH
5369 IFS=$as_save_IFS
5370 test -z "$as_dir" && as_dir=.
5371 for ac_exec_ext in '' $ac_executable_extensions; do
5372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5373 ac_cv_prog_ac_ct_LD="ld"
5374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5375 break 2
5377 done
5378 done
5379 IFS=$as_save_IFS
5383 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5384 if test -n "$ac_ct_LD"; then
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
5386 $as_echo "$ac_ct_LD" >&6; }
5387 else
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5389 $as_echo "no" >&6; }
5392 if test "x$ac_ct_LD" = x; then
5393 LD=""
5394 else
5395 case $cross_compiling:$ac_tool_warned in
5396 yes:)
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5399 ac_tool_warned=yes ;;
5400 esac
5401 LD=$ac_ct_LD
5403 else
5404 LD="$ac_cv_prog_LD"
5407 if test -n "$ac_tool_prefix"; then
5408 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5409 set dummy ${ac_tool_prefix}ar; ac_word=$2
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5411 $as_echo_n "checking for $ac_word... " >&6; }
5412 if test "${ac_cv_prog_AR+set}" = set; then :
5413 $as_echo_n "(cached) " >&6
5414 else
5415 if test -n "$AR"; then
5416 ac_cv_prog_AR="$AR" # Let the user override the test.
5417 else
5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419 for as_dir in $PATH
5421 IFS=$as_save_IFS
5422 test -z "$as_dir" && as_dir=.
5423 for ac_exec_ext in '' $ac_executable_extensions; do
5424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5425 ac_cv_prog_AR="${ac_tool_prefix}ar"
5426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5427 break 2
5429 done
5430 done
5431 IFS=$as_save_IFS
5435 AR=$ac_cv_prog_AR
5436 if test -n "$AR"; then
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5438 $as_echo "$AR" >&6; }
5439 else
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441 $as_echo "no" >&6; }
5446 if test -z "$ac_cv_prog_AR"; then
5447 ac_ct_AR=$AR
5448 # Extract the first word of "ar", so it can be a program name with args.
5449 set dummy ar; ac_word=$2
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5451 $as_echo_n "checking for $ac_word... " >&6; }
5452 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5453 $as_echo_n "(cached) " >&6
5454 else
5455 if test -n "$ac_ct_AR"; then
5456 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5457 else
5458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459 for as_dir in $PATH
5461 IFS=$as_save_IFS
5462 test -z "$as_dir" && as_dir=.
5463 for ac_exec_ext in '' $ac_executable_extensions; do
5464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5465 ac_cv_prog_ac_ct_AR="ar"
5466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5467 break 2
5469 done
5470 done
5471 IFS=$as_save_IFS
5475 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5476 if test -n "$ac_ct_AR"; then
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5478 $as_echo "$ac_ct_AR" >&6; }
5479 else
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5481 $as_echo "no" >&6; }
5484 if test "x$ac_ct_AR" = x; then
5485 AR=""
5486 else
5487 case $cross_compiling:$ac_tool_warned in
5488 yes:)
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5491 ac_tool_warned=yes ;;
5492 esac
5493 AR=$ac_ct_AR
5495 else
5496 AR="$ac_cv_prog_AR"
5499 if test -n "$ac_tool_prefix"; then
5500 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5501 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5503 $as_echo_n "checking for $ac_word... " >&6; }
5504 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5505 $as_echo_n "(cached) " >&6
5506 else
5507 if test -n "$RANLIB"; then
5508 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5509 else
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511 for as_dir in $PATH
5513 IFS=$as_save_IFS
5514 test -z "$as_dir" && as_dir=.
5515 for ac_exec_ext in '' $ac_executable_extensions; do
5516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5517 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5519 break 2
5521 done
5522 done
5523 IFS=$as_save_IFS
5527 RANLIB=$ac_cv_prog_RANLIB
5528 if test -n "$RANLIB"; then
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5530 $as_echo "$RANLIB" >&6; }
5531 else
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5533 $as_echo "no" >&6; }
5538 if test -z "$ac_cv_prog_RANLIB"; then
5539 ac_ct_RANLIB=$RANLIB
5540 # Extract the first word of "ranlib", so it can be a program name with args.
5541 set dummy ranlib; ac_word=$2
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5543 $as_echo_n "checking for $ac_word... " >&6; }
5544 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5545 $as_echo_n "(cached) " >&6
5546 else
5547 if test -n "$ac_ct_RANLIB"; then
5548 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5549 else
5550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551 for as_dir in $PATH
5553 IFS=$as_save_IFS
5554 test -z "$as_dir" && as_dir=.
5555 for ac_exec_ext in '' $ac_executable_extensions; do
5556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5557 ac_cv_prog_ac_ct_RANLIB="ranlib"
5558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5559 break 2
5561 done
5562 done
5563 IFS=$as_save_IFS
5567 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5568 if test -n "$ac_ct_RANLIB"; then
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5570 $as_echo "$ac_ct_RANLIB" >&6; }
5571 else
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5573 $as_echo "no" >&6; }
5576 if test "x$ac_ct_RANLIB" = x; then
5577 RANLIB=":"
5578 else
5579 case $cross_compiling:$ac_tool_warned in
5580 yes:)
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5583 ac_tool_warned=yes ;;
5584 esac
5585 RANLIB=$ac_ct_RANLIB
5587 else
5588 RANLIB="$ac_cv_prog_RANLIB"
5591 if test -n "$ac_tool_prefix"; then
5592 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5593 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5595 $as_echo_n "checking for $ac_word... " >&6; }
5596 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5597 $as_echo_n "(cached) " >&6
5598 else
5599 if test -n "$DLLTOOL"; then
5600 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5601 else
5602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603 for as_dir in $PATH
5605 IFS=$as_save_IFS
5606 test -z "$as_dir" && as_dir=.
5607 for ac_exec_ext in '' $ac_executable_extensions; do
5608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5609 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5611 break 2
5613 done
5614 done
5615 IFS=$as_save_IFS
5619 DLLTOOL=$ac_cv_prog_DLLTOOL
5620 if test -n "$DLLTOOL"; then
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5622 $as_echo "$DLLTOOL" >&6; }
5623 else
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5625 $as_echo "no" >&6; }
5630 if test -z "$ac_cv_prog_DLLTOOL"; then
5631 ac_ct_DLLTOOL=$DLLTOOL
5632 # Extract the first word of "dlltool", so it can be a program name with args.
5633 set dummy dlltool; ac_word=$2
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5635 $as_echo_n "checking for $ac_word... " >&6; }
5636 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5637 $as_echo_n "(cached) " >&6
5638 else
5639 if test -n "$ac_ct_DLLTOOL"; then
5640 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5641 else
5642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643 for as_dir in $PATH
5645 IFS=$as_save_IFS
5646 test -z "$as_dir" && as_dir=.
5647 for ac_exec_ext in '' $ac_executable_extensions; do
5648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5649 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5651 break 2
5653 done
5654 done
5655 IFS=$as_save_IFS
5659 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5660 if test -n "$ac_ct_DLLTOOL"; then
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5662 $as_echo "$ac_ct_DLLTOOL" >&6; }
5663 else
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5665 $as_echo "no" >&6; }
5668 if test "x$ac_ct_DLLTOOL" = x; then
5669 DLLTOOL=":"
5670 else
5671 case $cross_compiling:$ac_tool_warned in
5672 yes:)
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5675 ac_tool_warned=yes ;;
5676 esac
5677 DLLTOOL=$ac_ct_DLLTOOL
5679 else
5680 DLLTOOL="$ac_cv_prog_DLLTOOL"
5683 for ac_prog in gawk mawk nawk awk
5685 # Extract the first word of "$ac_prog", so it can be a program name with args.
5686 set dummy $ac_prog; ac_word=$2
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688 $as_echo_n "checking for $ac_word... " >&6; }
5689 if test "${ac_cv_prog_AWK+set}" = set; then :
5690 $as_echo_n "(cached) " >&6
5691 else
5692 if test -n "$AWK"; then
5693 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5694 else
5695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696 for as_dir in $PATH
5698 IFS=$as_save_IFS
5699 test -z "$as_dir" && as_dir=.
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5702 ac_cv_prog_AWK="$ac_prog"
5703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5704 break 2
5706 done
5707 done
5708 IFS=$as_save_IFS
5712 AWK=$ac_cv_prog_AWK
5713 if test -n "$AWK"; then
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5715 $as_echo "$AWK" >&6; }
5716 else
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718 $as_echo "no" >&6; }
5722 test -n "$AWK" && break
5723 done
5725 for ac_prog in jar fastjar gjar
5727 # Extract the first word of "$ac_prog", so it can be a program name with args.
5728 set dummy $ac_prog; ac_word=$2
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5730 $as_echo_n "checking for $ac_word... " >&6; }
5731 if test "${ac_cv_prog_JAR+set}" = set; then :
5732 $as_echo_n "(cached) " >&6
5733 else
5734 if test -n "$JAR"; then
5735 ac_cv_prog_JAR="$JAR" # Let the user override the test.
5736 else
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 for as_dir in $PATH
5740 IFS=$as_save_IFS
5741 test -z "$as_dir" && as_dir=.
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5744 ac_cv_prog_JAR="$ac_prog"
5745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5746 break 2
5748 done
5749 done
5750 IFS=$as_save_IFS
5754 JAR=$ac_cv_prog_JAR
5755 if test -n "$JAR"; then
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
5757 $as_echo "$JAR" >&6; }
5758 else
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760 $as_echo "no" >&6; }
5764 test -n "$JAR" && break
5765 done
5766 test -n "$JAR" || JAR="no"
5768 # Extract the first word of "zip", so it can be a program name with args.
5769 set dummy zip; ac_word=$2
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5771 $as_echo_n "checking for $ac_word... " >&6; }
5772 if test "${ac_cv_path_ZIP+set}" = set; then :
5773 $as_echo_n "(cached) " >&6
5774 else
5775 case $ZIP in
5776 [\\/]* | ?:[\\/]*)
5777 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781 for as_dir in $PATH
5783 IFS=$as_save_IFS
5784 test -z "$as_dir" && as_dir=.
5785 for ac_exec_ext in '' $ac_executable_extensions; do
5786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5787 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5789 break 2
5791 done
5792 done
5793 IFS=$as_save_IFS
5795 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
5797 esac
5799 ZIP=$ac_cv_path_ZIP
5800 if test -n "$ZIP"; then
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
5802 $as_echo "$ZIP" >&6; }
5803 else
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5805 $as_echo "no" >&6; }
5809 # Extract the first word of "unzip", so it can be a program name with args.
5810 set dummy unzip; ac_word=$2
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5812 $as_echo_n "checking for $ac_word... " >&6; }
5813 if test "${ac_cv_path_UNZIP+set}" = set; then :
5814 $as_echo_n "(cached) " >&6
5815 else
5816 case $UNZIP in
5817 [\\/]* | ?:[\\/]*)
5818 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 for as_dir in $PATH
5824 IFS=$as_save_IFS
5825 test -z "$as_dir" && as_dir=.
5826 for ac_exec_ext in '' $ac_executable_extensions; do
5827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5828 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
5829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5830 break 2
5832 done
5833 done
5834 IFS=$as_save_IFS
5836 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
5838 esac
5840 UNZIP=$ac_cv_path_UNZIP
5841 if test -n "$UNZIP"; then
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
5843 $as_echo "$UNZIP" >&6; }
5844 else
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5846 $as_echo "no" >&6; }
5851 # We need a jar that supports -@. This is a GNU extension.
5852 if test "$JAR" != no; then
5853 rm -f config-test.jar
5854 echo $srcdir/configure.ac | $JAR -cf@ config-test.jar >/dev/null 2>&1
5855 if test -f config-test.jar; then
5856 rm -f config-test.jar
5857 else
5858 JAR=no
5862 # Prefer the jar we found, but fall back to our jar script.
5863 if test "$JAR" = no; then
5864 if test "$ZIP" = no; then
5865 as_fn_error "cannot find neither zip nor jar, cannot continue" "$LINENO" 5
5866 else
5867 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
5868 JAR=`pwd`/scripts/jar
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5876 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5877 # Check whether --enable-maintainer-mode was given.
5878 if test "${enable_maintainer_mode+set}" = set; then :
5879 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5880 else
5881 USE_MAINTAINER_MODE=no
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5885 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5886 if test $USE_MAINTAINER_MODE = yes; then
5887 MAINTAINER_MODE_TRUE=
5888 MAINTAINER_MODE_FALSE='#'
5889 else
5890 MAINTAINER_MODE_TRUE='#'
5891 MAINTAINER_MODE_FALSE=
5894 MAINT=$MAINTAINER_MODE_TRUE
5900 # configure.host sets the following important variables
5901 # libgcj_cflags - host specific C compiler flags
5902 # libgcj_cxxflags - host specific C++ compiler flags
5903 # libgcj_javaflags - host specific Java compiler flags
5904 # libgcj_sublib_ltflags - host specific Libtool flags
5905 # libgcj_sublib_core_extra_deps - host specific extra
5906 # dependencies for core sublib
5907 # (these last two only used when building sublibs)
5908 # and a number of others; see the list at the start of the file.
5910 libgcj_cflags=
5911 libgcj_cxxflags=
5912 libgcj_javaflags=
5913 libgcj_sublib_ltflags=
5914 libgcj_sublib_core_extra_deps=
5916 . ${srcdir}/configure.host
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5919 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5920 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5921 $as_echo_n "(cached) " >&6
5922 else
5923 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5924 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5925 acl_cv_prog_gnu_ld=yes
5926 else
5927 acl_cv_prog_gnu_ld=no
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5931 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5932 with_gnu_ld=$acl_cv_prog_gnu_ld
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
5935 $as_echo_n "checking if the GNU linker ($LD) supports -Bsymbolic-functions... " >&6; }
5936 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then :
5937 $as_echo_n "(cached) " >&6
5938 else
5940 acl_cv_prog_gnu_ld_symbolic=no
5942 if test x"$with_gnu_ld" = x"yes"; then
5943 if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
5944 acl_cv_prog_gnu_ld_symbolic=yes
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld_symbolic" >&5
5949 $as_echo "$acl_cv_prog_gnu_ld_symbolic" >&6; }
5950 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
5951 SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
5952 else
5953 SYMBOLIC_LDFLAGS=''
5956 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
5957 if test -z "$libgcj_ld_symbolic"; then
5958 libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
5961 # for windows native targets enforce export of all symbols for shared libgcj.
5962 libgcj_ld_export_all=
5963 case "$host" in
5964 *mingw*)
5965 libgcj_ld_export_all=-Wl,--export-all-symbols
5969 esac
5971 LIBGCJ_CFLAGS="${libgcj_cflags}"
5972 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
5973 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
5974 LIBGCJ_SUBLIB_LTFLAGS="${libgcj_sublib_ltflags}"
5975 LIBGCJ_SUBLIB_CORE_EXTRA_DEPS="${libgcj_sublib_core_extra_deps}"
5976 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
5977 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
5978 LIBGCJ_LD_EXPORT_ALL="${libgcj_ld_export_all}"
5988 # Only use libltdl for non-newlib builds.
5989 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
5991 $as_echo_n "checking dynamic linker characteristics... " >&6; }
5992 library_names_spec=
5993 libname_spec='lib$name'
5994 soname_spec=
5995 shrext=".so"
5996 postinstall_cmds=
5997 postuninstall_cmds=
5998 finish_cmds=
5999 finish_eval=
6000 shlibpath_var=
6001 shlibpath_overrides_runpath=unknown
6002 version_type=none
6003 dynamic_linker="$host_os ld.so"
6004 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6005 if test "$GCC" = yes; then
6006 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
6007 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6008 # if the path contains ";" then we assume it to be the separator
6009 # otherwise default to the standard path separator (i.e. ":") - it is
6010 # assumed that no part of a normal pathname contains ";" but that should
6011 # okay in the real world where ";" in dirpaths is itself problematic.
6012 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6013 else
6014 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6016 else
6017 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6019 need_lib_prefix=unknown
6020 hardcode_into_libs=no
6022 # when you set need_version to no, make sure it does not cause -set_version
6023 # flags to be left without arguments
6024 need_version=unknown
6026 case $host_os in
6027 aix3*)
6028 version_type=linux
6029 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6030 shlibpath_var=LIBPATH
6032 # AIX 3 has no versioning support, so we append a major version to the name.
6033 soname_spec='${libname}${release}${shared_ext}$major'
6036 aix[4-9]*)
6037 version_type=linux
6038 need_lib_prefix=no
6039 need_version=no
6040 hardcode_into_libs=yes
6041 if test "$host_cpu" = ia64; then
6042 # AIX 5 supports IA64
6043 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6044 shlibpath_var=LD_LIBRARY_PATH
6045 else
6046 # With GCC up to 2.95.x, collect2 would create an import file
6047 # for dependence libraries. The import file would start with
6048 # the line `#! .'. This would cause the generated library to
6049 # depend on `.', always an invalid library. This was fixed in
6050 # development snapshots of GCC prior to 3.0.
6051 case $host_os in
6052 aix4 | aix4.[01] | aix4.[01].*)
6053 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6054 echo ' yes '
6055 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6057 else
6058 can_build_shared=no
6061 esac
6062 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6063 # soname into executable. Probably we can add versioning support to
6064 # collect2, so additional links can be useful in future.
6065 if test "$aix_use_runtimelinking" = yes; then
6066 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6067 # instead of lib<name>.a to let people know that these are not
6068 # typical AIX shared libraries.
6069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6070 else
6071 # We preserve .a as extension for shared libraries through AIX4.2
6072 # and later when we are not doing run time linking.
6073 library_names_spec='${libname}${release}.a $libname.a'
6074 soname_spec='${libname}${release}${shared_ext}$major'
6076 shlibpath_var=LIBPATH
6080 amigaos*)
6081 library_names_spec='$libname.ixlibrary $libname.a'
6082 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6083 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'
6086 beos*)
6087 library_names_spec='${libname}${shared_ext}'
6088 dynamic_linker="$host_os ld.so"
6089 shlibpath_var=LIBRARY_PATH
6092 bsdi4*)
6093 version_type=linux
6094 need_version=no
6095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6096 soname_spec='${libname}${release}${shared_ext}$major'
6097 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6098 shlibpath_var=LD_LIBRARY_PATH
6099 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6100 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6101 # the default ld.so.conf also contains /usr/contrib/lib and
6102 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6103 # libtool to hard-code these into programs
6106 cygwin* | mingw* | pw32*)
6107 version_type=windows
6108 shrext=".dll"
6109 need_version=no
6110 need_lib_prefix=no
6112 case $GCC,$host_os in
6113 yes,cygwin* | yes,mingw* | yes,pw32*)
6114 library_names_spec='$libname.dll.a'
6115 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6116 postinstall_cmds='base_file=`basename \${file}`~
6117 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6118 dldir=$destdir/`dirname \$dlpath`~
6119 test -d \$dldir || mkdir -p \$dldir~
6120 $install_prog $dir/$dlname \$dldir/$dlname'
6121 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6122 dlpath=$dir/\$dldll~
6123 $rm \$dlpath'
6124 shlibpath_overrides_runpath=yes
6126 case $host_os in
6127 cygwin*)
6128 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6129 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6130 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
6132 mingw*)
6133 # MinGW DLLs use traditional 'lib' prefix
6134 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6135 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
6136 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6137 # It is most probably a Windows format PATH printed by
6138 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6139 # path with ; separators, and with drive letters. We can handle the
6140 # drive letters (cygwin fileutils understands them), so leave them,
6141 # especially as we might pass files found there to a mingw objdump,
6142 # which wouldn't understand a cygwinified path. Ahh.
6143 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6144 else
6145 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6148 pw32*)
6149 # pw32 DLLs use 'pw' prefix rather than 'lib'
6150 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
6152 esac
6156 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6158 esac
6159 dynamic_linker='Win32 ld.exe'
6160 # FIXME: first we should search . and the directory the executable is in
6161 shlibpath_var=PATH
6164 darwin* | rhapsody*)
6165 dynamic_linker="$host_os dyld"
6166 version_type=darwin
6167 need_lib_prefix=no
6168 need_version=no
6169 # FIXME: Relying on posixy $() will cause problems for
6170 # cross-compilation, but unfortunately the echo tests do not
6171 # yet detect zsh echo's removal of \ escapes.
6172 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6173 soname_spec='${libname}${release}${major}$shared_ext'
6174 shlibpath_overrides_runpath=yes
6175 shlibpath_var=DYLD_LIBRARY_PATH
6176 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
6177 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6178 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6179 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"`
6181 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6184 dgux*)
6185 version_type=linux
6186 need_lib_prefix=no
6187 need_version=no
6188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6189 soname_spec='${libname}${release}${shared_ext}$major'
6190 shlibpath_var=LD_LIBRARY_PATH
6193 freebsd*)
6194 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6195 version_type=freebsd-$objformat
6196 case $version_type in
6197 freebsd-elf*)
6198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6199 need_version=no
6200 need_lib_prefix=no
6202 freebsd-*)
6203 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6204 need_version=yes
6206 esac
6207 shlibpath_var=LD_LIBRARY_PATH
6208 case $host_os in
6209 freebsd2*)
6210 shlibpath_overrides_runpath=yes
6212 freebsd3.01* | freebsdelf3.01*)
6213 shlibpath_overrides_runpath=yes
6214 hardcode_into_libs=yes
6216 *) # from 3.2 on
6217 shlibpath_overrides_runpath=no
6218 hardcode_into_libs=yes
6220 esac
6223 gnu*)
6224 version_type=linux
6225 need_lib_prefix=no
6226 need_version=no
6227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6228 soname_spec='${libname}${release}${shared_ext}$major'
6229 shlibpath_var=LD_LIBRARY_PATH
6230 hardcode_into_libs=yes
6233 hpux9* | hpux10* | hpux11*)
6234 # Give a soname corresponding to the major version so that dld.sl refuses to
6235 # link against other versions.
6236 version_type=sunos
6237 need_lib_prefix=no
6238 need_version=no
6239 case "$host_cpu" in
6240 ia64*)
6241 shrext='.so'
6242 hardcode_into_libs=yes
6243 dynamic_linker="$host_os dld.so"
6244 shlibpath_var=LD_LIBRARY_PATH
6245 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6247 soname_spec='${libname}${release}${shared_ext}$major'
6248 if test "X$HPUX_IA64_MODE" = X32; then
6249 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6250 else
6251 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6253 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6255 hppa*64*)
6256 shrext='.sl'
6257 hardcode_into_libs=yes
6258 dynamic_linker="$host_os dld.sl"
6259 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6260 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6262 soname_spec='${libname}${release}${shared_ext}$major'
6263 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6264 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6267 shrext='.sl'
6268 dynamic_linker="$host_os dld.sl"
6269 shlibpath_var=SHLIB_PATH
6270 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6272 soname_spec='${libname}${release}${shared_ext}$major'
6274 esac
6275 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6276 postinstall_cmds='chmod 555 $lib'
6279 irix5* | irix6* | nonstopux*)
6280 case $host_os in
6281 nonstopux*) version_type=nonstopux ;;
6283 if test "$lt_cv_prog_gnu_ld" = yes; then
6284 version_type=linux
6285 else
6286 version_type=irix
6287 fi ;;
6288 esac
6289 need_lib_prefix=no
6290 need_version=no
6291 soname_spec='${libname}${release}${shared_ext}$major'
6292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6293 case $host_os in
6294 irix5* | nonstopux*)
6295 libsuff= shlibsuff=
6298 case $LD in # libtool.m4 will add one of these switches to LD
6299 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6300 libsuff= shlibsuff= libmagic=32-bit;;
6301 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6302 libsuff=32 shlibsuff=N32 libmagic=N32;;
6303 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6304 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6305 *) libsuff= shlibsuff= libmagic=never-match;;
6306 esac
6308 esac
6309 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6310 shlibpath_overrides_runpath=no
6311 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6312 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6313 hardcode_into_libs=yes
6316 # No shared lib support for Linux oldld, aout, or coff.
6317 linux*oldld* | linux*aout* | linux*coff*)
6318 dynamic_linker=no
6321 # This must be Linux ELF.
6322 linux*|k*bsd*-gnu)
6323 version_type=linux
6324 need_lib_prefix=no
6325 need_version=no
6326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6327 soname_spec='${libname}${release}${shared_ext}$major'
6328 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6329 shlibpath_var=LD_LIBRARY_PATH
6330 shlibpath_overrides_runpath=no
6331 # This implies no fast_install, which is unacceptable.
6332 # Some rework will be needed to allow for fast_install
6333 # before this can be enabled.
6334 hardcode_into_libs=yes
6336 # We used to test for /lib/ld.so.1 and disable shared libraries on
6337 # powerpc, because MkLinux only supported shared libraries with the
6338 # GNU dynamic linker. Since this was broken with cross compilers,
6339 # most powerpc-linux boxes support dynamic linking these days and
6340 # people can always --disable-shared, the test was removed, and we
6341 # assume the GNU/Linux dynamic linker is in use.
6342 dynamic_linker='GNU/Linux ld.so'
6345 netbsd*)
6346 version_type=sunos
6347 need_lib_prefix=no
6348 need_version=no
6349 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6351 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6352 dynamic_linker='NetBSD (a.out) ld.so'
6353 else
6354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
6355 soname_spec='${libname}${release}${shared_ext}$major'
6356 dynamic_linker='NetBSD ld.elf_so'
6358 shlibpath_var=LD_LIBRARY_PATH
6359 shlibpath_overrides_runpath=yes
6360 hardcode_into_libs=yes
6363 newsos6)
6364 version_type=linux
6365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6366 shlibpath_var=LD_LIBRARY_PATH
6367 shlibpath_overrides_runpath=yes
6370 nto-qnx)
6371 version_type=linux
6372 need_lib_prefix=no
6373 need_version=no
6374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6375 soname_spec='${libname}${release}${shared_ext}$major'
6376 shlibpath_var=LD_LIBRARY_PATH
6377 shlibpath_overrides_runpath=yes
6380 openbsd*)
6381 version_type=sunos
6382 need_lib_prefix=no
6383 need_version=no
6384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6385 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6386 shlibpath_var=LD_LIBRARY_PATH
6387 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6388 case $host_os in
6389 openbsd2.[89] | openbsd2.[89].*)
6390 shlibpath_overrides_runpath=no
6393 shlibpath_overrides_runpath=yes
6395 esac
6396 else
6397 shlibpath_overrides_runpath=yes
6401 os2*)
6402 libname_spec='$name'
6403 shrext=".dll"
6404 need_lib_prefix=no
6405 library_names_spec='$libname${shared_ext} $libname.a'
6406 dynamic_linker='OS/2 ld.exe'
6407 shlibpath_var=LIBPATH
6410 osf3* | osf4* | osf5*)
6411 version_type=osf
6412 need_lib_prefix=no
6413 need_version=no
6414 soname_spec='${libname}${release}${shared_ext}$major'
6415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6416 shlibpath_var=LD_LIBRARY_PATH
6417 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6418 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6421 sco3.2v5*)
6422 version_type=osf
6423 soname_spec='${libname}${release}${shared_ext}$major'
6424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6425 shlibpath_var=LD_LIBRARY_PATH
6428 solaris*)
6429 version_type=linux
6430 need_lib_prefix=no
6431 need_version=no
6432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6433 soname_spec='${libname}${release}${shared_ext}$major'
6434 shlibpath_var=LD_LIBRARY_PATH
6435 shlibpath_overrides_runpath=yes
6436 hardcode_into_libs=yes
6437 # ldd complains unless libraries are executable
6438 postinstall_cmds='chmod +x $lib'
6441 sunos4*)
6442 version_type=sunos
6443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6444 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6445 shlibpath_var=LD_LIBRARY_PATH
6446 shlibpath_overrides_runpath=yes
6447 if test "$with_gnu_ld" = yes; then
6448 need_lib_prefix=no
6450 need_version=yes
6453 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6454 version_type=linux
6455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6456 soname_spec='${libname}${release}${shared_ext}$major'
6457 shlibpath_var=LD_LIBRARY_PATH
6458 case $host_vendor in
6459 sni)
6460 shlibpath_overrides_runpath=no
6461 need_lib_prefix=no
6462 export_dynamic_flag_spec='${wl}-Blargedynsym'
6463 runpath_var=LD_RUN_PATH
6465 siemens)
6466 need_lib_prefix=no
6468 motorola)
6469 need_lib_prefix=no
6470 need_version=no
6471 shlibpath_overrides_runpath=no
6472 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6474 esac
6477 sysv4*MP*)
6478 if test -d /usr/nec ;then
6479 version_type=linux
6480 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
6481 soname_spec='$libname${shared_ext}.$major'
6482 shlibpath_var=LD_LIBRARY_PATH
6486 uts4*)
6487 version_type=linux
6488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6489 soname_spec='${libname}${release}${shared_ext}$major'
6490 shlibpath_var=LD_LIBRARY_PATH
6494 dynamic_linker=no
6496 esac
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
6498 $as_echo "$dynamic_linker" >&6; }
6499 test "$dynamic_linker" = no && can_build_shared=no
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
6503 $as_echo_n "checking which variable specifies run-time library path... " >&6; }
6504 if test "${libltdl_cv_shlibpath_var+set}" = set; then :
6505 $as_echo_n "(cached) " >&6
6506 else
6507 libltdl_cv_shlibpath_var="$shlibpath_var"
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
6510 $as_echo "$libltdl_cv_shlibpath_var" >&6; }
6511 if test -n "$libltdl_cv_shlibpath_var"; then
6513 cat >>confdefs.h <<_ACEOF
6514 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
6515 _ACEOF
6521 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
6524 # Possibly build libgcj as many sub-libraries.
6525 # Check whether --enable-libgcj-sublibs was given.
6526 if test "${enable_libgcj_sublibs+set}" = set; then :
6527 enableval=$enable_libgcj_sublibs;
6531 if test -z "$enable_libgcj_sublibs"; then
6532 enable_libgcj_sublibs=$enable_libgcj_sublibs_default
6534 if test "$enable_libgcj_sublibs" = yes; then
6535 BUILD_SUBLIBS_TRUE=
6536 BUILD_SUBLIBS_FALSE='#'
6537 else
6538 BUILD_SUBLIBS_TRUE='#'
6539 BUILD_SUBLIBS_FALSE=
6542 if test "$enable_libgcj_sublibs" = yes ; then
6543 # In theory we could make do with only one override and simply
6544 # tag "_bc" onto the end of it when we use it to generate the
6545 # spec, but that's an ugly thing to do when there are multiple
6546 # words in the string and you're relying on the ordering to
6547 # append the correct one.
6548 libgcj_spec_lgcj_override="-lgcj-noncore -lgcj"
6549 libgcj_spec_lgcj_bc_override="-lgcj-noncore -lgcj_bc"
6553 # See if the user has requested runtime debugging.
6554 LIBGCJDEBUG="disable"
6556 # Check whether --enable-libgcj-debug was given.
6557 if test "${enable_libgcj_debug+set}" = set; then :
6558 enableval=$enable_libgcj_debug; if test "$enable_libgcj_debug" = yes; then
6560 $as_echo "#define __GCJ_DEBUG 1" >>confdefs.h
6562 LIBGCJDEBUG="enable"
6568 # Check whether --with-escher was given.
6569 if test "${with_escher+set}" = set; then :
6570 withval=$with_escher;
6573 case "$with_escher" in
6575 use_escher=false
6577 "no")
6578 use_escher=false
6580 "yes")
6581 as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
6584 use_escher=true
6586 esac
6588 # Determine which AWT peer libraries to build
6589 # Check whether --enable-java-awt was given.
6590 if test "${enable_java_awt+set}" = set; then :
6591 enableval=$enable_java_awt;
6595 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6596 use_xlib_awt=""
6597 use_gtk_awt=""
6598 use_qt_awt=""
6599 use_x_awt=""
6600 # The default toolkit to use is the first one specified.
6601 TOOLKIT=
6604 for peer in $peerlibs ; do
6605 case $peer in
6606 xlib)
6607 if test "$no_x" = yes; then
6608 echo "*** xlib peers requested but no X library available" 1>&2
6609 exit 1
6610 else
6611 use_xlib_awt="yes"
6612 if test -z "$TOOLKIT"; then
6613 TOOLKIT=gnu.awt.xlib.XToolkit
6617 gtk)
6618 if test "$no_x" = yes; then
6619 echo "*** gtk peers requested but no X library available" 1>&2
6620 exit 1
6621 else
6622 use_gtk_awt=yes
6623 if test -z "$TOOLKIT"; then
6624 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
6629 if test "$no_x" = yes; then
6630 # Perhaps we should admit the possibility of embedded Qt.
6631 echo "*** Qt peers requested but no X library available" 1>&2
6632 exit 1
6633 else
6634 use_qt_awt=yes
6635 if test -z "$TOOLKIT"; then
6636 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
6641 use_x_awt=yes
6642 if test -z "$TOOLKIT"; then
6643 TOOLKIT=gnu.java.awt.peer.x.XToolkit
6647 use_xlib_awt=
6648 use_gtk_awt=
6649 use_qt_awt=
6650 use_x_awt=
6651 break
6654 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
6655 exit 1
6656 esac
6657 done
6659 if test "$use_xlib_awt" = yes; then
6660 XLIB_AWT_TRUE=
6661 XLIB_AWT_FALSE='#'
6662 else
6663 XLIB_AWT_TRUE='#'
6664 XLIB_AWT_FALSE=
6667 if test "$use_x_awt" = yes; then
6668 X_AWT_TRUE=
6669 X_AWT_FALSE='#'
6670 else
6671 X_AWT_TRUE='#'
6672 X_AWT_FALSE=
6677 cat >>confdefs.h <<_ACEOF
6678 #define AWT_TOOLKIT "$TOOLKIT"
6679 _ACEOF
6682 expanded_prefix=$prefix
6683 if test "X$prefix" = XNONE; then
6684 expanded_prefix=${ac_default_prefix}
6688 cat >>confdefs.h <<_ACEOF
6689 #define LIBGCJ_PREFIX "$expanded_prefix"
6690 _ACEOF
6693 # Create standard.omit based on decisions we just made.
6694 cp $srcdir/standard.omit.in standard.omit
6695 if test "$use_xlib_awt" != yes; then
6696 echo gnu/awt/xlib >> standard.omit
6697 echo gnu/gcj/xlib >> standard.omit
6699 if test "$use_x_awt" != yes; then
6700 echo gnu/java/awt/peer/x >> standard.omit
6703 # Tools that need to be compiled against classpath's tools classes
6704 : > vm-tools-packages
6705 for package in gnu/gcj/tools/gc_analyze ; do
6706 echo $package >> standard.omit
6707 echo $package >> vm-tools-packages
6708 done
6710 if test -z "${with_multisubdir}"; then
6711 builddotdot=.
6712 else
6713 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
6716 NATIVE=yes
6718 # Which gcj and host gcj (for ecjx) do we use?
6719 which_gcj=default
6720 host_exeext=${ac_exeext}
6721 GCJ_FOR_ECJX='$(GCJ)'
6722 GCC_FOR_ECJX='$(CXX)'
6723 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
6724 if test -n "${with_cross_host}"; then
6725 # We are being configured with a cross compiler. We can't
6726 # use ac_exeext, because that is for the target platform.
6727 NATIVE=no
6728 cross_host_exeext=
6729 GCJ_FOR_ECJX="${with_cross_host}-gcj"
6730 GCC_FOR_ECJX="${with_cross_host}-gcc"
6731 case "${with_cross_host}" in
6732 *mingw* | *cygwin*)
6733 cross_host_exeext=.exe
6735 esac
6736 host_exeext=${cross_host_exeext}
6737 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
6738 if test x"$build_noncanonical" = x"$with_cross_host"; then
6739 # Ordinary cross (host!=target and host=build)
6740 which_gcj=built
6741 else
6742 # Canadian cross (host!=target and host!=build)
6743 which_gcj=cross
6745 else
6746 which_gcj=cross
6748 else
6749 # We are being configured with a native or crossed-native compiler
6750 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
6751 if test x"$build" = x"$host"; then
6752 # True native build (host=target and host=build)
6753 which_gcj=built
6754 else
6755 # Crossed-native build (host=target and host!=build)
6756 which_gcj=cross
6758 else
6759 which_gcj=path
6762 libgcjdir=`${PWDCMD-pwd}`
6763 case $GCJ in
6764 *" -B"*)
6765 # Just in case there is a comma in the build dir, quote it for the
6766 # sed command below.
6767 case $libgcjdir in
6768 *[,\\]*) qlibgcjdir=`echo "$libgcjdir" | sed 's:[,\\]:\\&:g'`;;
6769 *) qlibgcjdir=$libgcjdir;;
6770 esac
6771 GCJ=`echo "$GCJ" | sed "s, -B, -B$qlibgcjdir/&,"`
6774 GCJ=$GCJ" -B$libgcjdir/"
6776 esac
6777 case "${which_gcj}" in
6778 built)
6779 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
6781 cross)
6782 if test "x${with_newlib}" = "xyes"; then
6783 # FIXME (comment): Why is this needed?
6784 LIBGCC_UNWIND_INCLUDE=
6786 GCJH='$(target_noncanonical)-gcjh'
6788 path)
6789 GCJH=gcjh
6791 esac
6792 JAVAC="$GCJ -C"
6793 export JAVAC
6800 # Create it, so that compile/link tests don't fail
6801 test -f libgcj.spec || touch libgcj.spec
6805 # Set up to configure Classpath.
6806 # FIXME: no supported way to pass args in autoconf.
6807 # Disable tool wrappers to avoid ltdl.h configure check.
6808 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
6809 ac_configure_args="$ac_configure_args --disable-load-library"
6810 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
6811 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
6812 dir1=`cd $srcdir && pwd`
6813 dir2=`pwd`
6814 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
6815 ac_configure_args="$ac_configure_args --disable-core-jni"
6816 ac_configure_args="$ac_configure_args --disable-examples"
6817 ac_configure_args="$ac_configure_args --with-glibj=build"
6818 if test "$browser_plugin_enabled" != yes; then
6819 ac_configure_args="$ac_configure_args --disable-plugin"
6820 else
6821 ac_configure_args="$ac_configure_args --enable-plugin"
6823 if test "$gconf_enabled" != yes; then
6824 ac_configure_args="$ac_configure_args --disable-gconf-peer"
6825 ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
6827 if test "$use_gtk_awt" != yes; then
6828 ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
6830 if test "$use_qt_awt" != yes; then
6831 ac_configure_args="$ac_configure_args --disable-qt-peer"
6832 else
6833 # We need this as qt is disabled by default in classpath.
6834 ac_configure_args="$ac_configure_args --enable-qt-peer"
6836 if test "$use_x_awt" != yes; then
6837 ac_configure_args="$ac_configure_args --without-escher"
6838 else
6839 # We need this as escher is disabled by default in classpath.
6840 if test "$use_escher" != true; then
6841 as_fn_error "Please supply an absolute path to the Escher library" "$LINENO" 5
6842 else
6843 ac_configure_args="$ac_configure_args --with-escher=$with_escher"
6846 if test "x$BUILD_GJDOC" = xno; then
6847 ac_configure_args="$ac_configure_args --disable-gjdoc"
6849 # -Werror causes unavoidable problems in code using alsa.
6850 ac_configure_args="$ac_configure_args --disable-regen-headers"
6851 ac_configure_args="$ac_configure_args --disable-Werror"
6853 # Only use libltdl for non-newlib builds.
6854 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
6855 case $enable_ltdl_convenience in
6856 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
6857 "") enable_ltdl_convenience=yes
6858 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
6859 esac
6860 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
6861 LTDLINCL='-I${top_srcdir}/''libltdl'
6862 # For backwards non-gettext consistent compatibility...
6863 INCLTDL="$LTDLINCL"
6865 enable_dlopen=yes
6869 DIRLTDL=libltdl
6871 $as_echo "#define USE_LTDL 1" >>confdefs.h
6873 # Sigh. Libtool's macro doesn't do the right thing.
6874 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
6875 # FIXME: this is a hack.
6876 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
6877 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
6882 case `pwd` in
6883 *\ * | *\ *)
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6885 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6886 esac
6890 macro_version='2.2.7a'
6891 macro_revision='1.3134'
6905 ltmain="$ac_aux_dir/ltmain.sh"
6907 # Backslashify metacharacters that are still active within
6908 # double-quoted strings.
6909 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6911 # Same as above, but do not quote variable references.
6912 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6914 # Sed substitution to delay expansion of an escaped shell variable in a
6915 # double_quote_subst'ed string.
6916 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6918 # Sed substitution to delay expansion of an escaped single quote.
6919 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6921 # Sed substitution to avoid accidental globbing in evaled expressions
6922 no_glob_subst='s/\*/\\\*/g'
6924 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6925 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6926 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6929 $as_echo_n "checking how to print strings... " >&6; }
6930 # Test print first, because it will be a builtin if present.
6931 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6932 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6933 ECHO='print -r --'
6934 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6935 ECHO='printf %s\n'
6936 else
6937 # Use this function as a fallback that always works.
6938 func_fallback_echo ()
6940 eval 'cat <<_LTECHO_EOF
6942 _LTECHO_EOF'
6944 ECHO='func_fallback_echo'
6947 # func_echo_all arg...
6948 # Invoke $ECHO with all args, space-separated.
6949 func_echo_all ()
6951 $ECHO ""
6954 case "$ECHO" in
6955 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6956 $as_echo "printf" >&6; } ;;
6957 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6958 $as_echo "print -r" >&6; } ;;
6959 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6960 $as_echo "cat" >&6; } ;;
6961 esac
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6977 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6978 if test "${ac_cv_path_SED+set}" = set; then :
6979 $as_echo_n "(cached) " >&6
6980 else
6981 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6982 for ac_i in 1 2 3 4 5 6 7; do
6983 ac_script="$ac_script$as_nl$ac_script"
6984 done
6985 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6986 { ac_script=; unset ac_script;}
6987 if test -z "$SED"; then
6988 ac_path_SED_found=false
6989 # Loop through the user's path and test for each of PROGNAME-LIST
6990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991 for as_dir in $PATH
6993 IFS=$as_save_IFS
6994 test -z "$as_dir" && as_dir=.
6995 for ac_prog in sed gsed; do
6996 for ac_exec_ext in '' $ac_executable_extensions; do
6997 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6998 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6999 # Check for GNU ac_path_SED and select it if it is found.
7000 # Check for GNU $ac_path_SED
7001 case `"$ac_path_SED" --version 2>&1` in
7002 *GNU*)
7003 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7005 ac_count=0
7006 $as_echo_n 0123456789 >"conftest.in"
7007 while :
7009 cat "conftest.in" "conftest.in" >"conftest.tmp"
7010 mv "conftest.tmp" "conftest.in"
7011 cp "conftest.in" "conftest.nl"
7012 $as_echo '' >> "conftest.nl"
7013 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7014 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7015 as_fn_arith $ac_count + 1 && ac_count=$as_val
7016 if test $ac_count -gt ${ac_path_SED_max-0}; then
7017 # Best one so far, save it but keep looking for a better one
7018 ac_cv_path_SED="$ac_path_SED"
7019 ac_path_SED_max=$ac_count
7021 # 10*(2^10) chars as input seems more than enough
7022 test $ac_count -gt 10 && break
7023 done
7024 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7025 esac
7027 $ac_path_SED_found && break 3
7028 done
7029 done
7030 done
7031 IFS=$as_save_IFS
7032 if test -z "$ac_cv_path_SED"; then
7033 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7035 else
7036 ac_cv_path_SED=$SED
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7041 $as_echo "$ac_cv_path_SED" >&6; }
7042 SED="$ac_cv_path_SED"
7043 rm -f conftest.sed
7045 test -z "$SED" && SED=sed
7046 Xsed="$SED -e 1s/^X//"
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7059 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7060 if test "${ac_cv_path_GREP+set}" = set; then :
7061 $as_echo_n "(cached) " >&6
7062 else
7063 if test -z "$GREP"; then
7064 ac_path_GREP_found=false
7065 # Loop through the user's path and test for each of PROGNAME-LIST
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7067 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7069 IFS=$as_save_IFS
7070 test -z "$as_dir" && as_dir=.
7071 for ac_prog in grep ggrep; do
7072 for ac_exec_ext in '' $ac_executable_extensions; do
7073 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7074 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7075 # Check for GNU ac_path_GREP and select it if it is found.
7076 # Check for GNU $ac_path_GREP
7077 case `"$ac_path_GREP" --version 2>&1` in
7078 *GNU*)
7079 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7081 ac_count=0
7082 $as_echo_n 0123456789 >"conftest.in"
7083 while :
7085 cat "conftest.in" "conftest.in" >"conftest.tmp"
7086 mv "conftest.tmp" "conftest.in"
7087 cp "conftest.in" "conftest.nl"
7088 $as_echo 'GREP' >> "conftest.nl"
7089 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7090 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7091 as_fn_arith $ac_count + 1 && ac_count=$as_val
7092 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7093 # Best one so far, save it but keep looking for a better one
7094 ac_cv_path_GREP="$ac_path_GREP"
7095 ac_path_GREP_max=$ac_count
7097 # 10*(2^10) chars as input seems more than enough
7098 test $ac_count -gt 10 && break
7099 done
7100 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7101 esac
7103 $ac_path_GREP_found && break 3
7104 done
7105 done
7106 done
7107 IFS=$as_save_IFS
7108 if test -z "$ac_cv_path_GREP"; then
7109 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7111 else
7112 ac_cv_path_GREP=$GREP
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7117 $as_echo "$ac_cv_path_GREP" >&6; }
7118 GREP="$ac_cv_path_GREP"
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7122 $as_echo_n "checking for egrep... " >&6; }
7123 if test "${ac_cv_path_EGREP+set}" = set; then :
7124 $as_echo_n "(cached) " >&6
7125 else
7126 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7127 then ac_cv_path_EGREP="$GREP -E"
7128 else
7129 if test -z "$EGREP"; then
7130 ac_path_EGREP_found=false
7131 # Loop through the user's path and test for each of PROGNAME-LIST
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7135 IFS=$as_save_IFS
7136 test -z "$as_dir" && as_dir=.
7137 for ac_prog in egrep; do
7138 for ac_exec_ext in '' $ac_executable_extensions; do
7139 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7140 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7141 # Check for GNU ac_path_EGREP and select it if it is found.
7142 # Check for GNU $ac_path_EGREP
7143 case `"$ac_path_EGREP" --version 2>&1` in
7144 *GNU*)
7145 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7147 ac_count=0
7148 $as_echo_n 0123456789 >"conftest.in"
7149 while :
7151 cat "conftest.in" "conftest.in" >"conftest.tmp"
7152 mv "conftest.tmp" "conftest.in"
7153 cp "conftest.in" "conftest.nl"
7154 $as_echo 'EGREP' >> "conftest.nl"
7155 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7156 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7157 as_fn_arith $ac_count + 1 && ac_count=$as_val
7158 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7159 # Best one so far, save it but keep looking for a better one
7160 ac_cv_path_EGREP="$ac_path_EGREP"
7161 ac_path_EGREP_max=$ac_count
7163 # 10*(2^10) chars as input seems more than enough
7164 test $ac_count -gt 10 && break
7165 done
7166 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7167 esac
7169 $ac_path_EGREP_found && break 3
7170 done
7171 done
7172 done
7173 IFS=$as_save_IFS
7174 if test -z "$ac_cv_path_EGREP"; then
7175 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7177 else
7178 ac_cv_path_EGREP=$EGREP
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7184 $as_echo "$ac_cv_path_EGREP" >&6; }
7185 EGREP="$ac_cv_path_EGREP"
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7189 $as_echo_n "checking for fgrep... " >&6; }
7190 if test "${ac_cv_path_FGREP+set}" = set; then :
7191 $as_echo_n "(cached) " >&6
7192 else
7193 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7194 then ac_cv_path_FGREP="$GREP -F"
7195 else
7196 if test -z "$FGREP"; then
7197 ac_path_FGREP_found=false
7198 # Loop through the user's path and test for each of PROGNAME-LIST
7199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7202 IFS=$as_save_IFS
7203 test -z "$as_dir" && as_dir=.
7204 for ac_prog in fgrep; do
7205 for ac_exec_ext in '' $ac_executable_extensions; do
7206 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7207 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7208 # Check for GNU ac_path_FGREP and select it if it is found.
7209 # Check for GNU $ac_path_FGREP
7210 case `"$ac_path_FGREP" --version 2>&1` in
7211 *GNU*)
7212 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7214 ac_count=0
7215 $as_echo_n 0123456789 >"conftest.in"
7216 while :
7218 cat "conftest.in" "conftest.in" >"conftest.tmp"
7219 mv "conftest.tmp" "conftest.in"
7220 cp "conftest.in" "conftest.nl"
7221 $as_echo 'FGREP' >> "conftest.nl"
7222 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7223 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7224 as_fn_arith $ac_count + 1 && ac_count=$as_val
7225 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7226 # Best one so far, save it but keep looking for a better one
7227 ac_cv_path_FGREP="$ac_path_FGREP"
7228 ac_path_FGREP_max=$ac_count
7230 # 10*(2^10) chars as input seems more than enough
7231 test $ac_count -gt 10 && break
7232 done
7233 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7234 esac
7236 $ac_path_FGREP_found && break 3
7237 done
7238 done
7239 done
7240 IFS=$as_save_IFS
7241 if test -z "$ac_cv_path_FGREP"; then
7242 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7244 else
7245 ac_cv_path_FGREP=$FGREP
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7251 $as_echo "$ac_cv_path_FGREP" >&6; }
7252 FGREP="$ac_cv_path_FGREP"
7255 test -z "$GREP" && GREP=grep
7275 # Check whether --with-gnu-ld was given.
7276 if test "${with_gnu_ld+set}" = set; then :
7277 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7278 else
7279 with_gnu_ld=no
7282 ac_prog=ld
7283 if test "$GCC" = yes; then
7284 # Check if gcc -print-prog-name=ld gives a path.
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7286 $as_echo_n "checking for ld used by $CC... " >&6; }
7287 case $host in
7288 *-*-mingw*)
7289 # gcc leaves a trailing carriage return which upsets mingw
7290 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7292 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7293 esac
7294 case $ac_prog in
7295 # Accept absolute paths.
7296 [\\/]* | ?:[\\/]*)
7297 re_direlt='/[^/][^/]*/\.\./'
7298 # Canonicalize the pathname of ld
7299 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7300 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7301 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7302 done
7303 test -z "$LD" && LD="$ac_prog"
7306 # If it fails, then pretend we aren't using GCC.
7307 ac_prog=ld
7310 # If it is relative, then search for the first ld in PATH.
7311 with_gnu_ld=unknown
7313 esac
7314 elif test "$with_gnu_ld" = yes; then
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7316 $as_echo_n "checking for GNU ld... " >&6; }
7317 else
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7319 $as_echo_n "checking for non-GNU ld... " >&6; }
7321 if test "${lt_cv_path_LD+set}" = set; then :
7322 $as_echo_n "(cached) " >&6
7323 else
7324 if test -z "$LD"; then
7325 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7326 for ac_dir in $PATH; do
7327 IFS="$lt_save_ifs"
7328 test -z "$ac_dir" && ac_dir=.
7329 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7330 lt_cv_path_LD="$ac_dir/$ac_prog"
7331 # Check to see if the program is GNU ld. I'd rather use --version,
7332 # but apparently some variants of GNU ld only accept -v.
7333 # Break only if it was the GNU/non-GNU ld that we prefer.
7334 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7335 *GNU* | *'with BFD'*)
7336 test "$with_gnu_ld" != no && break
7339 test "$with_gnu_ld" != yes && break
7341 esac
7343 done
7344 IFS="$lt_save_ifs"
7345 else
7346 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7350 LD="$lt_cv_path_LD"
7351 if test -n "$LD"; then
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7353 $as_echo "$LD" >&6; }
7354 else
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7356 $as_echo "no" >&6; }
7358 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7360 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7361 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7362 $as_echo_n "(cached) " >&6
7363 else
7364 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7365 case `$LD -v 2>&1 </dev/null` in
7366 *GNU* | *'with BFD'*)
7367 lt_cv_prog_gnu_ld=yes
7370 lt_cv_prog_gnu_ld=no
7372 esac
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7375 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7376 with_gnu_ld=$lt_cv_prog_gnu_ld
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7387 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7388 if test "${lt_cv_path_NM+set}" = set; then :
7389 $as_echo_n "(cached) " >&6
7390 else
7391 if test -n "$NM"; then
7392 # Let the user override the test.
7393 lt_cv_path_NM="$NM"
7394 else
7395 lt_nm_to_check="${ac_tool_prefix}nm"
7396 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7397 lt_nm_to_check="$lt_nm_to_check nm"
7399 for lt_tmp_nm in $lt_nm_to_check; do
7400 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7401 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7402 IFS="$lt_save_ifs"
7403 test -z "$ac_dir" && ac_dir=.
7404 tmp_nm="$ac_dir/$lt_tmp_nm"
7405 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7406 # Check to see if the nm accepts a BSD-compat flag.
7407 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7408 # nm: unknown option "B" ignored
7409 # Tru64's nm complains that /dev/null is an invalid object file
7410 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7411 */dev/null* | *'Invalid file or object type'*)
7412 lt_cv_path_NM="$tmp_nm -B"
7413 break
7416 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7417 */dev/null*)
7418 lt_cv_path_NM="$tmp_nm -p"
7419 break
7422 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7423 continue # so that we can try to find one that supports BSD flags
7425 esac
7427 esac
7429 done
7430 IFS="$lt_save_ifs"
7431 done
7432 : ${lt_cv_path_NM=no}
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7436 $as_echo "$lt_cv_path_NM" >&6; }
7437 if test "$lt_cv_path_NM" != "no"; then
7438 NM="$lt_cv_path_NM"
7439 else
7440 # Didn't find any BSD compatible name lister, look for dumpbin.
7441 if test -n "$DUMPBIN"; then :
7442 # Let the user override the test.
7443 else
7444 if test -n "$ac_tool_prefix"; then
7445 for ac_prog in dumpbin "link -dump"
7447 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7448 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7450 $as_echo_n "checking for $ac_word... " >&6; }
7451 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7452 $as_echo_n "(cached) " >&6
7453 else
7454 if test -n "$DUMPBIN"; then
7455 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7456 else
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458 for as_dir in $PATH
7460 IFS=$as_save_IFS
7461 test -z "$as_dir" && as_dir=.
7462 for ac_exec_ext in '' $ac_executable_extensions; do
7463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7464 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7466 break 2
7468 done
7469 done
7470 IFS=$as_save_IFS
7474 DUMPBIN=$ac_cv_prog_DUMPBIN
7475 if test -n "$DUMPBIN"; then
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7477 $as_echo "$DUMPBIN" >&6; }
7478 else
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7480 $as_echo "no" >&6; }
7484 test -n "$DUMPBIN" && break
7485 done
7487 if test -z "$DUMPBIN"; then
7488 ac_ct_DUMPBIN=$DUMPBIN
7489 for ac_prog in dumpbin "link -dump"
7491 # Extract the first word of "$ac_prog", so it can be a program name with args.
7492 set dummy $ac_prog; ac_word=$2
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7494 $as_echo_n "checking for $ac_word... " >&6; }
7495 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7496 $as_echo_n "(cached) " >&6
7497 else
7498 if test -n "$ac_ct_DUMPBIN"; then
7499 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7500 else
7501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502 for as_dir in $PATH
7504 IFS=$as_save_IFS
7505 test -z "$as_dir" && as_dir=.
7506 for ac_exec_ext in '' $ac_executable_extensions; do
7507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7508 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7510 break 2
7512 done
7513 done
7514 IFS=$as_save_IFS
7518 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7519 if test -n "$ac_ct_DUMPBIN"; then
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7521 $as_echo "$ac_ct_DUMPBIN" >&6; }
7522 else
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7524 $as_echo "no" >&6; }
7528 test -n "$ac_ct_DUMPBIN" && break
7529 done
7531 if test "x$ac_ct_DUMPBIN" = x; then
7532 DUMPBIN=":"
7533 else
7534 case $cross_compiling:$ac_tool_warned in
7535 yes:)
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7538 ac_tool_warned=yes ;;
7539 esac
7540 DUMPBIN=$ac_ct_DUMPBIN
7544 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7545 *COFF*)
7546 DUMPBIN="$DUMPBIN -symbols"
7549 DUMPBIN=:
7551 esac
7554 if test "$DUMPBIN" != ":"; then
7555 NM="$DUMPBIN"
7558 test -z "$NM" && NM=nm
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7566 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7567 if test "${lt_cv_nm_interface+set}" = set; then :
7568 $as_echo_n "(cached) " >&6
7569 else
7570 lt_cv_nm_interface="BSD nm"
7571 echo "int some_variable = 0;" > conftest.$ac_ext
7572 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7573 (eval "$ac_compile" 2>conftest.err)
7574 cat conftest.err >&5
7575 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7576 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7577 cat conftest.err >&5
7578 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7579 cat conftest.out >&5
7580 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7581 lt_cv_nm_interface="MS dumpbin"
7583 rm -f conftest*
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7586 $as_echo "$lt_cv_nm_interface" >&6; }
7588 # find the maximum length of command line arguments
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7590 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7591 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7592 $as_echo_n "(cached) " >&6
7593 else
7595 teststring="ABCD"
7597 case $build_os in
7598 msdosdjgpp*)
7599 # On DJGPP, this test can blow up pretty badly due to problems in libc
7600 # (any single argument exceeding 2000 bytes causes a buffer overrun
7601 # during glob expansion). Even if it were fixed, the result of this
7602 # check would be larger than it should be.
7603 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7606 gnu*)
7607 # Under GNU Hurd, this test is not required because there is
7608 # no limit to the length of command line arguments.
7609 # Libtool will interpret -1 as no limit whatsoever
7610 lt_cv_sys_max_cmd_len=-1;
7613 cygwin* | mingw* | cegcc*)
7614 # On Win9x/ME, this test blows up -- it succeeds, but takes
7615 # about 5 minutes as the teststring grows exponentially.
7616 # Worse, since 9x/ME are not pre-emptively multitasking,
7617 # you end up with a "frozen" computer, even though with patience
7618 # the test eventually succeeds (with a max line length of 256k).
7619 # Instead, let's just punt: use the minimum linelength reported by
7620 # all of the supported platforms: 8192 (on NT/2K/XP).
7621 lt_cv_sys_max_cmd_len=8192;
7624 mint*)
7625 # On MiNT this can take a long time and run out of memory.
7626 lt_cv_sys_max_cmd_len=8192;
7629 amigaos*)
7630 # On AmigaOS with pdksh, this test takes hours, literally.
7631 # So we just punt and use a minimum line length of 8192.
7632 lt_cv_sys_max_cmd_len=8192;
7635 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7636 # This has been around since 386BSD, at least. Likely further.
7637 if test -x /sbin/sysctl; then
7638 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7639 elif test -x /usr/sbin/sysctl; then
7640 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7641 else
7642 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7644 # And add a safety zone
7645 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7646 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7649 interix*)
7650 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7651 lt_cv_sys_max_cmd_len=196608
7654 osf*)
7655 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7656 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7657 # nice to cause kernel panics so lets avoid the loop below.
7658 # First set a reasonable default.
7659 lt_cv_sys_max_cmd_len=16384
7661 if test -x /sbin/sysconfig; then
7662 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7663 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7664 esac
7667 sco3.2v5*)
7668 lt_cv_sys_max_cmd_len=102400
7670 sysv5* | sco5v6* | sysv4.2uw2*)
7671 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7672 if test -n "$kargmax"; then
7673 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7674 else
7675 lt_cv_sys_max_cmd_len=32768
7679 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7680 if test -n "$lt_cv_sys_max_cmd_len"; then
7681 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7682 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7683 else
7684 # Make teststring a little bigger before we do anything with it.
7685 # a 1K string should be a reasonable start.
7686 for i in 1 2 3 4 5 6 7 8 ; do
7687 teststring=$teststring$teststring
7688 done
7689 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7690 # If test is not a shell built-in, we'll probably end up computing a
7691 # maximum length that is only half of the actual maximum length, but
7692 # we can't tell.
7693 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7694 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7695 test $i != 17 # 1/2 MB should be enough
7697 i=`expr $i + 1`
7698 teststring=$teststring$teststring
7699 done
7700 # Only check the string length outside the loop.
7701 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7702 teststring=
7703 # Add a significant safety factor because C++ compilers can tack on
7704 # massive amounts of additional arguments before passing them to the
7705 # linker. It appears as though 1/2 is a usable value.
7706 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7709 esac
7713 if test -n $lt_cv_sys_max_cmd_len ; then
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7715 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7716 else
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7718 $as_echo "none" >&6; }
7720 max_cmd_len=$lt_cv_sys_max_cmd_len
7727 : ${CP="cp -f"}
7728 : ${MV="mv -f"}
7729 : ${RM="rm -f"}
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7732 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7733 # Try some XSI features
7734 xsi_shell=no
7735 ( _lt_dummy="a/b/c"
7736 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7737 = c,a/b,, \
7738 && eval 'test $(( 1 + 1 )) -eq 2 \
7739 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7740 && xsi_shell=yes
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7742 $as_echo "$xsi_shell" >&6; }
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7746 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7747 lt_shell_append=no
7748 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7749 >/dev/null 2>&1 \
7750 && lt_shell_append=yes
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7752 $as_echo "$lt_shell_append" >&6; }
7755 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7756 lt_unset=unset
7757 else
7758 lt_unset=false
7765 # test EBCDIC or ASCII
7766 case `echo X|tr X '\101'` in
7767 A) # ASCII based system
7768 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7769 lt_SP2NL='tr \040 \012'
7770 lt_NL2SP='tr \015\012 \040\040'
7772 *) # EBCDIC based system
7773 lt_SP2NL='tr \100 \n'
7774 lt_NL2SP='tr \r\n \100\100'
7776 esac
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7787 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7788 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7789 $as_echo_n "(cached) " >&6
7790 else
7791 lt_cv_ld_reload_flag='-r'
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7794 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7795 reload_flag=$lt_cv_ld_reload_flag
7796 case $reload_flag in
7797 "" | " "*) ;;
7798 *) reload_flag=" $reload_flag" ;;
7799 esac
7800 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7801 case $host_os in
7802 darwin*)
7803 if test "$GCC" = yes; then
7804 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7805 else
7806 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7809 esac
7819 if test -n "$ac_tool_prefix"; then
7820 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7821 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7823 $as_echo_n "checking for $ac_word... " >&6; }
7824 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7825 $as_echo_n "(cached) " >&6
7826 else
7827 if test -n "$OBJDUMP"; then
7828 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7829 else
7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831 for as_dir in $PATH
7833 IFS=$as_save_IFS
7834 test -z "$as_dir" && as_dir=.
7835 for ac_exec_ext in '' $ac_executable_extensions; do
7836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7837 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7839 break 2
7841 done
7842 done
7843 IFS=$as_save_IFS
7847 OBJDUMP=$ac_cv_prog_OBJDUMP
7848 if test -n "$OBJDUMP"; then
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7850 $as_echo "$OBJDUMP" >&6; }
7851 else
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853 $as_echo "no" >&6; }
7858 if test -z "$ac_cv_prog_OBJDUMP"; then
7859 ac_ct_OBJDUMP=$OBJDUMP
7860 # Extract the first word of "objdump", so it can be a program name with args.
7861 set dummy objdump; ac_word=$2
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7863 $as_echo_n "checking for $ac_word... " >&6; }
7864 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7865 $as_echo_n "(cached) " >&6
7866 else
7867 if test -n "$ac_ct_OBJDUMP"; then
7868 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7869 else
7870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871 for as_dir in $PATH
7873 IFS=$as_save_IFS
7874 test -z "$as_dir" && as_dir=.
7875 for ac_exec_ext in '' $ac_executable_extensions; do
7876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7877 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7879 break 2
7881 done
7882 done
7883 IFS=$as_save_IFS
7887 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7888 if test -n "$ac_ct_OBJDUMP"; then
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7890 $as_echo "$ac_ct_OBJDUMP" >&6; }
7891 else
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7893 $as_echo "no" >&6; }
7896 if test "x$ac_ct_OBJDUMP" = x; then
7897 OBJDUMP="false"
7898 else
7899 case $cross_compiling:$ac_tool_warned in
7900 yes:)
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7903 ac_tool_warned=yes ;;
7904 esac
7905 OBJDUMP=$ac_ct_OBJDUMP
7907 else
7908 OBJDUMP="$ac_cv_prog_OBJDUMP"
7911 test -z "$OBJDUMP" && OBJDUMP=objdump
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7922 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7923 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7924 $as_echo_n "(cached) " >&6
7925 else
7926 lt_cv_file_magic_cmd='$MAGIC_CMD'
7927 lt_cv_file_magic_test_file=
7928 lt_cv_deplibs_check_method='unknown'
7929 # Need to set the preceding variable on all platforms that support
7930 # interlibrary dependencies.
7931 # 'none' -- dependencies not supported.
7932 # `unknown' -- same as none, but documents that we really don't know.
7933 # 'pass_all' -- all dependencies passed with no checks.
7934 # 'test_compile' -- check by making test program.
7935 # 'file_magic [[regex]]' -- check by looking for files in library path
7936 # which responds to the $file_magic_cmd with a given extended regex.
7937 # If you have `file' or equivalent on your system and you're not sure
7938 # whether `pass_all' will *always* work, you probably want this one.
7940 case $host_os in
7941 aix[4-9]*)
7942 lt_cv_deplibs_check_method=pass_all
7945 beos*)
7946 lt_cv_deplibs_check_method=pass_all
7949 bsdi[45]*)
7950 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7951 lt_cv_file_magic_cmd='/usr/bin/file -L'
7952 lt_cv_file_magic_test_file=/shlib/libc.so
7955 cygwin*)
7956 # func_win32_libid is a shell function defined in ltmain.sh
7957 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7958 lt_cv_file_magic_cmd='func_win32_libid'
7961 mingw* | pw32*)
7962 # Base MSYS/MinGW do not provide the 'file' command needed by
7963 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7964 # unless we find 'file', for example because we are cross-compiling.
7965 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7966 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7967 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7968 lt_cv_file_magic_cmd='func_win32_libid'
7969 else
7970 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7971 lt_cv_file_magic_cmd='$OBJDUMP -f'
7975 cegcc*)
7976 # use the weaker test based on 'objdump'. See mingw*.
7977 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7978 lt_cv_file_magic_cmd='$OBJDUMP -f'
7981 darwin* | rhapsody*)
7982 lt_cv_deplibs_check_method=pass_all
7985 freebsd* | dragonfly*)
7986 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7987 case $host_cpu in
7988 i*86 )
7989 # Not sure whether the presence of OpenBSD here was a mistake.
7990 # Let's accept both of them until this is cleared up.
7991 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7992 lt_cv_file_magic_cmd=/usr/bin/file
7993 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7995 esac
7996 else
7997 lt_cv_deplibs_check_method=pass_all
8001 gnu*)
8002 lt_cv_deplibs_check_method=pass_all
8005 haiku*)
8006 lt_cv_deplibs_check_method=pass_all
8009 hpux10.20* | hpux11*)
8010 lt_cv_file_magic_cmd=/usr/bin/file
8011 case $host_cpu in
8012 ia64*)
8013 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8014 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8016 hppa*64*)
8017 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]'
8018 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8021 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8022 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8024 esac
8027 interix[3-9]*)
8028 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8029 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8032 irix5* | irix6* | nonstopux*)
8033 case $LD in
8034 *-32|*"-32 ") libmagic=32-bit;;
8035 *-n32|*"-n32 ") libmagic=N32;;
8036 *-64|*"-64 ") libmagic=64-bit;;
8037 *) libmagic=never-match;;
8038 esac
8039 lt_cv_deplibs_check_method=pass_all
8042 # This must be Linux ELF.
8043 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8044 lt_cv_deplibs_check_method=pass_all
8047 netbsd*)
8048 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8049 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8050 else
8051 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8055 newos6*)
8056 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8057 lt_cv_file_magic_cmd=/usr/bin/file
8058 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8061 *nto* | *qnx*)
8062 lt_cv_deplibs_check_method=pass_all
8065 openbsd*)
8066 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8067 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8068 else
8069 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8073 osf3* | osf4* | osf5*)
8074 lt_cv_deplibs_check_method=pass_all
8077 rdos*)
8078 lt_cv_deplibs_check_method=pass_all
8081 solaris*)
8082 lt_cv_deplibs_check_method=pass_all
8085 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8086 lt_cv_deplibs_check_method=pass_all
8089 sysv4 | sysv4.3*)
8090 case $host_vendor in
8091 motorola)
8092 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]'
8093 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8095 ncr)
8096 lt_cv_deplibs_check_method=pass_all
8098 sequent)
8099 lt_cv_file_magic_cmd='/bin/file'
8100 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8102 sni)
8103 lt_cv_file_magic_cmd='/bin/file'
8104 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8105 lt_cv_file_magic_test_file=/lib/libc.so
8107 siemens)
8108 lt_cv_deplibs_check_method=pass_all
8111 lt_cv_deplibs_check_method=pass_all
8113 esac
8116 tpf*)
8117 lt_cv_deplibs_check_method=pass_all
8119 esac
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8123 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8124 file_magic_cmd=$lt_cv_file_magic_cmd
8125 deplibs_check_method=$lt_cv_deplibs_check_method
8126 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8139 if test -n "$ac_tool_prefix"; then
8140 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8141 set dummy ${ac_tool_prefix}ar; ac_word=$2
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8143 $as_echo_n "checking for $ac_word... " >&6; }
8144 if test "${ac_cv_prog_AR+set}" = set; then :
8145 $as_echo_n "(cached) " >&6
8146 else
8147 if test -n "$AR"; then
8148 ac_cv_prog_AR="$AR" # Let the user override the test.
8149 else
8150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8151 for as_dir in $PATH
8153 IFS=$as_save_IFS
8154 test -z "$as_dir" && as_dir=.
8155 for ac_exec_ext in '' $ac_executable_extensions; do
8156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8157 ac_cv_prog_AR="${ac_tool_prefix}ar"
8158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8159 break 2
8161 done
8162 done
8163 IFS=$as_save_IFS
8167 AR=$ac_cv_prog_AR
8168 if test -n "$AR"; then
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8170 $as_echo "$AR" >&6; }
8171 else
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8173 $as_echo "no" >&6; }
8178 if test -z "$ac_cv_prog_AR"; then
8179 ac_ct_AR=$AR
8180 # Extract the first word of "ar", so it can be a program name with args.
8181 set dummy ar; ac_word=$2
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8183 $as_echo_n "checking for $ac_word... " >&6; }
8184 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8185 $as_echo_n "(cached) " >&6
8186 else
8187 if test -n "$ac_ct_AR"; then
8188 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8189 else
8190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8191 for as_dir in $PATH
8193 IFS=$as_save_IFS
8194 test -z "$as_dir" && as_dir=.
8195 for ac_exec_ext in '' $ac_executable_extensions; do
8196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8197 ac_cv_prog_ac_ct_AR="ar"
8198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8199 break 2
8201 done
8202 done
8203 IFS=$as_save_IFS
8207 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8208 if test -n "$ac_ct_AR"; then
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8210 $as_echo "$ac_ct_AR" >&6; }
8211 else
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8213 $as_echo "no" >&6; }
8216 if test "x$ac_ct_AR" = x; then
8217 AR="false"
8218 else
8219 case $cross_compiling:$ac_tool_warned in
8220 yes:)
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8223 ac_tool_warned=yes ;;
8224 esac
8225 AR=$ac_ct_AR
8227 else
8228 AR="$ac_cv_prog_AR"
8231 test -z "$AR" && AR=ar
8232 test -z "$AR_FLAGS" && AR_FLAGS=cru
8244 if test -n "$ac_tool_prefix"; then
8245 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8246 set dummy ${ac_tool_prefix}strip; ac_word=$2
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8248 $as_echo_n "checking for $ac_word... " >&6; }
8249 if test "${ac_cv_prog_STRIP+set}" = set; then :
8250 $as_echo_n "(cached) " >&6
8251 else
8252 if test -n "$STRIP"; then
8253 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8254 else
8255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8256 for as_dir in $PATH
8258 IFS=$as_save_IFS
8259 test -z "$as_dir" && as_dir=.
8260 for ac_exec_ext in '' $ac_executable_extensions; do
8261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8262 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8264 break 2
8266 done
8267 done
8268 IFS=$as_save_IFS
8272 STRIP=$ac_cv_prog_STRIP
8273 if test -n "$STRIP"; then
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8275 $as_echo "$STRIP" >&6; }
8276 else
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8278 $as_echo "no" >&6; }
8283 if test -z "$ac_cv_prog_STRIP"; then
8284 ac_ct_STRIP=$STRIP
8285 # Extract the first word of "strip", so it can be a program name with args.
8286 set dummy strip; ac_word=$2
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8288 $as_echo_n "checking for $ac_word... " >&6; }
8289 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8290 $as_echo_n "(cached) " >&6
8291 else
8292 if test -n "$ac_ct_STRIP"; then
8293 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8294 else
8295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8296 for as_dir in $PATH
8298 IFS=$as_save_IFS
8299 test -z "$as_dir" && as_dir=.
8300 for ac_exec_ext in '' $ac_executable_extensions; do
8301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8302 ac_cv_prog_ac_ct_STRIP="strip"
8303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8304 break 2
8306 done
8307 done
8308 IFS=$as_save_IFS
8312 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8313 if test -n "$ac_ct_STRIP"; then
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8315 $as_echo "$ac_ct_STRIP" >&6; }
8316 else
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8318 $as_echo "no" >&6; }
8321 if test "x$ac_ct_STRIP" = x; then
8322 STRIP=":"
8323 else
8324 case $cross_compiling:$ac_tool_warned in
8325 yes:)
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8328 ac_tool_warned=yes ;;
8329 esac
8330 STRIP=$ac_ct_STRIP
8332 else
8333 STRIP="$ac_cv_prog_STRIP"
8336 test -z "$STRIP" && STRIP=:
8343 if test -n "$ac_tool_prefix"; then
8344 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8345 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8347 $as_echo_n "checking for $ac_word... " >&6; }
8348 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8349 $as_echo_n "(cached) " >&6
8350 else
8351 if test -n "$RANLIB"; then
8352 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8353 else
8354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8355 for as_dir in $PATH
8357 IFS=$as_save_IFS
8358 test -z "$as_dir" && as_dir=.
8359 for ac_exec_ext in '' $ac_executable_extensions; do
8360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8361 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8363 break 2
8365 done
8366 done
8367 IFS=$as_save_IFS
8371 RANLIB=$ac_cv_prog_RANLIB
8372 if test -n "$RANLIB"; then
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8374 $as_echo "$RANLIB" >&6; }
8375 else
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8377 $as_echo "no" >&6; }
8382 if test -z "$ac_cv_prog_RANLIB"; then
8383 ac_ct_RANLIB=$RANLIB
8384 # Extract the first word of "ranlib", so it can be a program name with args.
8385 set dummy ranlib; ac_word=$2
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8387 $as_echo_n "checking for $ac_word... " >&6; }
8388 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8389 $as_echo_n "(cached) " >&6
8390 else
8391 if test -n "$ac_ct_RANLIB"; then
8392 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8393 else
8394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8395 for as_dir in $PATH
8397 IFS=$as_save_IFS
8398 test -z "$as_dir" && as_dir=.
8399 for ac_exec_ext in '' $ac_executable_extensions; do
8400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8401 ac_cv_prog_ac_ct_RANLIB="ranlib"
8402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8403 break 2
8405 done
8406 done
8407 IFS=$as_save_IFS
8411 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8412 if test -n "$ac_ct_RANLIB"; then
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8414 $as_echo "$ac_ct_RANLIB" >&6; }
8415 else
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417 $as_echo "no" >&6; }
8420 if test "x$ac_ct_RANLIB" = x; then
8421 RANLIB=":"
8422 else
8423 case $cross_compiling:$ac_tool_warned in
8424 yes:)
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8427 ac_tool_warned=yes ;;
8428 esac
8429 RANLIB=$ac_ct_RANLIB
8431 else
8432 RANLIB="$ac_cv_prog_RANLIB"
8435 test -z "$RANLIB" && RANLIB=:
8442 # Determine commands to create old-style static archives.
8443 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8444 old_postinstall_cmds='chmod 644 $oldlib'
8445 old_postuninstall_cmds=
8447 if test -n "$RANLIB"; then
8448 case $host_os in
8449 openbsd*)
8450 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8453 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8455 esac
8456 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8459 case $host_os in
8460 darwin*)
8461 lock_old_archive_extraction=yes ;;
8463 lock_old_archive_extraction=no ;;
8464 esac
8504 # If no C compiler was specified, use CC.
8505 LTCC=${LTCC-"$CC"}
8507 # If no C compiler flags were specified, use CFLAGS.
8508 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8510 # Allow CC to be a program name with arguments.
8511 compiler=$CC
8514 # Check for command to grab the raw symbol name followed by C symbol from nm.
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8516 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8517 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8518 $as_echo_n "(cached) " >&6
8519 else
8521 # These are sane defaults that work on at least a few old systems.
8522 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8524 # Character class describing NM global symbol codes.
8525 symcode='[BCDEGRST]'
8527 # Regexp to match symbols that can be accessed directly from C.
8528 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8530 # Define system-specific variables.
8531 case $host_os in
8532 aix*)
8533 symcode='[BCDT]'
8535 cygwin* | mingw* | pw32* | cegcc*)
8536 symcode='[ABCDGISTW]'
8538 hpux*)
8539 if test "$host_cpu" = ia64; then
8540 symcode='[ABCDEGRST]'
8543 irix* | nonstopux*)
8544 symcode='[BCDEGRST]'
8546 osf*)
8547 symcode='[BCDEGQRST]'
8549 solaris*)
8550 symcode='[BDRT]'
8552 sco3.2v5*)
8553 symcode='[DT]'
8555 sysv4.2uw2*)
8556 symcode='[DT]'
8558 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8559 symcode='[ABDT]'
8561 sysv4)
8562 symcode='[DFNSTU]'
8564 esac
8566 # If we're using GNU nm, then use its standard symbol codes.
8567 case `$NM -V 2>&1` in
8568 *GNU* | *'with BFD'*)
8569 symcode='[ABCDGIRSTW]' ;;
8570 esac
8572 # Transform an extracted symbol line into a proper C declaration.
8573 # Some systems (esp. on ia64) link data and code symbols differently,
8574 # so use this general approach.
8575 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8577 # Transform an extracted symbol line into symbol name and symbol address
8578 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8579 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'"
8581 # Handle CRLF in mingw tool chain
8582 opt_cr=
8583 case $build_os in
8584 mingw*)
8585 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8587 esac
8589 # Try without a prefix underscore, then with it.
8590 for ac_symprfx in "" "_"; do
8592 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8593 symxfrm="\\1 $ac_symprfx\\2 \\2"
8595 # Write the raw and C identifiers.
8596 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8597 # Fake it for dumpbin and say T for any non-static function
8598 # and D for any global variable.
8599 # Also find C++ and __fastcall symbols from MSVC++,
8600 # which start with @ or ?.
8601 lt_cv_sys_global_symbol_pipe="$AWK '"\
8602 " {last_section=section; section=\$ 3};"\
8603 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8604 " \$ 0!~/External *\|/{next};"\
8605 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8606 " {if(hide[section]) next};"\
8607 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8608 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8609 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8610 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8611 " ' prfx=^$ac_symprfx"
8612 else
8613 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8616 # Check to see that the pipe works correctly.
8617 pipe_works=no
8619 rm -f conftest*
8620 cat > conftest.$ac_ext <<_LT_EOF
8621 #ifdef __cplusplus
8622 extern "C" {
8623 #endif
8624 char nm_test_var;
8625 void nm_test_func(void);
8626 void nm_test_func(void){}
8627 #ifdef __cplusplus
8629 #endif
8630 int main(){nm_test_var='a';nm_test_func();return(0);}
8631 _LT_EOF
8633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8634 (eval $ac_compile) 2>&5
8635 ac_status=$?
8636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8637 test $ac_status = 0; }; then
8638 # Now try to grab the symbols.
8639 nlist=conftest.nm
8640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8641 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8642 ac_status=$?
8643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8644 test $ac_status = 0; } && test -s "$nlist"; then
8645 # Try sorting and uniquifying the output.
8646 if sort "$nlist" | uniq > "$nlist"T; then
8647 mv -f "$nlist"T "$nlist"
8648 else
8649 rm -f "$nlist"T
8652 # Make sure that we snagged all the symbols we need.
8653 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8654 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8655 cat <<_LT_EOF > conftest.$ac_ext
8656 #ifdef __cplusplus
8657 extern "C" {
8658 #endif
8660 _LT_EOF
8661 # Now generate the symbol file.
8662 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8664 cat <<_LT_EOF >> conftest.$ac_ext
8666 /* The mapping between symbol names and symbols. */
8667 const struct {
8668 const char *name;
8669 void *address;
8671 lt__PROGRAM__LTX_preloaded_symbols[] =
8673 { "@PROGRAM@", (void *) 0 },
8674 _LT_EOF
8675 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8676 cat <<\_LT_EOF >> conftest.$ac_ext
8677 {0, (void *) 0}
8680 /* This works around a problem in FreeBSD linker */
8681 #ifdef FREEBSD_WORKAROUND
8682 static const void *lt_preloaded_setup() {
8683 return lt__PROGRAM__LTX_preloaded_symbols;
8685 #endif
8687 #ifdef __cplusplus
8689 #endif
8690 _LT_EOF
8691 # Now try linking the two files.
8692 mv conftest.$ac_objext conftstm.$ac_objext
8693 lt_save_LIBS="$LIBS"
8694 lt_save_CFLAGS="$CFLAGS"
8695 LIBS="conftstm.$ac_objext"
8696 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8698 (eval $ac_link) 2>&5
8699 ac_status=$?
8700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8701 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8702 pipe_works=yes
8704 LIBS="$lt_save_LIBS"
8705 CFLAGS="$lt_save_CFLAGS"
8706 else
8707 echo "cannot find nm_test_func in $nlist" >&5
8709 else
8710 echo "cannot find nm_test_var in $nlist" >&5
8712 else
8713 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8715 else
8716 echo "$progname: failed program was:" >&5
8717 cat conftest.$ac_ext >&5
8719 rm -rf conftest* conftst*
8721 # Do not use the global_symbol_pipe unless it works.
8722 if test "$pipe_works" = yes; then
8723 break
8724 else
8725 lt_cv_sys_global_symbol_pipe=
8727 done
8731 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8732 lt_cv_sys_global_symbol_to_cdecl=
8734 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8736 $as_echo "failed" >&6; }
8737 else
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8739 $as_echo "ok" >&6; }
8764 # Check whether --enable-libtool-lock was given.
8765 if test "${enable_libtool_lock+set}" = set; then :
8766 enableval=$enable_libtool_lock;
8769 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8771 # Some flags need to be propagated to the compiler or linker for good
8772 # libtool support.
8773 case $host in
8774 ia64-*-hpux*)
8775 # Find out which ABI we are using.
8776 echo 'int i;' > conftest.$ac_ext
8777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8778 (eval $ac_compile) 2>&5
8779 ac_status=$?
8780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8781 test $ac_status = 0; }; then
8782 case `/usr/bin/file conftest.$ac_objext` in
8783 *ELF-32*)
8784 HPUX_IA64_MODE="32"
8786 *ELF-64*)
8787 HPUX_IA64_MODE="64"
8789 esac
8791 rm -rf conftest*
8793 *-*-irix6*)
8794 # Find out which ABI we are using.
8795 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8796 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8797 (eval $ac_compile) 2>&5
8798 ac_status=$?
8799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8800 test $ac_status = 0; }; then
8801 if test "$lt_cv_prog_gnu_ld" = yes; then
8802 case `/usr/bin/file conftest.$ac_objext` in
8803 *32-bit*)
8804 LD="${LD-ld} -melf32bsmip"
8806 *N32*)
8807 LD="${LD-ld} -melf32bmipn32"
8809 *64-bit*)
8810 LD="${LD-ld} -melf64bmip"
8812 esac
8813 else
8814 case `/usr/bin/file conftest.$ac_objext` in
8815 *32-bit*)
8816 LD="${LD-ld} -32"
8818 *N32*)
8819 LD="${LD-ld} -n32"
8821 *64-bit*)
8822 LD="${LD-ld} -64"
8824 esac
8827 rm -rf conftest*
8830 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8831 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8832 # Find out which ABI we are using.
8833 echo 'int i;' > conftest.$ac_ext
8834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8835 (eval $ac_compile) 2>&5
8836 ac_status=$?
8837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8838 test $ac_status = 0; }; then
8839 case `/usr/bin/file conftest.o` in
8840 *32-bit*)
8841 case $host in
8842 x86_64-*kfreebsd*-gnu)
8843 LD="${LD-ld} -m elf_i386_fbsd"
8845 x86_64-*linux*)
8846 LD="${LD-ld} -m elf_i386"
8848 ppc64-*linux*|powerpc64-*linux*)
8849 LD="${LD-ld} -m elf32ppclinux"
8851 s390x-*linux*)
8852 LD="${LD-ld} -m elf_s390"
8854 sparc64-*linux*)
8855 LD="${LD-ld} -m elf32_sparc"
8857 esac
8859 *64-bit*)
8860 case $host in
8861 x86_64-*kfreebsd*-gnu)
8862 LD="${LD-ld} -m elf_x86_64_fbsd"
8864 x86_64-*linux*)
8865 LD="${LD-ld} -m elf_x86_64"
8867 ppc*-*linux*|powerpc*-*linux*)
8868 LD="${LD-ld} -m elf64ppc"
8870 s390*-*linux*|s390*-*tpf*)
8871 LD="${LD-ld} -m elf64_s390"
8873 sparc*-*linux*)
8874 LD="${LD-ld} -m elf64_sparc"
8876 esac
8878 esac
8880 rm -rf conftest*
8883 *-*-sco3.2v5*)
8884 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8885 SAVE_CFLAGS="$CFLAGS"
8886 CFLAGS="$CFLAGS -belf"
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8888 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8889 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8890 $as_echo_n "(cached) " >&6
8891 else
8892 ac_ext=c
8893 ac_cpp='$CPP $CPPFLAGS'
8894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8898 if test x$gcc_no_link = xyes; then
8899 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8902 /* end confdefs.h. */
8905 main ()
8909 return 0;
8911 _ACEOF
8912 if ac_fn_c_try_link "$LINENO"; then :
8913 lt_cv_cc_needs_belf=yes
8914 else
8915 lt_cv_cc_needs_belf=no
8917 rm -f core conftest.err conftest.$ac_objext \
8918 conftest$ac_exeext conftest.$ac_ext
8919 ac_ext=c
8920 ac_cpp='$CPP $CPPFLAGS'
8921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8927 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8928 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8929 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8930 CFLAGS="$SAVE_CFLAGS"
8933 sparc*-*solaris*)
8934 # Find out which ABI we are using.
8935 echo 'int i;' > conftest.$ac_ext
8936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8937 (eval $ac_compile) 2>&5
8938 ac_status=$?
8939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8940 test $ac_status = 0; }; then
8941 case `/usr/bin/file conftest.o` in
8942 *64-bit*)
8943 case $lt_cv_prog_gnu_ld in
8944 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8946 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8947 LD="${LD-ld} -64"
8950 esac
8952 esac
8954 rm -rf conftest*
8956 esac
8958 need_locks="$enable_libtool_lock"
8961 case $host_os in
8962 rhapsody* | darwin*)
8963 if test -n "$ac_tool_prefix"; then
8964 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8965 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8967 $as_echo_n "checking for $ac_word... " >&6; }
8968 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8969 $as_echo_n "(cached) " >&6
8970 else
8971 if test -n "$DSYMUTIL"; then
8972 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8973 else
8974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8975 for as_dir in $PATH
8977 IFS=$as_save_IFS
8978 test -z "$as_dir" && as_dir=.
8979 for ac_exec_ext in '' $ac_executable_extensions; do
8980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8981 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8983 break 2
8985 done
8986 done
8987 IFS=$as_save_IFS
8991 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8992 if test -n "$DSYMUTIL"; then
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8994 $as_echo "$DSYMUTIL" >&6; }
8995 else
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8997 $as_echo "no" >&6; }
9002 if test -z "$ac_cv_prog_DSYMUTIL"; then
9003 ac_ct_DSYMUTIL=$DSYMUTIL
9004 # Extract the first word of "dsymutil", so it can be a program name with args.
9005 set dummy dsymutil; ac_word=$2
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9007 $as_echo_n "checking for $ac_word... " >&6; }
9008 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
9009 $as_echo_n "(cached) " >&6
9010 else
9011 if test -n "$ac_ct_DSYMUTIL"; then
9012 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9013 else
9014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9015 for as_dir in $PATH
9017 IFS=$as_save_IFS
9018 test -z "$as_dir" && as_dir=.
9019 for ac_exec_ext in '' $ac_executable_extensions; do
9020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9021 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9023 break 2
9025 done
9026 done
9027 IFS=$as_save_IFS
9031 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9032 if test -n "$ac_ct_DSYMUTIL"; then
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9034 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9035 else
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9037 $as_echo "no" >&6; }
9040 if test "x$ac_ct_DSYMUTIL" = x; then
9041 DSYMUTIL=":"
9042 else
9043 case $cross_compiling:$ac_tool_warned in
9044 yes:)
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9047 ac_tool_warned=yes ;;
9048 esac
9049 DSYMUTIL=$ac_ct_DSYMUTIL
9051 else
9052 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9055 if test -n "$ac_tool_prefix"; then
9056 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9057 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9059 $as_echo_n "checking for $ac_word... " >&6; }
9060 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
9061 $as_echo_n "(cached) " >&6
9062 else
9063 if test -n "$NMEDIT"; then
9064 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9065 else
9066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9067 for as_dir in $PATH
9069 IFS=$as_save_IFS
9070 test -z "$as_dir" && as_dir=.
9071 for ac_exec_ext in '' $ac_executable_extensions; do
9072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9073 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9075 break 2
9077 done
9078 done
9079 IFS=$as_save_IFS
9083 NMEDIT=$ac_cv_prog_NMEDIT
9084 if test -n "$NMEDIT"; then
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9086 $as_echo "$NMEDIT" >&6; }
9087 else
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9089 $as_echo "no" >&6; }
9094 if test -z "$ac_cv_prog_NMEDIT"; then
9095 ac_ct_NMEDIT=$NMEDIT
9096 # Extract the first word of "nmedit", so it can be a program name with args.
9097 set dummy nmedit; ac_word=$2
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9099 $as_echo_n "checking for $ac_word... " >&6; }
9100 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9101 $as_echo_n "(cached) " >&6
9102 else
9103 if test -n "$ac_ct_NMEDIT"; then
9104 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9105 else
9106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9107 for as_dir in $PATH
9109 IFS=$as_save_IFS
9110 test -z "$as_dir" && as_dir=.
9111 for ac_exec_ext in '' $ac_executable_extensions; do
9112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9113 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9115 break 2
9117 done
9118 done
9119 IFS=$as_save_IFS
9123 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9124 if test -n "$ac_ct_NMEDIT"; then
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9126 $as_echo "$ac_ct_NMEDIT" >&6; }
9127 else
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9129 $as_echo "no" >&6; }
9132 if test "x$ac_ct_NMEDIT" = x; then
9133 NMEDIT=":"
9134 else
9135 case $cross_compiling:$ac_tool_warned in
9136 yes:)
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9139 ac_tool_warned=yes ;;
9140 esac
9141 NMEDIT=$ac_ct_NMEDIT
9143 else
9144 NMEDIT="$ac_cv_prog_NMEDIT"
9147 if test -n "$ac_tool_prefix"; then
9148 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9149 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9151 $as_echo_n "checking for $ac_word... " >&6; }
9152 if test "${ac_cv_prog_LIPO+set}" = set; then :
9153 $as_echo_n "(cached) " >&6
9154 else
9155 if test -n "$LIPO"; then
9156 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9157 else
9158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9159 for as_dir in $PATH
9161 IFS=$as_save_IFS
9162 test -z "$as_dir" && as_dir=.
9163 for ac_exec_ext in '' $ac_executable_extensions; do
9164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9165 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9167 break 2
9169 done
9170 done
9171 IFS=$as_save_IFS
9175 LIPO=$ac_cv_prog_LIPO
9176 if test -n "$LIPO"; then
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9178 $as_echo "$LIPO" >&6; }
9179 else
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181 $as_echo "no" >&6; }
9186 if test -z "$ac_cv_prog_LIPO"; then
9187 ac_ct_LIPO=$LIPO
9188 # Extract the first word of "lipo", so it can be a program name with args.
9189 set dummy lipo; ac_word=$2
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9191 $as_echo_n "checking for $ac_word... " >&6; }
9192 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9193 $as_echo_n "(cached) " >&6
9194 else
9195 if test -n "$ac_ct_LIPO"; then
9196 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9197 else
9198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9199 for as_dir in $PATH
9201 IFS=$as_save_IFS
9202 test -z "$as_dir" && as_dir=.
9203 for ac_exec_ext in '' $ac_executable_extensions; do
9204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9205 ac_cv_prog_ac_ct_LIPO="lipo"
9206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9207 break 2
9209 done
9210 done
9211 IFS=$as_save_IFS
9215 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9216 if test -n "$ac_ct_LIPO"; then
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9218 $as_echo "$ac_ct_LIPO" >&6; }
9219 else
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9221 $as_echo "no" >&6; }
9224 if test "x$ac_ct_LIPO" = x; then
9225 LIPO=":"
9226 else
9227 case $cross_compiling:$ac_tool_warned in
9228 yes:)
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9231 ac_tool_warned=yes ;;
9232 esac
9233 LIPO=$ac_ct_LIPO
9235 else
9236 LIPO="$ac_cv_prog_LIPO"
9239 if test -n "$ac_tool_prefix"; then
9240 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9241 set dummy ${ac_tool_prefix}otool; ac_word=$2
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9243 $as_echo_n "checking for $ac_word... " >&6; }
9244 if test "${ac_cv_prog_OTOOL+set}" = set; then :
9245 $as_echo_n "(cached) " >&6
9246 else
9247 if test -n "$OTOOL"; then
9248 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9249 else
9250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9251 for as_dir in $PATH
9253 IFS=$as_save_IFS
9254 test -z "$as_dir" && as_dir=.
9255 for ac_exec_ext in '' $ac_executable_extensions; do
9256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9257 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9259 break 2
9261 done
9262 done
9263 IFS=$as_save_IFS
9267 OTOOL=$ac_cv_prog_OTOOL
9268 if test -n "$OTOOL"; then
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9270 $as_echo "$OTOOL" >&6; }
9271 else
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9273 $as_echo "no" >&6; }
9278 if test -z "$ac_cv_prog_OTOOL"; then
9279 ac_ct_OTOOL=$OTOOL
9280 # Extract the first word of "otool", so it can be a program name with args.
9281 set dummy otool; ac_word=$2
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9283 $as_echo_n "checking for $ac_word... " >&6; }
9284 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9285 $as_echo_n "(cached) " >&6
9286 else
9287 if test -n "$ac_ct_OTOOL"; then
9288 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9289 else
9290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9291 for as_dir in $PATH
9293 IFS=$as_save_IFS
9294 test -z "$as_dir" && as_dir=.
9295 for ac_exec_ext in '' $ac_executable_extensions; do
9296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9297 ac_cv_prog_ac_ct_OTOOL="otool"
9298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9299 break 2
9301 done
9302 done
9303 IFS=$as_save_IFS
9307 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9308 if test -n "$ac_ct_OTOOL"; then
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9310 $as_echo "$ac_ct_OTOOL" >&6; }
9311 else
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9313 $as_echo "no" >&6; }
9316 if test "x$ac_ct_OTOOL" = x; then
9317 OTOOL=":"
9318 else
9319 case $cross_compiling:$ac_tool_warned in
9320 yes:)
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9323 ac_tool_warned=yes ;;
9324 esac
9325 OTOOL=$ac_ct_OTOOL
9327 else
9328 OTOOL="$ac_cv_prog_OTOOL"
9331 if test -n "$ac_tool_prefix"; then
9332 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9333 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9335 $as_echo_n "checking for $ac_word... " >&6; }
9336 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9337 $as_echo_n "(cached) " >&6
9338 else
9339 if test -n "$OTOOL64"; then
9340 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9341 else
9342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9343 for as_dir in $PATH
9345 IFS=$as_save_IFS
9346 test -z "$as_dir" && as_dir=.
9347 for ac_exec_ext in '' $ac_executable_extensions; do
9348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9349 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9351 break 2
9353 done
9354 done
9355 IFS=$as_save_IFS
9359 OTOOL64=$ac_cv_prog_OTOOL64
9360 if test -n "$OTOOL64"; then
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9362 $as_echo "$OTOOL64" >&6; }
9363 else
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9365 $as_echo "no" >&6; }
9370 if test -z "$ac_cv_prog_OTOOL64"; then
9371 ac_ct_OTOOL64=$OTOOL64
9372 # Extract the first word of "otool64", so it can be a program name with args.
9373 set dummy otool64; ac_word=$2
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9375 $as_echo_n "checking for $ac_word... " >&6; }
9376 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9377 $as_echo_n "(cached) " >&6
9378 else
9379 if test -n "$ac_ct_OTOOL64"; then
9380 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9381 else
9382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9383 for as_dir in $PATH
9385 IFS=$as_save_IFS
9386 test -z "$as_dir" && as_dir=.
9387 for ac_exec_ext in '' $ac_executable_extensions; do
9388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9389 ac_cv_prog_ac_ct_OTOOL64="otool64"
9390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9391 break 2
9393 done
9394 done
9395 IFS=$as_save_IFS
9399 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9400 if test -n "$ac_ct_OTOOL64"; then
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9402 $as_echo "$ac_ct_OTOOL64" >&6; }
9403 else
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9405 $as_echo "no" >&6; }
9408 if test "x$ac_ct_OTOOL64" = x; then
9409 OTOOL64=":"
9410 else
9411 case $cross_compiling:$ac_tool_warned in
9412 yes:)
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9415 ac_tool_warned=yes ;;
9416 esac
9417 OTOOL64=$ac_ct_OTOOL64
9419 else
9420 OTOOL64="$ac_cv_prog_OTOOL64"
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9450 $as_echo_n "checking for -single_module linker flag... " >&6; }
9451 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9452 $as_echo_n "(cached) " >&6
9453 else
9454 lt_cv_apple_cc_single_mod=no
9455 if test -z "${LT_MULTI_MODULE}"; then
9456 # By default we will add the -single_module flag. You can override
9457 # by either setting the environment variable LT_MULTI_MODULE
9458 # non-empty at configure time, or by adding -multi_module to the
9459 # link flags.
9460 rm -rf libconftest.dylib*
9461 echo "int foo(void){return 1;}" > conftest.c
9462 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9463 -dynamiclib -Wl,-single_module conftest.c" >&5
9464 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9465 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9466 _lt_result=$?
9467 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9468 lt_cv_apple_cc_single_mod=yes
9469 else
9470 cat conftest.err >&5
9472 rm -rf libconftest.dylib*
9473 rm -f conftest.*
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9477 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9479 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9480 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9481 $as_echo_n "(cached) " >&6
9482 else
9483 lt_cv_ld_exported_symbols_list=no
9484 save_LDFLAGS=$LDFLAGS
9485 echo "_main" > conftest.sym
9486 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9487 if test x$gcc_no_link = xyes; then
9488 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9491 /* end confdefs.h. */
9494 main ()
9498 return 0;
9500 _ACEOF
9501 if ac_fn_c_try_link "$LINENO"; then :
9502 lt_cv_ld_exported_symbols_list=yes
9503 else
9504 lt_cv_ld_exported_symbols_list=no
9506 rm -f core conftest.err conftest.$ac_objext \
9507 conftest$ac_exeext conftest.$ac_ext
9508 LDFLAGS="$save_LDFLAGS"
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9512 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9514 $as_echo_n "checking for -force_load linker flag... " >&6; }
9515 if test "${lt_cv_ld_force_load+set}" = set; then :
9516 $as_echo_n "(cached) " >&6
9517 else
9518 lt_cv_ld_force_load=no
9519 cat > conftest.c << _LT_EOF
9520 int forced_loaded() { return 2;}
9521 _LT_EOF
9522 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9523 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9524 echo "$AR cru libconftest.a conftest.o" >&5
9525 $AR cru libconftest.a conftest.o 2>&5
9526 cat > conftest.c << _LT_EOF
9527 int main() { return 0;}
9528 _LT_EOF
9529 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9530 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9531 _lt_result=$?
9532 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9533 lt_cv_ld_force_load=yes
9534 else
9535 cat conftest.err >&5
9537 rm -f conftest.err libconftest.a conftest conftest.c
9538 rm -rf conftest.dSYM
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9542 $as_echo "$lt_cv_ld_force_load" >&6; }
9543 case $host_os in
9544 rhapsody* | darwin1.[012])
9545 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9546 darwin1.*)
9547 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9548 darwin*) # darwin 5.x on
9549 # if running on 10.5 or later, the deployment target defaults
9550 # to the OS version, if on x86, and 10.4, the deployment
9551 # target defaults to 10.4. Don't you love it?
9552 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9553 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9554 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9555 10.[012]*)
9556 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9557 10.*)
9558 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9559 esac
9561 esac
9562 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9563 _lt_dar_single_mod='$single_module'
9565 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9566 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9567 else
9568 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9570 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9571 _lt_dsymutil='~$DSYMUTIL $lib || :'
9572 else
9573 _lt_dsymutil=
9576 esac
9578 ac_ext=c
9579 ac_cpp='$CPP $CPPFLAGS'
9580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9584 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9585 # On Suns, sometimes $CPP names a directory.
9586 if test -n "$CPP" && test -d "$CPP"; then
9587 CPP=
9589 if test -z "$CPP"; then
9590 if test "${ac_cv_prog_CPP+set}" = set; then :
9591 $as_echo_n "(cached) " >&6
9592 else
9593 # Double quotes because CPP needs to be expanded
9594 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9596 ac_preproc_ok=false
9597 for ac_c_preproc_warn_flag in '' yes
9599 # Use a header file that comes with gcc, so configuring glibc
9600 # with a fresh cross-compiler works.
9601 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9602 # <limits.h> exists even on freestanding compilers.
9603 # On the NeXT, cc -E runs the code through the compiler's parser,
9604 # not just through cpp. "Syntax error" is here to catch this case.
9605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9606 /* end confdefs.h. */
9607 #ifdef __STDC__
9608 # include <limits.h>
9609 #else
9610 # include <assert.h>
9611 #endif
9612 Syntax error
9613 _ACEOF
9614 if ac_fn_c_try_cpp "$LINENO"; then :
9616 else
9617 # Broken: fails on valid input.
9618 continue
9620 rm -f conftest.err conftest.$ac_ext
9622 # OK, works on sane cases. Now check whether nonexistent headers
9623 # can be detected and how.
9624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9625 /* end confdefs.h. */
9626 #include <ac_nonexistent.h>
9627 _ACEOF
9628 if ac_fn_c_try_cpp "$LINENO"; then :
9629 # Broken: success on invalid input.
9630 continue
9631 else
9632 # Passes both tests.
9633 ac_preproc_ok=:
9634 break
9636 rm -f conftest.err conftest.$ac_ext
9638 done
9639 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9640 rm -f conftest.err conftest.$ac_ext
9641 if $ac_preproc_ok; then :
9642 break
9645 done
9646 ac_cv_prog_CPP=$CPP
9649 CPP=$ac_cv_prog_CPP
9650 else
9651 ac_cv_prog_CPP=$CPP
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9654 $as_echo "$CPP" >&6; }
9655 ac_preproc_ok=false
9656 for ac_c_preproc_warn_flag in '' yes
9658 # Use a header file that comes with gcc, so configuring glibc
9659 # with a fresh cross-compiler works.
9660 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9661 # <limits.h> exists even on freestanding compilers.
9662 # On the NeXT, cc -E runs the code through the compiler's parser,
9663 # not just through cpp. "Syntax error" is here to catch this case.
9664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9665 /* end confdefs.h. */
9666 #ifdef __STDC__
9667 # include <limits.h>
9668 #else
9669 # include <assert.h>
9670 #endif
9671 Syntax error
9672 _ACEOF
9673 if ac_fn_c_try_cpp "$LINENO"; then :
9675 else
9676 # Broken: fails on valid input.
9677 continue
9679 rm -f conftest.err conftest.$ac_ext
9681 # OK, works on sane cases. Now check whether nonexistent headers
9682 # can be detected and how.
9683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9684 /* end confdefs.h. */
9685 #include <ac_nonexistent.h>
9686 _ACEOF
9687 if ac_fn_c_try_cpp "$LINENO"; then :
9688 # Broken: success on invalid input.
9689 continue
9690 else
9691 # Passes both tests.
9692 ac_preproc_ok=:
9693 break
9695 rm -f conftest.err conftest.$ac_ext
9697 done
9698 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9699 rm -f conftest.err conftest.$ac_ext
9700 if $ac_preproc_ok; then :
9702 else
9703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9705 as_fn_error "C preprocessor \"$CPP\" fails sanity check
9706 See \`config.log' for more details." "$LINENO" 5; }
9709 ac_ext=c
9710 ac_cpp='$CPP $CPPFLAGS'
9711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9717 $as_echo_n "checking for ANSI C header files... " >&6; }
9718 if test "${ac_cv_header_stdc+set}" = set; then :
9719 $as_echo_n "(cached) " >&6
9720 else
9721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9722 /* end confdefs.h. */
9723 #include <stdlib.h>
9724 #include <stdarg.h>
9725 #include <string.h>
9726 #include <float.h>
9729 main ()
9733 return 0;
9735 _ACEOF
9736 if ac_fn_c_try_compile "$LINENO"; then :
9737 ac_cv_header_stdc=yes
9738 else
9739 ac_cv_header_stdc=no
9741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9743 if test $ac_cv_header_stdc = yes; then
9744 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9746 /* end confdefs.h. */
9747 #include <string.h>
9749 _ACEOF
9750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9751 $EGREP "memchr" >/dev/null 2>&1; then :
9753 else
9754 ac_cv_header_stdc=no
9756 rm -f conftest*
9760 if test $ac_cv_header_stdc = yes; then
9761 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9763 /* end confdefs.h. */
9764 #include <stdlib.h>
9766 _ACEOF
9767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9768 $EGREP "free" >/dev/null 2>&1; then :
9770 else
9771 ac_cv_header_stdc=no
9773 rm -f conftest*
9777 if test $ac_cv_header_stdc = yes; then
9778 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9779 if test "$cross_compiling" = yes; then :
9781 else
9782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9783 /* end confdefs.h. */
9784 #include <ctype.h>
9785 #include <stdlib.h>
9786 #if ((' ' & 0x0FF) == 0x020)
9787 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9788 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9789 #else
9790 # define ISLOWER(c) \
9791 (('a' <= (c) && (c) <= 'i') \
9792 || ('j' <= (c) && (c) <= 'r') \
9793 || ('s' <= (c) && (c) <= 'z'))
9794 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9795 #endif
9797 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9799 main ()
9801 int i;
9802 for (i = 0; i < 256; i++)
9803 if (XOR (islower (i), ISLOWER (i))
9804 || toupper (i) != TOUPPER (i))
9805 return 2;
9806 return 0;
9808 _ACEOF
9809 if ac_fn_c_try_run "$LINENO"; then :
9811 else
9812 ac_cv_header_stdc=no
9814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9815 conftest.$ac_objext conftest.beam conftest.$ac_ext
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9821 $as_echo "$ac_cv_header_stdc" >&6; }
9822 if test $ac_cv_header_stdc = yes; then
9824 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9828 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9829 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9830 inttypes.h stdint.h unistd.h
9831 do :
9832 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9833 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9835 eval as_val=\$$as_ac_Header
9836 if test "x$as_val" = x""yes; then :
9837 cat >>confdefs.h <<_ACEOF
9838 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9839 _ACEOF
9843 done
9846 for ac_header in dlfcn.h
9847 do :
9848 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9850 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9851 cat >>confdefs.h <<_ACEOF
9852 #define HAVE_DLFCN_H 1
9853 _ACEOF
9857 done
9864 # Set options
9869 enable_win32_dll=no
9872 # Check whether --enable-shared was given.
9873 if test "${enable_shared+set}" = set; then :
9874 enableval=$enable_shared; p=${PACKAGE-default}
9875 case $enableval in
9876 yes) enable_shared=yes ;;
9877 no) enable_shared=no ;;
9879 enable_shared=no
9880 # Look at the argument we got. We use all the common list separators.
9881 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9882 for pkg in $enableval; do
9883 IFS="$lt_save_ifs"
9884 if test "X$pkg" = "X$p"; then
9885 enable_shared=yes
9887 done
9888 IFS="$lt_save_ifs"
9890 esac
9891 else
9892 enable_shared=yes
9903 # Check whether --enable-static was given.
9904 if test "${enable_static+set}" = set; then :
9905 enableval=$enable_static; p=${PACKAGE-default}
9906 case $enableval in
9907 yes) enable_static=yes ;;
9908 no) enable_static=no ;;
9910 enable_static=no
9911 # Look at the argument we got. We use all the common list separators.
9912 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9913 for pkg in $enableval; do
9914 IFS="$lt_save_ifs"
9915 if test "X$pkg" = "X$p"; then
9916 enable_static=yes
9918 done
9919 IFS="$lt_save_ifs"
9921 esac
9922 else
9923 enable_static=yes
9935 # Check whether --with-pic was given.
9936 if test "${with_pic+set}" = set; then :
9937 withval=$with_pic; p=${PACKAGE-default}
9938 case "$withval" in
9939 yes|no) pic_mode="$withval" ;;
9941 pic_mode=default
9942 # Look at the argument we got. We use all the common list separators.
9943 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9944 for pkg in $withval; do
9945 IFS="$lt_save_ifs"
9946 if test "X$pkg" = "X$p"; then
9947 pic_mode=yes
9949 done
9950 IFS="$lt_save_ifs"
9952 esac
9953 else
9954 pic_mode=default
9958 test -z "$pic_mode" && pic_mode=default
9966 # Check whether --enable-fast-install was given.
9967 if test "${enable_fast_install+set}" = set; then :
9968 enableval=$enable_fast_install; p=${PACKAGE-default}
9969 case $enableval in
9970 yes) enable_fast_install=yes ;;
9971 no) enable_fast_install=no ;;
9973 enable_fast_install=no
9974 # Look at the argument we got. We use all the common list separators.
9975 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9976 for pkg in $enableval; do
9977 IFS="$lt_save_ifs"
9978 if test "X$pkg" = "X$p"; then
9979 enable_fast_install=yes
9981 done
9982 IFS="$lt_save_ifs"
9984 esac
9985 else
9986 enable_fast_install=yes
9999 # This can be used to rebuild libtool when needed
10000 LIBTOOL_DEPS="$ltmain"
10002 # Always use our own libtool.
10003 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10030 test -z "$LN_S" && LN_S="ln -s"
10045 if test -n "${ZSH_VERSION+set}" ; then
10046 setopt NO_GLOB_SUBST
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10050 $as_echo_n "checking for objdir... " >&6; }
10051 if test "${lt_cv_objdir+set}" = set; then :
10052 $as_echo_n "(cached) " >&6
10053 else
10054 rm -f .libs 2>/dev/null
10055 mkdir .libs 2>/dev/null
10056 if test -d .libs; then
10057 lt_cv_objdir=.libs
10058 else
10059 # MS-DOS does not allow filenames that begin with a dot.
10060 lt_cv_objdir=_libs
10062 rmdir .libs 2>/dev/null
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10065 $as_echo "$lt_cv_objdir" >&6; }
10066 objdir=$lt_cv_objdir
10072 cat >>confdefs.h <<_ACEOF
10073 #define LT_OBJDIR "$lt_cv_objdir/"
10074 _ACEOF
10079 case $host_os in
10080 aix3*)
10081 # AIX sometimes has problems with the GCC collect2 program. For some
10082 # reason, if we set the COLLECT_NAMES environment variable, the problems
10083 # vanish in a puff of smoke.
10084 if test "X${COLLECT_NAMES+set}" != Xset; then
10085 COLLECT_NAMES=
10086 export COLLECT_NAMES
10089 esac
10091 # Global variables:
10092 ofile=libtool
10093 can_build_shared=yes
10095 # All known linkers require a `.a' archive for static linking (except MSVC,
10096 # which needs '.lib').
10097 libext=a
10099 with_gnu_ld="$lt_cv_prog_gnu_ld"
10101 old_CC="$CC"
10102 old_CFLAGS="$CFLAGS"
10104 # Set sane defaults for various variables
10105 test -z "$CC" && CC=cc
10106 test -z "$LTCC" && LTCC=$CC
10107 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10108 test -z "$LD" && LD=ld
10109 test -z "$ac_objext" && ac_objext=o
10111 for cc_temp in $compiler""; do
10112 case $cc_temp in
10113 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10114 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10115 \-*) ;;
10116 *) break;;
10117 esac
10118 done
10119 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10122 # Only perform the check for file, if the check method requires it
10123 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10124 case $deplibs_check_method in
10125 file_magic*)
10126 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10128 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10129 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10130 $as_echo_n "(cached) " >&6
10131 else
10132 case $MAGIC_CMD in
10133 [\\/*] | ?:[\\/]*)
10134 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10137 lt_save_MAGIC_CMD="$MAGIC_CMD"
10138 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10139 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10140 for ac_dir in $ac_dummy; do
10141 IFS="$lt_save_ifs"
10142 test -z "$ac_dir" && ac_dir=.
10143 if test -f $ac_dir/${ac_tool_prefix}file; then
10144 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10145 if test -n "$file_magic_test_file"; then
10146 case $deplibs_check_method in
10147 "file_magic "*)
10148 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10149 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10150 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10151 $EGREP "$file_magic_regex" > /dev/null; then
10153 else
10154 cat <<_LT_EOF 1>&2
10156 *** Warning: the command libtool uses to detect shared libraries,
10157 *** $file_magic_cmd, produces output that libtool cannot recognize.
10158 *** The result is that libtool may fail to recognize shared libraries
10159 *** as such. This will affect the creation of libtool libraries that
10160 *** depend on shared libraries, but programs linked with such libtool
10161 *** libraries will work regardless of this problem. Nevertheless, you
10162 *** may want to report the problem to your system manager and/or to
10163 *** bug-libtool@gnu.org
10165 _LT_EOF
10166 fi ;;
10167 esac
10169 break
10171 done
10172 IFS="$lt_save_ifs"
10173 MAGIC_CMD="$lt_save_MAGIC_CMD"
10175 esac
10178 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10179 if test -n "$MAGIC_CMD"; then
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10181 $as_echo "$MAGIC_CMD" >&6; }
10182 else
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10184 $as_echo "no" >&6; }
10191 if test -z "$lt_cv_path_MAGIC_CMD"; then
10192 if test -n "$ac_tool_prefix"; then
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10194 $as_echo_n "checking for file... " >&6; }
10195 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10196 $as_echo_n "(cached) " >&6
10197 else
10198 case $MAGIC_CMD in
10199 [\\/*] | ?:[\\/]*)
10200 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10203 lt_save_MAGIC_CMD="$MAGIC_CMD"
10204 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10205 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10206 for ac_dir in $ac_dummy; do
10207 IFS="$lt_save_ifs"
10208 test -z "$ac_dir" && ac_dir=.
10209 if test -f $ac_dir/file; then
10210 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10211 if test -n "$file_magic_test_file"; then
10212 case $deplibs_check_method in
10213 "file_magic "*)
10214 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10215 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10216 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10217 $EGREP "$file_magic_regex" > /dev/null; then
10219 else
10220 cat <<_LT_EOF 1>&2
10222 *** Warning: the command libtool uses to detect shared libraries,
10223 *** $file_magic_cmd, produces output that libtool cannot recognize.
10224 *** The result is that libtool may fail to recognize shared libraries
10225 *** as such. This will affect the creation of libtool libraries that
10226 *** depend on shared libraries, but programs linked with such libtool
10227 *** libraries will work regardless of this problem. Nevertheless, you
10228 *** may want to report the problem to your system manager and/or to
10229 *** bug-libtool@gnu.org
10231 _LT_EOF
10232 fi ;;
10233 esac
10235 break
10237 done
10238 IFS="$lt_save_ifs"
10239 MAGIC_CMD="$lt_save_MAGIC_CMD"
10241 esac
10244 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10245 if test -n "$MAGIC_CMD"; then
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10247 $as_echo "$MAGIC_CMD" >&6; }
10248 else
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10250 $as_echo "no" >&6; }
10254 else
10255 MAGIC_CMD=:
10261 esac
10263 # Use C for the default configuration in the libtool script
10265 lt_save_CC="$CC"
10266 ac_ext=c
10267 ac_cpp='$CPP $CPPFLAGS'
10268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10273 # Source file extension for C test sources.
10274 ac_ext=c
10276 # Object file extension for compiled C test sources.
10277 objext=o
10278 objext=$objext
10280 # Code to be used in simple compile tests
10281 lt_simple_compile_test_code="int some_variable = 0;"
10283 # Code to be used in simple link tests
10284 lt_simple_link_test_code='int main(){return(0);}'
10292 # If no C compiler was specified, use CC.
10293 LTCC=${LTCC-"$CC"}
10295 # If no C compiler flags were specified, use CFLAGS.
10296 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10298 # Allow CC to be a program name with arguments.
10299 compiler=$CC
10301 # Save the default compiler, since it gets overwritten when the other
10302 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10303 compiler_DEFAULT=$CC
10305 # save warnings/boilerplate of simple test code
10306 ac_outfile=conftest.$ac_objext
10307 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10308 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10309 _lt_compiler_boilerplate=`cat conftest.err`
10310 $RM conftest*
10312 ac_outfile=conftest.$ac_objext
10313 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10314 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10315 _lt_linker_boilerplate=`cat conftest.err`
10316 $RM -r conftest*
10319 ## CAVEAT EMPTOR:
10320 ## There is no encapsulation within the following macros, do not change
10321 ## the running order or otherwise move them around unless you know exactly
10322 ## what you are doing...
10323 if test -n "$compiler"; then
10325 lt_prog_compiler_no_builtin_flag=
10327 if test "$GCC" = yes; then
10328 case $cc_basename in
10329 nvcc*)
10330 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10332 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10333 esac
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10336 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10337 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10338 $as_echo_n "(cached) " >&6
10339 else
10340 lt_cv_prog_compiler_rtti_exceptions=no
10341 ac_outfile=conftest.$ac_objext
10342 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10343 lt_compiler_flag="-fno-rtti -fno-exceptions"
10344 # Insert the option either (1) after the last *FLAGS variable, or
10345 # (2) before a word containing "conftest.", or (3) at the end.
10346 # Note that $ac_compile itself does not contain backslashes and begins
10347 # with a dollar sign (not a hyphen), so the echo should work correctly.
10348 # The option is referenced via a variable to avoid confusing sed.
10349 lt_compile=`echo "$ac_compile" | $SED \
10350 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10351 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10352 -e 's:$: $lt_compiler_flag:'`
10353 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10354 (eval "$lt_compile" 2>conftest.err)
10355 ac_status=$?
10356 cat conftest.err >&5
10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 if (exit $ac_status) && test -s "$ac_outfile"; then
10359 # The compiler can only warn and ignore the option if not recognized
10360 # So say no if there are warnings other than the usual output.
10361 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10362 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10363 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10364 lt_cv_prog_compiler_rtti_exceptions=yes
10367 $RM conftest*
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10371 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10373 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10374 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10375 else
10386 lt_prog_compiler_wl=
10387 lt_prog_compiler_pic=
10388 lt_prog_compiler_static=
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10391 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10393 if test "$GCC" = yes; then
10394 lt_prog_compiler_wl='-Wl,'
10395 lt_prog_compiler_static='-static'
10397 case $host_os in
10398 aix*)
10399 # All AIX code is PIC.
10400 if test "$host_cpu" = ia64; then
10401 # AIX 5 now supports IA64 processor
10402 lt_prog_compiler_static='-Bstatic'
10406 amigaos*)
10407 case $host_cpu in
10408 powerpc)
10409 # see comment about AmigaOS4 .so support
10410 lt_prog_compiler_pic='-fPIC'
10412 m68k)
10413 # FIXME: we need at least 68020 code to build shared libraries, but
10414 # adding the `-m68020' flag to GCC prevents building anything better,
10415 # like `-m68040'.
10416 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10418 esac
10421 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10422 # PIC is the default for these OSes.
10425 mingw* | cygwin* | pw32* | os2* | cegcc*)
10426 # This hack is so that the source file can tell whether it is being
10427 # built for inclusion in a dll (and should export symbols for example).
10428 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10429 # (--disable-auto-import) libraries
10430 lt_prog_compiler_pic='-DDLL_EXPORT'
10433 darwin* | rhapsody*)
10434 # PIC is the default on this platform
10435 # Common symbols not allowed in MH_DYLIB files
10436 lt_prog_compiler_pic='-fno-common'
10439 haiku*)
10440 # PIC is the default for Haiku.
10441 # The "-static" flag exists, but is broken.
10442 lt_prog_compiler_static=
10445 hpux*)
10446 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10447 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10448 # sets the default TLS model and affects inlining.
10449 case $host_cpu in
10450 hppa*64*)
10451 # +Z the default
10454 lt_prog_compiler_pic='-fPIC'
10456 esac
10459 interix[3-9]*)
10460 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10461 # Instead, we relocate shared libraries at runtime.
10464 msdosdjgpp*)
10465 # Just because we use GCC doesn't mean we suddenly get shared libraries
10466 # on systems that don't support them.
10467 lt_prog_compiler_can_build_shared=no
10468 enable_shared=no
10471 *nto* | *qnx*)
10472 # QNX uses GNU C++, but need to define -shared option too, otherwise
10473 # it will coredump.
10474 lt_prog_compiler_pic='-fPIC -shared'
10477 sysv4*MP*)
10478 if test -d /usr/nec; then
10479 lt_prog_compiler_pic=-Kconform_pic
10484 lt_prog_compiler_pic='-fPIC'
10486 esac
10488 case $cc_basename in
10489 nvcc*) # Cuda Compiler Driver 2.2
10490 lt_prog_compiler_wl='-Xlinker '
10491 lt_prog_compiler_pic='-Xcompiler -fPIC'
10493 esac
10494 else
10495 # PORTME Check for flag to pass linker flags through the system compiler.
10496 case $host_os in
10497 aix*)
10498 lt_prog_compiler_wl='-Wl,'
10499 if test "$host_cpu" = ia64; then
10500 # AIX 5 now supports IA64 processor
10501 lt_prog_compiler_static='-Bstatic'
10502 else
10503 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10507 mingw* | cygwin* | pw32* | os2* | cegcc*)
10508 # This hack is so that the source file can tell whether it is being
10509 # built for inclusion in a dll (and should export symbols for example).
10510 lt_prog_compiler_pic='-DDLL_EXPORT'
10513 hpux9* | hpux10* | hpux11*)
10514 lt_prog_compiler_wl='-Wl,'
10515 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10516 # not for PA HP-UX.
10517 case $host_cpu in
10518 hppa*64*|ia64*)
10519 # +Z the default
10522 lt_prog_compiler_pic='+Z'
10524 esac
10525 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10526 lt_prog_compiler_static='${wl}-a ${wl}archive'
10529 irix5* | irix6* | nonstopux*)
10530 lt_prog_compiler_wl='-Wl,'
10531 # PIC (with -KPIC) is the default.
10532 lt_prog_compiler_static='-non_shared'
10535 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10536 case $cc_basename in
10537 # old Intel for x86_64 which still supported -KPIC.
10538 ecc*)
10539 lt_prog_compiler_wl='-Wl,'
10540 lt_prog_compiler_pic='-KPIC'
10541 lt_prog_compiler_static='-static'
10543 # icc used to be incompatible with GCC.
10544 # ICC 10 doesn't accept -KPIC any more.
10545 icc* | ifort*)
10546 lt_prog_compiler_wl='-Wl,'
10547 lt_prog_compiler_pic='-fPIC'
10548 lt_prog_compiler_static='-static'
10550 # Lahey Fortran 8.1.
10551 lf95*)
10552 lt_prog_compiler_wl='-Wl,'
10553 lt_prog_compiler_pic='--shared'
10554 lt_prog_compiler_static='--static'
10556 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10557 # Portland Group compilers (*not* the Pentium gcc compiler,
10558 # which looks to be a dead project)
10559 lt_prog_compiler_wl='-Wl,'
10560 lt_prog_compiler_pic='-fpic'
10561 lt_prog_compiler_static='-Bstatic'
10563 ccc*)
10564 lt_prog_compiler_wl='-Wl,'
10565 # All Alpha code is PIC.
10566 lt_prog_compiler_static='-non_shared'
10568 xl* | bgxl* | bgf* | mpixl*)
10569 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10570 lt_prog_compiler_wl='-Wl,'
10571 lt_prog_compiler_pic='-qpic'
10572 lt_prog_compiler_static='-qstaticlink'
10575 case `$CC -V 2>&1 | sed 5q` in
10576 *Sun\ F* | *Sun*Fortran*)
10577 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10578 lt_prog_compiler_pic='-KPIC'
10579 lt_prog_compiler_static='-Bstatic'
10580 lt_prog_compiler_wl=''
10582 *Sun\ C*)
10583 # Sun C 5.9
10584 lt_prog_compiler_pic='-KPIC'
10585 lt_prog_compiler_static='-Bstatic'
10586 lt_prog_compiler_wl='-Wl,'
10588 esac
10590 esac
10593 newsos6)
10594 lt_prog_compiler_pic='-KPIC'
10595 lt_prog_compiler_static='-Bstatic'
10598 *nto* | *qnx*)
10599 # QNX uses GNU C++, but need to define -shared option too, otherwise
10600 # it will coredump.
10601 lt_prog_compiler_pic='-fPIC -shared'
10604 osf3* | osf4* | osf5*)
10605 lt_prog_compiler_wl='-Wl,'
10606 # All OSF/1 code is PIC.
10607 lt_prog_compiler_static='-non_shared'
10610 rdos*)
10611 lt_prog_compiler_static='-non_shared'
10614 solaris*)
10615 lt_prog_compiler_pic='-KPIC'
10616 lt_prog_compiler_static='-Bstatic'
10617 case $cc_basename in
10618 f77* | f90* | f95*)
10619 lt_prog_compiler_wl='-Qoption ld ';;
10621 lt_prog_compiler_wl='-Wl,';;
10622 esac
10625 sunos4*)
10626 lt_prog_compiler_wl='-Qoption ld '
10627 lt_prog_compiler_pic='-PIC'
10628 lt_prog_compiler_static='-Bstatic'
10631 sysv4 | sysv4.2uw2* | sysv4.3*)
10632 lt_prog_compiler_wl='-Wl,'
10633 lt_prog_compiler_pic='-KPIC'
10634 lt_prog_compiler_static='-Bstatic'
10637 sysv4*MP*)
10638 if test -d /usr/nec ;then
10639 lt_prog_compiler_pic='-Kconform_pic'
10640 lt_prog_compiler_static='-Bstatic'
10644 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10645 lt_prog_compiler_wl='-Wl,'
10646 lt_prog_compiler_pic='-KPIC'
10647 lt_prog_compiler_static='-Bstatic'
10650 unicos*)
10651 lt_prog_compiler_wl='-Wl,'
10652 lt_prog_compiler_can_build_shared=no
10655 uts4*)
10656 lt_prog_compiler_pic='-pic'
10657 lt_prog_compiler_static='-Bstatic'
10661 lt_prog_compiler_can_build_shared=no
10663 esac
10666 case $host_os in
10667 # For platforms which do not support PIC, -DPIC is meaningless:
10668 *djgpp*)
10669 lt_prog_compiler_pic=
10672 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10674 esac
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10676 $as_echo "$lt_prog_compiler_pic" >&6; }
10684 # Check to make sure the PIC flag actually works.
10686 if test -n "$lt_prog_compiler_pic"; then
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10688 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10689 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10690 $as_echo_n "(cached) " >&6
10691 else
10692 lt_cv_prog_compiler_pic_works=no
10693 ac_outfile=conftest.$ac_objext
10694 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10695 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10696 # Insert the option either (1) after the last *FLAGS variable, or
10697 # (2) before a word containing "conftest.", or (3) at the end.
10698 # Note that $ac_compile itself does not contain backslashes and begins
10699 # with a dollar sign (not a hyphen), so the echo should work correctly.
10700 # The option is referenced via a variable to avoid confusing sed.
10701 lt_compile=`echo "$ac_compile" | $SED \
10702 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10703 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10704 -e 's:$: $lt_compiler_flag:'`
10705 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10706 (eval "$lt_compile" 2>conftest.err)
10707 ac_status=$?
10708 cat conftest.err >&5
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 if (exit $ac_status) && test -s "$ac_outfile"; then
10711 # The compiler can only warn and ignore the option if not recognized
10712 # So say no if there are warnings other than the usual output.
10713 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10714 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10715 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10716 lt_cv_prog_compiler_pic_works=yes
10719 $RM conftest*
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10723 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10725 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10726 case $lt_prog_compiler_pic in
10727 "" | " "*) ;;
10728 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10729 esac
10730 else
10731 lt_prog_compiler_pic=
10732 lt_prog_compiler_can_build_shared=no
10743 # Check to make sure the static flag actually works.
10745 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10747 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10748 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10749 $as_echo_n "(cached) " >&6
10750 else
10751 lt_cv_prog_compiler_static_works=no
10752 save_LDFLAGS="$LDFLAGS"
10753 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10754 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10755 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10756 # The linker can only warn and ignore the option if not recognized
10757 # So say no if there are warnings
10758 if test -s conftest.err; then
10759 # Append any errors to the config.log.
10760 cat conftest.err 1>&5
10761 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10762 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10763 if diff conftest.exp conftest.er2 >/dev/null; then
10764 lt_cv_prog_compiler_static_works=yes
10766 else
10767 lt_cv_prog_compiler_static_works=yes
10770 $RM -r conftest*
10771 LDFLAGS="$save_LDFLAGS"
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10775 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10777 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10779 else
10780 lt_prog_compiler_static=
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10790 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10791 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10792 $as_echo_n "(cached) " >&6
10793 else
10794 lt_cv_prog_compiler_c_o=no
10795 $RM -r conftest 2>/dev/null
10796 mkdir conftest
10797 cd conftest
10798 mkdir out
10799 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10801 lt_compiler_flag="-o out/conftest2.$ac_objext"
10802 # Insert the option either (1) after the last *FLAGS variable, or
10803 # (2) before a word containing "conftest.", or (3) at the end.
10804 # Note that $ac_compile itself does not contain backslashes and begins
10805 # with a dollar sign (not a hyphen), so the echo should work correctly.
10806 lt_compile=`echo "$ac_compile" | $SED \
10807 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10808 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10809 -e 's:$: $lt_compiler_flag:'`
10810 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10811 (eval "$lt_compile" 2>out/conftest.err)
10812 ac_status=$?
10813 cat out/conftest.err >&5
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10816 then
10817 # The compiler can only warn and ignore the option if not recognized
10818 # So say no if there are warnings
10819 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10820 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10821 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10822 lt_cv_prog_compiler_c_o=yes
10825 chmod u+w . 2>&5
10826 $RM conftest*
10827 # SGI C++ compiler will create directory out/ii_files/ for
10828 # template instantiation
10829 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10830 $RM out/* && rmdir out
10831 cd ..
10832 $RM -r conftest
10833 $RM conftest*
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10837 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10845 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10846 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10847 $as_echo_n "(cached) " >&6
10848 else
10849 lt_cv_prog_compiler_c_o=no
10850 $RM -r conftest 2>/dev/null
10851 mkdir conftest
10852 cd conftest
10853 mkdir out
10854 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10856 lt_compiler_flag="-o out/conftest2.$ac_objext"
10857 # Insert the option either (1) after the last *FLAGS variable, or
10858 # (2) before a word containing "conftest.", or (3) at the end.
10859 # Note that $ac_compile itself does not contain backslashes and begins
10860 # with a dollar sign (not a hyphen), so the echo should work correctly.
10861 lt_compile=`echo "$ac_compile" | $SED \
10862 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10863 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10864 -e 's:$: $lt_compiler_flag:'`
10865 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10866 (eval "$lt_compile" 2>out/conftest.err)
10867 ac_status=$?
10868 cat out/conftest.err >&5
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10871 then
10872 # The compiler can only warn and ignore the option if not recognized
10873 # So say no if there are warnings
10874 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10875 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10876 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10877 lt_cv_prog_compiler_c_o=yes
10880 chmod u+w . 2>&5
10881 $RM conftest*
10882 # SGI C++ compiler will create directory out/ii_files/ for
10883 # template instantiation
10884 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10885 $RM out/* && rmdir out
10886 cd ..
10887 $RM -r conftest
10888 $RM conftest*
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10892 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10897 hard_links="nottested"
10898 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10899 # do not overwrite the value of need_locks provided by the user
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10901 $as_echo_n "checking if we can lock with hard links... " >&6; }
10902 hard_links=yes
10903 $RM conftest*
10904 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10905 touch conftest.a
10906 ln conftest.a conftest.b 2>&5 || hard_links=no
10907 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10909 $as_echo "$hard_links" >&6; }
10910 if test "$hard_links" = no; then
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10912 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10913 need_locks=warn
10915 else
10916 need_locks=no
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10925 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10927 runpath_var=
10928 allow_undefined_flag=
10929 always_export_symbols=no
10930 archive_cmds=
10931 archive_expsym_cmds=
10932 compiler_needs_object=no
10933 enable_shared_with_static_runtimes=no
10934 export_dynamic_flag_spec=
10935 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10936 hardcode_automatic=no
10937 hardcode_direct=no
10938 hardcode_direct_absolute=no
10939 hardcode_libdir_flag_spec=
10940 hardcode_libdir_flag_spec_ld=
10941 hardcode_libdir_separator=
10942 hardcode_minus_L=no
10943 hardcode_shlibpath_var=unsupported
10944 inherit_rpath=no
10945 link_all_deplibs=unknown
10946 module_cmds=
10947 module_expsym_cmds=
10948 old_archive_from_new_cmds=
10949 old_archive_from_expsyms_cmds=
10950 thread_safe_flag_spec=
10951 whole_archive_flag_spec=
10952 # include_expsyms should be a list of space-separated symbols to be *always*
10953 # included in the symbol list
10954 include_expsyms=
10955 # exclude_expsyms can be an extended regexp of symbols to exclude
10956 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10957 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10958 # as well as any symbol that contains `d'.
10959 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10960 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10961 # platforms (ab)use it in PIC code, but their linkers get confused if
10962 # the symbol is explicitly referenced. Since portable code cannot
10963 # rely on this symbol name, it's probably fine to never include it in
10964 # preloaded symbol tables.
10965 # Exclude shared library initialization/finalization symbols.
10966 extract_expsyms_cmds=
10968 case $host_os in
10969 cygwin* | mingw* | pw32* | cegcc*)
10970 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10971 # When not using gcc, we currently assume that we are using
10972 # Microsoft Visual C++.
10973 if test "$GCC" != yes; then
10974 with_gnu_ld=no
10977 interix*)
10978 # we just hope/assume this is gcc and not c89 (= MSVC++)
10979 with_gnu_ld=yes
10981 openbsd*)
10982 with_gnu_ld=no
10984 esac
10986 ld_shlibs=yes
10988 # On some targets, GNU ld is compatible enough with the native linker
10989 # that we're better off using the native interface for both.
10990 lt_use_gnu_ld_interface=no
10991 if test "$with_gnu_ld" = yes; then
10992 case $host_os in
10993 aix*)
10994 # The AIX port of GNU ld has always aspired to compatibility
10995 # with the native linker. However, as the warning in the GNU ld
10996 # block says, versions before 2.19.5* couldn't really create working
10997 # shared libraries, regardless of the interface used.
10998 case `$LD -v 2>&1` in
10999 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11000 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11001 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11003 lt_use_gnu_ld_interface=yes
11005 esac
11008 lt_use_gnu_ld_interface=yes
11010 esac
11013 if test "$lt_use_gnu_ld_interface" = yes; then
11014 # If archive_cmds runs LD, not CC, wlarc should be empty
11015 wlarc='${wl}'
11017 # Set some defaults for GNU ld with shared library support. These
11018 # are reset later if shared libraries are not supported. Putting them
11019 # here allows them to be overridden if necessary.
11020 runpath_var=LD_RUN_PATH
11021 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11022 export_dynamic_flag_spec='${wl}--export-dynamic'
11023 # ancient GNU ld didn't support --whole-archive et. al.
11024 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11025 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11026 else
11027 whole_archive_flag_spec=
11029 supports_anon_versioning=no
11030 case `$LD -v 2>&1` in
11031 *GNU\ gold*) supports_anon_versioning=yes ;;
11032 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11033 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11034 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11035 *\ 2.11.*) ;; # other 2.11 versions
11036 *) supports_anon_versioning=yes ;;
11037 esac
11039 # See if GNU ld supports shared libraries.
11040 case $host_os in
11041 aix[3-9]*)
11042 # On AIX/PPC, the GNU linker is very broken
11043 if test "$host_cpu" != ia64; then
11044 ld_shlibs=no
11045 cat <<_LT_EOF 1>&2
11047 *** Warning: the GNU linker, at least up to release 2.19, is reported
11048 *** to be unable to reliably create shared libraries on AIX.
11049 *** Therefore, libtool is disabling shared libraries support. If you
11050 *** really care for shared libraries, you may want to install binutils
11051 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11052 *** You will then need to restart the configuration process.
11054 _LT_EOF
11058 amigaos*)
11059 case $host_cpu in
11060 powerpc)
11061 # see comment about AmigaOS4 .so support
11062 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11063 archive_expsym_cmds=''
11065 m68k)
11066 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)'
11067 hardcode_libdir_flag_spec='-L$libdir'
11068 hardcode_minus_L=yes
11070 esac
11073 beos*)
11074 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11075 allow_undefined_flag=unsupported
11076 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11077 # support --undefined. This deserves some investigation. FIXME
11078 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11079 else
11080 ld_shlibs=no
11084 cygwin* | mingw* | pw32* | cegcc*)
11085 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11086 # as there is no search path for DLLs.
11087 hardcode_libdir_flag_spec='-L$libdir'
11088 export_dynamic_flag_spec='${wl}--export-all-symbols'
11089 allow_undefined_flag=unsupported
11090 always_export_symbols=no
11091 enable_shared_with_static_runtimes=yes
11092 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11094 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11095 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11096 # If the export-symbols file already is a .def file (1st line
11097 # is EXPORTS), use it as is; otherwise, prepend...
11098 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11099 cp $export_symbols $output_objdir/$soname.def;
11100 else
11101 echo EXPORTS > $output_objdir/$soname.def;
11102 cat $export_symbols >> $output_objdir/$soname.def;
11104 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11105 else
11106 ld_shlibs=no
11110 haiku*)
11111 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11112 link_all_deplibs=yes
11115 interix[3-9]*)
11116 hardcode_direct=no
11117 hardcode_shlibpath_var=no
11118 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11119 export_dynamic_flag_spec='${wl}-E'
11120 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11121 # Instead, shared libraries are loaded at an image base (0x10000000 by
11122 # default) and relocated if they conflict, which is a slow very memory
11123 # consuming and fragmenting process. To avoid this, we pick a random,
11124 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11125 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11126 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11127 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'
11130 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11131 tmp_diet=no
11132 if test "$host_os" = linux-dietlibc; then
11133 case $cc_basename in
11134 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11135 esac
11137 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11138 && test "$tmp_diet" = no
11139 then
11140 tmp_addflag=
11141 tmp_sharedflag='-shared'
11142 case $cc_basename,$host_cpu in
11143 pgcc*) # Portland Group C compiler
11144 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'
11145 tmp_addflag=' $pic_flag'
11147 pgf77* | pgf90* | pgf95* | pgfortran*)
11148 # Portland Group f77 and f90 compilers
11149 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'
11150 tmp_addflag=' $pic_flag -Mnomain' ;;
11151 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11152 tmp_addflag=' -i_dynamic' ;;
11153 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11154 tmp_addflag=' -i_dynamic -nofor_main' ;;
11155 ifc* | ifort*) # Intel Fortran compiler
11156 tmp_addflag=' -nofor_main' ;;
11157 lf95*) # Lahey Fortran 8.1
11158 whole_archive_flag_spec=
11159 tmp_sharedflag='--shared' ;;
11160 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11161 tmp_sharedflag='-qmkshrobj'
11162 tmp_addflag= ;;
11163 nvcc*) # Cuda Compiler Driver 2.2
11164 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'
11165 compiler_needs_object=yes
11167 esac
11168 case `$CC -V 2>&1 | sed 5q` in
11169 *Sun\ C*) # Sun C 5.9
11170 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'
11171 compiler_needs_object=yes
11172 tmp_sharedflag='-G' ;;
11173 *Sun\ F*) # Sun Fortran 8.3
11174 tmp_sharedflag='-G' ;;
11175 esac
11176 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11178 if test "x$supports_anon_versioning" = xyes; then
11179 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11180 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11181 echo "local: *; };" >> $output_objdir/$libname.ver~
11182 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11185 case $cc_basename in
11186 xlf* | bgf* | bgxlf* | mpixlf*)
11187 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11188 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11189 hardcode_libdir_flag_spec=
11190 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11191 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11192 if test "x$supports_anon_versioning" = xyes; then
11193 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11194 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11195 echo "local: *; };" >> $output_objdir/$libname.ver~
11196 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11199 esac
11200 else
11201 ld_shlibs=no
11205 netbsd*)
11206 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11207 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11208 wlarc=
11209 else
11210 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11211 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11215 solaris*)
11216 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11217 ld_shlibs=no
11218 cat <<_LT_EOF 1>&2
11220 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11221 *** create shared libraries on Solaris systems. Therefore, libtool
11222 *** is disabling shared libraries support. We urge you to upgrade GNU
11223 *** binutils to release 2.9.1 or newer. Another option is to modify
11224 *** your PATH or compiler configuration so that the native linker is
11225 *** used, and then restart.
11227 _LT_EOF
11228 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11229 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11230 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11231 else
11232 ld_shlibs=no
11236 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11237 case `$LD -v 2>&1` in
11238 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11239 ld_shlibs=no
11240 cat <<_LT_EOF 1>&2
11242 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11243 *** reliably create shared libraries on SCO systems. Therefore, libtool
11244 *** is disabling shared libraries support. We urge you to upgrade GNU
11245 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11246 *** your PATH or compiler configuration so that the native linker is
11247 *** used, and then restart.
11249 _LT_EOF
11252 # For security reasons, it is highly recommended that you always
11253 # use absolute paths for naming shared libraries, and exclude the
11254 # DT_RUNPATH tag from executables and libraries. But doing so
11255 # requires that you compile everything twice, which is a pain.
11256 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11257 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11258 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11259 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11260 else
11261 ld_shlibs=no
11264 esac
11267 sunos4*)
11268 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11269 wlarc=
11270 hardcode_direct=yes
11271 hardcode_shlibpath_var=no
11275 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11276 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11277 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11278 else
11279 ld_shlibs=no
11282 esac
11284 if test "$ld_shlibs" = no; then
11285 runpath_var=
11286 hardcode_libdir_flag_spec=
11287 export_dynamic_flag_spec=
11288 whole_archive_flag_spec=
11290 else
11291 # PORTME fill in a description of your system's linker (not GNU ld)
11292 case $host_os in
11293 aix3*)
11294 allow_undefined_flag=unsupported
11295 always_export_symbols=yes
11296 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'
11297 # Note: this linker hardcodes the directories in LIBPATH if there
11298 # are no directories specified by -L.
11299 hardcode_minus_L=yes
11300 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11301 # Neither direct hardcoding nor static linking is supported with a
11302 # broken collect2.
11303 hardcode_direct=unsupported
11307 aix[4-9]*)
11308 if test "$host_cpu" = ia64; then
11309 # On IA64, the linker does run time linking by default, so we don't
11310 # have to do anything special.
11311 aix_use_runtimelinking=no
11312 exp_sym_flag='-Bexport'
11313 no_entry_flag=""
11314 else
11315 # If we're using GNU nm, then we don't want the "-C" option.
11316 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11317 # Also, AIX nm treats weak defined symbols like other global
11318 # defined symbols, whereas GNU nm marks them as "W".
11319 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11320 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'
11321 else
11322 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'
11324 aix_use_runtimelinking=no
11326 # Test if we are trying to use run time linking or normal
11327 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11328 # need to do runtime linking.
11329 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11330 for ld_flag in $LDFLAGS; do
11331 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11332 aix_use_runtimelinking=yes
11333 break
11335 done
11337 esac
11339 exp_sym_flag='-bexport'
11340 no_entry_flag='-bnoentry'
11343 # When large executables or shared objects are built, AIX ld can
11344 # have problems creating the table of contents. If linking a library
11345 # or program results in "error TOC overflow" add -mminimal-toc to
11346 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11347 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11349 archive_cmds=''
11350 hardcode_direct=yes
11351 hardcode_direct_absolute=yes
11352 hardcode_libdir_separator=':'
11353 link_all_deplibs=yes
11354 file_list_spec='${wl}-f,'
11356 if test "$GCC" = yes; then
11357 case $host_os in aix4.[012]|aix4.[012].*)
11358 # We only want to do this on AIX 4.2 and lower, the check
11359 # below for broken collect2 doesn't work under 4.3+
11360 collect2name=`${CC} -print-prog-name=collect2`
11361 if test -f "$collect2name" &&
11362 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11363 then
11364 # We have reworked collect2
11366 else
11367 # We have old collect2
11368 hardcode_direct=unsupported
11369 # It fails to find uninstalled libraries when the uninstalled
11370 # path is not listed in the libpath. Setting hardcode_minus_L
11371 # to unsupported forces relinking
11372 hardcode_minus_L=yes
11373 hardcode_libdir_flag_spec='-L$libdir'
11374 hardcode_libdir_separator=
11377 esac
11378 shared_flag='-shared'
11379 if test "$aix_use_runtimelinking" = yes; then
11380 shared_flag="$shared_flag "'${wl}-G'
11382 else
11383 # not using gcc
11384 if test "$host_cpu" = ia64; then
11385 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11386 # chokes on -Wl,-G. The following line is correct:
11387 shared_flag='-G'
11388 else
11389 if test "$aix_use_runtimelinking" = yes; then
11390 shared_flag='${wl}-G'
11391 else
11392 shared_flag='${wl}-bM:SRE'
11397 export_dynamic_flag_spec='${wl}-bexpall'
11398 # It seems that -bexpall does not export symbols beginning with
11399 # underscore (_), so it is better to generate a list of symbols to export.
11400 always_export_symbols=yes
11401 if test "$aix_use_runtimelinking" = yes; then
11402 # Warning - without using the other runtime loading flags (-brtl),
11403 # -berok will link without error, but may produce a broken library.
11404 allow_undefined_flag='-berok'
11405 # Determine the default libpath from the value encoded in an
11406 # empty executable.
11407 if test x$gcc_no_link = xyes; then
11408 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11411 /* end confdefs.h. */
11414 main ()
11418 return 0;
11420 _ACEOF
11421 if ac_fn_c_try_link "$LINENO"; then :
11423 lt_aix_libpath_sed='
11424 /Import File Strings/,/^$/ {
11425 /^0/ {
11426 s/^0 *\(.*\)$/\1/
11430 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11431 # Check for a 64-bit object if we didn't find anything.
11432 if test -z "$aix_libpath"; then
11433 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11436 rm -f core conftest.err conftest.$ac_objext \
11437 conftest$ac_exeext conftest.$ac_ext
11438 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11440 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11441 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"
11442 else
11443 if test "$host_cpu" = ia64; then
11444 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11445 allow_undefined_flag="-z nodefs"
11446 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"
11447 else
11448 # Determine the default libpath from the value encoded in an
11449 # empty executable.
11450 if test x$gcc_no_link = xyes; then
11451 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11454 /* end confdefs.h. */
11457 main ()
11461 return 0;
11463 _ACEOF
11464 if ac_fn_c_try_link "$LINENO"; then :
11466 lt_aix_libpath_sed='
11467 /Import File Strings/,/^$/ {
11468 /^0/ {
11469 s/^0 *\(.*\)$/\1/
11473 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11474 # Check for a 64-bit object if we didn't find anything.
11475 if test -z "$aix_libpath"; then
11476 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11479 rm -f core conftest.err conftest.$ac_objext \
11480 conftest$ac_exeext conftest.$ac_ext
11481 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11483 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11484 # Warning - without using the other run time loading flags,
11485 # -berok will link without error, but may produce a broken library.
11486 no_undefined_flag=' ${wl}-bernotok'
11487 allow_undefined_flag=' ${wl}-berok'
11488 if test "$with_gnu_ld" = yes; then
11489 # We only use this code for GNU lds that support --whole-archive.
11490 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11491 else
11492 # Exported symbols can be pulled into shared objects from archives
11493 whole_archive_flag_spec='$convenience'
11495 archive_cmds_need_lc=yes
11496 # This is similar to how AIX traditionally builds its shared libraries.
11497 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'
11502 amigaos*)
11503 case $host_cpu in
11504 powerpc)
11505 # see comment about AmigaOS4 .so support
11506 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11507 archive_expsym_cmds=''
11509 m68k)
11510 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)'
11511 hardcode_libdir_flag_spec='-L$libdir'
11512 hardcode_minus_L=yes
11514 esac
11517 bsdi[45]*)
11518 export_dynamic_flag_spec=-rdynamic
11521 cygwin* | mingw* | pw32* | cegcc*)
11522 # When not using gcc, we currently assume that we are using
11523 # Microsoft Visual C++.
11524 # hardcode_libdir_flag_spec is actually meaningless, as there is
11525 # no search path for DLLs.
11526 hardcode_libdir_flag_spec=' '
11527 allow_undefined_flag=unsupported
11528 # Tell ltmain to make .lib files, not .a files.
11529 libext=lib
11530 # Tell ltmain to make .dll files, not .so files.
11531 shrext_cmds=".dll"
11532 # FIXME: Setting linknames here is a bad hack.
11533 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11534 # The linker will automatically build a .lib file if we build a DLL.
11535 old_archive_from_new_cmds='true'
11536 # FIXME: Should let the user specify the lib program.
11537 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11538 fix_srcfile_path='`cygpath -w "$srcfile"`'
11539 enable_shared_with_static_runtimes=yes
11542 darwin* | rhapsody*)
11545 archive_cmds_need_lc=no
11546 hardcode_direct=no
11547 hardcode_automatic=yes
11548 hardcode_shlibpath_var=unsupported
11549 if test "$lt_cv_ld_force_load" = "yes"; then
11550 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\"`'
11551 else
11552 whole_archive_flag_spec=''
11554 link_all_deplibs=yes
11555 allow_undefined_flag="$_lt_dar_allow_undefined"
11556 case $cc_basename in
11557 ifort*) _lt_dar_can_shared=yes ;;
11558 *) _lt_dar_can_shared=$GCC ;;
11559 esac
11560 if test "$_lt_dar_can_shared" = "yes"; then
11561 output_verbose_link_cmd=func_echo_all
11562 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11563 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11564 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}"
11565 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}"
11567 else
11568 ld_shlibs=no
11573 dgux*)
11574 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11575 hardcode_libdir_flag_spec='-L$libdir'
11576 hardcode_shlibpath_var=no
11579 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11580 # support. Future versions do this automatically, but an explicit c++rt0.o
11581 # does not break anything, and helps significantly (at the cost of a little
11582 # extra space).
11583 freebsd2.2*)
11584 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11585 hardcode_libdir_flag_spec='-R$libdir'
11586 hardcode_direct=yes
11587 hardcode_shlibpath_var=no
11590 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11591 freebsd2.*)
11592 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11593 hardcode_direct=yes
11594 hardcode_minus_L=yes
11595 hardcode_shlibpath_var=no
11598 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11599 freebsd* | dragonfly*)
11600 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11601 hardcode_libdir_flag_spec='-R$libdir'
11602 hardcode_direct=yes
11603 hardcode_shlibpath_var=no
11606 hpux9*)
11607 if test "$GCC" = yes; then
11608 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'
11609 else
11610 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'
11612 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11613 hardcode_libdir_separator=:
11614 hardcode_direct=yes
11616 # hardcode_minus_L: Not really in the search PATH,
11617 # but as the default location of the library.
11618 hardcode_minus_L=yes
11619 export_dynamic_flag_spec='${wl}-E'
11622 hpux10*)
11623 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11624 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11625 else
11626 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11628 if test "$with_gnu_ld" = no; then
11629 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11630 hardcode_libdir_flag_spec_ld='+b $libdir'
11631 hardcode_libdir_separator=:
11632 hardcode_direct=yes
11633 hardcode_direct_absolute=yes
11634 export_dynamic_flag_spec='${wl}-E'
11635 # hardcode_minus_L: Not really in the search PATH,
11636 # but as the default location of the library.
11637 hardcode_minus_L=yes
11641 hpux11*)
11642 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11643 case $host_cpu in
11644 hppa*64*)
11645 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11647 ia64*)
11648 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11651 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11653 esac
11654 else
11655 case $host_cpu in
11656 hppa*64*)
11657 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11659 ia64*)
11660 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11664 # Older versions of the 11.00 compiler do not understand -b yet
11665 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11667 $as_echo_n "checking if $CC understands -b... " >&6; }
11668 if test "${lt_cv_prog_compiler__b+set}" = set; then :
11669 $as_echo_n "(cached) " >&6
11670 else
11671 lt_cv_prog_compiler__b=no
11672 save_LDFLAGS="$LDFLAGS"
11673 LDFLAGS="$LDFLAGS -b"
11674 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11675 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11676 # The linker can only warn and ignore the option if not recognized
11677 # So say no if there are warnings
11678 if test -s conftest.err; then
11679 # Append any errors to the config.log.
11680 cat conftest.err 1>&5
11681 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11682 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11683 if diff conftest.exp conftest.er2 >/dev/null; then
11684 lt_cv_prog_compiler__b=yes
11686 else
11687 lt_cv_prog_compiler__b=yes
11690 $RM -r conftest*
11691 LDFLAGS="$save_LDFLAGS"
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11695 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11697 if test x"$lt_cv_prog_compiler__b" = xyes; then
11698 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11699 else
11700 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11704 esac
11706 if test "$with_gnu_ld" = no; then
11707 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11708 hardcode_libdir_separator=:
11710 case $host_cpu in
11711 hppa*64*|ia64*)
11712 hardcode_direct=no
11713 hardcode_shlibpath_var=no
11716 hardcode_direct=yes
11717 hardcode_direct_absolute=yes
11718 export_dynamic_flag_spec='${wl}-E'
11720 # hardcode_minus_L: Not really in the search PATH,
11721 # but as the default location of the library.
11722 hardcode_minus_L=yes
11724 esac
11728 irix5* | irix6* | nonstopux*)
11729 if test "$GCC" = yes; then
11730 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'
11731 # Try to use the -exported_symbol ld option, if it does not
11732 # work, assume that -exports_file does not work either and
11733 # implicitly export all symbols.
11734 save_LDFLAGS="$LDFLAGS"
11735 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11736 if test x$gcc_no_link = xyes; then
11737 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11740 /* end confdefs.h. */
11741 int foo(void) {}
11742 _ACEOF
11743 if ac_fn_c_try_link "$LINENO"; then :
11744 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'
11747 rm -f core conftest.err conftest.$ac_objext \
11748 conftest$ac_exeext conftest.$ac_ext
11749 LDFLAGS="$save_LDFLAGS"
11750 else
11751 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'
11752 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'
11754 archive_cmds_need_lc='no'
11755 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11756 hardcode_libdir_separator=:
11757 inherit_rpath=yes
11758 link_all_deplibs=yes
11761 netbsd*)
11762 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11763 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11764 else
11765 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11767 hardcode_libdir_flag_spec='-R$libdir'
11768 hardcode_direct=yes
11769 hardcode_shlibpath_var=no
11772 newsos6)
11773 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11774 hardcode_direct=yes
11775 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11776 hardcode_libdir_separator=:
11777 hardcode_shlibpath_var=no
11780 *nto* | *qnx*)
11783 openbsd*)
11784 if test -f /usr/libexec/ld.so; then
11785 hardcode_direct=yes
11786 hardcode_shlibpath_var=no
11787 hardcode_direct_absolute=yes
11788 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11789 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11790 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11791 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11792 export_dynamic_flag_spec='${wl}-E'
11793 else
11794 case $host_os in
11795 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11796 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11797 hardcode_libdir_flag_spec='-R$libdir'
11800 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11801 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11803 esac
11805 else
11806 ld_shlibs=no
11810 os2*)
11811 hardcode_libdir_flag_spec='-L$libdir'
11812 hardcode_minus_L=yes
11813 allow_undefined_flag=unsupported
11814 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'
11815 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11818 osf3*)
11819 if test "$GCC" = yes; then
11820 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11821 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'
11822 else
11823 allow_undefined_flag=' -expect_unresolved \*'
11824 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'
11826 archive_cmds_need_lc='no'
11827 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11828 hardcode_libdir_separator=:
11831 osf4* | osf5*) # as osf3* with the addition of -msym flag
11832 if test "$GCC" = yes; then
11833 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11834 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'
11835 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11836 else
11837 allow_undefined_flag=' -expect_unresolved \*'
11838 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'
11839 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~
11840 $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'
11842 # Both c and cxx compiler support -rpath directly
11843 hardcode_libdir_flag_spec='-rpath $libdir'
11845 archive_cmds_need_lc='no'
11846 hardcode_libdir_separator=:
11849 solaris*)
11850 no_undefined_flag=' -z defs'
11851 if test "$GCC" = yes; then
11852 wlarc='${wl}'
11853 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11854 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11855 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11856 else
11857 case `$CC -V 2>&1` in
11858 *"Compilers 5.0"*)
11859 wlarc=''
11860 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11861 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11862 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11865 wlarc='${wl}'
11866 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11867 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11868 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11870 esac
11872 hardcode_libdir_flag_spec='-R$libdir'
11873 hardcode_shlibpath_var=no
11874 case $host_os in
11875 solaris2.[0-5] | solaris2.[0-5].*) ;;
11877 # The compiler driver will combine and reorder linker options,
11878 # but understands `-z linker_flag'. GCC discards it without `$wl',
11879 # but is careful enough not to reorder.
11880 # Supported since Solaris 2.6 (maybe 2.5.1?)
11881 if test "$GCC" = yes; then
11882 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11883 else
11884 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11887 esac
11888 link_all_deplibs=yes
11891 sunos4*)
11892 if test "x$host_vendor" = xsequent; then
11893 # Use $CC to link under sequent, because it throws in some extra .o
11894 # files that make .init and .fini sections work.
11895 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11896 else
11897 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11899 hardcode_libdir_flag_spec='-L$libdir'
11900 hardcode_direct=yes
11901 hardcode_minus_L=yes
11902 hardcode_shlibpath_var=no
11905 sysv4)
11906 case $host_vendor in
11907 sni)
11908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11909 hardcode_direct=yes # is this really true???
11911 siemens)
11912 ## LD is ld it makes a PLAMLIB
11913 ## CC just makes a GrossModule.
11914 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11915 reload_cmds='$CC -r -o $output$reload_objs'
11916 hardcode_direct=no
11918 motorola)
11919 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11920 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11922 esac
11923 runpath_var='LD_RUN_PATH'
11924 hardcode_shlibpath_var=no
11927 sysv4.3*)
11928 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11929 hardcode_shlibpath_var=no
11930 export_dynamic_flag_spec='-Bexport'
11933 sysv4*MP*)
11934 if test -d /usr/nec; then
11935 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11936 hardcode_shlibpath_var=no
11937 runpath_var=LD_RUN_PATH
11938 hardcode_runpath_var=yes
11939 ld_shlibs=yes
11943 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11944 no_undefined_flag='${wl}-z,text'
11945 archive_cmds_need_lc=no
11946 hardcode_shlibpath_var=no
11947 runpath_var='LD_RUN_PATH'
11949 if test "$GCC" = yes; then
11950 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11951 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11952 else
11953 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11954 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11958 sysv5* | sco3.2v5* | sco5v6*)
11959 # Note: We can NOT use -z defs as we might desire, because we do not
11960 # link with -lc, and that would cause any symbols used from libc to
11961 # always be unresolved, which means just about no library would
11962 # ever link correctly. If we're not using GNU ld we use -z text
11963 # though, which does catch some bad symbols but isn't as heavy-handed
11964 # as -z defs.
11965 no_undefined_flag='${wl}-z,text'
11966 allow_undefined_flag='${wl}-z,nodefs'
11967 archive_cmds_need_lc=no
11968 hardcode_shlibpath_var=no
11969 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11970 hardcode_libdir_separator=':'
11971 link_all_deplibs=yes
11972 export_dynamic_flag_spec='${wl}-Bexport'
11973 runpath_var='LD_RUN_PATH'
11975 if test "$GCC" = yes; then
11976 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11977 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11978 else
11979 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11980 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11984 uts4*)
11985 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11986 hardcode_libdir_flag_spec='-L$libdir'
11987 hardcode_shlibpath_var=no
11991 ld_shlibs=no
11993 esac
11995 if test x$host_vendor = xsni; then
11996 case $host in
11997 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11998 export_dynamic_flag_spec='${wl}-Blargedynsym'
12000 esac
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12005 $as_echo "$ld_shlibs" >&6; }
12006 test "$ld_shlibs" = no && can_build_shared=no
12008 with_gnu_ld=$with_gnu_ld
12025 # Do we need to explicitly link libc?
12027 case "x$archive_cmds_need_lc" in
12028 x|xyes)
12029 # Assume -lc should be added
12030 archive_cmds_need_lc=yes
12032 if test "$enable_shared" = yes && test "$GCC" = yes; then
12033 case $archive_cmds in
12034 *'~'*)
12035 # FIXME: we may have to deal with multi-command sequences.
12037 '$CC '*)
12038 # Test whether the compiler implicitly links with -lc since on some
12039 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12040 # to ld, don't add -lc before -lgcc.
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12042 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12043 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
12044 $as_echo_n "(cached) " >&6
12045 else
12046 $RM conftest*
12047 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12050 (eval $ac_compile) 2>&5
12051 ac_status=$?
12052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12053 test $ac_status = 0; } 2>conftest.err; then
12054 soname=conftest
12055 lib=conftest
12056 libobjs=conftest.$ac_objext
12057 deplibs=
12058 wl=$lt_prog_compiler_wl
12059 pic_flag=$lt_prog_compiler_pic
12060 compiler_flags=-v
12061 linker_flags=-v
12062 verstring=
12063 output_objdir=.
12064 libname=conftest
12065 lt_save_allow_undefined_flag=$allow_undefined_flag
12066 allow_undefined_flag=
12067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12068 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12069 ac_status=$?
12070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12071 test $ac_status = 0; }
12072 then
12073 lt_cv_archive_cmds_need_lc=no
12074 else
12075 lt_cv_archive_cmds_need_lc=yes
12077 allow_undefined_flag=$lt_save_allow_undefined_flag
12078 else
12079 cat conftest.err 1>&5
12081 $RM conftest*
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12085 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12086 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12088 esac
12091 esac
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12250 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12252 if test "$GCC" = yes; then
12253 case $host_os in
12254 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12255 *) lt_awk_arg="/^libraries:/" ;;
12256 esac
12257 case $host_os in
12258 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12259 *) lt_sed_strip_eq="s,=/,/,g" ;;
12260 esac
12261 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12262 case $lt_search_path_spec in
12263 *\;*)
12264 # if the path contains ";" then we assume it to be the separator
12265 # otherwise default to the standard path separator (i.e. ":") - it is
12266 # assumed that no part of a normal pathname contains ";" but that should
12267 # okay in the real world where ";" in dirpaths is itself problematic.
12268 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12271 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12273 esac
12274 # Ok, now we have the path, separated by spaces, we can step through it
12275 # and add multilib dir if necessary.
12276 lt_tmp_lt_search_path_spec=
12277 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12278 for lt_sys_path in $lt_search_path_spec; do
12279 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12280 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12281 else
12282 test -d "$lt_sys_path" && \
12283 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12285 done
12286 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12287 BEGIN {RS=" "; FS="/|\n";} {
12288 lt_foo="";
12289 lt_count=0;
12290 for (lt_i = NF; lt_i > 0; lt_i--) {
12291 if ($lt_i != "" && $lt_i != ".") {
12292 if ($lt_i == "..") {
12293 lt_count++;
12294 } else {
12295 if (lt_count == 0) {
12296 lt_foo="/" $lt_i lt_foo;
12297 } else {
12298 lt_count--;
12303 if (lt_foo != "") { lt_freq[lt_foo]++; }
12304 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12306 # AWK program above erroneously prepends '/' to C:/dos/paths
12307 # for these hosts.
12308 case $host_os in
12309 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12310 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12311 esac
12312 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12313 else
12314 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12316 library_names_spec=
12317 libname_spec='lib$name'
12318 soname_spec=
12319 shrext_cmds=".so"
12320 postinstall_cmds=
12321 postuninstall_cmds=
12322 finish_cmds=
12323 finish_eval=
12324 shlibpath_var=
12325 shlibpath_overrides_runpath=unknown
12326 version_type=none
12327 dynamic_linker="$host_os ld.so"
12328 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12329 need_lib_prefix=unknown
12330 hardcode_into_libs=no
12332 # when you set need_version to no, make sure it does not cause -set_version
12333 # flags to be left without arguments
12334 need_version=unknown
12336 case $host_os in
12337 aix3*)
12338 version_type=linux
12339 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12340 shlibpath_var=LIBPATH
12342 # AIX 3 has no versioning support, so we append a major version to the name.
12343 soname_spec='${libname}${release}${shared_ext}$major'
12346 aix[4-9]*)
12347 version_type=linux
12348 need_lib_prefix=no
12349 need_version=no
12350 hardcode_into_libs=yes
12351 if test "$host_cpu" = ia64; then
12352 # AIX 5 supports IA64
12353 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12354 shlibpath_var=LD_LIBRARY_PATH
12355 else
12356 # With GCC up to 2.95.x, collect2 would create an import file
12357 # for dependence libraries. The import file would start with
12358 # the line `#! .'. This would cause the generated library to
12359 # depend on `.', always an invalid library. This was fixed in
12360 # development snapshots of GCC prior to 3.0.
12361 case $host_os in
12362 aix4 | aix4.[01] | aix4.[01].*)
12363 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12364 echo ' yes '
12365 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12367 else
12368 can_build_shared=no
12371 esac
12372 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12373 # soname into executable. Probably we can add versioning support to
12374 # collect2, so additional links can be useful in future.
12375 if test "$aix_use_runtimelinking" = yes; then
12376 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12377 # instead of lib<name>.a to let people know that these are not
12378 # typical AIX shared libraries.
12379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12380 else
12381 # We preserve .a as extension for shared libraries through AIX4.2
12382 # and later when we are not doing run time linking.
12383 library_names_spec='${libname}${release}.a $libname.a'
12384 soname_spec='${libname}${release}${shared_ext}$major'
12386 shlibpath_var=LIBPATH
12390 amigaos*)
12391 case $host_cpu in
12392 powerpc)
12393 # Since July 2007 AmigaOS4 officially supports .so libraries.
12394 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12397 m68k)
12398 library_names_spec='$libname.ixlibrary $libname.a'
12399 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12400 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'
12402 esac
12405 beos*)
12406 library_names_spec='${libname}${shared_ext}'
12407 dynamic_linker="$host_os ld.so"
12408 shlibpath_var=LIBRARY_PATH
12411 bsdi[45]*)
12412 version_type=linux
12413 need_version=no
12414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12415 soname_spec='${libname}${release}${shared_ext}$major'
12416 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12417 shlibpath_var=LD_LIBRARY_PATH
12418 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12419 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12420 # the default ld.so.conf also contains /usr/contrib/lib and
12421 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12422 # libtool to hard-code these into programs
12425 cygwin* | mingw* | pw32* | cegcc*)
12426 version_type=windows
12427 shrext_cmds=".dll"
12428 need_version=no
12429 need_lib_prefix=no
12431 case $GCC,$host_os in
12432 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12433 library_names_spec='$libname.dll.a'
12434 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12435 postinstall_cmds='base_file=`basename \${file}`~
12436 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12437 dldir=$destdir/`dirname \$dlpath`~
12438 test -d \$dldir || mkdir -p \$dldir~
12439 $install_prog $dir/$dlname \$dldir/$dlname~
12440 chmod a+x \$dldir/$dlname~
12441 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12442 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12444 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12445 dlpath=$dir/\$dldll~
12446 $RM \$dlpath'
12447 shlibpath_overrides_runpath=yes
12449 case $host_os in
12450 cygwin*)
12451 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12452 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12454 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12456 mingw* | cegcc*)
12457 # MinGW DLLs use traditional 'lib' prefix
12458 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12460 pw32*)
12461 # pw32 DLLs use 'pw' prefix rather than 'lib'
12462 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12464 esac
12468 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12470 esac
12471 dynamic_linker='Win32 ld.exe'
12472 # FIXME: first we should search . and the directory the executable is in
12473 shlibpath_var=PATH
12476 darwin* | rhapsody*)
12477 dynamic_linker="$host_os dyld"
12478 version_type=darwin
12479 need_lib_prefix=no
12480 need_version=no
12481 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12482 soname_spec='${libname}${release}${major}$shared_ext'
12483 shlibpath_overrides_runpath=yes
12484 shlibpath_var=DYLD_LIBRARY_PATH
12485 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12487 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12488 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12491 dgux*)
12492 version_type=linux
12493 need_lib_prefix=no
12494 need_version=no
12495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12496 soname_spec='${libname}${release}${shared_ext}$major'
12497 shlibpath_var=LD_LIBRARY_PATH
12500 freebsd* | dragonfly*)
12501 # DragonFly does not have aout. When/if they implement a new
12502 # versioning mechanism, adjust this.
12503 if test -x /usr/bin/objformat; then
12504 objformat=`/usr/bin/objformat`
12505 else
12506 case $host_os in
12507 freebsd[23].*) objformat=aout ;;
12508 *) objformat=elf ;;
12509 esac
12511 version_type=freebsd-$objformat
12512 case $version_type in
12513 freebsd-elf*)
12514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12515 need_version=no
12516 need_lib_prefix=no
12518 freebsd-*)
12519 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12520 need_version=yes
12522 esac
12523 shlibpath_var=LD_LIBRARY_PATH
12524 case $host_os in
12525 freebsd2.*)
12526 shlibpath_overrides_runpath=yes
12528 freebsd3.[01]* | freebsdelf3.[01]*)
12529 shlibpath_overrides_runpath=yes
12530 hardcode_into_libs=yes
12532 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12533 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12534 shlibpath_overrides_runpath=no
12535 hardcode_into_libs=yes
12537 *) # from 4.6 on, and DragonFly
12538 shlibpath_overrides_runpath=yes
12539 hardcode_into_libs=yes
12541 esac
12544 gnu*)
12545 version_type=linux
12546 need_lib_prefix=no
12547 need_version=no
12548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12549 soname_spec='${libname}${release}${shared_ext}$major'
12550 shlibpath_var=LD_LIBRARY_PATH
12551 hardcode_into_libs=yes
12554 haiku*)
12555 version_type=linux
12556 need_lib_prefix=no
12557 need_version=no
12558 dynamic_linker="$host_os runtime_loader"
12559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12560 soname_spec='${libname}${release}${shared_ext}$major'
12561 shlibpath_var=LIBRARY_PATH
12562 shlibpath_overrides_runpath=yes
12563 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
12564 hardcode_into_libs=yes
12567 hpux9* | hpux10* | hpux11*)
12568 # Give a soname corresponding to the major version so that dld.sl refuses to
12569 # link against other versions.
12570 version_type=sunos
12571 need_lib_prefix=no
12572 need_version=no
12573 case $host_cpu in
12574 ia64*)
12575 shrext_cmds='.so'
12576 hardcode_into_libs=yes
12577 dynamic_linker="$host_os dld.so"
12578 shlibpath_var=LD_LIBRARY_PATH
12579 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12581 soname_spec='${libname}${release}${shared_ext}$major'
12582 if test "X$HPUX_IA64_MODE" = X32; then
12583 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12584 else
12585 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12587 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12589 hppa*64*)
12590 shrext_cmds='.sl'
12591 hardcode_into_libs=yes
12592 dynamic_linker="$host_os dld.sl"
12593 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12594 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12596 soname_spec='${libname}${release}${shared_ext}$major'
12597 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12598 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12601 shrext_cmds='.sl'
12602 dynamic_linker="$host_os dld.sl"
12603 shlibpath_var=SHLIB_PATH
12604 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12606 soname_spec='${libname}${release}${shared_ext}$major'
12608 esac
12609 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12610 postinstall_cmds='chmod 555 $lib'
12611 # or fails outright, so override atomically:
12612 install_override_mode=555
12615 interix[3-9]*)
12616 version_type=linux
12617 need_lib_prefix=no
12618 need_version=no
12619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12620 soname_spec='${libname}${release}${shared_ext}$major'
12621 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12622 shlibpath_var=LD_LIBRARY_PATH
12623 shlibpath_overrides_runpath=no
12624 hardcode_into_libs=yes
12627 irix5* | irix6* | nonstopux*)
12628 case $host_os in
12629 nonstopux*) version_type=nonstopux ;;
12631 if test "$lt_cv_prog_gnu_ld" = yes; then
12632 version_type=linux
12633 else
12634 version_type=irix
12635 fi ;;
12636 esac
12637 need_lib_prefix=no
12638 need_version=no
12639 soname_spec='${libname}${release}${shared_ext}$major'
12640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12641 case $host_os in
12642 irix5* | nonstopux*)
12643 libsuff= shlibsuff=
12646 case $LD in # libtool.m4 will add one of these switches to LD
12647 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12648 libsuff= shlibsuff= libmagic=32-bit;;
12649 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12650 libsuff=32 shlibsuff=N32 libmagic=N32;;
12651 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12652 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12653 *) libsuff= shlibsuff= libmagic=never-match;;
12654 esac
12656 esac
12657 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12658 shlibpath_overrides_runpath=no
12659 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12660 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12661 hardcode_into_libs=yes
12664 # No shared lib support for Linux oldld, aout, or coff.
12665 linux*oldld* | linux*aout* | linux*coff*)
12666 dynamic_linker=no
12669 # This must be Linux ELF.
12670 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12671 version_type=linux
12672 need_lib_prefix=no
12673 need_version=no
12674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12675 soname_spec='${libname}${release}${shared_ext}$major'
12676 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12677 shlibpath_var=LD_LIBRARY_PATH
12678 shlibpath_overrides_runpath=no
12680 # Some binutils ld are patched to set DT_RUNPATH
12681 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
12682 $as_echo_n "(cached) " >&6
12683 else
12684 lt_cv_shlibpath_overrides_runpath=no
12685 save_LDFLAGS=$LDFLAGS
12686 save_libdir=$libdir
12687 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12688 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12689 if test x$gcc_no_link = xyes; then
12690 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12693 /* end confdefs.h. */
12696 main ()
12700 return 0;
12702 _ACEOF
12703 if ac_fn_c_try_link "$LINENO"; then :
12704 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12705 lt_cv_shlibpath_overrides_runpath=yes
12708 rm -f core conftest.err conftest.$ac_objext \
12709 conftest$ac_exeext conftest.$ac_ext
12710 LDFLAGS=$save_LDFLAGS
12711 libdir=$save_libdir
12715 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12717 # This implies no fast_install, which is unacceptable.
12718 # Some rework will be needed to allow for fast_install
12719 # before this can be enabled.
12720 hardcode_into_libs=yes
12722 # Append ld.so.conf contents to the search path
12723 if test -f /etc/ld.so.conf; then
12724 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' ' '`
12725 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12728 # We used to test for /lib/ld.so.1 and disable shared libraries on
12729 # powerpc, because MkLinux only supported shared libraries with the
12730 # GNU dynamic linker. Since this was broken with cross compilers,
12731 # most powerpc-linux boxes support dynamic linking these days and
12732 # people can always --disable-shared, the test was removed, and we
12733 # assume the GNU/Linux dynamic linker is in use.
12734 dynamic_linker='GNU/Linux ld.so'
12737 netbsd*)
12738 version_type=sunos
12739 need_lib_prefix=no
12740 need_version=no
12741 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12743 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12744 dynamic_linker='NetBSD (a.out) ld.so'
12745 else
12746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12747 soname_spec='${libname}${release}${shared_ext}$major'
12748 dynamic_linker='NetBSD ld.elf_so'
12750 shlibpath_var=LD_LIBRARY_PATH
12751 shlibpath_overrides_runpath=yes
12752 hardcode_into_libs=yes
12755 newsos6)
12756 version_type=linux
12757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12758 shlibpath_var=LD_LIBRARY_PATH
12759 shlibpath_overrides_runpath=yes
12762 *nto* | *qnx*)
12763 version_type=qnx
12764 need_lib_prefix=no
12765 need_version=no
12766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12767 soname_spec='${libname}${release}${shared_ext}$major'
12768 shlibpath_var=LD_LIBRARY_PATH
12769 shlibpath_overrides_runpath=no
12770 hardcode_into_libs=yes
12771 dynamic_linker='ldqnx.so'
12774 openbsd*)
12775 version_type=sunos
12776 sys_lib_dlsearch_path_spec="/usr/lib"
12777 need_lib_prefix=no
12778 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12779 case $host_os in
12780 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12781 *) need_version=no ;;
12782 esac
12783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12784 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12785 shlibpath_var=LD_LIBRARY_PATH
12786 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12787 case $host_os in
12788 openbsd2.[89] | openbsd2.[89].*)
12789 shlibpath_overrides_runpath=no
12792 shlibpath_overrides_runpath=yes
12794 esac
12795 else
12796 shlibpath_overrides_runpath=yes
12800 os2*)
12801 libname_spec='$name'
12802 shrext_cmds=".dll"
12803 need_lib_prefix=no
12804 library_names_spec='$libname${shared_ext} $libname.a'
12805 dynamic_linker='OS/2 ld.exe'
12806 shlibpath_var=LIBPATH
12809 osf3* | osf4* | osf5*)
12810 version_type=osf
12811 need_lib_prefix=no
12812 need_version=no
12813 soname_spec='${libname}${release}${shared_ext}$major'
12814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12815 shlibpath_var=LD_LIBRARY_PATH
12816 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12817 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12820 rdos*)
12821 dynamic_linker=no
12824 solaris*)
12825 version_type=linux
12826 need_lib_prefix=no
12827 need_version=no
12828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12829 soname_spec='${libname}${release}${shared_ext}$major'
12830 shlibpath_var=LD_LIBRARY_PATH
12831 shlibpath_overrides_runpath=yes
12832 hardcode_into_libs=yes
12833 # ldd complains unless libraries are executable
12834 postinstall_cmds='chmod +x $lib'
12837 sunos4*)
12838 version_type=sunos
12839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12840 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12841 shlibpath_var=LD_LIBRARY_PATH
12842 shlibpath_overrides_runpath=yes
12843 if test "$with_gnu_ld" = yes; then
12844 need_lib_prefix=no
12846 need_version=yes
12849 sysv4 | sysv4.3*)
12850 version_type=linux
12851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12852 soname_spec='${libname}${release}${shared_ext}$major'
12853 shlibpath_var=LD_LIBRARY_PATH
12854 case $host_vendor in
12855 sni)
12856 shlibpath_overrides_runpath=no
12857 need_lib_prefix=no
12858 runpath_var=LD_RUN_PATH
12860 siemens)
12861 need_lib_prefix=no
12863 motorola)
12864 need_lib_prefix=no
12865 need_version=no
12866 shlibpath_overrides_runpath=no
12867 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12869 esac
12872 sysv4*MP*)
12873 if test -d /usr/nec ;then
12874 version_type=linux
12875 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12876 soname_spec='$libname${shared_ext}.$major'
12877 shlibpath_var=LD_LIBRARY_PATH
12881 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12882 version_type=freebsd-elf
12883 need_lib_prefix=no
12884 need_version=no
12885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12886 soname_spec='${libname}${release}${shared_ext}$major'
12887 shlibpath_var=LD_LIBRARY_PATH
12888 shlibpath_overrides_runpath=yes
12889 hardcode_into_libs=yes
12890 if test "$with_gnu_ld" = yes; then
12891 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12892 else
12893 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12894 case $host_os in
12895 sco3.2v5*)
12896 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12898 esac
12900 sys_lib_dlsearch_path_spec='/usr/lib'
12903 tpf*)
12904 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12905 version_type=linux
12906 need_lib_prefix=no
12907 need_version=no
12908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12909 shlibpath_var=LD_LIBRARY_PATH
12910 shlibpath_overrides_runpath=no
12911 hardcode_into_libs=yes
12914 uts4*)
12915 version_type=linux
12916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12917 soname_spec='${libname}${release}${shared_ext}$major'
12918 shlibpath_var=LD_LIBRARY_PATH
12922 dynamic_linker=no
12924 esac
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12926 $as_echo "$dynamic_linker" >&6; }
12927 test "$dynamic_linker" = no && can_build_shared=no
12929 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12930 if test "$GCC" = yes; then
12931 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12934 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12935 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12937 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12938 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13033 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13034 hardcode_action=
13035 if test -n "$hardcode_libdir_flag_spec" ||
13036 test -n "$runpath_var" ||
13037 test "X$hardcode_automatic" = "Xyes" ; then
13039 # We can hardcode non-existent directories.
13040 if test "$hardcode_direct" != no &&
13041 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13042 # have to relink, otherwise we might link with an installed library
13043 # when we should be linking with a yet-to-be-installed one
13044 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13045 test "$hardcode_minus_L" != no; then
13046 # Linking always hardcodes the temporary library directory.
13047 hardcode_action=relink
13048 else
13049 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13050 hardcode_action=immediate
13052 else
13053 # We cannot hardcode anything, or else we can only hardcode existing
13054 # directories.
13055 hardcode_action=unsupported
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13058 $as_echo "$hardcode_action" >&6; }
13060 if test "$hardcode_action" = relink ||
13061 test "$inherit_rpath" = yes; then
13062 # Fast installation is not supported
13063 enable_fast_install=no
13064 elif test "$shlibpath_overrides_runpath" = yes ||
13065 test "$enable_shared" = no; then
13066 # Fast installation is not necessary
13067 enable_fast_install=needless
13075 if test "x$enable_dlopen" != xyes; then
13076 enable_dlopen=unknown
13077 enable_dlopen_self=unknown
13078 enable_dlopen_self_static=unknown
13079 else
13080 lt_cv_dlopen=no
13081 lt_cv_dlopen_libs=
13083 case $host_os in
13084 beos*)
13085 lt_cv_dlopen="load_add_on"
13086 lt_cv_dlopen_libs=
13087 lt_cv_dlopen_self=yes
13090 mingw* | pw32* | cegcc*)
13091 lt_cv_dlopen="LoadLibrary"
13092 lt_cv_dlopen_libs=
13095 cygwin*)
13096 lt_cv_dlopen="dlopen"
13097 lt_cv_dlopen_libs=
13100 darwin*)
13101 # if libdl is installed we need to link against it
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13103 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13104 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13105 $as_echo_n "(cached) " >&6
13106 else
13107 ac_check_lib_save_LIBS=$LIBS
13108 LIBS="-ldl $LIBS"
13109 if test x$gcc_no_link = xyes; then
13110 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13113 /* end confdefs.h. */
13115 /* Override any GCC internal prototype to avoid an error.
13116 Use char because int might match the return type of a GCC
13117 builtin and then its argument prototype would still apply. */
13118 #ifdef __cplusplus
13119 extern "C"
13120 #endif
13121 char dlopen ();
13123 main ()
13125 return dlopen ();
13127 return 0;
13129 _ACEOF
13130 if ac_fn_c_try_link "$LINENO"; then :
13131 ac_cv_lib_dl_dlopen=yes
13132 else
13133 ac_cv_lib_dl_dlopen=no
13135 rm -f core conftest.err conftest.$ac_objext \
13136 conftest$ac_exeext conftest.$ac_ext
13137 LIBS=$ac_check_lib_save_LIBS
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13140 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13141 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13142 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13143 else
13145 lt_cv_dlopen="dyld"
13146 lt_cv_dlopen_libs=
13147 lt_cv_dlopen_self=yes
13154 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13155 if test "x$ac_cv_func_shl_load" = x""yes; then :
13156 lt_cv_dlopen="shl_load"
13157 else
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13159 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13160 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13161 $as_echo_n "(cached) " >&6
13162 else
13163 ac_check_lib_save_LIBS=$LIBS
13164 LIBS="-ldld $LIBS"
13165 if test x$gcc_no_link = xyes; then
13166 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13169 /* end confdefs.h. */
13171 /* Override any GCC internal prototype to avoid an error.
13172 Use char because int might match the return type of a GCC
13173 builtin and then its argument prototype would still apply. */
13174 #ifdef __cplusplus
13175 extern "C"
13176 #endif
13177 char shl_load ();
13179 main ()
13181 return shl_load ();
13183 return 0;
13185 _ACEOF
13186 if ac_fn_c_try_link "$LINENO"; then :
13187 ac_cv_lib_dld_shl_load=yes
13188 else
13189 ac_cv_lib_dld_shl_load=no
13191 rm -f core conftest.err conftest.$ac_objext \
13192 conftest$ac_exeext conftest.$ac_ext
13193 LIBS=$ac_check_lib_save_LIBS
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13196 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13197 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13198 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13199 else
13200 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13201 if test "x$ac_cv_func_dlopen" = x""yes; then :
13202 lt_cv_dlopen="dlopen"
13203 else
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13205 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13206 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13207 $as_echo_n "(cached) " >&6
13208 else
13209 ac_check_lib_save_LIBS=$LIBS
13210 LIBS="-ldl $LIBS"
13211 if test x$gcc_no_link = xyes; then
13212 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13215 /* end confdefs.h. */
13217 /* Override any GCC internal prototype to avoid an error.
13218 Use char because int might match the return type of a GCC
13219 builtin and then its argument prototype would still apply. */
13220 #ifdef __cplusplus
13221 extern "C"
13222 #endif
13223 char dlopen ();
13225 main ()
13227 return dlopen ();
13229 return 0;
13231 _ACEOF
13232 if ac_fn_c_try_link "$LINENO"; then :
13233 ac_cv_lib_dl_dlopen=yes
13234 else
13235 ac_cv_lib_dl_dlopen=no
13237 rm -f core conftest.err conftest.$ac_objext \
13238 conftest$ac_exeext conftest.$ac_ext
13239 LIBS=$ac_check_lib_save_LIBS
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13242 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13243 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13244 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13245 else
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13247 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13248 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13249 $as_echo_n "(cached) " >&6
13250 else
13251 ac_check_lib_save_LIBS=$LIBS
13252 LIBS="-lsvld $LIBS"
13253 if test x$gcc_no_link = xyes; then
13254 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13257 /* end confdefs.h. */
13259 /* Override any GCC internal prototype to avoid an error.
13260 Use char because int might match the return type of a GCC
13261 builtin and then its argument prototype would still apply. */
13262 #ifdef __cplusplus
13263 extern "C"
13264 #endif
13265 char dlopen ();
13267 main ()
13269 return dlopen ();
13271 return 0;
13273 _ACEOF
13274 if ac_fn_c_try_link "$LINENO"; then :
13275 ac_cv_lib_svld_dlopen=yes
13276 else
13277 ac_cv_lib_svld_dlopen=no
13279 rm -f core conftest.err conftest.$ac_objext \
13280 conftest$ac_exeext conftest.$ac_ext
13281 LIBS=$ac_check_lib_save_LIBS
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13284 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13285 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13286 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13287 else
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13289 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13290 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13291 $as_echo_n "(cached) " >&6
13292 else
13293 ac_check_lib_save_LIBS=$LIBS
13294 LIBS="-ldld $LIBS"
13295 if test x$gcc_no_link = xyes; then
13296 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13299 /* end confdefs.h. */
13301 /* Override any GCC internal prototype to avoid an error.
13302 Use char because int might match the return type of a GCC
13303 builtin and then its argument prototype would still apply. */
13304 #ifdef __cplusplus
13305 extern "C"
13306 #endif
13307 char dld_link ();
13309 main ()
13311 return dld_link ();
13313 return 0;
13315 _ACEOF
13316 if ac_fn_c_try_link "$LINENO"; then :
13317 ac_cv_lib_dld_dld_link=yes
13318 else
13319 ac_cv_lib_dld_dld_link=no
13321 rm -f core conftest.err conftest.$ac_objext \
13322 conftest$ac_exeext conftest.$ac_ext
13323 LIBS=$ac_check_lib_save_LIBS
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13326 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13327 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13328 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13347 esac
13349 if test "x$lt_cv_dlopen" != xno; then
13350 enable_dlopen=yes
13351 else
13352 enable_dlopen=no
13355 case $lt_cv_dlopen in
13356 dlopen)
13357 save_CPPFLAGS="$CPPFLAGS"
13358 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13360 save_LDFLAGS="$LDFLAGS"
13361 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13363 save_LIBS="$LIBS"
13364 LIBS="$lt_cv_dlopen_libs $LIBS"
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13367 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13368 if test "${lt_cv_dlopen_self+set}" = set; then :
13369 $as_echo_n "(cached) " >&6
13370 else
13371 if test "$cross_compiling" = yes; then :
13372 lt_cv_dlopen_self=cross
13373 else
13374 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13375 lt_status=$lt_dlunknown
13376 cat > conftest.$ac_ext <<_LT_EOF
13377 #line 13362 "configure"
13378 #include "confdefs.h"
13380 #if HAVE_DLFCN_H
13381 #include <dlfcn.h>
13382 #endif
13384 #include <stdio.h>
13386 #ifdef RTLD_GLOBAL
13387 # define LT_DLGLOBAL RTLD_GLOBAL
13388 #else
13389 # ifdef DL_GLOBAL
13390 # define LT_DLGLOBAL DL_GLOBAL
13391 # else
13392 # define LT_DLGLOBAL 0
13393 # endif
13394 #endif
13396 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13397 find out it does not work in some platform. */
13398 #ifndef LT_DLLAZY_OR_NOW
13399 # ifdef RTLD_LAZY
13400 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13401 # else
13402 # ifdef DL_LAZY
13403 # define LT_DLLAZY_OR_NOW DL_LAZY
13404 # else
13405 # ifdef RTLD_NOW
13406 # define LT_DLLAZY_OR_NOW RTLD_NOW
13407 # else
13408 # ifdef DL_NOW
13409 # define LT_DLLAZY_OR_NOW DL_NOW
13410 # else
13411 # define LT_DLLAZY_OR_NOW 0
13412 # endif
13413 # endif
13414 # endif
13415 # endif
13416 #endif
13418 /* When -fvisbility=hidden is used, assume the code has been annotated
13419 correspondingly for the symbols needed. */
13420 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13421 void fnord () __attribute__((visibility("default")));
13422 #endif
13424 void fnord () { int i=42; }
13425 int main ()
13427 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13428 int status = $lt_dlunknown;
13430 if (self)
13432 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13433 else
13435 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13436 else puts (dlerror ());
13438 /* dlclose (self); */
13440 else
13441 puts (dlerror ());
13443 return status;
13445 _LT_EOF
13446 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13447 (eval $ac_link) 2>&5
13448 ac_status=$?
13449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13450 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13451 (./conftest; exit; ) >&5 2>/dev/null
13452 lt_status=$?
13453 case x$lt_status in
13454 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13455 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13456 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13457 esac
13458 else :
13459 # compilation failed
13460 lt_cv_dlopen_self=no
13463 rm -fr conftest*
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13468 $as_echo "$lt_cv_dlopen_self" >&6; }
13470 if test "x$lt_cv_dlopen_self" = xyes; then
13471 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13473 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13474 if test "${lt_cv_dlopen_self_static+set}" = set; then :
13475 $as_echo_n "(cached) " >&6
13476 else
13477 if test "$cross_compiling" = yes; then :
13478 lt_cv_dlopen_self_static=cross
13479 else
13480 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13481 lt_status=$lt_dlunknown
13482 cat > conftest.$ac_ext <<_LT_EOF
13483 #line 13468 "configure"
13484 #include "confdefs.h"
13486 #if HAVE_DLFCN_H
13487 #include <dlfcn.h>
13488 #endif
13490 #include <stdio.h>
13492 #ifdef RTLD_GLOBAL
13493 # define LT_DLGLOBAL RTLD_GLOBAL
13494 #else
13495 # ifdef DL_GLOBAL
13496 # define LT_DLGLOBAL DL_GLOBAL
13497 # else
13498 # define LT_DLGLOBAL 0
13499 # endif
13500 #endif
13502 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13503 find out it does not work in some platform. */
13504 #ifndef LT_DLLAZY_OR_NOW
13505 # ifdef RTLD_LAZY
13506 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13507 # else
13508 # ifdef DL_LAZY
13509 # define LT_DLLAZY_OR_NOW DL_LAZY
13510 # else
13511 # ifdef RTLD_NOW
13512 # define LT_DLLAZY_OR_NOW RTLD_NOW
13513 # else
13514 # ifdef DL_NOW
13515 # define LT_DLLAZY_OR_NOW DL_NOW
13516 # else
13517 # define LT_DLLAZY_OR_NOW 0
13518 # endif
13519 # endif
13520 # endif
13521 # endif
13522 #endif
13524 /* When -fvisbility=hidden is used, assume the code has been annotated
13525 correspondingly for the symbols needed. */
13526 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13527 void fnord () __attribute__((visibility("default")));
13528 #endif
13530 void fnord () { int i=42; }
13531 int main ()
13533 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13534 int status = $lt_dlunknown;
13536 if (self)
13538 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13539 else
13541 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13542 else puts (dlerror ());
13544 /* dlclose (self); */
13546 else
13547 puts (dlerror ());
13549 return status;
13551 _LT_EOF
13552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13553 (eval $ac_link) 2>&5
13554 ac_status=$?
13555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13556 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13557 (./conftest; exit; ) >&5 2>/dev/null
13558 lt_status=$?
13559 case x$lt_status in
13560 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13561 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13562 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13563 esac
13564 else :
13565 # compilation failed
13566 lt_cv_dlopen_self_static=no
13569 rm -fr conftest*
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13574 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13577 CPPFLAGS="$save_CPPFLAGS"
13578 LDFLAGS="$save_LDFLAGS"
13579 LIBS="$save_LIBS"
13581 esac
13583 case $lt_cv_dlopen_self in
13584 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13585 *) enable_dlopen_self=unknown ;;
13586 esac
13588 case $lt_cv_dlopen_self_static in
13589 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13590 *) enable_dlopen_self_static=unknown ;;
13591 esac
13610 striplib=
13611 old_striplib=
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13613 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13614 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13615 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13616 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13618 $as_echo "yes" >&6; }
13619 else
13620 # FIXME - insert some real tests, host_os isn't really good enough
13621 case $host_os in
13622 darwin*)
13623 if test -n "$STRIP" ; then
13624 striplib="$STRIP -x"
13625 old_striplib="$STRIP -S"
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13627 $as_echo "yes" >&6; }
13628 else
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13630 $as_echo "no" >&6; }
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13635 $as_echo "no" >&6; }
13637 esac
13651 # Report which library types will actually be built
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13653 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13655 $as_echo "$can_build_shared" >&6; }
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13658 $as_echo_n "checking whether to build shared libraries... " >&6; }
13659 test "$can_build_shared" = "no" && enable_shared=no
13661 # On AIX, shared libraries and static libraries use the same namespace, and
13662 # are all built from PIC.
13663 case $host_os in
13664 aix3*)
13665 test "$enable_shared" = yes && enable_static=no
13666 if test -n "$RANLIB"; then
13667 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13668 postinstall_cmds='$RANLIB $lib'
13672 aix[4-9]*)
13673 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13674 test "$enable_shared" = yes && enable_static=no
13677 esac
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13679 $as_echo "$enable_shared" >&6; }
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13682 $as_echo_n "checking whether to build static libraries... " >&6; }
13683 # Make sure either enable_shared or enable_static is yes.
13684 test "$enable_shared" = yes || enable_static=yes
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13686 $as_echo "$enable_static" >&6; }
13692 ac_ext=c
13693 ac_cpp='$CPP $CPPFLAGS'
13694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13698 CC="$lt_save_CC"
13700 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13701 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13702 (test "X$CXX" != "Xg++"))) ; then
13703 ac_ext=cpp
13704 ac_cpp='$CXXCPP $CPPFLAGS'
13705 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13706 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13707 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13709 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13710 if test -z "$CXXCPP"; then
13711 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13712 $as_echo_n "(cached) " >&6
13713 else
13714 # Double quotes because CXXCPP needs to be expanded
13715 for CXXCPP in "$CXX -E" "/lib/cpp"
13717 ac_preproc_ok=false
13718 for ac_cxx_preproc_warn_flag in '' yes
13720 # Use a header file that comes with gcc, so configuring glibc
13721 # with a fresh cross-compiler works.
13722 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13723 # <limits.h> exists even on freestanding compilers.
13724 # On the NeXT, cc -E runs the code through the compiler's parser,
13725 # not just through cpp. "Syntax error" is here to catch this case.
13726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13727 /* end confdefs.h. */
13728 #ifdef __STDC__
13729 # include <limits.h>
13730 #else
13731 # include <assert.h>
13732 #endif
13733 Syntax error
13734 _ACEOF
13735 if ac_fn_cxx_try_cpp "$LINENO"; then :
13737 else
13738 # Broken: fails on valid input.
13739 continue
13741 rm -f conftest.err conftest.$ac_ext
13743 # OK, works on sane cases. Now check whether nonexistent headers
13744 # can be detected and how.
13745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13746 /* end confdefs.h. */
13747 #include <ac_nonexistent.h>
13748 _ACEOF
13749 if ac_fn_cxx_try_cpp "$LINENO"; then :
13750 # Broken: success on invalid input.
13751 continue
13752 else
13753 # Passes both tests.
13754 ac_preproc_ok=:
13755 break
13757 rm -f conftest.err conftest.$ac_ext
13759 done
13760 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13761 rm -f conftest.err conftest.$ac_ext
13762 if $ac_preproc_ok; then :
13763 break
13766 done
13767 ac_cv_prog_CXXCPP=$CXXCPP
13770 CXXCPP=$ac_cv_prog_CXXCPP
13771 else
13772 ac_cv_prog_CXXCPP=$CXXCPP
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13775 $as_echo "$CXXCPP" >&6; }
13776 ac_preproc_ok=false
13777 for ac_cxx_preproc_warn_flag in '' yes
13779 # Use a header file that comes with gcc, so configuring glibc
13780 # with a fresh cross-compiler works.
13781 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13782 # <limits.h> exists even on freestanding compilers.
13783 # On the NeXT, cc -E runs the code through the compiler's parser,
13784 # not just through cpp. "Syntax error" is here to catch this case.
13785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13786 /* end confdefs.h. */
13787 #ifdef __STDC__
13788 # include <limits.h>
13789 #else
13790 # include <assert.h>
13791 #endif
13792 Syntax error
13793 _ACEOF
13794 if ac_fn_cxx_try_cpp "$LINENO"; then :
13796 else
13797 # Broken: fails on valid input.
13798 continue
13800 rm -f conftest.err conftest.$ac_ext
13802 # OK, works on sane cases. Now check whether nonexistent headers
13803 # can be detected and how.
13804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13805 /* end confdefs.h. */
13806 #include <ac_nonexistent.h>
13807 _ACEOF
13808 if ac_fn_cxx_try_cpp "$LINENO"; then :
13809 # Broken: success on invalid input.
13810 continue
13811 else
13812 # Passes both tests.
13813 ac_preproc_ok=:
13814 break
13816 rm -f conftest.err conftest.$ac_ext
13818 done
13819 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13820 rm -f conftest.err conftest.$ac_ext
13821 if $ac_preproc_ok; then :
13823 else
13824 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13826 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
13827 See \`config.log' for more details." "$LINENO" 5; }
13830 ac_ext=c
13831 ac_cpp='$CPP $CPPFLAGS'
13832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13836 else
13837 _lt_caught_CXX_error=yes
13840 ac_ext=cpp
13841 ac_cpp='$CXXCPP $CPPFLAGS'
13842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13843 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13846 archive_cmds_need_lc_CXX=no
13847 allow_undefined_flag_CXX=
13848 always_export_symbols_CXX=no
13849 archive_expsym_cmds_CXX=
13850 compiler_needs_object_CXX=no
13851 export_dynamic_flag_spec_CXX=
13852 hardcode_direct_CXX=no
13853 hardcode_direct_absolute_CXX=no
13854 hardcode_libdir_flag_spec_CXX=
13855 hardcode_libdir_flag_spec_ld_CXX=
13856 hardcode_libdir_separator_CXX=
13857 hardcode_minus_L_CXX=no
13858 hardcode_shlibpath_var_CXX=unsupported
13859 hardcode_automatic_CXX=no
13860 inherit_rpath_CXX=no
13861 module_cmds_CXX=
13862 module_expsym_cmds_CXX=
13863 link_all_deplibs_CXX=unknown
13864 old_archive_cmds_CXX=$old_archive_cmds
13865 reload_flag_CXX=$reload_flag
13866 reload_cmds_CXX=$reload_cmds
13867 no_undefined_flag_CXX=
13868 whole_archive_flag_spec_CXX=
13869 enable_shared_with_static_runtimes_CXX=no
13871 # Source file extension for C++ test sources.
13872 ac_ext=cpp
13874 # Object file extension for compiled C++ test sources.
13875 objext=o
13876 objext_CXX=$objext
13878 # No sense in running all these tests if we already determined that
13879 # the CXX compiler isn't working. Some variables (like enable_shared)
13880 # are currently assumed to apply to all compilers on this platform,
13881 # and will be corrupted by setting them based on a non-working compiler.
13882 if test "$_lt_caught_CXX_error" != yes; then
13883 # Code to be used in simple compile tests
13884 lt_simple_compile_test_code="int some_variable = 0;"
13886 # Code to be used in simple link tests
13887 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13889 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13896 # If no C compiler was specified, use CC.
13897 LTCC=${LTCC-"$CC"}
13899 # If no C compiler flags were specified, use CFLAGS.
13900 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13902 # Allow CC to be a program name with arguments.
13903 compiler=$CC
13906 # save warnings/boilerplate of simple test code
13907 ac_outfile=conftest.$ac_objext
13908 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13909 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13910 _lt_compiler_boilerplate=`cat conftest.err`
13911 $RM conftest*
13913 ac_outfile=conftest.$ac_objext
13914 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13915 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13916 _lt_linker_boilerplate=`cat conftest.err`
13917 $RM -r conftest*
13920 # Allow CC to be a program name with arguments.
13921 lt_save_CC=$CC
13922 lt_save_LD=$LD
13923 lt_save_GCC=$GCC
13924 GCC=$GXX
13925 lt_save_with_gnu_ld=$with_gnu_ld
13926 lt_save_path_LD=$lt_cv_path_LD
13927 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13928 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13929 else
13930 $as_unset lt_cv_prog_gnu_ld
13932 if test -n "${lt_cv_path_LDCXX+set}"; then
13933 lt_cv_path_LD=$lt_cv_path_LDCXX
13934 else
13935 $as_unset lt_cv_path_LD
13937 test -z "${LDCXX+set}" || LD=$LDCXX
13938 CC=${CXX-"c++"}
13939 compiler=$CC
13940 compiler_CXX=$CC
13941 for cc_temp in $compiler""; do
13942 case $cc_temp in
13943 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13944 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13945 \-*) ;;
13946 *) break;;
13947 esac
13948 done
13949 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13952 if test -n "$compiler"; then
13953 # We don't want -fno-exception when compiling C++ code, so set the
13954 # no_builtin_flag separately
13955 if test "$GXX" = yes; then
13956 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13957 else
13958 lt_prog_compiler_no_builtin_flag_CXX=
13961 if test "$GXX" = yes; then
13962 # Set up default GNU C++ configuration
13966 # Check whether --with-gnu-ld was given.
13967 if test "${with_gnu_ld+set}" = set; then :
13968 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13969 else
13970 with_gnu_ld=no
13973 ac_prog=ld
13974 if test "$GCC" = yes; then
13975 # Check if gcc -print-prog-name=ld gives a path.
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13977 $as_echo_n "checking for ld used by $CC... " >&6; }
13978 case $host in
13979 *-*-mingw*)
13980 # gcc leaves a trailing carriage return which upsets mingw
13981 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13983 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13984 esac
13985 case $ac_prog in
13986 # Accept absolute paths.
13987 [\\/]* | ?:[\\/]*)
13988 re_direlt='/[^/][^/]*/\.\./'
13989 # Canonicalize the pathname of ld
13990 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13991 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13992 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13993 done
13994 test -z "$LD" && LD="$ac_prog"
13997 # If it fails, then pretend we aren't using GCC.
13998 ac_prog=ld
14001 # If it is relative, then search for the first ld in PATH.
14002 with_gnu_ld=unknown
14004 esac
14005 elif test "$with_gnu_ld" = yes; then
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14007 $as_echo_n "checking for GNU ld... " >&6; }
14008 else
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14010 $as_echo_n "checking for non-GNU ld... " >&6; }
14012 if test "${lt_cv_path_LD+set}" = set; then :
14013 $as_echo_n "(cached) " >&6
14014 else
14015 if test -z "$LD"; then
14016 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14017 for ac_dir in $PATH; do
14018 IFS="$lt_save_ifs"
14019 test -z "$ac_dir" && ac_dir=.
14020 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14021 lt_cv_path_LD="$ac_dir/$ac_prog"
14022 # Check to see if the program is GNU ld. I'd rather use --version,
14023 # but apparently some variants of GNU ld only accept -v.
14024 # Break only if it was the GNU/non-GNU ld that we prefer.
14025 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14026 *GNU* | *'with BFD'*)
14027 test "$with_gnu_ld" != no && break
14030 test "$with_gnu_ld" != yes && break
14032 esac
14034 done
14035 IFS="$lt_save_ifs"
14036 else
14037 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14041 LD="$lt_cv_path_LD"
14042 if test -n "$LD"; then
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14044 $as_echo "$LD" >&6; }
14045 else
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14047 $as_echo "no" >&6; }
14049 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14051 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14052 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14053 $as_echo_n "(cached) " >&6
14054 else
14055 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14056 case `$LD -v 2>&1 </dev/null` in
14057 *GNU* | *'with BFD'*)
14058 lt_cv_prog_gnu_ld=yes
14061 lt_cv_prog_gnu_ld=no
14063 esac
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14066 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14067 with_gnu_ld=$lt_cv_prog_gnu_ld
14075 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14076 # archiving commands below assume that GNU ld is being used.
14077 if test "$with_gnu_ld" = yes; then
14078 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14079 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'
14081 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14082 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14084 # If archive_cmds runs LD, not CC, wlarc should be empty
14085 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14086 # investigate it a little bit more. (MM)
14087 wlarc='${wl}'
14089 # ancient GNU ld didn't support --whole-archive et. al.
14090 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14091 $GREP 'no-whole-archive' > /dev/null; then
14092 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14093 else
14094 whole_archive_flag_spec_CXX=
14096 else
14097 with_gnu_ld=no
14098 wlarc=
14100 # A generic and very simple default shared library creation
14101 # command for GNU C++ for the case where it uses the native
14102 # linker, instead of GNU ld. If possible, this setting should
14103 # overridden to take advantage of the native linker features on
14104 # the platform it is being used on.
14105 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14108 # Commands to make compiler produce verbose output that lists
14109 # what "hidden" libraries, object files and flags are used when
14110 # linking a shared library.
14111 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14113 else
14114 GXX=no
14115 with_gnu_ld=no
14116 wlarc=
14119 # PORTME: fill in a description of your system's C++ link characteristics
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14121 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14122 ld_shlibs_CXX=yes
14123 case $host_os in
14124 aix3*)
14125 # FIXME: insert proper C++ library support
14126 ld_shlibs_CXX=no
14128 aix[4-9]*)
14129 if test "$host_cpu" = ia64; then
14130 # On IA64, the linker does run time linking by default, so we don't
14131 # have to do anything special.
14132 aix_use_runtimelinking=no
14133 exp_sym_flag='-Bexport'
14134 no_entry_flag=""
14135 else
14136 aix_use_runtimelinking=no
14138 # Test if we are trying to use run time linking or normal
14139 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14140 # need to do runtime linking.
14141 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14142 for ld_flag in $LDFLAGS; do
14143 case $ld_flag in
14144 *-brtl*)
14145 aix_use_runtimelinking=yes
14146 break
14148 esac
14149 done
14151 esac
14153 exp_sym_flag='-bexport'
14154 no_entry_flag='-bnoentry'
14157 # When large executables or shared objects are built, AIX ld can
14158 # have problems creating the table of contents. If linking a library
14159 # or program results in "error TOC overflow" add -mminimal-toc to
14160 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14161 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14163 archive_cmds_CXX=''
14164 hardcode_direct_CXX=yes
14165 hardcode_direct_absolute_CXX=yes
14166 hardcode_libdir_separator_CXX=':'
14167 link_all_deplibs_CXX=yes
14168 file_list_spec_CXX='${wl}-f,'
14170 if test "$GXX" = yes; then
14171 case $host_os in aix4.[012]|aix4.[012].*)
14172 # We only want to do this on AIX 4.2 and lower, the check
14173 # below for broken collect2 doesn't work under 4.3+
14174 collect2name=`${CC} -print-prog-name=collect2`
14175 if test -f "$collect2name" &&
14176 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14177 then
14178 # We have reworked collect2
14180 else
14181 # We have old collect2
14182 hardcode_direct_CXX=unsupported
14183 # It fails to find uninstalled libraries when the uninstalled
14184 # path is not listed in the libpath. Setting hardcode_minus_L
14185 # to unsupported forces relinking
14186 hardcode_minus_L_CXX=yes
14187 hardcode_libdir_flag_spec_CXX='-L$libdir'
14188 hardcode_libdir_separator_CXX=
14190 esac
14191 shared_flag='-shared'
14192 if test "$aix_use_runtimelinking" = yes; then
14193 shared_flag="$shared_flag "'${wl}-G'
14195 else
14196 # not using gcc
14197 if test "$host_cpu" = ia64; then
14198 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14199 # chokes on -Wl,-G. The following line is correct:
14200 shared_flag='-G'
14201 else
14202 if test "$aix_use_runtimelinking" = yes; then
14203 shared_flag='${wl}-G'
14204 else
14205 shared_flag='${wl}-bM:SRE'
14210 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14211 # It seems that -bexpall does not export symbols beginning with
14212 # underscore (_), so it is better to generate a list of symbols to
14213 # export.
14214 always_export_symbols_CXX=yes
14215 if test "$aix_use_runtimelinking" = yes; then
14216 # Warning - without using the other runtime loading flags (-brtl),
14217 # -berok will link without error, but may produce a broken library.
14218 allow_undefined_flag_CXX='-berok'
14219 # Determine the default libpath from the value encoded in an empty
14220 # executable.
14221 if test x$gcc_no_link = xyes; then
14222 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14225 /* end confdefs.h. */
14228 main ()
14232 return 0;
14234 _ACEOF
14235 if ac_fn_cxx_try_link "$LINENO"; then :
14237 lt_aix_libpath_sed='
14238 /Import File Strings/,/^$/ {
14239 /^0/ {
14240 s/^0 *\(.*\)$/\1/
14244 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14245 # Check for a 64-bit object if we didn't find anything.
14246 if test -z "$aix_libpath"; then
14247 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14250 rm -f core conftest.err conftest.$ac_objext \
14251 conftest$ac_exeext conftest.$ac_ext
14252 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14254 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14256 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"
14257 else
14258 if test "$host_cpu" = ia64; then
14259 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14260 allow_undefined_flag_CXX="-z nodefs"
14261 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"
14262 else
14263 # Determine the default libpath from the value encoded in an
14264 # empty executable.
14265 if test x$gcc_no_link = xyes; then
14266 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14269 /* end confdefs.h. */
14272 main ()
14276 return 0;
14278 _ACEOF
14279 if ac_fn_cxx_try_link "$LINENO"; then :
14281 lt_aix_libpath_sed='
14282 /Import File Strings/,/^$/ {
14283 /^0/ {
14284 s/^0 *\(.*\)$/\1/
14288 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14289 # Check for a 64-bit object if we didn't find anything.
14290 if test -z "$aix_libpath"; then
14291 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14294 rm -f core conftest.err conftest.$ac_objext \
14295 conftest$ac_exeext conftest.$ac_ext
14296 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14298 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14299 # Warning - without using the other run time loading flags,
14300 # -berok will link without error, but may produce a broken library.
14301 no_undefined_flag_CXX=' ${wl}-bernotok'
14302 allow_undefined_flag_CXX=' ${wl}-berok'
14303 if test "$with_gnu_ld" = yes; then
14304 # We only use this code for GNU lds that support --whole-archive.
14305 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14306 else
14307 # Exported symbols can be pulled into shared objects from archives
14308 whole_archive_flag_spec_CXX='$convenience'
14310 archive_cmds_need_lc_CXX=yes
14311 # This is similar to how AIX traditionally builds its shared
14312 # libraries.
14313 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'
14318 beos*)
14319 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14320 allow_undefined_flag_CXX=unsupported
14321 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14322 # support --undefined. This deserves some investigation. FIXME
14323 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14324 else
14325 ld_shlibs_CXX=no
14329 chorus*)
14330 case $cc_basename in
14332 # FIXME: insert proper C++ library support
14333 ld_shlibs_CXX=no
14335 esac
14338 cygwin* | mingw* | pw32* | cegcc*)
14339 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14340 # as there is no search path for DLLs.
14341 hardcode_libdir_flag_spec_CXX='-L$libdir'
14342 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14343 allow_undefined_flag_CXX=unsupported
14344 always_export_symbols_CXX=no
14345 enable_shared_with_static_runtimes_CXX=yes
14347 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14348 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14349 # If the export-symbols file already is a .def file (1st line
14350 # is EXPORTS), use it as is; otherwise, prepend...
14351 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14352 cp $export_symbols $output_objdir/$soname.def;
14353 else
14354 echo EXPORTS > $output_objdir/$soname.def;
14355 cat $export_symbols >> $output_objdir/$soname.def;
14357 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14358 else
14359 ld_shlibs_CXX=no
14362 darwin* | rhapsody*)
14365 archive_cmds_need_lc_CXX=no
14366 hardcode_direct_CXX=no
14367 hardcode_automatic_CXX=yes
14368 hardcode_shlibpath_var_CXX=unsupported
14369 if test "$lt_cv_ld_force_load" = "yes"; then
14370 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\"`'
14371 else
14372 whole_archive_flag_spec_CXX=''
14374 link_all_deplibs_CXX=yes
14375 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14376 case $cc_basename in
14377 ifort*) _lt_dar_can_shared=yes ;;
14378 *) _lt_dar_can_shared=$GCC ;;
14379 esac
14380 if test "$_lt_dar_can_shared" = "yes"; then
14381 output_verbose_link_cmd=func_echo_all
14382 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}"
14383 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14384 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}"
14385 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}"
14386 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14387 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}"
14388 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}"
14391 else
14392 ld_shlibs_CXX=no
14397 dgux*)
14398 case $cc_basename in
14399 ec++*)
14400 # FIXME: insert proper C++ library support
14401 ld_shlibs_CXX=no
14403 ghcx*)
14404 # Green Hills C++ Compiler
14405 # FIXME: insert proper C++ library support
14406 ld_shlibs_CXX=no
14409 # FIXME: insert proper C++ library support
14410 ld_shlibs_CXX=no
14412 esac
14415 freebsd2.*)
14416 # C++ shared libraries reported to be fairly broken before
14417 # switch to ELF
14418 ld_shlibs_CXX=no
14421 freebsd-elf*)
14422 archive_cmds_need_lc_CXX=no
14425 freebsd* | dragonfly*)
14426 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14427 # conventions
14428 ld_shlibs_CXX=yes
14431 gnu*)
14434 haiku*)
14435 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14436 link_all_deplibs_CXX=yes
14439 hpux9*)
14440 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14441 hardcode_libdir_separator_CXX=:
14442 export_dynamic_flag_spec_CXX='${wl}-E'
14443 hardcode_direct_CXX=yes
14444 hardcode_minus_L_CXX=yes # Not in the search PATH,
14445 # but as the default
14446 # location of the library.
14448 case $cc_basename in
14449 CC*)
14450 # FIXME: insert proper C++ library support
14451 ld_shlibs_CXX=no
14453 aCC*)
14454 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'
14455 # Commands to make compiler produce verbose output that lists
14456 # what "hidden" libraries, object files and flags are used when
14457 # linking a shared library.
14459 # There doesn't appear to be a way to prevent this compiler from
14460 # explicitly linking system object files so we need to strip them
14461 # from the output so that they don't get included in the library
14462 # dependencies.
14463 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"'
14466 if test "$GXX" = yes; then
14467 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'
14468 else
14469 # FIXME: insert proper C++ library support
14470 ld_shlibs_CXX=no
14473 esac
14476 hpux10*|hpux11*)
14477 if test $with_gnu_ld = no; then
14478 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14479 hardcode_libdir_separator_CXX=:
14481 case $host_cpu in
14482 hppa*64*|ia64*)
14485 export_dynamic_flag_spec_CXX='${wl}-E'
14487 esac
14489 case $host_cpu in
14490 hppa*64*|ia64*)
14491 hardcode_direct_CXX=no
14492 hardcode_shlibpath_var_CXX=no
14495 hardcode_direct_CXX=yes
14496 hardcode_direct_absolute_CXX=yes
14497 hardcode_minus_L_CXX=yes # Not in the search PATH,
14498 # but as the default
14499 # location of the library.
14501 esac
14503 case $cc_basename in
14504 CC*)
14505 # FIXME: insert proper C++ library support
14506 ld_shlibs_CXX=no
14508 aCC*)
14509 case $host_cpu in
14510 hppa*64*)
14511 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14513 ia64*)
14514 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14517 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14519 esac
14520 # Commands to make compiler produce verbose output that lists
14521 # what "hidden" libraries, object files and flags are used when
14522 # linking a shared library.
14524 # There doesn't appear to be a way to prevent this compiler from
14525 # explicitly linking system object files so we need to strip them
14526 # from the output so that they don't get included in the library
14527 # dependencies.
14528 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"'
14531 if test "$GXX" = yes; then
14532 if test $with_gnu_ld = no; then
14533 case $host_cpu in
14534 hppa*64*)
14535 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14537 ia64*)
14538 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14541 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'
14543 esac
14545 else
14546 # FIXME: insert proper C++ library support
14547 ld_shlibs_CXX=no
14550 esac
14553 interix[3-9]*)
14554 hardcode_direct_CXX=no
14555 hardcode_shlibpath_var_CXX=no
14556 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14557 export_dynamic_flag_spec_CXX='${wl}-E'
14558 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14559 # Instead, shared libraries are loaded at an image base (0x10000000 by
14560 # default) and relocated if they conflict, which is a slow very memory
14561 # consuming and fragmenting process. To avoid this, we pick a random,
14562 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14563 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14564 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'
14565 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'
14567 irix5* | irix6*)
14568 case $cc_basename in
14569 CC*)
14570 # SGI C++
14571 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'
14573 # Archives containing C++ object files must be created using
14574 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14575 # necessary to make sure instantiated templates are included
14576 # in the archive.
14577 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14580 if test "$GXX" = yes; then
14581 if test "$with_gnu_ld" = no; then
14582 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'
14583 else
14584 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'
14587 link_all_deplibs_CXX=yes
14589 esac
14590 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14591 hardcode_libdir_separator_CXX=:
14592 inherit_rpath_CXX=yes
14595 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14596 case $cc_basename in
14597 KCC*)
14598 # Kuck and Associates, Inc. (KAI) C++ Compiler
14600 # KCC will only create a shared library if the output file
14601 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14602 # to its proper name (with version) after linking.
14603 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'
14604 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'
14605 # Commands to make compiler produce verbose output that lists
14606 # what "hidden" libraries, object files and flags are used when
14607 # linking a shared library.
14609 # There doesn't appear to be a way to prevent this compiler from
14610 # explicitly linking system object files so we need to strip them
14611 # from the output so that they don't get included in the library
14612 # dependencies.
14613 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"'
14615 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14616 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14618 # Archives containing C++ object files must be created using
14619 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14620 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14622 icpc* | ecpc* )
14623 # Intel C++
14624 with_gnu_ld=yes
14625 # version 8.0 and above of icpc choke on multiply defined symbols
14626 # if we add $predep_objects and $postdep_objects, however 7.1 and
14627 # earlier do not add the objects themselves.
14628 case `$CC -V 2>&1` in
14629 *"Version 7."*)
14630 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14631 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'
14633 *) # Version 8.0 or newer
14634 tmp_idyn=
14635 case $host_cpu in
14636 ia64*) tmp_idyn=' -i_dynamic';;
14637 esac
14638 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14639 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'
14641 esac
14642 archive_cmds_need_lc_CXX=no
14643 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14644 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14645 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14647 pgCC* | pgcpp*)
14648 # Portland Group C++ compiler
14649 case `$CC -V` in
14650 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14651 prelink_cmds_CXX='tpldir=Template.dir~
14652 rm -rf $tpldir~
14653 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14654 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14655 old_archive_cmds_CXX='tpldir=Template.dir~
14656 rm -rf $tpldir~
14657 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14658 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14659 $RANLIB $oldlib'
14660 archive_cmds_CXX='tpldir=Template.dir~
14661 rm -rf $tpldir~
14662 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14663 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14664 archive_expsym_cmds_CXX='tpldir=Template.dir~
14665 rm -rf $tpldir~
14666 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14667 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14669 *) # Version 6 and above use weak symbols
14670 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14671 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'
14673 esac
14675 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14676 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14677 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'
14679 cxx*)
14680 # Compaq C++
14681 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14682 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'
14684 runpath_var=LD_RUN_PATH
14685 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14686 hardcode_libdir_separator_CXX=:
14688 # Commands to make compiler produce verbose output that lists
14689 # what "hidden" libraries, object files and flags are used when
14690 # linking a shared library.
14692 # There doesn't appear to be a way to prevent this compiler from
14693 # explicitly linking system object files so we need to strip them
14694 # from the output so that they don't get included in the library
14695 # dependencies.
14696 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'
14698 xl* | mpixl* | bgxl*)
14699 # IBM XL 8.0 on PPC, with GNU ld
14700 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14701 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14702 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14703 if test "x$supports_anon_versioning" = xyes; then
14704 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14705 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14706 echo "local: *; };" >> $output_objdir/$libname.ver~
14707 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14711 case `$CC -V 2>&1 | sed 5q` in
14712 *Sun\ C*)
14713 # Sun C++ 5.9
14714 no_undefined_flag_CXX=' -zdefs'
14715 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14716 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'
14717 hardcode_libdir_flag_spec_CXX='-R$libdir'
14718 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'
14719 compiler_needs_object_CXX=yes
14721 # Not sure whether something based on
14722 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14723 # would be better.
14724 output_verbose_link_cmd='func_echo_all'
14726 # Archives containing C++ object files must be created using
14727 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14728 # necessary to make sure instantiated templates are included
14729 # in the archive.
14730 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14732 esac
14734 esac
14737 lynxos*)
14738 # FIXME: insert proper C++ library support
14739 ld_shlibs_CXX=no
14742 m88k*)
14743 # FIXME: insert proper C++ library support
14744 ld_shlibs_CXX=no
14747 mvs*)
14748 case $cc_basename in
14749 cxx*)
14750 # FIXME: insert proper C++ library support
14751 ld_shlibs_CXX=no
14754 # FIXME: insert proper C++ library support
14755 ld_shlibs_CXX=no
14757 esac
14760 netbsd*)
14761 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14762 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14763 wlarc=
14764 hardcode_libdir_flag_spec_CXX='-R$libdir'
14765 hardcode_direct_CXX=yes
14766 hardcode_shlibpath_var_CXX=no
14768 # Workaround some broken pre-1.5 toolchains
14769 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14772 *nto* | *qnx*)
14773 ld_shlibs_CXX=yes
14776 openbsd2*)
14777 # C++ shared libraries are fairly broken
14778 ld_shlibs_CXX=no
14781 openbsd*)
14782 if test -f /usr/libexec/ld.so; then
14783 hardcode_direct_CXX=yes
14784 hardcode_shlibpath_var_CXX=no
14785 hardcode_direct_absolute_CXX=yes
14786 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14787 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14788 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14789 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14790 export_dynamic_flag_spec_CXX='${wl}-E'
14791 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14793 output_verbose_link_cmd=func_echo_all
14794 else
14795 ld_shlibs_CXX=no
14799 osf3* | osf4* | osf5*)
14800 case $cc_basename in
14801 KCC*)
14802 # Kuck and Associates, Inc. (KAI) C++ Compiler
14804 # KCC will only create a shared library if the output file
14805 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14806 # to its proper name (with version) after linking.
14807 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'
14809 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14810 hardcode_libdir_separator_CXX=:
14812 # Archives containing C++ object files must be created using
14813 # the KAI C++ compiler.
14814 case $host in
14815 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14816 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14817 esac
14819 RCC*)
14820 # Rational C++ 2.4.1
14821 # FIXME: insert proper C++ library support
14822 ld_shlibs_CXX=no
14824 cxx*)
14825 case $host in
14826 osf3*)
14827 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14828 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'
14829 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14832 allow_undefined_flag_CXX=' -expect_unresolved \*'
14833 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'
14834 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14835 echo "-hidden">> $lib.exp~
14836 $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~
14837 $RM $lib.exp'
14838 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14840 esac
14842 hardcode_libdir_separator_CXX=:
14844 # Commands to make compiler produce verbose output that lists
14845 # what "hidden" libraries, object files and flags are used when
14846 # linking a shared library.
14848 # There doesn't appear to be a way to prevent this compiler from
14849 # explicitly linking system object files so we need to strip them
14850 # from the output so that they don't get included in the library
14851 # dependencies.
14852 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"'
14855 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14856 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14857 case $host in
14858 osf3*)
14859 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'
14862 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'
14864 esac
14866 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14867 hardcode_libdir_separator_CXX=:
14869 # Commands to make compiler produce verbose output that lists
14870 # what "hidden" libraries, object files and flags are used when
14871 # linking a shared library.
14872 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14874 else
14875 # FIXME: insert proper C++ library support
14876 ld_shlibs_CXX=no
14879 esac
14882 psos*)
14883 # FIXME: insert proper C++ library support
14884 ld_shlibs_CXX=no
14887 sunos4*)
14888 case $cc_basename in
14889 CC*)
14890 # Sun C++ 4.x
14891 # FIXME: insert proper C++ library support
14892 ld_shlibs_CXX=no
14894 lcc*)
14895 # Lucid
14896 # FIXME: insert proper C++ library support
14897 ld_shlibs_CXX=no
14900 # FIXME: insert proper C++ library support
14901 ld_shlibs_CXX=no
14903 esac
14906 solaris*)
14907 case $cc_basename in
14908 CC*)
14909 # Sun C++ 4.2, 5.x and Centerline C++
14910 archive_cmds_need_lc_CXX=yes
14911 no_undefined_flag_CXX=' -zdefs'
14912 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14913 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14914 $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'
14916 hardcode_libdir_flag_spec_CXX='-R$libdir'
14917 hardcode_shlibpath_var_CXX=no
14918 case $host_os in
14919 solaris2.[0-5] | solaris2.[0-5].*) ;;
14921 # The compiler driver will combine and reorder linker options,
14922 # but understands `-z linker_flag'.
14923 # Supported since Solaris 2.6 (maybe 2.5.1?)
14924 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14926 esac
14927 link_all_deplibs_CXX=yes
14929 output_verbose_link_cmd='func_echo_all'
14931 # Archives containing C++ object files must be created using
14932 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14933 # necessary to make sure instantiated templates are included
14934 # in the archive.
14935 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14937 gcx*)
14938 # Green Hills C++ Compiler
14939 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14941 # The C++ compiler must be used to create the archive.
14942 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14945 # GNU C++ compiler with Solaris linker
14946 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14947 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14948 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14949 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14950 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14951 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14953 # Commands to make compiler produce verbose output that lists
14954 # what "hidden" libraries, object files and flags are used when
14955 # linking a shared library.
14956 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14957 else
14958 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14959 # platform.
14960 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14961 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14962 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14964 # Commands to make compiler produce verbose output that lists
14965 # what "hidden" libraries, object files and flags are used when
14966 # linking a shared library.
14967 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14970 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14971 case $host_os in
14972 solaris2.[0-5] | solaris2.[0-5].*) ;;
14974 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14976 esac
14979 esac
14982 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14983 no_undefined_flag_CXX='${wl}-z,text'
14984 archive_cmds_need_lc_CXX=no
14985 hardcode_shlibpath_var_CXX=no
14986 runpath_var='LD_RUN_PATH'
14988 case $cc_basename in
14989 CC*)
14990 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14991 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14994 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14995 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14997 esac
15000 sysv5* | sco3.2v5* | sco5v6*)
15001 # Note: We can NOT use -z defs as we might desire, because we do not
15002 # link with -lc, and that would cause any symbols used from libc to
15003 # always be unresolved, which means just about no library would
15004 # ever link correctly. If we're not using GNU ld we use -z text
15005 # though, which does catch some bad symbols but isn't as heavy-handed
15006 # as -z defs.
15007 no_undefined_flag_CXX='${wl}-z,text'
15008 allow_undefined_flag_CXX='${wl}-z,nodefs'
15009 archive_cmds_need_lc_CXX=no
15010 hardcode_shlibpath_var_CXX=no
15011 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15012 hardcode_libdir_separator_CXX=':'
15013 link_all_deplibs_CXX=yes
15014 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15015 runpath_var='LD_RUN_PATH'
15017 case $cc_basename in
15018 CC*)
15019 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15020 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15021 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15022 '"$old_archive_cmds_CXX"
15023 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15024 '"$reload_cmds_CXX"
15027 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15028 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15030 esac
15033 tandem*)
15034 case $cc_basename in
15035 NCC*)
15036 # NonStop-UX NCC 3.20
15037 # FIXME: insert proper C++ library support
15038 ld_shlibs_CXX=no
15041 # FIXME: insert proper C++ library support
15042 ld_shlibs_CXX=no
15044 esac
15047 vxworks*)
15048 # FIXME: insert proper C++ library support
15049 ld_shlibs_CXX=no
15053 # FIXME: insert proper C++ library support
15054 ld_shlibs_CXX=no
15056 esac
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15059 $as_echo "$ld_shlibs_CXX" >&6; }
15060 test "$ld_shlibs_CXX" = no && can_build_shared=no
15062 GCC_CXX="$GXX"
15063 LD_CXX="$LD"
15065 ## CAVEAT EMPTOR:
15066 ## There is no encapsulation within the following macros, do not change
15067 ## the running order or otherwise move them around unless you know exactly
15068 ## what you are doing...
15069 # Dependencies to place before and after the object being linked:
15070 predep_objects_CXX=
15071 postdep_objects_CXX=
15072 predeps_CXX=
15073 postdeps_CXX=
15074 compiler_lib_search_path_CXX=
15076 cat > conftest.$ac_ext <<_LT_EOF
15077 class Foo
15079 public:
15080 Foo (void) { a = 0; }
15081 private:
15082 int a;
15084 _LT_EOF
15086 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15087 (eval $ac_compile) 2>&5
15088 ac_status=$?
15089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15090 test $ac_status = 0; }; then
15091 # Parse the compiler output and extract the necessary
15092 # objects, libraries and library flags.
15094 # Sentinel used to keep track of whether or not we are before
15095 # the conftest object file.
15096 pre_test_object_deps_done=no
15098 for p in `eval "$output_verbose_link_cmd"`; do
15099 case $p in
15101 -L* | -R* | -l*)
15102 # Some compilers place space between "-{L,R}" and the path.
15103 # Remove the space.
15104 if test $p = "-L" ||
15105 test $p = "-R"; then
15106 prev=$p
15107 continue
15108 else
15109 prev=
15112 if test "$pre_test_object_deps_done" = no; then
15113 case $p in
15114 -L* | -R*)
15115 # Internal compiler library paths should come after those
15116 # provided the user. The postdeps already come after the
15117 # user supplied libs so there is no need to process them.
15118 if test -z "$compiler_lib_search_path_CXX"; then
15119 compiler_lib_search_path_CXX="${prev}${p}"
15120 else
15121 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15124 # The "-l" case would never come before the object being
15125 # linked, so don't bother handling this case.
15126 esac
15127 else
15128 if test -z "$postdeps_CXX"; then
15129 postdeps_CXX="${prev}${p}"
15130 else
15131 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15136 *.$objext)
15137 # This assumes that the test object file only shows up
15138 # once in the compiler output.
15139 if test "$p" = "conftest.$objext"; then
15140 pre_test_object_deps_done=yes
15141 continue
15144 if test "$pre_test_object_deps_done" = no; then
15145 if test -z "$predep_objects_CXX"; then
15146 predep_objects_CXX="$p"
15147 else
15148 predep_objects_CXX="$predep_objects_CXX $p"
15150 else
15151 if test -z "$postdep_objects_CXX"; then
15152 postdep_objects_CXX="$p"
15153 else
15154 postdep_objects_CXX="$postdep_objects_CXX $p"
15159 *) ;; # Ignore the rest.
15161 esac
15162 done
15164 # Clean up.
15165 rm -f a.out a.exe
15166 else
15167 echo "libtool.m4: error: problem compiling CXX test program"
15170 $RM -f confest.$objext
15172 # PORTME: override above test on systems where it is broken
15173 case $host_os in
15174 interix[3-9]*)
15175 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15176 # hack all around it, let's just trust "g++" to DTRT.
15177 predep_objects_CXX=
15178 postdep_objects_CXX=
15179 postdeps_CXX=
15182 linux*)
15183 case `$CC -V 2>&1 | sed 5q` in
15184 *Sun\ C*)
15185 # Sun C++ 5.9
15187 # The more standards-conforming stlport4 library is
15188 # incompatible with the Cstd library. Avoid specifying
15189 # it if it's in CXXFLAGS. Ignore libCrun as
15190 # -library=stlport4 depends on it.
15191 case " $CXX $CXXFLAGS " in
15192 *" -library=stlport4 "*)
15193 solaris_use_stlport4=yes
15195 esac
15197 if test "$solaris_use_stlport4" != yes; then
15198 postdeps_CXX='-library=Cstd -library=Crun'
15201 esac
15204 solaris*)
15205 case $cc_basename in
15206 CC*)
15207 # The more standards-conforming stlport4 library is
15208 # incompatible with the Cstd library. Avoid specifying
15209 # it if it's in CXXFLAGS. Ignore libCrun as
15210 # -library=stlport4 depends on it.
15211 case " $CXX $CXXFLAGS " in
15212 *" -library=stlport4 "*)
15213 solaris_use_stlport4=yes
15215 esac
15217 # Adding this requires a known-good setup of shared libraries for
15218 # Sun compiler versions before 5.6, else PIC objects from an old
15219 # archive will be linked into the output, leading to subtle bugs.
15220 if test "$solaris_use_stlport4" != yes; then
15221 postdeps_CXX='-library=Cstd -library=Crun'
15224 esac
15226 esac
15229 case " $postdeps_CXX " in
15230 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15231 esac
15232 compiler_lib_search_dirs_CXX=
15233 if test -n "${compiler_lib_search_path_CXX}"; then
15234 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15267 lt_prog_compiler_wl_CXX=
15268 lt_prog_compiler_pic_CXX=
15269 lt_prog_compiler_static_CXX=
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15272 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15274 # C++ specific cases for pic, static, wl, etc.
15275 if test "$GXX" = yes; then
15276 lt_prog_compiler_wl_CXX='-Wl,'
15277 lt_prog_compiler_static_CXX='-static'
15279 case $host_os in
15280 aix*)
15281 # All AIX code is PIC.
15282 if test "$host_cpu" = ia64; then
15283 # AIX 5 now supports IA64 processor
15284 lt_prog_compiler_static_CXX='-Bstatic'
15288 amigaos*)
15289 case $host_cpu in
15290 powerpc)
15291 # see comment about AmigaOS4 .so support
15292 lt_prog_compiler_pic_CXX='-fPIC'
15294 m68k)
15295 # FIXME: we need at least 68020 code to build shared libraries, but
15296 # adding the `-m68020' flag to GCC prevents building anything better,
15297 # like `-m68040'.
15298 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15300 esac
15303 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15304 # PIC is the default for these OSes.
15306 mingw* | cygwin* | os2* | pw32* | cegcc*)
15307 # This hack is so that the source file can tell whether it is being
15308 # built for inclusion in a dll (and should export symbols for example).
15309 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15310 # (--disable-auto-import) libraries
15311 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15313 darwin* | rhapsody*)
15314 # PIC is the default on this platform
15315 # Common symbols not allowed in MH_DYLIB files
15316 lt_prog_compiler_pic_CXX='-fno-common'
15318 *djgpp*)
15319 # DJGPP does not support shared libraries at all
15320 lt_prog_compiler_pic_CXX=
15322 haiku*)
15323 # PIC is the default for Haiku.
15324 # The "-static" flag exists, but is broken.
15325 lt_prog_compiler_static_CXX=
15327 interix[3-9]*)
15328 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15329 # Instead, we relocate shared libraries at runtime.
15331 sysv4*MP*)
15332 if test -d /usr/nec; then
15333 lt_prog_compiler_pic_CXX=-Kconform_pic
15336 hpux*)
15337 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15338 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15339 # sets the default TLS model and affects inlining.
15340 case $host_cpu in
15341 hppa*64*)
15344 lt_prog_compiler_pic_CXX='-fPIC'
15346 esac
15348 *qnx* | *nto*)
15349 # QNX uses GNU C++, but need to define -shared option too, otherwise
15350 # it will coredump.
15351 lt_prog_compiler_pic_CXX='-fPIC -shared'
15354 lt_prog_compiler_pic_CXX='-fPIC'
15356 esac
15357 else
15358 case $host_os in
15359 aix[4-9]*)
15360 # All AIX code is PIC.
15361 if test "$host_cpu" = ia64; then
15362 # AIX 5 now supports IA64 processor
15363 lt_prog_compiler_static_CXX='-Bstatic'
15364 else
15365 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15368 chorus*)
15369 case $cc_basename in
15370 cxch68*)
15371 # Green Hills C++ Compiler
15372 # _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"
15374 esac
15376 dgux*)
15377 case $cc_basename in
15378 ec++*)
15379 lt_prog_compiler_pic_CXX='-KPIC'
15381 ghcx*)
15382 # Green Hills C++ Compiler
15383 lt_prog_compiler_pic_CXX='-pic'
15387 esac
15389 freebsd* | dragonfly*)
15390 # FreeBSD uses GNU C++
15392 hpux9* | hpux10* | hpux11*)
15393 case $cc_basename in
15394 CC*)
15395 lt_prog_compiler_wl_CXX='-Wl,'
15396 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15397 if test "$host_cpu" != ia64; then
15398 lt_prog_compiler_pic_CXX='+Z'
15401 aCC*)
15402 lt_prog_compiler_wl_CXX='-Wl,'
15403 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15404 case $host_cpu in
15405 hppa*64*|ia64*)
15406 # +Z the default
15409 lt_prog_compiler_pic_CXX='+Z'
15411 esac
15415 esac
15417 interix*)
15418 # This is c89, which is MS Visual C++ (no shared libs)
15419 # Anyone wants to do a port?
15421 irix5* | irix6* | nonstopux*)
15422 case $cc_basename in
15423 CC*)
15424 lt_prog_compiler_wl_CXX='-Wl,'
15425 lt_prog_compiler_static_CXX='-non_shared'
15426 # CC pic flag -KPIC is the default.
15430 esac
15432 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15433 case $cc_basename in
15434 KCC*)
15435 # KAI C++ Compiler
15436 lt_prog_compiler_wl_CXX='--backend -Wl,'
15437 lt_prog_compiler_pic_CXX='-fPIC'
15439 ecpc* )
15440 # old Intel C++ for x86_64 which still supported -KPIC.
15441 lt_prog_compiler_wl_CXX='-Wl,'
15442 lt_prog_compiler_pic_CXX='-KPIC'
15443 lt_prog_compiler_static_CXX='-static'
15445 icpc* )
15446 # Intel C++, used to be incompatible with GCC.
15447 # ICC 10 doesn't accept -KPIC any more.
15448 lt_prog_compiler_wl_CXX='-Wl,'
15449 lt_prog_compiler_pic_CXX='-fPIC'
15450 lt_prog_compiler_static_CXX='-static'
15452 pgCC* | pgcpp*)
15453 # Portland Group C++ compiler
15454 lt_prog_compiler_wl_CXX='-Wl,'
15455 lt_prog_compiler_pic_CXX='-fpic'
15456 lt_prog_compiler_static_CXX='-Bstatic'
15458 cxx*)
15459 # Compaq C++
15460 # Make sure the PIC flag is empty. It appears that all Alpha
15461 # Linux and Compaq Tru64 Unix objects are PIC.
15462 lt_prog_compiler_pic_CXX=
15463 lt_prog_compiler_static_CXX='-non_shared'
15465 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15466 # IBM XL 8.0, 9.0 on PPC and BlueGene
15467 lt_prog_compiler_wl_CXX='-Wl,'
15468 lt_prog_compiler_pic_CXX='-qpic'
15469 lt_prog_compiler_static_CXX='-qstaticlink'
15472 case `$CC -V 2>&1 | sed 5q` in
15473 *Sun\ C*)
15474 # Sun C++ 5.9
15475 lt_prog_compiler_pic_CXX='-KPIC'
15476 lt_prog_compiler_static_CXX='-Bstatic'
15477 lt_prog_compiler_wl_CXX='-Qoption ld '
15479 esac
15481 esac
15483 lynxos*)
15485 m88k*)
15487 mvs*)
15488 case $cc_basename in
15489 cxx*)
15490 lt_prog_compiler_pic_CXX='-W c,exportall'
15494 esac
15496 netbsd*)
15498 *qnx* | *nto*)
15499 # QNX uses GNU C++, but need to define -shared option too, otherwise
15500 # it will coredump.
15501 lt_prog_compiler_pic_CXX='-fPIC -shared'
15503 osf3* | osf4* | osf5*)
15504 case $cc_basename in
15505 KCC*)
15506 lt_prog_compiler_wl_CXX='--backend -Wl,'
15508 RCC*)
15509 # Rational C++ 2.4.1
15510 lt_prog_compiler_pic_CXX='-pic'
15512 cxx*)
15513 # Digital/Compaq C++
15514 lt_prog_compiler_wl_CXX='-Wl,'
15515 # Make sure the PIC flag is empty. It appears that all Alpha
15516 # Linux and Compaq Tru64 Unix objects are PIC.
15517 lt_prog_compiler_pic_CXX=
15518 lt_prog_compiler_static_CXX='-non_shared'
15522 esac
15524 psos*)
15526 solaris*)
15527 case $cc_basename in
15528 CC*)
15529 # Sun C++ 4.2, 5.x and Centerline C++
15530 lt_prog_compiler_pic_CXX='-KPIC'
15531 lt_prog_compiler_static_CXX='-Bstatic'
15532 lt_prog_compiler_wl_CXX='-Qoption ld '
15534 gcx*)
15535 # Green Hills C++ Compiler
15536 lt_prog_compiler_pic_CXX='-PIC'
15540 esac
15542 sunos4*)
15543 case $cc_basename in
15544 CC*)
15545 # Sun C++ 4.x
15546 lt_prog_compiler_pic_CXX='-pic'
15547 lt_prog_compiler_static_CXX='-Bstatic'
15549 lcc*)
15550 # Lucid
15551 lt_prog_compiler_pic_CXX='-pic'
15555 esac
15557 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15558 case $cc_basename in
15559 CC*)
15560 lt_prog_compiler_wl_CXX='-Wl,'
15561 lt_prog_compiler_pic_CXX='-KPIC'
15562 lt_prog_compiler_static_CXX='-Bstatic'
15564 esac
15566 tandem*)
15567 case $cc_basename in
15568 NCC*)
15569 # NonStop-UX NCC 3.20
15570 lt_prog_compiler_pic_CXX='-KPIC'
15574 esac
15576 vxworks*)
15579 lt_prog_compiler_can_build_shared_CXX=no
15581 esac
15584 case $host_os in
15585 # For platforms which do not support PIC, -DPIC is meaningless:
15586 *djgpp*)
15587 lt_prog_compiler_pic_CXX=
15590 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15592 esac
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15594 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15599 # Check to make sure the PIC flag actually works.
15601 if test -n "$lt_prog_compiler_pic_CXX"; then
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15603 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15604 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15605 $as_echo_n "(cached) " >&6
15606 else
15607 lt_cv_prog_compiler_pic_works_CXX=no
15608 ac_outfile=conftest.$ac_objext
15609 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15610 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15611 # Insert the option either (1) after the last *FLAGS variable, or
15612 # (2) before a word containing "conftest.", or (3) at the end.
15613 # Note that $ac_compile itself does not contain backslashes and begins
15614 # with a dollar sign (not a hyphen), so the echo should work correctly.
15615 # The option is referenced via a variable to avoid confusing sed.
15616 lt_compile=`echo "$ac_compile" | $SED \
15617 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15618 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15619 -e 's:$: $lt_compiler_flag:'`
15620 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15621 (eval "$lt_compile" 2>conftest.err)
15622 ac_status=$?
15623 cat conftest.err >&5
15624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 if (exit $ac_status) && test -s "$ac_outfile"; then
15626 # The compiler can only warn and ignore the option if not recognized
15627 # So say no if there are warnings other than the usual output.
15628 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15629 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15630 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15631 lt_cv_prog_compiler_pic_works_CXX=yes
15634 $RM conftest*
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15638 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15640 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15641 case $lt_prog_compiler_pic_CXX in
15642 "" | " "*) ;;
15643 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15644 esac
15645 else
15646 lt_prog_compiler_pic_CXX=
15647 lt_prog_compiler_can_build_shared_CXX=no
15655 # Check to make sure the static flag actually works.
15657 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15659 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15660 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15661 $as_echo_n "(cached) " >&6
15662 else
15663 lt_cv_prog_compiler_static_works_CXX=no
15664 save_LDFLAGS="$LDFLAGS"
15665 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15666 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15667 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15668 # The linker can only warn and ignore the option if not recognized
15669 # So say no if there are warnings
15670 if test -s conftest.err; then
15671 # Append any errors to the config.log.
15672 cat conftest.err 1>&5
15673 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15674 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15675 if diff conftest.exp conftest.er2 >/dev/null; then
15676 lt_cv_prog_compiler_static_works_CXX=yes
15678 else
15679 lt_cv_prog_compiler_static_works_CXX=yes
15682 $RM -r conftest*
15683 LDFLAGS="$save_LDFLAGS"
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15687 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15689 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15691 else
15692 lt_prog_compiler_static_CXX=
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15699 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15700 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15701 $as_echo_n "(cached) " >&6
15702 else
15703 lt_cv_prog_compiler_c_o_CXX=no
15704 $RM -r conftest 2>/dev/null
15705 mkdir conftest
15706 cd conftest
15707 mkdir out
15708 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15710 lt_compiler_flag="-o out/conftest2.$ac_objext"
15711 # Insert the option either (1) after the last *FLAGS variable, or
15712 # (2) before a word containing "conftest.", or (3) at the end.
15713 # Note that $ac_compile itself does not contain backslashes and begins
15714 # with a dollar sign (not a hyphen), so the echo should work correctly.
15715 lt_compile=`echo "$ac_compile" | $SED \
15716 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15717 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15718 -e 's:$: $lt_compiler_flag:'`
15719 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15720 (eval "$lt_compile" 2>out/conftest.err)
15721 ac_status=$?
15722 cat out/conftest.err >&5
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15725 then
15726 # The compiler can only warn and ignore the option if not recognized
15727 # So say no if there are warnings
15728 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15729 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15730 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15731 lt_cv_prog_compiler_c_o_CXX=yes
15734 chmod u+w . 2>&5
15735 $RM conftest*
15736 # SGI C++ compiler will create directory out/ii_files/ for
15737 # template instantiation
15738 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15739 $RM out/* && rmdir out
15740 cd ..
15741 $RM -r conftest
15742 $RM conftest*
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15746 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15751 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15752 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15753 $as_echo_n "(cached) " >&6
15754 else
15755 lt_cv_prog_compiler_c_o_CXX=no
15756 $RM -r conftest 2>/dev/null
15757 mkdir conftest
15758 cd conftest
15759 mkdir out
15760 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15762 lt_compiler_flag="-o out/conftest2.$ac_objext"
15763 # Insert the option either (1) after the last *FLAGS variable, or
15764 # (2) before a word containing "conftest.", or (3) at the end.
15765 # Note that $ac_compile itself does not contain backslashes and begins
15766 # with a dollar sign (not a hyphen), so the echo should work correctly.
15767 lt_compile=`echo "$ac_compile" | $SED \
15768 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15769 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15770 -e 's:$: $lt_compiler_flag:'`
15771 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15772 (eval "$lt_compile" 2>out/conftest.err)
15773 ac_status=$?
15774 cat out/conftest.err >&5
15775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15777 then
15778 # The compiler can only warn and ignore the option if not recognized
15779 # So say no if there are warnings
15780 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15781 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15782 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15783 lt_cv_prog_compiler_c_o_CXX=yes
15786 chmod u+w . 2>&5
15787 $RM conftest*
15788 # SGI C++ compiler will create directory out/ii_files/ for
15789 # template instantiation
15790 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15791 $RM out/* && rmdir out
15792 cd ..
15793 $RM -r conftest
15794 $RM conftest*
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15798 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15803 hard_links="nottested"
15804 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15805 # do not overwrite the value of need_locks provided by the user
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15807 $as_echo_n "checking if we can lock with hard links... " >&6; }
15808 hard_links=yes
15809 $RM conftest*
15810 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15811 touch conftest.a
15812 ln conftest.a conftest.b 2>&5 || hard_links=no
15813 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15815 $as_echo "$hard_links" >&6; }
15816 if test "$hard_links" = no; then
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15818 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15819 need_locks=warn
15821 else
15822 need_locks=no
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15828 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15830 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15831 case $host_os in
15832 aix[4-9]*)
15833 # If we're using GNU nm, then we don't want the "-C" option.
15834 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15835 # Also, AIX nm treats weak defined symbols like other global defined
15836 # symbols, whereas GNU nm marks them as "W".
15837 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15838 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'
15839 else
15840 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'
15843 pw32*)
15844 export_symbols_cmds_CXX="$ltdll_cmds"
15846 cygwin* | mingw* | cegcc*)
15847 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'
15850 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15852 esac
15853 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15856 $as_echo "$ld_shlibs_CXX" >&6; }
15857 test "$ld_shlibs_CXX" = no && can_build_shared=no
15859 with_gnu_ld_CXX=$with_gnu_ld
15867 # Do we need to explicitly link libc?
15869 case "x$archive_cmds_need_lc_CXX" in
15870 x|xyes)
15871 # Assume -lc should be added
15872 archive_cmds_need_lc_CXX=yes
15874 if test "$enable_shared" = yes && test "$GCC" = yes; then
15875 case $archive_cmds_CXX in
15876 *'~'*)
15877 # FIXME: we may have to deal with multi-command sequences.
15879 '$CC '*)
15880 # Test whether the compiler implicitly links with -lc since on some
15881 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15882 # to ld, don't add -lc before -lgcc.
15883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15884 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15885 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15886 $as_echo_n "(cached) " >&6
15887 else
15888 $RM conftest*
15889 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15892 (eval $ac_compile) 2>&5
15893 ac_status=$?
15894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15895 test $ac_status = 0; } 2>conftest.err; then
15896 soname=conftest
15897 lib=conftest
15898 libobjs=conftest.$ac_objext
15899 deplibs=
15900 wl=$lt_prog_compiler_wl_CXX
15901 pic_flag=$lt_prog_compiler_pic_CXX
15902 compiler_flags=-v
15903 linker_flags=-v
15904 verstring=
15905 output_objdir=.
15906 libname=conftest
15907 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15908 allow_undefined_flag_CXX=
15909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15910 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15911 ac_status=$?
15912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15913 test $ac_status = 0; }
15914 then
15915 lt_cv_archive_cmds_need_lc_CXX=no
15916 else
15917 lt_cv_archive_cmds_need_lc_CXX=yes
15919 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15920 else
15921 cat conftest.err 1>&5
15923 $RM conftest*
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15927 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15928 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15930 esac
15933 esac
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15999 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16001 library_names_spec=
16002 libname_spec='lib$name'
16003 soname_spec=
16004 shrext_cmds=".so"
16005 postinstall_cmds=
16006 postuninstall_cmds=
16007 finish_cmds=
16008 finish_eval=
16009 shlibpath_var=
16010 shlibpath_overrides_runpath=unknown
16011 version_type=none
16012 dynamic_linker="$host_os ld.so"
16013 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16014 need_lib_prefix=unknown
16015 hardcode_into_libs=no
16017 # when you set need_version to no, make sure it does not cause -set_version
16018 # flags to be left without arguments
16019 need_version=unknown
16021 case $host_os in
16022 aix3*)
16023 version_type=linux
16024 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16025 shlibpath_var=LIBPATH
16027 # AIX 3 has no versioning support, so we append a major version to the name.
16028 soname_spec='${libname}${release}${shared_ext}$major'
16031 aix[4-9]*)
16032 version_type=linux
16033 need_lib_prefix=no
16034 need_version=no
16035 hardcode_into_libs=yes
16036 if test "$host_cpu" = ia64; then
16037 # AIX 5 supports IA64
16038 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16039 shlibpath_var=LD_LIBRARY_PATH
16040 else
16041 # With GCC up to 2.95.x, collect2 would create an import file
16042 # for dependence libraries. The import file would start with
16043 # the line `#! .'. This would cause the generated library to
16044 # depend on `.', always an invalid library. This was fixed in
16045 # development snapshots of GCC prior to 3.0.
16046 case $host_os in
16047 aix4 | aix4.[01] | aix4.[01].*)
16048 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16049 echo ' yes '
16050 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16052 else
16053 can_build_shared=no
16056 esac
16057 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16058 # soname into executable. Probably we can add versioning support to
16059 # collect2, so additional links can be useful in future.
16060 if test "$aix_use_runtimelinking" = yes; then
16061 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16062 # instead of lib<name>.a to let people know that these are not
16063 # typical AIX shared libraries.
16064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16065 else
16066 # We preserve .a as extension for shared libraries through AIX4.2
16067 # and later when we are not doing run time linking.
16068 library_names_spec='${libname}${release}.a $libname.a'
16069 soname_spec='${libname}${release}${shared_ext}$major'
16071 shlibpath_var=LIBPATH
16075 amigaos*)
16076 case $host_cpu in
16077 powerpc)
16078 # Since July 2007 AmigaOS4 officially supports .so libraries.
16079 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16082 m68k)
16083 library_names_spec='$libname.ixlibrary $libname.a'
16084 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16085 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'
16087 esac
16090 beos*)
16091 library_names_spec='${libname}${shared_ext}'
16092 dynamic_linker="$host_os ld.so"
16093 shlibpath_var=LIBRARY_PATH
16096 bsdi[45]*)
16097 version_type=linux
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16102 shlibpath_var=LD_LIBRARY_PATH
16103 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16104 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16105 # the default ld.so.conf also contains /usr/contrib/lib and
16106 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16107 # libtool to hard-code these into programs
16110 cygwin* | mingw* | pw32* | cegcc*)
16111 version_type=windows
16112 shrext_cmds=".dll"
16113 need_version=no
16114 need_lib_prefix=no
16116 case $GCC,$host_os in
16117 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16118 library_names_spec='$libname.dll.a'
16119 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16120 postinstall_cmds='base_file=`basename \${file}`~
16121 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16122 dldir=$destdir/`dirname \$dlpath`~
16123 test -d \$dldir || mkdir -p \$dldir~
16124 $install_prog $dir/$dlname \$dldir/$dlname~
16125 chmod a+x \$dldir/$dlname~
16126 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16127 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16129 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16130 dlpath=$dir/\$dldll~
16131 $RM \$dlpath'
16132 shlibpath_overrides_runpath=yes
16134 case $host_os in
16135 cygwin*)
16136 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16137 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16140 mingw* | cegcc*)
16141 # MinGW DLLs use traditional 'lib' prefix
16142 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16144 pw32*)
16145 # pw32 DLLs use 'pw' prefix rather than 'lib'
16146 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16148 esac
16152 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16154 esac
16155 dynamic_linker='Win32 ld.exe'
16156 # FIXME: first we should search . and the directory the executable is in
16157 shlibpath_var=PATH
16160 darwin* | rhapsody*)
16161 dynamic_linker="$host_os dyld"
16162 version_type=darwin
16163 need_lib_prefix=no
16164 need_version=no
16165 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16166 soname_spec='${libname}${release}${major}$shared_ext'
16167 shlibpath_overrides_runpath=yes
16168 shlibpath_var=DYLD_LIBRARY_PATH
16169 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16171 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16174 dgux*)
16175 version_type=linux
16176 need_lib_prefix=no
16177 need_version=no
16178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16179 soname_spec='${libname}${release}${shared_ext}$major'
16180 shlibpath_var=LD_LIBRARY_PATH
16183 freebsd* | dragonfly*)
16184 # DragonFly does not have aout. When/if they implement a new
16185 # versioning mechanism, adjust this.
16186 if test -x /usr/bin/objformat; then
16187 objformat=`/usr/bin/objformat`
16188 else
16189 case $host_os in
16190 freebsd[23].*) objformat=aout ;;
16191 *) objformat=elf ;;
16192 esac
16194 version_type=freebsd-$objformat
16195 case $version_type in
16196 freebsd-elf*)
16197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16198 need_version=no
16199 need_lib_prefix=no
16201 freebsd-*)
16202 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16203 need_version=yes
16205 esac
16206 shlibpath_var=LD_LIBRARY_PATH
16207 case $host_os in
16208 freebsd2.*)
16209 shlibpath_overrides_runpath=yes
16211 freebsd3.[01]* | freebsdelf3.[01]*)
16212 shlibpath_overrides_runpath=yes
16213 hardcode_into_libs=yes
16215 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16216 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16217 shlibpath_overrides_runpath=no
16218 hardcode_into_libs=yes
16220 *) # from 4.6 on, and DragonFly
16221 shlibpath_overrides_runpath=yes
16222 hardcode_into_libs=yes
16224 esac
16227 gnu*)
16228 version_type=linux
16229 need_lib_prefix=no
16230 need_version=no
16231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16232 soname_spec='${libname}${release}${shared_ext}$major'
16233 shlibpath_var=LD_LIBRARY_PATH
16234 hardcode_into_libs=yes
16237 haiku*)
16238 version_type=linux
16239 need_lib_prefix=no
16240 need_version=no
16241 dynamic_linker="$host_os runtime_loader"
16242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16243 soname_spec='${libname}${release}${shared_ext}$major'
16244 shlibpath_var=LIBRARY_PATH
16245 shlibpath_overrides_runpath=yes
16246 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16247 hardcode_into_libs=yes
16250 hpux9* | hpux10* | hpux11*)
16251 # Give a soname corresponding to the major version so that dld.sl refuses to
16252 # link against other versions.
16253 version_type=sunos
16254 need_lib_prefix=no
16255 need_version=no
16256 case $host_cpu in
16257 ia64*)
16258 shrext_cmds='.so'
16259 hardcode_into_libs=yes
16260 dynamic_linker="$host_os dld.so"
16261 shlibpath_var=LD_LIBRARY_PATH
16262 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16264 soname_spec='${libname}${release}${shared_ext}$major'
16265 if test "X$HPUX_IA64_MODE" = X32; then
16266 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16267 else
16268 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16270 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16272 hppa*64*)
16273 shrext_cmds='.sl'
16274 hardcode_into_libs=yes
16275 dynamic_linker="$host_os dld.sl"
16276 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16277 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16279 soname_spec='${libname}${release}${shared_ext}$major'
16280 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16281 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16284 shrext_cmds='.sl'
16285 dynamic_linker="$host_os dld.sl"
16286 shlibpath_var=SHLIB_PATH
16287 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16289 soname_spec='${libname}${release}${shared_ext}$major'
16291 esac
16292 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16293 postinstall_cmds='chmod 555 $lib'
16294 # or fails outright, so override atomically:
16295 install_override_mode=555
16298 interix[3-9]*)
16299 version_type=linux
16300 need_lib_prefix=no
16301 need_version=no
16302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16303 soname_spec='${libname}${release}${shared_ext}$major'
16304 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16305 shlibpath_var=LD_LIBRARY_PATH
16306 shlibpath_overrides_runpath=no
16307 hardcode_into_libs=yes
16310 irix5* | irix6* | nonstopux*)
16311 case $host_os in
16312 nonstopux*) version_type=nonstopux ;;
16314 if test "$lt_cv_prog_gnu_ld" = yes; then
16315 version_type=linux
16316 else
16317 version_type=irix
16318 fi ;;
16319 esac
16320 need_lib_prefix=no
16321 need_version=no
16322 soname_spec='${libname}${release}${shared_ext}$major'
16323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16324 case $host_os in
16325 irix5* | nonstopux*)
16326 libsuff= shlibsuff=
16329 case $LD in # libtool.m4 will add one of these switches to LD
16330 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16331 libsuff= shlibsuff= libmagic=32-bit;;
16332 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16333 libsuff=32 shlibsuff=N32 libmagic=N32;;
16334 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16335 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16336 *) libsuff= shlibsuff= libmagic=never-match;;
16337 esac
16339 esac
16340 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16341 shlibpath_overrides_runpath=no
16342 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16343 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16344 hardcode_into_libs=yes
16347 # No shared lib support for Linux oldld, aout, or coff.
16348 linux*oldld* | linux*aout* | linux*coff*)
16349 dynamic_linker=no
16352 # This must be Linux ELF.
16353 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16354 version_type=linux
16355 need_lib_prefix=no
16356 need_version=no
16357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16358 soname_spec='${libname}${release}${shared_ext}$major'
16359 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16360 shlibpath_var=LD_LIBRARY_PATH
16361 shlibpath_overrides_runpath=no
16363 # Some binutils ld are patched to set DT_RUNPATH
16364 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16365 $as_echo_n "(cached) " >&6
16366 else
16367 lt_cv_shlibpath_overrides_runpath=no
16368 save_LDFLAGS=$LDFLAGS
16369 save_libdir=$libdir
16370 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16371 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16372 if test x$gcc_no_link = xyes; then
16373 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16376 /* end confdefs.h. */
16379 main ()
16383 return 0;
16385 _ACEOF
16386 if ac_fn_cxx_try_link "$LINENO"; then :
16387 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16388 lt_cv_shlibpath_overrides_runpath=yes
16391 rm -f core conftest.err conftest.$ac_objext \
16392 conftest$ac_exeext conftest.$ac_ext
16393 LDFLAGS=$save_LDFLAGS
16394 libdir=$save_libdir
16398 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16400 # This implies no fast_install, which is unacceptable.
16401 # Some rework will be needed to allow for fast_install
16402 # before this can be enabled.
16403 hardcode_into_libs=yes
16405 # Append ld.so.conf contents to the search path
16406 if test -f /etc/ld.so.conf; then
16407 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' ' '`
16408 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16411 # We used to test for /lib/ld.so.1 and disable shared libraries on
16412 # powerpc, because MkLinux only supported shared libraries with the
16413 # GNU dynamic linker. Since this was broken with cross compilers,
16414 # most powerpc-linux boxes support dynamic linking these days and
16415 # people can always --disable-shared, the test was removed, and we
16416 # assume the GNU/Linux dynamic linker is in use.
16417 dynamic_linker='GNU/Linux ld.so'
16420 netbsd*)
16421 version_type=sunos
16422 need_lib_prefix=no
16423 need_version=no
16424 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16427 dynamic_linker='NetBSD (a.out) ld.so'
16428 else
16429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16430 soname_spec='${libname}${release}${shared_ext}$major'
16431 dynamic_linker='NetBSD ld.elf_so'
16433 shlibpath_var=LD_LIBRARY_PATH
16434 shlibpath_overrides_runpath=yes
16435 hardcode_into_libs=yes
16438 newsos6)
16439 version_type=linux
16440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16441 shlibpath_var=LD_LIBRARY_PATH
16442 shlibpath_overrides_runpath=yes
16445 *nto* | *qnx*)
16446 version_type=qnx
16447 need_lib_prefix=no
16448 need_version=no
16449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16450 soname_spec='${libname}${release}${shared_ext}$major'
16451 shlibpath_var=LD_LIBRARY_PATH
16452 shlibpath_overrides_runpath=no
16453 hardcode_into_libs=yes
16454 dynamic_linker='ldqnx.so'
16457 openbsd*)
16458 version_type=sunos
16459 sys_lib_dlsearch_path_spec="/usr/lib"
16460 need_lib_prefix=no
16461 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16462 case $host_os in
16463 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16464 *) need_version=no ;;
16465 esac
16466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16467 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16468 shlibpath_var=LD_LIBRARY_PATH
16469 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16470 case $host_os in
16471 openbsd2.[89] | openbsd2.[89].*)
16472 shlibpath_overrides_runpath=no
16475 shlibpath_overrides_runpath=yes
16477 esac
16478 else
16479 shlibpath_overrides_runpath=yes
16483 os2*)
16484 libname_spec='$name'
16485 shrext_cmds=".dll"
16486 need_lib_prefix=no
16487 library_names_spec='$libname${shared_ext} $libname.a'
16488 dynamic_linker='OS/2 ld.exe'
16489 shlibpath_var=LIBPATH
16492 osf3* | osf4* | osf5*)
16493 version_type=osf
16494 need_lib_prefix=no
16495 need_version=no
16496 soname_spec='${libname}${release}${shared_ext}$major'
16497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16498 shlibpath_var=LD_LIBRARY_PATH
16499 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16500 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16503 rdos*)
16504 dynamic_linker=no
16507 solaris*)
16508 version_type=linux
16509 need_lib_prefix=no
16510 need_version=no
16511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16512 soname_spec='${libname}${release}${shared_ext}$major'
16513 shlibpath_var=LD_LIBRARY_PATH
16514 shlibpath_overrides_runpath=yes
16515 hardcode_into_libs=yes
16516 # ldd complains unless libraries are executable
16517 postinstall_cmds='chmod +x $lib'
16520 sunos4*)
16521 version_type=sunos
16522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16523 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16524 shlibpath_var=LD_LIBRARY_PATH
16525 shlibpath_overrides_runpath=yes
16526 if test "$with_gnu_ld" = yes; then
16527 need_lib_prefix=no
16529 need_version=yes
16532 sysv4 | sysv4.3*)
16533 version_type=linux
16534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16535 soname_spec='${libname}${release}${shared_ext}$major'
16536 shlibpath_var=LD_LIBRARY_PATH
16537 case $host_vendor in
16538 sni)
16539 shlibpath_overrides_runpath=no
16540 need_lib_prefix=no
16541 runpath_var=LD_RUN_PATH
16543 siemens)
16544 need_lib_prefix=no
16546 motorola)
16547 need_lib_prefix=no
16548 need_version=no
16549 shlibpath_overrides_runpath=no
16550 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16552 esac
16555 sysv4*MP*)
16556 if test -d /usr/nec ;then
16557 version_type=linux
16558 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16559 soname_spec='$libname${shared_ext}.$major'
16560 shlibpath_var=LD_LIBRARY_PATH
16564 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16565 version_type=freebsd-elf
16566 need_lib_prefix=no
16567 need_version=no
16568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16569 soname_spec='${libname}${release}${shared_ext}$major'
16570 shlibpath_var=LD_LIBRARY_PATH
16571 shlibpath_overrides_runpath=yes
16572 hardcode_into_libs=yes
16573 if test "$with_gnu_ld" = yes; then
16574 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16575 else
16576 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16577 case $host_os in
16578 sco3.2v5*)
16579 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16581 esac
16583 sys_lib_dlsearch_path_spec='/usr/lib'
16586 tpf*)
16587 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16588 version_type=linux
16589 need_lib_prefix=no
16590 need_version=no
16591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16592 shlibpath_var=LD_LIBRARY_PATH
16593 shlibpath_overrides_runpath=no
16594 hardcode_into_libs=yes
16597 uts4*)
16598 version_type=linux
16599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16600 soname_spec='${libname}${release}${shared_ext}$major'
16601 shlibpath_var=LD_LIBRARY_PATH
16605 dynamic_linker=no
16607 esac
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16609 $as_echo "$dynamic_linker" >&6; }
16610 test "$dynamic_linker" = no && can_build_shared=no
16612 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16613 if test "$GCC" = yes; then
16614 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16617 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16618 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16620 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16621 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16662 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16663 hardcode_action_CXX=
16664 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16665 test -n "$runpath_var_CXX" ||
16666 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16668 # We can hardcode non-existent directories.
16669 if test "$hardcode_direct_CXX" != no &&
16670 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16671 # have to relink, otherwise we might link with an installed library
16672 # when we should be linking with a yet-to-be-installed one
16673 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16674 test "$hardcode_minus_L_CXX" != no; then
16675 # Linking always hardcodes the temporary library directory.
16676 hardcode_action_CXX=relink
16677 else
16678 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16679 hardcode_action_CXX=immediate
16681 else
16682 # We cannot hardcode anything, or else we can only hardcode existing
16683 # directories.
16684 hardcode_action_CXX=unsupported
16686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16687 $as_echo "$hardcode_action_CXX" >&6; }
16689 if test "$hardcode_action_CXX" = relink ||
16690 test "$inherit_rpath_CXX" = yes; then
16691 # Fast installation is not supported
16692 enable_fast_install=no
16693 elif test "$shlibpath_overrides_runpath" = yes ||
16694 test "$enable_shared" = no; then
16695 # Fast installation is not necessary
16696 enable_fast_install=needless
16705 fi # test -n "$compiler"
16707 CC=$lt_save_CC
16708 LDCXX=$LD
16709 LD=$lt_save_LD
16710 GCC=$lt_save_GCC
16711 with_gnu_ld=$lt_save_with_gnu_ld
16712 lt_cv_path_LDCXX=$lt_cv_path_LD
16713 lt_cv_path_LD=$lt_save_path_LD
16714 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16715 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16716 fi # test "$_lt_caught_CXX_error" != yes
16718 ac_ext=c
16719 ac_cpp='$CPP $CPPFLAGS'
16720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16736 ac_config_commands="$ac_config_commands libtool"
16741 # Only expand once:
16747 case $host in
16748 *-cygwin* | *-mingw*)
16749 # 'host' will be top-level target in the case of a target lib,
16750 # we must compare to with_cross_host to decide if this is a native
16751 # or cross-compiler and select where to install dlls appropriately.
16752 if test -n "$with_cross_host" &&
16753 test x"$with_cross_host" != x"no"; then
16754 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
16755 else
16756 lt_host_flags='-no-undefined -bindir "$(bindir)"';
16760 lt_host_flags=
16762 esac
16767 if test -n "$ac_tool_prefix"; then
16768 for ac_prog in gcj
16770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16771 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16773 $as_echo_n "checking for $ac_word... " >&6; }
16774 if test "${ac_cv_prog_GCJ+set}" = set; then :
16775 $as_echo_n "(cached) " >&6
16776 else
16777 if test -n "$GCJ"; then
16778 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16779 else
16780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16781 for as_dir in $PATH
16783 IFS=$as_save_IFS
16784 test -z "$as_dir" && as_dir=.
16785 for ac_exec_ext in '' $ac_executable_extensions; do
16786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16787 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
16788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16789 break 2
16791 done
16792 done
16793 IFS=$as_save_IFS
16797 GCJ=$ac_cv_prog_GCJ
16798 if test -n "$GCJ"; then
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16800 $as_echo "$GCJ" >&6; }
16801 else
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16803 $as_echo "no" >&6; }
16807 test -n "$GCJ" && break
16808 done
16810 if test -z "$GCJ"; then
16811 ac_ct_GCJ=$GCJ
16812 for ac_prog in gcj
16814 # Extract the first word of "$ac_prog", so it can be a program name with args.
16815 set dummy $ac_prog; ac_word=$2
16816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16817 $as_echo_n "checking for $ac_word... " >&6; }
16818 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
16819 $as_echo_n "(cached) " >&6
16820 else
16821 if test -n "$ac_ct_GCJ"; then
16822 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
16823 else
16824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16825 for as_dir in $PATH
16827 IFS=$as_save_IFS
16828 test -z "$as_dir" && as_dir=.
16829 for ac_exec_ext in '' $ac_executable_extensions; do
16830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16831 ac_cv_prog_ac_ct_GCJ="$ac_prog"
16832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16833 break 2
16835 done
16836 done
16837 IFS=$as_save_IFS
16841 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
16842 if test -n "$ac_ct_GCJ"; then
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
16844 $as_echo "$ac_ct_GCJ" >&6; }
16845 else
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16847 $as_echo "no" >&6; }
16851 test -n "$ac_ct_GCJ" && break
16852 done
16854 if test "x$ac_ct_GCJ" = x; then
16855 GCJ="gcj"
16856 else
16857 case $cross_compiling:$ac_tool_warned in
16858 yes:)
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16861 ac_tool_warned=yes ;;
16862 esac
16863 GCJ=$ac_ct_GCJ
16867 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
16868 if test "x${GCJFLAGS-unset}" = xunset; then
16869 GCJFLAGS="-g -O2"
16873 depcc="$GCJ" am_compiler_list='gcc3 gcc'
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16876 $as_echo_n "checking dependency style of $depcc... " >&6; }
16877 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16878 $as_echo_n "(cached) " >&6
16879 else
16880 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16881 # We make a subdir and do the tests there. Otherwise we can end up
16882 # making bogus files that we don't know about and never remove. For
16883 # instance it was reported that on HP-UX the gcc test will end up
16884 # making a dummy file named `D' -- because `-MD' means `put the output
16885 # in D'.
16886 mkdir conftest.dir
16887 # Copy depcomp to subdir because otherwise we won't find it if we're
16888 # using a relative directory.
16889 cp "$am_depcomp" conftest.dir
16890 cd conftest.dir
16891 # We will build objects and dependencies in a subdirectory because
16892 # it helps to detect inapplicable dependency modes. For instance
16893 # both Tru64's cc and ICC support -MD to output dependencies as a
16894 # side effect of compilation, but ICC will put the dependencies in
16895 # the current directory while Tru64 will put them in the object
16896 # directory.
16897 mkdir sub
16899 am_cv_GCJ_dependencies_compiler_type=none
16900 if test "$am_compiler_list" = ""; then
16901 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16903 am__universal=false
16906 for depmode in $am_compiler_list; do
16907 # Setup a source with many dependencies, because some compilers
16908 # like to wrap large dependency lists on column 80 (with \), and
16909 # we should not choose a depcomp mode which is confused by this.
16911 # We need to recreate these files for each test, as the compiler may
16912 # overwrite some of them when testing with obscure command lines.
16913 # This happens at least with the AIX C compiler.
16914 : > sub/conftest.c
16915 for i in 1 2 3 4 5 6; do
16916 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16917 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16918 # Solaris 8's {/usr,}/bin/sh.
16919 touch sub/conftst$i.h
16920 done
16921 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16923 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16924 # mode. It turns out that the SunPro C++ compiler does not properly
16925 # handle `-M -o', and we need to detect this. Also, some Intel
16926 # versions had trouble with output in subdirs
16927 am__obj=sub/conftest.${OBJEXT-o}
16928 am__minus_obj="-o $am__obj"
16929 case $depmode in
16930 gcc)
16931 # This depmode causes a compiler race in universal mode.
16932 test "$am__universal" = false || continue
16934 nosideeffect)
16935 # after this tag, mechanisms are not by side-effect, so they'll
16936 # only be used when explicitly requested
16937 if test "x$enable_dependency_tracking" = xyes; then
16938 continue
16939 else
16940 break
16943 msvisualcpp | msvcmsys)
16944 # This compiler won't grok `-c -o', but also, the minuso test has
16945 # not run yet. These depmodes are late enough in the game, and
16946 # so weak that their functioning should not be impacted.
16947 am__obj=conftest.${OBJEXT-o}
16948 am__minus_obj=
16950 none) break ;;
16951 esac
16952 if depmode=$depmode \
16953 source=sub/conftest.c object=$am__obj \
16954 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16955 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16956 >/dev/null 2>conftest.err &&
16957 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16958 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16959 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16960 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16961 # icc doesn't choke on unknown options, it will just issue warnings
16962 # or remarks (even with -Werror). So we grep stderr for any message
16963 # that says an option was ignored or not supported.
16964 # When given -MP, icc 7.0 and 7.1 complain thusly:
16965 # icc: Command line warning: ignoring option '-M'; no argument required
16966 # The diagnosis changed in icc 8.0:
16967 # icc: Command line remark: option '-MP' not supported
16968 if (grep 'ignoring option' conftest.err ||
16969 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16970 am_cv_GCJ_dependencies_compiler_type=$depmode
16971 break
16974 done
16976 cd ..
16977 rm -rf conftest.dir
16978 else
16979 am_cv_GCJ_dependencies_compiler_type=none
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16984 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
16985 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
16988 test "x$enable_dependency_tracking" != xno \
16989 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16990 am__fastdepGCJ_TRUE=
16991 am__fastdepGCJ_FALSE='#'
16992 else
16993 am__fastdepGCJ_TRUE='#'
16994 am__fastdepGCJ_FALSE=
16999 if test -n "$ac_tool_prefix"; then
17000 for ac_prog in gcj
17002 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17003 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17005 $as_echo_n "checking for $ac_word... " >&6; }
17006 if test "${ac_cv_prog_GCJ+set}" = set; then :
17007 $as_echo_n "(cached) " >&6
17008 else
17009 if test -n "$GCJ"; then
17010 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
17011 else
17012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17013 for as_dir in $PATH
17015 IFS=$as_save_IFS
17016 test -z "$as_dir" && as_dir=.
17017 for ac_exec_ext in '' $ac_executable_extensions; do
17018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17019 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
17020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17021 break 2
17023 done
17024 done
17025 IFS=$as_save_IFS
17029 GCJ=$ac_cv_prog_GCJ
17030 if test -n "$GCJ"; then
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
17032 $as_echo "$GCJ" >&6; }
17033 else
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17035 $as_echo "no" >&6; }
17039 test -n "$GCJ" && break
17040 done
17042 if test -z "$GCJ"; then
17043 ac_ct_GCJ=$GCJ
17044 for ac_prog in gcj
17046 # Extract the first word of "$ac_prog", so it can be a program name with args.
17047 set dummy $ac_prog; ac_word=$2
17048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17049 $as_echo_n "checking for $ac_word... " >&6; }
17050 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
17051 $as_echo_n "(cached) " >&6
17052 else
17053 if test -n "$ac_ct_GCJ"; then
17054 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
17055 else
17056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17057 for as_dir in $PATH
17059 IFS=$as_save_IFS
17060 test -z "$as_dir" && as_dir=.
17061 for ac_exec_ext in '' $ac_executable_extensions; do
17062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17063 ac_cv_prog_ac_ct_GCJ="$ac_prog"
17064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17065 break 2
17067 done
17068 done
17069 IFS=$as_save_IFS
17073 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
17074 if test -n "$ac_ct_GCJ"; then
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
17076 $as_echo "$ac_ct_GCJ" >&6; }
17077 else
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17079 $as_echo "no" >&6; }
17083 test -n "$ac_ct_GCJ" && break
17084 done
17086 if test "x$ac_ct_GCJ" = x; then
17087 GCJ="gcj"
17088 else
17089 case $cross_compiling:$ac_tool_warned in
17090 yes:)
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17093 ac_tool_warned=yes ;;
17094 esac
17095 GCJ=$ac_ct_GCJ
17099 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
17100 if test "x${GCJFLAGS-unset}" = xunset; then
17101 GCJFLAGS="-g -O2"
17105 depcc="$GCJ" am_compiler_list='gcc3 gcc'
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17108 $as_echo_n "checking dependency style of $depcc... " >&6; }
17109 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
17110 $as_echo_n "(cached) " >&6
17111 else
17112 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17113 # We make a subdir and do the tests there. Otherwise we can end up
17114 # making bogus files that we don't know about and never remove. For
17115 # instance it was reported that on HP-UX the gcc test will end up
17116 # making a dummy file named `D' -- because `-MD' means `put the output
17117 # in D'.
17118 mkdir conftest.dir
17119 # Copy depcomp to subdir because otherwise we won't find it if we're
17120 # using a relative directory.
17121 cp "$am_depcomp" conftest.dir
17122 cd conftest.dir
17123 # We will build objects and dependencies in a subdirectory because
17124 # it helps to detect inapplicable dependency modes. For instance
17125 # both Tru64's cc and ICC support -MD to output dependencies as a
17126 # side effect of compilation, but ICC will put the dependencies in
17127 # the current directory while Tru64 will put them in the object
17128 # directory.
17129 mkdir sub
17131 am_cv_GCJ_dependencies_compiler_type=none
17132 if test "$am_compiler_list" = ""; then
17133 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17135 am__universal=false
17138 for depmode in $am_compiler_list; do
17139 # Setup a source with many dependencies, because some compilers
17140 # like to wrap large dependency lists on column 80 (with \), and
17141 # we should not choose a depcomp mode which is confused by this.
17143 # We need to recreate these files for each test, as the compiler may
17144 # overwrite some of them when testing with obscure command lines.
17145 # This happens at least with the AIX C compiler.
17146 : > sub/conftest.c
17147 for i in 1 2 3 4 5 6; do
17148 echo '#include "conftst'$i'.h"' >> sub/conftest.c
17149 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17150 # Solaris 8's {/usr,}/bin/sh.
17151 touch sub/conftst$i.h
17152 done
17153 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17155 # We check with `-c' and `-o' for the sake of the "dashmstdout"
17156 # mode. It turns out that the SunPro C++ compiler does not properly
17157 # handle `-M -o', and we need to detect this. Also, some Intel
17158 # versions had trouble with output in subdirs
17159 am__obj=sub/conftest.${OBJEXT-o}
17160 am__minus_obj="-o $am__obj"
17161 case $depmode in
17162 gcc)
17163 # This depmode causes a compiler race in universal mode.
17164 test "$am__universal" = false || continue
17166 nosideeffect)
17167 # after this tag, mechanisms are not by side-effect, so they'll
17168 # only be used when explicitly requested
17169 if test "x$enable_dependency_tracking" = xyes; then
17170 continue
17171 else
17172 break
17175 msvisualcpp | msvcmsys)
17176 # This compiler won't grok `-c -o', but also, the minuso test has
17177 # not run yet. These depmodes are late enough in the game, and
17178 # so weak that their functioning should not be impacted.
17179 am__obj=conftest.${OBJEXT-o}
17180 am__minus_obj=
17182 none) break ;;
17183 esac
17184 if depmode=$depmode \
17185 source=sub/conftest.c object=$am__obj \
17186 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17187 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17188 >/dev/null 2>conftest.err &&
17189 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17190 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17191 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17192 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17193 # icc doesn't choke on unknown options, it will just issue warnings
17194 # or remarks (even with -Werror). So we grep stderr for any message
17195 # that says an option was ignored or not supported.
17196 # When given -MP, icc 7.0 and 7.1 complain thusly:
17197 # icc: Command line warning: ignoring option '-M'; no argument required
17198 # The diagnosis changed in icc 8.0:
17199 # icc: Command line remark: option '-MP' not supported
17200 if (grep 'ignoring option' conftest.err ||
17201 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17202 am_cv_GCJ_dependencies_compiler_type=$depmode
17203 break
17206 done
17208 cd ..
17209 rm -rf conftest.dir
17210 else
17211 am_cv_GCJ_dependencies_compiler_type=none
17215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
17216 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
17217 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
17220 test "x$enable_dependency_tracking" != xno \
17221 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
17222 am__fastdepGCJ_TRUE=
17223 am__fastdepGCJ_FALSE='#'
17224 else
17225 am__fastdepGCJ_TRUE='#'
17226 am__fastdepGCJ_FALSE=
17233 # Source file extension for Java test sources.
17234 ac_ext=c
17236 # Object file extension for compiled Java test sources.
17237 objext=o
17238 objext_GCJ=$objext
17240 # Code to be used in simple compile tests
17241 lt_simple_compile_test_code="int some_variable = 0;"
17243 # Code to be used in simple link tests
17244 lt_simple_link_test_code='int main(){return(0);}'
17246 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17253 # If no C compiler was specified, use CC.
17254 LTCC=${LTCC-"$CC"}
17256 # If no C compiler flags were specified, use CFLAGS.
17257 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17259 # Allow CC to be a program name with arguments.
17260 compiler=$CC
17263 # save warnings/boilerplate of simple test code
17264 ac_outfile=conftest.$ac_objext
17265 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17266 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17267 _lt_compiler_boilerplate=`cat conftest.err`
17268 $RM conftest*
17270 ac_outfile=conftest.$ac_objext
17271 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17272 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17273 _lt_linker_boilerplate=`cat conftest.err`
17274 $RM -r conftest*
17277 # Allow CC to be a program name with arguments.
17278 GCC=yes
17279 compiler=$CC
17280 compiler_GCJ=$CC
17281 for cc_temp in $compiler""; do
17282 case $cc_temp in
17283 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17284 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17285 \-*) ;;
17286 *) break;;
17287 esac
17288 done
17289 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17292 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17293 archive_cmds_need_lc_GCJ=no
17295 old_archive_cmds_GCJ=$old_archive_cmds
17297 ## CAVEAT EMPTOR:
17298 ## There is no encapsulation within the following macros, do not change
17299 ## the running order or otherwise move them around unless you know exactly
17300 ## what you are doing...
17301 if test -n "$compiler"; then
17303 lt_prog_compiler_no_builtin_flag_GCJ=
17305 if test "$GCC" = yes; then
17306 case $cc_basename in
17307 nvcc*)
17308 lt_prog_compiler_no_builtin_flag_GCJ=' -Xcompiler -fno-builtin' ;;
17310 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' ;;
17311 esac
17313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17314 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17315 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
17316 $as_echo_n "(cached) " >&6
17317 else
17318 lt_cv_prog_compiler_rtti_exceptions=no
17319 ac_outfile=conftest.$ac_objext
17320 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17321 lt_compiler_flag="-fno-rtti -fno-exceptions"
17322 # Insert the option either (1) after the last *FLAGS variable, or
17323 # (2) before a word containing "conftest.", or (3) at the end.
17324 # Note that $ac_compile itself does not contain backslashes and begins
17325 # with a dollar sign (not a hyphen), so the echo should work correctly.
17326 # The option is referenced via a variable to avoid confusing sed.
17327 lt_compile=`echo "$ac_compile" | $SED \
17328 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17329 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17330 -e 's:$: $lt_compiler_flag:'`
17331 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17332 (eval "$lt_compile" 2>conftest.err)
17333 ac_status=$?
17334 cat conftest.err >&5
17335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336 if (exit $ac_status) && test -s "$ac_outfile"; then
17337 # The compiler can only warn and ignore the option if not recognized
17338 # So say no if there are warnings other than the usual output.
17339 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17340 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17341 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17342 lt_cv_prog_compiler_rtti_exceptions=yes
17345 $RM conftest*
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17349 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17351 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17352 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17353 else
17361 lt_prog_compiler_wl_GCJ=
17362 lt_prog_compiler_pic_GCJ=
17363 lt_prog_compiler_static_GCJ=
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17366 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17368 if test "$GCC" = yes; then
17369 lt_prog_compiler_wl_GCJ='-Wl,'
17370 lt_prog_compiler_static_GCJ='-static'
17372 case $host_os in
17373 aix*)
17374 # All AIX code is PIC.
17375 if test "$host_cpu" = ia64; then
17376 # AIX 5 now supports IA64 processor
17377 lt_prog_compiler_static_GCJ='-Bstatic'
17381 amigaos*)
17382 case $host_cpu in
17383 powerpc)
17384 # see comment about AmigaOS4 .so support
17385 lt_prog_compiler_pic_GCJ='-fPIC'
17387 m68k)
17388 # FIXME: we need at least 68020 code to build shared libraries, but
17389 # adding the `-m68020' flag to GCC prevents building anything better,
17390 # like `-m68040'.
17391 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17393 esac
17396 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17397 # PIC is the default for these OSes.
17400 mingw* | cygwin* | pw32* | os2* | cegcc*)
17401 # This hack is so that the source file can tell whether it is being
17402 # built for inclusion in a dll (and should export symbols for example).
17403 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17404 # (--disable-auto-import) libraries
17408 darwin* | rhapsody*)
17409 # PIC is the default on this platform
17410 # Common symbols not allowed in MH_DYLIB files
17411 lt_prog_compiler_pic_GCJ='-fno-common'
17414 haiku*)
17415 # PIC is the default for Haiku.
17416 # The "-static" flag exists, but is broken.
17417 lt_prog_compiler_static_GCJ=
17420 hpux*)
17421 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17422 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17423 # sets the default TLS model and affects inlining.
17424 case $host_cpu in
17425 hppa*64*)
17426 # +Z the default
17429 lt_prog_compiler_pic_GCJ='-fPIC'
17431 esac
17434 interix[3-9]*)
17435 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17436 # Instead, we relocate shared libraries at runtime.
17439 msdosdjgpp*)
17440 # Just because we use GCC doesn't mean we suddenly get shared libraries
17441 # on systems that don't support them.
17442 lt_prog_compiler_can_build_shared_GCJ=no
17443 enable_shared=no
17446 *nto* | *qnx*)
17447 # QNX uses GNU C++, but need to define -shared option too, otherwise
17448 # it will coredump.
17449 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17452 sysv4*MP*)
17453 if test -d /usr/nec; then
17454 lt_prog_compiler_pic_GCJ=-Kconform_pic
17459 lt_prog_compiler_pic_GCJ='-fPIC'
17461 esac
17463 case $cc_basename in
17464 nvcc*) # Cuda Compiler Driver 2.2
17465 lt_prog_compiler_wl_GCJ='-Xlinker '
17466 lt_prog_compiler_pic_GCJ='-Xcompiler -fPIC'
17468 esac
17469 else
17470 # PORTME Check for flag to pass linker flags through the system compiler.
17471 case $host_os in
17472 aix*)
17473 lt_prog_compiler_wl_GCJ='-Wl,'
17474 if test "$host_cpu" = ia64; then
17475 # AIX 5 now supports IA64 processor
17476 lt_prog_compiler_static_GCJ='-Bstatic'
17477 else
17478 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17482 mingw* | cygwin* | pw32* | os2* | cegcc*)
17483 # This hack is so that the source file can tell whether it is being
17484 # built for inclusion in a dll (and should export symbols for example).
17488 hpux9* | hpux10* | hpux11*)
17489 lt_prog_compiler_wl_GCJ='-Wl,'
17490 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17491 # not for PA HP-UX.
17492 case $host_cpu in
17493 hppa*64*|ia64*)
17494 # +Z the default
17497 lt_prog_compiler_pic_GCJ='+Z'
17499 esac
17500 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17501 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17504 irix5* | irix6* | nonstopux*)
17505 lt_prog_compiler_wl_GCJ='-Wl,'
17506 # PIC (with -KPIC) is the default.
17507 lt_prog_compiler_static_GCJ='-non_shared'
17510 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17511 case $cc_basename in
17512 # old Intel for x86_64 which still supported -KPIC.
17513 ecc*)
17514 lt_prog_compiler_wl_GCJ='-Wl,'
17515 lt_prog_compiler_pic_GCJ='-KPIC'
17516 lt_prog_compiler_static_GCJ='-static'
17518 # icc used to be incompatible with GCC.
17519 # ICC 10 doesn't accept -KPIC any more.
17520 icc* | ifort*)
17521 lt_prog_compiler_wl_GCJ='-Wl,'
17522 lt_prog_compiler_pic_GCJ='-fPIC'
17523 lt_prog_compiler_static_GCJ='-static'
17525 # Lahey Fortran 8.1.
17526 lf95*)
17527 lt_prog_compiler_wl_GCJ='-Wl,'
17528 lt_prog_compiler_pic_GCJ='--shared'
17529 lt_prog_compiler_static_GCJ='--static'
17531 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17532 # Portland Group compilers (*not* the Pentium gcc compiler,
17533 # which looks to be a dead project)
17534 lt_prog_compiler_wl_GCJ='-Wl,'
17535 lt_prog_compiler_pic_GCJ='-fpic'
17536 lt_prog_compiler_static_GCJ='-Bstatic'
17538 ccc*)
17539 lt_prog_compiler_wl_GCJ='-Wl,'
17540 # All Alpha code is PIC.
17541 lt_prog_compiler_static_GCJ='-non_shared'
17543 xl* | bgxl* | bgf* | mpixl*)
17544 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17545 lt_prog_compiler_wl_GCJ='-Wl,'
17546 lt_prog_compiler_pic_GCJ='-qpic'
17547 lt_prog_compiler_static_GCJ='-qstaticlink'
17550 case `$CC -V 2>&1 | sed 5q` in
17551 *Sun\ F* | *Sun*Fortran*)
17552 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17553 lt_prog_compiler_pic_GCJ='-KPIC'
17554 lt_prog_compiler_static_GCJ='-Bstatic'
17555 lt_prog_compiler_wl_GCJ=''
17557 *Sun\ C*)
17558 # Sun C 5.9
17559 lt_prog_compiler_pic_GCJ='-KPIC'
17560 lt_prog_compiler_static_GCJ='-Bstatic'
17561 lt_prog_compiler_wl_GCJ='-Wl,'
17563 esac
17565 esac
17568 newsos6)
17569 lt_prog_compiler_pic_GCJ='-KPIC'
17570 lt_prog_compiler_static_GCJ='-Bstatic'
17573 *nto* | *qnx*)
17574 # QNX uses GNU C++, but need to define -shared option too, otherwise
17575 # it will coredump.
17576 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17579 osf3* | osf4* | osf5*)
17580 lt_prog_compiler_wl_GCJ='-Wl,'
17581 # All OSF/1 code is PIC.
17582 lt_prog_compiler_static_GCJ='-non_shared'
17585 rdos*)
17586 lt_prog_compiler_static_GCJ='-non_shared'
17589 solaris*)
17590 lt_prog_compiler_pic_GCJ='-KPIC'
17591 lt_prog_compiler_static_GCJ='-Bstatic'
17592 case $cc_basename in
17593 f77* | f90* | f95*)
17594 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17596 lt_prog_compiler_wl_GCJ='-Wl,';;
17597 esac
17600 sunos4*)
17601 lt_prog_compiler_wl_GCJ='-Qoption ld '
17602 lt_prog_compiler_pic_GCJ='-PIC'
17603 lt_prog_compiler_static_GCJ='-Bstatic'
17606 sysv4 | sysv4.2uw2* | sysv4.3*)
17607 lt_prog_compiler_wl_GCJ='-Wl,'
17608 lt_prog_compiler_pic_GCJ='-KPIC'
17609 lt_prog_compiler_static_GCJ='-Bstatic'
17612 sysv4*MP*)
17613 if test -d /usr/nec ;then
17614 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17615 lt_prog_compiler_static_GCJ='-Bstatic'
17619 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17620 lt_prog_compiler_wl_GCJ='-Wl,'
17621 lt_prog_compiler_pic_GCJ='-KPIC'
17622 lt_prog_compiler_static_GCJ='-Bstatic'
17625 unicos*)
17626 lt_prog_compiler_wl_GCJ='-Wl,'
17627 lt_prog_compiler_can_build_shared_GCJ=no
17630 uts4*)
17631 lt_prog_compiler_pic_GCJ='-pic'
17632 lt_prog_compiler_static_GCJ='-Bstatic'
17636 lt_prog_compiler_can_build_shared_GCJ=no
17638 esac
17641 case $host_os in
17642 # For platforms which do not support PIC, -DPIC is meaningless:
17643 *djgpp*)
17644 lt_prog_compiler_pic_GCJ=
17647 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17649 esac
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
17651 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17656 # Check to make sure the PIC flag actually works.
17658 if test -n "$lt_prog_compiler_pic_GCJ"; then
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17660 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17661 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
17662 $as_echo_n "(cached) " >&6
17663 else
17664 lt_cv_prog_compiler_pic_works_GCJ=no
17665 ac_outfile=conftest.$ac_objext
17666 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17667 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17668 # Insert the option either (1) after the last *FLAGS variable, or
17669 # (2) before a word containing "conftest.", or (3) at the end.
17670 # Note that $ac_compile itself does not contain backslashes and begins
17671 # with a dollar sign (not a hyphen), so the echo should work correctly.
17672 # The option is referenced via a variable to avoid confusing sed.
17673 lt_compile=`echo "$ac_compile" | $SED \
17674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17676 -e 's:$: $lt_compiler_flag:'`
17677 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17678 (eval "$lt_compile" 2>conftest.err)
17679 ac_status=$?
17680 cat conftest.err >&5
17681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682 if (exit $ac_status) && test -s "$ac_outfile"; then
17683 # The compiler can only warn and ignore the option if not recognized
17684 # So say no if there are warnings other than the usual output.
17685 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17686 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17687 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17688 lt_cv_prog_compiler_pic_works_GCJ=yes
17691 $RM conftest*
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17695 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17697 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17698 case $lt_prog_compiler_pic_GCJ in
17699 "" | " "*) ;;
17700 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17701 esac
17702 else
17703 lt_prog_compiler_pic_GCJ=
17704 lt_prog_compiler_can_build_shared_GCJ=no
17712 # Check to make sure the static flag actually works.
17714 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17716 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17717 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
17718 $as_echo_n "(cached) " >&6
17719 else
17720 lt_cv_prog_compiler_static_works_GCJ=no
17721 save_LDFLAGS="$LDFLAGS"
17722 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17723 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17724 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17725 # The linker can only warn and ignore the option if not recognized
17726 # So say no if there are warnings
17727 if test -s conftest.err; then
17728 # Append any errors to the config.log.
17729 cat conftest.err 1>&5
17730 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17731 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17732 if diff conftest.exp conftest.er2 >/dev/null; then
17733 lt_cv_prog_compiler_static_works_GCJ=yes
17735 else
17736 lt_cv_prog_compiler_static_works_GCJ=yes
17739 $RM -r conftest*
17740 LDFLAGS="$save_LDFLAGS"
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17744 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17746 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17748 else
17749 lt_prog_compiler_static_GCJ=
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17756 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17757 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17758 $as_echo_n "(cached) " >&6
17759 else
17760 lt_cv_prog_compiler_c_o_GCJ=no
17761 $RM -r conftest 2>/dev/null
17762 mkdir conftest
17763 cd conftest
17764 mkdir out
17765 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17767 lt_compiler_flag="-o out/conftest2.$ac_objext"
17768 # Insert the option either (1) after the last *FLAGS variable, or
17769 # (2) before a word containing "conftest.", or (3) at the end.
17770 # Note that $ac_compile itself does not contain backslashes and begins
17771 # with a dollar sign (not a hyphen), so the echo should work correctly.
17772 lt_compile=`echo "$ac_compile" | $SED \
17773 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17774 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17775 -e 's:$: $lt_compiler_flag:'`
17776 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17777 (eval "$lt_compile" 2>out/conftest.err)
17778 ac_status=$?
17779 cat out/conftest.err >&5
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17782 then
17783 # The compiler can only warn and ignore the option if not recognized
17784 # So say no if there are warnings
17785 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17786 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17787 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17788 lt_cv_prog_compiler_c_o_GCJ=yes
17791 chmod u+w . 2>&5
17792 $RM conftest*
17793 # SGI C++ compiler will create directory out/ii_files/ for
17794 # template instantiation
17795 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17796 $RM out/* && rmdir out
17797 cd ..
17798 $RM -r conftest
17799 $RM conftest*
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17803 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17808 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17809 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17810 $as_echo_n "(cached) " >&6
17811 else
17812 lt_cv_prog_compiler_c_o_GCJ=no
17813 $RM -r conftest 2>/dev/null
17814 mkdir conftest
17815 cd conftest
17816 mkdir out
17817 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17819 lt_compiler_flag="-o out/conftest2.$ac_objext"
17820 # Insert the option either (1) after the last *FLAGS variable, or
17821 # (2) before a word containing "conftest.", or (3) at the end.
17822 # Note that $ac_compile itself does not contain backslashes and begins
17823 # with a dollar sign (not a hyphen), so the echo should work correctly.
17824 lt_compile=`echo "$ac_compile" | $SED \
17825 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17827 -e 's:$: $lt_compiler_flag:'`
17828 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17829 (eval "$lt_compile" 2>out/conftest.err)
17830 ac_status=$?
17831 cat out/conftest.err >&5
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17834 then
17835 # The compiler can only warn and ignore the option if not recognized
17836 # So say no if there are warnings
17837 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17838 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17839 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17840 lt_cv_prog_compiler_c_o_GCJ=yes
17843 chmod u+w . 2>&5
17844 $RM conftest*
17845 # SGI C++ compiler will create directory out/ii_files/ for
17846 # template instantiation
17847 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17848 $RM out/* && rmdir out
17849 cd ..
17850 $RM -r conftest
17851 $RM conftest*
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17855 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17860 hard_links="nottested"
17861 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17862 # do not overwrite the value of need_locks provided by the user
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17864 $as_echo_n "checking if we can lock with hard links... " >&6; }
17865 hard_links=yes
17866 $RM conftest*
17867 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17868 touch conftest.a
17869 ln conftest.a conftest.b 2>&5 || hard_links=no
17870 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17872 $as_echo "$hard_links" >&6; }
17873 if test "$hard_links" = no; then
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17875 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17876 need_locks=warn
17878 else
17879 need_locks=no
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17885 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17887 runpath_var=
17888 allow_undefined_flag_GCJ=
17889 always_export_symbols_GCJ=no
17890 archive_cmds_GCJ=
17891 archive_expsym_cmds_GCJ=
17892 compiler_needs_object_GCJ=no
17893 enable_shared_with_static_runtimes_GCJ=no
17894 export_dynamic_flag_spec_GCJ=
17895 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17896 hardcode_automatic_GCJ=no
17897 hardcode_direct_GCJ=no
17898 hardcode_direct_absolute_GCJ=no
17899 hardcode_libdir_flag_spec_GCJ=
17900 hardcode_libdir_flag_spec_ld_GCJ=
17901 hardcode_libdir_separator_GCJ=
17902 hardcode_minus_L_GCJ=no
17903 hardcode_shlibpath_var_GCJ=unsupported
17904 inherit_rpath_GCJ=no
17905 link_all_deplibs_GCJ=unknown
17906 module_cmds_GCJ=
17907 module_expsym_cmds_GCJ=
17908 old_archive_from_new_cmds_GCJ=
17909 old_archive_from_expsyms_cmds_GCJ=
17910 thread_safe_flag_spec_GCJ=
17911 whole_archive_flag_spec_GCJ=
17912 # include_expsyms should be a list of space-separated symbols to be *always*
17913 # included in the symbol list
17914 include_expsyms_GCJ=
17915 # exclude_expsyms can be an extended regexp of symbols to exclude
17916 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17917 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17918 # as well as any symbol that contains `d'.
17919 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17920 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17921 # platforms (ab)use it in PIC code, but their linkers get confused if
17922 # the symbol is explicitly referenced. Since portable code cannot
17923 # rely on this symbol name, it's probably fine to never include it in
17924 # preloaded symbol tables.
17925 # Exclude shared library initialization/finalization symbols.
17926 extract_expsyms_cmds=
17928 case $host_os in
17929 cygwin* | mingw* | pw32* | cegcc*)
17930 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17931 # When not using gcc, we currently assume that we are using
17932 # Microsoft Visual C++.
17933 if test "$GCC" != yes; then
17934 with_gnu_ld=no
17937 interix*)
17938 # we just hope/assume this is gcc and not c89 (= MSVC++)
17939 with_gnu_ld=yes
17941 openbsd*)
17942 with_gnu_ld=no
17944 esac
17946 ld_shlibs_GCJ=yes
17948 # On some targets, GNU ld is compatible enough with the native linker
17949 # that we're better off using the native interface for both.
17950 lt_use_gnu_ld_interface=no
17951 if test "$with_gnu_ld" = yes; then
17952 case $host_os in
17953 aix*)
17954 # The AIX port of GNU ld has always aspired to compatibility
17955 # with the native linker. However, as the warning in the GNU ld
17956 # block says, versions before 2.19.5* couldn't really create working
17957 # shared libraries, regardless of the interface used.
17958 case `$LD -v 2>&1` in
17959 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17960 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17961 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17963 lt_use_gnu_ld_interface=yes
17965 esac
17968 lt_use_gnu_ld_interface=yes
17970 esac
17973 if test "$lt_use_gnu_ld_interface" = yes; then
17974 # If archive_cmds runs LD, not CC, wlarc should be empty
17975 wlarc='${wl}'
17977 # Set some defaults for GNU ld with shared library support. These
17978 # are reset later if shared libraries are not supported. Putting them
17979 # here allows them to be overridden if necessary.
17980 runpath_var=LD_RUN_PATH
17981 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17982 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17983 # ancient GNU ld didn't support --whole-archive et. al.
17984 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17985 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17986 else
17987 whole_archive_flag_spec_GCJ=
17989 supports_anon_versioning=no
17990 case `$LD -v 2>&1` in
17991 *GNU\ gold*) supports_anon_versioning=yes ;;
17992 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17993 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17994 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17995 *\ 2.11.*) ;; # other 2.11 versions
17996 *) supports_anon_versioning=yes ;;
17997 esac
17999 # See if GNU ld supports shared libraries.
18000 case $host_os in
18001 aix[3-9]*)
18002 # On AIX/PPC, the GNU linker is very broken
18003 if test "$host_cpu" != ia64; then
18004 ld_shlibs_GCJ=no
18005 cat <<_LT_EOF 1>&2
18007 *** Warning: the GNU linker, at least up to release 2.19, is reported
18008 *** to be unable to reliably create shared libraries on AIX.
18009 *** Therefore, libtool is disabling shared libraries support. If you
18010 *** really care for shared libraries, you may want to install binutils
18011 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
18012 *** You will then need to restart the configuration process.
18014 _LT_EOF
18018 amigaos*)
18019 case $host_cpu in
18020 powerpc)
18021 # see comment about AmigaOS4 .so support
18022 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18023 archive_expsym_cmds_GCJ=''
18025 m68k)
18026 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)'
18027 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18028 hardcode_minus_L_GCJ=yes
18030 esac
18033 beos*)
18034 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18035 allow_undefined_flag_GCJ=unsupported
18036 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18037 # support --undefined. This deserves some investigation. FIXME
18038 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18039 else
18040 ld_shlibs_GCJ=no
18044 cygwin* | mingw* | pw32* | cegcc*)
18045 # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18046 # as there is no search path for DLLs.
18047 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18048 export_dynamic_flag_spec_GCJ='${wl}--export-all-symbols'
18049 allow_undefined_flag_GCJ=unsupported
18050 always_export_symbols_GCJ=no
18051 enable_shared_with_static_runtimes_GCJ=yes
18052 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18054 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18055 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18056 # If the export-symbols file already is a .def file (1st line
18057 # is EXPORTS), use it as is; otherwise, prepend...
18058 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18059 cp $export_symbols $output_objdir/$soname.def;
18060 else
18061 echo EXPORTS > $output_objdir/$soname.def;
18062 cat $export_symbols >> $output_objdir/$soname.def;
18064 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18065 else
18066 ld_shlibs_GCJ=no
18070 haiku*)
18071 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18072 link_all_deplibs_GCJ=yes
18075 interix[3-9]*)
18076 hardcode_direct_GCJ=no
18077 hardcode_shlibpath_var_GCJ=no
18078 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18079 export_dynamic_flag_spec_GCJ='${wl}-E'
18080 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18081 # Instead, shared libraries are loaded at an image base (0x10000000 by
18082 # default) and relocated if they conflict, which is a slow very memory
18083 # consuming and fragmenting process. To avoid this, we pick a random,
18084 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18085 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18086 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'
18087 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'
18090 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
18091 tmp_diet=no
18092 if test "$host_os" = linux-dietlibc; then
18093 case $cc_basename in
18094 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
18095 esac
18097 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
18098 && test "$tmp_diet" = no
18099 then
18100 tmp_addflag=
18101 tmp_sharedflag='-shared'
18102 case $cc_basename,$host_cpu in
18103 pgcc*) # Portland Group C compiler
18104 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'
18105 tmp_addflag=' $pic_flag'
18107 pgf77* | pgf90* | pgf95* | pgfortran*)
18108 # Portland Group f77 and f90 compilers
18109 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'
18110 tmp_addflag=' $pic_flag -Mnomain' ;;
18111 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18112 tmp_addflag=' -i_dynamic' ;;
18113 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18114 tmp_addflag=' -i_dynamic -nofor_main' ;;
18115 ifc* | ifort*) # Intel Fortran compiler
18116 tmp_addflag=' -nofor_main' ;;
18117 lf95*) # Lahey Fortran 8.1
18118 whole_archive_flag_spec_GCJ=
18119 tmp_sharedflag='--shared' ;;
18120 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
18121 tmp_sharedflag='-qmkshrobj'
18122 tmp_addflag= ;;
18123 nvcc*) # Cuda Compiler Driver 2.2
18124 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'
18125 compiler_needs_object_GCJ=yes
18127 esac
18128 case `$CC -V 2>&1 | sed 5q` in
18129 *Sun\ C*) # Sun C 5.9
18130 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'
18131 compiler_needs_object_GCJ=yes
18132 tmp_sharedflag='-G' ;;
18133 *Sun\ F*) # Sun Fortran 8.3
18134 tmp_sharedflag='-G' ;;
18135 esac
18136 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18138 if test "x$supports_anon_versioning" = xyes; then
18139 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18140 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18141 echo "local: *; };" >> $output_objdir/$libname.ver~
18142 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18145 case $cc_basename in
18146 xlf* | bgf* | bgxlf* | mpixlf*)
18147 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
18148 whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
18149 hardcode_libdir_flag_spec_GCJ=
18150 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18151 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
18152 if test "x$supports_anon_versioning" = xyes; then
18153 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18154 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18155 echo "local: *; };" >> $output_objdir/$libname.ver~
18156 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
18159 esac
18160 else
18161 ld_shlibs_GCJ=no
18165 netbsd*)
18166 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18167 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18168 wlarc=
18169 else
18170 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18171 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18175 solaris*)
18176 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
18177 ld_shlibs_GCJ=no
18178 cat <<_LT_EOF 1>&2
18180 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18181 *** create shared libraries on Solaris systems. Therefore, libtool
18182 *** is disabling shared libraries support. We urge you to upgrade GNU
18183 *** binutils to release 2.9.1 or newer. Another option is to modify
18184 *** your PATH or compiler configuration so that the native linker is
18185 *** used, and then restart.
18187 _LT_EOF
18188 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18189 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18190 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18191 else
18192 ld_shlibs_GCJ=no
18196 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18197 case `$LD -v 2>&1` in
18198 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18199 ld_shlibs_GCJ=no
18200 cat <<_LT_EOF 1>&2
18202 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18203 *** reliably create shared libraries on SCO systems. Therefore, libtool
18204 *** is disabling shared libraries support. We urge you to upgrade GNU
18205 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18206 *** your PATH or compiler configuration so that the native linker is
18207 *** used, and then restart.
18209 _LT_EOF
18212 # For security reasons, it is highly recommended that you always
18213 # use absolute paths for naming shared libraries, and exclude the
18214 # DT_RUNPATH tag from executables and libraries. But doing so
18215 # requires that you compile everything twice, which is a pain.
18216 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18217 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18218 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18219 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18220 else
18221 ld_shlibs_GCJ=no
18224 esac
18227 sunos4*)
18228 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18229 wlarc=
18230 hardcode_direct_GCJ=yes
18231 hardcode_shlibpath_var_GCJ=no
18235 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18236 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18237 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18238 else
18239 ld_shlibs_GCJ=no
18242 esac
18244 if test "$ld_shlibs_GCJ" = no; then
18245 runpath_var=
18246 hardcode_libdir_flag_spec_GCJ=
18247 export_dynamic_flag_spec_GCJ=
18248 whole_archive_flag_spec_GCJ=
18250 else
18251 # PORTME fill in a description of your system's linker (not GNU ld)
18252 case $host_os in
18253 aix3*)
18254 allow_undefined_flag_GCJ=unsupported
18255 always_export_symbols_GCJ=yes
18256 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'
18257 # Note: this linker hardcodes the directories in LIBPATH if there
18258 # are no directories specified by -L.
18259 hardcode_minus_L_GCJ=yes
18260 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18261 # Neither direct hardcoding nor static linking is supported with a
18262 # broken collect2.
18263 hardcode_direct_GCJ=unsupported
18267 aix[4-9]*)
18268 if test "$host_cpu" = ia64; then
18269 # On IA64, the linker does run time linking by default, so we don't
18270 # have to do anything special.
18271 aix_use_runtimelinking=no
18272 exp_sym_flag='-Bexport'
18273 no_entry_flag=""
18274 else
18275 # If we're using GNU nm, then we don't want the "-C" option.
18276 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18277 # Also, AIX nm treats weak defined symbols like other global
18278 # defined symbols, whereas GNU nm marks them as "W".
18279 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18280 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'
18281 else
18282 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'
18284 aix_use_runtimelinking=no
18286 # Test if we are trying to use run time linking or normal
18287 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18288 # need to do runtime linking.
18289 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18290 for ld_flag in $LDFLAGS; do
18291 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18292 aix_use_runtimelinking=yes
18293 break
18295 done
18297 esac
18299 exp_sym_flag='-bexport'
18300 no_entry_flag='-bnoentry'
18303 # When large executables or shared objects are built, AIX ld can
18304 # have problems creating the table of contents. If linking a library
18305 # or program results in "error TOC overflow" add -mminimal-toc to
18306 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18307 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18309 archive_cmds_GCJ=''
18310 hardcode_direct_GCJ=yes
18311 hardcode_direct_absolute_GCJ=yes
18312 hardcode_libdir_separator_GCJ=':'
18313 link_all_deplibs_GCJ=yes
18314 file_list_spec_GCJ='${wl}-f,'
18316 if test "$GCC" = yes; then
18317 case $host_os in aix4.[012]|aix4.[012].*)
18318 # We only want to do this on AIX 4.2 and lower, the check
18319 # below for broken collect2 doesn't work under 4.3+
18320 collect2name=`${CC} -print-prog-name=collect2`
18321 if test -f "$collect2name" &&
18322 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18323 then
18324 # We have reworked collect2
18326 else
18327 # We have old collect2
18328 hardcode_direct_GCJ=unsupported
18329 # It fails to find uninstalled libraries when the uninstalled
18330 # path is not listed in the libpath. Setting hardcode_minus_L
18331 # to unsupported forces relinking
18332 hardcode_minus_L_GCJ=yes
18333 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18334 hardcode_libdir_separator_GCJ=
18337 esac
18338 shared_flag='-shared'
18339 if test "$aix_use_runtimelinking" = yes; then
18340 shared_flag="$shared_flag "'${wl}-G'
18342 else
18343 # not using gcc
18344 if test "$host_cpu" = ia64; then
18345 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18346 # chokes on -Wl,-G. The following line is correct:
18347 shared_flag='-G'
18348 else
18349 if test "$aix_use_runtimelinking" = yes; then
18350 shared_flag='${wl}-G'
18351 else
18352 shared_flag='${wl}-bM:SRE'
18357 export_dynamic_flag_spec_GCJ='${wl}-bexpall'
18358 # It seems that -bexpall does not export symbols beginning with
18359 # underscore (_), so it is better to generate a list of symbols to export.
18360 always_export_symbols_GCJ=yes
18361 if test "$aix_use_runtimelinking" = yes; then
18362 # Warning - without using the other runtime loading flags (-brtl),
18363 # -berok will link without error, but may produce a broken library.
18364 allow_undefined_flag_GCJ='-berok'
18365 # Determine the default libpath from the value encoded in an
18366 # empty executable.
18367 if test x$gcc_no_link = xyes; then
18368 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18371 /* end confdefs.h. */
18374 main ()
18378 return 0;
18380 _ACEOF
18381 if ac_fn_c_try_link "$LINENO"; then :
18383 lt_aix_libpath_sed='
18384 /Import File Strings/,/^$/ {
18385 /^0/ {
18386 s/^0 *\(.*\)$/\1/
18390 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18391 # Check for a 64-bit object if we didn't find anything.
18392 if test -z "$aix_libpath"; then
18393 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18396 rm -f core conftest.err conftest.$ac_objext \
18397 conftest$ac_exeext conftest.$ac_ext
18398 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18400 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18401 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"
18402 else
18403 if test "$host_cpu" = ia64; then
18404 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18405 allow_undefined_flag_GCJ="-z nodefs"
18406 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"
18407 else
18408 # Determine the default libpath from the value encoded in an
18409 # empty executable.
18410 if test x$gcc_no_link = xyes; then
18411 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18414 /* end confdefs.h. */
18417 main ()
18421 return 0;
18423 _ACEOF
18424 if ac_fn_c_try_link "$LINENO"; then :
18426 lt_aix_libpath_sed='
18427 /Import File Strings/,/^$/ {
18428 /^0/ {
18429 s/^0 *\(.*\)$/\1/
18433 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18434 # Check for a 64-bit object if we didn't find anything.
18435 if test -z "$aix_libpath"; then
18436 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18439 rm -f core conftest.err conftest.$ac_objext \
18440 conftest$ac_exeext conftest.$ac_ext
18441 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18443 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18444 # Warning - without using the other run time loading flags,
18445 # -berok will link without error, but may produce a broken library.
18446 no_undefined_flag_GCJ=' ${wl}-bernotok'
18447 allow_undefined_flag_GCJ=' ${wl}-berok'
18448 if test "$with_gnu_ld" = yes; then
18449 # We only use this code for GNU lds that support --whole-archive.
18450 whole_archive_flag_spec_GCJ='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18451 else
18452 # Exported symbols can be pulled into shared objects from archives
18453 whole_archive_flag_spec_GCJ='$convenience'
18455 archive_cmds_need_lc_GCJ=yes
18456 # This is similar to how AIX traditionally builds its shared libraries.
18457 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'
18462 amigaos*)
18463 case $host_cpu in
18464 powerpc)
18465 # see comment about AmigaOS4 .so support
18466 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18467 archive_expsym_cmds_GCJ=''
18469 m68k)
18470 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)'
18471 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18472 hardcode_minus_L_GCJ=yes
18474 esac
18477 bsdi[45]*)
18478 export_dynamic_flag_spec_GCJ=-rdynamic
18481 cygwin* | mingw* | pw32* | cegcc*)
18482 # When not using gcc, we currently assume that we are using
18483 # Microsoft Visual C++.
18484 # hardcode_libdir_flag_spec is actually meaningless, as there is
18485 # no search path for DLLs.
18486 hardcode_libdir_flag_spec_GCJ=' '
18487 allow_undefined_flag_GCJ=unsupported
18488 # Tell ltmain to make .lib files, not .a files.
18489 libext=lib
18490 # Tell ltmain to make .dll files, not .so files.
18491 shrext_cmds=".dll"
18492 # FIXME: Setting linknames here is a bad hack.
18493 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18494 # The linker will automatically build a .lib file if we build a DLL.
18495 old_archive_from_new_cmds_GCJ='true'
18496 # FIXME: Should let the user specify the lib program.
18497 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18498 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18499 enable_shared_with_static_runtimes_GCJ=yes
18502 darwin* | rhapsody*)
18505 archive_cmds_need_lc_GCJ=no
18506 hardcode_direct_GCJ=no
18507 hardcode_automatic_GCJ=yes
18508 hardcode_shlibpath_var_GCJ=unsupported
18509 if test "$lt_cv_ld_force_load" = "yes"; then
18510 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\"`'
18511 else
18512 whole_archive_flag_spec_GCJ=''
18514 link_all_deplibs_GCJ=yes
18515 allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
18516 case $cc_basename in
18517 ifort*) _lt_dar_can_shared=yes ;;
18518 *) _lt_dar_can_shared=$GCC ;;
18519 esac
18520 if test "$_lt_dar_can_shared" = "yes"; then
18521 output_verbose_link_cmd=func_echo_all
18522 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}"
18523 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18524 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}"
18525 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}"
18527 else
18528 ld_shlibs_GCJ=no
18533 dgux*)
18534 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18535 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18536 hardcode_shlibpath_var_GCJ=no
18539 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18540 # support. Future versions do this automatically, but an explicit c++rt0.o
18541 # does not break anything, and helps significantly (at the cost of a little
18542 # extra space).
18543 freebsd2.2*)
18544 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18545 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18546 hardcode_direct_GCJ=yes
18547 hardcode_shlibpath_var_GCJ=no
18550 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18551 freebsd2.*)
18552 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18553 hardcode_direct_GCJ=yes
18554 hardcode_minus_L_GCJ=yes
18555 hardcode_shlibpath_var_GCJ=no
18558 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18559 freebsd* | dragonfly*)
18560 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18561 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18562 hardcode_direct_GCJ=yes
18563 hardcode_shlibpath_var_GCJ=no
18566 hpux9*)
18567 if test "$GCC" = yes; then
18568 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'
18569 else
18570 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'
18572 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18573 hardcode_libdir_separator_GCJ=:
18574 hardcode_direct_GCJ=yes
18576 # hardcode_minus_L: Not really in the search PATH,
18577 # but as the default location of the library.
18578 hardcode_minus_L_GCJ=yes
18579 export_dynamic_flag_spec_GCJ='${wl}-E'
18582 hpux10*)
18583 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18584 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18585 else
18586 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18588 if test "$with_gnu_ld" = no; then
18589 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18590 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18591 hardcode_libdir_separator_GCJ=:
18592 hardcode_direct_GCJ=yes
18593 hardcode_direct_absolute_GCJ=yes
18594 export_dynamic_flag_spec_GCJ='${wl}-E'
18595 # hardcode_minus_L: Not really in the search PATH,
18596 # but as the default location of the library.
18597 hardcode_minus_L_GCJ=yes
18601 hpux11*)
18602 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18603 case $host_cpu in
18604 hppa*64*)
18605 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18607 ia64*)
18608 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18611 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18613 esac
18614 else
18615 case $host_cpu in
18616 hppa*64*)
18617 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18619 ia64*)
18620 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18623 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18625 esac
18627 if test "$with_gnu_ld" = no; then
18628 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18629 hardcode_libdir_separator_GCJ=:
18631 case $host_cpu in
18632 hppa*64*|ia64*)
18633 hardcode_direct_GCJ=no
18634 hardcode_shlibpath_var_GCJ=no
18637 hardcode_direct_GCJ=yes
18638 hardcode_direct_absolute_GCJ=yes
18639 export_dynamic_flag_spec_GCJ='${wl}-E'
18641 # hardcode_minus_L: Not really in the search PATH,
18642 # but as the default location of the library.
18643 hardcode_minus_L_GCJ=yes
18645 esac
18649 irix5* | irix6* | nonstopux*)
18650 if test "$GCC" = yes; then
18651 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'
18652 # Try to use the -exported_symbol ld option, if it does not
18653 # work, assume that -exports_file does not work either and
18654 # implicitly export all symbols.
18655 save_LDFLAGS="$LDFLAGS"
18656 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18657 if test x$gcc_no_link = xyes; then
18658 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18661 /* end confdefs.h. */
18662 int foo(void) {}
18663 _ACEOF
18664 if ac_fn_c_try_link "$LINENO"; then :
18665 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'
18668 rm -f core conftest.err conftest.$ac_objext \
18669 conftest$ac_exeext conftest.$ac_ext
18670 LDFLAGS="$save_LDFLAGS"
18671 else
18672 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'
18673 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'
18675 archive_cmds_need_lc_GCJ='no'
18676 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18677 hardcode_libdir_separator_GCJ=:
18678 inherit_rpath_GCJ=yes
18679 link_all_deplibs_GCJ=yes
18682 netbsd*)
18683 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18684 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18685 else
18686 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18688 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18689 hardcode_direct_GCJ=yes
18690 hardcode_shlibpath_var_GCJ=no
18693 newsos6)
18694 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18695 hardcode_direct_GCJ=yes
18696 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18697 hardcode_libdir_separator_GCJ=:
18698 hardcode_shlibpath_var_GCJ=no
18701 *nto* | *qnx*)
18704 openbsd*)
18705 if test -f /usr/libexec/ld.so; then
18706 hardcode_direct_GCJ=yes
18707 hardcode_shlibpath_var_GCJ=no
18708 hardcode_direct_absolute_GCJ=yes
18709 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18710 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18711 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18712 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18713 export_dynamic_flag_spec_GCJ='${wl}-E'
18714 else
18715 case $host_os in
18716 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18717 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18718 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18721 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18722 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18724 esac
18726 else
18727 ld_shlibs_GCJ=no
18731 os2*)
18732 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18733 hardcode_minus_L_GCJ=yes
18734 allow_undefined_flag_GCJ=unsupported
18735 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'
18736 old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18739 osf3*)
18740 if test "$GCC" = yes; then
18741 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18742 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'
18743 else
18744 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18745 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'
18747 archive_cmds_need_lc_GCJ='no'
18748 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18749 hardcode_libdir_separator_GCJ=:
18752 osf4* | osf5*) # as osf3* with the addition of -msym flag
18753 if test "$GCC" = yes; then
18754 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18755 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'
18756 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18757 else
18758 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18759 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'
18760 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~
18761 $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'
18763 # Both c and cxx compiler support -rpath directly
18764 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18766 archive_cmds_need_lc_GCJ='no'
18767 hardcode_libdir_separator_GCJ=:
18770 solaris*)
18771 no_undefined_flag_GCJ=' -z defs'
18772 if test "$GCC" = yes; then
18773 wlarc='${wl}'
18774 archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18775 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18776 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18777 else
18778 case `$CC -V 2>&1` in
18779 *"Compilers 5.0"*)
18780 wlarc=''
18781 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18782 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18783 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18786 wlarc='${wl}'
18787 archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18788 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18789 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18791 esac
18793 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18794 hardcode_shlibpath_var_GCJ=no
18795 case $host_os in
18796 solaris2.[0-5] | solaris2.[0-5].*) ;;
18798 # The compiler driver will combine and reorder linker options,
18799 # but understands `-z linker_flag'. GCC discards it without `$wl',
18800 # but is careful enough not to reorder.
18801 # Supported since Solaris 2.6 (maybe 2.5.1?)
18802 if test "$GCC" = yes; then
18803 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18804 else
18805 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18808 esac
18809 link_all_deplibs_GCJ=yes
18812 sunos4*)
18813 if test "x$host_vendor" = xsequent; then
18814 # Use $CC to link under sequent, because it throws in some extra .o
18815 # files that make .init and .fini sections work.
18816 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18817 else
18818 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18820 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18821 hardcode_direct_GCJ=yes
18822 hardcode_minus_L_GCJ=yes
18823 hardcode_shlibpath_var_GCJ=no
18826 sysv4)
18827 case $host_vendor in
18828 sni)
18829 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18830 hardcode_direct_GCJ=yes # is this really true???
18832 siemens)
18833 ## LD is ld it makes a PLAMLIB
18834 ## CC just makes a GrossModule.
18835 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18836 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18837 hardcode_direct_GCJ=no
18839 motorola)
18840 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18841 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18843 esac
18844 runpath_var='LD_RUN_PATH'
18845 hardcode_shlibpath_var_GCJ=no
18848 sysv4.3*)
18849 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18850 hardcode_shlibpath_var_GCJ=no
18851 export_dynamic_flag_spec_GCJ='-Bexport'
18854 sysv4*MP*)
18855 if test -d /usr/nec; then
18856 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18857 hardcode_shlibpath_var_GCJ=no
18858 runpath_var=LD_RUN_PATH
18859 hardcode_runpath_var=yes
18860 ld_shlibs_GCJ=yes
18864 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18865 no_undefined_flag_GCJ='${wl}-z,text'
18866 archive_cmds_need_lc_GCJ=no
18867 hardcode_shlibpath_var_GCJ=no
18868 runpath_var='LD_RUN_PATH'
18870 if test "$GCC" = yes; then
18871 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18872 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18873 else
18874 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18875 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18879 sysv5* | sco3.2v5* | sco5v6*)
18880 # Note: We can NOT use -z defs as we might desire, because we do not
18881 # link with -lc, and that would cause any symbols used from libc to
18882 # always be unresolved, which means just about no library would
18883 # ever link correctly. If we're not using GNU ld we use -z text
18884 # though, which does catch some bad symbols but isn't as heavy-handed
18885 # as -z defs.
18886 no_undefined_flag_GCJ='${wl}-z,text'
18887 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18888 archive_cmds_need_lc_GCJ=no
18889 hardcode_shlibpath_var_GCJ=no
18890 hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
18891 hardcode_libdir_separator_GCJ=':'
18892 link_all_deplibs_GCJ=yes
18893 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18894 runpath_var='LD_RUN_PATH'
18896 if test "$GCC" = yes; then
18897 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18898 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18899 else
18900 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18901 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18905 uts4*)
18906 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18907 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18908 hardcode_shlibpath_var_GCJ=no
18912 ld_shlibs_GCJ=no
18914 esac
18916 if test x$host_vendor = xsni; then
18917 case $host in
18918 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18919 export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
18921 esac
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
18926 $as_echo "$ld_shlibs_GCJ" >&6; }
18927 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18929 with_gnu_ld_GCJ=$with_gnu_ld
18937 # Do we need to explicitly link libc?
18939 case "x$archive_cmds_need_lc_GCJ" in
18940 x|xyes)
18941 # Assume -lc should be added
18942 archive_cmds_need_lc_GCJ=yes
18944 if test "$enable_shared" = yes && test "$GCC" = yes; then
18945 case $archive_cmds_GCJ in
18946 *'~'*)
18947 # FIXME: we may have to deal with multi-command sequences.
18949 '$CC '*)
18950 # Test whether the compiler implicitly links with -lc since on some
18951 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18952 # to ld, don't add -lc before -lgcc.
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18954 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18955 if test "${lt_cv_archive_cmds_need_lc_GCJ+set}" = set; then :
18956 $as_echo_n "(cached) " >&6
18957 else
18958 $RM conftest*
18959 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18961 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18962 (eval $ac_compile) 2>&5
18963 ac_status=$?
18964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18965 test $ac_status = 0; } 2>conftest.err; then
18966 soname=conftest
18967 lib=conftest
18968 libobjs=conftest.$ac_objext
18969 deplibs=
18970 wl=$lt_prog_compiler_wl_GCJ
18971 pic_flag=$lt_prog_compiler_pic_GCJ
18972 compiler_flags=-v
18973 linker_flags=-v
18974 verstring=
18975 output_objdir=.
18976 libname=conftest
18977 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18978 allow_undefined_flag_GCJ=
18979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18980 (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18981 ac_status=$?
18982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18983 test $ac_status = 0; }
18984 then
18985 lt_cv_archive_cmds_need_lc_GCJ=no
18986 else
18987 lt_cv_archive_cmds_need_lc_GCJ=yes
18989 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18990 else
18991 cat conftest.err 1>&5
18993 $RM conftest*
18996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GCJ" >&5
18997 $as_echo "$lt_cv_archive_cmds_need_lc_GCJ" >&6; }
18998 archive_cmds_need_lc_GCJ=$lt_cv_archive_cmds_need_lc_GCJ
19000 esac
19003 esac
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19069 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19070 hardcode_action_GCJ=
19071 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
19072 test -n "$runpath_var_GCJ" ||
19073 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19075 # We can hardcode non-existent directories.
19076 if test "$hardcode_direct_GCJ" != no &&
19077 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19078 # have to relink, otherwise we might link with an installed library
19079 # when we should be linking with a yet-to-be-installed one
19080 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19081 test "$hardcode_minus_L_GCJ" != no; then
19082 # Linking always hardcodes the temporary library directory.
19083 hardcode_action_GCJ=relink
19084 else
19085 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19086 hardcode_action_GCJ=immediate
19088 else
19089 # We cannot hardcode anything, or else we can only hardcode existing
19090 # directories.
19091 hardcode_action_GCJ=unsupported
19093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
19094 $as_echo "$hardcode_action_GCJ" >&6; }
19096 if test "$hardcode_action_GCJ" = relink ||
19097 test "$inherit_rpath_GCJ" = yes; then
19098 # Fast installation is not supported
19099 enable_fast_install=no
19100 elif test "$shlibpath_overrides_runpath" = yes ||
19101 test "$enable_shared" = no; then
19102 # Fast installation is not necessary
19103 enable_fast_install=needless
19114 compiler_GCJ=${GCJ-gcj}
19115 ac_ext=c
19116 ac_cpp='$CPP $CPPFLAGS'
19117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19122 if test "x$CC" != xcc; then
19123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
19124 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
19125 else
19126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
19127 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
19129 set dummy $CC; ac_cc=`$as_echo "$2" |
19130 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19131 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
19132 $as_echo_n "(cached) " >&6
19133 else
19134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19135 /* end confdefs.h. */
19138 main ()
19142 return 0;
19144 _ACEOF
19145 # Make sure it works both with $CC and with simple cc.
19146 # We do the test twice because some compilers refuse to overwrite an
19147 # existing .o file with -o, though they will create one.
19148 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19149 rm -f conftest2.*
19150 if { { case "(($ac_try" in
19151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19152 *) ac_try_echo=$ac_try;;
19153 esac
19154 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19155 $as_echo "$ac_try_echo"; } >&5
19156 (eval "$ac_try") 2>&5
19157 ac_status=$?
19158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19159 test $ac_status = 0; } &&
19160 test -f conftest2.$ac_objext && { { case "(($ac_try" in
19161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19162 *) ac_try_echo=$ac_try;;
19163 esac
19164 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19165 $as_echo "$ac_try_echo"; } >&5
19166 (eval "$ac_try") 2>&5
19167 ac_status=$?
19168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19169 test $ac_status = 0; };
19170 then
19171 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
19172 if test "x$CC" != xcc; then
19173 # Test first that cc exists at all.
19174 if { ac_try='cc -c conftest.$ac_ext >&5'
19175 { { case "(($ac_try" in
19176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19177 *) ac_try_echo=$ac_try;;
19178 esac
19179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19180 $as_echo "$ac_try_echo"; } >&5
19181 (eval "$ac_try") 2>&5
19182 ac_status=$?
19183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19184 test $ac_status = 0; }; }; then
19185 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19186 rm -f conftest2.*
19187 if { { case "(($ac_try" in
19188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19189 *) ac_try_echo=$ac_try;;
19190 esac
19191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19192 $as_echo "$ac_try_echo"; } >&5
19193 (eval "$ac_try") 2>&5
19194 ac_status=$?
19195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19196 test $ac_status = 0; } &&
19197 test -f conftest2.$ac_objext && { { case "(($ac_try" in
19198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19199 *) ac_try_echo=$ac_try;;
19200 esac
19201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19202 $as_echo "$ac_try_echo"; } >&5
19203 (eval "$ac_try") 2>&5
19204 ac_status=$?
19205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19206 test $ac_status = 0; };
19207 then
19208 # cc works too.
19210 else
19211 # cc exists but doesn't like -o.
19212 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19216 else
19217 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19219 rm -f core conftest*
19222 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
19223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19224 $as_echo "yes" >&6; }
19225 else
19226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19227 $as_echo "no" >&6; }
19229 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
19233 # FIXME: we rely on the cache variable name because
19234 # there is no other way.
19235 set dummy $CC
19236 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19237 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
19238 if test "$am_t" != yes; then
19239 # Losing compiler, so override with the script.
19240 # FIXME: It is wrong to rewrite CC.
19241 # But if we don't then we get into trouble of one sort or another.
19242 # A longer-term fix would be to have automake use am__CC in this case,
19243 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19244 CC="$am_aux_dir/compile $CC"
19251 subdirs="$subdirs classpath libltdl"
19254 # The -no-testsuite modules omit the test subdir.
19255 if test -d $srcdir/testsuite; then
19256 TESTSUBDIR_TRUE=
19257 TESTSUBDIR_FALSE='#'
19258 else
19259 TESTSUBDIR_TRUE='#'
19260 TESTSUBDIR_FALSE=
19264 # Should the runtime set system properties by examining the
19265 # environment variable GCJ_PROPERTIES?
19266 # Check whether --enable-getenv-properties was given.
19267 if test "${enable_getenv_properties+set}" = set; then :
19268 enableval=$enable_getenv_properties;
19272 # Whether GCJ_PROPERTIES is used depends on the target.
19273 if test -z "$enable_getenv_properties"; then
19274 enable_getenv_properties=${enable_getenv_properties_default-yes}
19276 if test "$enable_getenv_properties" = no; then
19278 $as_echo "#define DISABLE_GETENV_PROPERTIES 1" >>confdefs.h
19282 # Whether we should use arguments to main()
19283 if test -z "$enable_main_args"; then
19284 enable_main_args=${enable_main_args_default-yes}
19286 if test "$enable_main_args" = no; then
19288 $as_echo "#define DISABLE_MAIN_ARGS 1" >>confdefs.h
19293 # Should we use hashtable-based synchronization?
19294 # Currently works only for Linux X86/ia64
19295 # Typically faster and more space-efficient
19296 # Check whether --enable-hash-synchronization was given.
19297 if test "${enable_hash_synchronization+set}" = set; then :
19298 enableval=$enable_hash_synchronization;
19302 if test -z "$enable_hash_synchronization"; then
19303 enable_hash_synchronization=$enable_hash_synchronization_default
19307 install_ecj_jar=no
19308 ECJ_BUILD_JAR=
19309 ECJ_JAR=
19311 # Check whether --with-ecj-jar was given.
19312 if test "${with_ecj_jar+set}" = set; then :
19313 withval=$with_ecj_jar; ECJ_JAR=$withval
19314 else
19315 if test -f $multi_basedir/ecj.jar; then
19316 ECJ_BUILD_JAR=$multi_basedir/ecj.jar
19317 ECJ_JAR='$(jardir)/ecj.jar'
19318 install_ecj_jar=yes
19324 if test "$ECJ_JAR" != ""; then
19325 BUILD_ECJ1_TRUE=
19326 BUILD_ECJ1_FALSE='#'
19327 else
19328 BUILD_ECJ1_TRUE='#'
19329 BUILD_ECJ1_FALSE=
19332 if test $install_ecj_jar = yes; then
19333 INSTALL_ECJ_JAR_TRUE=
19334 INSTALL_ECJ_JAR_FALSE='#'
19335 else
19336 INSTALL_ECJ_JAR_TRUE='#'
19337 INSTALL_ECJ_JAR_FALSE=
19342 # Check whether --with-java-home was given.
19343 if test "${with_java_home+set}" = set; then :
19344 withval=$with_java_home; JAVA_HOME="${withval}"
19345 else
19346 JAVA_HOME=""
19349 if test ! -z "$JAVA_HOME"; then
19350 JAVA_HOME_SET_TRUE=
19351 JAVA_HOME_SET_FALSE='#'
19352 else
19353 JAVA_HOME_SET_TRUE='#'
19354 JAVA_HOME_SET_FALSE=
19359 suppress_libgcj_bc=no
19360 # Check whether --enable-libgcj-bc was given.
19361 if test "${enable_libgcj_bc+set}" = set; then :
19362 enableval=$enable_libgcj_bc; if test "$enable_libgcj_bc" = "no"; then
19363 suppress_libgcj_bc=yes
19367 if test "$suppress_libgcj_bc" = "yes"; then
19368 SUPPRESS_LIBGCJ_BC_TRUE=
19369 SUPPRESS_LIBGCJ_BC_FALSE='#'
19370 else
19371 SUPPRESS_LIBGCJ_BC_TRUE='#'
19372 SUPPRESS_LIBGCJ_BC_FALSE=
19376 build_libgcj_reduced_reflection=no
19377 # Check whether --enable-reduced-reflection was given.
19378 if test "${enable_reduced_reflection+set}" = set; then :
19379 enableval=$enable_reduced_reflection; if test "$enable_reduced_reflection" = "yes"; then
19380 build_libgcj_reduced_reflection=yes
19384 if test "$build_libgcj_reduced_reflection" = "yes"; then
19385 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE=
19386 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE='#'
19387 else
19388 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE='#'
19389 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE=
19393 # What is the native OS API for MinGW?
19395 # Check whether --with-win32-nlsapi was given.
19396 if test "${with_win32_nlsapi+set}" = set; then :
19397 withval=$with_win32_nlsapi; case "${withval}" in
19398 ansi) with_win32_nlsapi=ansi ;;
19399 unicows) with_win32_nlsapi=unicows ;;
19400 unicode) with_win32_nlsapi=unicode ;;
19401 *) as_fn_error "Bad value ${withval} for --with-win32-nlsapi." "$LINENO" 5 ;;
19402 esac
19403 else
19404 with_win32_nlsapi=ansi
19408 case "${with_win32_nlsapi}" in
19409 unicows | unicode)
19411 $as_echo "#define MINGW_LIBGCJ_UNICODE 1" >>confdefs.h
19414 esac
19416 # configure.host sets slow_pthread_self if the synchronization code should
19417 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
19418 if test "${slow_pthread_self}" = "yes"; then
19420 $as_echo "#define SLOW_PTHREAD_SELF 1" >>confdefs.h
19424 # Check for gc debugging. This option is handled both here and in the GC.
19425 # Check whether --enable-gc-debug was given.
19426 if test "${enable_gc_debug+set}" = set; then :
19427 enableval=$enable_gc_debug; if test "$enable_gc_debug" = "yes"; then
19429 $as_echo "#define LIBGCJ_GC_DEBUG 1" >>confdefs.h
19435 # See if the user has the interpreter included.
19436 # Check whether --enable-interpreter was given.
19437 if test "${enable_interpreter+set}" = set; then :
19438 enableval=$enable_interpreter; if test "$enable_interpreter" = yes; then
19439 # This can also be set in configure.host.
19440 libgcj_interpreter=yes
19441 elif test "$enable_interpreter" = no; then
19442 libgcj_interpreter=no
19447 if test "$libgcj_interpreter" = yes; then
19449 $as_echo "#define INTERPRETER 1" >>confdefs.h
19452 INTERPRETER="$libgcj_interpreter"
19454 if test "$libgcj_interpreter" = yes; then
19455 INTERPRETER_TRUE=
19456 INTERPRETER_FALSE='#'
19457 else
19458 INTERPRETER_TRUE='#'
19459 INTERPRETER_FALSE=
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception model to use" >&5
19464 $as_echo_n "checking for exception model to use... " >&6; }
19465 ac_ext=cpp
19466 ac_cpp='$CXXCPP $CPPFLAGS'
19467 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19468 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19469 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19471 # Check whether --enable-sjlj-exceptions was given.
19472 if test "${enable_sjlj_exceptions+set}" = set; then :
19473 enableval=$enable_sjlj_exceptions; :
19474 else
19475 cat > conftest.$ac_ext << EOF
19476 #line 19461 "configure"
19477 struct S { ~S(); };
19478 void bar();
19479 void foo()
19481 S s;
19482 bar();
19485 old_CXXFLAGS="$CXXFLAGS"
19486 CXXFLAGS=-S
19487 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19488 (eval $ac_compile) 2>&5
19489 ac_status=$?
19490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19491 test $ac_status = 0; }; then
19492 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
19493 enable_sjlj_exceptions=yes
19494 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
19495 enable_sjlj_exceptions=no
19496 elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then
19497 # ARM EH ABI.
19498 enable_sjlj_exceptions=no
19501 CXXFLAGS="$old_CXXFLAGS"
19502 rm -f conftest*
19505 if test x$enable_sjlj_exceptions = xyes; then
19507 $as_echo "#define SJLJ_EXCEPTIONS 1" >>confdefs.h
19509 ac_exception_model_name=sjlj
19510 elif test x$enable_sjlj_exceptions = xno; then
19511 ac_exception_model_name="call frame"
19512 else
19513 as_fn_error "unable to detect exception model" "$LINENO" 5
19515 ac_ext=c
19516 ac_cpp='$CPP $CPPFLAGS'
19517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_exception_model_name" >&5
19522 $as_echo "$ac_exception_model_name" >&6; }
19524 # If we are non using SJLJ exceptions, and this host does not have support
19525 # for unwinding from a signal handler, enable checked dereferences and divides.
19526 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
19527 CHECKREFSPEC=-fcheck-references
19528 DIVIDESPEC=-fuse-divide-subroutine
19529 EXCEPTIONSPEC=
19532 # See if the user wants to disable java.net. This is the mildly
19533 # ugly way that we admit that target-side configuration sucks.
19534 # Check whether --enable-java-net was given.
19535 if test "${enable_java_net+set}" = set; then :
19536 enableval=$enable_java_net;
19540 # Whether java.net is built by default can depend on the target.
19541 if test -z "$enable_java_net"; then
19542 enable_java_net=${enable_java_net_default-yes}
19544 if test "$enable_java_net" = no; then
19546 $as_echo "#define DISABLE_JAVA_NET 1" >>confdefs.h
19550 # See if the user wants to configure without libffi. Some
19551 # architectures don't support it, and default values are set in
19552 # configure.host.
19554 # Check whether --with-libffi was given.
19555 if test "${with_libffi+set}" = set; then :
19556 withval=$with_libffi; :
19557 else
19558 with_libffi=${with_libffi_default-yes}
19562 LIBFFI=
19563 LIBFFIINCS=
19564 if test "$with_libffi" != no; then
19566 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
19568 LIBFFI=../libffi/libffi_convenience.la
19569 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
19574 # See if the user wants to disable JVMPI support.
19575 # Check whether --enable-jvmpi was given.
19576 if test "${enable_jvmpi+set}" = set; then :
19577 enableval=$enable_jvmpi;
19581 if test "$enable_jvmpi" != no; then
19583 $as_echo "#define ENABLE_JVMPI 1" >>confdefs.h
19587 # If the target is an eCos system, use the appropriate eCos
19588 # I/O routines.
19589 # FIXME: this should not be a local option but a global target
19590 # system; at present there is no eCos target.
19591 TARGET_ECOS=${PROCESS-"no"}
19593 # Check whether --with-ecos was given.
19594 if test "${with_ecos+set}" = set; then :
19595 withval=$with_ecos; TARGET_ECOS="$with_ecos"
19600 case "$TARGET_ECOS" in
19601 no) case "$host" in
19602 *mingw*)
19603 PLATFORM=Win32
19604 PLATFORMNET=Win32
19605 PLATFORMH=win32.h
19607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'ld' is at least 2.13" >&5
19608 $as_echo_n "checking whether 'ld' is at least 2.13... " >&6; }
19609 LD_PROG=`$CC --print-prog-name=ld`
19610 LD_VERSION=`$LD_PROG --version`
19611 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
19612 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
19613 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
19614 LD_OK="ok"
19615 else
19616 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
19617 LD_OK="ok"
19620 if test "x$LD_OK" != x; then
19621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19622 $as_echo "yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19623 else
19624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19625 $as_echo "no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
19627 $as_echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
19629 $as_echo "#define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1" >>confdefs.h
19634 PLATFORM=Posix
19635 PLATFORMNET=Posix
19636 PLATFORMH=posix.h
19638 esac
19641 PLATFORM=Ecos
19642 PLATFORMNET=NoNet
19644 $as_echo "#define ECOS 1" >>confdefs.h
19646 PLATFORMH=posix.h
19648 esac
19650 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
19653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19654 /* end confdefs.h. */
19655 #include <stdint.h>
19657 _ACEOF
19658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19659 $EGREP "uint32_t" >/dev/null 2>&1; then :
19661 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19664 rm -f conftest*
19666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19667 /* end confdefs.h. */
19668 #include <inttypes.h>
19670 _ACEOF
19671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19672 $EGREP "uint32_t" >/dev/null 2>&1; then :
19674 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19677 rm -f conftest*
19679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19680 /* end confdefs.h. */
19681 #include <sys/types.h>
19683 _ACEOF
19684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19685 $EGREP "u_int32_t" >/dev/null 2>&1; then :
19687 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19690 rm -f conftest*
19692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19693 /* end confdefs.h. */
19694 #include <sys/config.h>
19696 _ACEOF
19697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19698 $EGREP "u_int32_t" >/dev/null 2>&1; then :
19700 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19703 rm -f conftest*
19706 if test "$PLATFORM" = Win32; then
19707 USING_WIN32_PLATFORM_TRUE=
19708 USING_WIN32_PLATFORM_FALSE='#'
19709 else
19710 USING_WIN32_PLATFORM_TRUE='#'
19711 USING_WIN32_PLATFORM_FALSE=
19714 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
19715 USING_POSIX_PLATFORM_TRUE=
19716 USING_POSIX_PLATFORM_FALSE='#'
19717 else
19718 USING_POSIX_PLATFORM_TRUE='#'
19719 USING_POSIX_PLATFORM_FALSE=
19723 case "$host" in
19724 *-darwin*) DARWIN_CRT=true ;;
19725 *) DARWIN_CRT=false ;;
19726 esac
19727 if $DARWIN_CRT; then
19728 USING_DARWIN_CRT_TRUE=
19729 USING_DARWIN_CRT_FALSE='#'
19730 else
19731 USING_DARWIN_CRT_TRUE='#'
19732 USING_DARWIN_CRT_FALSE=
19736 # This may not be defined in a non-ANS conformant embedded system.
19737 # FIXME: Should these case a runtime exception in that case?
19738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19739 /* end confdefs.h. */
19740 #include <time.h>
19742 _ACEOF
19743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19744 $EGREP "localtime" >/dev/null 2>&1; then :
19746 $as_echo "#define HAVE_LOCALTIME 1" >>confdefs.h
19749 rm -f conftest*
19752 # Create the subdirectory for natFile.cc, or the attempt
19753 # to create the link will fail.
19754 test -d java || mkdir java
19755 test -d java/io || mkdir java/io
19756 test -d gnu || mkdir gnu
19757 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
19760 # Likewise for natConcreteProcess.cc.
19761 test -d java/lang || mkdir java/lang
19762 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
19765 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
19766 test -d java/net || mkdir java/net
19767 ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
19769 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
19772 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
19773 test -d gnu/java || mkdir gnu/java
19774 test -d gnu/java/net || mkdir gnu/java/net
19775 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
19777 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
19780 # Likewise for natVMPipe.cc and natVMSelector.cc.
19781 test -d gnu/java/nio || mkdir gnu/java/nio
19782 ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
19784 ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
19787 # Likewise for natFileChannelImpl.cc
19788 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
19789 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
19792 # Likewise for natVMSecureRandom.cc
19793 test -d gnu/java/security || mkdir gnu/java/security
19794 test -d gnu/java/security/jce || mkdir gnu/java/security/jce
19795 test -d gnu/java/security/jce/prng || mkdir gnu/java/security/jce/prng
19796 ac_config_links="$ac_config_links gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc"
19799 case "${host}" in
19800 *mingw*)
19801 SYSTEMSPEC="-lgdi32 -lws2_32"
19802 if test "${with_win32_nlsapi}" = "unicows"; then
19803 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
19806 *-*-darwin[912]*)
19807 SYSTEMSPEC="%{!Zdynamiclib:%{!Zbundle:-allow_stack_execute}}"
19810 SYSTEMSPEC=
19812 esac
19816 # Check whether --with-system-zlib was given.
19817 if test "${with_system_zlib+set}" = set; then :
19818 withval=$with_system_zlib;
19821 ZLIBSPEC=
19823 ZLIBTESTSPEC=
19826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19827 $as_echo_n "checking for X... " >&6; }
19830 # Check whether --with-x was given.
19831 if test "${with_x+set}" = set; then :
19832 withval=$with_x;
19835 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19836 if test "x$with_x" = xno; then
19837 # The user explicitly disabled X.
19838 have_x=disabled
19839 else
19840 case $x_includes,$x_libraries in #(
19841 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
19842 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
19843 $as_echo_n "(cached) " >&6
19844 else
19845 # One or both of the vars are not set, and there is no cached value.
19846 ac_x_includes=no ac_x_libraries=no
19847 rm -f -r conftest.dir
19848 if mkdir conftest.dir; then
19849 cd conftest.dir
19850 cat >Imakefile <<'_ACEOF'
19851 incroot:
19852 @echo incroot='${INCROOT}'
19853 usrlibdir:
19854 @echo usrlibdir='${USRLIBDIR}'
19855 libdir:
19856 @echo libdir='${LIBDIR}'
19857 _ACEOF
19858 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19859 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19860 for ac_var in incroot usrlibdir libdir; do
19861 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19862 done
19863 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19864 for ac_extension in a so sl dylib la dll; do
19865 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19866 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19867 ac_im_usrlibdir=$ac_im_libdir; break
19869 done
19870 # Screen out bogus values from the imake configuration. They are
19871 # bogus both because they are the default anyway, and because
19872 # using them would break gcc on systems where it needs fixed includes.
19873 case $ac_im_incroot in
19874 /usr/include) ac_x_includes= ;;
19875 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19876 esac
19877 case $ac_im_usrlibdir in
19878 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19879 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19880 esac
19882 cd ..
19883 rm -f -r conftest.dir
19886 # Standard set of common directories for X headers.
19887 # Check X11 before X11Rn because it is often a symlink to the current release.
19888 ac_x_header_dirs='
19889 /usr/X11/include
19890 /usr/X11R7/include
19891 /usr/X11R6/include
19892 /usr/X11R5/include
19893 /usr/X11R4/include
19895 /usr/include/X11
19896 /usr/include/X11R7
19897 /usr/include/X11R6
19898 /usr/include/X11R5
19899 /usr/include/X11R4
19901 /usr/local/X11/include
19902 /usr/local/X11R7/include
19903 /usr/local/X11R6/include
19904 /usr/local/X11R5/include
19905 /usr/local/X11R4/include
19907 /usr/local/include/X11
19908 /usr/local/include/X11R7
19909 /usr/local/include/X11R6
19910 /usr/local/include/X11R5
19911 /usr/local/include/X11R4
19913 /usr/X386/include
19914 /usr/x386/include
19915 /usr/XFree86/include/X11
19917 /usr/include
19918 /usr/local/include
19919 /usr/unsupported/include
19920 /usr/athena/include
19921 /usr/local/x11r5/include
19922 /usr/lpp/Xamples/include
19924 /usr/openwin/include
19925 /usr/openwin/share/include'
19927 if test "$ac_x_includes" = no; then
19928 # Guess where to find include files, by looking for Xlib.h.
19929 # First, try using that file with no special directory specified.
19930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19931 /* end confdefs.h. */
19932 #include <X11/Xlib.h>
19933 _ACEOF
19934 if ac_fn_c_try_cpp "$LINENO"; then :
19935 # We can compile using X headers with no special include directory.
19936 ac_x_includes=
19937 else
19938 for ac_dir in $ac_x_header_dirs; do
19939 if test -r "$ac_dir/X11/Xlib.h"; then
19940 ac_x_includes=$ac_dir
19941 break
19943 done
19945 rm -f conftest.err conftest.$ac_ext
19946 fi # $ac_x_includes = no
19948 if test "$ac_x_libraries" = no; then
19949 # Check for the libraries.
19950 # See if we find them without any special options.
19951 # Don't add to $LIBS permanently.
19952 ac_save_LIBS=$LIBS
19953 LIBS="-lX11 $LIBS"
19954 if test x$gcc_no_link = xyes; then
19955 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19958 /* end confdefs.h. */
19959 #include <X11/Xlib.h>
19961 main ()
19963 XrmInitialize ()
19965 return 0;
19967 _ACEOF
19968 if ac_fn_c_try_link "$LINENO"; then :
19969 LIBS=$ac_save_LIBS
19970 # We can link X programs with no special library path.
19971 ac_x_libraries=
19972 else
19973 LIBS=$ac_save_LIBS
19974 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19976 # Don't even attempt the hair of trying to link an X program!
19977 for ac_extension in a so sl dylib la dll; do
19978 if test -r "$ac_dir/libX11.$ac_extension"; then
19979 ac_x_libraries=$ac_dir
19980 break 2
19982 done
19983 done
19985 rm -f core conftest.err conftest.$ac_objext \
19986 conftest$ac_exeext conftest.$ac_ext
19987 fi # $ac_x_libraries = no
19989 case $ac_x_includes,$ac_x_libraries in #(
19990 no,* | *,no | *\'*)
19991 # Didn't find X, or a directory has "'" in its name.
19992 ac_cv_have_x="have_x=no";; #(
19994 # Record where we found X for the cache.
19995 ac_cv_have_x="have_x=yes\
19996 ac_x_includes='$ac_x_includes'\
19997 ac_x_libraries='$ac_x_libraries'"
19998 esac
20000 ;; #(
20001 *) have_x=yes;;
20002 esac
20003 eval "$ac_cv_have_x"
20004 fi # $with_x != no
20006 if test "$have_x" != yes; then
20007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
20008 $as_echo "$have_x" >&6; }
20009 no_x=yes
20010 else
20011 # If each of the values was on the command line, it overrides each guess.
20012 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20013 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20014 # Update the cache value to reflect the command line values.
20015 ac_cv_have_x="have_x=yes\
20016 ac_x_includes='$x_includes'\
20017 ac_x_libraries='$x_libraries'"
20018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
20019 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
20022 if test "$no_x" = yes; then
20023 # Not all programs may use this symbol, but it does not hurt to define it.
20025 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
20027 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
20028 else
20029 if test -n "$x_includes"; then
20030 X_CFLAGS="$X_CFLAGS -I$x_includes"
20033 # It would also be nice to do this for all -L options, not just this one.
20034 if test -n "$x_libraries"; then
20035 X_LIBS="$X_LIBS -L$x_libraries"
20036 # For Solaris; some versions of Sun CC require a space after -R and
20037 # others require no space. Words are not sufficient . . . .
20038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
20039 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
20040 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20041 ac_xsave_c_werror_flag=$ac_c_werror_flag
20042 ac_c_werror_flag=yes
20043 if test x$gcc_no_link = xyes; then
20044 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20047 /* end confdefs.h. */
20050 main ()
20054 return 0;
20056 _ACEOF
20057 if ac_fn_c_try_link "$LINENO"; then :
20058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20059 $as_echo "no" >&6; }
20060 X_LIBS="$X_LIBS -R$x_libraries"
20061 else
20062 LIBS="$ac_xsave_LIBS -R $x_libraries"
20063 if test x$gcc_no_link = xyes; then
20064 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20067 /* end confdefs.h. */
20070 main ()
20074 return 0;
20076 _ACEOF
20077 if ac_fn_c_try_link "$LINENO"; then :
20078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20079 $as_echo "yes" >&6; }
20080 X_LIBS="$X_LIBS -R $x_libraries"
20081 else
20082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
20083 $as_echo "neither works" >&6; }
20085 rm -f core conftest.err conftest.$ac_objext \
20086 conftest$ac_exeext conftest.$ac_ext
20088 rm -f core conftest.err conftest.$ac_objext \
20089 conftest$ac_exeext conftest.$ac_ext
20090 ac_c_werror_flag=$ac_xsave_c_werror_flag
20091 LIBS=$ac_xsave_LIBS
20094 # Check for system-dependent libraries X programs must link with.
20095 # Do this before checking for the system-independent R6 libraries
20096 # (-lICE), since we may need -lsocket or whatever for X linking.
20098 if test "$ISC" = yes; then
20099 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20100 else
20101 # Martyn Johnson says this is needed for Ultrix, if the X
20102 # libraries were built with DECnet support. And Karl Berry says
20103 # the Alpha needs dnet_stub (dnet does not exist).
20104 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20105 if test x$gcc_no_link = xyes; then
20106 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20109 /* end confdefs.h. */
20111 /* Override any GCC internal prototype to avoid an error.
20112 Use char because int might match the return type of a GCC
20113 builtin and then its argument prototype would still apply. */
20114 #ifdef __cplusplus
20115 extern "C"
20116 #endif
20117 char XOpenDisplay ();
20119 main ()
20121 return XOpenDisplay ();
20123 return 0;
20125 _ACEOF
20126 if ac_fn_c_try_link "$LINENO"; then :
20128 else
20129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
20130 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
20131 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
20132 $as_echo_n "(cached) " >&6
20133 else
20134 ac_check_lib_save_LIBS=$LIBS
20135 LIBS="-ldnet $LIBS"
20136 if test x$gcc_no_link = xyes; then
20137 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20140 /* end confdefs.h. */
20142 /* Override any GCC internal prototype to avoid an error.
20143 Use char because int might match the return type of a GCC
20144 builtin and then its argument prototype would still apply. */
20145 #ifdef __cplusplus
20146 extern "C"
20147 #endif
20148 char dnet_ntoa ();
20150 main ()
20152 return dnet_ntoa ();
20154 return 0;
20156 _ACEOF
20157 if ac_fn_c_try_link "$LINENO"; then :
20158 ac_cv_lib_dnet_dnet_ntoa=yes
20159 else
20160 ac_cv_lib_dnet_dnet_ntoa=no
20162 rm -f core conftest.err conftest.$ac_objext \
20163 conftest$ac_exeext conftest.$ac_ext
20164 LIBS=$ac_check_lib_save_LIBS
20166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20167 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20168 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
20169 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20172 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
20174 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
20175 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
20176 $as_echo_n "(cached) " >&6
20177 else
20178 ac_check_lib_save_LIBS=$LIBS
20179 LIBS="-ldnet_stub $LIBS"
20180 if test x$gcc_no_link = xyes; then
20181 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20184 /* end confdefs.h. */
20186 /* Override any GCC internal prototype to avoid an error.
20187 Use char because int might match the return type of a GCC
20188 builtin and then its argument prototype would still apply. */
20189 #ifdef __cplusplus
20190 extern "C"
20191 #endif
20192 char dnet_ntoa ();
20194 main ()
20196 return dnet_ntoa ();
20198 return 0;
20200 _ACEOF
20201 if ac_fn_c_try_link "$LINENO"; then :
20202 ac_cv_lib_dnet_stub_dnet_ntoa=yes
20203 else
20204 ac_cv_lib_dnet_stub_dnet_ntoa=no
20206 rm -f core conftest.err conftest.$ac_objext \
20207 conftest$ac_exeext conftest.$ac_ext
20208 LIBS=$ac_check_lib_save_LIBS
20210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20211 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20212 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
20213 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20218 rm -f core conftest.err conftest.$ac_objext \
20219 conftest$ac_exeext conftest.$ac_ext
20220 LIBS="$ac_xsave_LIBS"
20222 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20223 # to get the SysV transport functions.
20224 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20225 # needs -lnsl.
20226 # The nsl library prevents programs from opening the X display
20227 # on Irix 5.2, according to T.E. Dickey.
20228 # The functions gethostbyname, getservbyname, and inet_addr are
20229 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20230 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
20231 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
20235 if test $ac_cv_func_gethostbyname = no; then
20236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20237 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20238 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
20239 $as_echo_n "(cached) " >&6
20240 else
20241 ac_check_lib_save_LIBS=$LIBS
20242 LIBS="-lnsl $LIBS"
20243 if test x$gcc_no_link = xyes; then
20244 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20247 /* end confdefs.h. */
20249 /* Override any GCC internal prototype to avoid an error.
20250 Use char because int might match the return type of a GCC
20251 builtin and then its argument prototype would still apply. */
20252 #ifdef __cplusplus
20253 extern "C"
20254 #endif
20255 char gethostbyname ();
20257 main ()
20259 return gethostbyname ();
20261 return 0;
20263 _ACEOF
20264 if ac_fn_c_try_link "$LINENO"; then :
20265 ac_cv_lib_nsl_gethostbyname=yes
20266 else
20267 ac_cv_lib_nsl_gethostbyname=no
20269 rm -f core conftest.err conftest.$ac_objext \
20270 conftest$ac_exeext conftest.$ac_ext
20271 LIBS=$ac_check_lib_save_LIBS
20273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20274 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20275 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
20276 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20279 if test $ac_cv_lib_nsl_gethostbyname = no; then
20280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20281 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20282 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
20283 $as_echo_n "(cached) " >&6
20284 else
20285 ac_check_lib_save_LIBS=$LIBS
20286 LIBS="-lbsd $LIBS"
20287 if test x$gcc_no_link = xyes; then
20288 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20291 /* end confdefs.h. */
20293 /* Override any GCC internal prototype to avoid an error.
20294 Use char because int might match the return type of a GCC
20295 builtin and then its argument prototype would still apply. */
20296 #ifdef __cplusplus
20297 extern "C"
20298 #endif
20299 char gethostbyname ();
20301 main ()
20303 return gethostbyname ();
20305 return 0;
20307 _ACEOF
20308 if ac_fn_c_try_link "$LINENO"; then :
20309 ac_cv_lib_bsd_gethostbyname=yes
20310 else
20311 ac_cv_lib_bsd_gethostbyname=no
20313 rm -f core conftest.err conftest.$ac_objext \
20314 conftest$ac_exeext conftest.$ac_ext
20315 LIBS=$ac_check_lib_save_LIBS
20317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
20318 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
20319 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
20320 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20326 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20327 # socket/setsockopt and other routines are undefined under SCO ODT
20328 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20329 # on later versions), says Simon Leinen: it contains gethostby*
20330 # variants that don't use the name server (or something). -lsocket
20331 # must be given before -lnsl if both are needed. We assume that
20332 # if connect needs -lnsl, so does gethostbyname.
20333 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
20334 if test "x$ac_cv_func_connect" = x""yes; then :
20338 if test $ac_cv_func_connect = no; then
20339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
20340 $as_echo_n "checking for connect in -lsocket... " >&6; }
20341 if test "${ac_cv_lib_socket_connect+set}" = set; then :
20342 $as_echo_n "(cached) " >&6
20343 else
20344 ac_check_lib_save_LIBS=$LIBS
20345 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20346 if test x$gcc_no_link = xyes; then
20347 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20350 /* end confdefs.h. */
20352 /* Override any GCC internal prototype to avoid an error.
20353 Use char because int might match the return type of a GCC
20354 builtin and then its argument prototype would still apply. */
20355 #ifdef __cplusplus
20356 extern "C"
20357 #endif
20358 char connect ();
20360 main ()
20362 return connect ();
20364 return 0;
20366 _ACEOF
20367 if ac_fn_c_try_link "$LINENO"; then :
20368 ac_cv_lib_socket_connect=yes
20369 else
20370 ac_cv_lib_socket_connect=no
20372 rm -f core conftest.err conftest.$ac_objext \
20373 conftest$ac_exeext conftest.$ac_ext
20374 LIBS=$ac_check_lib_save_LIBS
20376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
20377 $as_echo "$ac_cv_lib_socket_connect" >&6; }
20378 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
20379 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20384 # Guillermo Gomez says -lposix is necessary on A/UX.
20385 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
20386 if test "x$ac_cv_func_remove" = x""yes; then :
20390 if test $ac_cv_func_remove = no; then
20391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
20392 $as_echo_n "checking for remove in -lposix... " >&6; }
20393 if test "${ac_cv_lib_posix_remove+set}" = set; then :
20394 $as_echo_n "(cached) " >&6
20395 else
20396 ac_check_lib_save_LIBS=$LIBS
20397 LIBS="-lposix $LIBS"
20398 if test x$gcc_no_link = xyes; then
20399 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20402 /* end confdefs.h. */
20404 /* Override any GCC internal prototype to avoid an error.
20405 Use char because int might match the return type of a GCC
20406 builtin and then its argument prototype would still apply. */
20407 #ifdef __cplusplus
20408 extern "C"
20409 #endif
20410 char remove ();
20412 main ()
20414 return remove ();
20416 return 0;
20418 _ACEOF
20419 if ac_fn_c_try_link "$LINENO"; then :
20420 ac_cv_lib_posix_remove=yes
20421 else
20422 ac_cv_lib_posix_remove=no
20424 rm -f core conftest.err conftest.$ac_objext \
20425 conftest$ac_exeext conftest.$ac_ext
20426 LIBS=$ac_check_lib_save_LIBS
20428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
20429 $as_echo "$ac_cv_lib_posix_remove" >&6; }
20430 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
20431 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20436 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20437 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20438 if test "x$ac_cv_func_shmat" = x""yes; then :
20442 if test $ac_cv_func_shmat = no; then
20443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
20444 $as_echo_n "checking for shmat in -lipc... " >&6; }
20445 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
20446 $as_echo_n "(cached) " >&6
20447 else
20448 ac_check_lib_save_LIBS=$LIBS
20449 LIBS="-lipc $LIBS"
20450 if test x$gcc_no_link = xyes; then
20451 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20454 /* end confdefs.h. */
20456 /* Override any GCC internal prototype to avoid an error.
20457 Use char because int might match the return type of a GCC
20458 builtin and then its argument prototype would still apply. */
20459 #ifdef __cplusplus
20460 extern "C"
20461 #endif
20462 char shmat ();
20464 main ()
20466 return shmat ();
20468 return 0;
20470 _ACEOF
20471 if ac_fn_c_try_link "$LINENO"; then :
20472 ac_cv_lib_ipc_shmat=yes
20473 else
20474 ac_cv_lib_ipc_shmat=no
20476 rm -f core conftest.err conftest.$ac_objext \
20477 conftest$ac_exeext conftest.$ac_ext
20478 LIBS=$ac_check_lib_save_LIBS
20480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
20481 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20482 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
20483 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20489 # Check for libraries that X11R6 Xt/Xaw programs need.
20490 ac_save_LDFLAGS=$LDFLAGS
20491 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20492 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20493 # check for ICE first), but we must link in the order -lSM -lICE or
20494 # we get undefined symbols. So assume we have SM if we have ICE.
20495 # These have to be linked with before -lX11, unlike the other
20496 # libraries we check for below, so use a different variable.
20497 # John Interrante, Karl Berry
20498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
20499 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20500 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
20501 $as_echo_n "(cached) " >&6
20502 else
20503 ac_check_lib_save_LIBS=$LIBS
20504 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20505 if test x$gcc_no_link = xyes; then
20506 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20509 /* end confdefs.h. */
20511 /* Override any GCC internal prototype to avoid an error.
20512 Use char because int might match the return type of a GCC
20513 builtin and then its argument prototype would still apply. */
20514 #ifdef __cplusplus
20515 extern "C"
20516 #endif
20517 char IceConnectionNumber ();
20519 main ()
20521 return IceConnectionNumber ();
20523 return 0;
20525 _ACEOF
20526 if ac_fn_c_try_link "$LINENO"; then :
20527 ac_cv_lib_ICE_IceConnectionNumber=yes
20528 else
20529 ac_cv_lib_ICE_IceConnectionNumber=no
20531 rm -f core conftest.err conftest.$ac_objext \
20532 conftest$ac_exeext conftest.$ac_ext
20533 LIBS=$ac_check_lib_save_LIBS
20535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20536 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20537 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
20538 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20541 LDFLAGS=$ac_save_LDFLAGS
20546 # FIXME: this should be _libs on some hosts.
20547 libsubdir=.libs
20549 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20551 LIBSTDCXXSPEC=
20552 # extra LD Flags which are required for targets
20553 case "${host}" in
20554 *-*-darwin[0-7].*)
20555 # For now we have to disable it on darwin[8-9] because it slows down
20556 # the linking phase. A possible bug in ld?
20557 # on Darwin -single_module speeds up loading of the dynamic libraries.
20558 extra_ldflags_libjava=-Wl,-single_module
20560 arm*linux*eabi)
20561 # Some of the ARM unwinder code is actually in libstdc++. We
20562 # could in principle replicate it in libgcj, but it's better to
20563 # have a dependency on libstdc++.
20564 extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20565 LIBSTDCXXSPEC=-lstdc++
20566 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20568 *-*-cygwin)
20569 extra_ldflags_libjava=-liconv
20571 *-*-mingw*)
20572 extra_ldflags_libjava=-lws2_32
20574 esac
20576 LIBMATHSPEC=
20577 # extra LD Flags which are required for targets
20578 case "${host}" in
20579 *-*-darwin*)
20582 LIBMATHSPEC=-lm
20584 esac
20586 # Check for --no-merge-exidx-entries, an ARM-specific linker option.
20587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --no-merge-exidx-entries" >&5
20588 $as_echo_n "checking for --no-merge-exidx-entries... " >&6; }
20589 if test "${libgcj_cv_exidx+set}" = set; then :
20590 $as_echo_n "(cached) " >&6
20591 else
20592 saved_ldflags="$LDFLAGS"
20593 LDFLAGS="${LDFLAGS} -Wl,--no-merge-exidx-entries"
20594 # The IRIX 6 ld doesn't recognize --no-merge-exidx-entries, but only
20595 # warns about unknown options, which breaks the testsuite. So enable
20596 # AC_LANG_WERROR, but there's currently (autoconf 2.64) no way to turn
20597 # it off again. As a workaround, save and restore werror flag like
20598 # AC_PATH_XTRA.
20599 ac_xsave_c_werror_flag=$ac_c_werror_flag
20601 ac_c_werror_flag=yes
20602 if test x$gcc_no_link = xyes; then
20603 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20606 /* end confdefs.h. */
20607 int main(void){ return 0;}
20608 _ACEOF
20609 if ac_fn_c_try_link "$LINENO"; then :
20610 eval "libgcj_cv_exidx=yes"
20611 else
20612 eval "libgcj_cv_exidx=no"
20614 rm -f core conftest.err conftest.$ac_objext \
20615 conftest$ac_exeext conftest.$ac_ext
20616 ac_c_werror_flag=$ac_xsave_c_werror_flag
20617 LDFLAGS="${saved_ldflags}"
20620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcj_cv_exidx" >&5
20621 $as_echo "$libgcj_cv_exidx" >&6; }
20622 if test "${libgcj_cv_exidx}" = "yes"; then
20623 SYSTEMSPEC="${SYSTEMSPEC} --no-merge-exidx-entries"
20624 extra_ldflags="${extra_ldflags} -Wl,--no-merge-exidx-entries"
20634 # Allow the GC to be disabled. Can be useful when debugging.
20635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for garbage collector to use" >&5
20636 $as_echo_n "checking for garbage collector to use... " >&6; }
20637 # Check whether --enable-java-gc was given.
20638 if test "${enable_java_gc+set}" = set; then :
20639 enableval=$enable_java_gc; GC=$enableval
20640 else
20641 GC=boehm
20644 GCLIBS=
20645 GCINCS=
20646 GCDEPS=
20647 GCSPEC=
20648 JC1GCSPEC=
20649 GCTESTSPEC=
20650 case "$GC" in
20651 boehm)
20652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: boehm" >&5
20653 $as_echo "boehm" >&6; }
20654 GCLIBS=../boehm-gc/libgcjgc_convenience.la
20655 JC1GCSPEC='-fuse-boehm-gc'
20656 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20657 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20658 GCOBJS=boehm.lo
20659 GCHDR=boehm-gc.h
20660 # The POSIX thread support needs to know this.
20662 $as_echo "#define HAVE_BOEHM_GC 1" >>confdefs.h
20666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
20667 $as_echo "none" >&6; }
20668 GCHDR=no-gc.h
20671 as_fn_error "unrecognized collector \"$GC\"" "$LINENO" 5
20673 esac
20680 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20682 if test "$GC" = boehm; then
20683 USING_BOEHMGC_TRUE=
20684 USING_BOEHMGC_FALSE='#'
20685 else
20686 USING_BOEHMGC_TRUE='#'
20687 USING_BOEHMGC_FALSE=
20690 if test "$GC" = no; then
20691 USING_NOGC_TRUE=
20692 USING_NOGC_FALSE='#'
20693 else
20694 USING_NOGC_TRUE='#'
20695 USING_NOGC_FALSE=
20700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
20701 $as_echo_n "checking for thread model used by GCC... " >&6; }
20702 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
20704 $as_echo "$THREADS" >&6; }
20706 case "$THREADS" in
20707 no | none | single)
20708 THREADS=none
20710 aix | posix | pthreads)
20711 THREADS=posix
20712 case "$host" in
20713 *-*-linux*)
20715 $as_echo "#define LINUX_THREADS 1" >>confdefs.h
20718 esac
20720 win32)
20722 dce | vxworks)
20723 as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
20726 as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
20728 esac
20730 THREADCXXFLAGS=
20731 THREADLDFLAGS=
20732 THREADLIBS=
20733 THREADINCS=
20734 THREADDEPS=
20735 THREADH=
20736 THREADSPEC=
20737 THREADSTARTFILESPEC=
20738 case "$THREADS" in
20739 posix)
20740 case "$host" in
20741 *-*-cygwin*)
20742 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
20744 *-*-freebsd[34].*)
20745 # Before FreeBSD 5, it didn't have -lpthread (or any library which
20746 # merely adds pthread_* functions) but it does have a -pthread switch
20747 # which is required at link-time to select -lc_r *instead* of -lc.
20748 THREADLDFLAGS=-pthread
20749 # Don't set THREADSPEC here as might be expected since -pthread is
20750 # not processed when found within a spec file, it must come from
20751 # the command line. For now, the user must provide the -pthread
20752 # switch to link code compiled with gcj. In future, consider adding
20753 # support for weak references to pthread_* functions ala gthr.h API.
20754 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20756 *-*-freebsd*)
20757 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20758 # systems which support threads and -lpthread.
20759 THREADLDFLAGS=-pthread
20760 THREADSPEC=-lpthread
20762 alpha*-dec-osf* | hppa*-hp-hpux*)
20763 THREADCXXFLAGS=-pthread
20764 # boehm-gc needs some functions from librt, so link that too.
20765 THREADLIBS='-lpthread -lrt'
20766 THREADSPEC='-lpthread -lrt'
20768 *-*-solaris2.8)
20769 # Always use alternate thread library on Solaris 8. Need libthread
20770 # for TLS support.
20771 # Need -Wl,-R to get it through libtool ...
20772 THREADLIBS='-L/usr/lib/lwp$(MULTISUBDIR) -Wl,-R -Wl,/usr/lib/lwp$(MULTISUBDIR) -lpthread -lthread'
20773 # ... while ld only accepts -R.
20774 THREADSPEC='-L/usr/lib/lwp%{m64:/64} -R/usr/lib/lwp%{m64:/64} -lpthread -lthread'
20776 *-*-solaris2.9)
20777 # As on Solaris 8, need libthread for TLS support.
20778 THREADLIBS='-lpthread -lthread'
20779 THREADSPEC='-lpthread -lthread'
20781 *-*-darwin*)
20782 # Don't set THREADLIBS or THREADSPEC as Darwin already
20783 # provides pthread via libSystem.
20786 THREADLIBS=-lpthread
20787 THREADSPEC=-lpthread
20789 esac
20790 THREADH=posix-threads.h
20791 # MIT pthreads doesn't seem to have the mutexattr functions.
20792 # But for now we don't check for it. We just assume you aren't
20793 # using MIT pthreads.
20795 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20798 # If we're using the Boehm GC, then we happen to know that it
20799 # defines _REENTRANT, so we don't bother. Eww.
20800 if test "$GC" != boehm; then
20802 $as_echo "#define _REENTRANT 1" >>confdefs.h
20806 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
20810 win32)
20811 THREADH=win32-threads.h
20812 THREADCXXFLAGS=-mthreads
20813 # We need thread-safe exception handling so _CRT_MT should be set to 1.
20814 # But we do not want the executables created to be dependent on
20815 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20816 # exception handling contexts. The following kludge achieves this effect
20817 # and causes a dummy __mingwthr_key_dtor() to be linked in from
20818 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
20819 # A workaround is to explicitly use -mthreads while linking Java programs.
20820 # See PR libgcj/28263.
20822 # FIXME: In Java we are able to detect thread death at the end of
20823 # Thread.run() so we should be able to clean up the exception handling
20824 # contexts ourselves.
20825 case "$host" in
20826 *-w64-mingw*)
20829 THREADSTARTFILESPEC='crtmt%O%s'
20831 esac
20833 none)
20834 THREADH=no-threads.h
20836 esac
20837 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20846 if test "$THREADS" = posix; then
20847 USING_POSIX_THREADS_TRUE=
20848 USING_POSIX_THREADS_FALSE='#'
20849 else
20850 USING_POSIX_THREADS_TRUE='#'
20851 USING_POSIX_THREADS_FALSE=
20854 if test "$THREADS" = win32; then
20855 USING_WIN32_THREADS_TRUE=
20856 USING_WIN32_THREADS_FALSE='#'
20857 else
20858 USING_WIN32_THREADS_TRUE='#'
20859 USING_WIN32_THREADS_FALSE=
20862 if test "$THREADS" = none; then
20863 USING_NO_THREADS_TRUE=
20864 USING_NO_THREADS_FALSE='#'
20865 else
20866 USING_NO_THREADS_TRUE='#'
20867 USING_NO_THREADS_FALSE=
20870 if test "$enable_shared" != yes; then
20871 use_libgcj_bc=no
20873 if test "$use_libgcj_bc" = yes; then
20874 USE_LIBGCJ_BC_TRUE=
20875 USE_LIBGCJ_BC_FALSE='#'
20876 else
20877 USE_LIBGCJ_BC_TRUE='#'
20878 USE_LIBGCJ_BC_FALSE=
20882 if test -d sysdep; then true; else mkdir sysdep; fi
20883 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20885 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20887 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20890 LIBGCJ_SPEC_LGCJ=-lgcj
20891 LIBGCJ_SPEC_LGCJ_BC=-lgcj_bc
20892 if test x"$libgcj_spec_lgcj_override" != x ; then
20893 LIBGCJ_SPEC_LGCJ=$libgcj_spec_lgcj_override
20895 if test x"$libgcj_spec_lgcj_bc_override" != x ; then
20896 LIBGCJ_SPEC_LGCJ_BC=$libgcj_spec_lgcj_bc_override
20898 LIBGCJ_SPEC="%{s-bc-abi:} $LIBGCJ_SPEC_LGCJ"
20899 if test "$use_libgcj_bc" = yes; then
20900 LIBGCJ_SPEC="%{static|static-libgcj|!s-bc-abi:$LIBGCJ_SPEC_LGCJ;:$LIBGCJ_SPEC_LGCJ_BC}"
20901 LIBGCJ_BC_SPEC="%{findirect-dispatch:-fPIC}"
20906 HASH_SYNC_SPEC=
20907 # Hash synchronization is only useful with posix threads right now.
20908 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20909 HASH_SYNC_SPEC=-fhash-synchronization
20911 $as_echo "#define JV_HASH_SYNCHRONIZATION 1" >>confdefs.h
20916 if test "$GCC" = yes; then
20917 USING_GCC_TRUE=
20918 USING_GCC_FALSE='#'
20919 else
20920 USING_GCC_TRUE='#'
20921 USING_GCC_FALSE=
20925 # We're in the tree with libgcc, and need to include some of its headers.
20926 LIBGCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../libgcc'
20928 if test "x${with_newlib}" = "xyes"; then
20929 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
20930 # may not work correctly, because the compiler may not be able to
20931 # link executables.
20933 # We assume newlib. This lets us hard-code the functions we know
20934 # we'll have.
20936 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20939 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
20942 $as_echo "#define HAVE_TIME 1" >>confdefs.h
20945 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20948 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
20951 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
20953 # This is only for POSIX threads.
20955 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20958 # Assume we do not have getuid and friends.
20960 $as_echo "#define NO_GETUID 1" >>confdefs.h
20962 PLATFORMNET=NoNet
20963 else
20964 for ac_func in strerror_r select fstat open fsync sleep opendir \
20965 localtime_r getpwuid_r getcwd \
20966 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20967 nl_langinfo setlocale \
20968 inet_pton uname inet_ntoa \
20969 getrlimit sigaction ftruncate mmap \
20970 getifaddrs
20971 do :
20972 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20973 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20974 eval as_val=\$$as_ac_var
20975 if test "x$as_val" = x""yes; then :
20976 cat >>confdefs.h <<_ACEOF
20977 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20978 _ACEOF
20981 done
20983 for ac_func in inet_aton inet_addr
20984 do :
20985 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20986 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20987 eval as_val=\$$as_ac_var
20988 if test "x$as_val" = x""yes; then :
20989 cat >>confdefs.h <<_ACEOF
20990 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20991 _ACEOF
20992 break
20994 done
20996 for ac_header in unistd.h dlfcn.h sys/resource.h
20997 do :
20998 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20999 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21000 eval as_val=\$$as_ac_Header
21001 if test "x$as_val" = x""yes; then :
21002 cat >>confdefs.h <<_ACEOF
21003 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21004 _ACEOF
21008 done
21010 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
21011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5
21012 $as_echo_n "checking for dladdr in -ldl... " >&6; }
21013 if test "${ac_cv_lib_dl_dladdr+set}" = set; then :
21014 $as_echo_n "(cached) " >&6
21015 else
21016 ac_check_lib_save_LIBS=$LIBS
21017 LIBS="-ldl $LIBS"
21018 if test x$gcc_no_link = xyes; then
21019 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21022 /* end confdefs.h. */
21024 /* Override any GCC internal prototype to avoid an error.
21025 Use char because int might match the return type of a GCC
21026 builtin and then its argument prototype would still apply. */
21027 #ifdef __cplusplus
21028 extern "C"
21029 #endif
21030 char dladdr ();
21032 main ()
21034 return dladdr ();
21036 return 0;
21038 _ACEOF
21039 if ac_fn_c_try_link "$LINENO"; then :
21040 ac_cv_lib_dl_dladdr=yes
21041 else
21042 ac_cv_lib_dl_dladdr=no
21044 rm -f core conftest.err conftest.$ac_objext \
21045 conftest$ac_exeext conftest.$ac_ext
21046 LIBS=$ac_check_lib_save_LIBS
21048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
21049 $as_echo "$ac_cv_lib_dl_dladdr" >&6; }
21050 if test "x$ac_cv_lib_dl_dladdr" = x""yes; then :
21053 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
21055 else
21057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldld" >&5
21058 $as_echo_n "checking for dladdr in -ldld... " >&6; }
21059 if test "${ac_cv_lib_dld_dladdr+set}" = set; then :
21060 $as_echo_n "(cached) " >&6
21061 else
21062 ac_check_lib_save_LIBS=$LIBS
21063 LIBS="-ldld $LIBS"
21064 if test x$gcc_no_link = xyes; then
21065 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21068 /* end confdefs.h. */
21070 /* Override any GCC internal prototype to avoid an error.
21071 Use char because int might match the return type of a GCC
21072 builtin and then its argument prototype would still apply. */
21073 #ifdef __cplusplus
21074 extern "C"
21075 #endif
21076 char dladdr ();
21078 main ()
21080 return dladdr ();
21082 return 0;
21084 _ACEOF
21085 if ac_fn_c_try_link "$LINENO"; then :
21086 ac_cv_lib_dld_dladdr=yes
21087 else
21088 ac_cv_lib_dld_dladdr=no
21090 rm -f core conftest.err conftest.$ac_objext \
21091 conftest$ac_exeext conftest.$ac_ext
21092 LIBS=$ac_check_lib_save_LIBS
21094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dladdr" >&5
21095 $as_echo "$ac_cv_lib_dld_dladdr" >&6; }
21096 if test "x$ac_cv_lib_dld_dladdr" = x""yes; then :
21099 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
21106 if test x"$cross_compiling" = x"no"; then
21107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/exe" >&5
21108 $as_echo_n "checking for /proc/self/exe... " >&6; }
21109 if test "${ac_cv_file__proc_self_exe+set}" = set; then :
21110 $as_echo_n "(cached) " >&6
21111 else
21112 test "$cross_compiling" = yes &&
21113 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
21114 if test -r "/proc/self/exe"; then
21115 ac_cv_file__proc_self_exe=yes
21116 else
21117 ac_cv_file__proc_self_exe=no
21120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_exe" >&5
21121 $as_echo "$ac_cv_file__proc_self_exe" >&6; }
21122 if test "x$ac_cv_file__proc_self_exe" = x""yes; then :
21124 cat >>confdefs.h <<_ACEOF
21125 #define HAVE__PROC_SELF_EXE 1
21126 _ACEOF
21129 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
21133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/maps" >&5
21134 $as_echo_n "checking for /proc/self/maps... " >&6; }
21135 if test "${ac_cv_file__proc_self_maps+set}" = set; then :
21136 $as_echo_n "(cached) " >&6
21137 else
21138 test "$cross_compiling" = yes &&
21139 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
21140 if test -r "/proc/self/maps"; then
21141 ac_cv_file__proc_self_maps=yes
21142 else
21143 ac_cv_file__proc_self_maps=no
21146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_maps" >&5
21147 $as_echo "$ac_cv_file__proc_self_maps" >&6; }
21148 if test "x$ac_cv_file__proc_self_maps" = x""yes; then :
21150 cat >>confdefs.h <<_ACEOF
21151 #define HAVE__PROC_SELF_MAPS 1
21152 _ACEOF
21155 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
21159 else
21160 case $host in
21161 *-linux*)
21163 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
21166 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
21169 esac
21173 if test "X$prefix" = "XNONE"; then
21174 acl_final_prefix="$ac_default_prefix"
21175 else
21176 acl_final_prefix="$prefix"
21178 if test "X$exec_prefix" = "XNONE"; then
21179 acl_final_exec_prefix='${prefix}'
21180 else
21181 acl_final_exec_prefix="$exec_prefix"
21183 acl_save_prefix="$prefix"
21184 prefix="$acl_final_prefix"
21185 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21186 prefix="$acl_save_prefix"
21189 # Check whether --with-gnu-ld was given.
21190 if test "${with_gnu_ld+set}" = set; then :
21191 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
21192 else
21193 with_gnu_ld=no
21196 # Prepare PATH_SEPARATOR.
21197 # The user is always right.
21198 if test "${PATH_SEPARATOR+set}" != set; then
21199 echo "#! /bin/sh" >conf$$.sh
21200 echo "exit 0" >>conf$$.sh
21201 chmod +x conf$$.sh
21202 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21203 PATH_SEPARATOR=';'
21204 else
21205 PATH_SEPARATOR=:
21207 rm -f conf$$.sh
21209 ac_prog=ld
21210 if test "$GCC" = yes; then
21211 # Check if gcc -print-prog-name=ld gives a path.
21212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
21213 $as_echo_n "checking for ld used by GCC... " >&6; }
21214 case $host in
21215 *-*-mingw*)
21216 # gcc leaves a trailing carriage return which upsets mingw
21217 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21219 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21220 esac
21221 case $ac_prog in
21222 # Accept absolute paths.
21223 [\\/]* | [A-Za-z]:[\\/]*)
21224 re_direlt='/[^/][^/]*/\.\./'
21225 # Canonicalize the path of ld
21226 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21227 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21228 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21229 done
21230 test -z "$LD" && LD="$ac_prog"
21233 # If it fails, then pretend we aren't using GCC.
21234 ac_prog=ld
21237 # If it is relative, then search for the first ld in PATH.
21238 with_gnu_ld=unknown
21240 esac
21241 elif test "$with_gnu_ld" = yes; then
21242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
21243 $as_echo_n "checking for GNU ld... " >&6; }
21244 else
21245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
21246 $as_echo_n "checking for non-GNU ld... " >&6; }
21248 if test "${acl_cv_path_LD+set}" = set; then :
21249 $as_echo_n "(cached) " >&6
21250 else
21251 if test -z "$LD"; then
21252 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21253 for ac_dir in $PATH; do
21254 test -z "$ac_dir" && ac_dir=.
21255 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21256 acl_cv_path_LD="$ac_dir/$ac_prog"
21257 # Check to see if the program is GNU ld. I'd rather use --version,
21258 # but apparently some GNU ld's only accept -v.
21259 # Break only if it was the GNU/non-GNU ld that we prefer.
21260 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
21261 test "$with_gnu_ld" != no && break
21262 else
21263 test "$with_gnu_ld" != yes && break
21266 done
21267 IFS="$ac_save_ifs"
21268 else
21269 acl_cv_path_LD="$LD" # Let the user override the test with a path.
21273 LD="$acl_cv_path_LD"
21274 if test -n "$LD"; then
21275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
21276 $as_echo "$LD" >&6; }
21277 else
21278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21279 $as_echo "no" >&6; }
21281 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
21282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
21283 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
21284 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
21285 $as_echo_n "(cached) " >&6
21286 else
21287 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21288 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
21289 acl_cv_prog_gnu_ld=yes
21290 else
21291 acl_cv_prog_gnu_ld=no
21294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
21295 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
21296 with_gnu_ld=$acl_cv_prog_gnu_ld
21300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
21301 $as_echo_n "checking for shared library run path origin... " >&6; }
21302 if test "${acl_cv_rpath+set}" = set; then :
21303 $as_echo_n "(cached) " >&6
21304 else
21306 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21307 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21308 . ./conftest.sh
21309 rm -f ./conftest.sh
21310 acl_cv_rpath=done
21313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
21314 $as_echo "$acl_cv_rpath" >&6; }
21315 wl="$acl_cv_wl"
21316 libext="$acl_cv_libext"
21317 shlibext="$acl_cv_shlibext"
21318 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21319 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21320 hardcode_direct="$acl_cv_hardcode_direct"
21321 hardcode_minus_L="$acl_cv_hardcode_minus_L"
21322 # Check whether --enable-rpath was given.
21323 if test "${enable_rpath+set}" = set; then :
21324 enableval=$enable_rpath; :
21325 else
21326 enable_rpath=yes
21336 use_additional=yes
21338 acl_save_prefix="$prefix"
21339 prefix="$acl_final_prefix"
21340 acl_save_exec_prefix="$exec_prefix"
21341 exec_prefix="$acl_final_exec_prefix"
21343 eval additional_includedir=\"$includedir\"
21344 eval additional_libdir=\"$libdir\"
21346 exec_prefix="$acl_save_exec_prefix"
21347 prefix="$acl_save_prefix"
21350 # Check whether --with-libiconv-prefix was given.
21351 if test "${with_libiconv_prefix+set}" = set; then :
21352 withval=$with_libiconv_prefix;
21353 if test "X$withval" = "Xno"; then
21354 use_additional=no
21355 else
21356 if test "X$withval" = "X"; then
21358 acl_save_prefix="$prefix"
21359 prefix="$acl_final_prefix"
21360 acl_save_exec_prefix="$exec_prefix"
21361 exec_prefix="$acl_final_exec_prefix"
21363 eval additional_includedir=\"$includedir\"
21364 eval additional_libdir=\"$libdir\"
21366 exec_prefix="$acl_save_exec_prefix"
21367 prefix="$acl_save_prefix"
21369 else
21370 additional_includedir="$withval/include"
21371 additional_libdir="$withval/lib"
21377 LIBICONV=
21378 LTLIBICONV=
21379 INCICONV=
21380 rpathdirs=
21381 ltrpathdirs=
21382 names_already_handled=
21383 names_next_round='iconv '
21384 while test -n "$names_next_round"; do
21385 names_this_round="$names_next_round"
21386 names_next_round=
21387 for name in $names_this_round; do
21388 already_handled=
21389 for n in $names_already_handled; do
21390 if test "$n" = "$name"; then
21391 already_handled=yes
21392 break
21394 done
21395 if test -z "$already_handled"; then
21396 names_already_handled="$names_already_handled $name"
21397 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21398 eval value=\"\$HAVE_LIB$uppername\"
21399 if test -n "$value"; then
21400 if test "$value" = yes; then
21401 eval value=\"\$LIB$uppername\"
21402 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21403 eval value=\"\$LTLIB$uppername\"
21404 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21405 else
21408 else
21409 found_dir=
21410 found_la=
21411 found_so=
21412 found_a=
21413 if test $use_additional = yes; then
21414 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21415 found_dir="$additional_libdir"
21416 found_so="$additional_libdir/lib$name.$shlibext"
21417 if test -f "$additional_libdir/lib$name.la"; then
21418 found_la="$additional_libdir/lib$name.la"
21420 else
21421 if test -f "$additional_libdir/lib$name.$libext"; then
21422 found_dir="$additional_libdir"
21423 found_a="$additional_libdir/lib$name.$libext"
21424 if test -f "$additional_libdir/lib$name.la"; then
21425 found_la="$additional_libdir/lib$name.la"
21430 if test "X$found_dir" = "X"; then
21431 for x in $LDFLAGS $LTLIBICONV; do
21433 acl_save_prefix="$prefix"
21434 prefix="$acl_final_prefix"
21435 acl_save_exec_prefix="$exec_prefix"
21436 exec_prefix="$acl_final_exec_prefix"
21437 eval x=\"$x\"
21438 exec_prefix="$acl_save_exec_prefix"
21439 prefix="$acl_save_prefix"
21441 case "$x" in
21442 -L*)
21443 dir=`echo "X$x" | sed -e 's/^X-L//'`
21444 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21445 found_dir="$dir"
21446 found_so="$dir/lib$name.$shlibext"
21447 if test -f "$dir/lib$name.la"; then
21448 found_la="$dir/lib$name.la"
21450 else
21451 if test -f "$dir/lib$name.$libext"; then
21452 found_dir="$dir"
21453 found_a="$dir/lib$name.$libext"
21454 if test -f "$dir/lib$name.la"; then
21455 found_la="$dir/lib$name.la"
21460 esac
21461 if test "X$found_dir" != "X"; then
21462 break
21464 done
21466 if test "X$found_dir" != "X"; then
21467 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21468 if test "X$found_so" != "X"; then
21469 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21470 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21471 else
21472 haveit=
21473 for x in $ltrpathdirs; do
21474 if test "X$x" = "X$found_dir"; then
21475 haveit=yes
21476 break
21478 done
21479 if test -z "$haveit"; then
21480 ltrpathdirs="$ltrpathdirs $found_dir"
21482 if test "$hardcode_direct" = yes; then
21483 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21484 else
21485 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21486 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21487 haveit=
21488 for x in $rpathdirs; do
21489 if test "X$x" = "X$found_dir"; then
21490 haveit=yes
21491 break
21493 done
21494 if test -z "$haveit"; then
21495 rpathdirs="$rpathdirs $found_dir"
21497 else
21498 haveit=
21499 for x in $LDFLAGS $LIBICONV; do
21501 acl_save_prefix="$prefix"
21502 prefix="$acl_final_prefix"
21503 acl_save_exec_prefix="$exec_prefix"
21504 exec_prefix="$acl_final_exec_prefix"
21505 eval x=\"$x\"
21506 exec_prefix="$acl_save_exec_prefix"
21507 prefix="$acl_save_prefix"
21509 if test "X$x" = "X-L$found_dir"; then
21510 haveit=yes
21511 break
21513 done
21514 if test -z "$haveit"; then
21515 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21517 if test "$hardcode_minus_L" != no; then
21518 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21519 else
21520 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21525 else
21526 if test "X$found_a" != "X"; then
21527 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21528 else
21529 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21532 additional_includedir=
21533 case "$found_dir" in
21534 */lib | */lib/)
21535 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21536 additional_includedir="$basedir/include"
21538 esac
21539 if test "X$additional_includedir" != "X"; then
21540 if test "X$additional_includedir" != "X/usr/include"; then
21541 haveit=
21542 if test "X$additional_includedir" = "X/usr/local/include"; then
21543 if test -n "$GCC"; then
21544 case $host_os in
21545 linux*) haveit=yes;;
21546 esac
21549 if test -z "$haveit"; then
21550 for x in $CPPFLAGS $INCICONV; do
21552 acl_save_prefix="$prefix"
21553 prefix="$acl_final_prefix"
21554 acl_save_exec_prefix="$exec_prefix"
21555 exec_prefix="$acl_final_exec_prefix"
21556 eval x=\"$x\"
21557 exec_prefix="$acl_save_exec_prefix"
21558 prefix="$acl_save_prefix"
21560 if test "X$x" = "X-I$additional_includedir"; then
21561 haveit=yes
21562 break
21564 done
21565 if test -z "$haveit"; then
21566 if test -d "$additional_includedir"; then
21567 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21573 if test -n "$found_la"; then
21574 save_libdir="$libdir"
21575 case "$found_la" in
21576 */* | *\\*) . "$found_la" ;;
21577 *) . "./$found_la" ;;
21578 esac
21579 libdir="$save_libdir"
21580 for dep in $dependency_libs; do
21581 case "$dep" in
21582 -L*)
21583 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21584 if test "X$additional_libdir" != "X/usr/lib"; then
21585 haveit=
21586 if test "X$additional_libdir" = "X/usr/local/lib"; then
21587 if test -n "$GCC"; then
21588 case $host_os in
21589 linux*) haveit=yes;;
21590 esac
21593 if test -z "$haveit"; then
21594 haveit=
21595 for x in $LDFLAGS $LIBICONV; do
21597 acl_save_prefix="$prefix"
21598 prefix="$acl_final_prefix"
21599 acl_save_exec_prefix="$exec_prefix"
21600 exec_prefix="$acl_final_exec_prefix"
21601 eval x=\"$x\"
21602 exec_prefix="$acl_save_exec_prefix"
21603 prefix="$acl_save_prefix"
21605 if test "X$x" = "X-L$additional_libdir"; then
21606 haveit=yes
21607 break
21609 done
21610 if test -z "$haveit"; then
21611 if test -d "$additional_libdir"; then
21612 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21615 haveit=
21616 for x in $LDFLAGS $LTLIBICONV; do
21618 acl_save_prefix="$prefix"
21619 prefix="$acl_final_prefix"
21620 acl_save_exec_prefix="$exec_prefix"
21621 exec_prefix="$acl_final_exec_prefix"
21622 eval x=\"$x\"
21623 exec_prefix="$acl_save_exec_prefix"
21624 prefix="$acl_save_prefix"
21626 if test "X$x" = "X-L$additional_libdir"; then
21627 haveit=yes
21628 break
21630 done
21631 if test -z "$haveit"; then
21632 if test -d "$additional_libdir"; then
21633 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21639 -R*)
21640 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21641 if test "$enable_rpath" != no; then
21642 haveit=
21643 for x in $rpathdirs; do
21644 if test "X$x" = "X$dir"; then
21645 haveit=yes
21646 break
21648 done
21649 if test -z "$haveit"; then
21650 rpathdirs="$rpathdirs $dir"
21652 haveit=
21653 for x in $ltrpathdirs; do
21654 if test "X$x" = "X$dir"; then
21655 haveit=yes
21656 break
21658 done
21659 if test -z "$haveit"; then
21660 ltrpathdirs="$ltrpathdirs $dir"
21664 -l*)
21665 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21667 *.la)
21668 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21671 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21672 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21674 esac
21675 done
21677 else
21678 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21679 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21683 done
21684 done
21685 if test "X$rpathdirs" != "X"; then
21686 if test -n "$hardcode_libdir_separator"; then
21687 alldirs=
21688 for found_dir in $rpathdirs; do
21689 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21690 done
21691 acl_save_libdir="$libdir"
21692 libdir="$alldirs"
21693 eval flag=\"$hardcode_libdir_flag_spec\"
21694 libdir="$acl_save_libdir"
21695 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21696 else
21697 for found_dir in $rpathdirs; do
21698 acl_save_libdir="$libdir"
21699 libdir="$found_dir"
21700 eval flag=\"$hardcode_libdir_flag_spec\"
21701 libdir="$acl_save_libdir"
21702 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21703 done
21706 if test "X$ltrpathdirs" != "X"; then
21707 for found_dir in $ltrpathdirs; do
21708 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21709 done
21718 am_save_CPPFLAGS="$CPPFLAGS"
21720 for element in $INCICONV; do
21721 haveit=
21722 for x in $CPPFLAGS; do
21724 acl_save_prefix="$prefix"
21725 prefix="$acl_final_prefix"
21726 acl_save_exec_prefix="$exec_prefix"
21727 exec_prefix="$acl_final_exec_prefix"
21728 eval x=\"$x\"
21729 exec_prefix="$acl_save_exec_prefix"
21730 prefix="$acl_save_prefix"
21732 if test "X$x" = "X$element"; then
21733 haveit=yes
21734 break
21736 done
21737 if test -z "$haveit"; then
21738 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21740 done
21743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
21744 $as_echo_n "checking for iconv... " >&6; }
21745 if test "${am_cv_func_iconv+set}" = set; then :
21746 $as_echo_n "(cached) " >&6
21747 else
21749 am_cv_func_iconv="no, consider installing GNU libiconv"
21750 am_cv_lib_iconv=no
21751 if test x$gcc_no_link = xyes; then
21752 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21755 /* end confdefs.h. */
21756 #include <stdlib.h>
21757 #include <iconv.h>
21759 main ()
21761 iconv_t cd = iconv_open("","");
21762 iconv(cd,NULL,NULL,NULL,NULL);
21763 iconv_close(cd);
21765 return 0;
21767 _ACEOF
21768 if ac_fn_c_try_link "$LINENO"; then :
21769 am_cv_func_iconv=yes
21771 rm -f core conftest.err conftest.$ac_objext \
21772 conftest$ac_exeext conftest.$ac_ext
21773 if test "$am_cv_func_iconv" != yes; then
21774 am_save_LIBS="$LIBS"
21775 LIBS="$LIBS $LIBICONV"
21776 if test x$gcc_no_link = xyes; then
21777 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21780 /* end confdefs.h. */
21781 #include <stdlib.h>
21782 #include <iconv.h>
21784 main ()
21786 iconv_t cd = iconv_open("","");
21787 iconv(cd,NULL,NULL,NULL,NULL);
21788 iconv_close(cd);
21790 return 0;
21792 _ACEOF
21793 if ac_fn_c_try_link "$LINENO"; then :
21794 am_cv_lib_iconv=yes
21795 am_cv_func_iconv=yes
21797 rm -f core conftest.err conftest.$ac_objext \
21798 conftest$ac_exeext conftest.$ac_ext
21799 LIBS="$am_save_LIBS"
21803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
21804 $as_echo "$am_cv_func_iconv" >&6; }
21805 if test "$am_cv_func_iconv" = yes; then
21807 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
21810 if test "$am_cv_lib_iconv" = yes; then
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
21812 $as_echo_n "checking how to link with libiconv... " >&6; }
21813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
21814 $as_echo "$LIBICONV" >&6; }
21815 else
21816 CPPFLAGS="$am_save_CPPFLAGS"
21817 LIBICONV=
21818 LTLIBICONV=
21823 if test "$am_cv_func_iconv" = yes; then
21824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
21825 $as_echo_n "checking for iconv declaration... " >&6; }
21826 if test "${am_cv_proto_iconv+set}" = set; then :
21827 $as_echo_n "(cached) " >&6
21828 else
21830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21831 /* end confdefs.h. */
21833 #include <stdlib.h>
21834 #include <iconv.h>
21835 extern
21836 #ifdef __cplusplus
21838 #endif
21839 #if defined(__STDC__) || defined(__cplusplus)
21840 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21841 #else
21842 size_t iconv();
21843 #endif
21846 main ()
21850 return 0;
21852 _ACEOF
21853 if ac_fn_c_try_compile "$LINENO"; then :
21854 am_cv_proto_iconv_arg1=""
21855 else
21856 am_cv_proto_iconv_arg1="const"
21858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21859 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);"
21862 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
21864 }$am_cv_proto_iconv" >&5
21865 $as_echo "${ac_t:-
21866 }$am_cv_proto_iconv" >&6; }
21868 cat >>confdefs.h <<_ACEOF
21869 #define ICONV_CONST $am_cv_proto_iconv_arg1
21870 _ACEOF
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
21876 $as_echo_n "checking for LC_MESSAGES... " >&6; }
21877 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
21878 $as_echo_n "(cached) " >&6
21879 else
21880 if test x$gcc_no_link = xyes; then
21881 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21884 /* end confdefs.h. */
21885 #include <locale.h>
21887 main ()
21889 return LC_MESSAGES
21891 return 0;
21893 _ACEOF
21894 if ac_fn_c_try_link "$LINENO"; then :
21895 am_cv_val_LC_MESSAGES=yes
21896 else
21897 am_cv_val_LC_MESSAGES=no
21899 rm -f core conftest.err conftest.$ac_objext \
21900 conftest$ac_exeext conftest.$ac_ext
21902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
21903 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
21904 if test $am_cv_val_LC_MESSAGES = yes; then
21906 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21911 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21912 if test "${ac_cv_struct_tm+set}" = set; then :
21913 $as_echo_n "(cached) " >&6
21914 else
21915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21916 /* end confdefs.h. */
21917 #include <sys/types.h>
21918 #include <time.h>
21921 main ()
21923 struct tm tm;
21924 int *p = &tm.tm_sec;
21925 return !p;
21927 return 0;
21929 _ACEOF
21930 if ac_fn_c_try_compile "$LINENO"; then :
21931 ac_cv_struct_tm=time.h
21932 else
21933 ac_cv_struct_tm=sys/time.h
21935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21938 $as_echo "$ac_cv_struct_tm" >&6; }
21939 if test $ac_cv_struct_tm = sys/time.h; then
21941 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21945 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21946 #include <$ac_cv_struct_tm>
21949 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21951 cat >>confdefs.h <<_ACEOF
21952 #define HAVE_STRUCT_TM_TM_ZONE 1
21953 _ACEOF
21958 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21960 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21962 else
21963 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21965 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21966 ac_have_decl=1
21967 else
21968 ac_have_decl=0
21971 cat >>confdefs.h <<_ACEOF
21972 #define HAVE_DECL_TZNAME $ac_have_decl
21973 _ACEOF
21975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21976 $as_echo_n "checking for tzname... " >&6; }
21977 if test "${ac_cv_var_tzname+set}" = set; then :
21978 $as_echo_n "(cached) " >&6
21979 else
21980 if test x$gcc_no_link = xyes; then
21981 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21984 /* end confdefs.h. */
21985 #include <time.h>
21986 #if !HAVE_DECL_TZNAME
21987 extern char *tzname[];
21988 #endif
21991 main ()
21993 return tzname[0][0];
21995 return 0;
21997 _ACEOF
21998 if ac_fn_c_try_link "$LINENO"; then :
21999 ac_cv_var_tzname=yes
22000 else
22001 ac_cv_var_tzname=no
22003 rm -f core conftest.err conftest.$ac_objext \
22004 conftest$ac_exeext conftest.$ac_ext
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22007 $as_echo "$ac_cv_var_tzname" >&6; }
22008 if test $ac_cv_var_tzname = yes; then
22010 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22015 LDLIBICONV=`echo " $LIBICONV " | sed "s/${acl_cv_wl--Wl,}/ /g; s/,/ /g"`
22018 for ac_func in gethostbyname_r
22019 do :
22020 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
22021 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
22022 cat >>confdefs.h <<_ACEOF
22023 #define HAVE_GETHOSTBYNAME_R 1
22024 _ACEOF
22027 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
22029 # There are two different kinds of gethostbyname_r.
22030 # We look for the one that returns `int'.
22031 # Hopefully this check is robust enough.
22032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22033 /* end confdefs.h. */
22034 #include <netdb.h>
22036 _ACEOF
22037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22038 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then :
22041 $as_echo "#define GETHOSTBYNAME_R_RETURNS_INT 1" >>confdefs.h
22044 rm -f conftest*
22047 case " $GCINCS " in
22048 *" -D_REENTRANT "*) ;;
22050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
22051 $as_echo_n "checking whether gethostbyname_r declaration requires -D_REENTRANT... " >&6; }
22052 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then :
22053 $as_echo_n "(cached) " >&6
22054 else
22055 ac_ext=cpp
22056 ac_cpp='$CXXCPP $CPPFLAGS'
22057 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22058 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22059 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22062 /* end confdefs.h. */
22063 #include <netdb.h>
22065 main ()
22067 gethostbyname_r("", 0, 0);
22069 return 0;
22071 _ACEOF
22072 if ac_fn_cxx_try_compile "$LINENO"; then :
22073 libjava_cv_gethostbyname_r_needs_reentrant=no
22074 else
22075 CPPFLAGS_SAVE="$CPPFLAGS"
22076 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
22077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22078 /* end confdefs.h. */
22079 #include <netdb.h>
22081 main ()
22083 gethostbyname_r("", 0, 0);
22085 return 0;
22087 _ACEOF
22088 if ac_fn_cxx_try_compile "$LINENO"; then :
22089 libjava_cv_gethostbyname_r_needs_reentrant=yes
22090 else
22091 libjava_cv_gethostbyname_r_needs_reentrant=fail
22093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22094 CPPFLAGS="$CPPFLAGS_SAVE"
22097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22098 ac_ext=c
22099 ac_cpp='$CPP $CPPFLAGS'
22100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
22107 $as_echo "$libjava_cv_gethostbyname_r_needs_reentrant" >&6; }
22108 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
22110 $as_echo "#define _REENTRANT 1" >>confdefs.h
22114 esac
22116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct hostent_data" >&5
22117 $as_echo_n "checking for struct hostent_data... " >&6; }
22118 if test "${libjava_cv_struct_hostent_data+set}" = set; then :
22119 $as_echo_n "(cached) " >&6
22120 else
22121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22122 /* end confdefs.h. */
22124 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
22125 # define _REENTRANT 1
22126 #endif
22127 #include <netdb.h>
22129 main ()
22131 struct hostent_data data;
22133 return 0;
22135 _ACEOF
22136 if ac_fn_c_try_compile "$LINENO"; then :
22137 libjava_cv_struct_hostent_data=yes
22138 else
22139 libjava_cv_struct_hostent_data=no
22141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_struct_hostent_data" >&5
22144 $as_echo "$libjava_cv_struct_hostent_data" >&6; }
22145 if test "x$libjava_cv_struct_hostent_data" = xyes; then
22147 $as_echo "#define HAVE_STRUCT_HOSTENT_DATA 1" >>confdefs.h
22152 done
22155 # FIXME: libjava source code expects to find a prototype for
22156 # gethostbyaddr_r in netdb.h. The outer check ensures that
22157 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
22158 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
22159 # linkage check is enough, yet C++ code requires proper prototypes.)
22160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22161 /* end confdefs.h. */
22162 #include <netdb.h>
22164 _ACEOF
22165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22166 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
22168 for ac_func in gethostbyaddr_r
22169 do :
22170 ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
22171 if test "x$ac_cv_func_gethostbyaddr_r" = x""yes; then :
22172 cat >>confdefs.h <<_ACEOF
22173 #define HAVE_GETHOSTBYADDR_R 1
22174 _ACEOF
22177 $as_echo "#define HAVE_GETHOSTBYADDR_R 1" >>confdefs.h
22179 # There are two different kinds of gethostbyaddr_r.
22180 # We look for the one that returns `int'.
22181 # Hopefully this check is robust enough.
22182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22183 /* end confdefs.h. */
22184 #include <netdb.h>
22186 _ACEOF
22187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22188 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then :
22191 $as_echo "#define GETHOSTBYADDR_R_RETURNS_INT 1" >>confdefs.h
22194 rm -f conftest*
22197 done
22200 rm -f conftest*
22203 for ac_func in gethostname
22204 do :
22205 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
22206 if test "x$ac_cv_func_gethostname" = x""yes; then :
22207 cat >>confdefs.h <<_ACEOF
22208 #define HAVE_GETHOSTNAME 1
22209 _ACEOF
22212 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
22214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22215 /* end confdefs.h. */
22216 #include <unistd.h>
22218 _ACEOF
22219 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22220 $EGREP "gethostname" >/dev/null 2>&1; then :
22223 $as_echo "#define HAVE_GETHOSTNAME_DECL 1" >>confdefs.h
22226 rm -f conftest*
22229 done
22232 for ac_func in usleep
22233 do :
22234 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
22235 if test "x$ac_cv_func_usleep" = x""yes; then :
22236 cat >>confdefs.h <<_ACEOF
22237 #define HAVE_USLEEP 1
22238 _ACEOF
22240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22241 /* end confdefs.h. */
22242 #include <unistd.h>
22244 _ACEOF
22245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22246 $EGREP "usleep" >/dev/null 2>&1; then :
22249 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
22252 rm -f conftest*
22255 done
22258 # Look for these functions in the thread library, but only bother
22259 # if using POSIX threads.
22260 if test "$THREADS" = posix; then
22261 save_LIBS="$LIBS"
22262 LIBS="$LIBS $THREADLIBS"
22264 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
22265 # Solaris 7 the name librt is preferred.
22266 for ac_func in sched_yield
22267 do :
22268 ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
22269 if test "x$ac_cv_func_sched_yield" = x""yes; then :
22270 cat >>confdefs.h <<_ACEOF
22271 #define HAVE_SCHED_YIELD 1
22272 _ACEOF
22274 else
22276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
22277 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
22278 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
22279 $as_echo_n "(cached) " >&6
22280 else
22281 ac_check_lib_save_LIBS=$LIBS
22282 LIBS="-lrt $LIBS"
22283 if test x$gcc_no_link = xyes; then
22284 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22287 /* end confdefs.h. */
22289 /* Override any GCC internal prototype to avoid an error.
22290 Use char because int might match the return type of a GCC
22291 builtin and then its argument prototype would still apply. */
22292 #ifdef __cplusplus
22293 extern "C"
22294 #endif
22295 char sched_yield ();
22297 main ()
22299 return sched_yield ();
22301 return 0;
22303 _ACEOF
22304 if ac_fn_c_try_link "$LINENO"; then :
22305 ac_cv_lib_rt_sched_yield=yes
22306 else
22307 ac_cv_lib_rt_sched_yield=no
22309 rm -f core conftest.err conftest.$ac_objext \
22310 conftest$ac_exeext conftest.$ac_ext
22311 LIBS=$ac_check_lib_save_LIBS
22313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
22314 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
22315 if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
22317 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22319 THREADLIBS="$THREADLIBS -lrt"
22320 THREADSPEC="$THREADSPEC -lrt"
22321 else
22323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
22324 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
22325 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then :
22326 $as_echo_n "(cached) " >&6
22327 else
22328 ac_check_lib_save_LIBS=$LIBS
22329 LIBS="-lposix4 $LIBS"
22330 if test x$gcc_no_link = xyes; then
22331 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22334 /* end confdefs.h. */
22336 /* Override any GCC internal prototype to avoid an error.
22337 Use char because int might match the return type of a GCC
22338 builtin and then its argument prototype would still apply. */
22339 #ifdef __cplusplus
22340 extern "C"
22341 #endif
22342 char sched_yield ();
22344 main ()
22346 return sched_yield ();
22348 return 0;
22350 _ACEOF
22351 if ac_fn_c_try_link "$LINENO"; then :
22352 ac_cv_lib_posix4_sched_yield=yes
22353 else
22354 ac_cv_lib_posix4_sched_yield=no
22356 rm -f core conftest.err conftest.$ac_objext \
22357 conftest$ac_exeext conftest.$ac_ext
22358 LIBS=$ac_check_lib_save_LIBS
22360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
22361 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
22362 if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then :
22364 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22366 THREADLIBS="$THREADLIBS -lposix4"
22367 THREADSPEC="$THREADSPEC -lposix4"
22373 done
22376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22377 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22378 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
22379 $as_echo_n "(cached) " >&6
22380 else
22381 ac_check_lib_save_LIBS=$LIBS
22382 LIBS="-lrt $LIBS"
22383 if test x$gcc_no_link = xyes; then
22384 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22387 /* end confdefs.h. */
22389 /* Override any GCC internal prototype to avoid an error.
22390 Use char because int might match the return type of a GCC
22391 builtin and then its argument prototype would still apply. */
22392 #ifdef __cplusplus
22393 extern "C"
22394 #endif
22395 char clock_gettime ();
22397 main ()
22399 return clock_gettime ();
22401 return 0;
22403 _ACEOF
22404 if ac_fn_c_try_link "$LINENO"; then :
22405 ac_cv_lib_rt_clock_gettime=yes
22406 else
22407 ac_cv_lib_rt_clock_gettime=no
22409 rm -f core conftest.err conftest.$ac_objext \
22410 conftest$ac_exeext conftest.$ac_ext
22411 LIBS=$ac_check_lib_save_LIBS
22413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22414 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22415 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
22418 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22420 case "$THREADSPEC" in
22421 *-lrt*) ;;
22423 THREADSPEC="$THREADSPEC -lrt"
22424 THREADLIBS="$THREADLIBS -lrt"
22426 esac
22430 LIBS="$save_LIBS"
22432 # We can save a little space at runtime if the mutex has m_count
22433 # or __m_count. This is a nice hack for Linux.
22434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22435 /* end confdefs.h. */
22436 #include <pthread.h>
22438 main ()
22441 extern pthread_mutex_t *mutex; int q = mutex->m_count;
22444 return 0;
22446 _ACEOF
22447 if ac_fn_c_try_compile "$LINENO"; then :
22449 $as_echo "#define PTHREAD_MUTEX_HAVE_M_COUNT 1" >>confdefs.h
22451 else
22453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22454 /* end confdefs.h. */
22455 #include <pthread.h>
22457 main ()
22460 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
22463 return 0;
22465 _ACEOF
22466 if ac_fn_c_try_compile "$LINENO"; then :
22468 $as_echo "#define PTHREAD_MUTEX_HAVE___M_COUNT 1" >>confdefs.h
22471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22476 # We require a way to get the time.
22477 time_found=no
22478 for ac_func in gettimeofday time ftime
22479 do :
22480 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22481 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22482 eval as_val=\$$as_ac_var
22483 if test "x$as_val" = x""yes; then :
22484 cat >>confdefs.h <<_ACEOF
22485 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22486 _ACEOF
22487 time_found=yes
22489 done
22491 if test "$time_found" = no; then
22492 as_fn_error "no function found to get the time" "$LINENO" 5
22495 for ac_func in memmove
22496 do :
22497 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22498 if test "x$ac_cv_func_memmove" = x""yes; then :
22499 cat >>confdefs.h <<_ACEOF
22500 #define HAVE_MEMMOVE 1
22501 _ACEOF
22504 done
22507 # We require memcpy.
22508 memcpy_found=no
22509 for ac_func in memcpy
22510 do :
22511 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
22512 if test "x$ac_cv_func_memcpy" = x""yes; then :
22513 cat >>confdefs.h <<_ACEOF
22514 #define HAVE_MEMCPY 1
22515 _ACEOF
22516 memcpy_found=yes
22518 done
22520 if test "$memcpy_found" = no; then
22521 as_fn_error "memcpy is required" "$LINENO" 5
22523 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
22524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22525 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22526 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
22527 $as_echo_n "(cached) " >&6
22528 else
22529 ac_check_lib_save_LIBS=$LIBS
22530 LIBS="-ldl $LIBS"
22531 if test x$gcc_no_link = xyes; then
22532 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22535 /* end confdefs.h. */
22537 /* Override any GCC internal prototype to avoid an error.
22538 Use char because int might match the return type of a GCC
22539 builtin and then its argument prototype would still apply. */
22540 #ifdef __cplusplus
22541 extern "C"
22542 #endif
22543 char dlopen ();
22545 main ()
22547 return dlopen ();
22549 return 0;
22551 _ACEOF
22552 if ac_fn_c_try_link "$LINENO"; then :
22553 ac_cv_lib_dl_dlopen=yes
22554 else
22555 ac_cv_lib_dl_dlopen=no
22557 rm -f core conftest.err conftest.$ac_objext \
22558 conftest$ac_exeext conftest.$ac_ext
22559 LIBS=$ac_check_lib_save_LIBS
22561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22562 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22563 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
22566 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22568 else
22570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldld" >&5
22571 $as_echo_n "checking for dlopen in -ldld... " >&6; }
22572 if test "${ac_cv_lib_dld_dlopen+set}" = set; then :
22573 $as_echo_n "(cached) " >&6
22574 else
22575 ac_check_lib_save_LIBS=$LIBS
22576 LIBS="-ldld $LIBS"
22577 if test x$gcc_no_link = xyes; then
22578 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22581 /* end confdefs.h. */
22583 /* Override any GCC internal prototype to avoid an error.
22584 Use char because int might match the return type of a GCC
22585 builtin and then its argument prototype would still apply. */
22586 #ifdef __cplusplus
22587 extern "C"
22588 #endif
22589 char dlopen ();
22591 main ()
22593 return dlopen ();
22595 return 0;
22597 _ACEOF
22598 if ac_fn_c_try_link "$LINENO"; then :
22599 ac_cv_lib_dld_dlopen=yes
22600 else
22601 ac_cv_lib_dld_dlopen=no
22603 rm -f core conftest.err conftest.$ac_objext \
22604 conftest$ac_exeext conftest.$ac_ext
22605 LIBS=$ac_check_lib_save_LIBS
22607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dlopen" >&5
22608 $as_echo "$ac_cv_lib_dld_dlopen" >&6; }
22609 if test "x$ac_cv_lib_dld_dlopen" = x""yes; then :
22612 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22619 # Some library-finding code we stole from Tcl.
22620 #--------------------------------------------------------------------
22621 # Check for the existence of the -lsocket and -lnsl libraries.
22622 # The order here is important, so that they end up in the right
22623 # order in the command line generated by make. Here are some
22624 # special considerations:
22625 # 1. Use "connect" and "accept" to check for -lsocket, and
22626 # "gethostbyname" to check for -lnsl.
22627 # 2. Use each function name only once: can't redo a check because
22628 # autoconf caches the results of the last check and won't redo it.
22629 # 3. Use -lnsl and -lsocket only if they supply procedures that
22630 # aren't already present in the normal libraries. This is because
22631 # IRIX 5.2 has libraries, but they aren't needed and they're
22632 # bogus: they goof up name resolution if used.
22633 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
22634 # To get around this problem, check for both libraries together
22635 # if -lsocket doesn't work by itself.
22636 #--------------------------------------------------------------------
22638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
22639 $as_echo_n "checking for socket libraries... " >&6; }
22640 if test "${gcj_cv_lib_sockets+set}" = set; then :
22641 $as_echo_n "(cached) " >&6
22642 else
22643 gcj_cv_lib_sockets=
22644 gcj_checkBoth=0
22645 unset ac_cv_func_connect
22646 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
22647 if test "x$ac_cv_func_connect" = x""yes; then :
22648 gcj_checkSocket=0
22649 else
22650 gcj_checkSocket=1
22653 if test "$gcj_checkSocket" = 1; then
22654 unset ac_cv_func_connect
22655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
22656 $as_echo_n "checking for main in -lsocket... " >&6; }
22657 if test "${ac_cv_lib_socket_main+set}" = set; then :
22658 $as_echo_n "(cached) " >&6
22659 else
22660 ac_check_lib_save_LIBS=$LIBS
22661 LIBS="-lsocket $LIBS"
22662 if test x$gcc_no_link = xyes; then
22663 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22666 /* end confdefs.h. */
22670 main ()
22672 return main ();
22674 return 0;
22676 _ACEOF
22677 if ac_fn_c_try_link "$LINENO"; then :
22678 ac_cv_lib_socket_main=yes
22679 else
22680 ac_cv_lib_socket_main=no
22682 rm -f core conftest.err conftest.$ac_objext \
22683 conftest$ac_exeext conftest.$ac_ext
22684 LIBS=$ac_check_lib_save_LIBS
22686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
22687 $as_echo "$ac_cv_lib_socket_main" >&6; }
22688 if test "x$ac_cv_lib_socket_main" = x""yes; then :
22689 gcj_cv_lib_sockets="-lsocket"
22690 else
22691 gcj_checkBoth=1
22695 if test "$gcj_checkBoth" = 1; then
22696 gcj_oldLibs=$LIBS
22697 LIBS="$LIBS -lsocket -lnsl"
22698 unset ac_cv_func_accept
22699 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
22700 if test "x$ac_cv_func_accept" = x""yes; then :
22701 gcj_checkNsl=0
22702 gcj_cv_lib_sockets="-lsocket -lnsl"
22705 unset ac_cv_func_accept
22706 LIBS=$gcj_oldLibs
22708 unset ac_cv_func_gethostbyname
22709 gcj_oldLibs=$LIBS
22710 LIBS="$LIBS $gcj_cv_lib_sockets"
22711 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22712 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
22714 else
22715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
22716 $as_echo_n "checking for main in -lnsl... " >&6; }
22717 if test "${ac_cv_lib_nsl_main+set}" = set; then :
22718 $as_echo_n "(cached) " >&6
22719 else
22720 ac_check_lib_save_LIBS=$LIBS
22721 LIBS="-lnsl $LIBS"
22722 if test x$gcc_no_link = xyes; then
22723 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22726 /* end confdefs.h. */
22730 main ()
22732 return main ();
22734 return 0;
22736 _ACEOF
22737 if ac_fn_c_try_link "$LINENO"; then :
22738 ac_cv_lib_nsl_main=yes
22739 else
22740 ac_cv_lib_nsl_main=no
22742 rm -f core conftest.err conftest.$ac_objext \
22743 conftest$ac_exeext conftest.$ac_ext
22744 LIBS=$ac_check_lib_save_LIBS
22746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
22747 $as_echo "$ac_cv_lib_nsl_main" >&6; }
22748 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
22749 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
22754 unset ac_cv_func_gethostbyname
22755 LIBS=$gcj_oldLIBS
22758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcj_cv_lib_sockets" >&5
22759 $as_echo "$gcj_cv_lib_sockets" >&6; }
22760 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
22762 if test "$with_system_zlib" = yes; then
22763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
22764 $as_echo_n "checking for deflate in -lz... " >&6; }
22765 if test "${ac_cv_lib_z_deflate+set}" = set; then :
22766 $as_echo_n "(cached) " >&6
22767 else
22768 ac_check_lib_save_LIBS=$LIBS
22769 LIBS="-lz $LIBS"
22770 if test x$gcc_no_link = xyes; then
22771 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22774 /* end confdefs.h. */
22776 /* Override any GCC internal prototype to avoid an error.
22777 Use char because int might match the return type of a GCC
22778 builtin and then its argument prototype would still apply. */
22779 #ifdef __cplusplus
22780 extern "C"
22781 #endif
22782 char deflate ();
22784 main ()
22786 return deflate ();
22788 return 0;
22790 _ACEOF
22791 if ac_fn_c_try_link "$LINENO"; then :
22792 ac_cv_lib_z_deflate=yes
22793 else
22794 ac_cv_lib_z_deflate=no
22796 rm -f core conftest.err conftest.$ac_objext \
22797 conftest$ac_exeext conftest.$ac_ext
22798 LIBS=$ac_check_lib_save_LIBS
22800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
22801 $as_echo "$ac_cv_lib_z_deflate" >&6; }
22802 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
22803 ZLIBSPEC=-lz
22804 else
22805 ZLIBSPEC=
22810 # Test for Gtk stuff, if asked for.
22811 if test "$use_gtk_awt" = yes; then
22813 succeeded=no
22815 if test -z "$PKG_CONFIG"; then
22816 # Extract the first word of "pkg-config", so it can be a program name with args.
22817 set dummy pkg-config; ac_word=$2
22818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22819 $as_echo_n "checking for $ac_word... " >&6; }
22820 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22821 $as_echo_n "(cached) " >&6
22822 else
22823 case $PKG_CONFIG in
22824 [\\/]* | ?:[\\/]*)
22825 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22829 for as_dir in $PATH
22831 IFS=$as_save_IFS
22832 test -z "$as_dir" && as_dir=.
22833 for ac_exec_ext in '' $ac_executable_extensions; do
22834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22835 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22837 break 2
22839 done
22840 done
22841 IFS=$as_save_IFS
22843 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22845 esac
22847 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22848 if test -n "$PKG_CONFIG"; then
22849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22850 $as_echo "$PKG_CONFIG" >&6; }
22851 else
22852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22853 $as_echo "no" >&6; }
22859 if test "$PKG_CONFIG" = "no" ; then
22860 echo "*** The pkg-config script could not be found. Make sure it is"
22861 echo "*** in your path, or set the PKG_CONFIG environment variable"
22862 echo "*** to the full path to pkg-config."
22863 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22864 else
22865 PKG_CONFIG_MIN_VERSION=0.9.0
22866 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.4" >&5
22868 $as_echo_n "checking for gtk+-2.0 >= 2.4... " >&6; }
22870 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
22871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22872 $as_echo "yes" >&6; }
22873 succeeded=yes
22875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
22876 $as_echo_n "checking GTK_CFLAGS... " >&6; }
22877 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
22878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
22879 $as_echo "$GTK_CFLAGS" >&6; }
22881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
22882 $as_echo_n "checking GTK_LIBS... " >&6; }
22883 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
22884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
22885 $as_echo "$GTK_LIBS" >&6; }
22886 else
22887 GTK_CFLAGS=""
22888 GTK_LIBS=""
22889 ## If we have a custom action on failure, don't print errors, but
22890 ## do set a variable so people can do so.
22891 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
22892 echo $GTK_PKG_ERRORS
22897 else
22898 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22899 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22903 if test $succeeded = yes; then
22905 else
22906 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
22913 succeeded=no
22915 if test -z "$PKG_CONFIG"; then
22916 # Extract the first word of "pkg-config", so it can be a program name with args.
22917 set dummy pkg-config; ac_word=$2
22918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22919 $as_echo_n "checking for $ac_word... " >&6; }
22920 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22921 $as_echo_n "(cached) " >&6
22922 else
22923 case $PKG_CONFIG in
22924 [\\/]* | ?:[\\/]*)
22925 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22929 for as_dir in $PATH
22931 IFS=$as_save_IFS
22932 test -z "$as_dir" && as_dir=.
22933 for ac_exec_ext in '' $ac_executable_extensions; do
22934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22935 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22937 break 2
22939 done
22940 done
22941 IFS=$as_save_IFS
22943 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22945 esac
22947 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22948 if test -n "$PKG_CONFIG"; then
22949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22950 $as_echo "$PKG_CONFIG" >&6; }
22951 else
22952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22953 $as_echo "no" >&6; }
22959 if test "$PKG_CONFIG" = "no" ; then
22960 echo "*** The pkg-config script could not be found. Make sure it is"
22961 echo "*** in your path, or set the PKG_CONFIG environment variable"
22962 echo "*** to the full path to pkg-config."
22963 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22964 else
22965 PKG_CONFIG_MIN_VERSION=0.9.0
22966 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
22968 $as_echo_n "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... " >&6; }
22970 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
22971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22972 $as_echo "yes" >&6; }
22973 succeeded=yes
22975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
22976 $as_echo_n "checking GLIB_CFLAGS... " >&6; }
22977 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
22979 $as_echo "$GLIB_CFLAGS" >&6; }
22981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
22982 $as_echo_n "checking GLIB_LIBS... " >&6; }
22983 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
22985 $as_echo "$GLIB_LIBS" >&6; }
22986 else
22987 GLIB_CFLAGS=""
22988 GLIB_LIBS=""
22989 ## If we have a custom action on failure, don't print errors, but
22990 ## do set a variable so people can do so.
22991 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22992 echo $GLIB_PKG_ERRORS
22997 else
22998 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22999 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23003 if test $succeeded = yes; then
23005 else
23006 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
23013 succeeded=no
23015 if test -z "$PKG_CONFIG"; then
23016 # Extract the first word of "pkg-config", so it can be a program name with args.
23017 set dummy pkg-config; ac_word=$2
23018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23019 $as_echo_n "checking for $ac_word... " >&6; }
23020 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
23021 $as_echo_n "(cached) " >&6
23022 else
23023 case $PKG_CONFIG in
23024 [\\/]* | ?:[\\/]*)
23025 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23029 for as_dir in $PATH
23031 IFS=$as_save_IFS
23032 test -z "$as_dir" && as_dir=.
23033 for ac_exec_ext in '' $ac_executable_extensions; do
23034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23035 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23037 break 2
23039 done
23040 done
23041 IFS=$as_save_IFS
23043 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23045 esac
23047 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23048 if test -n "$PKG_CONFIG"; then
23049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
23050 $as_echo "$PKG_CONFIG" >&6; }
23051 else
23052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23053 $as_echo "no" >&6; }
23059 if test "$PKG_CONFIG" = "no" ; then
23060 echo "*** The pkg-config script could not be found. Make sure it is"
23061 echo "*** in your path, or set the PKG_CONFIG environment variable"
23062 echo "*** to the full path to pkg-config."
23063 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23064 else
23065 PKG_CONFIG_MIN_VERSION=0.9.0
23066 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libart-2.0 >= 2.1" >&5
23068 $as_echo_n "checking for libart-2.0 >= 2.1... " >&6; }
23070 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
23071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23072 $as_echo "yes" >&6; }
23073 succeeded=yes
23075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_CFLAGS" >&5
23076 $as_echo_n "checking LIBART_CFLAGS... " >&6; }
23077 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
23078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_CFLAGS" >&5
23079 $as_echo "$LIBART_CFLAGS" >&6; }
23081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_LIBS" >&5
23082 $as_echo_n "checking LIBART_LIBS... " >&6; }
23083 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
23084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_LIBS" >&5
23085 $as_echo "$LIBART_LIBS" >&6; }
23086 else
23087 LIBART_CFLAGS=""
23088 LIBART_LIBS=""
23089 ## If we have a custom action on failure, don't print errors, but
23090 ## do set a variable so people can do so.
23091 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
23092 echo $LIBART_PKG_ERRORS
23097 else
23098 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23099 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23103 if test $succeeded = yes; then
23105 else
23106 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
23112 # We require the XTest Extension to support java.awt.Robot.
23113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
23114 $as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
23115 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
23116 $as_echo_n "(cached) " >&6
23117 else
23118 ac_check_lib_save_LIBS=$LIBS
23119 LIBS="-lXtst ${X_LIBS} $LIBS"
23120 if test x$gcc_no_link = xyes; then
23121 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23124 /* end confdefs.h. */
23126 /* Override any GCC internal prototype to avoid an error.
23127 Use char because int might match the return type of a GCC
23128 builtin and then its argument prototype would still apply. */
23129 #ifdef __cplusplus
23130 extern "C"
23131 #endif
23132 char XTestQueryExtension ();
23134 main ()
23136 return XTestQueryExtension ();
23138 return 0;
23140 _ACEOF
23141 if ac_fn_c_try_link "$LINENO"; then :
23142 ac_cv_lib_Xtst_XTestQueryExtension=yes
23143 else
23144 ac_cv_lib_Xtst_XTestQueryExtension=no
23146 rm -f core conftest.err conftest.$ac_objext \
23147 conftest$ac_exeext conftest.$ac_ext
23148 LIBS=$ac_check_lib_save_LIBS
23150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
23151 $as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
23152 if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
23153 true
23154 else
23155 as_fn_error "libXtst not found, required by java.awt.Robot" "$LINENO" 5
23160 # On Solaris, and maybe other architectures, the Boehm collector
23161 # requires -ldl.
23162 if test "$GC" = boehm; then
23163 case "${host}" in
23164 mips-sgi-irix6*)
23165 # While IRIX 6 has libdl for the O32 and N32 ABIs, the N64 one is
23166 # missing. It's unnecessary anyway since dlopen lives in libc.
23168 *-*-darwin*)
23171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
23172 $as_echo_n "checking for main in -ldl... " >&6; }
23173 if test "${ac_cv_lib_dl_main+set}" = set; then :
23174 $as_echo_n "(cached) " >&6
23175 else
23176 ac_check_lib_save_LIBS=$LIBS
23177 LIBS="-ldl $LIBS"
23178 if test x$gcc_no_link = xyes; then
23179 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23182 /* end confdefs.h. */
23186 main ()
23188 return main ();
23190 return 0;
23192 _ACEOF
23193 if ac_fn_c_try_link "$LINENO"; then :
23194 ac_cv_lib_dl_main=yes
23195 else
23196 ac_cv_lib_dl_main=no
23198 rm -f core conftest.err conftest.$ac_objext \
23199 conftest$ac_exeext conftest.$ac_ext
23200 LIBS=$ac_check_lib_save_LIBS
23202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
23203 $as_echo "$ac_cv_lib_dl_main" >&6; }
23204 if test "x$ac_cv_lib_dl_main" = x""yes; then :
23205 SYSTEMSPEC="$SYSTEMSPEC -ldl"
23209 esac
23213 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
23214 case $build in
23215 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
23216 *) CLASSPATH_SEPARATOR=':' ;;
23217 esac
23220 # We must search the source tree for java.lang, since we still don't
23221 # have libgcj.jar nor java/lang/*.class
23222 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
23223 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
23225 # Since some classes depend on this one, we need its source available
23226 # before we can do any GCJ compilation test :-(
23227 if test ! -f gnu/classpath/Configuration.java; then
23228 test -d gnu || mkdir gnu
23229 test -d gnu/classpath || mkdir gnu/classpath
23230 # Note that it is not crucial that all the values here be correct.
23231 sed -e "s,@prefix@,$expanded_prefix," \
23232 -e "s,@VERSION@,$VERSION," \
23233 -e "s,@LIBDEBUG@,false," \
23234 -e "s,@INIT_LOAD_LIBRARY@,false," \
23235 -e "s,@@,$LIBGCJDEBUG," \
23236 -e "s,@default_toolkit@,$TOOLKIT," \
23237 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
23238 -e "s,@GTK_CAIRO_ENABLED@,false," \
23239 -e "s,@ECJ_JAR@,," \
23240 -e "s,@WANT_NATIVE_BIG_INTEGER@,false," \
23241 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
23242 > gnu/classpath/Configuration.java
23243 # We do not want to redirect the output of the grep below to /dev/null,
23244 # but we add /dev/null to the input list so that grep will print the
23245 # filename of Configuration.java in case it finds any matches.
23246 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
23247 as_fn_error "configure.ac is missing the substitutions above" "$LINENO" 5
23252 if test -n "$ac_tool_prefix"; then
23253 for ac_prog in gcj
23255 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23256 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23258 $as_echo_n "checking for $ac_word... " >&6; }
23259 if test "${ac_cv_prog_GCJ+set}" = set; then :
23260 $as_echo_n "(cached) " >&6
23261 else
23262 if test -n "$GCJ"; then
23263 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
23264 else
23265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23266 for as_dir in $PATH
23268 IFS=$as_save_IFS
23269 test -z "$as_dir" && as_dir=.
23270 for ac_exec_ext in '' $ac_executable_extensions; do
23271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23272 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
23273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23274 break 2
23276 done
23277 done
23278 IFS=$as_save_IFS
23282 GCJ=$ac_cv_prog_GCJ
23283 if test -n "$GCJ"; then
23284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
23285 $as_echo "$GCJ" >&6; }
23286 else
23287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23288 $as_echo "no" >&6; }
23292 test -n "$GCJ" && break
23293 done
23295 if test -z "$GCJ"; then
23296 ac_ct_GCJ=$GCJ
23297 for ac_prog in gcj
23299 # Extract the first word of "$ac_prog", so it can be a program name with args.
23300 set dummy $ac_prog; ac_word=$2
23301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23302 $as_echo_n "checking for $ac_word... " >&6; }
23303 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
23304 $as_echo_n "(cached) " >&6
23305 else
23306 if test -n "$ac_ct_GCJ"; then
23307 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
23308 else
23309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23310 for as_dir in $PATH
23312 IFS=$as_save_IFS
23313 test -z "$as_dir" && as_dir=.
23314 for ac_exec_ext in '' $ac_executable_extensions; do
23315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23316 ac_cv_prog_ac_ct_GCJ="$ac_prog"
23317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23318 break 2
23320 done
23321 done
23322 IFS=$as_save_IFS
23326 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
23327 if test -n "$ac_ct_GCJ"; then
23328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
23329 $as_echo "$ac_ct_GCJ" >&6; }
23330 else
23331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23332 $as_echo "no" >&6; }
23336 test -n "$ac_ct_GCJ" && break
23337 done
23339 if test "x$ac_ct_GCJ" = x; then
23340 GCJ="gcj"
23341 else
23342 case $cross_compiling:$ac_tool_warned in
23343 yes:)
23344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23346 ac_tool_warned=yes ;;
23347 esac
23348 GCJ=$ac_ct_GCJ
23352 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
23353 if test "x${GCJFLAGS-unset}" = xunset; then
23354 GCJFLAGS="-g -O2"
23358 depcc="$GCJ" am_compiler_list='gcc3 gcc'
23360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23361 $as_echo_n "checking dependency style of $depcc... " >&6; }
23362 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
23363 $as_echo_n "(cached) " >&6
23364 else
23365 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23366 # We make a subdir and do the tests there. Otherwise we can end up
23367 # making bogus files that we don't know about and never remove. For
23368 # instance it was reported that on HP-UX the gcc test will end up
23369 # making a dummy file named `D' -- because `-MD' means `put the output
23370 # in D'.
23371 mkdir conftest.dir
23372 # Copy depcomp to subdir because otherwise we won't find it if we're
23373 # using a relative directory.
23374 cp "$am_depcomp" conftest.dir
23375 cd conftest.dir
23376 # We will build objects and dependencies in a subdirectory because
23377 # it helps to detect inapplicable dependency modes. For instance
23378 # both Tru64's cc and ICC support -MD to output dependencies as a
23379 # side effect of compilation, but ICC will put the dependencies in
23380 # the current directory while Tru64 will put them in the object
23381 # directory.
23382 mkdir sub
23384 am_cv_GCJ_dependencies_compiler_type=none
23385 if test "$am_compiler_list" = ""; then
23386 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23388 am__universal=false
23391 for depmode in $am_compiler_list; do
23392 # Setup a source with many dependencies, because some compilers
23393 # like to wrap large dependency lists on column 80 (with \), and
23394 # we should not choose a depcomp mode which is confused by this.
23396 # We need to recreate these files for each test, as the compiler may
23397 # overwrite some of them when testing with obscure command lines.
23398 # This happens at least with the AIX C compiler.
23399 : > sub/conftest.c
23400 for i in 1 2 3 4 5 6; do
23401 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23402 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23403 # Solaris 8's {/usr,}/bin/sh.
23404 touch sub/conftst$i.h
23405 done
23406 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23408 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23409 # mode. It turns out that the SunPro C++ compiler does not properly
23410 # handle `-M -o', and we need to detect this. Also, some Intel
23411 # versions had trouble with output in subdirs
23412 am__obj=sub/conftest.${OBJEXT-o}
23413 am__minus_obj="-o $am__obj"
23414 case $depmode in
23415 gcc)
23416 # This depmode causes a compiler race in universal mode.
23417 test "$am__universal" = false || continue
23419 nosideeffect)
23420 # after this tag, mechanisms are not by side-effect, so they'll
23421 # only be used when explicitly requested
23422 if test "x$enable_dependency_tracking" = xyes; then
23423 continue
23424 else
23425 break
23428 msvisualcpp | msvcmsys)
23429 # This compiler won't grok `-c -o', but also, the minuso test has
23430 # not run yet. These depmodes are late enough in the game, and
23431 # so weak that their functioning should not be impacted.
23432 am__obj=conftest.${OBJEXT-o}
23433 am__minus_obj=
23435 none) break ;;
23436 esac
23437 if depmode=$depmode \
23438 source=sub/conftest.c object=$am__obj \
23439 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23440 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23441 >/dev/null 2>conftest.err &&
23442 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23443 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23444 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23445 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23446 # icc doesn't choke on unknown options, it will just issue warnings
23447 # or remarks (even with -Werror). So we grep stderr for any message
23448 # that says an option was ignored or not supported.
23449 # When given -MP, icc 7.0 and 7.1 complain thusly:
23450 # icc: Command line warning: ignoring option '-M'; no argument required
23451 # The diagnosis changed in icc 8.0:
23452 # icc: Command line remark: option '-MP' not supported
23453 if (grep 'ignoring option' conftest.err ||
23454 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23455 am_cv_GCJ_dependencies_compiler_type=$depmode
23456 break
23459 done
23461 cd ..
23462 rm -rf conftest.dir
23463 else
23464 am_cv_GCJ_dependencies_compiler_type=none
23468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
23469 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
23470 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
23473 test "x$enable_dependency_tracking" != xno \
23474 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
23475 am__fastdepGCJ_TRUE=
23476 am__fastdepGCJ_FALSE='#'
23477 else
23478 am__fastdepGCJ_TRUE='#'
23479 am__fastdepGCJ_FALSE=
23485 # Now remove it.
23486 rm -f gnu/classpath/Configuration.java
23488 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
23490 # The cast to long int works around a bug in the HP C Compiler
23491 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23492 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23493 # This bug is HP SR number 8606223364.
23494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
23495 $as_echo_n "checking size of void *... " >&6; }
23496 if test "${ac_cv_sizeof_void_p+set}" = set; then :
23497 $as_echo_n "(cached) " >&6
23498 else
23499 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
23501 else
23502 if test "$ac_cv_type_void_p" = yes; then
23503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23505 { as_fn_set_status 77
23506 as_fn_error "cannot compute sizeof (void *)
23507 See \`config.log' for more details." "$LINENO" 5; }; }
23508 else
23509 ac_cv_sizeof_void_p=0
23514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
23515 $as_echo "$ac_cv_sizeof_void_p" >&6; }
23519 cat >>confdefs.h <<_ACEOF
23520 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23521 _ACEOF
23525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23526 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23527 if test "${ac_cv_c_bigendian+set}" = set; then :
23528 $as_echo_n "(cached) " >&6
23529 else
23530 ac_cv_c_bigendian=unknown
23531 # See if we're dealing with a universal compiler.
23532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23533 /* end confdefs.h. */
23534 #ifndef __APPLE_CC__
23535 not a universal capable compiler
23536 #endif
23537 typedef int dummy;
23539 _ACEOF
23540 if ac_fn_c_try_compile "$LINENO"; then :
23542 # Check for potential -arch flags. It is not universal unless
23543 # there are at least two -arch flags with different values.
23544 ac_arch=
23545 ac_prev=
23546 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23547 if test -n "$ac_prev"; then
23548 case $ac_word in
23549 i?86 | x86_64 | ppc | ppc64)
23550 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23551 ac_arch=$ac_word
23552 else
23553 ac_cv_c_bigendian=universal
23554 break
23557 esac
23558 ac_prev=
23559 elif test "x$ac_word" = "x-arch"; then
23560 ac_prev=arch
23562 done
23564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23565 if test $ac_cv_c_bigendian = unknown; then
23566 # See if sys/param.h defines the BYTE_ORDER macro.
23567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23568 /* end confdefs.h. */
23569 #include <sys/types.h>
23570 #include <sys/param.h>
23573 main ()
23575 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23576 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23577 && LITTLE_ENDIAN)
23578 bogus endian macros
23579 #endif
23582 return 0;
23584 _ACEOF
23585 if ac_fn_c_try_compile "$LINENO"; then :
23586 # It does; now see whether it defined to BIG_ENDIAN or not.
23587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23588 /* end confdefs.h. */
23589 #include <sys/types.h>
23590 #include <sys/param.h>
23593 main ()
23595 #if BYTE_ORDER != BIG_ENDIAN
23596 not big endian
23597 #endif
23600 return 0;
23602 _ACEOF
23603 if ac_fn_c_try_compile "$LINENO"; then :
23604 ac_cv_c_bigendian=yes
23605 else
23606 ac_cv_c_bigendian=no
23608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23612 if test $ac_cv_c_bigendian = unknown; then
23613 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23615 /* end confdefs.h. */
23616 #include <limits.h>
23619 main ()
23621 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23622 bogus endian macros
23623 #endif
23626 return 0;
23628 _ACEOF
23629 if ac_fn_c_try_compile "$LINENO"; then :
23630 # It does; now see whether it defined to _BIG_ENDIAN or not.
23631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23632 /* end confdefs.h. */
23633 #include <limits.h>
23636 main ()
23638 #ifndef _BIG_ENDIAN
23639 not big endian
23640 #endif
23643 return 0;
23645 _ACEOF
23646 if ac_fn_c_try_compile "$LINENO"; then :
23647 ac_cv_c_bigendian=yes
23648 else
23649 ac_cv_c_bigendian=no
23651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23655 if test $ac_cv_c_bigendian = unknown; then
23656 # Compile a test program.
23657 if test "$cross_compiling" = yes; then :
23658 # Try to guess by grepping values from an object file.
23659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23660 /* end confdefs.h. */
23661 short int ascii_mm[] =
23662 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23663 short int ascii_ii[] =
23664 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23665 int use_ascii (int i) {
23666 return ascii_mm[i] + ascii_ii[i];
23668 short int ebcdic_ii[] =
23669 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23670 short int ebcdic_mm[] =
23671 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23672 int use_ebcdic (int i) {
23673 return ebcdic_mm[i] + ebcdic_ii[i];
23675 extern int foo;
23678 main ()
23680 return use_ascii (foo) == use_ebcdic (foo);
23682 return 0;
23684 _ACEOF
23685 if ac_fn_c_try_compile "$LINENO"; then :
23686 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23687 ac_cv_c_bigendian=yes
23689 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23690 if test "$ac_cv_c_bigendian" = unknown; then
23691 ac_cv_c_bigendian=no
23692 else
23693 # finding both strings is unlikely to happen, but who knows?
23694 ac_cv_c_bigendian=unknown
23698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23699 else
23700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23701 /* end confdefs.h. */
23702 $ac_includes_default
23704 main ()
23707 /* Are we little or big endian? From Harbison&Steele. */
23708 union
23710 long int l;
23711 char c[sizeof (long int)];
23712 } u;
23713 u.l = 1;
23714 return u.c[sizeof (long int) - 1] == 1;
23717 return 0;
23719 _ACEOF
23720 if ac_fn_c_try_run "$LINENO"; then :
23721 ac_cv_c_bigendian=no
23722 else
23723 ac_cv_c_bigendian=yes
23725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23726 conftest.$ac_objext conftest.beam conftest.$ac_ext
23731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23732 $as_echo "$ac_cv_c_bigendian" >&6; }
23733 case $ac_cv_c_bigendian in #(
23734 yes)
23735 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23736 ;; #(
23738 ;; #(
23739 universal)
23741 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23743 ;; #(
23745 as_fn_error "unknown endianness
23746 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23747 esac
23750 ZLIBS=
23751 SYS_ZLIBS=
23752 ZINCS=
23754 if test -z "$ZLIBSPEC"; then
23755 # Use zlib from the GCC tree.
23756 ZINCS='-I$(top_srcdir)/../zlib'
23757 ZLIBS=../zlib/libzgcj_convenience.la
23758 else
23759 # System's zlib.
23760 SYS_ZLIBS="$ZLIBSPEC"
23772 if test "$NATIVE" = yes; then
23773 NATIVE_TRUE=
23774 NATIVE_FALSE='#'
23775 else
23776 NATIVE_TRUE='#'
23777 NATIVE_FALSE=
23780 if test "$enable_shared" = yes; then
23781 ENABLE_SHARED_TRUE=
23782 ENABLE_SHARED_FALSE='#'
23783 else
23784 ENABLE_SHARED_TRUE='#'
23785 ENABLE_SHARED_FALSE=
23788 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
23789 NEEDS_DATA_START_TRUE=
23790 NEEDS_DATA_START_FALSE='#'
23791 else
23792 NEEDS_DATA_START_TRUE='#'
23793 NEEDS_DATA_START_FALSE=
23796 if test -z "${with_multisubdir}"; then
23797 INSTALL_BINARIES_TRUE=
23798 INSTALL_BINARIES_FALSE='#'
23799 else
23800 INSTALL_BINARIES_TRUE='#'
23801 INSTALL_BINARIES_FALSE=
23806 # Process the option "--enable-version-specific-runtime-libs"
23807 # Calculate toolexeclibdir
23808 case ${version_specific_libs} in
23809 yes)
23810 # Need the gcc compiler version to know where to install libraries
23811 # and header files if --enable-version-specific-runtime-libs option
23812 # is selected.
23813 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
23814 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
23815 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
23816 toolexeclibdir=$toolexecmainlibdir
23819 if test -n "$with_cross_host" &&
23820 test x"$with_cross_host" != x"no"; then
23821 # Install a library built with a cross compiler in tooldir, not libdir.
23822 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
23823 toolexecmainlibdir='$(toolexecdir)/lib'
23824 else
23825 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
23826 toolexecmainlibdir='$(libdir)'
23828 multi_os_directory=`$CC -print-multi-os-directory`
23829 case $multi_os_directory in
23830 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
23831 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
23832 esac
23834 esac
23839 # Determine gcj and libgcj version number.
23840 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
23841 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
23842 GCJVERSION=$gcjversion
23845 cat >>confdefs.h <<_ACEOF
23846 #define GCJVERSION "$GCJVERSION"
23847 _ACEOF
23850 # Determine where the standard .db file and GNU Classpath JNI
23851 # libraries are found.
23852 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
23853 multi_os_directory=`$CC -print-multi-os-directory`
23854 case $multi_os_directory in
23856 dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
23859 dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
23861 esac
23866 $as_echo "#define JV_VERSION \"1.5.0\"" >>confdefs.h
23869 $as_echo "#define JV_API_VERSION \"1.5\"" >>confdefs.h
23873 case "${with_gxx_include_dir}" in
23874 yes)
23875 as_fn_error "--with-gxx-include-dir=[dir] requires a directory" "$LINENO" 5
23877 no | "")
23878 case "${enable_version_specific_runtime_libs}" in
23879 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
23881 libstdcxx_incdir='c++/$(gcc_version)'
23882 gxx_include_dir='include/$(libstdcxx_incdir)'
23883 if test -n "$with_cross_host" &&
23884 test x"$with_cross_host" != x"no"; then
23885 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
23886 else
23887 gxx_include_dir='${prefix}/'"$gxx_include_dir"
23888 fi;;
23889 esac ;;
23890 *) gxx_include_dir=${with_gxx_include_dir} ;;
23891 esac
23896 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
23897 # On that system, sys/ioctl.h will not include sys/filio.h unless
23898 # BSD_COMP is defined; just including sys/filio.h is simpler.
23899 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
23900 # for now. If you change this, you also must update natFile.cc.
23901 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
23902 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
23903 sys/socket.h netinet/in.h arpa/inet.h netdb.h \
23904 pwd.h sys/config.h stdint.h langinfo.h locale.h \
23905 dirent.h sys/rw_lock.h magic.h ifaddrs.h
23906 do :
23907 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23908 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23909 eval as_val=\$$as_ac_Header
23910 if test "x$as_val" = x""yes; then :
23911 cat >>confdefs.h <<_ACEOF
23912 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23913 _ACEOF
23917 done
23920 # sys/socket.h is a prerequisite for net/if.h on Solaris.
23921 for ac_header in net/if.h
23922 do :
23923 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
23924 #ifdef HAVE_SYS_SOCKET_H
23925 #include <sys/socket.h>
23926 #endif
23929 if test "x$ac_cv_header_net_if_h" = x""yes; then :
23930 cat >>confdefs.h <<_ACEOF
23931 #define HAVE_NET_IF_H 1
23932 _ACEOF
23936 done
23939 for ac_header in inttypes.h
23940 do :
23941 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
23942 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
23943 cat >>confdefs.h <<_ACEOF
23944 #define HAVE_INTTYPES_H 1
23945 _ACEOF
23948 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
23951 $as_echo "#define JV_HAVE_INTTYPES_H 1" >>confdefs.h
23956 done
23959 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23960 if test "x$ac_cv_type_ssize_t" = x""yes; then :
23962 else
23964 cat >>confdefs.h <<_ACEOF
23965 #define ssize_t int
23966 _ACEOF
23970 ac_fn_c_check_type "$LINENO" "magic_t" "ac_cv_type_magic_t" "
23971 #ifdef HAVE_MAGIC_H
23972 #include <magic.h>
23973 #endif
23975 if test "x$ac_cv_type_magic_t" = x""yes; then :
23978 $as_echo "#define HAVE_MAGIC_T 1" >>confdefs.h
23983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5
23984 $as_echo_n "checking for in_addr_t... " >&6; }
23985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23986 /* end confdefs.h. */
23987 #include <sys/types.h>
23988 #if STDC_HEADERS
23989 #include <stdlib.h>
23990 #include <stddef.h>
23991 #endif
23992 #if HAVE_NETINET_IN_H
23993 #include <netinet/in.h>
23994 #endif
23996 main ()
23998 in_addr_t foo;
24000 return 0;
24002 _ACEOF
24003 if ac_fn_c_try_compile "$LINENO"; then :
24005 $as_echo "#define HAVE_IN_ADDR_T 1" >>confdefs.h
24007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24008 $as_echo "yes" >&6; }
24009 else
24010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24011 $as_echo "no" >&6; }
24013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ip_mreq is in netinet/in.h" >&5
24016 $as_echo_n "checking whether struct ip_mreq is in netinet/in.h... " >&6; }
24017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24018 /* end confdefs.h. */
24019 #include <netinet/in.h>
24021 main ()
24023 struct ip_mreq mreq;
24025 return 0;
24027 _ACEOF
24028 if ac_fn_c_try_compile "$LINENO"; then :
24030 $as_echo "#define HAVE_STRUCT_IP_MREQ 1" >>confdefs.h
24032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24033 $as_echo "yes" >&6; }
24034 else
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24036 $as_echo "no" >&6; }
24038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ipv6_mreq is in netinet/in.h" >&5
24041 $as_echo_n "checking whether struct ipv6_mreq is in netinet/in.h... " >&6; }
24042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24043 /* end confdefs.h. */
24044 #include <netinet/in.h>
24046 main ()
24048 struct ipv6_mreq mreq6;
24050 return 0;
24052 _ACEOF
24053 if ac_fn_c_try_compile "$LINENO"; then :
24055 $as_echo "#define HAVE_STRUCT_IPV6_MREQ 1" >>confdefs.h
24057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24058 $as_echo "yes" >&6; }
24059 else
24060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24061 $as_echo "no" >&6; }
24063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
24066 $as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
24067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24068 /* end confdefs.h. */
24069 #include <netinet/in.h>
24071 main ()
24073 struct sockaddr_in6 addr6;
24075 return 0;
24077 _ACEOF
24078 if ac_fn_c_try_compile "$LINENO"; then :
24080 $as_echo "#define HAVE_INET6 1" >>confdefs.h
24082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24083 $as_echo "yes" >&6; }
24084 else
24085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24086 $as_echo "no" >&6; }
24088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
24091 $as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
24092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24093 /* end confdefs.h. */
24094 #define _POSIX_PII_SOCKET
24095 #include <sys/types.h>
24096 #include <sys/socket.h>
24098 main ()
24100 socklen_t x = 5;
24102 return 0;
24104 _ACEOF
24105 if ac_fn_c_try_compile "$LINENO"; then :
24107 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
24109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24110 $as_echo "yes" >&6; }
24111 else
24112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24113 $as_echo "no" >&6; }
24115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
24118 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
24119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24120 /* end confdefs.h. */
24121 #include <time.h>
24123 main ()
24125 struct tm tim; tim.tm_gmtoff = 0;
24127 return 0;
24129 _ACEOF
24130 if ac_fn_c_try_compile "$LINENO"; then :
24132 $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
24134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24135 $as_echo "yes" >&6; }
24136 else
24137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24138 $as_echo "no" >&6; }
24139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
24140 $as_echo_n "checking for global timezone variable... " >&6; }
24141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24142 /* end confdefs.h. */
24143 #include <time.h>
24145 main ()
24147 void i(){long z2 = 2*timezone;}
24149 return 0;
24151 _ACEOF
24152 if ac_fn_c_try_compile "$LINENO"; then :
24154 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
24156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24157 $as_echo "yes" >&6; }
24158 else
24159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24160 $as_echo "no" >&6; }
24161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
24162 $as_echo_n "checking for global _timezone variable... " >&6; }
24163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24164 /* end confdefs.h. */
24165 #include <time.h>
24167 main ()
24169 long z2 = _timezone;
24171 return 0;
24173 _ACEOF
24174 if ac_fn_c_try_compile "$LINENO"; then :
24176 $as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
24178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24179 $as_echo "yes" >&6; }
24180 else
24181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24182 $as_echo "no" >&6; }
24184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24190 for ac_prog in perl
24192 # Extract the first word of "$ac_prog", so it can be a program name with args.
24193 set dummy $ac_prog; ac_word=$2
24194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24195 $as_echo_n "checking for $ac_word... " >&6; }
24196 if test "${ac_cv_prog_PERL+set}" = set; then :
24197 $as_echo_n "(cached) " >&6
24198 else
24199 if test -n "$PERL"; then
24200 ac_cv_prog_PERL="$PERL" # Let the user override the test.
24201 else
24202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24203 for as_dir in $PATH
24205 IFS=$as_save_IFS
24206 test -z "$as_dir" && as_dir=.
24207 for ac_exec_ext in '' $ac_executable_extensions; do
24208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24209 ac_cv_prog_PERL="$ac_prog"
24210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24211 break 2
24213 done
24214 done
24215 IFS=$as_save_IFS
24219 PERL=$ac_cv_prog_PERL
24220 if test -n "$PERL"; then
24221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
24222 $as_echo "$PERL" >&6; }
24223 else
24224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24225 $as_echo "no" >&6; }
24229 test -n "$PERL" && break
24230 done
24231 test -n "$PERL" || PERL="false"
24234 SYSDEP_SOURCES=
24235 SIGNAL_HANDLER_AUX=
24237 case "${host}" in
24238 alpha*-dec-osf* | mips-sgi-irix* | *-*-solaris2*)
24239 SIGNAL_HANDLER=include/posix-signal.h
24241 i?86-*-linux*)
24242 SIGNAL_HANDLER=include/i386-signal.h
24243 SIGNAL_HANDLER_AUX=include/x86_64-signal.h
24245 # ia64-*)
24246 # SYSDEP_SOURCES=sysdep/ia64.c
24247 # test -d sysdep || mkdir sysdep
24248 # ;;
24249 hppa*-*-linux*)
24250 SIGNAL_HANDLER=include/pa-signal.h
24252 hppa*-hp-hpux*)
24253 SIGNAL_HANDLER=include/hppa-signal.h
24255 ia64-*-linux*)
24256 SIGNAL_HANDLER=include/dwarf2-signal.h
24258 powerpc*-*-linux*)
24259 SIGNAL_HANDLER=include/powerpc-signal.h
24261 alpha*-*-linux*)
24262 SIGNAL_HANDLER=include/dwarf2-signal.h
24264 s390*-*-linux*)
24265 SIGNAL_HANDLER=include/s390-signal.h
24267 x86_64*-*-linux*)
24268 SIGNAL_HANDLER=include/x86_64-signal.h
24269 SIGNAL_HANDLER_AUX=include/i386-signal.h
24271 sparc*-*-linux*)
24272 SIGNAL_HANDLER=include/dwarf2-signal.h
24274 sh*-*-linux*)
24275 SIGNAL_HANDLER=include/sh-signal.h
24277 *mingw*)
24278 SIGNAL_HANDLER=include/win32-signal.h
24280 mips*-*-linux*)
24281 SIGNAL_HANDLER=include/mips-signal.h
24283 m68*-*-linux*)
24284 SIGNAL_HANDLER=include/dwarf2-signal.h
24286 powerpc*-*-darwin* | i?86-*-darwin[912]* | x86_64-*-darwin[912]*)
24287 SIGNAL_HANDLER=include/darwin-signal.h
24289 powerpc*-*-aix*)
24290 SIGNAL_HANDLER=include/aix-signal.h
24293 SIGNAL_HANDLER=include/default-signal.h
24295 esac
24297 # If we're using sjlj exceptions, forget what we just learned.
24298 if test "$enable_sjlj_exceptions" = yes; then
24299 SIGNAL_HANDLER=include/default-signal.h
24300 SIGNAL_HANDLER_AUX=
24305 if test -z "$SIGNAL_HANDLER_AUX"; then
24306 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
24309 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
24312 if test "${multilib}" = "yes"; then
24313 multilib_arg="--enable-multilib"
24314 else
24315 multilib_arg=
24318 # See if we support thread-local storage.
24321 # Check whether --enable-tls was given.
24322 if test "${enable_tls+set}" = set; then :
24323 enableval=$enable_tls;
24324 case "$enableval" in
24325 yes|no) ;;
24326 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
24327 esac
24329 else
24330 enable_tls=yes
24334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
24335 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
24336 if test "${gcc_cv_have_tls+set}" = set; then :
24337 $as_echo_n "(cached) " >&6
24338 else
24340 if test "$cross_compiling" = yes; then :
24341 if test x$gcc_no_link = xyes; then
24342 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24345 /* end confdefs.h. */
24346 __thread int a; int b; int main() { return a = b; }
24347 _ACEOF
24348 if ac_fn_c_try_link "$LINENO"; then :
24349 chktls_save_LDFLAGS="$LDFLAGS"
24350 case $host in
24351 *-*-linux*)
24352 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
24354 esac
24355 chktls_save_CFLAGS="$CFLAGS"
24356 CFLAGS="-fPIC $CFLAGS"
24357 if test x$gcc_no_link = xyes; then
24358 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24361 /* end confdefs.h. */
24362 int f() { return 0; }
24363 _ACEOF
24364 if ac_fn_c_try_link "$LINENO"; then :
24365 if test x$gcc_no_link = xyes; then
24366 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24369 /* end confdefs.h. */
24370 __thread int a; int b; int f() { return a = b; }
24371 _ACEOF
24372 if ac_fn_c_try_link "$LINENO"; then :
24373 gcc_cv_have_tls=yes
24374 else
24375 gcc_cv_have_tls=no
24377 rm -f core conftest.err conftest.$ac_objext \
24378 conftest$ac_exeext conftest.$ac_ext
24379 else
24380 gcc_cv_have_tls=yes
24382 rm -f core conftest.err conftest.$ac_objext \
24383 conftest$ac_exeext conftest.$ac_ext
24384 CFLAGS="$chktls_save_CFLAGS"
24385 LDFLAGS="$chktls_save_LDFLAGS"
24386 else
24387 gcc_cv_have_tls=no
24389 rm -f core conftest.err conftest.$ac_objext \
24390 conftest$ac_exeext conftest.$ac_ext
24393 else
24394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24395 /* end confdefs.h. */
24396 __thread int a; int b; int main() { return a = b; }
24397 _ACEOF
24398 if ac_fn_c_try_run "$LINENO"; then :
24399 chktls_save_LDFLAGS="$LDFLAGS"
24400 LDFLAGS="-static $LDFLAGS"
24401 if test x$gcc_no_link = xyes; then
24402 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24405 /* end confdefs.h. */
24406 int main() { return 0; }
24407 _ACEOF
24408 if ac_fn_c_try_link "$LINENO"; then :
24409 if test "$cross_compiling" = yes; then :
24410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24412 as_fn_error "cannot run test program while cross compiling
24413 See \`config.log' for more details." "$LINENO" 5; }
24414 else
24415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24416 /* end confdefs.h. */
24417 __thread int a; int b; int main() { return a = b; }
24418 _ACEOF
24419 if ac_fn_c_try_run "$LINENO"; then :
24420 gcc_cv_have_tls=yes
24421 else
24422 gcc_cv_have_tls=no
24424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24425 conftest.$ac_objext conftest.beam conftest.$ac_ext
24428 else
24429 gcc_cv_have_tls=yes
24431 rm -f core conftest.err conftest.$ac_objext \
24432 conftest$ac_exeext conftest.$ac_ext
24433 LDFLAGS="$chktls_save_LDFLAGS"
24434 if test $gcc_cv_have_tls = yes; then
24435 chktls_save_CFLAGS="$CFLAGS"
24436 thread_CFLAGS=failed
24437 for flag in '' '-pthread' '-lpthread'; do
24438 CFLAGS="$flag $chktls_save_CFLAGS"
24439 if test x$gcc_no_link = xyes; then
24440 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24443 /* end confdefs.h. */
24444 #include <pthread.h>
24445 void *g(void *d) { return NULL; }
24447 main ()
24449 pthread_t t; pthread_create(&t,NULL,g,NULL);
24451 return 0;
24453 _ACEOF
24454 if ac_fn_c_try_link "$LINENO"; then :
24455 thread_CFLAGS="$flag"
24457 rm -f core conftest.err conftest.$ac_objext \
24458 conftest$ac_exeext conftest.$ac_ext
24459 if test "X$thread_CFLAGS" != Xfailed; then
24460 break
24462 done
24463 CFLAGS="$chktls_save_CFLAGS"
24464 if test "X$thread_CFLAGS" != Xfailed; then
24465 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
24466 if test "$cross_compiling" = yes; then :
24467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24469 as_fn_error "cannot run test program while cross compiling
24470 See \`config.log' for more details." "$LINENO" 5; }
24471 else
24472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24473 /* end confdefs.h. */
24474 #include <pthread.h>
24475 __thread int a;
24476 static int *volatile a_in_other_thread;
24477 static void *
24478 thread_func (void *arg)
24480 a_in_other_thread = &a;
24481 return (void *)0;
24484 main ()
24486 pthread_t thread;
24487 void *thread_retval;
24488 int *volatile a_in_main_thread;
24489 a_in_main_thread = &a;
24490 if (pthread_create (&thread, (pthread_attr_t *)0,
24491 thread_func, (void *)0))
24492 return 0;
24493 if (pthread_join (thread, &thread_retval))
24494 return 0;
24495 return (a_in_other_thread == a_in_main_thread);
24497 return 0;
24499 _ACEOF
24500 if ac_fn_c_try_run "$LINENO"; then :
24501 gcc_cv_have_tls=yes
24502 else
24503 gcc_cv_have_tls=no
24505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24506 conftest.$ac_objext conftest.beam conftest.$ac_ext
24509 CFLAGS="$chktls_save_CFLAGS"
24512 else
24513 gcc_cv_have_tls=no
24515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24516 conftest.$ac_objext conftest.beam conftest.$ac_ext
24520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
24521 $as_echo "$gcc_cv_have_tls" >&6; }
24522 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
24524 $as_echo "#define HAVE_TLS 1" >>confdefs.h
24528 # For _Unwind_GetIPInfo.
24531 # Check whether --with-system-libunwind was given.
24532 if test "${with_system_libunwind+set}" = set; then :
24533 withval=$with_system_libunwind;
24536 # If system-libunwind was not specifically set, pick a default setting.
24537 if test x$with_system_libunwind = x; then
24538 case ${target} in
24539 ia64-*-hpux*) with_system_libunwind=yes ;;
24540 *) with_system_libunwind=no ;;
24541 esac
24543 # Based on system-libunwind and target, do we have ipinfo?
24544 if test x$with_system_libunwind = xyes; then
24545 case ${target} in
24546 ia64-*-*) have_unwind_getipinfo=no ;;
24547 *) have_unwind_getipinfo=yes ;;
24548 esac
24549 else
24550 # Darwin before version 9 does not have _Unwind_GetIPInfo.
24552 case ${target} in
24553 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
24554 *) have_unwind_getipinfo=yes ;;
24555 esac
24559 if test x$have_unwind_getipinfo = xyes; then
24561 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
24566 # See if linker supports anonymous version scripts.
24567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous version scripts" >&5
24568 $as_echo_n "checking whether ld supports anonymous version scripts... " >&6; }
24569 if test "${libjava_cv_anon_version_script+set}" = set; then :
24570 $as_echo_n "(cached) " >&6
24571 else
24572 # Check whether --enable-symvers was given.
24573 if test "${enable_symvers+set}" = set; then :
24574 enableval=$enable_symvers; case "$enableval" in
24575 yes|gnu*) libjava_cv_anon_version_script=yes ;;
24576 no) libjava_cv_anon_version_script=no ;;
24577 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5;;
24578 esac
24579 else
24580 libjava_cv_anon_version_script=yes
24584 if test x$libjava_cv_anon_version_script = xyes; then
24585 save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
24586 CFLAGS="$CFLAGS -fPIC";
24587 LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
24588 echo '{ global: globalsymb*; local: *; };' > conftest.map
24589 if test x$gcc_no_link = xyes; then
24590 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24593 /* end confdefs.h. */
24594 void globalsymbol (void) {} void localsymbol (void) {}
24596 main ()
24600 return 0;
24602 _ACEOF
24603 if ac_fn_c_try_link "$LINENO"; then :
24604 libjava_cv_anon_version_script=gnu
24605 else
24606 libjava_cv_anon_version_script=no
24608 rm -f core conftest.err conftest.$ac_objext \
24609 conftest$ac_exeext conftest.$ac_ext
24610 if test x$libjava_cv_anon_version_script = xno; then
24611 case "$target_os" in
24612 solaris2*)
24613 LDFLAGS="$save_LDFLAGS"
24614 LDFLAGS="$LDFLAGS -shared -Wl,-M,conftest.map"
24615 # Sun ld doesn't understand wildcards here.
24616 echo '{ global: globalsymbol; local: *; };' > conftest.map
24617 if test x$gcc_no_link = xyes; then
24618 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24621 /* end confdefs.h. */
24622 void globalsymbol (void) {} void localsymbol (void) {}
24624 main ()
24628 return 0;
24630 _ACEOF
24631 if ac_fn_c_try_link "$LINENO"; then :
24632 libjava_cv_anon_version_script=sun
24634 rm -f core conftest.err conftest.$ac_objext \
24635 conftest$ac_exeext conftest.$ac_ext
24637 esac
24639 CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
24643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_anon_version_script" >&5
24644 $as_echo "$libjava_cv_anon_version_script" >&6; }
24645 if test "$libjava_cv_anon_version_script" != no; then
24646 ANONVERSCRIPT_TRUE=
24647 ANONVERSCRIPT_FALSE='#'
24648 else
24649 ANONVERSCRIPT_TRUE='#'
24650 ANONVERSCRIPT_FALSE=
24653 if test "$libjava_cv_anon_version_script" = gnu; then
24654 ANONVERSCRIPT_GNU_TRUE=
24655 ANONVERSCRIPT_GNU_FALSE='#'
24656 else
24657 ANONVERSCRIPT_GNU_TRUE='#'
24658 ANONVERSCRIPT_GNU_FALSE=
24661 if test "$libjava_cv_anon_version_script" = sun; then
24662 ANONVERSCRIPT_SUN_TRUE=
24663 ANONVERSCRIPT_SUN_FALSE='#'
24664 else
24665 ANONVERSCRIPT_SUN_TRUE='#'
24666 ANONVERSCRIPT_SUN_FALSE=
24670 # Check if linker supports static linking on a per library basis
24671 LD_START_STATIC_SPEC=
24672 LD_FINISH_STATIC_SPEC=
24673 if $LD --help 2>&1 | grep -- -call_shared >/dev/null 2>&1; then
24674 if $LD --help 2>&1 | grep -- -non_shared >/dev/null 2>&1; then
24675 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
24676 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
24682 here=`${PWDCMD-pwd}`
24685 # We get this from the environment.
24688 default_python_dir="/share/gcc-`cat ${srcdir}/../gcc/BASE-VER`/python/libjava"
24690 # Check whether --with-python-dir was given.
24691 if test "${with_python_dir+set}" = set; then :
24692 withval=$with_python_dir; with_python_dir=$withval
24693 else
24694 with_python_dir="${default_python_dir}"
24698 # Needed for installing Python modules during make install.
24699 python_mod_dir="\${prefix}${with_python_dir}"
24701 # Needed for substituting into aot-compile*
24702 python_mod_dir_expanded="${expanded_prefix}${with_python_dir}"
24704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Python modules dir: ${python_mod_dir_expanded}" >&5
24705 $as_echo "Python modules dir: ${python_mod_dir_expanded}" >&6; };
24709 # needed for aot-compile-rpm
24710 MAKE=`which make`
24713 # Check whether --enable-aot-compile-rpm was given.
24714 if test "${enable_aot_compile_rpm+set}" = set; then :
24715 enableval=$enable_aot_compile_rpm; case "${enableval}" in
24716 yes) AOT_RPM_ENABLED=yes ;;
24717 no) AOT_RPM_ENABLED=no ;;
24718 *) as_fn_error "Unknown argument to enable/disable aot-compile-rpm" "$LINENO" 5 ;;
24719 esac
24720 else
24721 AOT_RPM_ENABLED=no
24725 if test "x${AOT_RPM_ENABLED}" = xyes; then
24726 INSTALL_AOT_RPM_TRUE=
24727 INSTALL_AOT_RPM_FALSE='#'
24728 else
24729 INSTALL_AOT_RPM_TRUE='#'
24730 INSTALL_AOT_RPM_FALSE=
24734 # Check whether --enable-java-home was given.
24735 if test "${enable_java_home+set}" = set; then :
24736 enableval=$enable_java_home; case "${enableval}" in
24737 yes) JAVA_HOME_ENABLED=yes ;;
24738 no) JAVA_HOME_ENABLED=no ;;
24739 *) as_fn_error "Unknown argument to enable/disable java-home" "$LINENO" 5 ;;
24740 esac
24741 else
24742 JAVA_HOME_ENABLED=no
24746 if test "x${JAVA_HOME_ENABLED}" = xyes; then
24747 CREATE_JAVA_HOME_TRUE=
24748 CREATE_JAVA_HOME_FALSE='#'
24749 else
24750 CREATE_JAVA_HOME_TRUE='#'
24751 CREATE_JAVA_HOME_FALSE=
24755 # Only do these checks if java-home above is enabled.
24756 if test "x${JAVA_HOME_ENABLED}" = xyes
24757 then
24760 # Check whether --with-gcc-suffix was given.
24761 if test "${with_gcc_suffix+set}" = set; then :
24762 withval=$with_gcc_suffix; gcc_suffix=$withval
24763 else
24764 gcc_suffix=""
24767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCC suffix: ${gcc_suffix}" >&5
24768 $as_echo "GCC suffix: ${gcc_suffix}" >&6; }
24772 # Check whether --with-arch-directory was given.
24773 if test "${with_arch_directory+set}" = set; then :
24774 withval=$with_arch_directory; host_cpu=$withval
24775 else
24776 host_cpu=""
24781 # Check whether --with-os-directory was given.
24782 if test "${with_os_directory+set}" = set; then :
24783 withval=$with_os_directory; host_os=$withval
24784 else
24785 host_os=""
24790 # Check whether --with-origin-name was given.
24791 if test "${with_origin_name+set}" = set; then :
24792 withval=$with_origin_name; origin_name=$withval
24793 else
24794 origin_name=gcj${gcc_suffix}
24797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JPackage origin name: ${origin_name}" >&5
24798 $as_echo "JPackage origin name: ${origin_name}" >&6; }
24801 # Check whether --with-arch-suffix was given.
24802 if test "${with_arch_suffix+set}" = set; then :
24803 withval=$with_arch_suffix; arch_suffix=$withval
24804 else
24805 arch_suffix=""
24808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch suffix: ${arch_suffix}" >&5
24809 $as_echo "arch suffix: ${arch_suffix}" >&6; }
24812 # Check whether --with-jvm-root-dir was given.
24813 if test "${with_jvm_root_dir+set}" = set; then :
24814 withval=$with_jvm_root_dir; jvm_root_dir=$withval
24815 else
24816 jvm_root_dir="\${prefix}/lib/jvm"
24819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM root installation directory: ${jvm_root_dir}" >&5
24820 $as_echo "JVM root installation directory: ${jvm_root_dir}" >&6; }
24823 # Check whether --with-jvm-jar-dir was given.
24824 if test "${with_jvm_jar_dir+set}" = set; then :
24825 withval=$with_jvm_jar_dir; jvm_jar_dir=$withval
24826 else
24827 jvm_jar_dir=\${prefix}/lib/jvm-exports
24830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JAR root installation directory: ${jvm_jar_dir}" >&5
24831 $as_echo "JAR root installation directory: ${jvm_jar_dir}" >&6; }
24833 JAVA_VERSION=1.5.0
24834 BUILD_VERSION=0
24837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Java version: ${JAVA_VERSION}" >&5
24838 $as_echo "Java version: ${JAVA_VERSION}" >&6; }
24840 jre_dir=jre
24841 jre_lnk=jre-${JAVA_VERSION}-${origin_name}
24842 sdk_lnk=java-${JAVA_VERSION}-${origin_name}
24844 JVM_ROOT_DIR=${jvm_root_dir}
24846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5
24847 $as_echo "JVM ROOT directory: ${JVM_ROOT_DIR}" >&6; }
24849 JVM_JAR_ROOT_DIR=${jvm_jar_dir}
24851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5
24852 $as_echo "JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6; }
24854 JVM_JAR_DIR=${jvm_jar_dir}
24856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5
24857 $as_echo "JVM JAR directory: ${JVM_JAR_DIR}" >&6; }
24859 JRE_DIR=${jre_dir}
24862 JRE_LNK=${jre_lnk}
24865 SDK_LNK=${sdk_lnk}
24868 SDK_BIN_DIR=${jvm_root_dir}/bin
24870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK tools directory: ${SDK_BIN_DIR}" >&5
24871 $as_echo "SDK tools directory: ${SDK_BIN_DIR}" >&6; }
24873 SDK_LIB_DIR=${jvm_root_dir}/lib
24875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK jar directory: ${SDK_LIB_DIR}" >&5
24876 $as_echo "SDK jar directory: ${SDK_LIB_DIR}" >&6; }
24878 SDK_INCLUDE_DIR=${jvm_root_dir}/include
24880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5
24881 $as_echo "SDK include directory: ${SDK_INCLUDE_DIR}" >&6; }
24883 JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin
24885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE tools directory: ${JRE_BIN_DIR}" >&5
24886 $as_echo "JRE tools directory: ${JRE_BIN_DIR}" >&6; }
24888 JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib
24890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE lib directory: ${JRE_LIB_DIR}" >&5
24891 $as_echo "JRE lib directory: ${JRE_LIB_DIR}" >&6; }
24893 # Find gcj prefix using gcj found in PATH.
24894 gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"`
24896 # Where do the gcj binaries live?
24897 # For jhbuild based builds, they all live in a sibling of bin called
24898 # gcj-bin. Check for gcj-bin first, and use bin otherwise.
24899 GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi`
24901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5
24902 $as_echo "GCJ tools directory: ${GCJ_BIN_DIR}" >&6; }
24904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host is ${host}" >&5
24905 $as_echo "host is ${host}" >&6; }
24906 if test "x${host_cpu}" = "x"
24907 then
24908 case ${host} in
24909 *-mingw* | *-cygwin*)
24910 host_cpu=x86;;
24911 i486-* | i586-* | i686-*)
24912 host_cpu=i386;;
24913 x86_64-*)
24914 host_cpu=amd64;;
24916 host_cpu=${host_cpu};;
24917 esac
24919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch directory: ${host_cpu}" >&5
24920 $as_echo "arch directory: ${host_cpu}" >&6; }
24921 CPU=${host_cpu}
24924 if test "x${host_os}" = "x"
24925 then
24926 case ${host} in
24927 *-mingw* | *-cygwin*)
24928 host_os=win32;;
24929 *-linux*)
24930 host_os=linux;;
24932 host_os=${host_os};;
24933 esac
24935 echo os directory: ${host_os}
24936 OS=${host_os}
24939 # make an expanded $libdir, for substituting into
24940 # scripts (and other non-Makefile things).
24941 LIBDIR=$libdir
24942 if test "x${exec_prefix}" = "xNONE"
24943 then
24944 lib_exec_prefix=$expanded_prefix
24945 else
24946 lib_exec_prefix=$exec_prefix
24948 LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"`
24952 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"
24955 if test ${multilib} = yes; then
24956 multilib_arg="--enable-multilib"
24957 else
24958 multilib_arg=
24961 ac_config_files="$ac_config_files scripts/jar"
24963 cat >confcache <<\_ACEOF
24964 # This file is a shell script that caches the results of configure
24965 # tests run on this system so they can be shared between configure
24966 # scripts and configure runs, see configure's option --config-cache.
24967 # It is not useful on other systems. If it contains results you don't
24968 # want to keep, you may remove or edit it.
24970 # config.status only pays attention to the cache file if you give it
24971 # the --recheck option to rerun configure.
24973 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24974 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24975 # following values.
24977 _ACEOF
24979 # The following way of writing the cache mishandles newlines in values,
24980 # but we know of no workaround that is simple, portable, and efficient.
24981 # So, we kill variables containing newlines.
24982 # Ultrix sh set writes to stderr and can't be redirected directly,
24983 # and sets the high bit in the cache file unless we assign to the vars.
24985 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24986 eval ac_val=\$$ac_var
24987 case $ac_val in #(
24988 *${as_nl}*)
24989 case $ac_var in #(
24990 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24991 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24992 esac
24993 case $ac_var in #(
24994 _ | IFS | as_nl) ;; #(
24995 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24996 *) { eval $ac_var=; unset $ac_var;} ;;
24997 esac ;;
24998 esac
24999 done
25001 (set) 2>&1 |
25002 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25003 *${as_nl}ac_space=\ *)
25004 # `set' does not quote correctly, so add quotes: double-quote
25005 # substitution turns \\\\ into \\, and sed turns \\ into \.
25006 sed -n \
25007 "s/'/'\\\\''/g;
25008 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25009 ;; #(
25011 # `set' quotes correctly as required by POSIX, so do not add quotes.
25012 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25014 esac |
25015 sort
25017 sed '
25018 /^ac_cv_env_/b end
25019 t clear
25020 :clear
25021 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25022 t end
25023 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25024 :end' >>confcache
25025 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25026 if test -w "$cache_file"; then
25027 test "x$cache_file" != "x/dev/null" &&
25028 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25029 $as_echo "$as_me: updating cache $cache_file" >&6;}
25030 cat confcache >$cache_file
25031 else
25032 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25033 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25036 rm -f confcache
25038 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25039 # Let make expand exec_prefix.
25040 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25042 DEFS=-DHAVE_CONFIG_H
25044 ac_libobjs=
25045 ac_ltlibobjs=
25046 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25047 # 1. Remove the extension, and $U if already installed.
25048 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25049 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25050 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25051 # will be set to the directory where LIBOBJS objects are built.
25052 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25053 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25054 done
25055 LIBOBJS=$ac_libobjs
25057 LTLIBOBJS=$ac_ltlibobjs
25060 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
25061 as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
25062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25064 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
25065 as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
25066 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25068 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25069 as_fn_error "conditional \"AMDEP\" was never defined.
25070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25072 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25073 as_fn_error "conditional \"am__fastdepCC\" was never defined.
25074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25076 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25077 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
25078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25080 if test -n "$EXEEXT"; then
25081 am__EXEEXT_TRUE=
25082 am__EXEEXT_FALSE='#'
25083 else
25084 am__EXEEXT_TRUE='#'
25085 am__EXEEXT_FALSE=
25088 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25089 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
25090 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25092 if test -z "${BUILD_SUBLIBS_TRUE}" && test -z "${BUILD_SUBLIBS_FALSE}"; then
25093 as_fn_error "conditional \"BUILD_SUBLIBS\" was never defined.
25094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25096 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
25097 as_fn_error "conditional \"XLIB_AWT\" was never defined.
25098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25100 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
25101 as_fn_error "conditional \"X_AWT\" was never defined.
25102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25104 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25105 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25108 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25109 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25112 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
25113 as_fn_error "conditional \"TESTSUBDIR\" was never defined.
25114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25116 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
25117 as_fn_error "conditional \"BUILD_ECJ1\" was never defined.
25118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25120 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
25121 as_fn_error "conditional \"INSTALL_ECJ_JAR\" was never defined.
25122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25124 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
25125 as_fn_error "conditional \"JAVA_HOME_SET\" was never defined.
25126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25128 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
25129 as_fn_error "conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
25130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25132 if test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE}" && test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE}"; then
25133 as_fn_error "conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
25134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25136 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
25137 as_fn_error "conditional \"INTERPRETER\" was never defined.
25138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25140 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
25141 as_fn_error "conditional \"USING_WIN32_PLATFORM\" was never defined.
25142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25144 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
25145 as_fn_error "conditional \"USING_POSIX_PLATFORM\" was never defined.
25146 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25148 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
25149 as_fn_error "conditional \"USING_DARWIN_CRT\" was never defined.
25150 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25152 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
25153 as_fn_error "conditional \"USING_BOEHMGC\" was never defined.
25154 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25156 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
25157 as_fn_error "conditional \"USING_NOGC\" was never defined.
25158 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25160 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
25161 as_fn_error "conditional \"USING_POSIX_THREADS\" was never defined.
25162 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25164 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
25165 as_fn_error "conditional \"USING_WIN32_THREADS\" was never defined.
25166 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25168 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
25169 as_fn_error "conditional \"USING_NO_THREADS\" was never defined.
25170 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25172 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
25173 as_fn_error "conditional \"USE_LIBGCJ_BC\" was never defined.
25174 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25176 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
25177 as_fn_error "conditional \"USING_GCC\" was never defined.
25178 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25180 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25181 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25182 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25185 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
25186 as_fn_error "conditional \"NATIVE\" was never defined.
25187 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25189 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
25190 as_fn_error "conditional \"ENABLE_SHARED\" was never defined.
25191 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25193 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
25194 as_fn_error "conditional \"NEEDS_DATA_START\" was never defined.
25195 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25197 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
25198 as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
25199 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25201 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
25202 as_fn_error "conditional \"ANONVERSCRIPT\" was never defined.
25203 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25205 if test -z "${ANONVERSCRIPT_GNU_TRUE}" && test -z "${ANONVERSCRIPT_GNU_FALSE}"; then
25206 as_fn_error "conditional \"ANONVERSCRIPT_GNU\" was never defined.
25207 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25209 if test -z "${ANONVERSCRIPT_SUN_TRUE}" && test -z "${ANONVERSCRIPT_SUN_FALSE}"; then
25210 as_fn_error "conditional \"ANONVERSCRIPT_SUN\" was never defined.
25211 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25213 if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then
25214 as_fn_error "conditional \"INSTALL_AOT_RPM\" was never defined.
25215 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25217 if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then
25218 as_fn_error "conditional \"CREATE_JAVA_HOME\" was never defined.
25219 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25222 : ${CONFIG_STATUS=./config.status}
25223 ac_write_fail=0
25224 ac_clean_files_save=$ac_clean_files
25225 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25226 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25227 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25228 as_write_fail=0
25229 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25230 #! $SHELL
25231 # Generated by $as_me.
25232 # Run this file to recreate the current configuration.
25233 # Compiler output produced by configure, useful for debugging
25234 # configure, is in config.log if it exists.
25236 debug=false
25237 ac_cs_recheck=false
25238 ac_cs_silent=false
25240 SHELL=\${CONFIG_SHELL-$SHELL}
25241 export SHELL
25242 _ASEOF
25243 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25244 ## -------------------- ##
25245 ## M4sh Initialization. ##
25246 ## -------------------- ##
25248 # Be more Bourne compatible
25249 DUALCASE=1; export DUALCASE # for MKS sh
25250 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25251 emulate sh
25252 NULLCMD=:
25253 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25254 # is contrary to our usage. Disable this feature.
25255 alias -g '${1+"$@"}'='"$@"'
25256 setopt NO_GLOB_SUBST
25257 else
25258 case `(set -o) 2>/dev/null` in #(
25259 *posix*) :
25260 set -o posix ;; #(
25261 *) :
25263 esac
25267 as_nl='
25269 export as_nl
25270 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25271 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25272 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25273 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25274 # Prefer a ksh shell builtin over an external printf program on Solaris,
25275 # but without wasting forks for bash or zsh.
25276 if test -z "$BASH_VERSION$ZSH_VERSION" \
25277 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25278 as_echo='print -r --'
25279 as_echo_n='print -rn --'
25280 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25281 as_echo='printf %s\n'
25282 as_echo_n='printf %s'
25283 else
25284 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25285 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25286 as_echo_n='/usr/ucb/echo -n'
25287 else
25288 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25289 as_echo_n_body='eval
25290 arg=$1;
25291 case $arg in #(
25292 *"$as_nl"*)
25293 expr "X$arg" : "X\\(.*\\)$as_nl";
25294 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25295 esac;
25296 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25298 export as_echo_n_body
25299 as_echo_n='sh -c $as_echo_n_body as_echo'
25301 export as_echo_body
25302 as_echo='sh -c $as_echo_body as_echo'
25305 # The user is always right.
25306 if test "${PATH_SEPARATOR+set}" != set; then
25307 PATH_SEPARATOR=:
25308 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25309 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25310 PATH_SEPARATOR=';'
25315 # IFS
25316 # We need space, tab and new line, in precisely that order. Quoting is
25317 # there to prevent editors from complaining about space-tab.
25318 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25319 # splitting by setting IFS to empty value.)
25320 IFS=" "" $as_nl"
25322 # Find who we are. Look in the path if we contain no directory separator.
25323 case $0 in #((
25324 *[\\/]* ) as_myself=$0 ;;
25325 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25326 for as_dir in $PATH
25328 IFS=$as_save_IFS
25329 test -z "$as_dir" && as_dir=.
25330 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25331 done
25332 IFS=$as_save_IFS
25335 esac
25336 # We did not find ourselves, most probably we were run as `sh COMMAND'
25337 # in which case we are not to be found in the path.
25338 if test "x$as_myself" = x; then
25339 as_myself=$0
25341 if test ! -f "$as_myself"; then
25342 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25343 exit 1
25346 # Unset variables that we do not need and which cause bugs (e.g. in
25347 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25348 # suppresses any "Segmentation fault" message there. '((' could
25349 # trigger a bug in pdksh 5.2.14.
25350 for as_var in BASH_ENV ENV MAIL MAILPATH
25351 do eval test x\${$as_var+set} = xset \
25352 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25353 done
25354 PS1='$ '
25355 PS2='> '
25356 PS4='+ '
25358 # NLS nuisances.
25359 LC_ALL=C
25360 export LC_ALL
25361 LANGUAGE=C
25362 export LANGUAGE
25364 # CDPATH.
25365 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25368 # as_fn_error ERROR [LINENO LOG_FD]
25369 # ---------------------------------
25370 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25371 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25372 # script with status $?, using 1 if that was 0.
25373 as_fn_error ()
25375 as_status=$?; test $as_status -eq 0 && as_status=1
25376 if test "$3"; then
25377 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25378 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25380 $as_echo "$as_me: error: $1" >&2
25381 as_fn_exit $as_status
25382 } # as_fn_error
25385 # as_fn_set_status STATUS
25386 # -----------------------
25387 # Set $? to STATUS, without forking.
25388 as_fn_set_status ()
25390 return $1
25391 } # as_fn_set_status
25393 # as_fn_exit STATUS
25394 # -----------------
25395 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25396 as_fn_exit ()
25398 set +e
25399 as_fn_set_status $1
25400 exit $1
25401 } # as_fn_exit
25403 # as_fn_unset VAR
25404 # ---------------
25405 # Portably unset VAR.
25406 as_fn_unset ()
25408 { eval $1=; unset $1;}
25410 as_unset=as_fn_unset
25411 # as_fn_append VAR VALUE
25412 # ----------------------
25413 # Append the text in VALUE to the end of the definition contained in VAR. Take
25414 # advantage of any shell optimizations that allow amortized linear growth over
25415 # repeated appends, instead of the typical quadratic growth present in naive
25416 # implementations.
25417 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25418 eval 'as_fn_append ()
25420 eval $1+=\$2
25422 else
25423 as_fn_append ()
25425 eval $1=\$$1\$2
25427 fi # as_fn_append
25429 # as_fn_arith ARG...
25430 # ------------------
25431 # Perform arithmetic evaluation on the ARGs, and store the result in the
25432 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25433 # must be portable across $(()) and expr.
25434 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25435 eval 'as_fn_arith ()
25437 as_val=$(( $* ))
25439 else
25440 as_fn_arith ()
25442 as_val=`expr "$@" || test $? -eq 1`
25444 fi # as_fn_arith
25447 if expr a : '\(a\)' >/dev/null 2>&1 &&
25448 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25449 as_expr=expr
25450 else
25451 as_expr=false
25454 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25455 as_basename=basename
25456 else
25457 as_basename=false
25460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25461 as_dirname=dirname
25462 else
25463 as_dirname=false
25466 as_me=`$as_basename -- "$0" ||
25467 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25468 X"$0" : 'X\(//\)$' \| \
25469 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25470 $as_echo X/"$0" |
25471 sed '/^.*\/\([^/][^/]*\)\/*$/{
25472 s//\1/
25475 /^X\/\(\/\/\)$/{
25476 s//\1/
25479 /^X\/\(\/\).*/{
25480 s//\1/
25483 s/.*/./; q'`
25485 # Avoid depending upon Character Ranges.
25486 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25487 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25488 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25489 as_cr_digits='0123456789'
25490 as_cr_alnum=$as_cr_Letters$as_cr_digits
25492 ECHO_C= ECHO_N= ECHO_T=
25493 case `echo -n x` in #(((((
25494 -n*)
25495 case `echo 'xy\c'` in
25496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25497 xy) ECHO_C='\c';;
25498 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25499 ECHO_T=' ';;
25500 esac;;
25502 ECHO_N='-n';;
25503 esac
25505 rm -f conf$$ conf$$.exe conf$$.file
25506 if test -d conf$$.dir; then
25507 rm -f conf$$.dir/conf$$.file
25508 else
25509 rm -f conf$$.dir
25510 mkdir conf$$.dir 2>/dev/null
25512 if (echo >conf$$.file) 2>/dev/null; then
25513 if ln -s conf$$.file conf$$ 2>/dev/null; then
25514 as_ln_s='ln -s'
25515 # ... but there are two gotchas:
25516 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25517 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25518 # In both cases, we have to default to `cp -p'.
25519 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25520 as_ln_s='cp -p'
25521 elif ln conf$$.file conf$$ 2>/dev/null; then
25522 as_ln_s=ln
25523 else
25524 as_ln_s='cp -p'
25526 else
25527 as_ln_s='cp -p'
25529 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25530 rmdir conf$$.dir 2>/dev/null
25533 # as_fn_mkdir_p
25534 # -------------
25535 # Create "$as_dir" as a directory, including parents if necessary.
25536 as_fn_mkdir_p ()
25539 case $as_dir in #(
25540 -*) as_dir=./$as_dir;;
25541 esac
25542 test -d "$as_dir" || eval $as_mkdir_p || {
25543 as_dirs=
25544 while :; do
25545 case $as_dir in #(
25546 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25547 *) as_qdir=$as_dir;;
25548 esac
25549 as_dirs="'$as_qdir' $as_dirs"
25550 as_dir=`$as_dirname -- "$as_dir" ||
25551 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25552 X"$as_dir" : 'X\(//\)[^/]' \| \
25553 X"$as_dir" : 'X\(//\)$' \| \
25554 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25555 $as_echo X"$as_dir" |
25556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25557 s//\1/
25560 /^X\(\/\/\)[^/].*/{
25561 s//\1/
25564 /^X\(\/\/\)$/{
25565 s//\1/
25568 /^X\(\/\).*/{
25569 s//\1/
25572 s/.*/./; q'`
25573 test -d "$as_dir" && break
25574 done
25575 test -z "$as_dirs" || eval "mkdir $as_dirs"
25576 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25579 } # as_fn_mkdir_p
25580 if mkdir -p . 2>/dev/null; then
25581 as_mkdir_p='mkdir -p "$as_dir"'
25582 else
25583 test -d ./-p && rmdir ./-p
25584 as_mkdir_p=false
25587 if test -x / >/dev/null 2>&1; then
25588 as_test_x='test -x'
25589 else
25590 if ls -dL / >/dev/null 2>&1; then
25591 as_ls_L_option=L
25592 else
25593 as_ls_L_option=
25595 as_test_x='
25596 eval sh -c '\''
25597 if test -d "$1"; then
25598 test -d "$1/.";
25599 else
25600 case $1 in #(
25601 -*)set "./$1";;
25602 esac;
25603 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25604 ???[sx]*):;;*)false;;esac;fi
25605 '\'' sh
25608 as_executable_p=$as_test_x
25610 # Sed expression to map a string onto a valid CPP name.
25611 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25613 # Sed expression to map a string onto a valid variable name.
25614 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25617 exec 6>&1
25618 ## ----------------------------------- ##
25619 ## Main body of $CONFIG_STATUS script. ##
25620 ## ----------------------------------- ##
25621 _ASEOF
25622 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25625 # Save the log message, to keep $0 and so on meaningful, and to
25626 # report actual input values of CONFIG_FILES etc. instead of their
25627 # values after options handling.
25628 ac_log="
25629 This file was extended by libjava $as_me version-unused, which was
25630 generated by GNU Autoconf 2.64. Invocation command line was
25632 CONFIG_FILES = $CONFIG_FILES
25633 CONFIG_HEADERS = $CONFIG_HEADERS
25634 CONFIG_LINKS = $CONFIG_LINKS
25635 CONFIG_COMMANDS = $CONFIG_COMMANDS
25636 $ $0 $@
25638 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25641 _ACEOF
25643 case $ac_config_files in *"
25644 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25645 esac
25647 case $ac_config_headers in *"
25648 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25649 esac
25652 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25653 # Files that config.status was made for.
25654 config_files="$ac_config_files"
25655 config_headers="$ac_config_headers"
25656 config_links="$ac_config_links"
25657 config_commands="$ac_config_commands"
25659 _ACEOF
25661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25662 ac_cs_usage="\
25663 \`$as_me' instantiates files and other configuration actions
25664 from templates according to the current configuration. Unless the files
25665 and actions are specified as TAGs, all are instantiated by default.
25667 Usage: $0 [OPTION]... [TAG]...
25669 -h, --help print this help, then exit
25670 -V, --version print version number and configuration settings, then exit
25671 -q, --quiet, --silent
25672 do not print progress messages
25673 -d, --debug don't remove temporary files
25674 --recheck update $as_me by reconfiguring in the same conditions
25675 --file=FILE[:TEMPLATE]
25676 instantiate the configuration file FILE
25677 --header=FILE[:TEMPLATE]
25678 instantiate the configuration header FILE
25680 Configuration files:
25681 $config_files
25683 Configuration headers:
25684 $config_headers
25686 Configuration links:
25687 $config_links
25689 Configuration commands:
25690 $config_commands
25692 Report bugs to the package provider."
25694 _ACEOF
25695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25696 ac_cs_version="\\
25697 libjava config.status version-unused
25698 configured by $0, generated by GNU Autoconf 2.64,
25699 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25701 Copyright (C) 2009 Free Software Foundation, Inc.
25702 This config.status script is free software; the Free Software Foundation
25703 gives unlimited permission to copy, distribute and modify it."
25705 ac_pwd='$ac_pwd'
25706 srcdir='$srcdir'
25707 INSTALL='$INSTALL'
25708 MKDIR_P='$MKDIR_P'
25709 AWK='$AWK'
25710 test -n "\$AWK" || AWK=awk
25711 _ACEOF
25713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25714 # The default lists apply if the user does not specify any file.
25715 ac_need_defaults=:
25716 while test $# != 0
25718 case $1 in
25719 --*=*)
25720 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25721 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25722 ac_shift=:
25725 ac_option=$1
25726 ac_optarg=$2
25727 ac_shift=shift
25729 esac
25731 case $ac_option in
25732 # Handling of the options.
25733 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25734 ac_cs_recheck=: ;;
25735 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25736 $as_echo "$ac_cs_version"; exit ;;
25737 --debug | --debu | --deb | --de | --d | -d )
25738 debug=: ;;
25739 --file | --fil | --fi | --f )
25740 $ac_shift
25741 case $ac_optarg in
25742 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25743 esac
25744 as_fn_append CONFIG_FILES " '$ac_optarg'"
25745 ac_need_defaults=false;;
25746 --header | --heade | --head | --hea )
25747 $ac_shift
25748 case $ac_optarg in
25749 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25750 esac
25751 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25752 ac_need_defaults=false;;
25753 --he | --h)
25754 # Conflict between --help and --header
25755 as_fn_error "ambiguous option: \`$1'
25756 Try \`$0 --help' for more information.";;
25757 --help | --hel | -h )
25758 $as_echo "$ac_cs_usage"; exit ;;
25759 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25760 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25761 ac_cs_silent=: ;;
25763 # This is an error.
25764 -*) as_fn_error "unrecognized option: \`$1'
25765 Try \`$0 --help' for more information." ;;
25767 *) as_fn_append ac_config_targets " $1"
25768 ac_need_defaults=false ;;
25770 esac
25771 shift
25772 done
25774 ac_configure_extra_args=
25776 if $ac_cs_silent; then
25777 exec 6>/dev/null
25778 ac_configure_extra_args="$ac_configure_extra_args --silent"
25781 _ACEOF
25782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25783 if \$ac_cs_recheck; then
25784 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25785 shift
25786 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25787 CONFIG_SHELL='$SHELL'
25788 export CONFIG_SHELL
25789 exec "\$@"
25792 _ACEOF
25793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25794 exec 5>>config.log
25796 echo
25797 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25798 ## Running $as_me. ##
25799 _ASBOX
25800 $as_echo "$ac_log"
25801 } >&5
25803 _ACEOF
25804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25806 # INIT-COMMANDS
25809 srcdir="$srcdir"
25810 host="$host"
25811 target="$target"
25812 with_multisubdir="$with_multisubdir"
25813 with_multisrctop="$with_multisrctop"
25814 with_target_subdir="$with_target_subdir"
25815 ac_configure_args="${multilib_arg} ${ac_configure_args}"
25816 multi_basedir="$multi_basedir"
25817 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
25818 CC="$CC"
25819 CXX="$CXX"
25820 GFORTRAN="$GFORTRAN"
25821 GCJ="$GCJ"
25822 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25825 # The HP-UX ksh and POSIX shell print the target directory to stdout
25826 # if CDPATH is set.
25827 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25829 sed_quote_subst='$sed_quote_subst'
25830 double_quote_subst='$double_quote_subst'
25831 delay_variable_subst='$delay_variable_subst'
25832 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25833 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25834 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25835 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25836 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25837 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25838 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25839 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25840 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25841 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25842 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25843 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25844 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25845 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25846 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25847 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25848 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25849 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25850 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25851 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25852 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25853 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25854 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25855 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25856 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25857 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25858 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25859 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25860 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25861 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25862 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25863 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25864 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25865 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25866 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25867 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25868 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25869 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25870 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25871 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25872 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25873 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25874 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25875 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25876 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25877 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25878 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25879 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25880 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"`'
25881 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25882 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25883 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25884 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25885 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25886 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25887 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25888 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25889 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25890 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25891 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25892 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25893 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25894 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25895 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25896 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25897 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25898 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25899 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25900 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25901 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25902 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25903 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25904 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25905 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25906 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25907 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25908 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25909 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25910 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25911 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25912 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
25913 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25914 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25915 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25916 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25917 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25918 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25919 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25920 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25921 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
25922 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25923 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25924 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25925 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25926 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25927 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25928 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25929 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25930 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25931 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25932 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25933 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25934 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25935 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25936 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25937 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25938 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25939 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25940 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25941 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25942 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25943 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25944 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25945 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25946 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25947 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25948 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25949 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25950 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25951 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25952 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25953 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25954 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25955 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25956 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25957 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25958 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25959 LD_GCJ='`$ECHO "$LD_GCJ" | $SED "$delay_single_quote_subst"`'
25960 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25961 reload_flag_GCJ='`$ECHO "$reload_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25962 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25963 reload_cmds_GCJ='`$ECHO "$reload_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25964 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25965 old_archive_cmds_GCJ='`$ECHO "$old_archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25966 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25967 compiler_GCJ='`$ECHO "$compiler_GCJ" | $SED "$delay_single_quote_subst"`'
25968 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25969 GCC_GCJ='`$ECHO "$GCC_GCJ" | $SED "$delay_single_quote_subst"`'
25970 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25971 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "$lt_prog_compiler_no_builtin_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25972 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25973 lt_prog_compiler_wl_GCJ='`$ECHO "$lt_prog_compiler_wl_GCJ" | $SED "$delay_single_quote_subst"`'
25974 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25975 lt_prog_compiler_pic_GCJ='`$ECHO "$lt_prog_compiler_pic_GCJ" | $SED "$delay_single_quote_subst"`'
25976 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25977 lt_prog_compiler_static_GCJ='`$ECHO "$lt_prog_compiler_static_GCJ" | $SED "$delay_single_quote_subst"`'
25978 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25979 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "$lt_cv_prog_compiler_c_o_GCJ" | $SED "$delay_single_quote_subst"`'
25980 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25981 archive_cmds_need_lc_GCJ='`$ECHO "$archive_cmds_need_lc_GCJ" | $SED "$delay_single_quote_subst"`'
25982 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25983 enable_shared_with_static_runtimes_GCJ='`$ECHO "$enable_shared_with_static_runtimes_GCJ" | $SED "$delay_single_quote_subst"`'
25984 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25985 export_dynamic_flag_spec_GCJ='`$ECHO "$export_dynamic_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25986 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25987 whole_archive_flag_spec_GCJ='`$ECHO "$whole_archive_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25988 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25989 compiler_needs_object_GCJ='`$ECHO "$compiler_needs_object_GCJ" | $SED "$delay_single_quote_subst"`'
25990 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25991 old_archive_from_new_cmds_GCJ='`$ECHO "$old_archive_from_new_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25992 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25993 old_archive_from_expsyms_cmds_GCJ='`$ECHO "$old_archive_from_expsyms_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25994 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25995 archive_cmds_GCJ='`$ECHO "$archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25996 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25997 archive_expsym_cmds_GCJ='`$ECHO "$archive_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25998 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25999 module_cmds_GCJ='`$ECHO "$module_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26000 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26001 module_expsym_cmds_GCJ='`$ECHO "$module_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26002 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
26003 with_gnu_ld_GCJ='`$ECHO "$with_gnu_ld_GCJ" | $SED "$delay_single_quote_subst"`'
26004 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26005 allow_undefined_flag_GCJ='`$ECHO "$allow_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
26006 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26007 no_undefined_flag_GCJ='`$ECHO "$no_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
26008 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26009 hardcode_libdir_flag_spec_GCJ='`$ECHO "$hardcode_libdir_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
26010 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
26011 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "$hardcode_libdir_flag_spec_ld_GCJ" | $SED "$delay_single_quote_subst"`'
26012 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
26013 hardcode_libdir_separator_GCJ='`$ECHO "$hardcode_libdir_separator_GCJ" | $SED "$delay_single_quote_subst"`'
26014 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
26015 hardcode_direct_GCJ='`$ECHO "$hardcode_direct_GCJ" | $SED "$delay_single_quote_subst"`'
26016 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
26017 hardcode_direct_absolute_GCJ='`$ECHO "$hardcode_direct_absolute_GCJ" | $SED "$delay_single_quote_subst"`'
26018 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
26019 hardcode_minus_L_GCJ='`$ECHO "$hardcode_minus_L_GCJ" | $SED "$delay_single_quote_subst"`'
26020 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
26021 hardcode_shlibpath_var_GCJ='`$ECHO "$hardcode_shlibpath_var_GCJ" | $SED "$delay_single_quote_subst"`'
26022 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
26023 hardcode_automatic_GCJ='`$ECHO "$hardcode_automatic_GCJ" | $SED "$delay_single_quote_subst"`'
26024 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
26025 inherit_rpath_GCJ='`$ECHO "$inherit_rpath_GCJ" | $SED "$delay_single_quote_subst"`'
26026 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
26027 link_all_deplibs_GCJ='`$ECHO "$link_all_deplibs_GCJ" | $SED "$delay_single_quote_subst"`'
26028 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
26029 fix_srcfile_path_GCJ='`$ECHO "$fix_srcfile_path_GCJ" | $SED "$delay_single_quote_subst"`'
26030 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
26031 always_export_symbols_GCJ='`$ECHO "$always_export_symbols_GCJ" | $SED "$delay_single_quote_subst"`'
26032 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26033 export_symbols_cmds_GCJ='`$ECHO "$export_symbols_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26034 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26035 exclude_expsyms_GCJ='`$ECHO "$exclude_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
26036 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26037 include_expsyms_GCJ='`$ECHO "$include_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
26038 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26039 prelink_cmds_GCJ='`$ECHO "$prelink_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26040 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
26041 file_list_spec_GCJ='`$ECHO "$file_list_spec_GCJ" | $SED "$delay_single_quote_subst"`'
26042 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
26043 hardcode_action_GCJ='`$ECHO "$hardcode_action_GCJ" | $SED "$delay_single_quote_subst"`'
26044 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
26045 compiler_lib_search_dirs_GCJ='`$ECHO "$compiler_lib_search_dirs_GCJ" | $SED "$delay_single_quote_subst"`'
26046 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26047 predep_objects_GCJ='`$ECHO "$predep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
26048 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26049 postdep_objects_GCJ='`$ECHO "$postdep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
26050 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
26051 predeps_GCJ='`$ECHO "$predeps_GCJ" | $SED "$delay_single_quote_subst"`'
26052 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
26053 postdeps_GCJ='`$ECHO "$postdeps_GCJ" | $SED "$delay_single_quote_subst"`'
26054 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
26055 compiler_lib_search_path_GCJ='`$ECHO "$compiler_lib_search_path_GCJ" | $SED "$delay_single_quote_subst"`'
26057 LTCC='$LTCC'
26058 LTCFLAGS='$LTCFLAGS'
26059 compiler='$compiler_DEFAULT'
26061 # A function that is used when there is no print builtin or printf.
26062 func_fallback_echo ()
26064 eval 'cat <<_LTECHO_EOF
26066 _LTECHO_EOF'
26069 # Quote evaled strings.
26070 for var in SHELL \
26071 ECHO \
26072 SED \
26073 GREP \
26074 EGREP \
26075 FGREP \
26076 LD \
26077 NM \
26078 LN_S \
26079 lt_SP2NL \
26080 lt_NL2SP \
26081 reload_flag \
26082 OBJDUMP \
26083 deplibs_check_method \
26084 file_magic_cmd \
26085 AR \
26086 AR_FLAGS \
26087 STRIP \
26088 RANLIB \
26089 CC \
26090 CFLAGS \
26091 compiler \
26092 lt_cv_sys_global_symbol_pipe \
26093 lt_cv_sys_global_symbol_to_cdecl \
26094 lt_cv_sys_global_symbol_to_c_name_address \
26095 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26096 lt_prog_compiler_no_builtin_flag \
26097 lt_prog_compiler_wl \
26098 lt_prog_compiler_pic \
26099 lt_prog_compiler_static \
26100 lt_cv_prog_compiler_c_o \
26101 need_locks \
26102 DSYMUTIL \
26103 NMEDIT \
26104 LIPO \
26105 OTOOL \
26106 OTOOL64 \
26107 shrext_cmds \
26108 export_dynamic_flag_spec \
26109 whole_archive_flag_spec \
26110 compiler_needs_object \
26111 with_gnu_ld \
26112 allow_undefined_flag \
26113 no_undefined_flag \
26114 hardcode_libdir_flag_spec \
26115 hardcode_libdir_flag_spec_ld \
26116 hardcode_libdir_separator \
26117 fix_srcfile_path \
26118 exclude_expsyms \
26119 include_expsyms \
26120 file_list_spec \
26121 variables_saved_for_relink \
26122 libname_spec \
26123 library_names_spec \
26124 soname_spec \
26125 install_override_mode \
26126 finish_eval \
26127 old_striplib \
26128 striplib \
26129 compiler_lib_search_dirs \
26130 predep_objects \
26131 postdep_objects \
26132 predeps \
26133 postdeps \
26134 compiler_lib_search_path \
26135 LD_CXX \
26136 LD_GCJ \
26137 reload_flag_CXX \
26138 reload_flag_GCJ \
26139 compiler_CXX \
26140 compiler_GCJ \
26141 lt_prog_compiler_no_builtin_flag_CXX \
26142 lt_prog_compiler_no_builtin_flag_GCJ \
26143 lt_prog_compiler_wl_CXX \
26144 lt_prog_compiler_wl_GCJ \
26145 lt_prog_compiler_pic_CXX \
26146 lt_prog_compiler_pic_GCJ \
26147 lt_prog_compiler_static_CXX \
26148 lt_prog_compiler_static_GCJ \
26149 lt_cv_prog_compiler_c_o_CXX \
26150 lt_cv_prog_compiler_c_o_GCJ \
26151 export_dynamic_flag_spec_CXX \
26152 export_dynamic_flag_spec_GCJ \
26153 whole_archive_flag_spec_CXX \
26154 whole_archive_flag_spec_GCJ \
26155 compiler_needs_object_CXX \
26156 compiler_needs_object_GCJ \
26157 with_gnu_ld_CXX \
26158 with_gnu_ld_GCJ \
26159 allow_undefined_flag_CXX \
26160 allow_undefined_flag_GCJ \
26161 no_undefined_flag_CXX \
26162 no_undefined_flag_GCJ \
26163 hardcode_libdir_flag_spec_CXX \
26164 hardcode_libdir_flag_spec_GCJ \
26165 hardcode_libdir_flag_spec_ld_CXX \
26166 hardcode_libdir_flag_spec_ld_GCJ \
26167 hardcode_libdir_separator_CXX \
26168 hardcode_libdir_separator_GCJ \
26169 fix_srcfile_path_CXX \
26170 fix_srcfile_path_GCJ \
26171 exclude_expsyms_CXX \
26172 exclude_expsyms_GCJ \
26173 include_expsyms_CXX \
26174 include_expsyms_GCJ \
26175 file_list_spec_CXX \
26176 file_list_spec_GCJ \
26177 compiler_lib_search_dirs_CXX \
26178 compiler_lib_search_dirs_GCJ \
26179 predep_objects_CXX \
26180 predep_objects_GCJ \
26181 postdep_objects_CXX \
26182 postdep_objects_GCJ \
26183 predeps_CXX \
26184 predeps_GCJ \
26185 postdeps_CXX \
26186 postdeps_GCJ \
26187 compiler_lib_search_path_CXX \
26188 compiler_lib_search_path_GCJ; do
26189 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26190 *[\\\\\\\`\\"\\\$]*)
26191 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26194 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26196 esac
26197 done
26199 # Double-quote double-evaled strings.
26200 for var in reload_cmds \
26201 old_postinstall_cmds \
26202 old_postuninstall_cmds \
26203 old_archive_cmds \
26204 extract_expsyms_cmds \
26205 old_archive_from_new_cmds \
26206 old_archive_from_expsyms_cmds \
26207 archive_cmds \
26208 archive_expsym_cmds \
26209 module_cmds \
26210 module_expsym_cmds \
26211 export_symbols_cmds \
26212 prelink_cmds \
26213 postinstall_cmds \
26214 postuninstall_cmds \
26215 finish_cmds \
26216 sys_lib_search_path_spec \
26217 sys_lib_dlsearch_path_spec \
26218 reload_cmds_CXX \
26219 reload_cmds_GCJ \
26220 old_archive_cmds_CXX \
26221 old_archive_cmds_GCJ \
26222 old_archive_from_new_cmds_CXX \
26223 old_archive_from_new_cmds_GCJ \
26224 old_archive_from_expsyms_cmds_CXX \
26225 old_archive_from_expsyms_cmds_GCJ \
26226 archive_cmds_CXX \
26227 archive_cmds_GCJ \
26228 archive_expsym_cmds_CXX \
26229 archive_expsym_cmds_GCJ \
26230 module_cmds_CXX \
26231 module_cmds_GCJ \
26232 module_expsym_cmds_CXX \
26233 module_expsym_cmds_GCJ \
26234 export_symbols_cmds_CXX \
26235 export_symbols_cmds_GCJ \
26236 prelink_cmds_CXX \
26237 prelink_cmds_GCJ; do
26238 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26239 *[\\\\\\\`\\"\\\$]*)
26240 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26243 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26245 esac
26246 done
26248 ac_aux_dir='$ac_aux_dir'
26249 xsi_shell='$xsi_shell'
26250 lt_shell_append='$lt_shell_append'
26252 # See if we are running on zsh, and set the options which allow our
26253 # commands through without removal of \ escapes INIT.
26254 if test -n "\${ZSH_VERSION+set}" ; then
26255 setopt NO_GLOB_SUBST
26259 PACKAGE='$PACKAGE'
26260 VERSION='$VERSION'
26261 TIMESTAMP='$TIMESTAMP'
26262 RM='$RM'
26263 ofile='$ofile'
26272 _ACEOF
26274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26276 # Handling of arguments.
26277 for ac_config_target in $ac_config_targets
26279 case $ac_config_target in
26280 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
26281 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26282 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
26283 "gcj/libgcj-config.h") CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
26284 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26285 "include/platform.h") CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
26286 "java/io/natFile.cc") CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
26287 "java/lang/natConcreteProcess.cc") CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
26288 "java/net/natVMInetAddress.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
26289 "java/net/natVMNetworkInterface.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
26290 "gnu/java/net/natPlainSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
26291 "gnu/java/net/natPlainDatagramSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
26292 "gnu/java/nio/natVMPipe.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
26293 "gnu/java/nio/natVMSelector.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
26294 "gnu/java/nio/channels/natFileChannelImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
26295 "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" ;;
26296 "include/java-gc.h") CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
26297 "include/java-threads.h") CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
26298 "sysdep/locks.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
26299 "sysdep/backtrace.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
26300 "sysdep/descriptor.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
26301 "include/java-signal.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
26302 "include/java-signal-aux.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
26303 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26304 "libgcj.pc") CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
26305 "libgcj.spec") CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
26306 "libgcj-test.spec") CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
26307 "gcj/Makefile") CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
26308 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26309 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
26310 "contrib/aotcompile.py") CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;;
26311 "contrib/aot-compile") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;;
26312 "contrib/aot-compile-rpm") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;;
26313 "contrib/generate-cacerts.pl") CONFIG_FILES="$CONFIG_FILES contrib/generate-cacerts.pl" ;;
26314 "contrib/rebuild-gcj-db") CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;;
26315 "scripts/jar") CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
26317 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26318 esac
26319 done
26322 # If the user did not use the arguments to specify the items to instantiate,
26323 # then the envvar interface is used. Set only those that are not.
26324 # We use the long form for the default assignment because of an extremely
26325 # bizarre bug on SunOS 4.1.3.
26326 if $ac_need_defaults; then
26327 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26328 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26329 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26330 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26333 # Have a temporary directory for convenience. Make it in the build tree
26334 # simply because there is no reason against having it here, and in addition,
26335 # creating and moving files from /tmp can sometimes cause problems.
26336 # Hook for its removal unless debugging.
26337 # Note that there is a small window in which the directory will not be cleaned:
26338 # after its creation but before its name has been assigned to `$tmp'.
26339 $debug ||
26341 tmp=
26342 trap 'exit_status=$?
26343 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26345 trap 'as_fn_exit 1' 1 2 13 15
26347 # Create a (secure) tmp directory for tmp files.
26350 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26351 test -n "$tmp" && test -d "$tmp"
26352 } ||
26354 tmp=./conf$$-$RANDOM
26355 (umask 077 && mkdir "$tmp")
26356 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26358 # Set up the scripts for CONFIG_FILES section.
26359 # No need to generate them if there are no CONFIG_FILES.
26360 # This happens for instance with `./config.status config.h'.
26361 if test -n "$CONFIG_FILES"; then
26364 ac_cr=`echo X | tr X '\015'`
26365 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26366 # But we know of no other shell where ac_cr would be empty at this
26367 # point, so we can use a bashism as a fallback.
26368 if test "x$ac_cr" = x; then
26369 eval ac_cr=\$\'\\r\'
26371 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26372 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26373 ac_cs_awk_cr='\r'
26374 else
26375 ac_cs_awk_cr=$ac_cr
26378 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26379 _ACEOF
26383 echo "cat >conf$$subs.awk <<_ACEOF" &&
26384 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26385 echo "_ACEOF"
26386 } >conf$$subs.sh ||
26387 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26388 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26389 ac_delim='%!_!# '
26390 for ac_last_try in false false false false false :; do
26391 . ./conf$$subs.sh ||
26392 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26394 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26395 if test $ac_delim_n = $ac_delim_num; then
26396 break
26397 elif $ac_last_try; then
26398 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26399 else
26400 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26402 done
26403 rm -f conf$$subs.sh
26405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26406 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26407 _ACEOF
26408 sed -n '
26410 s/^/S["/; s/!.*/"]=/
26413 s/^[^!]*!//
26414 :repl
26415 t repl
26416 s/'"$ac_delim"'$//
26417 t delim
26420 s/\(.\{148\}\).*/\1/
26421 t more1
26422 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26425 b repl
26426 :more1
26427 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26430 s/.\{148\}//
26431 t nl
26432 :delim
26434 s/\(.\{148\}\).*/\1/
26435 t more2
26436 s/["\\]/\\&/g; s/^/"/; s/$/"/
26439 :more2
26440 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26443 s/.\{148\}//
26444 t delim
26445 ' <conf$$subs.awk | sed '
26446 /^[^""]/{
26448 s/\n//
26450 ' >>$CONFIG_STATUS || ac_write_fail=1
26451 rm -f conf$$subs.awk
26452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26453 _ACAWK
26454 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26455 for (key in S) S_is_set[key] = 1
26456 FS = "\a"
26460 line = $ 0
26461 nfields = split(line, field, "@")
26462 substed = 0
26463 len = length(field[1])
26464 for (i = 2; i < nfields; i++) {
26465 key = field[i]
26466 keylen = length(key)
26467 if (S_is_set[key]) {
26468 value = S[key]
26469 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26470 len += length(value) + length(field[++i])
26471 substed = 1
26472 } else
26473 len += 1 + keylen
26476 print line
26479 _ACAWK
26480 _ACEOF
26481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26482 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26483 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26484 else
26486 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26487 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26488 _ACEOF
26490 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26491 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26492 # trailing colons and then remove the whole line if VPATH becomes empty
26493 # (actually we leave an empty line to preserve line numbers).
26494 if test "x$srcdir" = x.; then
26495 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26496 s/:*\$(srcdir):*/:/
26497 s/:*\${srcdir}:*/:/
26498 s/:*@srcdir@:*/:/
26499 s/^\([^=]*=[ ]*\):*/\1/
26500 s/:*$//
26501 s/^[^=]*=[ ]*$//
26505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26506 fi # test -n "$CONFIG_FILES"
26508 # Set up the scripts for CONFIG_HEADERS section.
26509 # No need to generate them if there are no CONFIG_HEADERS.
26510 # This happens for instance with `./config.status Makefile'.
26511 if test -n "$CONFIG_HEADERS"; then
26512 cat >"$tmp/defines.awk" <<\_ACAWK ||
26513 BEGIN {
26514 _ACEOF
26516 # Transform confdefs.h into an awk script `defines.awk', embedded as
26517 # here-document in config.status, that substitutes the proper values into
26518 # config.h.in to produce config.h.
26520 # Create a delimiter string that does not exist in confdefs.h, to ease
26521 # handling of long lines.
26522 ac_delim='%!_!# '
26523 for ac_last_try in false false :; do
26524 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26525 if test -z "$ac_t"; then
26526 break
26527 elif $ac_last_try; then
26528 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26529 else
26530 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26532 done
26534 # For the awk script, D is an array of macro values keyed by name,
26535 # likewise P contains macro parameters if any. Preserve backslash
26536 # newline sequences.
26538 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26539 sed -n '
26540 s/.\{148\}/&'"$ac_delim"'/g
26541 t rset
26542 :rset
26543 s/^[ ]*#[ ]*define[ ][ ]*/ /
26544 t def
26546 :def
26547 s/\\$//
26548 t bsnl
26549 s/["\\]/\\&/g
26550 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26551 D["\1"]=" \3"/p
26552 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26554 :bsnl
26555 s/["\\]/\\&/g
26556 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26557 D["\1"]=" \3\\\\\\n"\\/p
26558 t cont
26559 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26560 t cont
26562 :cont
26564 s/.\{148\}/&'"$ac_delim"'/g
26565 t clear
26566 :clear
26567 s/\\$//
26568 t bsnlc
26569 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26571 :bsnlc
26572 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26573 b cont
26574 ' <confdefs.h | sed '
26575 s/'"$ac_delim"'/"\\\
26576 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26579 for (key in D) D_is_set[key] = 1
26580 FS = "\a"
26582 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26583 line = \$ 0
26584 split(line, arg, " ")
26585 if (arg[1] == "#") {
26586 defundef = arg[2]
26587 mac1 = arg[3]
26588 } else {
26589 defundef = substr(arg[1], 2)
26590 mac1 = arg[2]
26592 split(mac1, mac2, "(") #)
26593 macro = mac2[1]
26594 prefix = substr(line, 1, index(line, defundef) - 1)
26595 if (D_is_set[macro]) {
26596 # Preserve the white space surrounding the "#".
26597 print prefix "define", macro P[macro] D[macro]
26598 next
26599 } else {
26600 # Replace #undef with comments. This is necessary, for example,
26601 # in the case of _POSIX_SOURCE, which is predefined and required
26602 # on some systems where configure will not decide to define it.
26603 if (defundef == "undef") {
26604 print "/*", prefix defundef, macro, "*/"
26605 next
26609 { print }
26610 _ACAWK
26611 _ACEOF
26612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26613 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26614 fi # test -n "$CONFIG_HEADERS"
26617 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
26618 shift
26619 for ac_tag
26621 case $ac_tag in
26622 :[FHLC]) ac_mode=$ac_tag; continue;;
26623 esac
26624 case $ac_mode$ac_tag in
26625 :[FHL]*:*);;
26626 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26627 :[FH]-) ac_tag=-:-;;
26628 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26629 esac
26630 ac_save_IFS=$IFS
26631 IFS=:
26632 set x $ac_tag
26633 IFS=$ac_save_IFS
26634 shift
26635 ac_file=$1
26636 shift
26638 case $ac_mode in
26639 :L) ac_source=$1;;
26640 :[FH])
26641 ac_file_inputs=
26642 for ac_f
26644 case $ac_f in
26645 -) ac_f="$tmp/stdin";;
26646 *) # Look for the file first in the build tree, then in the source tree
26647 # (if the path is not absolute). The absolute path cannot be DOS-style,
26648 # because $ac_f cannot contain `:'.
26649 test -f "$ac_f" ||
26650 case $ac_f in
26651 [\\/$]*) false;;
26652 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26653 esac ||
26654 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26655 esac
26656 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26657 as_fn_append ac_file_inputs " '$ac_f'"
26658 done
26660 # Let's still pretend it is `configure' which instantiates (i.e., don't
26661 # use $as_me), people would be surprised to read:
26662 # /* config.h. Generated by config.status. */
26663 configure_input='Generated from '`
26664 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26665 `' by configure.'
26666 if test x"$ac_file" != x-; then
26667 configure_input="$ac_file. $configure_input"
26668 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26669 $as_echo "$as_me: creating $ac_file" >&6;}
26671 # Neutralize special characters interpreted by sed in replacement strings.
26672 case $configure_input in #(
26673 *\&* | *\|* | *\\* )
26674 ac_sed_conf_input=`$as_echo "$configure_input" |
26675 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26676 *) ac_sed_conf_input=$configure_input;;
26677 esac
26679 case $ac_tag in
26680 *:-:* | *:-) cat >"$tmp/stdin" \
26681 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26682 esac
26684 esac
26686 ac_dir=`$as_dirname -- "$ac_file" ||
26687 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26688 X"$ac_file" : 'X\(//\)[^/]' \| \
26689 X"$ac_file" : 'X\(//\)$' \| \
26690 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26691 $as_echo X"$ac_file" |
26692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26693 s//\1/
26696 /^X\(\/\/\)[^/].*/{
26697 s//\1/
26700 /^X\(\/\/\)$/{
26701 s//\1/
26704 /^X\(\/\).*/{
26705 s//\1/
26708 s/.*/./; q'`
26709 as_dir="$ac_dir"; as_fn_mkdir_p
26710 ac_builddir=.
26712 case "$ac_dir" in
26713 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26715 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26716 # A ".." for each directory in $ac_dir_suffix.
26717 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26718 case $ac_top_builddir_sub in
26719 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26720 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26721 esac ;;
26722 esac
26723 ac_abs_top_builddir=$ac_pwd
26724 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26725 # for backward compatibility:
26726 ac_top_builddir=$ac_top_build_prefix
26728 case $srcdir in
26729 .) # We are building in place.
26730 ac_srcdir=.
26731 ac_top_srcdir=$ac_top_builddir_sub
26732 ac_abs_top_srcdir=$ac_pwd ;;
26733 [\\/]* | ?:[\\/]* ) # Absolute name.
26734 ac_srcdir=$srcdir$ac_dir_suffix;
26735 ac_top_srcdir=$srcdir
26736 ac_abs_top_srcdir=$srcdir ;;
26737 *) # Relative name.
26738 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26739 ac_top_srcdir=$ac_top_build_prefix$srcdir
26740 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26741 esac
26742 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26745 case $ac_mode in
26748 # CONFIG_FILE
26751 case $INSTALL in
26752 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26753 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26754 esac
26755 ac_MKDIR_P=$MKDIR_P
26756 case $MKDIR_P in
26757 [\\/$]* | ?:[\\/]* ) ;;
26758 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26759 esac
26760 _ACEOF
26762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26763 # If the template does not know about datarootdir, expand it.
26764 # FIXME: This hack should be removed a few years after 2.60.
26765 ac_datarootdir_hack=; ac_datarootdir_seen=
26766 ac_sed_dataroot='
26767 /datarootdir/ {
26771 /@datadir@/p
26772 /@docdir@/p
26773 /@infodir@/p
26774 /@localedir@/p
26775 /@mandir@/p'
26776 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26777 *datarootdir*) ac_datarootdir_seen=yes;;
26778 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26780 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26781 _ACEOF
26782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26783 ac_datarootdir_hack='
26784 s&@datadir@&$datadir&g
26785 s&@docdir@&$docdir&g
26786 s&@infodir@&$infodir&g
26787 s&@localedir@&$localedir&g
26788 s&@mandir@&$mandir&g
26789 s&\\\${datarootdir}&$datarootdir&g' ;;
26790 esac
26791 _ACEOF
26793 # Neutralize VPATH when `$srcdir' = `.'.
26794 # Shell code in configure.ac might set extrasub.
26795 # FIXME: do we really want to maintain this feature?
26796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26797 ac_sed_extra="$ac_vpsub
26798 $extrasub
26799 _ACEOF
26800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26802 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26803 s|@configure_input@|$ac_sed_conf_input|;t t
26804 s&@top_builddir@&$ac_top_builddir_sub&;t t
26805 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26806 s&@srcdir@&$ac_srcdir&;t t
26807 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26808 s&@top_srcdir@&$ac_top_srcdir&;t t
26809 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26810 s&@builddir@&$ac_builddir&;t t
26811 s&@abs_builddir@&$ac_abs_builddir&;t t
26812 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26813 s&@INSTALL@&$ac_INSTALL&;t t
26814 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26815 $ac_datarootdir_hack
26817 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26818 || as_fn_error "could not create $ac_file" "$LINENO" 5
26820 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26821 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26822 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26824 which seems to be undefined. Please make sure it is defined." >&5
26825 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26826 which seems to be undefined. Please make sure it is defined." >&2;}
26828 rm -f "$tmp/stdin"
26829 case $ac_file in
26830 -) cat "$tmp/out" && rm -f "$tmp/out";;
26831 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26832 esac \
26833 || as_fn_error "could not create $ac_file" "$LINENO" 5
26837 # CONFIG_HEADER
26839 if test x"$ac_file" != x-; then
26841 $as_echo "/* $configure_input */" \
26842 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26843 } >"$tmp/config.h" \
26844 || as_fn_error "could not create $ac_file" "$LINENO" 5
26845 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26846 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26847 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26848 else
26849 rm -f "$ac_file"
26850 mv "$tmp/config.h" "$ac_file" \
26851 || as_fn_error "could not create $ac_file" "$LINENO" 5
26853 else
26854 $as_echo "/* $configure_input */" \
26855 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26856 || as_fn_error "could not create -" "$LINENO" 5
26858 # Compute "$ac_file"'s index in $config_headers.
26859 _am_arg="$ac_file"
26860 _am_stamp_count=1
26861 for _am_header in $config_headers :; do
26862 case $_am_header in
26863 $_am_arg | $_am_arg:* )
26864 break ;;
26866 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26867 esac
26868 done
26869 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26870 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26871 X"$_am_arg" : 'X\(//\)[^/]' \| \
26872 X"$_am_arg" : 'X\(//\)$' \| \
26873 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26874 $as_echo X"$_am_arg" |
26875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26876 s//\1/
26879 /^X\(\/\/\)[^/].*/{
26880 s//\1/
26883 /^X\(\/\/\)$/{
26884 s//\1/
26887 /^X\(\/\).*/{
26888 s//\1/
26891 s/.*/./; q'`/stamp-h$_am_stamp_count
26895 # CONFIG_LINK
26898 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
26900 else
26901 # Prefer the file from the source tree if names are identical.
26902 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
26903 ac_source=$srcdir/$ac_source
26906 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
26907 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
26909 if test ! -r "$ac_source"; then
26910 as_fn_error "$ac_source: file not found" "$LINENO" 5
26912 rm -f "$ac_file"
26914 # Try a relative symlink, then a hard link, then a copy.
26915 case $srcdir in
26916 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
26917 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
26918 esac
26919 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26920 ln "$ac_source" "$ac_file" 2>/dev/null ||
26921 cp -p "$ac_source" "$ac_file" ||
26922 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
26925 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26926 $as_echo "$as_me: executing $ac_file commands" >&6;}
26928 esac
26931 case $ac_file$ac_mode in
26932 "default-1":C)
26933 # Only add multilib support code if we just rebuilt the top-level
26934 # Makefile.
26935 case " $CONFIG_FILES " in
26936 *" Makefile "*)
26937 ac_file=Makefile . ${multi_basedir}/config-ml.in
26939 esac ;;
26940 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26941 # Autoconf 2.62 quotes --file arguments for eval, but not when files
26942 # are listed without --file. Let's play safe and only enable the eval
26943 # if we detect the quoting.
26944 case $CONFIG_FILES in
26945 *\'*) eval set x "$CONFIG_FILES" ;;
26946 *) set x $CONFIG_FILES ;;
26947 esac
26948 shift
26949 for mf
26951 # Strip MF so we end up with the name of the file.
26952 mf=`echo "$mf" | sed -e 's/:.*$//'`
26953 # Check whether this is an Automake generated Makefile or not.
26954 # We used to match only the files named `Makefile.in', but
26955 # some people rename them; so instead we look at the file content.
26956 # Grep'ing the first line is not enough: some people post-process
26957 # each Makefile.in and add a new line on top of each file to say so.
26958 # Grep'ing the whole file is not good either: AIX grep has a line
26959 # limit of 2048, but all sed's we know have understand at least 4000.
26960 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26961 dirpart=`$as_dirname -- "$mf" ||
26962 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26963 X"$mf" : 'X\(//\)[^/]' \| \
26964 X"$mf" : 'X\(//\)$' \| \
26965 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26966 $as_echo X"$mf" |
26967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26968 s//\1/
26971 /^X\(\/\/\)[^/].*/{
26972 s//\1/
26975 /^X\(\/\/\)$/{
26976 s//\1/
26979 /^X\(\/\).*/{
26980 s//\1/
26983 s/.*/./; q'`
26984 else
26985 continue
26987 # Extract the definition of DEPDIR, am__include, and am__quote
26988 # from the Makefile without running `make'.
26989 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26990 test -z "$DEPDIR" && continue
26991 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26992 test -z "am__include" && continue
26993 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26994 # When using ansi2knr, U may be empty or an underscore; expand it
26995 U=`sed -n 's/^U = //p' < "$mf"`
26996 # Find all dependency output files, they are included files with
26997 # $(DEPDIR) in their names. We invoke sed twice because it is the
26998 # simplest approach to changing $(DEPDIR) to its actual value in the
26999 # expansion.
27000 for file in `sed -n "
27001 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27002 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27003 # Make sure the directory exists.
27004 test -f "$dirpart/$file" && continue
27005 fdir=`$as_dirname -- "$file" ||
27006 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27007 X"$file" : 'X\(//\)[^/]' \| \
27008 X"$file" : 'X\(//\)$' \| \
27009 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27010 $as_echo X"$file" |
27011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27012 s//\1/
27015 /^X\(\/\/\)[^/].*/{
27016 s//\1/
27019 /^X\(\/\/\)$/{
27020 s//\1/
27023 /^X\(\/\).*/{
27024 s//\1/
27027 s/.*/./; q'`
27028 as_dir=$dirpart/$fdir; as_fn_mkdir_p
27029 # echo "creating $dirpart/$file"
27030 echo '# dummy' > "$dirpart/$file"
27031 done
27032 done
27035 "libtool":C)
27037 # See if we are running on zsh, and set the options which allow our
27038 # commands through without removal of \ escapes.
27039 if test -n "${ZSH_VERSION+set}" ; then
27040 setopt NO_GLOB_SUBST
27043 cfgfile="${ofile}T"
27044 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27045 $RM "$cfgfile"
27047 cat <<_LT_EOF >> "$cfgfile"
27048 #! $SHELL
27050 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
27051 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
27052 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27053 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
27055 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
27056 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
27057 # Written by Gordon Matzigkeit, 1996
27059 # This file is part of GNU Libtool.
27061 # GNU Libtool is free software; you can redistribute it and/or
27062 # modify it under the terms of the GNU General Public License as
27063 # published by the Free Software Foundation; either version 2 of
27064 # the License, or (at your option) any later version.
27066 # As a special exception to the GNU General Public License,
27067 # if you distribute this file as part of a program or library that
27068 # is built using GNU Libtool, you may include this file under the
27069 # same distribution terms that you use for the rest of that program.
27071 # GNU Libtool is distributed in the hope that it will be useful,
27072 # but WITHOUT ANY WARRANTY; without even the implied warranty of
27073 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27074 # GNU General Public License for more details.
27076 # You should have received a copy of the GNU General Public License
27077 # along with GNU Libtool; see the file COPYING. If not, a copy
27078 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27079 # obtained by writing to the Free Software Foundation, Inc.,
27080 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27083 # The names of the tagged configurations supported by this script.
27084 available_tags="CXX GCJ "
27086 # ### BEGIN LIBTOOL CONFIG
27088 # Which release of libtool.m4 was used?
27089 macro_version=$macro_version
27090 macro_revision=$macro_revision
27092 # Whether or not to build shared libraries.
27093 build_libtool_libs=$enable_shared
27095 # Whether or not to build static libraries.
27096 build_old_libs=$enable_static
27098 # What type of objects to build.
27099 pic_mode=$pic_mode
27101 # Whether or not to optimize for fast installation.
27102 fast_install=$enable_fast_install
27104 # Shell to use when invoking shell scripts.
27105 SHELL=$lt_SHELL
27107 # An echo program that protects backslashes.
27108 ECHO=$lt_ECHO
27110 # The host system.
27111 host_alias=$host_alias
27112 host=$host
27113 host_os=$host_os
27115 # The build system.
27116 build_alias=$build_alias
27117 build=$build
27118 build_os=$build_os
27120 # A sed program that does not truncate output.
27121 SED=$lt_SED
27123 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27124 Xsed="\$SED -e 1s/^X//"
27126 # A grep program that handles long lines.
27127 GREP=$lt_GREP
27129 # An ERE matcher.
27130 EGREP=$lt_EGREP
27132 # A literal string matcher.
27133 FGREP=$lt_FGREP
27135 # A BSD- or MS-compatible name lister.
27136 NM=$lt_NM
27138 # Whether we need soft or hard links.
27139 LN_S=$lt_LN_S
27141 # What is the maximum length of a command?
27142 max_cmd_len=$max_cmd_len
27144 # Object file suffix (normally "o").
27145 objext=$ac_objext
27147 # Executable file suffix (normally "").
27148 exeext=$exeext
27150 # whether the shell understands "unset".
27151 lt_unset=$lt_unset
27153 # turn spaces into newlines.
27154 SP2NL=$lt_lt_SP2NL
27156 # turn newlines into spaces.
27157 NL2SP=$lt_lt_NL2SP
27159 # An object symbol dumper.
27160 OBJDUMP=$lt_OBJDUMP
27162 # Method to check whether dependent libraries are shared objects.
27163 deplibs_check_method=$lt_deplibs_check_method
27165 # Command to use when deplibs_check_method == "file_magic".
27166 file_magic_cmd=$lt_file_magic_cmd
27168 # The archiver.
27169 AR=$lt_AR
27170 AR_FLAGS=$lt_AR_FLAGS
27172 # A symbol stripping program.
27173 STRIP=$lt_STRIP
27175 # Commands used to install an old-style archive.
27176 RANLIB=$lt_RANLIB
27177 old_postinstall_cmds=$lt_old_postinstall_cmds
27178 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27180 # Whether to use a lock for old archive extraction.
27181 lock_old_archive_extraction=$lock_old_archive_extraction
27183 # A C compiler.
27184 LTCC=$lt_CC
27186 # LTCC compiler flags.
27187 LTCFLAGS=$lt_CFLAGS
27189 # Take the output of nm and produce a listing of raw symbols and C names.
27190 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27192 # Transform the output of nm in a proper C declaration.
27193 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27195 # Transform the output of nm in a C name address pair.
27196 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27198 # Transform the output of nm in a C name address pair when lib prefix is needed.
27199 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27201 # The name of the directory that contains temporary libtool files.
27202 objdir=$objdir
27204 # Used to examine libraries when file_magic_cmd begins with "file".
27205 MAGIC_CMD=$MAGIC_CMD
27207 # Must we lock files when doing compilation?
27208 need_locks=$lt_need_locks
27210 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27211 DSYMUTIL=$lt_DSYMUTIL
27213 # Tool to change global to local symbols on Mac OS X.
27214 NMEDIT=$lt_NMEDIT
27216 # Tool to manipulate fat objects and archives on Mac OS X.
27217 LIPO=$lt_LIPO
27219 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27220 OTOOL=$lt_OTOOL
27222 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27223 OTOOL64=$lt_OTOOL64
27225 # Old archive suffix (normally "a").
27226 libext=$libext
27228 # Shared library suffix (normally ".so").
27229 shrext_cmds=$lt_shrext_cmds
27231 # The commands to extract the exported symbol list from a shared archive.
27232 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27234 # Variables whose values should be saved in libtool wrapper scripts and
27235 # restored at link time.
27236 variables_saved_for_relink=$lt_variables_saved_for_relink
27238 # Do we need the "lib" prefix for modules?
27239 need_lib_prefix=$need_lib_prefix
27241 # Do we need a version for libraries?
27242 need_version=$need_version
27244 # Library versioning type.
27245 version_type=$version_type
27247 # Shared library runtime path variable.
27248 runpath_var=$runpath_var
27250 # Shared library path variable.
27251 shlibpath_var=$shlibpath_var
27253 # Is shlibpath searched before the hard-coded library search path?
27254 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27256 # Format of library name prefix.
27257 libname_spec=$lt_libname_spec
27259 # List of archive names. First name is the real one, the rest are links.
27260 # The last name is the one that the linker finds with -lNAME
27261 library_names_spec=$lt_library_names_spec
27263 # The coded name of the library, if different from the real name.
27264 soname_spec=$lt_soname_spec
27266 # Permission mode override for installation of shared libraries.
27267 install_override_mode=$lt_install_override_mode
27269 # Command to use after installation of a shared archive.
27270 postinstall_cmds=$lt_postinstall_cmds
27272 # Command to use after uninstallation of a shared archive.
27273 postuninstall_cmds=$lt_postuninstall_cmds
27275 # Commands used to finish a libtool library installation in a directory.
27276 finish_cmds=$lt_finish_cmds
27278 # As "finish_cmds", except a single script fragment to be evaled but
27279 # not shown.
27280 finish_eval=$lt_finish_eval
27282 # Whether we should hardcode library paths into libraries.
27283 hardcode_into_libs=$hardcode_into_libs
27285 # Compile-time system search path for libraries.
27286 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27288 # Run-time system search path for libraries.
27289 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27291 # Whether dlopen is supported.
27292 dlopen_support=$enable_dlopen
27294 # Whether dlopen of programs is supported.
27295 dlopen_self=$enable_dlopen_self
27297 # Whether dlopen of statically linked programs is supported.
27298 dlopen_self_static=$enable_dlopen_self_static
27300 # Commands to strip libraries.
27301 old_striplib=$lt_old_striplib
27302 striplib=$lt_striplib
27305 # The linker used to build libraries.
27306 LD=$lt_LD
27308 # How to create reloadable object files.
27309 reload_flag=$lt_reload_flag
27310 reload_cmds=$lt_reload_cmds
27312 # Commands used to build an old-style archive.
27313 old_archive_cmds=$lt_old_archive_cmds
27315 # A language specific compiler.
27316 CC=$lt_compiler
27318 # Is the compiler the GNU compiler?
27319 with_gcc=$GCC
27321 # Compiler flag to turn off builtin functions.
27322 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27324 # How to pass a linker flag through the compiler.
27325 wl=$lt_lt_prog_compiler_wl
27327 # Additional compiler flags for building library objects.
27328 pic_flag=$lt_lt_prog_compiler_pic
27330 # Compiler flag to prevent dynamic linking.
27331 link_static_flag=$lt_lt_prog_compiler_static
27333 # Does compiler simultaneously support -c and -o options?
27334 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27336 # Whether or not to add -lc for building shared libraries.
27337 build_libtool_need_lc=$archive_cmds_need_lc
27339 # Whether or not to disallow shared libs when runtime libs are static.
27340 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27342 # Compiler flag to allow reflexive dlopens.
27343 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27345 # Compiler flag to generate shared objects directly from archives.
27346 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27348 # Whether the compiler copes with passing no objects directly.
27349 compiler_needs_object=$lt_compiler_needs_object
27351 # Create an old-style archive from a shared archive.
27352 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27354 # Create a temporary old-style archive to link instead of a shared archive.
27355 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27357 # Commands used to build a shared archive.
27358 archive_cmds=$lt_archive_cmds
27359 archive_expsym_cmds=$lt_archive_expsym_cmds
27361 # Commands used to build a loadable module if different from building
27362 # a shared archive.
27363 module_cmds=$lt_module_cmds
27364 module_expsym_cmds=$lt_module_expsym_cmds
27366 # Whether we are building with GNU ld or not.
27367 with_gnu_ld=$lt_with_gnu_ld
27369 # Flag that allows shared libraries with undefined symbols to be built.
27370 allow_undefined_flag=$lt_allow_undefined_flag
27372 # Flag that enforces no undefined symbols.
27373 no_undefined_flag=$lt_no_undefined_flag
27375 # Flag to hardcode \$libdir into a binary during linking.
27376 # This must work even if \$libdir does not exist
27377 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27379 # If ld is used when linking, flag to hardcode \$libdir into a binary
27380 # during linking. This must work even if \$libdir does not exist.
27381 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
27383 # Whether we need a single "-rpath" flag with a separated argument.
27384 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27386 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27387 # DIR into the resulting binary.
27388 hardcode_direct=$hardcode_direct
27390 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27391 # DIR into the resulting binary and the resulting library dependency is
27392 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27393 # library is relocated.
27394 hardcode_direct_absolute=$hardcode_direct_absolute
27396 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27397 # into the resulting binary.
27398 hardcode_minus_L=$hardcode_minus_L
27400 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27401 # into the resulting binary.
27402 hardcode_shlibpath_var=$hardcode_shlibpath_var
27404 # Set to "yes" if building a shared library automatically hardcodes DIR
27405 # into the library and all subsequent libraries and executables linked
27406 # against it.
27407 hardcode_automatic=$hardcode_automatic
27409 # Set to yes if linker adds runtime paths of dependent libraries
27410 # to runtime path list.
27411 inherit_rpath=$inherit_rpath
27413 # Whether libtool must link a program against all its dependency libraries.
27414 link_all_deplibs=$link_all_deplibs
27416 # Fix the shell variable \$srcfile for the compiler.
27417 fix_srcfile_path=$lt_fix_srcfile_path
27419 # Set to "yes" if exported symbols are required.
27420 always_export_symbols=$always_export_symbols
27422 # The commands to list exported symbols.
27423 export_symbols_cmds=$lt_export_symbols_cmds
27425 # Symbols that should not be listed in the preloaded symbols.
27426 exclude_expsyms=$lt_exclude_expsyms
27428 # Symbols that must always be exported.
27429 include_expsyms=$lt_include_expsyms
27431 # Commands necessary for linking programs (against libraries) with templates.
27432 prelink_cmds=$lt_prelink_cmds
27434 # Specify filename containing input files.
27435 file_list_spec=$lt_file_list_spec
27437 # How to hardcode a shared library path into an executable.
27438 hardcode_action=$hardcode_action
27440 # The directories searched by this compiler when creating a shared library.
27441 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27443 # Dependencies to place before and after the objects being linked to
27444 # create a shared library.
27445 predep_objects=$lt_predep_objects
27446 postdep_objects=$lt_postdep_objects
27447 predeps=$lt_predeps
27448 postdeps=$lt_postdeps
27450 # The library search path used internally by the compiler when linking
27451 # a shared library.
27452 compiler_lib_search_path=$lt_compiler_lib_search_path
27454 # ### END LIBTOOL CONFIG
27456 _LT_EOF
27458 case $host_os in
27459 aix3*)
27460 cat <<\_LT_EOF >> "$cfgfile"
27461 # AIX sometimes has problems with the GCC collect2 program. For some
27462 # reason, if we set the COLLECT_NAMES environment variable, the problems
27463 # vanish in a puff of smoke.
27464 if test "X${COLLECT_NAMES+set}" != Xset; then
27465 COLLECT_NAMES=
27466 export COLLECT_NAMES
27468 _LT_EOF
27470 esac
27473 ltmain="$ac_aux_dir/ltmain.sh"
27476 # We use sed instead of cat because bash on DJGPP gets confused if
27477 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27478 # text mode, it properly converts lines to CR/LF. This bash problem
27479 # is reportedly fixed, but why not run on old versions too?
27480 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27481 || (rm -f "$cfgfile"; exit 1)
27483 case $xsi_shell in
27484 yes)
27485 cat << \_LT_EOF >> "$cfgfile"
27487 # func_dirname file append nondir_replacement
27488 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27489 # otherwise set result to NONDIR_REPLACEMENT.
27490 func_dirname ()
27492 case ${1} in
27493 */*) func_dirname_result="${1%/*}${2}" ;;
27494 * ) func_dirname_result="${3}" ;;
27495 esac
27498 # func_basename file
27499 func_basename ()
27501 func_basename_result="${1##*/}"
27504 # func_dirname_and_basename file append nondir_replacement
27505 # perform func_basename and func_dirname in a single function
27506 # call:
27507 # dirname: Compute the dirname of FILE. If nonempty,
27508 # add APPEND to the result, otherwise set result
27509 # to NONDIR_REPLACEMENT.
27510 # value returned in "$func_dirname_result"
27511 # basename: Compute filename of FILE.
27512 # value retuned in "$func_basename_result"
27513 # Implementation must be kept synchronized with func_dirname
27514 # and func_basename. For efficiency, we do not delegate to
27515 # those functions but instead duplicate the functionality here.
27516 func_dirname_and_basename ()
27518 case ${1} in
27519 */*) func_dirname_result="${1%/*}${2}" ;;
27520 * ) func_dirname_result="${3}" ;;
27521 esac
27522 func_basename_result="${1##*/}"
27525 # func_stripname prefix suffix name
27526 # strip PREFIX and SUFFIX off of NAME.
27527 # PREFIX and SUFFIX must not contain globbing or regex special
27528 # characters, hashes, percent signs, but SUFFIX may contain a leading
27529 # dot (in which case that matches only a dot).
27530 func_stripname ()
27532 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27533 # positional parameters, so assign one to ordinary parameter first.
27534 func_stripname_result=${3}
27535 func_stripname_result=${func_stripname_result#"${1}"}
27536 func_stripname_result=${func_stripname_result%"${2}"}
27539 # func_opt_split
27540 func_opt_split ()
27542 func_opt_split_opt=${1%%=*}
27543 func_opt_split_arg=${1#*=}
27546 # func_lo2o object
27547 func_lo2o ()
27549 case ${1} in
27550 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27551 *) func_lo2o_result=${1} ;;
27552 esac
27555 # func_xform libobj-or-source
27556 func_xform ()
27558 func_xform_result=${1%.*}.lo
27561 # func_arith arithmetic-term...
27562 func_arith ()
27564 func_arith_result=$(( $* ))
27567 # func_len string
27568 # STRING may not start with a hyphen.
27569 func_len ()
27571 func_len_result=${#1}
27574 _LT_EOF
27576 *) # Bourne compatible functions.
27577 cat << \_LT_EOF >> "$cfgfile"
27579 # func_dirname file append nondir_replacement
27580 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27581 # otherwise set result to NONDIR_REPLACEMENT.
27582 func_dirname ()
27584 # Extract subdirectory from the argument.
27585 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
27586 if test "X$func_dirname_result" = "X${1}"; then
27587 func_dirname_result="${3}"
27588 else
27589 func_dirname_result="$func_dirname_result${2}"
27593 # func_basename file
27594 func_basename ()
27596 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
27600 # func_stripname prefix suffix name
27601 # strip PREFIX and SUFFIX off of NAME.
27602 # PREFIX and SUFFIX must not contain globbing or regex special
27603 # characters, hashes, percent signs, but SUFFIX may contain a leading
27604 # dot (in which case that matches only a dot).
27605 # func_strip_suffix prefix name
27606 func_stripname ()
27608 case ${2} in
27609 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
27610 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
27611 esac
27614 # sed scripts:
27615 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27616 my_sed_long_arg='1s/^-[^=]*=//'
27618 # func_opt_split
27619 func_opt_split ()
27621 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
27622 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
27625 # func_lo2o object
27626 func_lo2o ()
27628 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
27631 # func_xform libobj-or-source
27632 func_xform ()
27634 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
27637 # func_arith arithmetic-term...
27638 func_arith ()
27640 func_arith_result=`expr "$@"`
27643 # func_len string
27644 # STRING may not start with a hyphen.
27645 func_len ()
27647 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27650 _LT_EOF
27651 esac
27653 case $lt_shell_append in
27654 yes)
27655 cat << \_LT_EOF >> "$cfgfile"
27657 # func_append var value
27658 # Append VALUE to the end of shell variable VAR.
27659 func_append ()
27661 eval "$1+=\$2"
27663 _LT_EOF
27666 cat << \_LT_EOF >> "$cfgfile"
27668 # func_append var value
27669 # Append VALUE to the end of shell variable VAR.
27670 func_append ()
27672 eval "$1=\$$1\$2"
27675 _LT_EOF
27677 esac
27680 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27681 || (rm -f "$cfgfile"; exit 1)
27683 mv -f "$cfgfile" "$ofile" ||
27684 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27685 chmod +x "$ofile"
27688 cat <<_LT_EOF >> "$ofile"
27690 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27692 # The linker used to build libraries.
27693 LD=$lt_LD_CXX
27695 # How to create reloadable object files.
27696 reload_flag=$lt_reload_flag_CXX
27697 reload_cmds=$lt_reload_cmds_CXX
27699 # Commands used to build an old-style archive.
27700 old_archive_cmds=$lt_old_archive_cmds_CXX
27702 # A language specific compiler.
27703 CC=$lt_compiler_CXX
27705 # Is the compiler the GNU compiler?
27706 with_gcc=$GCC_CXX
27708 # Compiler flag to turn off builtin functions.
27709 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27711 # How to pass a linker flag through the compiler.
27712 wl=$lt_lt_prog_compiler_wl_CXX
27714 # Additional compiler flags for building library objects.
27715 pic_flag=$lt_lt_prog_compiler_pic_CXX
27717 # Compiler flag to prevent dynamic linking.
27718 link_static_flag=$lt_lt_prog_compiler_static_CXX
27720 # Does compiler simultaneously support -c and -o options?
27721 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27723 # Whether or not to add -lc for building shared libraries.
27724 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27726 # Whether or not to disallow shared libs when runtime libs are static.
27727 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27729 # Compiler flag to allow reflexive dlopens.
27730 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27732 # Compiler flag to generate shared objects directly from archives.
27733 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27735 # Whether the compiler copes with passing no objects directly.
27736 compiler_needs_object=$lt_compiler_needs_object_CXX
27738 # Create an old-style archive from a shared archive.
27739 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27741 # Create a temporary old-style archive to link instead of a shared archive.
27742 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27744 # Commands used to build a shared archive.
27745 archive_cmds=$lt_archive_cmds_CXX
27746 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27748 # Commands used to build a loadable module if different from building
27749 # a shared archive.
27750 module_cmds=$lt_module_cmds_CXX
27751 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27753 # Whether we are building with GNU ld or not.
27754 with_gnu_ld=$lt_with_gnu_ld_CXX
27756 # Flag that allows shared libraries with undefined symbols to be built.
27757 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27759 # Flag that enforces no undefined symbols.
27760 no_undefined_flag=$lt_no_undefined_flag_CXX
27762 # Flag to hardcode \$libdir into a binary during linking.
27763 # This must work even if \$libdir does not exist
27764 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27766 # If ld is used when linking, flag to hardcode \$libdir into a binary
27767 # during linking. This must work even if \$libdir does not exist.
27768 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27770 # Whether we need a single "-rpath" flag with a separated argument.
27771 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27773 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27774 # DIR into the resulting binary.
27775 hardcode_direct=$hardcode_direct_CXX
27777 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27778 # DIR into the resulting binary and the resulting library dependency is
27779 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27780 # library is relocated.
27781 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27783 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27784 # into the resulting binary.
27785 hardcode_minus_L=$hardcode_minus_L_CXX
27787 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27788 # into the resulting binary.
27789 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27791 # Set to "yes" if building a shared library automatically hardcodes DIR
27792 # into the library and all subsequent libraries and executables linked
27793 # against it.
27794 hardcode_automatic=$hardcode_automatic_CXX
27796 # Set to yes if linker adds runtime paths of dependent libraries
27797 # to runtime path list.
27798 inherit_rpath=$inherit_rpath_CXX
27800 # Whether libtool must link a program against all its dependency libraries.
27801 link_all_deplibs=$link_all_deplibs_CXX
27803 # Fix the shell variable \$srcfile for the compiler.
27804 fix_srcfile_path=$lt_fix_srcfile_path_CXX
27806 # Set to "yes" if exported symbols are required.
27807 always_export_symbols=$always_export_symbols_CXX
27809 # The commands to list exported symbols.
27810 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27812 # Symbols that should not be listed in the preloaded symbols.
27813 exclude_expsyms=$lt_exclude_expsyms_CXX
27815 # Symbols that must always be exported.
27816 include_expsyms=$lt_include_expsyms_CXX
27818 # Commands necessary for linking programs (against libraries) with templates.
27819 prelink_cmds=$lt_prelink_cmds_CXX
27821 # Specify filename containing input files.
27822 file_list_spec=$lt_file_list_spec_CXX
27824 # How to hardcode a shared library path into an executable.
27825 hardcode_action=$hardcode_action_CXX
27827 # The directories searched by this compiler when creating a shared library.
27828 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27830 # Dependencies to place before and after the objects being linked to
27831 # create a shared library.
27832 predep_objects=$lt_predep_objects_CXX
27833 postdep_objects=$lt_postdep_objects_CXX
27834 predeps=$lt_predeps_CXX
27835 postdeps=$lt_postdeps_CXX
27837 # The library search path used internally by the compiler when linking
27838 # a shared library.
27839 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27841 # ### END LIBTOOL TAG CONFIG: CXX
27842 _LT_EOF
27845 cat <<_LT_EOF >> "$ofile"
27847 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
27849 # The linker used to build libraries.
27850 LD=$lt_LD_GCJ
27852 # How to create reloadable object files.
27853 reload_flag=$lt_reload_flag_GCJ
27854 reload_cmds=$lt_reload_cmds_GCJ
27856 # Commands used to build an old-style archive.
27857 old_archive_cmds=$lt_old_archive_cmds_GCJ
27859 # A language specific compiler.
27860 CC=$lt_compiler_GCJ
27862 # Is the compiler the GNU compiler?
27863 with_gcc=$GCC_GCJ
27865 # Compiler flag to turn off builtin functions.
27866 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
27868 # How to pass a linker flag through the compiler.
27869 wl=$lt_lt_prog_compiler_wl_GCJ
27871 # Additional compiler flags for building library objects.
27872 pic_flag=$lt_lt_prog_compiler_pic_GCJ
27874 # Compiler flag to prevent dynamic linking.
27875 link_static_flag=$lt_lt_prog_compiler_static_GCJ
27877 # Does compiler simultaneously support -c and -o options?
27878 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
27880 # Whether or not to add -lc for building shared libraries.
27881 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
27883 # Whether or not to disallow shared libs when runtime libs are static.
27884 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
27886 # Compiler flag to allow reflexive dlopens.
27887 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
27889 # Compiler flag to generate shared objects directly from archives.
27890 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
27892 # Whether the compiler copes with passing no objects directly.
27893 compiler_needs_object=$lt_compiler_needs_object_GCJ
27895 # Create an old-style archive from a shared archive.
27896 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
27898 # Create a temporary old-style archive to link instead of a shared archive.
27899 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
27901 # Commands used to build a shared archive.
27902 archive_cmds=$lt_archive_cmds_GCJ
27903 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
27905 # Commands used to build a loadable module if different from building
27906 # a shared archive.
27907 module_cmds=$lt_module_cmds_GCJ
27908 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
27910 # Whether we are building with GNU ld or not.
27911 with_gnu_ld=$lt_with_gnu_ld_GCJ
27913 # Flag that allows shared libraries with undefined symbols to be built.
27914 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
27916 # Flag that enforces no undefined symbols.
27917 no_undefined_flag=$lt_no_undefined_flag_GCJ
27919 # Flag to hardcode \$libdir into a binary during linking.
27920 # This must work even if \$libdir does not exist
27921 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
27923 # If ld is used when linking, flag to hardcode \$libdir into a binary
27924 # during linking. This must work even if \$libdir does not exist.
27925 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
27927 # Whether we need a single "-rpath" flag with a separated argument.
27928 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
27930 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27931 # DIR into the resulting binary.
27932 hardcode_direct=$hardcode_direct_GCJ
27934 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27935 # DIR into the resulting binary and the resulting library dependency is
27936 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27937 # library is relocated.
27938 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
27940 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27941 # into the resulting binary.
27942 hardcode_minus_L=$hardcode_minus_L_GCJ
27944 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27945 # into the resulting binary.
27946 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
27948 # Set to "yes" if building a shared library automatically hardcodes DIR
27949 # into the library and all subsequent libraries and executables linked
27950 # against it.
27951 hardcode_automatic=$hardcode_automatic_GCJ
27953 # Set to yes if linker adds runtime paths of dependent libraries
27954 # to runtime path list.
27955 inherit_rpath=$inherit_rpath_GCJ
27957 # Whether libtool must link a program against all its dependency libraries.
27958 link_all_deplibs=$link_all_deplibs_GCJ
27960 # Fix the shell variable \$srcfile for the compiler.
27961 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
27963 # Set to "yes" if exported symbols are required.
27964 always_export_symbols=$always_export_symbols_GCJ
27966 # The commands to list exported symbols.
27967 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
27969 # Symbols that should not be listed in the preloaded symbols.
27970 exclude_expsyms=$lt_exclude_expsyms_GCJ
27972 # Symbols that must always be exported.
27973 include_expsyms=$lt_include_expsyms_GCJ
27975 # Commands necessary for linking programs (against libraries) with templates.
27976 prelink_cmds=$lt_prelink_cmds_GCJ
27978 # Specify filename containing input files.
27979 file_list_spec=$lt_file_list_spec_GCJ
27981 # How to hardcode a shared library path into an executable.
27982 hardcode_action=$hardcode_action_GCJ
27984 # The directories searched by this compiler when creating a shared library.
27985 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
27987 # Dependencies to place before and after the objects being linked to
27988 # create a shared library.
27989 predep_objects=$lt_predep_objects_GCJ
27990 postdep_objects=$lt_postdep_objects_GCJ
27991 predeps=$lt_predeps_GCJ
27992 postdeps=$lt_postdeps_GCJ
27994 # The library search path used internally by the compiler when linking
27995 # a shared library.
27996 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
27998 # ### END LIBTOOL TAG CONFIG: GCJ
27999 _LT_EOF
28002 "scripts/jar":F) chmod +x scripts/jar ;;
28004 esac
28005 done # for ac_tag
28008 as_fn_exit 0
28009 _ACEOF
28010 ac_clean_files=$ac_clean_files_save
28012 test $ac_write_fail = 0 ||
28013 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28016 # configure is writing to config.log, and then calls config.status.
28017 # config.status does its own redirection, appending to config.log.
28018 # Unfortunately, on DOS this fails, as config.log is still kept open
28019 # by configure, so config.status won't be able to write to it; its
28020 # output is simply discarded. So we exec the FD to /dev/null,
28021 # effectively closing config.log, so it can be properly (re)opened and
28022 # appended to by config.status. When coming back to configure, we
28023 # need to make the FD available again.
28024 if test "$no_create" != yes; then
28025 ac_cs_success=:
28026 ac_config_status_args=
28027 test "$silent" = yes &&
28028 ac_config_status_args="$ac_config_status_args --quiet"
28029 exec 5>/dev/null
28030 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28031 exec 5>>config.log
28032 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28033 # would make configure fail if this is the last instruction.
28034 $ac_cs_success || as_fn_exit $?
28038 # CONFIG_SUBDIRS section.
28040 if test "$no_recursion" != yes; then
28042 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
28043 # so they do not pile up.
28044 ac_sub_configure_args=
28045 ac_prev=
28046 eval "set x $ac_configure_args"
28047 shift
28048 for ac_arg
28050 if test -n "$ac_prev"; then
28051 ac_prev=
28052 continue
28054 case $ac_arg in
28055 -cache-file | --cache-file | --cache-fil | --cache-fi \
28056 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
28057 ac_prev=cache_file ;;
28058 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
28059 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
28060 | --c=*)
28062 --config-cache | -C)
28064 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
28065 ac_prev=srcdir ;;
28066 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
28068 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
28069 ac_prev=prefix ;;
28070 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
28072 --disable-option-checking)
28075 case $ac_arg in
28076 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28077 esac
28078 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
28079 esac
28080 done
28082 # Always prepend --prefix to ensure using the same prefix
28083 # in subdir configurations.
28084 ac_arg="--prefix=$prefix"
28085 case $ac_arg in
28086 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28087 esac
28088 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
28090 # Pass --silent
28091 if test "$silent" = yes; then
28092 ac_sub_configure_args="--silent $ac_sub_configure_args"
28095 # Always prepend --disable-option-checking to silence warnings, since
28096 # different subdirs can have different --enable and --with options.
28097 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
28099 ac_popdir=`pwd`
28100 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
28102 # Do not complain, so a configure script can configure whichever
28103 # parts of a large source tree are present.
28104 test -d "$srcdir/$ac_dir" || continue
28106 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
28107 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
28108 $as_echo "$ac_msg" >&6
28109 as_dir="$ac_dir"; as_fn_mkdir_p
28110 ac_builddir=.
28112 case "$ac_dir" in
28113 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28115 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28116 # A ".." for each directory in $ac_dir_suffix.
28117 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28118 case $ac_top_builddir_sub in
28119 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28120 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28121 esac ;;
28122 esac
28123 ac_abs_top_builddir=$ac_pwd
28124 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28125 # for backward compatibility:
28126 ac_top_builddir=$ac_top_build_prefix
28128 case $srcdir in
28129 .) # We are building in place.
28130 ac_srcdir=.
28131 ac_top_srcdir=$ac_top_builddir_sub
28132 ac_abs_top_srcdir=$ac_pwd ;;
28133 [\\/]* | ?:[\\/]* ) # Absolute name.
28134 ac_srcdir=$srcdir$ac_dir_suffix;
28135 ac_top_srcdir=$srcdir
28136 ac_abs_top_srcdir=$srcdir ;;
28137 *) # Relative name.
28138 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28139 ac_top_srcdir=$ac_top_build_prefix$srcdir
28140 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28141 esac
28142 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28145 cd "$ac_dir"
28147 # Check for guested configure; otherwise get Cygnus style configure.
28148 if test -f "$ac_srcdir/configure.gnu"; then
28149 ac_sub_configure=$ac_srcdir/configure.gnu
28150 elif test -f "$ac_srcdir/configure"; then
28151 ac_sub_configure=$ac_srcdir/configure
28152 elif test -f "$ac_srcdir/configure.in"; then
28153 # This should be Cygnus configure.
28154 ac_sub_configure=$ac_aux_dir/configure
28155 else
28156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
28157 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
28158 ac_sub_configure=
28161 # The recursion is here.
28162 if test -n "$ac_sub_configure"; then
28163 # Make the cache file name correct relative to the subdirectory.
28164 case $cache_file in
28165 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
28166 *) # Relative name.
28167 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
28168 esac
28170 { $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
28171 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
28172 # The eval makes quoting arguments work.
28173 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
28174 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
28175 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
28178 cd "$ac_popdir"
28179 done
28181 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28183 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}