gcc/
[official-gcc.git] / libjava / configure
blob141b213c420140cf3d57d218ddf909301ac0ca52
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for libjava version-unused.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='libjava'
558 PACKAGE_TARNAME='libjava'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='libjava version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
564 ac_unique_file="java/lang/System.java"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 enable_option_checking=no
602 ac_subst_vars='am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 LIBDIR
609 GCJ_BIN_DIR
610 JRE_LIB_DIR
611 JRE_BIN_DIR
612 SDK_INCLUDE_DIR
613 SDK_LIB_DIR
614 SDK_BIN_DIR
615 SDK_LNK
616 JRE_LNK
617 JRE_DIR
618 JVM_JAR_DIR
619 JVM_JAR_ROOT_DIR
620 JVM_ROOT_DIR
621 BUILD_VERSION
622 JAVA_VERSION
623 gcc_suffix
624 CREATE_JAVA_HOME_FALSE
625 CREATE_JAVA_HOME_TRUE
626 INSTALL_AOT_RPM_FALSE
627 INSTALL_AOT_RPM_TRUE
628 MAKE
629 python_mod_dir_expanded
630 python_mod_dir
631 here
632 LD_FINISH_STATIC_SPEC
633 LD_START_STATIC_SPEC
634 ANONVERSCRIPT_SUN_FALSE
635 ANONVERSCRIPT_SUN_TRUE
636 ANONVERSCRIPT_GNU_FALSE
637 ANONVERSCRIPT_GNU_TRUE
638 ANONVERSCRIPT_FALSE
639 ANONVERSCRIPT_TRUE
640 SYSDEP_SOURCES
641 PERL
642 libstdcxx_incdir
643 gxx_include_dir
644 gcjsubdir
645 dbexecdir
646 GCJVERSION
647 toolexeclibdir
648 toolexecmainlibdir
649 toolexecdir
650 LIBGCC_UNWIND_INCLUDE
651 INSTALL_BINARIES_FALSE
652 INSTALL_BINARIES_TRUE
653 NEEDS_DATA_START_FALSE
654 NEEDS_DATA_START_TRUE
655 ENABLE_SHARED_FALSE
656 ENABLE_SHARED_TRUE
657 NATIVE_FALSE
658 NATIVE_TRUE
659 ATOMICSPEC
660 IEEESPEC
661 BACKTRACESPEC
662 EXCEPTIONSPEC
663 CHECKREFSPEC
664 DIVIDESPEC
665 ZINCS
666 SYS_ZLIBS
667 ZLIBS
668 CLASSPATH_SEPARATOR
669 LIBART_LIBS
670 LIBART_CFLAGS
671 GLIB_LIBS
672 GLIB_CFLAGS
673 GTK_LIBS
674 GTK_CFLAGS
675 PKG_CONFIG
676 LDLIBICONV
677 LTLIBICONV
678 LIBICONV
679 USING_GCC_FALSE
680 USING_GCC_TRUE
681 HASH_SYNC_SPEC
682 LIBGCJ_BC_SPEC
683 LIBGCJ_SPEC
684 USE_LIBGCJ_BC_FALSE
685 USE_LIBGCJ_BC_TRUE
686 USING_NO_THREADS_FALSE
687 USING_NO_THREADS_TRUE
688 USING_WIN32_THREADS_FALSE
689 USING_WIN32_THREADS_TRUE
690 USING_POSIX_THREADS_FALSE
691 USING_POSIX_THREADS_TRUE
692 THREADCXXFLAGS
693 THREADLDFLAGS
694 THREADSTARTFILESPEC
695 THREADSPEC
696 THREADDEPS
697 THREADINCS
698 THREADLIBS
699 USING_NOGC_FALSE
700 USING_NOGC_TRUE
701 USING_BOEHMGC_FALSE
702 USING_BOEHMGC_TRUE
703 GCTESTSPEC
704 JC1GCSPEC
705 GCSPEC
706 GCDEPS
707 GCINCS
708 GCLIBS
709 LIBGCJTESTSPEC
710 LIBMATHSPEC
711 LIBSTDCXXSPEC
712 extra_ldflags
713 extra_ldflags_libjava
714 X_EXTRA_LIBS
715 X_LIBS
716 X_PRE_LIBS
717 X_CFLAGS
718 XMKMF
719 ZLIBTESTSPEC
720 ZLIBSPEC
721 SYSTEMSPEC
722 USING_DARWIN_CRT_FALSE
723 USING_DARWIN_CRT_TRUE
724 USING_POSIX_PLATFORM_FALSE
725 USING_POSIX_PLATFORM_TRUE
726 USING_WIN32_PLATFORM_FALSE
727 USING_WIN32_PLATFORM_TRUE
728 PLATFORM
729 LIBFFIINCS
730 LIBFFI
731 INTERPRETER_FALSE
732 INTERPRETER_TRUE
733 INTERPRETER
734 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE
735 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE
736 SUPPRESS_LIBGCJ_BC_FALSE
737 SUPPRESS_LIBGCJ_BC_TRUE
738 JAVA_HOME
739 JAVA_HOME_SET_FALSE
740 JAVA_HOME_SET_TRUE
741 INSTALL_ECJ_JAR_FALSE
742 INSTALL_ECJ_JAR_TRUE
743 BUILD_ECJ1_FALSE
744 BUILD_ECJ1_TRUE
745 ECJ_JAR
746 ECJ_BUILD_JAR
747 TESTSUBDIR_FALSE
748 TESTSUBDIR_TRUE
749 subdirs
750 am__fastdepGCJ_FALSE
751 am__fastdepGCJ_TRUE
752 GCJDEPMODE
753 GCJFLAGS
754 ac_ct_GCJ
756 lt_host_flags
757 CXXCPP
759 OTOOL64
760 OTOOL
761 LIPO
762 NMEDIT
763 DSYMUTIL
764 OBJDUMP
766 ac_ct_DUMPBIN
767 DUMPBIN
768 FGREP
769 EGREP
770 GREP
772 LIBTOOL
773 DIRLTDL
774 LIBLTDL
775 INCLTDL
776 host_exeext
777 GCJH
778 GCC_FOR_ECJX
779 GCJ_FOR_ECJX
780 X_AWT_FALSE
781 X_AWT_TRUE
782 XLIB_AWT_FALSE
783 XLIB_AWT_TRUE
784 TOOLKIT
785 LIBGCJDEBUG
786 BUILD_SUBLIBS_FALSE
787 BUILD_SUBLIBS_TRUE
788 LIBGCJ_LD_EXPORT_ALL
789 LIBGCJ_LD_SYMBOLIC_FUNCTIONS
790 LIBGCJ_LD_SYMBOLIC
791 LIBGCJ_SUBLIB_CORE_EXTRA_DEPS
792 LIBGCJ_SUBLIB_LTFLAGS
793 LIBGCJ_JAVAFLAGS
794 LIBGCJ_CXXFLAGS
795 LIBGCJ_CFLAGS
796 MAINT
797 MAINTAINER_MODE_FALSE
798 MAINTAINER_MODE_TRUE
799 UNZIP
802 DLLTOOL
803 RANLIB
807 am__fastdepCXX_FALSE
808 am__fastdepCXX_TRUE
809 CXXDEPMODE
810 am__fastdepCC_FALSE
811 am__fastdepCC_TRUE
812 CCDEPMODE
813 am__nodep
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 LIBSTDCXX_RAW_CXX_LDFLAGS
861 LIBSTDCXX_RAW_CXX_CXXFLAGS
862 target_noncanonical
863 target_os
864 target_vendor
865 target_cpu
866 target
867 host_os
868 host_vendor
869 host_cpu
870 host
871 multi_basedir
872 target_subdir
873 host_subdir
874 build_subdir
875 build_libsubdir
876 build_os
877 build_vendor
878 build_cpu
879 build
880 target_alias
881 host_alias
882 build_alias
883 LIBS
884 ECHO_T
885 ECHO_N
886 ECHO_C
887 DEFS
888 mandir
889 localedir
890 libdir
891 psdir
892 pdfdir
893 dvidir
894 htmldir
895 infodir
896 docdir
897 oldincludedir
898 includedir
899 localstatedir
900 sharedstatedir
901 sysconfdir
902 datadir
903 datarootdir
904 libexecdir
905 sbindir
906 bindir
907 program_transform_name
908 prefix
909 exec_prefix
910 PACKAGE_URL
911 PACKAGE_BUGREPORT
912 PACKAGE_STRING
913 PACKAGE_VERSION
914 PACKAGE_TARNAME
915 PACKAGE_NAME
916 PATH_SEPARATOR
917 SHELL'
918 ac_subst_files=''
919 ac_user_opts='
920 enable_option_checking
921 with_build_libsubdir
922 with_target_subdir
923 enable_multilib
924 with_cross_host
925 with_newlib
926 enable_version_specific_runtime_libs
927 enable_browser_plugin
928 enable_gconf_peer
929 with_antlr_jar
930 enable_gjdoc
931 enable_java_maintainer_mode
932 enable_dependency_tracking
933 enable_maintainer_mode
934 enable_libgcj_sublibs
935 enable_libgcj_debug
936 with_escher
937 enable_java_awt
938 enable_shared
939 enable_static
940 with_pic
941 enable_fast_install
942 with_gnu_ld
943 enable_libtool_lock
944 enable_getenv_properties
945 enable_hash_synchronization
946 with_ecj_jar
947 with_java_home
948 enable_libgcj_bc
949 enable_reduced_reflection
950 with_win32_nlsapi
951 enable_gc_debug
952 enable_interpreter
953 enable_java_net
954 with_libffi
955 enable_jvmpi
956 with_ecos
957 with_system_zlib
958 with_x
959 enable_java_gc
960 enable_rpath
961 with_libiconv_prefix
962 enable_tls
963 with_system_libunwind
964 enable_symvers
965 with_python_dir
966 enable_aot_compile_rpm
967 enable_java_home
968 with_gcc_suffix
969 with_arch_directory
970 with_os_directory
971 with_origin_name
972 with_arch_suffix
973 with_jvm_root_dir
974 with_jvm_jar_dir
976 ac_precious_vars='build_alias
977 host_alias
978 target_alias
980 CFLAGS
981 LDFLAGS
982 LIBS
983 CPPFLAGS
985 CXXFLAGS
988 CXXCPP
989 XMKMF'
990 ac_subdirs_all='classpath libltdl'
992 # Initialize some variables set by options.
993 ac_init_help=
994 ac_init_version=false
995 ac_unrecognized_opts=
996 ac_unrecognized_sep=
997 # The variables have the same names as the options, with
998 # dashes changed to underlines.
999 cache_file=/dev/null
1000 exec_prefix=NONE
1001 no_create=
1002 no_recursion=
1003 prefix=NONE
1004 program_prefix=NONE
1005 program_suffix=NONE
1006 program_transform_name=s,x,x,
1007 silent=
1008 site=
1009 srcdir=
1010 verbose=
1011 x_includes=NONE
1012 x_libraries=NONE
1014 # Installation directory options.
1015 # These are left unexpanded so users can "make install exec_prefix=/foo"
1016 # and all the variables that are supposed to be based on exec_prefix
1017 # by default will actually change.
1018 # Use braces instead of parens because sh, perl, etc. also accept them.
1019 # (The list follows the same order as the GNU Coding Standards.)
1020 bindir='${exec_prefix}/bin'
1021 sbindir='${exec_prefix}/sbin'
1022 libexecdir='${exec_prefix}/libexec'
1023 datarootdir='${prefix}/share'
1024 datadir='${datarootdir}'
1025 sysconfdir='${prefix}/etc'
1026 sharedstatedir='${prefix}/com'
1027 localstatedir='${prefix}/var'
1028 includedir='${prefix}/include'
1029 oldincludedir='/usr/include'
1030 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1031 infodir='${datarootdir}/info'
1032 htmldir='${docdir}'
1033 dvidir='${docdir}'
1034 pdfdir='${docdir}'
1035 psdir='${docdir}'
1036 libdir='${exec_prefix}/lib'
1037 localedir='${datarootdir}/locale'
1038 mandir='${datarootdir}/man'
1040 ac_prev=
1041 ac_dashdash=
1042 for ac_option
1044 # If the previous option needs an argument, assign it.
1045 if test -n "$ac_prev"; then
1046 eval $ac_prev=\$ac_option
1047 ac_prev=
1048 continue
1051 case $ac_option in
1052 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1053 *) ac_optarg=yes ;;
1054 esac
1056 # Accept the important Cygnus configure options, so we can diagnose typos.
1058 case $ac_dashdash$ac_option in
1060 ac_dashdash=yes ;;
1062 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1063 ac_prev=bindir ;;
1064 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1065 bindir=$ac_optarg ;;
1067 -build | --build | --buil | --bui | --bu)
1068 ac_prev=build_alias ;;
1069 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1070 build_alias=$ac_optarg ;;
1072 -cache-file | --cache-file | --cache-fil | --cache-fi \
1073 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1074 ac_prev=cache_file ;;
1075 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1076 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1077 cache_file=$ac_optarg ;;
1079 --config-cache | -C)
1080 cache_file=config.cache ;;
1082 -datadir | --datadir | --datadi | --datad)
1083 ac_prev=datadir ;;
1084 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1085 datadir=$ac_optarg ;;
1087 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1088 | --dataroo | --dataro | --datar)
1089 ac_prev=datarootdir ;;
1090 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1091 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1092 datarootdir=$ac_optarg ;;
1094 -disable-* | --disable-*)
1095 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098 as_fn_error "invalid feature name: $ac_useropt"
1099 ac_useropt_orig=$ac_useropt
1100 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101 case $ac_user_opts in
1103 "enable_$ac_useropt"
1104 "*) ;;
1105 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1106 ac_unrecognized_sep=', ';;
1107 esac
1108 eval enable_$ac_useropt=no ;;
1110 -docdir | --docdir | --docdi | --doc | --do)
1111 ac_prev=docdir ;;
1112 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1113 docdir=$ac_optarg ;;
1115 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1116 ac_prev=dvidir ;;
1117 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1118 dvidir=$ac_optarg ;;
1120 -enable-* | --enable-*)
1121 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error "invalid feature name: $ac_useropt"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1129 "enable_$ac_useropt"
1130 "*) ;;
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
1133 esac
1134 eval enable_$ac_useropt=\$ac_optarg ;;
1136 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1137 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1138 | --exec | --exe | --ex)
1139 ac_prev=exec_prefix ;;
1140 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1141 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1142 | --exec=* | --exe=* | --ex=*)
1143 exec_prefix=$ac_optarg ;;
1145 -gas | --gas | --ga | --g)
1146 # Obsolete; use --with-gas.
1147 with_gas=yes ;;
1149 -help | --help | --hel | --he | -h)
1150 ac_init_help=long ;;
1151 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1152 ac_init_help=recursive ;;
1153 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1154 ac_init_help=short ;;
1156 -host | --host | --hos | --ho)
1157 ac_prev=host_alias ;;
1158 -host=* | --host=* | --hos=* | --ho=*)
1159 host_alias=$ac_optarg ;;
1161 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1162 ac_prev=htmldir ;;
1163 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1164 | --ht=*)
1165 htmldir=$ac_optarg ;;
1167 -includedir | --includedir | --includedi | --included | --include \
1168 | --includ | --inclu | --incl | --inc)
1169 ac_prev=includedir ;;
1170 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1171 | --includ=* | --inclu=* | --incl=* | --inc=*)
1172 includedir=$ac_optarg ;;
1174 -infodir | --infodir | --infodi | --infod | --info | --inf)
1175 ac_prev=infodir ;;
1176 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1177 infodir=$ac_optarg ;;
1179 -libdir | --libdir | --libdi | --libd)
1180 ac_prev=libdir ;;
1181 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1182 libdir=$ac_optarg ;;
1184 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1185 | --libexe | --libex | --libe)
1186 ac_prev=libexecdir ;;
1187 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1188 | --libexe=* | --libex=* | --libe=*)
1189 libexecdir=$ac_optarg ;;
1191 -localedir | --localedir | --localedi | --localed | --locale)
1192 ac_prev=localedir ;;
1193 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1194 localedir=$ac_optarg ;;
1196 -localstatedir | --localstatedir | --localstatedi | --localstated \
1197 | --localstate | --localstat | --localsta | --localst | --locals)
1198 ac_prev=localstatedir ;;
1199 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1200 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1201 localstatedir=$ac_optarg ;;
1203 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1204 ac_prev=mandir ;;
1205 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1206 mandir=$ac_optarg ;;
1208 -nfp | --nfp | --nf)
1209 # Obsolete; use --without-fp.
1210 with_fp=no ;;
1212 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1213 | --no-cr | --no-c | -n)
1214 no_create=yes ;;
1216 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1217 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1218 no_recursion=yes ;;
1220 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1221 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1222 | --oldin | --oldi | --old | --ol | --o)
1223 ac_prev=oldincludedir ;;
1224 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1225 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1226 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1227 oldincludedir=$ac_optarg ;;
1229 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1230 ac_prev=prefix ;;
1231 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1232 prefix=$ac_optarg ;;
1234 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1235 | --program-pre | --program-pr | --program-p)
1236 ac_prev=program_prefix ;;
1237 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1238 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1239 program_prefix=$ac_optarg ;;
1241 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1242 | --program-suf | --program-su | --program-s)
1243 ac_prev=program_suffix ;;
1244 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1245 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1246 program_suffix=$ac_optarg ;;
1248 -program-transform-name | --program-transform-name \
1249 | --program-transform-nam | --program-transform-na \
1250 | --program-transform-n | --program-transform- \
1251 | --program-transform | --program-transfor \
1252 | --program-transfo | --program-transf \
1253 | --program-trans | --program-tran \
1254 | --progr-tra | --program-tr | --program-t)
1255 ac_prev=program_transform_name ;;
1256 -program-transform-name=* | --program-transform-name=* \
1257 | --program-transform-nam=* | --program-transform-na=* \
1258 | --program-transform-n=* | --program-transform-=* \
1259 | --program-transform=* | --program-transfor=* \
1260 | --program-transfo=* | --program-transf=* \
1261 | --program-trans=* | --program-tran=* \
1262 | --progr-tra=* | --program-tr=* | --program-t=*)
1263 program_transform_name=$ac_optarg ;;
1265 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1266 ac_prev=pdfdir ;;
1267 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1268 pdfdir=$ac_optarg ;;
1270 -psdir | --psdir | --psdi | --psd | --ps)
1271 ac_prev=psdir ;;
1272 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1273 psdir=$ac_optarg ;;
1275 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1276 | -silent | --silent | --silen | --sile | --sil)
1277 silent=yes ;;
1279 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1280 ac_prev=sbindir ;;
1281 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1282 | --sbi=* | --sb=*)
1283 sbindir=$ac_optarg ;;
1285 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1286 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1287 | --sharedst | --shareds | --shared | --share | --shar \
1288 | --sha | --sh)
1289 ac_prev=sharedstatedir ;;
1290 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1291 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1292 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1293 | --sha=* | --sh=*)
1294 sharedstatedir=$ac_optarg ;;
1296 -site | --site | --sit)
1297 ac_prev=site ;;
1298 -site=* | --site=* | --sit=*)
1299 site=$ac_optarg ;;
1301 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1302 ac_prev=srcdir ;;
1303 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1304 srcdir=$ac_optarg ;;
1306 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1307 | --syscon | --sysco | --sysc | --sys | --sy)
1308 ac_prev=sysconfdir ;;
1309 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1310 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1311 sysconfdir=$ac_optarg ;;
1313 -target | --target | --targe | --targ | --tar | --ta | --t)
1314 ac_prev=target_alias ;;
1315 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1316 target_alias=$ac_optarg ;;
1318 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1319 verbose=yes ;;
1321 -version | --version | --versio | --versi | --vers | -V)
1322 ac_init_version=: ;;
1324 -with-* | --with-*)
1325 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1326 # Reject names that are not valid shell variable names.
1327 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1328 as_fn_error "invalid package name: $ac_useropt"
1329 ac_useropt_orig=$ac_useropt
1330 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1331 case $ac_user_opts in
1333 "with_$ac_useropt"
1334 "*) ;;
1335 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1336 ac_unrecognized_sep=', ';;
1337 esac
1338 eval with_$ac_useropt=\$ac_optarg ;;
1340 -without-* | --without-*)
1341 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1342 # Reject names that are not valid shell variable names.
1343 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1344 as_fn_error "invalid package name: $ac_useropt"
1345 ac_useropt_orig=$ac_useropt
1346 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1347 case $ac_user_opts in
1349 "with_$ac_useropt"
1350 "*) ;;
1351 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1352 ac_unrecognized_sep=', ';;
1353 esac
1354 eval with_$ac_useropt=no ;;
1356 --x)
1357 # Obsolete; use --with-x.
1358 with_x=yes ;;
1360 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1361 | --x-incl | --x-inc | --x-in | --x-i)
1362 ac_prev=x_includes ;;
1363 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1364 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1365 x_includes=$ac_optarg ;;
1367 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1368 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1369 ac_prev=x_libraries ;;
1370 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1371 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1372 x_libraries=$ac_optarg ;;
1374 -*) as_fn_error "unrecognized option: \`$ac_option'
1375 Try \`$0 --help' for more information."
1378 *=*)
1379 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1380 # Reject names that are not valid shell variable names.
1381 case $ac_envvar in #(
1382 '' | [0-9]* | *[!_$as_cr_alnum]* )
1383 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1384 esac
1385 eval $ac_envvar=\$ac_optarg
1386 export $ac_envvar ;;
1389 # FIXME: should be removed in autoconf 3.0.
1390 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1391 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1392 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1393 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1396 esac
1397 done
1399 if test -n "$ac_prev"; then
1400 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1401 as_fn_error "missing argument to $ac_option"
1404 if test -n "$ac_unrecognized_opts"; then
1405 case $enable_option_checking in
1406 no) ;;
1407 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1408 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1409 esac
1412 # Check all directory arguments for consistency.
1413 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1414 datadir sysconfdir sharedstatedir localstatedir includedir \
1415 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1416 libdir localedir mandir
1418 eval ac_val=\$$ac_var
1419 # Remove trailing slashes.
1420 case $ac_val in
1421 */ )
1422 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1423 eval $ac_var=\$ac_val;;
1424 esac
1425 # Be sure to have absolute directory names.
1426 case $ac_val in
1427 [\\/$]* | ?:[\\/]* ) continue;;
1428 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1429 esac
1430 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1431 done
1433 # There might be people who depend on the old broken behavior: `$host'
1434 # used to hold the argument of --host etc.
1435 # FIXME: To remove some day.
1436 build=$build_alias
1437 host=$host_alias
1438 target=$target_alias
1440 # FIXME: To remove some day.
1441 if test "x$host_alias" != x; then
1442 if test "x$build_alias" = x; then
1443 cross_compiling=maybe
1444 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1445 If a cross compiler is detected then cross compile mode will be used." >&2
1446 elif test "x$build_alias" != "x$host_alias"; then
1447 cross_compiling=yes
1451 ac_tool_prefix=
1452 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1454 test "$silent" = yes && exec 6>/dev/null
1457 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1458 ac_ls_di=`ls -di .` &&
1459 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1460 as_fn_error "working directory cannot be determined"
1461 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1462 as_fn_error "pwd does not report name of working directory"
1465 # Find the source files, if location was not specified.
1466 if test -z "$srcdir"; then
1467 ac_srcdir_defaulted=yes
1468 # Try the directory containing this script, then the parent directory.
1469 ac_confdir=`$as_dirname -- "$as_myself" ||
1470 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1471 X"$as_myself" : 'X\(//\)[^/]' \| \
1472 X"$as_myself" : 'X\(//\)$' \| \
1473 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1474 $as_echo X"$as_myself" |
1475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1476 s//\1/
1479 /^X\(\/\/\)[^/].*/{
1480 s//\1/
1483 /^X\(\/\/\)$/{
1484 s//\1/
1487 /^X\(\/\).*/{
1488 s//\1/
1491 s/.*/./; q'`
1492 srcdir=$ac_confdir
1493 if test ! -r "$srcdir/$ac_unique_file"; then
1494 srcdir=..
1496 else
1497 ac_srcdir_defaulted=no
1499 if test ! -r "$srcdir/$ac_unique_file"; then
1500 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1501 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1503 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1504 ac_abs_confdir=`(
1505 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1506 pwd)`
1507 # When building in place, set srcdir=.
1508 if test "$ac_abs_confdir" = "$ac_pwd"; then
1509 srcdir=.
1511 # Remove unnecessary trailing slashes from srcdir.
1512 # Double slashes in file names in object file debugging info
1513 # mess up M-x gdb in Emacs.
1514 case $srcdir in
1515 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1516 esac
1517 for ac_var in $ac_precious_vars; do
1518 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1519 eval ac_env_${ac_var}_value=\$${ac_var}
1520 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1521 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1522 done
1525 # Report the --help message.
1527 if test "$ac_init_help" = "long"; then
1528 # Omit some internal or obsolete options to make the list less imposing.
1529 # This message is too long to be a string in the A/UX 3.1 sh.
1530 cat <<_ACEOF
1531 \`configure' configures libjava version-unused to adapt to many kinds of systems.
1533 Usage: $0 [OPTION]... [VAR=VALUE]...
1535 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1536 VAR=VALUE. See below for descriptions of some of the useful variables.
1538 Defaults for the options are specified in brackets.
1540 Configuration:
1541 -h, --help display this help and exit
1542 --help=short display options specific to this package
1543 --help=recursive display the short help of all the included packages
1544 -V, --version display version information and exit
1545 -q, --quiet, --silent do not print \`checking...' messages
1546 --cache-file=FILE cache test results in FILE [disabled]
1547 -C, --config-cache alias for \`--cache-file=config.cache'
1548 -n, --no-create do not create output files
1549 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1551 Installation directories:
1552 --prefix=PREFIX install architecture-independent files in PREFIX
1553 [$ac_default_prefix]
1554 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1555 [PREFIX]
1557 By default, \`make install' will install all the files in
1558 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1559 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1560 for instance \`--prefix=\$HOME'.
1562 For better control, use the options below.
1564 Fine tuning of the installation directories:
1565 --bindir=DIR user executables [EPREFIX/bin]
1566 --sbindir=DIR system admin executables [EPREFIX/sbin]
1567 --libexecdir=DIR program executables [EPREFIX/libexec]
1568 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1569 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1570 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1571 --libdir=DIR object code libraries [EPREFIX/lib]
1572 --includedir=DIR C header files [PREFIX/include]
1573 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1574 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1575 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1576 --infodir=DIR info documentation [DATAROOTDIR/info]
1577 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1578 --mandir=DIR man documentation [DATAROOTDIR/man]
1579 --docdir=DIR documentation root [DATAROOTDIR/doc/libjava]
1580 --htmldir=DIR html documentation [DOCDIR]
1581 --dvidir=DIR dvi documentation [DOCDIR]
1582 --pdfdir=DIR pdf documentation [DOCDIR]
1583 --psdir=DIR ps documentation [DOCDIR]
1584 _ACEOF
1586 cat <<\_ACEOF
1588 Program names:
1589 --program-prefix=PREFIX prepend PREFIX to installed program names
1590 --program-suffix=SUFFIX append SUFFIX to installed program names
1591 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1593 X features:
1594 --x-includes=DIR X include files are in DIR
1595 --x-libraries=DIR X library files are in DIR
1597 System types:
1598 --build=BUILD configure for building on BUILD [guessed]
1599 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1600 --target=TARGET configure for building compilers for TARGET [HOST]
1601 _ACEOF
1604 if test -n "$ac_init_help"; then
1605 case $ac_init_help in
1606 short | recursive ) echo "Configuration of libjava version-unused:";;
1607 esac
1608 cat <<\_ACEOF
1610 Optional Features:
1611 --disable-option-checking ignore unrecognized --enable/--with options
1612 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1613 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1614 --enable-multilib build many library versions (default)
1615 --enable-version-specific-runtime-libs
1616 specify that runtime libraries should be installed
1617 in a compiler-specific directory
1618 --enable-browser-plugin build gcjwebplugin web browser plugin
1619 --enable-gconf-peer compile GConf native peers for util.preferences
1620 --disable-gjdoc compile GJDoc (disabled by --disable-gjdoc)
1621 default=yes
1622 --enable-java-maintainer-mode
1623 allow rebuilding of .class and .h files
1624 --disable-dependency-tracking speeds up one-time build
1625 --enable-dependency-tracking do not reject slow dependency extractors
1626 --enable-maintainer-mode enable make rules and dependencies not useful
1627 (and sometimes confusing) to the casual installer
1628 --enable-libgcj-sublibs build libgcj as many sub-libraries
1629 --enable-libgcj-debug enable runtime debugging code
1630 --enable-java-awt list of AWT peer implementations to be built
1631 --enable-shared[=PKGS] build shared libraries [default=yes]
1632 --enable-static[=PKGS] build static libraries [default=yes]
1633 --enable-fast-install[=PKGS]
1634 optimize for fast installation [default=yes]
1635 --disable-libtool-lock avoid locking (might break parallel builds)
1636 --disable-getenv-properties
1637 don't set system properties from GCJ_PROPERTIES
1638 --enable-hash-synchronization
1639 use global hash table for monitor locks
1640 --enable-libgcj-bc enable(default) or disable BC ABI for portions of
1641 libgcj
1642 --enable-reduced-reflection
1643 enable or disable(default) -freduced-reflection when
1644 building portions of libgcj
1645 --enable-gc-debug include full support for pointer backtracing etc.
1646 --enable-interpreter enable interpreter
1647 --disable-java-net disable java.net
1648 --disable-jvmpi disable JVMPI support
1649 --enable-java-gc=TYPE choose garbage collector (default is boehm)
1650 --disable-rpath do not hardcode runtime library paths
1651 --enable-tls Use thread-local storage [default=yes]
1652 --disable-symvers disable symbol versioning for libjava
1653 --enable-aot-compile-rpm
1654 enable installation of aot-compile-rpm [default=no]
1655 --enable-java-home create a standard JDK-style directory layout in the
1656 install tree [default=no]
1658 Optional Packages:
1659 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1660 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1661 --with-build-libsubdir=DIR Directory where to find libraries for build system
1662 --with-target-subdir=SUBDIR
1663 configure in a subdirectory
1664 --with-cross-host=HOST configure with a cross compiler from HOST
1665 --with-newlib configure with newlib
1666 --with-antlr-jar=file Use ANTLR from the specified jar file
1667 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
1668 --with-pic try to use only PIC/non-PIC objects [default=use
1669 both]
1670 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1671 --with-ecj-jar=FILE use preinstalled ecj jar
1672 --with-java-home=DIRECTORY
1673 value of java.home system property
1674 --with-win32-nlsapi=ansi or unicows or unicode
1675 native MinGW libgcj Win32 OS API (default is ansi)
1676 --without-libffi don't use libffi
1677 --with-ecos enable runtime eCos target support
1678 --with-system-zlib use installed libz
1679 --with-x use the X Window System
1680 --with-gnu-ld assume the C compiler uses GNU ld default=no
1681 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1682 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1683 --with-system-libunwind use installed libunwind
1684 --with-python-dir the location to install Python modules. This path
1685 should NOT include the prefix.
1686 --with-gcc-suffix the GCC tool suffix (defaults to empty string)
1687 --with-arch-directory the arch directory under jre/lib (defaults to
1688 auto-detect)
1689 --with-os-directory the os directory under include (defaults to
1690 auto-detect)
1691 --with-origin-name the JPackage origin name of this package (default is
1692 gcj${gcc_suffix}
1693 --with-arch-suffix the arch directory suffix (default is the empty
1694 string
1695 --with-jvm-root-dir where to install SDK (default is ${prefix}/lib/jvm)
1696 --with-jvm-jar-dir where to install jars (default is
1697 ${prefix}/lib/jvm-exports)
1699 Some influential environment variables:
1700 CC C compiler command
1701 CFLAGS C compiler flags
1702 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1703 nonstandard directory <lib dir>
1704 LIBS libraries to pass to the linker, e.g. -l<library>
1705 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1706 you have headers in a nonstandard directory <include dir>
1707 CXX C++ compiler command
1708 CXXFLAGS C++ compiler flags
1709 CPP C preprocessor
1710 CXXCPP C++ preprocessor
1711 XMKMF Path to xmkmf, Makefile generator for X Window System
1713 Use these variables to override the choices made by `configure' or to help
1714 it to find libraries and programs with nonstandard names/locations.
1716 Report bugs to the package provider.
1717 _ACEOF
1718 ac_status=$?
1721 if test "$ac_init_help" = "recursive"; then
1722 # If there are subdirs, report their specific --help.
1723 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1724 test -d "$ac_dir" ||
1725 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1726 continue
1727 ac_builddir=.
1729 case "$ac_dir" in
1730 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1732 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1733 # A ".." for each directory in $ac_dir_suffix.
1734 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1735 case $ac_top_builddir_sub in
1736 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1737 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1738 esac ;;
1739 esac
1740 ac_abs_top_builddir=$ac_pwd
1741 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1742 # for backward compatibility:
1743 ac_top_builddir=$ac_top_build_prefix
1745 case $srcdir in
1746 .) # We are building in place.
1747 ac_srcdir=.
1748 ac_top_srcdir=$ac_top_builddir_sub
1749 ac_abs_top_srcdir=$ac_pwd ;;
1750 [\\/]* | ?:[\\/]* ) # Absolute name.
1751 ac_srcdir=$srcdir$ac_dir_suffix;
1752 ac_top_srcdir=$srcdir
1753 ac_abs_top_srcdir=$srcdir ;;
1754 *) # Relative name.
1755 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1756 ac_top_srcdir=$ac_top_build_prefix$srcdir
1757 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1758 esac
1759 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1761 cd "$ac_dir" || { ac_status=$?; continue; }
1762 # Check for guested configure.
1763 if test -f "$ac_srcdir/configure.gnu"; then
1764 echo &&
1765 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1766 elif test -f "$ac_srcdir/configure"; then
1767 echo &&
1768 $SHELL "$ac_srcdir/configure" --help=recursive
1769 else
1770 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1771 fi || ac_status=$?
1772 cd "$ac_pwd" || { ac_status=$?; break; }
1773 done
1776 test -n "$ac_init_help" && exit $ac_status
1777 if $ac_init_version; then
1778 cat <<\_ACEOF
1779 libjava configure version-unused
1780 generated by GNU Autoconf 2.64
1782 Copyright (C) 2009 Free Software Foundation, Inc.
1783 This configure script is free software; the Free Software Foundation
1784 gives unlimited permission to copy, distribute and modify it.
1785 _ACEOF
1786 exit
1789 ## ------------------------ ##
1790 ## Autoconf initialization. ##
1791 ## ------------------------ ##
1793 # ac_fn_c_try_compile LINENO
1794 # --------------------------
1795 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1796 ac_fn_c_try_compile ()
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 rm -f conftest.$ac_objext
1800 if { { ac_try="$ac_compile"
1801 case "(($ac_try" in
1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803 *) ac_try_echo=$ac_try;;
1804 esac
1805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806 $as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_compile") 2>conftest.err
1808 ac_status=$?
1809 if test -s conftest.err; then
1810 grep -v '^ *+' conftest.err >conftest.er1
1811 cat conftest.er1 >&5
1812 mv -f conftest.er1 conftest.err
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && {
1816 test -z "$ac_c_werror_flag" ||
1817 test ! -s conftest.err
1818 } && test -s conftest.$ac_objext; then :
1819 ac_retval=0
1820 else
1821 $as_echo "$as_me: failed program was:" >&5
1822 sed 's/^/| /' conftest.$ac_ext >&5
1824 ac_retval=1
1826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1827 return $ac_retval
1829 } # ac_fn_c_try_compile
1831 # ac_fn_cxx_try_compile LINENO
1832 # ----------------------------
1833 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1834 ac_fn_cxx_try_compile ()
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 rm -f conftest.$ac_objext
1838 if { { ac_try="$ac_compile"
1839 case "(($ac_try" in
1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1842 esac
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_compile") 2>conftest.err
1846 ac_status=$?
1847 if test -s conftest.err; then
1848 grep -v '^ *+' conftest.err >conftest.er1
1849 cat conftest.er1 >&5
1850 mv -f conftest.er1 conftest.err
1852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853 test $ac_status = 0; } && {
1854 test -z "$ac_cxx_werror_flag" ||
1855 test ! -s conftest.err
1856 } && test -s conftest.$ac_objext; then :
1857 ac_retval=0
1858 else
1859 $as_echo "$as_me: failed program was:" >&5
1860 sed 's/^/| /' conftest.$ac_ext >&5
1862 ac_retval=1
1864 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1865 return $ac_retval
1867 } # ac_fn_cxx_try_compile
1869 # ac_fn_c_try_link LINENO
1870 # -----------------------
1871 # Try to link conftest.$ac_ext, and return whether this succeeded.
1872 ac_fn_c_try_link ()
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 rm -f conftest.$ac_objext conftest$ac_exeext
1876 if { { ac_try="$ac_link"
1877 case "(($ac_try" in
1878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1879 *) ac_try_echo=$ac_try;;
1880 esac
1881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1882 $as_echo "$ac_try_echo"; } >&5
1883 (eval "$ac_link") 2>conftest.err
1884 ac_status=$?
1885 if test -s conftest.err; then
1886 grep -v '^ *+' conftest.err >conftest.er1
1887 cat conftest.er1 >&5
1888 mv -f conftest.er1 conftest.err
1890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891 test $ac_status = 0; } && {
1892 test -z "$ac_c_werror_flag" ||
1893 test ! -s conftest.err
1894 } && test -s conftest$ac_exeext && {
1895 test "$cross_compiling" = yes ||
1896 $as_test_x conftest$ac_exeext
1897 }; then :
1898 ac_retval=0
1899 else
1900 $as_echo "$as_me: failed program was:" >&5
1901 sed 's/^/| /' conftest.$ac_ext >&5
1903 ac_retval=1
1905 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1906 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1907 # interfere with the next link command; also delete a directory that is
1908 # left behind by Apple's compiler. We do this before executing the actions.
1909 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1910 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1911 return $ac_retval
1913 } # ac_fn_c_try_link
1915 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1916 # -------------------------------------------------------
1917 # Tests whether HEADER exists and can be compiled using the include files in
1918 # INCLUDES, setting the cache variable VAR accordingly.
1919 ac_fn_c_check_header_compile ()
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1923 $as_echo_n "checking for $2... " >&6; }
1924 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1925 $as_echo_n "(cached) " >&6
1926 else
1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h. */
1930 #include <$2>
1931 _ACEOF
1932 if ac_fn_c_try_compile "$LINENO"; then :
1933 eval "$3=yes"
1934 else
1935 eval "$3=no"
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939 eval ac_res=\$$3
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1942 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1944 } # ac_fn_c_check_header_compile
1946 # ac_fn_c_try_cpp LINENO
1947 # ----------------------
1948 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1949 ac_fn_c_try_cpp ()
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 if { { ac_try="$ac_cpp conftest.$ac_ext"
1953 case "(($ac_try" in
1954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1955 *) ac_try_echo=$ac_try;;
1956 esac
1957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1958 $as_echo "$ac_try_echo"; } >&5
1959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1960 ac_status=$?
1961 if test -s conftest.err; then
1962 grep -v '^ *+' conftest.err >conftest.er1
1963 cat conftest.er1 >&5
1964 mv -f conftest.er1 conftest.err
1966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1967 test $ac_status = 0; } >/dev/null && {
1968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1969 test ! -s conftest.err
1970 }; then :
1971 ac_retval=0
1972 else
1973 $as_echo "$as_me: failed program was:" >&5
1974 sed 's/^/| /' conftest.$ac_ext >&5
1976 ac_retval=1
1978 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1979 return $ac_retval
1981 } # ac_fn_c_try_cpp
1983 # ac_fn_c_try_run LINENO
1984 # ----------------------
1985 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1986 # that executables *can* be run.
1987 ac_fn_c_try_run ()
1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990 if { { ac_try="$ac_link"
1991 case "(($ac_try" in
1992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1993 *) ac_try_echo=$ac_try;;
1994 esac
1995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996 $as_echo "$ac_try_echo"; } >&5
1997 (eval "$ac_link") 2>&5
1998 ac_status=$?
1999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2001 { { case "(($ac_try" in
2002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2003 *) ac_try_echo=$ac_try;;
2004 esac
2005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2006 $as_echo "$ac_try_echo"; } >&5
2007 (eval "$ac_try") 2>&5
2008 ac_status=$?
2009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010 test $ac_status = 0; }; }; then :
2011 ac_retval=0
2012 else
2013 $as_echo "$as_me: program exited with status $ac_status" >&5
2014 $as_echo "$as_me: failed program was:" >&5
2015 sed 's/^/| /' conftest.$ac_ext >&5
2017 ac_retval=$ac_status
2019 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2020 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2021 return $ac_retval
2023 } # ac_fn_c_try_run
2025 # ac_fn_c_check_func LINENO FUNC VAR
2026 # ----------------------------------
2027 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2028 ac_fn_c_check_func ()
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2032 $as_echo_n "checking for $2... " >&6; }
2033 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2034 $as_echo_n "(cached) " >&6
2035 else
2036 if test x$gcc_no_link = xyes; then
2037 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2041 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2043 #define $2 innocuous_$2
2045 /* System header to define __stub macros and hopefully few prototypes,
2046 which can conflict with char $2 (); below.
2047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2048 <limits.h> exists even on freestanding compilers. */
2050 #ifdef __STDC__
2051 # include <limits.h>
2052 #else
2053 # include <assert.h>
2054 #endif
2056 #undef $2
2058 /* Override any GCC internal prototype to avoid an error.
2059 Use char because int might match the return type of a GCC
2060 builtin and then its argument prototype would still apply. */
2061 #ifdef __cplusplus
2062 extern "C"
2063 #endif
2064 char $2 ();
2065 /* The GNU C library defines this for functions which it implements
2066 to always fail with ENOSYS. Some functions are actually named
2067 something starting with __ and the normal name is an alias. */
2068 #if defined __stub_$2 || defined __stub___$2
2069 choke me
2070 #endif
2073 main ()
2075 return $2 ();
2077 return 0;
2079 _ACEOF
2080 if ac_fn_c_try_link "$LINENO"; then :
2081 eval "$3=yes"
2082 else
2083 eval "$3=no"
2085 rm -f core conftest.err conftest.$ac_objext \
2086 conftest$ac_exeext conftest.$ac_ext
2088 eval ac_res=\$$3
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2090 $as_echo "$ac_res" >&6; }
2091 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2093 } # ac_fn_c_check_func
2095 # ac_fn_cxx_try_cpp LINENO
2096 # ------------------------
2097 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2098 ac_fn_cxx_try_cpp ()
2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101 if { { ac_try="$ac_cpp conftest.$ac_ext"
2102 case "(($ac_try" in
2103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2104 *) ac_try_echo=$ac_try;;
2105 esac
2106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2107 $as_echo "$ac_try_echo"; } >&5
2108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2109 ac_status=$?
2110 if test -s conftest.err; then
2111 grep -v '^ *+' conftest.err >conftest.er1
2112 cat conftest.er1 >&5
2113 mv -f conftest.er1 conftest.err
2115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2116 test $ac_status = 0; } >/dev/null && {
2117 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2118 test ! -s conftest.err
2119 }; then :
2120 ac_retval=0
2121 else
2122 $as_echo "$as_me: failed program was:" >&5
2123 sed 's/^/| /' conftest.$ac_ext >&5
2125 ac_retval=1
2127 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2128 return $ac_retval
2130 } # ac_fn_cxx_try_cpp
2132 # ac_fn_cxx_try_link LINENO
2133 # -------------------------
2134 # Try to link conftest.$ac_ext, and return whether this succeeded.
2135 ac_fn_cxx_try_link ()
2137 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2138 rm -f conftest.$ac_objext conftest$ac_exeext
2139 if { { ac_try="$ac_link"
2140 case "(($ac_try" in
2141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142 *) ac_try_echo=$ac_try;;
2143 esac
2144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2145 $as_echo "$ac_try_echo"; } >&5
2146 (eval "$ac_link") 2>conftest.err
2147 ac_status=$?
2148 if test -s conftest.err; then
2149 grep -v '^ *+' conftest.err >conftest.er1
2150 cat conftest.er1 >&5
2151 mv -f conftest.er1 conftest.err
2153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2154 test $ac_status = 0; } && {
2155 test -z "$ac_cxx_werror_flag" ||
2156 test ! -s conftest.err
2157 } && test -s conftest$ac_exeext && {
2158 test "$cross_compiling" = yes ||
2159 $as_test_x conftest$ac_exeext
2160 }; then :
2161 ac_retval=0
2162 else
2163 $as_echo "$as_me: failed program was:" >&5
2164 sed 's/^/| /' conftest.$ac_ext >&5
2166 ac_retval=1
2168 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2169 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2170 # interfere with the next link command; also delete a directory that is
2171 # left behind by Apple's compiler. We do this before executing the actions.
2172 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2173 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2174 return $ac_retval
2176 } # ac_fn_cxx_try_link
2178 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2179 # -------------------------------------------------------
2180 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2181 # the include files in INCLUDES and setting the cache variable VAR
2182 # accordingly.
2183 ac_fn_c_check_header_mongrel ()
2185 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2186 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2188 $as_echo_n "checking for $2... " >&6; }
2189 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2190 $as_echo_n "(cached) " >&6
2192 eval ac_res=\$$3
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2194 $as_echo "$ac_res" >&6; }
2195 else
2196 # Is the header compilable?
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2198 $as_echo_n "checking $2 usability... " >&6; }
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h. */
2202 #include <$2>
2203 _ACEOF
2204 if ac_fn_c_try_compile "$LINENO"; then :
2205 ac_header_compiler=yes
2206 else
2207 ac_header_compiler=no
2209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2211 $as_echo "$ac_header_compiler" >&6; }
2213 # Is the header present?
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2215 $as_echo_n "checking $2 presence... " >&6; }
2216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2217 /* end confdefs.h. */
2218 #include <$2>
2219 _ACEOF
2220 if ac_fn_c_try_cpp "$LINENO"; then :
2221 ac_header_preproc=yes
2222 else
2223 ac_header_preproc=no
2225 rm -f conftest.err conftest.$ac_ext
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2227 $as_echo "$ac_header_preproc" >&6; }
2229 # So? What about this header?
2230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2231 yes:no: )
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2233 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2235 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2237 no:yes:* )
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2239 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2241 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2243 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2245 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2247 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2249 esac
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2251 $as_echo_n "checking for $2... " >&6; }
2252 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2253 $as_echo_n "(cached) " >&6
2254 else
2255 eval "$3=\$ac_header_compiler"
2257 eval ac_res=\$$3
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2259 $as_echo "$ac_res" >&6; }
2261 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2263 } # ac_fn_c_check_header_mongrel
2265 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2266 # ----------------------------------------------------
2267 # Tries to find if the field MEMBER exists in type AGGR, after including
2268 # INCLUDES, setting cache variable VAR accordingly.
2269 ac_fn_c_check_member ()
2271 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2273 $as_echo_n "checking for $2.$3... " >&6; }
2274 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2275 $as_echo_n "(cached) " >&6
2276 else
2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278 /* end confdefs.h. */
2281 main ()
2283 static $2 ac_aggr;
2284 if (ac_aggr.$3)
2285 return 0;
2287 return 0;
2289 _ACEOF
2290 if ac_fn_c_try_compile "$LINENO"; then :
2291 eval "$4=yes"
2292 else
2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h. */
2297 main ()
2299 static $2 ac_aggr;
2300 if (sizeof ac_aggr.$3)
2301 return 0;
2303 return 0;
2305 _ACEOF
2306 if ac_fn_c_try_compile "$LINENO"; then :
2307 eval "$4=yes"
2308 else
2309 eval "$4=no"
2311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2315 eval ac_res=\$$4
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2317 $as_echo "$ac_res" >&6; }
2318 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2320 } # ac_fn_c_check_member
2322 # ac_fn_c_check_decl LINENO SYMBOL VAR
2323 # ------------------------------------
2324 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2325 ac_fn_c_check_decl ()
2327 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2328 as_decl_name=`echo $2|sed 's/ *(.*//'`
2329 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2331 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2332 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2333 $as_echo_n "(cached) " >&6
2334 else
2335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2336 /* end confdefs.h. */
2339 main ()
2341 #ifndef $as_decl_name
2342 #ifdef __cplusplus
2343 (void) $as_decl_use;
2344 #else
2345 (void) $as_decl_name;
2346 #endif
2347 #endif
2350 return 0;
2352 _ACEOF
2353 if ac_fn_c_try_compile "$LINENO"; then :
2354 eval "$3=yes"
2355 else
2356 eval "$3=no"
2358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2360 eval ac_res=\$$3
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2362 $as_echo "$ac_res" >&6; }
2363 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2365 } # ac_fn_c_check_decl
2367 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2368 # --------------------------------------------
2369 # Tries to find the compile-time value of EXPR in a program that includes
2370 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2371 # computed
2372 ac_fn_c_compute_int ()
2374 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2375 if test "$cross_compiling" = yes; then
2376 # Depending upon the size, compute the lo and hi bounds.
2377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2378 /* end confdefs.h. */
2381 main ()
2383 static int test_array [1 - 2 * !(($2) >= 0)];
2384 test_array [0] = 0
2387 return 0;
2389 _ACEOF
2390 if ac_fn_c_try_compile "$LINENO"; then :
2391 ac_lo=0 ac_mid=0
2392 while :; do
2393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2394 /* end confdefs.h. */
2397 main ()
2399 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2400 test_array [0] = 0
2403 return 0;
2405 _ACEOF
2406 if ac_fn_c_try_compile "$LINENO"; then :
2407 ac_hi=$ac_mid; break
2408 else
2409 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2410 if test $ac_lo -le $ac_mid; then
2411 ac_lo= ac_hi=
2412 break
2414 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2417 done
2418 else
2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420 /* end confdefs.h. */
2423 main ()
2425 static int test_array [1 - 2 * !(($2) < 0)];
2426 test_array [0] = 0
2429 return 0;
2431 _ACEOF
2432 if ac_fn_c_try_compile "$LINENO"; then :
2433 ac_hi=-1 ac_mid=-1
2434 while :; do
2435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2436 /* end confdefs.h. */
2439 main ()
2441 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2442 test_array [0] = 0
2445 return 0;
2447 _ACEOF
2448 if ac_fn_c_try_compile "$LINENO"; then :
2449 ac_lo=$ac_mid; break
2450 else
2451 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2452 if test $ac_mid -le $ac_hi; then
2453 ac_lo= ac_hi=
2454 break
2456 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2459 done
2460 else
2461 ac_lo= ac_hi=
2463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2466 # Binary search between lo and hi bounds.
2467 while test "x$ac_lo" != "x$ac_hi"; do
2468 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2470 /* end confdefs.h. */
2473 main ()
2475 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2476 test_array [0] = 0
2479 return 0;
2481 _ACEOF
2482 if ac_fn_c_try_compile "$LINENO"; then :
2483 ac_hi=$ac_mid
2484 else
2485 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2488 done
2489 case $ac_lo in #((
2490 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2491 '') ac_retval=1 ;;
2492 esac
2493 else
2494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2495 /* end confdefs.h. */
2497 static long int longval () { return $2; }
2498 static unsigned long int ulongval () { return $2; }
2499 #include <stdio.h>
2500 #include <stdlib.h>
2502 main ()
2505 FILE *f = fopen ("conftest.val", "w");
2506 if (! f)
2507 return 1;
2508 if (($2) < 0)
2510 long int i = longval ();
2511 if (i != ($2))
2512 return 1;
2513 fprintf (f, "%ld", i);
2515 else
2517 unsigned long int i = ulongval ();
2518 if (i != ($2))
2519 return 1;
2520 fprintf (f, "%lu", i);
2522 /* Do not output a trailing newline, as this causes \r\n confusion
2523 on some platforms. */
2524 return ferror (f) || fclose (f) != 0;
2527 return 0;
2529 _ACEOF
2530 if ac_fn_c_try_run "$LINENO"; then :
2531 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2532 else
2533 ac_retval=1
2535 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2536 conftest.$ac_objext conftest.beam conftest.$ac_ext
2537 rm -f conftest.val
2540 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2541 return $ac_retval
2543 } # ac_fn_c_compute_int
2545 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2546 # -------------------------------------------
2547 # Tests whether TYPE exists after having included INCLUDES, setting cache
2548 # variable VAR accordingly.
2549 ac_fn_c_check_type ()
2551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2553 $as_echo_n "checking for $2... " >&6; }
2554 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2555 $as_echo_n "(cached) " >&6
2556 else
2557 eval "$3=no"
2558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2559 /* end confdefs.h. */
2562 main ()
2564 if (sizeof ($2))
2565 return 0;
2567 return 0;
2569 _ACEOF
2570 if ac_fn_c_try_compile "$LINENO"; then :
2571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2572 /* end confdefs.h. */
2575 main ()
2577 if (sizeof (($2)))
2578 return 0;
2580 return 0;
2582 _ACEOF
2583 if ac_fn_c_try_compile "$LINENO"; then :
2585 else
2586 eval "$3=yes"
2588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2592 eval ac_res=\$$3
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2594 $as_echo "$ac_res" >&6; }
2595 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2597 } # ac_fn_c_check_type
2598 cat >config.log <<_ACEOF
2599 This file contains any messages produced by compilers while
2600 running configure, to aid debugging if configure makes a mistake.
2602 It was created by libjava $as_me version-unused, which was
2603 generated by GNU Autoconf 2.64. Invocation command line was
2605 $ $0 $@
2607 _ACEOF
2608 exec 5>>config.log
2610 cat <<_ASUNAME
2611 ## --------- ##
2612 ## Platform. ##
2613 ## --------- ##
2615 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2616 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2617 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2618 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2619 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2621 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2622 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2624 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2625 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2626 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2627 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2628 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2629 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2630 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2632 _ASUNAME
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 for as_dir in $PATH
2637 IFS=$as_save_IFS
2638 test -z "$as_dir" && as_dir=.
2639 $as_echo "PATH: $as_dir"
2640 done
2641 IFS=$as_save_IFS
2643 } >&5
2645 cat >&5 <<_ACEOF
2648 ## ----------- ##
2649 ## Core tests. ##
2650 ## ----------- ##
2652 _ACEOF
2655 # Keep a trace of the command line.
2656 # Strip out --no-create and --no-recursion so they do not pile up.
2657 # Strip out --silent because we don't want to record it for future runs.
2658 # Also quote any args containing shell meta-characters.
2659 # Make two passes to allow for proper duplicate-argument suppression.
2660 ac_configure_args=
2661 ac_configure_args0=
2662 ac_configure_args1=
2663 ac_must_keep_next=false
2664 for ac_pass in 1 2
2666 for ac_arg
2668 case $ac_arg in
2669 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2670 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2671 | -silent | --silent | --silen | --sile | --sil)
2672 continue ;;
2673 *\'*)
2674 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2675 esac
2676 case $ac_pass in
2677 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2679 as_fn_append ac_configure_args1 " '$ac_arg'"
2680 if test $ac_must_keep_next = true; then
2681 ac_must_keep_next=false # Got value, back to normal.
2682 else
2683 case $ac_arg in
2684 *=* | --config-cache | -C | -disable-* | --disable-* \
2685 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2686 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2687 | -with-* | --with-* | -without-* | --without-* | --x)
2688 case "$ac_configure_args0 " in
2689 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2690 esac
2692 -* ) ac_must_keep_next=true ;;
2693 esac
2695 as_fn_append ac_configure_args " '$ac_arg'"
2697 esac
2698 done
2699 done
2700 { ac_configure_args0=; unset ac_configure_args0;}
2701 { ac_configure_args1=; unset ac_configure_args1;}
2703 # When interrupted or exit'd, cleanup temporary files, and complete
2704 # config.log. We remove comments because anyway the quotes in there
2705 # would cause problems or look ugly.
2706 # WARNING: Use '\'' to represent an apostrophe within the trap.
2707 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2708 trap 'exit_status=$?
2709 # Save into config.log some information that might help in debugging.
2711 echo
2713 cat <<\_ASBOX
2714 ## ---------------- ##
2715 ## Cache variables. ##
2716 ## ---------------- ##
2717 _ASBOX
2718 echo
2719 # The following way of writing the cache mishandles newlines in values,
2721 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2722 eval ac_val=\$$ac_var
2723 case $ac_val in #(
2724 *${as_nl}*)
2725 case $ac_var in #(
2726 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2727 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2728 esac
2729 case $ac_var in #(
2730 _ | IFS | as_nl) ;; #(
2731 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2732 *) { eval $ac_var=; unset $ac_var;} ;;
2733 esac ;;
2734 esac
2735 done
2736 (set) 2>&1 |
2737 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2738 *${as_nl}ac_space=\ *)
2739 sed -n \
2740 "s/'\''/'\''\\\\'\'''\''/g;
2741 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2742 ;; #(
2744 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2746 esac |
2747 sort
2749 echo
2751 cat <<\_ASBOX
2752 ## ----------------- ##
2753 ## Output variables. ##
2754 ## ----------------- ##
2755 _ASBOX
2756 echo
2757 for ac_var in $ac_subst_vars
2759 eval ac_val=\$$ac_var
2760 case $ac_val in
2761 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2762 esac
2763 $as_echo "$ac_var='\''$ac_val'\''"
2764 done | sort
2765 echo
2767 if test -n "$ac_subst_files"; then
2768 cat <<\_ASBOX
2769 ## ------------------- ##
2770 ## File substitutions. ##
2771 ## ------------------- ##
2772 _ASBOX
2773 echo
2774 for ac_var in $ac_subst_files
2776 eval ac_val=\$$ac_var
2777 case $ac_val in
2778 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2779 esac
2780 $as_echo "$ac_var='\''$ac_val'\''"
2781 done | sort
2782 echo
2785 if test -s confdefs.h; then
2786 cat <<\_ASBOX
2787 ## ----------- ##
2788 ## confdefs.h. ##
2789 ## ----------- ##
2790 _ASBOX
2791 echo
2792 cat confdefs.h
2793 echo
2795 test "$ac_signal" != 0 &&
2796 $as_echo "$as_me: caught signal $ac_signal"
2797 $as_echo "$as_me: exit $exit_status"
2798 } >&5
2799 rm -f core *.core core.conftest.* &&
2800 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2801 exit $exit_status
2803 for ac_signal in 1 2 13 15; do
2804 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2805 done
2806 ac_signal=0
2808 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2809 rm -f -r conftest* confdefs.h
2811 $as_echo "/* confdefs.h */" > confdefs.h
2813 # Predefined preprocessor variables.
2815 cat >>confdefs.h <<_ACEOF
2816 #define PACKAGE_NAME "$PACKAGE_NAME"
2817 _ACEOF
2819 cat >>confdefs.h <<_ACEOF
2820 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2821 _ACEOF
2823 cat >>confdefs.h <<_ACEOF
2824 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2825 _ACEOF
2827 cat >>confdefs.h <<_ACEOF
2828 #define PACKAGE_STRING "$PACKAGE_STRING"
2829 _ACEOF
2831 cat >>confdefs.h <<_ACEOF
2832 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2833 _ACEOF
2835 cat >>confdefs.h <<_ACEOF
2836 #define PACKAGE_URL "$PACKAGE_URL"
2837 _ACEOF
2840 # Let the site file select an alternate cache file if it wants to.
2841 # Prefer an explicitly selected file to automatically selected ones.
2842 ac_site_file1=NONE
2843 ac_site_file2=NONE
2844 if test -n "$CONFIG_SITE"; then
2845 ac_site_file1=$CONFIG_SITE
2846 elif test "x$prefix" != xNONE; then
2847 ac_site_file1=$prefix/share/config.site
2848 ac_site_file2=$prefix/etc/config.site
2849 else
2850 ac_site_file1=$ac_default_prefix/share/config.site
2851 ac_site_file2=$ac_default_prefix/etc/config.site
2853 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2855 test "x$ac_site_file" = xNONE && continue
2856 if test -r "$ac_site_file"; then
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2858 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2859 sed 's/^/| /' "$ac_site_file" >&5
2860 . "$ac_site_file"
2862 done
2864 if test -r "$cache_file"; then
2865 # Some versions of bash will fail to source /dev/null (special
2866 # files actually), so we avoid doing that.
2867 if test -f "$cache_file"; then
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2869 $as_echo "$as_me: loading cache $cache_file" >&6;}
2870 case $cache_file in
2871 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2872 *) . "./$cache_file";;
2873 esac
2875 else
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2877 $as_echo "$as_me: creating cache $cache_file" >&6;}
2878 >$cache_file
2881 # Check that the precious variables saved in the cache have kept the same
2882 # value.
2883 ac_cache_corrupted=false
2884 for ac_var in $ac_precious_vars; do
2885 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2886 eval ac_new_set=\$ac_env_${ac_var}_set
2887 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2888 eval ac_new_val=\$ac_env_${ac_var}_value
2889 case $ac_old_set,$ac_new_set in
2890 set,)
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2892 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2893 ac_cache_corrupted=: ;;
2894 ,set)
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2896 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2897 ac_cache_corrupted=: ;;
2898 ,);;
2900 if test "x$ac_old_val" != "x$ac_new_val"; then
2901 # differences in whitespace do not lead to failure.
2902 ac_old_val_w=`echo x $ac_old_val`
2903 ac_new_val_w=`echo x $ac_new_val`
2904 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2906 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2907 ac_cache_corrupted=:
2908 else
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2910 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2911 eval $ac_var=\$ac_old_val
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2914 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2916 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2917 fi;;
2918 esac
2919 # Pass precious variables to config.status.
2920 if test "$ac_new_set" = set; then
2921 case $ac_new_val in
2922 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2923 *) ac_arg=$ac_var=$ac_new_val ;;
2924 esac
2925 case " $ac_configure_args " in
2926 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2927 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2928 esac
2930 done
2931 if $ac_cache_corrupted; then
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2935 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2936 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2938 ## -------------------- ##
2939 ## Main body of script. ##
2940 ## -------------------- ##
2942 ac_ext=c
2943 ac_cpp='$CPP $CPPFLAGS'
2944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2955 ac_aux_dir=
2956 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2957 for ac_t in install-sh install.sh shtool; do
2958 if test -f "$ac_dir/$ac_t"; then
2959 ac_aux_dir=$ac_dir
2960 ac_install_sh="$ac_aux_dir/$ac_t -c"
2961 break 2
2963 done
2964 done
2965 if test -z "$ac_aux_dir"; then
2966 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2969 # These three variables are undocumented and unsupported,
2970 # and are intended to be withdrawn in a future Autoconf release.
2971 # They can cause serious problems if a builder's source tree is in a directory
2972 # whose full name contains unusual characters.
2973 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2974 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2975 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2978 # Make sure we can run config.sub.
2979 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2980 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2983 $as_echo_n "checking build system type... " >&6; }
2984 if test "${ac_cv_build+set}" = set; then :
2985 $as_echo_n "(cached) " >&6
2986 else
2987 ac_build_alias=$build_alias
2988 test "x$ac_build_alias" = x &&
2989 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2990 test "x$ac_build_alias" = x &&
2991 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2992 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2993 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2997 $as_echo "$ac_cv_build" >&6; }
2998 case $ac_cv_build in
2999 *-*-*) ;;
3000 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3001 esac
3002 build=$ac_cv_build
3003 ac_save_IFS=$IFS; IFS='-'
3004 set x $ac_cv_build
3005 shift
3006 build_cpu=$1
3007 build_vendor=$2
3008 shift; shift
3009 # Remember, the first character of IFS is used to create $*,
3010 # except with old shells:
3011 build_os=$*
3012 IFS=$ac_save_IFS
3013 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3016 case ${build_alias} in
3017 "") build_noncanonical=${build} ;;
3018 *) build_noncanonical=${build_alias} ;;
3019 esac
3021 case ${host_alias} in
3022 "") host_noncanonical=${build_noncanonical} ;;
3023 *) host_noncanonical=${host_alias} ;;
3024 esac
3026 case ${target_alias} in
3027 "") target_noncanonical=${host_noncanonical} ;;
3028 *) target_noncanonical=${target_alias} ;;
3029 esac
3032 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3033 # have matching libraries, they should use host libraries: Makefile.tpl
3034 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3035 # However, they still use the build modules, because the corresponding
3036 # host modules (e.g. bison) are only built for the host when bootstrap
3037 # finishes. So:
3038 # - build_subdir is where we find build modules, and never changes.
3039 # - build_libsubdir is where we find build libraries, and can be overridden.
3041 # Prefix 'build-' so this never conflicts with target_subdir.
3042 build_subdir="build-${build_noncanonical}"
3044 # Check whether --with-build-libsubdir was given.
3045 if test "${with_build_libsubdir+set}" = set; then :
3046 withval=$with_build_libsubdir; build_libsubdir="$withval"
3047 else
3048 build_libsubdir="$build_subdir"
3051 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3052 if ( test $srcdir = . && test -d gcc ) \
3053 || test -d $srcdir/../host-${host_noncanonical}; then
3054 host_subdir="host-${host_noncanonical}"
3055 else
3056 host_subdir=.
3058 # No prefix.
3059 target_subdir=${target_noncanonical}
3062 # We use these options to decide which functions to include.
3064 # Check whether --with-target-subdir was given.
3065 if test "${with_target_subdir+set}" = set; then :
3066 withval=$with_target_subdir;
3070 # We may get other options which we don't document:
3071 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3073 # Find the rest of the source tree framework.
3074 # Default to --enable-multilib
3075 # Check whether --enable-multilib was given.
3076 if test "${enable_multilib+set}" = set; then :
3077 enableval=$enable_multilib; case "$enableval" in
3078 yes) multilib=yes ;;
3079 no) multilib=no ;;
3080 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3081 esac
3082 else
3083 multilib=yes
3087 # We may get other options which we leave undocumented:
3088 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3089 # See config-ml.in if you want the gory details.
3091 if test "$srcdir" = "."; then
3092 if test "$with_target_subdir" != "."; then
3093 multi_basedir="$srcdir/$with_multisrctop../.."
3094 else
3095 multi_basedir="$srcdir/$with_multisrctop.."
3097 else
3098 multi_basedir="$srcdir/.."
3102 # Even if the default multilib is not a cross compilation,
3103 # it may be that some of the other multilibs are.
3104 if test $cross_compiling = no && test $multilib = yes \
3105 && test "x${with_multisubdir}" != x ; then
3106 cross_compiling=maybe
3109 ac_config_commands="$ac_config_commands default-1"
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3113 $as_echo_n "checking host system type... " >&6; }
3114 if test "${ac_cv_host+set}" = set; then :
3115 $as_echo_n "(cached) " >&6
3116 else
3117 if test "x$host_alias" = x; then
3118 ac_cv_host=$ac_cv_build
3119 else
3120 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3121 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3126 $as_echo "$ac_cv_host" >&6; }
3127 case $ac_cv_host in
3128 *-*-*) ;;
3129 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3130 esac
3131 host=$ac_cv_host
3132 ac_save_IFS=$IFS; IFS='-'
3133 set x $ac_cv_host
3134 shift
3135 host_cpu=$1
3136 host_vendor=$2
3137 shift; shift
3138 # Remember, the first character of IFS is used to create $*,
3139 # except with old shells:
3140 host_os=$*
3141 IFS=$ac_save_IFS
3142 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3146 $as_echo_n "checking target system type... " >&6; }
3147 if test "${ac_cv_target+set}" = set; then :
3148 $as_echo_n "(cached) " >&6
3149 else
3150 if test "x$target_alias" = x; then
3151 ac_cv_target=$ac_cv_host
3152 else
3153 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3154 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3159 $as_echo "$ac_cv_target" >&6; }
3160 case $ac_cv_target in
3161 *-*-*) ;;
3162 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3163 esac
3164 target=$ac_cv_target
3165 ac_save_IFS=$IFS; IFS='-'
3166 set x $ac_cv_target
3167 shift
3168 target_cpu=$1
3169 target_vendor=$2
3170 shift; shift
3171 # Remember, the first character of IFS is used to create $*,
3172 # except with old shells:
3173 target_os=$*
3174 IFS=$ac_save_IFS
3175 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3178 # The aliases save the names the user supplied, while $host etc.
3179 # will get canonicalized.
3180 test -n "$target_alias" &&
3181 test "$program_prefix$program_suffix$program_transform_name" = \
3182 NONENONEs,x,x, &&
3183 program_prefix=${target_alias}-
3185 case ${build_alias} in
3186 "") build_noncanonical=${build} ;;
3187 *) build_noncanonical=${build_alias} ;;
3188 esac
3190 case ${target_alias} in
3191 "") target_noncanonical=${host_noncanonical} ;;
3192 *) target_noncanonical=${target_alias} ;;
3193 esac
3202 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
3203 -I\$(top_builddir)/../libstdc++-v3/include \
3204 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
3205 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
3206 LIBSTDCXX_RAW_CXX_LDFLAGS="\
3207 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
3212 # This works around the fact that libtool configuration may change LD
3213 # for this particular configuration, but some shells, instead of
3214 # keeping the changes in LD private, export them just because LD is
3215 # exported.
3216 ORIGINAL_LD_FOR_MULTILIBS=$LD
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3219 $as_echo_n "checking whether ln -s works... " >&6; }
3220 LN_S=$as_ln_s
3221 if test "$LN_S" = "ln -s"; then
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3223 $as_echo "yes" >&6; }
3224 else
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3226 $as_echo "no, using $LN_S" >&6; }
3230 # This works around an automake problem.
3231 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
3235 # Check whether --with-cross-host was given.
3236 if test "${with_cross_host+set}" = set; then :
3237 withval=$with_cross_host;
3242 # Check whether --with-newlib was given.
3243 if test "${with_newlib+set}" = set; then :
3244 withval=$with_newlib;
3248 # Check whether --enable-version-specific-runtime-libs was given.
3249 if test "${enable_version_specific_runtime_libs+set}" = set; then :
3250 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
3251 yes) version_specific_libs=yes ;;
3252 no) version_specific_libs=no ;;
3253 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3254 esac
3255 else
3256 version_specific_libs=no
3261 # Check whether --enable-browser-plugin was given.
3262 if test "${enable_browser_plugin+set}" = set; then :
3263 enableval=$enable_browser_plugin; case "$enableval" in
3264 yes) browser_plugin_enabled=yes ;;
3265 no) browser_plugin_enabled=no ;;
3266 *) as_fn_error "Unknown argument to enable/disable browser plugin" "$LINENO" 5;;
3267 esac
3268 else
3269 browser_plugin_enabled=no
3274 # Check whether --enable-gconf-peer was given.
3275 if test "${enable_gconf_peer+set}" = set; then :
3276 enableval=$enable_gconf_peer; case "$enableval" in
3277 yes) gconf_enabled=yes ;;
3278 no) gconf_enabled=no ;;
3279 *) as_fn_error "Unknown argument to enable/disable gconf-peer" "$LINENO" 5;;
3280 esac
3281 else
3282 gconf_enabled=no
3288 # Check whether --with-antlr-jar was given.
3289 if test "${with_antlr_jar+set}" = set; then :
3290 withval=$with_antlr_jar;
3291 ANTLR_JAR=$withval
3293 else
3295 ANTLR_JAR=
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr.jar" >&5
3301 $as_echo_n "checking for antlr.jar... " >&6; }
3302 if test "x$ANTLR_JAR" = x; then
3303 for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
3304 /usr/share/antlr/lib /usr/share/java /usr/lib;
3306 if test -f "$antlr_lib_home/antlr.jar"; then
3307 # FIXME: version check for antlr needed without using a VM
3308 ANTLR_JAR="$antlr_lib_home/antlr.jar"
3309 break
3311 done
3312 if test "x$ANTLR_JAR" = x; then
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
3314 $as_echo "not found" >&6; }
3315 else
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3317 $as_echo "$ANTLR_JAR" >&6; }
3319 else
3320 if test -f "${ANTLR_JAR}"; then
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3322 $as_echo "$ANTLR_JAR" >&6; }
3323 else
3324 as_fn_error "antlr jar file not found: $ANTLR_JAR" "$LINENO" 5
3329 # Check whether --enable-gjdoc was given.
3330 if test "${enable_gjdoc+set}" = set; then :
3331 enableval=$enable_gjdoc; case "${enableval}" in
3332 yes) BUILD_GJDOC=yes ;;
3333 no) BUILD_GJDOC=no ;;
3334 *) BUILD_GJDOC=yes ;;
3335 esac
3336 else
3337 BUILD_GJDOC=maybe
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gjdoc" >&5
3342 $as_echo_n "checking whether to build gjdoc... " >&6; }
3343 if test "x$BUILD_GJDOC" = xmaybe; then
3344 if test -f "${ANTLR_JAR}"; then
3345 BUILD_GJDOC=yes
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3347 $as_echo "yes" >&6; }
3348 else
3349 BUILD_GJDOC=no
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, antlr.jar not found" >&5
3351 $as_echo "no, antlr.jar not found" >&6; }
3353 else
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_GJDOC" >&5
3355 $as_echo "$BUILD_GJDOC" >&6; }
3357 if test "x${BUILD_GJDOC}" = xyes; then
3358 CREATE_GJDOC_TRUE=
3359 CREATE_GJDOC_FALSE='#'
3360 else
3361 CREATE_GJDOC_TRUE='#'
3362 CREATE_GJDOC_FALSE=
3366 # Check whether --enable-java-maintainer-mode was given.
3367 if test "${enable_java_maintainer_mode+set}" = set; then :
3368 enableval=$enable_java_maintainer_mode;
3371 if test "$enable_java_maintainer_mode" = yes; then
3372 JAVA_MAINTAINER_MODE_TRUE=
3373 JAVA_MAINTAINER_MODE_FALSE='#'
3374 else
3375 JAVA_MAINTAINER_MODE_TRUE='#'
3376 JAVA_MAINTAINER_MODE_FALSE=
3380 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
3383 # For libstdc++-v3, -fno-builtin must be present here so that a
3384 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
3385 # used in later tests. This may not be necessary in libjava; I don't know.
3386 save_CXXFLAGS="$CXXFLAGS"
3387 CXXFLAGS="$CXXFLAGS -fno-builtin"
3388 ac_ext=c
3389 ac_cpp='$CPP $CPPFLAGS'
3390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3393 if test -n "$ac_tool_prefix"; then
3394 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3395 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3397 $as_echo_n "checking for $ac_word... " >&6; }
3398 if test "${ac_cv_prog_CC+set}" = set; then :
3399 $as_echo_n "(cached) " >&6
3400 else
3401 if test -n "$CC"; then
3402 ac_cv_prog_CC="$CC" # Let the user override the test.
3403 else
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 for as_dir in $PATH
3407 IFS=$as_save_IFS
3408 test -z "$as_dir" && as_dir=.
3409 for ac_exec_ext in '' $ac_executable_extensions; do
3410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3411 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 break 2
3415 done
3416 done
3417 IFS=$as_save_IFS
3421 CC=$ac_cv_prog_CC
3422 if test -n "$CC"; then
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3424 $as_echo "$CC" >&6; }
3425 else
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427 $as_echo "no" >&6; }
3432 if test -z "$ac_cv_prog_CC"; then
3433 ac_ct_CC=$CC
3434 # Extract the first word of "gcc", so it can be a program name with args.
3435 set dummy gcc; ac_word=$2
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3437 $as_echo_n "checking for $ac_word... " >&6; }
3438 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3439 $as_echo_n "(cached) " >&6
3440 else
3441 if test -n "$ac_ct_CC"; then
3442 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3443 else
3444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445 for as_dir in $PATH
3447 IFS=$as_save_IFS
3448 test -z "$as_dir" && as_dir=.
3449 for ac_exec_ext in '' $ac_executable_extensions; do
3450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3451 ac_cv_prog_ac_ct_CC="gcc"
3452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3453 break 2
3455 done
3456 done
3457 IFS=$as_save_IFS
3461 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3462 if test -n "$ac_ct_CC"; then
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3464 $as_echo "$ac_ct_CC" >&6; }
3465 else
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3467 $as_echo "no" >&6; }
3470 if test "x$ac_ct_CC" = x; then
3471 CC=""
3472 else
3473 case $cross_compiling:$ac_tool_warned in
3474 yes:)
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3477 ac_tool_warned=yes ;;
3478 esac
3479 CC=$ac_ct_CC
3481 else
3482 CC="$ac_cv_prog_CC"
3485 if test -z "$CC"; then
3486 if test -n "$ac_tool_prefix"; then
3487 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3488 set dummy ${ac_tool_prefix}cc; ac_word=$2
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3490 $as_echo_n "checking for $ac_word... " >&6; }
3491 if test "${ac_cv_prog_CC+set}" = set; then :
3492 $as_echo_n "(cached) " >&6
3493 else
3494 if test -n "$CC"; then
3495 ac_cv_prog_CC="$CC" # Let the user override the test.
3496 else
3497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3498 for as_dir in $PATH
3500 IFS=$as_save_IFS
3501 test -z "$as_dir" && as_dir=.
3502 for ac_exec_ext in '' $ac_executable_extensions; do
3503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3504 ac_cv_prog_CC="${ac_tool_prefix}cc"
3505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3506 break 2
3508 done
3509 done
3510 IFS=$as_save_IFS
3514 CC=$ac_cv_prog_CC
3515 if test -n "$CC"; then
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3517 $as_echo "$CC" >&6; }
3518 else
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3520 $as_echo "no" >&6; }
3526 if test -z "$CC"; then
3527 # Extract the first word of "cc", so it can be a program name with args.
3528 set dummy cc; ac_word=$2
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3530 $as_echo_n "checking for $ac_word... " >&6; }
3531 if test "${ac_cv_prog_CC+set}" = set; then :
3532 $as_echo_n "(cached) " >&6
3533 else
3534 if test -n "$CC"; then
3535 ac_cv_prog_CC="$CC" # Let the user override the test.
3536 else
3537 ac_prog_rejected=no
3538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539 for as_dir in $PATH
3541 IFS=$as_save_IFS
3542 test -z "$as_dir" && as_dir=.
3543 for ac_exec_ext in '' $ac_executable_extensions; do
3544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3545 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3546 ac_prog_rejected=yes
3547 continue
3549 ac_cv_prog_CC="cc"
3550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3551 break 2
3553 done
3554 done
3555 IFS=$as_save_IFS
3557 if test $ac_prog_rejected = yes; then
3558 # We found a bogon in the path, so make sure we never use it.
3559 set dummy $ac_cv_prog_CC
3560 shift
3561 if test $# != 0; then
3562 # We chose a different compiler from the bogus one.
3563 # However, it has the same basename, so the bogon will be chosen
3564 # first if we set CC to just the basename; use the full file name.
3565 shift
3566 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3571 CC=$ac_cv_prog_CC
3572 if test -n "$CC"; then
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3574 $as_echo "$CC" >&6; }
3575 else
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3577 $as_echo "no" >&6; }
3582 if test -z "$CC"; then
3583 if test -n "$ac_tool_prefix"; then
3584 for ac_prog in cl.exe
3586 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3587 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3589 $as_echo_n "checking for $ac_word... " >&6; }
3590 if test "${ac_cv_prog_CC+set}" = set; then :
3591 $as_echo_n "(cached) " >&6
3592 else
3593 if test -n "$CC"; then
3594 ac_cv_prog_CC="$CC" # Let the user override the test.
3595 else
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597 for as_dir in $PATH
3599 IFS=$as_save_IFS
3600 test -z "$as_dir" && as_dir=.
3601 for ac_exec_ext in '' $ac_executable_extensions; do
3602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3603 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3605 break 2
3607 done
3608 done
3609 IFS=$as_save_IFS
3613 CC=$ac_cv_prog_CC
3614 if test -n "$CC"; then
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3616 $as_echo "$CC" >&6; }
3617 else
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619 $as_echo "no" >&6; }
3623 test -n "$CC" && break
3624 done
3626 if test -z "$CC"; then
3627 ac_ct_CC=$CC
3628 for ac_prog in cl.exe
3630 # Extract the first word of "$ac_prog", so it can be a program name with args.
3631 set dummy $ac_prog; ac_word=$2
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3633 $as_echo_n "checking for $ac_word... " >&6; }
3634 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3635 $as_echo_n "(cached) " >&6
3636 else
3637 if test -n "$ac_ct_CC"; then
3638 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3639 else
3640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641 for as_dir in $PATH
3643 IFS=$as_save_IFS
3644 test -z "$as_dir" && as_dir=.
3645 for ac_exec_ext in '' $ac_executable_extensions; do
3646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3647 ac_cv_prog_ac_ct_CC="$ac_prog"
3648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3649 break 2
3651 done
3652 done
3653 IFS=$as_save_IFS
3657 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3658 if test -n "$ac_ct_CC"; then
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3660 $as_echo "$ac_ct_CC" >&6; }
3661 else
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3663 $as_echo "no" >&6; }
3667 test -n "$ac_ct_CC" && break
3668 done
3670 if test "x$ac_ct_CC" = x; then
3671 CC=""
3672 else
3673 case $cross_compiling:$ac_tool_warned in
3674 yes:)
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3677 ac_tool_warned=yes ;;
3678 esac
3679 CC=$ac_ct_CC
3686 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3688 as_fn_error "no acceptable C compiler found in \$PATH
3689 See \`config.log' for more details." "$LINENO" 5; }
3691 # Provide some information about the compiler.
3692 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3693 set X $ac_compile
3694 ac_compiler=$2
3695 for ac_option in --version -v -V -qversion; do
3696 { { ac_try="$ac_compiler $ac_option >&5"
3697 case "(($ac_try" in
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3700 esac
3701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3702 $as_echo "$ac_try_echo"; } >&5
3703 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3704 ac_status=$?
3705 if test -s conftest.err; then
3706 sed '10a\
3707 ... rest of stderr output deleted ...
3708 10q' conftest.err >conftest.er1
3709 cat conftest.er1 >&5
3710 rm -f conftest.er1 conftest.err
3712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3713 test $ac_status = 0; }
3714 done
3716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717 /* end confdefs.h. */
3720 main ()
3724 return 0;
3726 _ACEOF
3727 # FIXME: Cleanup?
3728 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3729 (eval $ac_link) 2>&5
3730 ac_status=$?
3731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3732 test $ac_status = 0; }; then :
3733 gcc_no_link=no
3734 else
3735 gcc_no_link=yes
3737 if test x$gcc_no_link = xyes; then
3738 # Setting cross_compile will disable run tests; it will
3739 # also disable AC_CHECK_FILE but that's generally
3740 # correct if we can't link.
3741 cross_compiling=yes
3742 EXEEXT=
3743 else
3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h. */
3748 main ()
3752 return 0;
3754 _ACEOF
3755 ac_clean_files_save=$ac_clean_files
3756 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3757 # Try to create an executable without -o first, disregard a.out.
3758 # It will help us diagnose broken compilers, and finding out an intuition
3759 # of exeext.
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3761 $as_echo_n "checking for C compiler default output file name... " >&6; }
3762 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3764 # The possible output files:
3765 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3767 ac_rmfiles=
3768 for ac_file in $ac_files
3770 case $ac_file in
3771 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3772 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3773 esac
3774 done
3775 rm -f $ac_rmfiles
3777 if { { ac_try="$ac_link_default"
3778 case "(($ac_try" in
3779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780 *) ac_try_echo=$ac_try;;
3781 esac
3782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3783 $as_echo "$ac_try_echo"; } >&5
3784 (eval "$ac_link_default") 2>&5
3785 ac_status=$?
3786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3787 test $ac_status = 0; }; then :
3788 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3789 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3790 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3791 # so that the user can short-circuit this test for compilers unknown to
3792 # Autoconf.
3793 for ac_file in $ac_files ''
3795 test -f "$ac_file" || continue
3796 case $ac_file in
3797 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3799 [ab].out )
3800 # We found the default executable, but exeext='' is most
3801 # certainly right.
3802 break;;
3803 *.* )
3804 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3805 then :; else
3806 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3808 # We set ac_cv_exeext here because the later test for it is not
3809 # safe: cross compilers may not add the suffix if given an `-o'
3810 # argument, so we may need to know it at that point already.
3811 # Even if this section looks crufty: it has the advantage of
3812 # actually working.
3813 break;;
3815 break;;
3816 esac
3817 done
3818 test "$ac_cv_exeext" = no && ac_cv_exeext=
3820 else
3821 ac_file=''
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3824 $as_echo "$ac_file" >&6; }
3825 if test -z "$ac_file"; then :
3826 $as_echo "$as_me: failed program was:" >&5
3827 sed 's/^/| /' conftest.$ac_ext >&5
3829 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3831 { as_fn_set_status 77
3832 as_fn_error "C compiler cannot create executables
3833 See \`config.log' for more details." "$LINENO" 5; }; }
3835 ac_exeext=$ac_cv_exeext
3837 # Check that the compiler produces executables we can run. If not, either
3838 # the compiler is broken, or we cross compile.
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3840 $as_echo_n "checking whether the C compiler works... " >&6; }
3841 # If not cross compiling, check that we can run a simple program.
3842 if test "$cross_compiling" != yes; then
3843 if { ac_try='./$ac_file'
3844 { { case "(($ac_try" in
3845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846 *) ac_try_echo=$ac_try;;
3847 esac
3848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3849 $as_echo "$ac_try_echo"; } >&5
3850 (eval "$ac_try") 2>&5
3851 ac_status=$?
3852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3853 test $ac_status = 0; }; }; then
3854 cross_compiling=no
3855 else
3856 if test "$cross_compiling" = maybe; then
3857 cross_compiling=yes
3858 else
3859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3861 as_fn_error "cannot run C compiled programs.
3862 If you meant to cross compile, use \`--host'.
3863 See \`config.log' for more details." "$LINENO" 5; }
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3868 $as_echo "yes" >&6; }
3870 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3871 ac_clean_files=$ac_clean_files_save
3872 # Check that the compiler produces executables we can run. If not, either
3873 # the compiler is broken, or we cross compile.
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3875 $as_echo_n "checking whether we are cross compiling... " >&6; }
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3877 $as_echo "$cross_compiling" >&6; }
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3880 $as_echo_n "checking for suffix of executables... " >&6; }
3881 if { { ac_try="$ac_link"
3882 case "(($ac_try" in
3883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884 *) ac_try_echo=$ac_try;;
3885 esac
3886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3887 $as_echo "$ac_try_echo"; } >&5
3888 (eval "$ac_link") 2>&5
3889 ac_status=$?
3890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3891 test $ac_status = 0; }; then :
3892 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3893 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3894 # work properly (i.e., refer to `conftest.exe'), while it won't with
3895 # `rm'.
3896 for ac_file in conftest.exe conftest conftest.*; do
3897 test -f "$ac_file" || continue
3898 case $ac_file in
3899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3900 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3901 break;;
3902 * ) break;;
3903 esac
3904 done
3905 else
3906 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3908 as_fn_error "cannot compute suffix of executables: cannot compile and link
3909 See \`config.log' for more details." "$LINENO" 5; }
3911 rm -f conftest$ac_cv_exeext
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3913 $as_echo "$ac_cv_exeext" >&6; }
3915 rm -f conftest.$ac_ext
3916 EXEEXT=$ac_cv_exeext
3917 ac_exeext=$EXEEXT
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3920 $as_echo_n "checking for suffix of object files... " >&6; }
3921 if test "${ac_cv_objext+set}" = set; then :
3922 $as_echo_n "(cached) " >&6
3923 else
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3928 main ()
3932 return 0;
3934 _ACEOF
3935 rm -f conftest.o conftest.obj
3936 if { { ac_try="$ac_compile"
3937 case "(($ac_try" in
3938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3939 *) ac_try_echo=$ac_try;;
3940 esac
3941 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3942 $as_echo "$ac_try_echo"; } >&5
3943 (eval "$ac_compile") 2>&5
3944 ac_status=$?
3945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3946 test $ac_status = 0; }; then :
3947 for ac_file in conftest.o conftest.obj conftest.*; do
3948 test -f "$ac_file" || continue;
3949 case $ac_file in
3950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3951 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3952 break;;
3953 esac
3954 done
3955 else
3956 $as_echo "$as_me: failed program was:" >&5
3957 sed 's/^/| /' conftest.$ac_ext >&5
3959 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3961 as_fn_error "cannot compute suffix of object files: cannot compile
3962 See \`config.log' for more details." "$LINENO" 5; }
3964 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3967 $as_echo "$ac_cv_objext" >&6; }
3968 OBJEXT=$ac_cv_objext
3969 ac_objext=$OBJEXT
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3971 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3972 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3973 $as_echo_n "(cached) " >&6
3974 else
3975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3976 /* end confdefs.h. */
3979 main ()
3981 #ifndef __GNUC__
3982 choke me
3983 #endif
3986 return 0;
3988 _ACEOF
3989 if ac_fn_c_try_compile "$LINENO"; then :
3990 ac_compiler_gnu=yes
3991 else
3992 ac_compiler_gnu=no
3994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3995 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3999 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4000 if test $ac_compiler_gnu = yes; then
4001 GCC=yes
4002 else
4003 GCC=
4005 ac_test_CFLAGS=${CFLAGS+set}
4006 ac_save_CFLAGS=$CFLAGS
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4008 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4009 if test "${ac_cv_prog_cc_g+set}" = set; then :
4010 $as_echo_n "(cached) " >&6
4011 else
4012 ac_save_c_werror_flag=$ac_c_werror_flag
4013 ac_c_werror_flag=yes
4014 ac_cv_prog_cc_g=no
4015 CFLAGS="-g"
4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h. */
4020 main ()
4024 return 0;
4026 _ACEOF
4027 if ac_fn_c_try_compile "$LINENO"; then :
4028 ac_cv_prog_cc_g=yes
4029 else
4030 CFLAGS=""
4031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4032 /* end confdefs.h. */
4035 main ()
4039 return 0;
4041 _ACEOF
4042 if ac_fn_c_try_compile "$LINENO"; then :
4044 else
4045 ac_c_werror_flag=$ac_save_c_werror_flag
4046 CFLAGS="-g"
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4051 main ()
4055 return 0;
4057 _ACEOF
4058 if ac_fn_c_try_compile "$LINENO"; then :
4059 ac_cv_prog_cc_g=yes
4061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066 ac_c_werror_flag=$ac_save_c_werror_flag
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4069 $as_echo "$ac_cv_prog_cc_g" >&6; }
4070 if test "$ac_test_CFLAGS" = set; then
4071 CFLAGS=$ac_save_CFLAGS
4072 elif test $ac_cv_prog_cc_g = yes; then
4073 if test "$GCC" = yes; then
4074 CFLAGS="-g -O2"
4075 else
4076 CFLAGS="-g"
4078 else
4079 if test "$GCC" = yes; then
4080 CFLAGS="-O2"
4081 else
4082 CFLAGS=
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4086 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4087 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4088 $as_echo_n "(cached) " >&6
4089 else
4090 ac_cv_prog_cc_c89=no
4091 ac_save_CC=$CC
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4094 #include <stdarg.h>
4095 #include <stdio.h>
4096 #include <sys/types.h>
4097 #include <sys/stat.h>
4098 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4099 struct buf { int x; };
4100 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4101 static char *e (p, i)
4102 char **p;
4103 int i;
4105 return p[i];
4107 static char *f (char * (*g) (char **, int), char **p, ...)
4109 char *s;
4110 va_list v;
4111 va_start (v,p);
4112 s = g (p, va_arg (v,int));
4113 va_end (v);
4114 return s;
4117 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4118 function prototypes and stuff, but not '\xHH' hex character constants.
4119 These don't provoke an error unfortunately, instead are silently treated
4120 as 'x'. The following induces an error, until -std is added to get
4121 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4122 array size at least. It's necessary to write '\x00'==0 to get something
4123 that's true only with -std. */
4124 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4126 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4127 inside strings and character constants. */
4128 #define FOO(x) 'x'
4129 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4131 int test (int i, double x);
4132 struct s1 {int (*f) (int a);};
4133 struct s2 {int (*f) (double a);};
4134 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4135 int argc;
4136 char **argv;
4138 main ()
4140 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4142 return 0;
4144 _ACEOF
4145 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4146 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4148 CC="$ac_save_CC $ac_arg"
4149 if ac_fn_c_try_compile "$LINENO"; then :
4150 ac_cv_prog_cc_c89=$ac_arg
4152 rm -f core conftest.err conftest.$ac_objext
4153 test "x$ac_cv_prog_cc_c89" != "xno" && break
4154 done
4155 rm -f conftest.$ac_ext
4156 CC=$ac_save_CC
4159 # AC_CACHE_VAL
4160 case "x$ac_cv_prog_cc_c89" in
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4163 $as_echo "none needed" >&6; } ;;
4164 xno)
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4166 $as_echo "unsupported" >&6; } ;;
4168 CC="$CC $ac_cv_prog_cc_c89"
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4170 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4171 esac
4172 if test "x$ac_cv_prog_cc_c89" != xno; then :
4176 ac_ext=c
4177 ac_cpp='$CPP $CPPFLAGS'
4178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4182 ac_ext=cpp
4183 ac_cpp='$CXXCPP $CPPFLAGS'
4184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4187 if test -z "$CXX"; then
4188 if test -n "$CCC"; then
4189 CXX=$CCC
4190 else
4191 if test -n "$ac_tool_prefix"; then
4192 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4194 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4195 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4197 $as_echo_n "checking for $ac_word... " >&6; }
4198 if test "${ac_cv_prog_CXX+set}" = set; then :
4199 $as_echo_n "(cached) " >&6
4200 else
4201 if test -n "$CXX"; then
4202 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4203 else
4204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205 for as_dir in $PATH
4207 IFS=$as_save_IFS
4208 test -z "$as_dir" && as_dir=.
4209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4211 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4213 break 2
4215 done
4216 done
4217 IFS=$as_save_IFS
4221 CXX=$ac_cv_prog_CXX
4222 if test -n "$CXX"; then
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4224 $as_echo "$CXX" >&6; }
4225 else
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4227 $as_echo "no" >&6; }
4231 test -n "$CXX" && break
4232 done
4234 if test -z "$CXX"; then
4235 ac_ct_CXX=$CXX
4236 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4238 # Extract the first word of "$ac_prog", so it can be a program name with args.
4239 set dummy $ac_prog; ac_word=$2
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4241 $as_echo_n "checking for $ac_word... " >&6; }
4242 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4243 $as_echo_n "(cached) " >&6
4244 else
4245 if test -n "$ac_ct_CXX"; then
4246 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4247 else
4248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 for as_dir in $PATH
4251 IFS=$as_save_IFS
4252 test -z "$as_dir" && as_dir=.
4253 for ac_exec_ext in '' $ac_executable_extensions; do
4254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4255 ac_cv_prog_ac_ct_CXX="$ac_prog"
4256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 break 2
4259 done
4260 done
4261 IFS=$as_save_IFS
4265 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4266 if test -n "$ac_ct_CXX"; then
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4268 $as_echo "$ac_ct_CXX" >&6; }
4269 else
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4271 $as_echo "no" >&6; }
4275 test -n "$ac_ct_CXX" && break
4276 done
4278 if test "x$ac_ct_CXX" = x; then
4279 CXX="g++"
4280 else
4281 case $cross_compiling:$ac_tool_warned in
4282 yes:)
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4285 ac_tool_warned=yes ;;
4286 esac
4287 CXX=$ac_ct_CXX
4293 # Provide some information about the compiler.
4294 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4295 set X $ac_compile
4296 ac_compiler=$2
4297 for ac_option in --version -v -V -qversion; do
4298 { { ac_try="$ac_compiler $ac_option >&5"
4299 case "(($ac_try" in
4300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301 *) ac_try_echo=$ac_try;;
4302 esac
4303 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4304 $as_echo "$ac_try_echo"; } >&5
4305 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4306 ac_status=$?
4307 if test -s conftest.err; then
4308 sed '10a\
4309 ... rest of stderr output deleted ...
4310 10q' conftest.err >conftest.er1
4311 cat conftest.er1 >&5
4312 rm -f conftest.er1 conftest.err
4314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4315 test $ac_status = 0; }
4316 done
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4319 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4320 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4321 $as_echo_n "(cached) " >&6
4322 else
4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h. */
4327 main ()
4329 #ifndef __GNUC__
4330 choke me
4331 #endif
4334 return 0;
4336 _ACEOF
4337 if ac_fn_cxx_try_compile "$LINENO"; then :
4338 ac_compiler_gnu=yes
4339 else
4340 ac_compiler_gnu=no
4342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4347 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4348 if test $ac_compiler_gnu = yes; then
4349 GXX=yes
4350 else
4351 GXX=
4353 ac_test_CXXFLAGS=${CXXFLAGS+set}
4354 ac_save_CXXFLAGS=$CXXFLAGS
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4356 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4357 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4358 $as_echo_n "(cached) " >&6
4359 else
4360 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4361 ac_cxx_werror_flag=yes
4362 ac_cv_prog_cxx_g=no
4363 CXXFLAGS="-g"
4364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h. */
4368 main ()
4372 return 0;
4374 _ACEOF
4375 if ac_fn_cxx_try_compile "$LINENO"; then :
4376 ac_cv_prog_cxx_g=yes
4377 else
4378 CXXFLAGS=""
4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h. */
4383 main ()
4387 return 0;
4389 _ACEOF
4390 if ac_fn_cxx_try_compile "$LINENO"; then :
4392 else
4393 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4394 CXXFLAGS="-g"
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h. */
4399 main ()
4403 return 0;
4405 _ACEOF
4406 if ac_fn_cxx_try_compile "$LINENO"; then :
4407 ac_cv_prog_cxx_g=yes
4409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4414 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4417 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4418 if test "$ac_test_CXXFLAGS" = set; then
4419 CXXFLAGS=$ac_save_CXXFLAGS
4420 elif test $ac_cv_prog_cxx_g = yes; then
4421 if test "$GXX" = yes; then
4422 CXXFLAGS="-g -O2"
4423 else
4424 CXXFLAGS="-g"
4426 else
4427 if test "$GXX" = yes; then
4428 CXXFLAGS="-O2"
4429 else
4430 CXXFLAGS=
4433 ac_ext=c
4434 ac_cpp='$CPP $CPPFLAGS'
4435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4439 CXXFLAGS="$save_CXXFLAGS"
4441 am__api_version='1.11'
4443 # Find a good install program. We prefer a C program (faster),
4444 # so one script is as good as another. But avoid the broken or
4445 # incompatible versions:
4446 # SysV /etc/install, /usr/sbin/install
4447 # SunOS /usr/etc/install
4448 # IRIX /sbin/install
4449 # AIX /bin/install
4450 # AmigaOS /C/install, which installs bootblocks on floppy discs
4451 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4452 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4453 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4454 # OS/2's system install, which has a completely different semantic
4455 # ./install, which can be erroneously created by make from ./install.sh.
4456 # Reject install programs that cannot install multiple files.
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4458 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4459 if test -z "$INSTALL"; then
4460 if test "${ac_cv_path_install+set}" = set; then :
4461 $as_echo_n "(cached) " >&6
4462 else
4463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464 for as_dir in $PATH
4466 IFS=$as_save_IFS
4467 test -z "$as_dir" && as_dir=.
4468 # Account for people who put trailing slashes in PATH elements.
4469 case $as_dir/ in #((
4470 ./ | .// | /[cC]/* | \
4471 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4472 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4473 /usr/ucb/* ) ;;
4475 # OSF1 and SCO ODT 3.0 have their own names for install.
4476 # Don't use installbsd from OSF since it installs stuff as root
4477 # by default.
4478 for ac_prog in ginstall scoinst install; do
4479 for ac_exec_ext in '' $ac_executable_extensions; do
4480 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4481 if test $ac_prog = install &&
4482 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4483 # AIX install. It has an incompatible calling convention.
4485 elif test $ac_prog = install &&
4486 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4487 # program-specific install script used by HP pwplus--don't use.
4489 else
4490 rm -rf conftest.one conftest.two conftest.dir
4491 echo one > conftest.one
4492 echo two > conftest.two
4493 mkdir conftest.dir
4494 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4495 test -s conftest.one && test -s conftest.two &&
4496 test -s conftest.dir/conftest.one &&
4497 test -s conftest.dir/conftest.two
4498 then
4499 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4500 break 3
4504 done
4505 done
4507 esac
4509 done
4510 IFS=$as_save_IFS
4512 rm -rf conftest.one conftest.two conftest.dir
4515 if test "${ac_cv_path_install+set}" = set; then
4516 INSTALL=$ac_cv_path_install
4517 else
4518 # As a last resort, use the slow shell script. Don't cache a
4519 # value for INSTALL within a source directory, because that will
4520 # break other packages using the cache if that directory is
4521 # removed, or if the value is a relative name.
4522 INSTALL=$ac_install_sh
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4526 $as_echo "$INSTALL" >&6; }
4528 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4529 # It thinks the first close brace ends the variable substitution.
4530 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4532 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4534 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4537 $as_echo_n "checking whether build environment is sane... " >&6; }
4538 # Just in case
4539 sleep 1
4540 echo timestamp > conftest.file
4541 # Reject unsafe characters in $srcdir or the absolute working directory
4542 # name. Accept space and tab only in the latter.
4543 am_lf='
4545 case `pwd` in
4546 *[\\\"\#\$\&\'\`$am_lf]*)
4547 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4548 esac
4549 case $srcdir in
4550 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4551 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4552 esac
4554 # Do `set' in a subshell so we don't clobber the current shell's
4555 # arguments. Must try -L first in case configure is actually a
4556 # symlink; some systems play weird games with the mod time of symlinks
4557 # (eg FreeBSD returns the mod time of the symlink's containing
4558 # directory).
4559 if (
4560 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4561 if test "$*" = "X"; then
4562 # -L didn't work.
4563 set X `ls -t "$srcdir/configure" conftest.file`
4565 rm -f conftest.file
4566 if test "$*" != "X $srcdir/configure conftest.file" \
4567 && test "$*" != "X conftest.file $srcdir/configure"; then
4569 # If neither matched, then we have a broken ls. This can happen
4570 # if, for instance, CONFIG_SHELL is bash and it inherits a
4571 # broken ls alias from the environment. This has actually
4572 # happened. Such a system could not be considered "sane".
4573 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4574 alias in your environment" "$LINENO" 5
4577 test "$2" = conftest.file
4579 then
4580 # Ok.
4582 else
4583 as_fn_error "newly created file is older than distributed files!
4584 Check your system clock" "$LINENO" 5
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4587 $as_echo "yes" >&6; }
4588 test "$program_prefix" != NONE &&
4589 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4590 # Use a double $ so make ignores it.
4591 test "$program_suffix" != NONE &&
4592 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4593 # Double any \ or $.
4594 # By default was `s,x,x', remove it if useless.
4595 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4596 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4598 # expand $ac_aux_dir to an absolute path
4599 am_aux_dir=`cd $ac_aux_dir && pwd`
4601 if test x"${MISSING+set}" != xset; then
4602 case $am_aux_dir in
4603 *\ * | *\ *)
4604 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4606 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4607 esac
4609 # Use eval to expand $SHELL
4610 if eval "$MISSING --run true"; then
4611 am_missing_run="$MISSING --run "
4612 else
4613 am_missing_run=
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4615 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4618 if test x"${install_sh}" != xset; then
4619 case $am_aux_dir in
4620 *\ * | *\ *)
4621 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4623 install_sh="\${SHELL} $am_aux_dir/install-sh"
4624 esac
4627 # Installed binaries are usually stripped using `strip' when the user
4628 # run `make install-strip'. However `strip' might not be the right
4629 # tool to use in cross-compilation environments, therefore Automake
4630 # will honor the `STRIP' environment variable to overrule this program.
4631 if test "$cross_compiling" != no; then
4632 if test -n "$ac_tool_prefix"; then
4633 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4634 set dummy ${ac_tool_prefix}strip; ac_word=$2
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4636 $as_echo_n "checking for $ac_word... " >&6; }
4637 if test "${ac_cv_prog_STRIP+set}" = set; then :
4638 $as_echo_n "(cached) " >&6
4639 else
4640 if test -n "$STRIP"; then
4641 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4642 else
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 for as_dir in $PATH
4646 IFS=$as_save_IFS
4647 test -z "$as_dir" && as_dir=.
4648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4650 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 break 2
4654 done
4655 done
4656 IFS=$as_save_IFS
4660 STRIP=$ac_cv_prog_STRIP
4661 if test -n "$STRIP"; then
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4663 $as_echo "$STRIP" >&6; }
4664 else
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4666 $as_echo "no" >&6; }
4671 if test -z "$ac_cv_prog_STRIP"; then
4672 ac_ct_STRIP=$STRIP
4673 # Extract the first word of "strip", so it can be a program name with args.
4674 set dummy strip; ac_word=$2
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4676 $as_echo_n "checking for $ac_word... " >&6; }
4677 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4678 $as_echo_n "(cached) " >&6
4679 else
4680 if test -n "$ac_ct_STRIP"; then
4681 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4682 else
4683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684 for as_dir in $PATH
4686 IFS=$as_save_IFS
4687 test -z "$as_dir" && as_dir=.
4688 for ac_exec_ext in '' $ac_executable_extensions; do
4689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4690 ac_cv_prog_ac_ct_STRIP="strip"
4691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4692 break 2
4694 done
4695 done
4696 IFS=$as_save_IFS
4700 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4701 if test -n "$ac_ct_STRIP"; then
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4703 $as_echo "$ac_ct_STRIP" >&6; }
4704 else
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4706 $as_echo "no" >&6; }
4709 if test "x$ac_ct_STRIP" = x; then
4710 STRIP=":"
4711 else
4712 case $cross_compiling:$ac_tool_warned in
4713 yes:)
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4716 ac_tool_warned=yes ;;
4717 esac
4718 STRIP=$ac_ct_STRIP
4720 else
4721 STRIP="$ac_cv_prog_STRIP"
4725 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4728 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4729 if test -z "$MKDIR_P"; then
4730 if test "${ac_cv_path_mkdir+set}" = set; then :
4731 $as_echo_n "(cached) " >&6
4732 else
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4736 IFS=$as_save_IFS
4737 test -z "$as_dir" && as_dir=.
4738 for ac_prog in mkdir gmkdir; do
4739 for ac_exec_ext in '' $ac_executable_extensions; do
4740 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4741 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4742 'mkdir (GNU coreutils) '* | \
4743 'mkdir (coreutils) '* | \
4744 'mkdir (fileutils) '4.1*)
4745 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4746 break 3;;
4747 esac
4748 done
4749 done
4750 done
4751 IFS=$as_save_IFS
4755 if test "${ac_cv_path_mkdir+set}" = set; then
4756 MKDIR_P="$ac_cv_path_mkdir -p"
4757 else
4758 # As a last resort, use the slow shell script. Don't cache a
4759 # value for MKDIR_P within a source directory, because that will
4760 # break other packages using the cache if that directory is
4761 # removed, or if the value is a relative name.
4762 test -d ./--version && rmdir ./--version
4763 MKDIR_P="$ac_install_sh -d"
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4767 $as_echo "$MKDIR_P" >&6; }
4769 mkdir_p="$MKDIR_P"
4770 case $mkdir_p in
4771 [\\/$]* | ?:[\\/]*) ;;
4772 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4773 esac
4775 for ac_prog in gawk mawk nawk awk
4777 # Extract the first word of "$ac_prog", so it can be a program name with args.
4778 set dummy $ac_prog; ac_word=$2
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4780 $as_echo_n "checking for $ac_word... " >&6; }
4781 if test "${ac_cv_prog_AWK+set}" = set; then :
4782 $as_echo_n "(cached) " >&6
4783 else
4784 if test -n "$AWK"; then
4785 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4786 else
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in $PATH
4790 IFS=$as_save_IFS
4791 test -z "$as_dir" && as_dir=.
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4794 ac_cv_prog_AWK="$ac_prog"
4795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4796 break 2
4798 done
4799 done
4800 IFS=$as_save_IFS
4804 AWK=$ac_cv_prog_AWK
4805 if test -n "$AWK"; then
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4807 $as_echo "$AWK" >&6; }
4808 else
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4810 $as_echo "no" >&6; }
4814 test -n "$AWK" && break
4815 done
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4818 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4819 set x ${MAKE-make}
4820 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4821 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4822 $as_echo_n "(cached) " >&6
4823 else
4824 cat >conftest.make <<\_ACEOF
4825 SHELL = /bin/sh
4826 all:
4827 @echo '@@@%%%=$(MAKE)=@@@%%%'
4828 _ACEOF
4829 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4830 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4831 *@@@%%%=?*=@@@%%%*)
4832 eval ac_cv_prog_make_${ac_make}_set=yes;;
4834 eval ac_cv_prog_make_${ac_make}_set=no;;
4835 esac
4836 rm -f conftest.make
4838 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4840 $as_echo "yes" >&6; }
4841 SET_MAKE=
4842 else
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4844 $as_echo "no" >&6; }
4845 SET_MAKE="MAKE=${MAKE-make}"
4848 rm -rf .tst 2>/dev/null
4849 mkdir .tst 2>/dev/null
4850 if test -d .tst; then
4851 am__leading_dot=.
4852 else
4853 am__leading_dot=_
4855 rmdir .tst 2>/dev/null
4857 DEPDIR="${am__leading_dot}deps"
4859 ac_config_commands="$ac_config_commands depfiles"
4862 am_make=${MAKE-make}
4863 cat > confinc << 'END'
4864 am__doit:
4865 @echo this is the am__doit target
4866 .PHONY: am__doit
4868 # If we don't find an include directive, just comment out the code.
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4870 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4871 am__include="#"
4872 am__quote=
4873 _am_result=none
4874 # First try GNU make style include.
4875 echo "include confinc" > confmf
4876 # Ignore all kinds of additional output from `make'.
4877 case `$am_make -s -f confmf 2> /dev/null` in #(
4878 *the\ am__doit\ target*)
4879 am__include=include
4880 am__quote=
4881 _am_result=GNU
4883 esac
4884 # Now try BSD make style include.
4885 if test "$am__include" = "#"; then
4886 echo '.include "confinc"' > confmf
4887 case `$am_make -s -f confmf 2> /dev/null` in #(
4888 *the\ am__doit\ target*)
4889 am__include=.include
4890 am__quote="\""
4891 _am_result=BSD
4893 esac
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4898 $as_echo "$_am_result" >&6; }
4899 rm -f confinc confmf
4901 # Check whether --enable-dependency-tracking was given.
4902 if test "${enable_dependency_tracking+set}" = set; then :
4903 enableval=$enable_dependency_tracking;
4906 if test "x$enable_dependency_tracking" != xno; then
4907 am_depcomp="$ac_aux_dir/depcomp"
4908 AMDEPBACKSLASH='\'
4909 am__nodep='_no'
4911 if test "x$enable_dependency_tracking" != xno; then
4912 AMDEP_TRUE=
4913 AMDEP_FALSE='#'
4914 else
4915 AMDEP_TRUE='#'
4916 AMDEP_FALSE=
4920 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4921 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4922 # is not polluted with repeated "-I."
4923 am__isrc=' -I$(srcdir)'
4924 # test to see if srcdir already configured
4925 if test -f $srcdir/config.status; then
4926 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4930 # test whether we have cygpath
4931 if test -z "$CYGPATH_W"; then
4932 if (cygpath --version) >/dev/null 2>/dev/null; then
4933 CYGPATH_W='cygpath -w'
4934 else
4935 CYGPATH_W=echo
4940 # Define the identity of the package.
4941 PACKAGE='libjava'
4942 VERSION='version-unused'
4945 cat >>confdefs.h <<_ACEOF
4946 #define PACKAGE "$PACKAGE"
4947 _ACEOF
4950 cat >>confdefs.h <<_ACEOF
4951 #define VERSION "$VERSION"
4952 _ACEOF
4954 # Some tools Automake needs.
4956 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4959 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4962 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4965 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4968 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4970 # We need awk for the "check" target. The system "awk" is bad on
4971 # some platforms.
4972 # Always define AMTAR for backward compatibility. Yes, it's still used
4973 # in the wild :-( We should find a proper way to deprecate it ...
4974 AMTAR='$${TAR-tar}'
4976 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4981 depcc="$CC" am_compiler_list=
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4984 $as_echo_n "checking dependency style of $depcc... " >&6; }
4985 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4986 $as_echo_n "(cached) " >&6
4987 else
4988 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4989 # We make a subdir and do the tests there. Otherwise we can end up
4990 # making bogus files that we don't know about and never remove. For
4991 # instance it was reported that on HP-UX the gcc test will end up
4992 # making a dummy file named `D' -- because `-MD' means `put the output
4993 # in D'.
4994 rm -rf conftest.dir
4995 mkdir conftest.dir
4996 # Copy depcomp to subdir because otherwise we won't find it if we're
4997 # using a relative directory.
4998 cp "$am_depcomp" conftest.dir
4999 cd conftest.dir
5000 # We will build objects and dependencies in a subdirectory because
5001 # it helps to detect inapplicable dependency modes. For instance
5002 # both Tru64's cc and ICC support -MD to output dependencies as a
5003 # side effect of compilation, but ICC will put the dependencies in
5004 # the current directory while Tru64 will put them in the object
5005 # directory.
5006 mkdir sub
5008 am_cv_CC_dependencies_compiler_type=none
5009 if test "$am_compiler_list" = ""; then
5010 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5012 am__universal=false
5013 case " $depcc " in #(
5014 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5015 esac
5017 for depmode in $am_compiler_list; do
5018 # Setup a source with many dependencies, because some compilers
5019 # like to wrap large dependency lists on column 80 (with \), and
5020 # we should not choose a depcomp mode which is confused by this.
5022 # We need to recreate these files for each test, as the compiler may
5023 # overwrite some of them when testing with obscure command lines.
5024 # This happens at least with the AIX C compiler.
5025 : > sub/conftest.c
5026 for i in 1 2 3 4 5 6; do
5027 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5028 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5029 # Solaris 8's {/usr,}/bin/sh.
5030 touch sub/conftst$i.h
5031 done
5032 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5034 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5035 # mode. It turns out that the SunPro C++ compiler does not properly
5036 # handle `-M -o', and we need to detect this. Also, some Intel
5037 # versions had trouble with output in subdirs
5038 am__obj=sub/conftest.${OBJEXT-o}
5039 am__minus_obj="-o $am__obj"
5040 case $depmode in
5041 gcc)
5042 # This depmode causes a compiler race in universal mode.
5043 test "$am__universal" = false || continue
5045 nosideeffect)
5046 # after this tag, mechanisms are not by side-effect, so they'll
5047 # only be used when explicitly requested
5048 if test "x$enable_dependency_tracking" = xyes; then
5049 continue
5050 else
5051 break
5054 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5055 # This compiler won't grok `-c -o', but also, the minuso test has
5056 # not run yet. These depmodes are late enough in the game, and
5057 # so weak that their functioning should not be impacted.
5058 am__obj=conftest.${OBJEXT-o}
5059 am__minus_obj=
5061 none) break ;;
5062 esac
5063 if depmode=$depmode \
5064 source=sub/conftest.c object=$am__obj \
5065 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5066 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5067 >/dev/null 2>conftest.err &&
5068 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5069 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5070 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5071 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5072 # icc doesn't choke on unknown options, it will just issue warnings
5073 # or remarks (even with -Werror). So we grep stderr for any message
5074 # that says an option was ignored or not supported.
5075 # When given -MP, icc 7.0 and 7.1 complain thusly:
5076 # icc: Command line warning: ignoring option '-M'; no argument required
5077 # The diagnosis changed in icc 8.0:
5078 # icc: Command line remark: option '-MP' not supported
5079 if (grep 'ignoring option' conftest.err ||
5080 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5081 am_cv_CC_dependencies_compiler_type=$depmode
5082 break
5085 done
5087 cd ..
5088 rm -rf conftest.dir
5089 else
5090 am_cv_CC_dependencies_compiler_type=none
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5095 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5096 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5099 test "x$enable_dependency_tracking" != xno \
5100 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5101 am__fastdepCC_TRUE=
5102 am__fastdepCC_FALSE='#'
5103 else
5104 am__fastdepCC_TRUE='#'
5105 am__fastdepCC_FALSE=
5109 depcc="$CXX" am_compiler_list=
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5112 $as_echo_n "checking dependency style of $depcc... " >&6; }
5113 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5114 $as_echo_n "(cached) " >&6
5115 else
5116 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5117 # We make a subdir and do the tests there. Otherwise we can end up
5118 # making bogus files that we don't know about and never remove. For
5119 # instance it was reported that on HP-UX the gcc test will end up
5120 # making a dummy file named `D' -- because `-MD' means `put the output
5121 # in D'.
5122 rm -rf conftest.dir
5123 mkdir conftest.dir
5124 # Copy depcomp to subdir because otherwise we won't find it if we're
5125 # using a relative directory.
5126 cp "$am_depcomp" conftest.dir
5127 cd conftest.dir
5128 # We will build objects and dependencies in a subdirectory because
5129 # it helps to detect inapplicable dependency modes. For instance
5130 # both Tru64's cc and ICC support -MD to output dependencies as a
5131 # side effect of compilation, but ICC will put the dependencies in
5132 # the current directory while Tru64 will put them in the object
5133 # directory.
5134 mkdir sub
5136 am_cv_CXX_dependencies_compiler_type=none
5137 if test "$am_compiler_list" = ""; then
5138 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5140 am__universal=false
5141 case " $depcc " in #(
5142 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5143 esac
5145 for depmode in $am_compiler_list; do
5146 # Setup a source with many dependencies, because some compilers
5147 # like to wrap large dependency lists on column 80 (with \), and
5148 # we should not choose a depcomp mode which is confused by this.
5150 # We need to recreate these files for each test, as the compiler may
5151 # overwrite some of them when testing with obscure command lines.
5152 # This happens at least with the AIX C compiler.
5153 : > sub/conftest.c
5154 for i in 1 2 3 4 5 6; do
5155 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5156 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5157 # Solaris 8's {/usr,}/bin/sh.
5158 touch sub/conftst$i.h
5159 done
5160 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5162 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5163 # mode. It turns out that the SunPro C++ compiler does not properly
5164 # handle `-M -o', and we need to detect this. Also, some Intel
5165 # versions had trouble with output in subdirs
5166 am__obj=sub/conftest.${OBJEXT-o}
5167 am__minus_obj="-o $am__obj"
5168 case $depmode in
5169 gcc)
5170 # This depmode causes a compiler race in universal mode.
5171 test "$am__universal" = false || continue
5173 nosideeffect)
5174 # after this tag, mechanisms are not by side-effect, so they'll
5175 # only be used when explicitly requested
5176 if test "x$enable_dependency_tracking" = xyes; then
5177 continue
5178 else
5179 break
5182 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5183 # This compiler won't grok `-c -o', but also, the minuso test has
5184 # not run yet. These depmodes are late enough in the game, and
5185 # so weak that their functioning should not be impacted.
5186 am__obj=conftest.${OBJEXT-o}
5187 am__minus_obj=
5189 none) break ;;
5190 esac
5191 if depmode=$depmode \
5192 source=sub/conftest.c object=$am__obj \
5193 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5194 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5195 >/dev/null 2>conftest.err &&
5196 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5197 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5198 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5199 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5200 # icc doesn't choke on unknown options, it will just issue warnings
5201 # or remarks (even with -Werror). So we grep stderr for any message
5202 # that says an option was ignored or not supported.
5203 # When given -MP, icc 7.0 and 7.1 complain thusly:
5204 # icc: Command line warning: ignoring option '-M'; no argument required
5205 # The diagnosis changed in icc 8.0:
5206 # icc: Command line remark: option '-MP' not supported
5207 if (grep 'ignoring option' conftest.err ||
5208 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5209 am_cv_CXX_dependencies_compiler_type=$depmode
5210 break
5213 done
5215 cd ..
5216 rm -rf conftest.dir
5217 else
5218 am_cv_CXX_dependencies_compiler_type=none
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5223 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5224 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5227 test "x$enable_dependency_tracking" != xno \
5228 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5229 am__fastdepCXX_TRUE=
5230 am__fastdepCXX_FALSE='#'
5231 else
5232 am__fastdepCXX_TRUE='#'
5233 am__fastdepCXX_FALSE=
5239 if test -n "$ac_tool_prefix"; then
5240 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5241 set dummy ${ac_tool_prefix}as; ac_word=$2
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243 $as_echo_n "checking for $ac_word... " >&6; }
5244 if test "${ac_cv_prog_AS+set}" = set; then :
5245 $as_echo_n "(cached) " >&6
5246 else
5247 if test -n "$AS"; then
5248 ac_cv_prog_AS="$AS" # Let the user override the test.
5249 else
5250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251 for as_dir in $PATH
5253 IFS=$as_save_IFS
5254 test -z "$as_dir" && as_dir=.
5255 for ac_exec_ext in '' $ac_executable_extensions; do
5256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5257 ac_cv_prog_AS="${ac_tool_prefix}as"
5258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5259 break 2
5261 done
5262 done
5263 IFS=$as_save_IFS
5267 AS=$ac_cv_prog_AS
5268 if test -n "$AS"; then
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5270 $as_echo "$AS" >&6; }
5271 else
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273 $as_echo "no" >&6; }
5278 if test -z "$ac_cv_prog_AS"; then
5279 ac_ct_AS=$AS
5280 # Extract the first word of "as", so it can be a program name with args.
5281 set dummy as; ac_word=$2
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5283 $as_echo_n "checking for $ac_word... " >&6; }
5284 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5285 $as_echo_n "(cached) " >&6
5286 else
5287 if test -n "$ac_ct_AS"; then
5288 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5289 else
5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 for as_dir in $PATH
5293 IFS=$as_save_IFS
5294 test -z "$as_dir" && as_dir=.
5295 for ac_exec_ext in '' $ac_executable_extensions; do
5296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5297 ac_cv_prog_ac_ct_AS="as"
5298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5299 break 2
5301 done
5302 done
5303 IFS=$as_save_IFS
5307 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5308 if test -n "$ac_ct_AS"; then
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5310 $as_echo "$ac_ct_AS" >&6; }
5311 else
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5313 $as_echo "no" >&6; }
5316 if test "x$ac_ct_AS" = x; then
5317 AS=""
5318 else
5319 case $cross_compiling:$ac_tool_warned in
5320 yes:)
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5323 ac_tool_warned=yes ;;
5324 esac
5325 AS=$ac_ct_AS
5327 else
5328 AS="$ac_cv_prog_AS"
5331 if test -n "$ac_tool_prefix"; then
5332 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5333 set dummy ${ac_tool_prefix}ld; ac_word=$2
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5335 $as_echo_n "checking for $ac_word... " >&6; }
5336 if test "${ac_cv_prog_LD+set}" = set; then :
5337 $as_echo_n "(cached) " >&6
5338 else
5339 if test -n "$LD"; then
5340 ac_cv_prog_LD="$LD" # Let the user override the test.
5341 else
5342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343 for as_dir in $PATH
5345 IFS=$as_save_IFS
5346 test -z "$as_dir" && as_dir=.
5347 for ac_exec_ext in '' $ac_executable_extensions; do
5348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5349 ac_cv_prog_LD="${ac_tool_prefix}ld"
5350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5351 break 2
5353 done
5354 done
5355 IFS=$as_save_IFS
5359 LD=$ac_cv_prog_LD
5360 if test -n "$LD"; then
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5362 $as_echo "$LD" >&6; }
5363 else
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5365 $as_echo "no" >&6; }
5370 if test -z "$ac_cv_prog_LD"; then
5371 ac_ct_LD=$LD
5372 # Extract the first word of "ld", so it can be a program name with args.
5373 set dummy ld; ac_word=$2
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5375 $as_echo_n "checking for $ac_word... " >&6; }
5376 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
5377 $as_echo_n "(cached) " >&6
5378 else
5379 if test -n "$ac_ct_LD"; then
5380 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5381 else
5382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383 for as_dir in $PATH
5385 IFS=$as_save_IFS
5386 test -z "$as_dir" && as_dir=.
5387 for ac_exec_ext in '' $ac_executable_extensions; do
5388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5389 ac_cv_prog_ac_ct_LD="ld"
5390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5391 break 2
5393 done
5394 done
5395 IFS=$as_save_IFS
5399 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5400 if test -n "$ac_ct_LD"; then
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
5402 $as_echo "$ac_ct_LD" >&6; }
5403 else
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405 $as_echo "no" >&6; }
5408 if test "x$ac_ct_LD" = x; then
5409 LD=""
5410 else
5411 case $cross_compiling:$ac_tool_warned in
5412 yes:)
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5415 ac_tool_warned=yes ;;
5416 esac
5417 LD=$ac_ct_LD
5419 else
5420 LD="$ac_cv_prog_LD"
5423 if test -n "$ac_tool_prefix"; then
5424 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5425 set dummy ${ac_tool_prefix}ar; ac_word=$2
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5427 $as_echo_n "checking for $ac_word... " >&6; }
5428 if test "${ac_cv_prog_AR+set}" = set; then :
5429 $as_echo_n "(cached) " >&6
5430 else
5431 if test -n "$AR"; then
5432 ac_cv_prog_AR="$AR" # Let the user override the test.
5433 else
5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435 for as_dir in $PATH
5437 IFS=$as_save_IFS
5438 test -z "$as_dir" && as_dir=.
5439 for ac_exec_ext in '' $ac_executable_extensions; do
5440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5441 ac_cv_prog_AR="${ac_tool_prefix}ar"
5442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5443 break 2
5445 done
5446 done
5447 IFS=$as_save_IFS
5451 AR=$ac_cv_prog_AR
5452 if test -n "$AR"; then
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5454 $as_echo "$AR" >&6; }
5455 else
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5457 $as_echo "no" >&6; }
5462 if test -z "$ac_cv_prog_AR"; then
5463 ac_ct_AR=$AR
5464 # Extract the first word of "ar", so it can be a program name with args.
5465 set dummy ar; ac_word=$2
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5467 $as_echo_n "checking for $ac_word... " >&6; }
5468 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5469 $as_echo_n "(cached) " >&6
5470 else
5471 if test -n "$ac_ct_AR"; then
5472 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5473 else
5474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475 for as_dir in $PATH
5477 IFS=$as_save_IFS
5478 test -z "$as_dir" && as_dir=.
5479 for ac_exec_ext in '' $ac_executable_extensions; do
5480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5481 ac_cv_prog_ac_ct_AR="ar"
5482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5483 break 2
5485 done
5486 done
5487 IFS=$as_save_IFS
5491 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5492 if test -n "$ac_ct_AR"; then
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5494 $as_echo "$ac_ct_AR" >&6; }
5495 else
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5497 $as_echo "no" >&6; }
5500 if test "x$ac_ct_AR" = x; then
5501 AR=""
5502 else
5503 case $cross_compiling:$ac_tool_warned in
5504 yes:)
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5507 ac_tool_warned=yes ;;
5508 esac
5509 AR=$ac_ct_AR
5511 else
5512 AR="$ac_cv_prog_AR"
5515 if test -n "$ac_tool_prefix"; then
5516 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5517 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5519 $as_echo_n "checking for $ac_word... " >&6; }
5520 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5521 $as_echo_n "(cached) " >&6
5522 else
5523 if test -n "$RANLIB"; then
5524 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5525 else
5526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527 for as_dir in $PATH
5529 IFS=$as_save_IFS
5530 test -z "$as_dir" && as_dir=.
5531 for ac_exec_ext in '' $ac_executable_extensions; do
5532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5533 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5535 break 2
5537 done
5538 done
5539 IFS=$as_save_IFS
5543 RANLIB=$ac_cv_prog_RANLIB
5544 if test -n "$RANLIB"; then
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5546 $as_echo "$RANLIB" >&6; }
5547 else
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5549 $as_echo "no" >&6; }
5554 if test -z "$ac_cv_prog_RANLIB"; then
5555 ac_ct_RANLIB=$RANLIB
5556 # Extract the first word of "ranlib", so it can be a program name with args.
5557 set dummy ranlib; ac_word=$2
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5559 $as_echo_n "checking for $ac_word... " >&6; }
5560 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5561 $as_echo_n "(cached) " >&6
5562 else
5563 if test -n "$ac_ct_RANLIB"; then
5564 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5565 else
5566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567 for as_dir in $PATH
5569 IFS=$as_save_IFS
5570 test -z "$as_dir" && as_dir=.
5571 for ac_exec_ext in '' $ac_executable_extensions; do
5572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5573 ac_cv_prog_ac_ct_RANLIB="ranlib"
5574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5575 break 2
5577 done
5578 done
5579 IFS=$as_save_IFS
5583 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5584 if test -n "$ac_ct_RANLIB"; then
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5586 $as_echo "$ac_ct_RANLIB" >&6; }
5587 else
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5589 $as_echo "no" >&6; }
5592 if test "x$ac_ct_RANLIB" = x; then
5593 RANLIB=":"
5594 else
5595 case $cross_compiling:$ac_tool_warned in
5596 yes:)
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5599 ac_tool_warned=yes ;;
5600 esac
5601 RANLIB=$ac_ct_RANLIB
5603 else
5604 RANLIB="$ac_cv_prog_RANLIB"
5607 if test -n "$ac_tool_prefix"; then
5608 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5609 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5611 $as_echo_n "checking for $ac_word... " >&6; }
5612 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5613 $as_echo_n "(cached) " >&6
5614 else
5615 if test -n "$DLLTOOL"; then
5616 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5617 else
5618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619 for as_dir in $PATH
5621 IFS=$as_save_IFS
5622 test -z "$as_dir" && as_dir=.
5623 for ac_exec_ext in '' $ac_executable_extensions; do
5624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5625 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5627 break 2
5629 done
5630 done
5631 IFS=$as_save_IFS
5635 DLLTOOL=$ac_cv_prog_DLLTOOL
5636 if test -n "$DLLTOOL"; then
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5638 $as_echo "$DLLTOOL" >&6; }
5639 else
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5641 $as_echo "no" >&6; }
5646 if test -z "$ac_cv_prog_DLLTOOL"; then
5647 ac_ct_DLLTOOL=$DLLTOOL
5648 # Extract the first word of "dlltool", so it can be a program name with args.
5649 set dummy dlltool; ac_word=$2
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5651 $as_echo_n "checking for $ac_word... " >&6; }
5652 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5653 $as_echo_n "(cached) " >&6
5654 else
5655 if test -n "$ac_ct_DLLTOOL"; then
5656 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5657 else
5658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5659 for as_dir in $PATH
5661 IFS=$as_save_IFS
5662 test -z "$as_dir" && as_dir=.
5663 for ac_exec_ext in '' $ac_executable_extensions; do
5664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5665 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5667 break 2
5669 done
5670 done
5671 IFS=$as_save_IFS
5675 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5676 if test -n "$ac_ct_DLLTOOL"; then
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5678 $as_echo "$ac_ct_DLLTOOL" >&6; }
5679 else
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5681 $as_echo "no" >&6; }
5684 if test "x$ac_ct_DLLTOOL" = x; then
5685 DLLTOOL=":"
5686 else
5687 case $cross_compiling:$ac_tool_warned in
5688 yes:)
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5691 ac_tool_warned=yes ;;
5692 esac
5693 DLLTOOL=$ac_ct_DLLTOOL
5695 else
5696 DLLTOOL="$ac_cv_prog_DLLTOOL"
5699 for ac_prog in gawk mawk nawk awk
5701 # Extract the first word of "$ac_prog", so it can be a program name with args.
5702 set dummy $ac_prog; ac_word=$2
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5704 $as_echo_n "checking for $ac_word... " >&6; }
5705 if test "${ac_cv_prog_AWK+set}" = set; then :
5706 $as_echo_n "(cached) " >&6
5707 else
5708 if test -n "$AWK"; then
5709 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5710 else
5711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 for as_dir in $PATH
5714 IFS=$as_save_IFS
5715 test -z "$as_dir" && as_dir=.
5716 for ac_exec_ext in '' $ac_executable_extensions; do
5717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5718 ac_cv_prog_AWK="$ac_prog"
5719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5720 break 2
5722 done
5723 done
5724 IFS=$as_save_IFS
5728 AWK=$ac_cv_prog_AWK
5729 if test -n "$AWK"; then
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5731 $as_echo "$AWK" >&6; }
5732 else
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5734 $as_echo "no" >&6; }
5738 test -n "$AWK" && break
5739 done
5741 for ac_prog in jar fastjar gjar
5743 # Extract the first word of "$ac_prog", so it can be a program name with args.
5744 set dummy $ac_prog; ac_word=$2
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5746 $as_echo_n "checking for $ac_word... " >&6; }
5747 if test "${ac_cv_prog_JAR+set}" = set; then :
5748 $as_echo_n "(cached) " >&6
5749 else
5750 if test -n "$JAR"; then
5751 ac_cv_prog_JAR="$JAR" # Let the user override the test.
5752 else
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754 for as_dir in $PATH
5756 IFS=$as_save_IFS
5757 test -z "$as_dir" && as_dir=.
5758 for ac_exec_ext in '' $ac_executable_extensions; do
5759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5760 ac_cv_prog_JAR="$ac_prog"
5761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5762 break 2
5764 done
5765 done
5766 IFS=$as_save_IFS
5770 JAR=$ac_cv_prog_JAR
5771 if test -n "$JAR"; then
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
5773 $as_echo "$JAR" >&6; }
5774 else
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5776 $as_echo "no" >&6; }
5780 test -n "$JAR" && break
5781 done
5782 test -n "$JAR" || JAR="no"
5784 # Extract the first word of "zip", so it can be a program name with args.
5785 set dummy zip; ac_word=$2
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5787 $as_echo_n "checking for $ac_word... " >&6; }
5788 if test "${ac_cv_path_ZIP+set}" = set; then :
5789 $as_echo_n "(cached) " >&6
5790 else
5791 case $ZIP in
5792 [\\/]* | ?:[\\/]*)
5793 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797 for as_dir in $PATH
5799 IFS=$as_save_IFS
5800 test -z "$as_dir" && as_dir=.
5801 for ac_exec_ext in '' $ac_executable_extensions; do
5802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5803 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5805 break 2
5807 done
5808 done
5809 IFS=$as_save_IFS
5811 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
5813 esac
5815 ZIP=$ac_cv_path_ZIP
5816 if test -n "$ZIP"; then
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
5818 $as_echo "$ZIP" >&6; }
5819 else
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5821 $as_echo "no" >&6; }
5825 # Extract the first word of "unzip", so it can be a program name with args.
5826 set dummy unzip; ac_word=$2
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5828 $as_echo_n "checking for $ac_word... " >&6; }
5829 if test "${ac_cv_path_UNZIP+set}" = set; then :
5830 $as_echo_n "(cached) " >&6
5831 else
5832 case $UNZIP in
5833 [\\/]* | ?:[\\/]*)
5834 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
5837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838 for as_dir in $PATH
5840 IFS=$as_save_IFS
5841 test -z "$as_dir" && as_dir=.
5842 for ac_exec_ext in '' $ac_executable_extensions; do
5843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5844 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
5845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5846 break 2
5848 done
5849 done
5850 IFS=$as_save_IFS
5852 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
5854 esac
5856 UNZIP=$ac_cv_path_UNZIP
5857 if test -n "$UNZIP"; then
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
5859 $as_echo "$UNZIP" >&6; }
5860 else
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5862 $as_echo "no" >&6; }
5867 # We need a jar that supports -@. This is a GNU extension.
5868 if test "$JAR" != no; then
5869 rm -f config-test.jar
5870 echo $srcdir/configure.ac | $JAR -cf@ config-test.jar >/dev/null 2>&1
5871 if test -f config-test.jar; then
5872 rm -f config-test.jar
5873 else
5874 JAR=no
5878 # Prefer the jar we found, but fall back to our jar script.
5879 if test "$JAR" = no; then
5880 if test "$ZIP" = no; then
5881 as_fn_error "cannot find neither zip nor jar, cannot continue" "$LINENO" 5
5882 else
5883 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
5884 JAR=`pwd`/scripts/jar
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5892 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5893 # Check whether --enable-maintainer-mode was given.
5894 if test "${enable_maintainer_mode+set}" = set; then :
5895 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5896 else
5897 USE_MAINTAINER_MODE=no
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5901 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5902 if test $USE_MAINTAINER_MODE = yes; then
5903 MAINTAINER_MODE_TRUE=
5904 MAINTAINER_MODE_FALSE='#'
5905 else
5906 MAINTAINER_MODE_TRUE='#'
5907 MAINTAINER_MODE_FALSE=
5910 MAINT=$MAINTAINER_MODE_TRUE
5916 # configure.host sets the following important variables
5917 # libgcj_cflags - host specific C compiler flags
5918 # libgcj_cxxflags - host specific C++ compiler flags
5919 # libgcj_javaflags - host specific Java compiler flags
5920 # libgcj_sublib_ltflags - host specific Libtool flags
5921 # libgcj_sublib_core_extra_deps - host specific extra
5922 # dependencies for core sublib
5923 # (these last two only used when building sublibs)
5924 # and a number of others; see the list at the start of the file.
5926 libgcj_cflags=
5927 libgcj_cxxflags=
5928 libgcj_javaflags=
5929 libgcj_sublib_ltflags=
5930 libgcj_sublib_core_extra_deps=
5932 . ${srcdir}/configure.host
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5935 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5936 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5937 $as_echo_n "(cached) " >&6
5938 else
5939 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5940 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5941 acl_cv_prog_gnu_ld=yes
5942 else
5943 acl_cv_prog_gnu_ld=no
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5947 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5948 with_gnu_ld=$acl_cv_prog_gnu_ld
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
5951 $as_echo_n "checking if the GNU linker ($LD) supports -Bsymbolic-functions... " >&6; }
5952 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then :
5953 $as_echo_n "(cached) " >&6
5954 else
5956 acl_cv_prog_gnu_ld_symbolic=no
5958 if test x"$with_gnu_ld" = x"yes"; then
5959 if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
5960 acl_cv_prog_gnu_ld_symbolic=yes
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld_symbolic" >&5
5965 $as_echo "$acl_cv_prog_gnu_ld_symbolic" >&6; }
5966 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
5967 SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
5968 else
5969 SYMBOLIC_LDFLAGS=''
5972 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
5973 if test -z "$libgcj_ld_symbolic"; then
5974 libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
5977 # for windows native targets enforce export of all symbols for shared libgcj.
5978 libgcj_ld_export_all=
5979 case "$host" in
5980 *mingw*)
5981 libgcj_ld_export_all=-Wl,--export-all-symbols
5985 esac
5987 LIBGCJ_CFLAGS="${libgcj_cflags}"
5988 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
5989 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
5990 LIBGCJ_SUBLIB_LTFLAGS="${libgcj_sublib_ltflags}"
5991 LIBGCJ_SUBLIB_CORE_EXTRA_DEPS="${libgcj_sublib_core_extra_deps}"
5992 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
5993 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
5994 LIBGCJ_LD_EXPORT_ALL="${libgcj_ld_export_all}"
6004 # Only use libltdl for non-newlib builds.
6005 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
6007 $as_echo_n "checking dynamic linker characteristics... " >&6; }
6008 library_names_spec=
6009 libname_spec='lib$name'
6010 soname_spec=
6011 shrext=".so"
6012 postinstall_cmds=
6013 postuninstall_cmds=
6014 finish_cmds=
6015 finish_eval=
6016 shlibpath_var=
6017 shlibpath_overrides_runpath=unknown
6018 version_type=none
6019 dynamic_linker="$host_os ld.so"
6020 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6021 if test "$GCC" = yes; then
6022 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
6023 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6024 # if the path contains ";" then we assume it to be the separator
6025 # otherwise default to the standard path separator (i.e. ":") - it is
6026 # assumed that no part of a normal pathname contains ";" but that should
6027 # okay in the real world where ";" in dirpaths is itself problematic.
6028 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6029 else
6030 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6032 else
6033 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6035 need_lib_prefix=unknown
6036 hardcode_into_libs=no
6038 # when you set need_version to no, make sure it does not cause -set_version
6039 # flags to be left without arguments
6040 need_version=unknown
6042 case $host_os in
6043 aix3*)
6044 version_type=linux
6045 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6046 shlibpath_var=LIBPATH
6048 # AIX 3 has no versioning support, so we append a major version to the name.
6049 soname_spec='${libname}${release}${shared_ext}$major'
6052 aix[4-9]*)
6053 version_type=linux
6054 need_lib_prefix=no
6055 need_version=no
6056 hardcode_into_libs=yes
6057 if test "$host_cpu" = ia64; then
6058 # AIX 5 supports IA64
6059 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6060 shlibpath_var=LD_LIBRARY_PATH
6061 else
6062 # With GCC up to 2.95.x, collect2 would create an import file
6063 # for dependence libraries. The import file would start with
6064 # the line `#! .'. This would cause the generated library to
6065 # depend on `.', always an invalid library. This was fixed in
6066 # development snapshots of GCC prior to 3.0.
6067 case $host_os in
6068 aix4 | aix4.[01] | aix4.[01].*)
6069 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6070 echo ' yes '
6071 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6073 else
6074 can_build_shared=no
6077 esac
6078 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6079 # soname into executable. Probably we can add versioning support to
6080 # collect2, so additional links can be useful in future.
6081 if test "$aix_use_runtimelinking" = yes; then
6082 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6083 # instead of lib<name>.a to let people know that these are not
6084 # typical AIX shared libraries.
6085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6086 else
6087 # We preserve .a as extension for shared libraries through AIX4.2
6088 # and later when we are not doing run time linking.
6089 library_names_spec='${libname}${release}.a $libname.a'
6090 soname_spec='${libname}${release}${shared_ext}$major'
6092 shlibpath_var=LIBPATH
6096 amigaos*)
6097 library_names_spec='$libname.ixlibrary $libname.a'
6098 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6099 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'
6102 beos*)
6103 library_names_spec='${libname}${shared_ext}'
6104 dynamic_linker="$host_os ld.so"
6105 shlibpath_var=LIBRARY_PATH
6108 bsdi4*)
6109 version_type=linux
6110 need_version=no
6111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6112 soname_spec='${libname}${release}${shared_ext}$major'
6113 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6114 shlibpath_var=LD_LIBRARY_PATH
6115 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6116 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6117 # the default ld.so.conf also contains /usr/contrib/lib and
6118 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6119 # libtool to hard-code these into programs
6122 cygwin* | mingw* | pw32*)
6123 version_type=windows
6124 shrext=".dll"
6125 need_version=no
6126 need_lib_prefix=no
6128 case $GCC,$host_os in
6129 yes,cygwin* | yes,mingw* | yes,pw32*)
6130 library_names_spec='$libname.dll.a'
6131 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6132 postinstall_cmds='base_file=`basename \${file}`~
6133 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6134 dldir=$destdir/`dirname \$dlpath`~
6135 test -d \$dldir || mkdir -p \$dldir~
6136 $install_prog $dir/$dlname \$dldir/$dlname'
6137 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6138 dlpath=$dir/\$dldll~
6139 $rm \$dlpath'
6140 shlibpath_overrides_runpath=yes
6142 case $host_os in
6143 cygwin*)
6144 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6145 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6146 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
6148 mingw*)
6149 # MinGW DLLs use traditional 'lib' prefix
6150 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6151 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
6152 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6153 # It is most probably a Windows format PATH printed by
6154 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6155 # path with ; separators, and with drive letters. We can handle the
6156 # drive letters (cygwin fileutils understands them), so leave them,
6157 # especially as we might pass files found there to a mingw objdump,
6158 # which wouldn't understand a cygwinified path. Ahh.
6159 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6160 else
6161 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6164 pw32*)
6165 # pw32 DLLs use 'pw' prefix rather than 'lib'
6166 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
6168 esac
6172 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6174 esac
6175 dynamic_linker='Win32 ld.exe'
6176 # FIXME: first we should search . and the directory the executable is in
6177 shlibpath_var=PATH
6180 darwin* | rhapsody*)
6181 dynamic_linker="$host_os dyld"
6182 version_type=darwin
6183 need_lib_prefix=no
6184 need_version=no
6185 # FIXME: Relying on posixy $() will cause problems for
6186 # cross-compilation, but unfortunately the echo tests do not
6187 # yet detect zsh echo's removal of \ escapes.
6188 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6189 soname_spec='${libname}${release}${major}$shared_ext'
6190 shlibpath_overrides_runpath=yes
6191 shlibpath_var=DYLD_LIBRARY_PATH
6192 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
6193 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6194 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6195 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"`
6197 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6200 dgux*)
6201 version_type=linux
6202 need_lib_prefix=no
6203 need_version=no
6204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6205 soname_spec='${libname}${release}${shared_ext}$major'
6206 shlibpath_var=LD_LIBRARY_PATH
6209 freebsd*)
6210 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6211 version_type=freebsd-$objformat
6212 case $version_type in
6213 freebsd-elf*)
6214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6215 need_version=no
6216 need_lib_prefix=no
6218 freebsd-*)
6219 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6220 need_version=yes
6222 esac
6223 shlibpath_var=LD_LIBRARY_PATH
6224 case $host_os in
6225 freebsd2*)
6226 shlibpath_overrides_runpath=yes
6228 freebsd3.01* | freebsdelf3.01*)
6229 shlibpath_overrides_runpath=yes
6230 hardcode_into_libs=yes
6232 *) # from 3.2 on
6233 shlibpath_overrides_runpath=no
6234 hardcode_into_libs=yes
6236 esac
6239 gnu*)
6240 version_type=linux
6241 need_lib_prefix=no
6242 need_version=no
6243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6244 soname_spec='${libname}${release}${shared_ext}$major'
6245 shlibpath_var=LD_LIBRARY_PATH
6246 hardcode_into_libs=yes
6249 hpux9* | hpux10* | hpux11*)
6250 # Give a soname corresponding to the major version so that dld.sl refuses to
6251 # link against other versions.
6252 version_type=sunos
6253 need_lib_prefix=no
6254 need_version=no
6255 case "$host_cpu" in
6256 ia64*)
6257 shrext='.so'
6258 hardcode_into_libs=yes
6259 dynamic_linker="$host_os dld.so"
6260 shlibpath_var=LD_LIBRARY_PATH
6261 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6263 soname_spec='${libname}${release}${shared_ext}$major'
6264 if test "X$HPUX_IA64_MODE" = X32; then
6265 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6266 else
6267 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6269 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6271 hppa*64*)
6272 shrext='.sl'
6273 hardcode_into_libs=yes
6274 dynamic_linker="$host_os dld.sl"
6275 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6276 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6278 soname_spec='${libname}${release}${shared_ext}$major'
6279 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6280 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6283 shrext='.sl'
6284 dynamic_linker="$host_os dld.sl"
6285 shlibpath_var=SHLIB_PATH
6286 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6288 soname_spec='${libname}${release}${shared_ext}$major'
6290 esac
6291 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6292 postinstall_cmds='chmod 555 $lib'
6295 irix5* | irix6* | nonstopux*)
6296 case $host_os in
6297 nonstopux*) version_type=nonstopux ;;
6299 if test "$lt_cv_prog_gnu_ld" = yes; then
6300 version_type=linux
6301 else
6302 version_type=irix
6303 fi ;;
6304 esac
6305 need_lib_prefix=no
6306 need_version=no
6307 soname_spec='${libname}${release}${shared_ext}$major'
6308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6309 case $host_os in
6310 irix5* | nonstopux*)
6311 libsuff= shlibsuff=
6314 case $LD in # libtool.m4 will add one of these switches to LD
6315 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6316 libsuff= shlibsuff= libmagic=32-bit;;
6317 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6318 libsuff=32 shlibsuff=N32 libmagic=N32;;
6319 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6320 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6321 *) libsuff= shlibsuff= libmagic=never-match;;
6322 esac
6324 esac
6325 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6326 shlibpath_overrides_runpath=no
6327 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6328 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6329 hardcode_into_libs=yes
6332 # No shared lib support for Linux oldld, aout, or coff.
6333 linux*oldld* | linux*aout* | linux*coff*)
6334 dynamic_linker=no
6337 # This must be Linux ELF.
6338 linux*|k*bsd*-gnu)
6339 version_type=linux
6340 need_lib_prefix=no
6341 need_version=no
6342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6343 soname_spec='${libname}${release}${shared_ext}$major'
6344 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6345 shlibpath_var=LD_LIBRARY_PATH
6346 shlibpath_overrides_runpath=no
6347 # This implies no fast_install, which is unacceptable.
6348 # Some rework will be needed to allow for fast_install
6349 # before this can be enabled.
6350 hardcode_into_libs=yes
6352 # We used to test for /lib/ld.so.1 and disable shared libraries on
6353 # powerpc, because MkLinux only supported shared libraries with the
6354 # GNU dynamic linker. Since this was broken with cross compilers,
6355 # most powerpc-linux boxes support dynamic linking these days and
6356 # people can always --disable-shared, the test was removed, and we
6357 # assume the GNU/Linux dynamic linker is in use.
6358 dynamic_linker='GNU/Linux ld.so'
6361 netbsd*)
6362 version_type=sunos
6363 need_lib_prefix=no
6364 need_version=no
6365 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6367 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6368 dynamic_linker='NetBSD (a.out) ld.so'
6369 else
6370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
6371 soname_spec='${libname}${release}${shared_ext}$major'
6372 dynamic_linker='NetBSD ld.elf_so'
6374 shlibpath_var=LD_LIBRARY_PATH
6375 shlibpath_overrides_runpath=yes
6376 hardcode_into_libs=yes
6379 newsos6)
6380 version_type=linux
6381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6382 shlibpath_var=LD_LIBRARY_PATH
6383 shlibpath_overrides_runpath=yes
6386 nto-qnx)
6387 version_type=linux
6388 need_lib_prefix=no
6389 need_version=no
6390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6391 soname_spec='${libname}${release}${shared_ext}$major'
6392 shlibpath_var=LD_LIBRARY_PATH
6393 shlibpath_overrides_runpath=yes
6396 openbsd*)
6397 version_type=sunos
6398 need_lib_prefix=no
6399 need_version=no
6400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6401 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6402 shlibpath_var=LD_LIBRARY_PATH
6403 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6404 case $host_os in
6405 openbsd2.[89] | openbsd2.[89].*)
6406 shlibpath_overrides_runpath=no
6409 shlibpath_overrides_runpath=yes
6411 esac
6412 else
6413 shlibpath_overrides_runpath=yes
6417 os2*)
6418 libname_spec='$name'
6419 shrext=".dll"
6420 need_lib_prefix=no
6421 library_names_spec='$libname${shared_ext} $libname.a'
6422 dynamic_linker='OS/2 ld.exe'
6423 shlibpath_var=LIBPATH
6426 osf3* | osf4* | osf5*)
6427 version_type=osf
6428 need_lib_prefix=no
6429 need_version=no
6430 soname_spec='${libname}${release}${shared_ext}$major'
6431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6432 shlibpath_var=LD_LIBRARY_PATH
6433 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6434 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6437 sco3.2v5*)
6438 version_type=osf
6439 soname_spec='${libname}${release}${shared_ext}$major'
6440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6441 shlibpath_var=LD_LIBRARY_PATH
6444 solaris*)
6445 version_type=linux
6446 need_lib_prefix=no
6447 need_version=no
6448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6449 soname_spec='${libname}${release}${shared_ext}$major'
6450 shlibpath_var=LD_LIBRARY_PATH
6451 shlibpath_overrides_runpath=yes
6452 hardcode_into_libs=yes
6453 # ldd complains unless libraries are executable
6454 postinstall_cmds='chmod +x $lib'
6457 sunos4*)
6458 version_type=sunos
6459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6460 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6461 shlibpath_var=LD_LIBRARY_PATH
6462 shlibpath_overrides_runpath=yes
6463 if test "$with_gnu_ld" = yes; then
6464 need_lib_prefix=no
6466 need_version=yes
6469 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6470 version_type=linux
6471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6472 soname_spec='${libname}${release}${shared_ext}$major'
6473 shlibpath_var=LD_LIBRARY_PATH
6474 case $host_vendor in
6475 sni)
6476 shlibpath_overrides_runpath=no
6477 need_lib_prefix=no
6478 export_dynamic_flag_spec='${wl}-Blargedynsym'
6479 runpath_var=LD_RUN_PATH
6481 siemens)
6482 need_lib_prefix=no
6484 motorola)
6485 need_lib_prefix=no
6486 need_version=no
6487 shlibpath_overrides_runpath=no
6488 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6490 esac
6493 sysv4*MP*)
6494 if test -d /usr/nec ;then
6495 version_type=linux
6496 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
6497 soname_spec='$libname${shared_ext}.$major'
6498 shlibpath_var=LD_LIBRARY_PATH
6502 uts4*)
6503 version_type=linux
6504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6505 soname_spec='${libname}${release}${shared_ext}$major'
6506 shlibpath_var=LD_LIBRARY_PATH
6510 dynamic_linker=no
6512 esac
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
6514 $as_echo "$dynamic_linker" >&6; }
6515 test "$dynamic_linker" = no && can_build_shared=no
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
6519 $as_echo_n "checking which variable specifies run-time library path... " >&6; }
6520 if test "${libltdl_cv_shlibpath_var+set}" = set; then :
6521 $as_echo_n "(cached) " >&6
6522 else
6523 libltdl_cv_shlibpath_var="$shlibpath_var"
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
6526 $as_echo "$libltdl_cv_shlibpath_var" >&6; }
6527 if test -n "$libltdl_cv_shlibpath_var"; then
6529 cat >>confdefs.h <<_ACEOF
6530 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
6531 _ACEOF
6537 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
6540 # Possibly build libgcj as many sub-libraries.
6541 # Check whether --enable-libgcj-sublibs was given.
6542 if test "${enable_libgcj_sublibs+set}" = set; then :
6543 enableval=$enable_libgcj_sublibs;
6547 if test -z "$enable_libgcj_sublibs"; then
6548 enable_libgcj_sublibs=$enable_libgcj_sublibs_default
6550 if test "$enable_libgcj_sublibs" = yes; then
6551 BUILD_SUBLIBS_TRUE=
6552 BUILD_SUBLIBS_FALSE='#'
6553 else
6554 BUILD_SUBLIBS_TRUE='#'
6555 BUILD_SUBLIBS_FALSE=
6558 if test "$enable_libgcj_sublibs" = yes ; then
6559 # In theory we could make do with only one override and simply
6560 # tag "_bc" onto the end of it when we use it to generate the
6561 # spec, but that's an ugly thing to do when there are multiple
6562 # words in the string and you're relying on the ordering to
6563 # append the correct one.
6564 libgcj_spec_lgcj_override="-lgcj-noncore -lgcj"
6565 libgcj_spec_lgcj_bc_override="-lgcj-noncore -lgcj_bc"
6569 # See if the user has requested runtime debugging.
6570 LIBGCJDEBUG="disable"
6572 # Check whether --enable-libgcj-debug was given.
6573 if test "${enable_libgcj_debug+set}" = set; then :
6574 enableval=$enable_libgcj_debug; if test "$enable_libgcj_debug" = yes; then
6576 $as_echo "#define __GCJ_DEBUG 1" >>confdefs.h
6578 LIBGCJDEBUG="enable"
6584 # Check whether --with-escher was given.
6585 if test "${with_escher+set}" = set; then :
6586 withval=$with_escher;
6589 case "$with_escher" in
6591 use_escher=false
6593 "no")
6594 use_escher=false
6596 "yes")
6597 as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
6600 use_escher=true
6602 esac
6604 # Determine which AWT peer libraries to build
6605 # Check whether --enable-java-awt was given.
6606 if test "${enable_java_awt+set}" = set; then :
6607 enableval=$enable_java_awt;
6611 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6612 use_xlib_awt=""
6613 use_gtk_awt=""
6614 use_qt_awt=""
6615 use_x_awt=""
6616 # The default toolkit to use is the first one specified.
6617 TOOLKIT=
6620 for peer in $peerlibs ; do
6621 case $peer in
6622 xlib)
6623 if test "$no_x" = yes; then
6624 echo "*** xlib peers requested but no X library available" 1>&2
6625 exit 1
6626 else
6627 use_xlib_awt="yes"
6628 if test -z "$TOOLKIT"; then
6629 TOOLKIT=gnu.awt.xlib.XToolkit
6633 gtk)
6634 if test "$no_x" = yes; then
6635 echo "*** gtk peers requested but no X library available" 1>&2
6636 exit 1
6637 else
6638 use_gtk_awt=yes
6639 if test -z "$TOOLKIT"; then
6640 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
6645 if test "$no_x" = yes; then
6646 # Perhaps we should admit the possibility of embedded Qt.
6647 echo "*** Qt peers requested but no X library available" 1>&2
6648 exit 1
6649 else
6650 use_qt_awt=yes
6651 if test -z "$TOOLKIT"; then
6652 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
6657 use_x_awt=yes
6658 if test -z "$TOOLKIT"; then
6659 TOOLKIT=gnu.java.awt.peer.x.XToolkit
6663 use_xlib_awt=
6664 use_gtk_awt=
6665 use_qt_awt=
6666 use_x_awt=
6667 break
6670 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
6671 exit 1
6672 esac
6673 done
6675 if test "$use_xlib_awt" = yes; then
6676 XLIB_AWT_TRUE=
6677 XLIB_AWT_FALSE='#'
6678 else
6679 XLIB_AWT_TRUE='#'
6680 XLIB_AWT_FALSE=
6683 if test "$use_x_awt" = yes; then
6684 X_AWT_TRUE=
6685 X_AWT_FALSE='#'
6686 else
6687 X_AWT_TRUE='#'
6688 X_AWT_FALSE=
6693 cat >>confdefs.h <<_ACEOF
6694 #define AWT_TOOLKIT "$TOOLKIT"
6695 _ACEOF
6698 expanded_prefix=$prefix
6699 if test "X$prefix" = XNONE; then
6700 expanded_prefix=${ac_default_prefix}
6704 cat >>confdefs.h <<_ACEOF
6705 #define LIBGCJ_PREFIX "$expanded_prefix"
6706 _ACEOF
6709 # Create standard.omit based on decisions we just made.
6710 cp $srcdir/standard.omit.in standard.omit
6711 if test "$use_xlib_awt" != yes; then
6712 echo gnu/awt/xlib >> standard.omit
6713 echo gnu/gcj/xlib >> standard.omit
6715 if test "$use_x_awt" != yes; then
6716 echo gnu/java/awt/peer/x >> standard.omit
6719 # Tools that need to be compiled against classpath's tools classes
6720 : > vm-tools-packages
6721 for package in gnu/gcj/tools/gc_analyze ; do
6722 echo $package >> standard.omit
6723 echo $package >> vm-tools-packages
6724 done
6726 if test -z "${with_multisubdir}"; then
6727 builddotdot=.
6728 else
6729 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
6732 NATIVE=yes
6734 # Which gcj and host gcj (for ecjx) do we use?
6735 which_gcj=default
6736 host_exeext=${ac_exeext}
6737 GCJ_FOR_ECJX='$(GCJ)'
6738 GCC_FOR_ECJX='$(CXX)'
6739 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
6740 if test -n "${with_cross_host}"; then
6741 # We are being configured with a cross compiler. We can't
6742 # use ac_exeext, because that is for the target platform.
6743 NATIVE=no
6744 cross_host_exeext=
6745 GCJ_FOR_ECJX="${with_cross_host}-gcj"
6746 GCC_FOR_ECJX="${with_cross_host}-gcc"
6747 case "${with_cross_host}" in
6748 *mingw* | *cygwin*)
6749 cross_host_exeext=.exe
6751 esac
6752 host_exeext=${cross_host_exeext}
6753 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
6754 if test x"$build_noncanonical" = x"$with_cross_host"; then
6755 # Ordinary cross (host!=target and host=build)
6756 which_gcj=built
6757 else
6758 # Canadian cross (host!=target and host!=build)
6759 which_gcj=cross
6761 else
6762 which_gcj=cross
6764 else
6765 # We are being configured with a native or crossed-native compiler
6766 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
6767 if test x"$build" = x"$host"; then
6768 # True native build (host=target and host=build)
6769 which_gcj=built
6770 else
6771 # Crossed-native build (host=target and host!=build)
6772 which_gcj=cross
6774 else
6775 which_gcj=path
6778 libgcjdir=`${PWDCMD-pwd}`
6779 case $GCJ in
6780 *" -B"*)
6781 # Just in case there is a comma in the build dir, quote it for the
6782 # sed command below.
6783 case $libgcjdir in
6784 *[,\\]*) qlibgcjdir=`echo "$libgcjdir" | sed 's:[,\\]:\\&:g'`;;
6785 *) qlibgcjdir=$libgcjdir;;
6786 esac
6787 GCJ=`echo "$GCJ" | sed "s, -B, -B$qlibgcjdir/&,"`
6790 GCJ=$GCJ" -B$libgcjdir/"
6792 esac
6793 case "${which_gcj}" in
6794 built)
6795 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
6797 cross)
6798 if test "x${with_newlib}" = "xyes"; then
6799 # FIXME (comment): Why is this needed?
6800 LIBGCC_UNWIND_INCLUDE=
6802 GCJH='$(target_noncanonical)-gcjh'
6804 path)
6805 GCJH=gcjh
6807 esac
6808 JAVAC="$GCJ -C"
6809 export JAVAC
6816 # Create it, so that compile/link tests don't fail
6817 test -f libgcj.spec || touch libgcj.spec
6821 # Set up to configure Classpath.
6822 # FIXME: no supported way to pass args in autoconf.
6823 # Disable tool wrappers to avoid ltdl.h configure check.
6824 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
6825 ac_configure_args="$ac_configure_args --disable-load-library"
6826 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
6827 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
6828 dir1=`cd $srcdir && pwd`
6829 dir2=`pwd`
6830 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
6831 ac_configure_args="$ac_configure_args --disable-core-jni"
6832 ac_configure_args="$ac_configure_args --disable-examples"
6833 ac_configure_args="$ac_configure_args --with-glibj=build"
6834 if test "$browser_plugin_enabled" != yes; then
6835 ac_configure_args="$ac_configure_args --disable-plugin"
6836 else
6837 ac_configure_args="$ac_configure_args --enable-plugin"
6839 if test "$gconf_enabled" != yes; then
6840 ac_configure_args="$ac_configure_args --disable-gconf-peer"
6841 ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
6843 if test "$use_gtk_awt" != yes; then
6844 ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
6846 if test "$use_qt_awt" != yes; then
6847 ac_configure_args="$ac_configure_args --disable-qt-peer"
6848 else
6849 # We need this as qt is disabled by default in classpath.
6850 ac_configure_args="$ac_configure_args --enable-qt-peer"
6852 if test "$use_x_awt" != yes; then
6853 ac_configure_args="$ac_configure_args --without-escher"
6854 else
6855 # We need this as escher is disabled by default in classpath.
6856 if test "$use_escher" != true; then
6857 as_fn_error "Please supply an absolute path to the Escher library" "$LINENO" 5
6858 else
6859 ac_configure_args="$ac_configure_args --with-escher=$with_escher"
6862 if test "x$BUILD_GJDOC" = xno; then
6863 ac_configure_args="$ac_configure_args --disable-gjdoc"
6865 # -Werror causes unavoidable problems in code using alsa.
6866 ac_configure_args="$ac_configure_args --disable-regen-headers"
6867 ac_configure_args="$ac_configure_args --disable-Werror"
6869 # Only use libltdl for non-newlib builds.
6870 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
6871 case $enable_ltdl_convenience in
6872 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
6873 "") enable_ltdl_convenience=yes
6874 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
6875 esac
6876 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
6877 LTDLINCL='-I${top_srcdir}/''libltdl'
6878 # For backwards non-gettext consistent compatibility...
6879 INCLTDL="$LTDLINCL"
6881 enable_dlopen=yes
6885 DIRLTDL=libltdl
6887 $as_echo "#define USE_LTDL 1" >>confdefs.h
6889 # Sigh. Libtool's macro doesn't do the right thing.
6890 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
6891 # FIXME: this is a hack.
6892 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
6893 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
6898 case `pwd` in
6899 *\ * | *\ *)
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6901 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6902 esac
6906 macro_version='2.2.7a'
6907 macro_revision='1.3134'
6921 ltmain="$ac_aux_dir/ltmain.sh"
6923 # Backslashify metacharacters that are still active within
6924 # double-quoted strings.
6925 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6927 # Same as above, but do not quote variable references.
6928 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6930 # Sed substitution to delay expansion of an escaped shell variable in a
6931 # double_quote_subst'ed string.
6932 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6934 # Sed substitution to delay expansion of an escaped single quote.
6935 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6937 # Sed substitution to avoid accidental globbing in evaled expressions
6938 no_glob_subst='s/\*/\\\*/g'
6940 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6941 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6942 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6945 $as_echo_n "checking how to print strings... " >&6; }
6946 # Test print first, because it will be a builtin if present.
6947 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6948 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6949 ECHO='print -r --'
6950 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6951 ECHO='printf %s\n'
6952 else
6953 # Use this function as a fallback that always works.
6954 func_fallback_echo ()
6956 eval 'cat <<_LTECHO_EOF
6958 _LTECHO_EOF'
6960 ECHO='func_fallback_echo'
6963 # func_echo_all arg...
6964 # Invoke $ECHO with all args, space-separated.
6965 func_echo_all ()
6967 $ECHO ""
6970 case "$ECHO" in
6971 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6972 $as_echo "printf" >&6; } ;;
6973 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6974 $as_echo "print -r" >&6; } ;;
6975 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6976 $as_echo "cat" >&6; } ;;
6977 esac
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6993 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6994 if test "${ac_cv_path_SED+set}" = set; then :
6995 $as_echo_n "(cached) " >&6
6996 else
6997 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6998 for ac_i in 1 2 3 4 5 6 7; do
6999 ac_script="$ac_script$as_nl$ac_script"
7000 done
7001 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7002 { ac_script=; unset ac_script;}
7003 if test -z "$SED"; then
7004 ac_path_SED_found=false
7005 # Loop through the user's path and test for each of PROGNAME-LIST
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007 for as_dir in $PATH
7009 IFS=$as_save_IFS
7010 test -z "$as_dir" && as_dir=.
7011 for ac_prog in sed gsed; do
7012 for ac_exec_ext in '' $ac_executable_extensions; do
7013 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7014 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7015 # Check for GNU ac_path_SED and select it if it is found.
7016 # Check for GNU $ac_path_SED
7017 case `"$ac_path_SED" --version 2>&1` in
7018 *GNU*)
7019 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7021 ac_count=0
7022 $as_echo_n 0123456789 >"conftest.in"
7023 while :
7025 cat "conftest.in" "conftest.in" >"conftest.tmp"
7026 mv "conftest.tmp" "conftest.in"
7027 cp "conftest.in" "conftest.nl"
7028 $as_echo '' >> "conftest.nl"
7029 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7030 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7031 as_fn_arith $ac_count + 1 && ac_count=$as_val
7032 if test $ac_count -gt ${ac_path_SED_max-0}; then
7033 # Best one so far, save it but keep looking for a better one
7034 ac_cv_path_SED="$ac_path_SED"
7035 ac_path_SED_max=$ac_count
7037 # 10*(2^10) chars as input seems more than enough
7038 test $ac_count -gt 10 && break
7039 done
7040 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7041 esac
7043 $ac_path_SED_found && break 3
7044 done
7045 done
7046 done
7047 IFS=$as_save_IFS
7048 if test -z "$ac_cv_path_SED"; then
7049 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7051 else
7052 ac_cv_path_SED=$SED
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7057 $as_echo "$ac_cv_path_SED" >&6; }
7058 SED="$ac_cv_path_SED"
7059 rm -f conftest.sed
7061 test -z "$SED" && SED=sed
7062 Xsed="$SED -e 1s/^X//"
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7075 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7076 if test "${ac_cv_path_GREP+set}" = set; then :
7077 $as_echo_n "(cached) " >&6
7078 else
7079 if test -z "$GREP"; then
7080 ac_path_GREP_found=false
7081 # Loop through the user's path and test for each of PROGNAME-LIST
7082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7085 IFS=$as_save_IFS
7086 test -z "$as_dir" && as_dir=.
7087 for ac_prog in grep ggrep; do
7088 for ac_exec_ext in '' $ac_executable_extensions; do
7089 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7090 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7091 # Check for GNU ac_path_GREP and select it if it is found.
7092 # Check for GNU $ac_path_GREP
7093 case `"$ac_path_GREP" --version 2>&1` in
7094 *GNU*)
7095 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7097 ac_count=0
7098 $as_echo_n 0123456789 >"conftest.in"
7099 while :
7101 cat "conftest.in" "conftest.in" >"conftest.tmp"
7102 mv "conftest.tmp" "conftest.in"
7103 cp "conftest.in" "conftest.nl"
7104 $as_echo 'GREP' >> "conftest.nl"
7105 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7106 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7107 as_fn_arith $ac_count + 1 && ac_count=$as_val
7108 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7109 # Best one so far, save it but keep looking for a better one
7110 ac_cv_path_GREP="$ac_path_GREP"
7111 ac_path_GREP_max=$ac_count
7113 # 10*(2^10) chars as input seems more than enough
7114 test $ac_count -gt 10 && break
7115 done
7116 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7117 esac
7119 $ac_path_GREP_found && break 3
7120 done
7121 done
7122 done
7123 IFS=$as_save_IFS
7124 if test -z "$ac_cv_path_GREP"; then
7125 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7127 else
7128 ac_cv_path_GREP=$GREP
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7133 $as_echo "$ac_cv_path_GREP" >&6; }
7134 GREP="$ac_cv_path_GREP"
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7138 $as_echo_n "checking for egrep... " >&6; }
7139 if test "${ac_cv_path_EGREP+set}" = set; then :
7140 $as_echo_n "(cached) " >&6
7141 else
7142 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7143 then ac_cv_path_EGREP="$GREP -E"
7144 else
7145 if test -z "$EGREP"; then
7146 ac_path_EGREP_found=false
7147 # Loop through the user's path and test for each of PROGNAME-LIST
7148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7151 IFS=$as_save_IFS
7152 test -z "$as_dir" && as_dir=.
7153 for ac_prog in egrep; do
7154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7156 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7157 # Check for GNU ac_path_EGREP and select it if it is found.
7158 # Check for GNU $ac_path_EGREP
7159 case `"$ac_path_EGREP" --version 2>&1` in
7160 *GNU*)
7161 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7163 ac_count=0
7164 $as_echo_n 0123456789 >"conftest.in"
7165 while :
7167 cat "conftest.in" "conftest.in" >"conftest.tmp"
7168 mv "conftest.tmp" "conftest.in"
7169 cp "conftest.in" "conftest.nl"
7170 $as_echo 'EGREP' >> "conftest.nl"
7171 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7172 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7173 as_fn_arith $ac_count + 1 && ac_count=$as_val
7174 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7175 # Best one so far, save it but keep looking for a better one
7176 ac_cv_path_EGREP="$ac_path_EGREP"
7177 ac_path_EGREP_max=$ac_count
7179 # 10*(2^10) chars as input seems more than enough
7180 test $ac_count -gt 10 && break
7181 done
7182 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7183 esac
7185 $ac_path_EGREP_found && break 3
7186 done
7187 done
7188 done
7189 IFS=$as_save_IFS
7190 if test -z "$ac_cv_path_EGREP"; then
7191 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7193 else
7194 ac_cv_path_EGREP=$EGREP
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7200 $as_echo "$ac_cv_path_EGREP" >&6; }
7201 EGREP="$ac_cv_path_EGREP"
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7205 $as_echo_n "checking for fgrep... " >&6; }
7206 if test "${ac_cv_path_FGREP+set}" = set; then :
7207 $as_echo_n "(cached) " >&6
7208 else
7209 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7210 then ac_cv_path_FGREP="$GREP -F"
7211 else
7212 if test -z "$FGREP"; then
7213 ac_path_FGREP_found=false
7214 # Loop through the user's path and test for each of PROGNAME-LIST
7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7218 IFS=$as_save_IFS
7219 test -z "$as_dir" && as_dir=.
7220 for ac_prog in fgrep; do
7221 for ac_exec_ext in '' $ac_executable_extensions; do
7222 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7223 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7224 # Check for GNU ac_path_FGREP and select it if it is found.
7225 # Check for GNU $ac_path_FGREP
7226 case `"$ac_path_FGREP" --version 2>&1` in
7227 *GNU*)
7228 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7230 ac_count=0
7231 $as_echo_n 0123456789 >"conftest.in"
7232 while :
7234 cat "conftest.in" "conftest.in" >"conftest.tmp"
7235 mv "conftest.tmp" "conftest.in"
7236 cp "conftest.in" "conftest.nl"
7237 $as_echo 'FGREP' >> "conftest.nl"
7238 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7239 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7240 as_fn_arith $ac_count + 1 && ac_count=$as_val
7241 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7242 # Best one so far, save it but keep looking for a better one
7243 ac_cv_path_FGREP="$ac_path_FGREP"
7244 ac_path_FGREP_max=$ac_count
7246 # 10*(2^10) chars as input seems more than enough
7247 test $ac_count -gt 10 && break
7248 done
7249 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7250 esac
7252 $ac_path_FGREP_found && break 3
7253 done
7254 done
7255 done
7256 IFS=$as_save_IFS
7257 if test -z "$ac_cv_path_FGREP"; then
7258 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7260 else
7261 ac_cv_path_FGREP=$FGREP
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7267 $as_echo "$ac_cv_path_FGREP" >&6; }
7268 FGREP="$ac_cv_path_FGREP"
7271 test -z "$GREP" && GREP=grep
7291 # Check whether --with-gnu-ld was given.
7292 if test "${with_gnu_ld+set}" = set; then :
7293 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7294 else
7295 with_gnu_ld=no
7298 ac_prog=ld
7299 if test "$GCC" = yes; then
7300 # Check if gcc -print-prog-name=ld gives a path.
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7302 $as_echo_n "checking for ld used by $CC... " >&6; }
7303 case $host in
7304 *-*-mingw*)
7305 # gcc leaves a trailing carriage return which upsets mingw
7306 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7308 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7309 esac
7310 case $ac_prog in
7311 # Accept absolute paths.
7312 [\\/]* | ?:[\\/]*)
7313 re_direlt='/[^/][^/]*/\.\./'
7314 # Canonicalize the pathname of ld
7315 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7316 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7317 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7318 done
7319 test -z "$LD" && LD="$ac_prog"
7322 # If it fails, then pretend we aren't using GCC.
7323 ac_prog=ld
7326 # If it is relative, then search for the first ld in PATH.
7327 with_gnu_ld=unknown
7329 esac
7330 elif test "$with_gnu_ld" = yes; then
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7332 $as_echo_n "checking for GNU ld... " >&6; }
7333 else
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7335 $as_echo_n "checking for non-GNU ld... " >&6; }
7337 if test "${lt_cv_path_LD+set}" = set; then :
7338 $as_echo_n "(cached) " >&6
7339 else
7340 if test -z "$LD"; then
7341 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7342 for ac_dir in $PATH; do
7343 IFS="$lt_save_ifs"
7344 test -z "$ac_dir" && ac_dir=.
7345 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7346 lt_cv_path_LD="$ac_dir/$ac_prog"
7347 # Check to see if the program is GNU ld. I'd rather use --version,
7348 # but apparently some variants of GNU ld only accept -v.
7349 # Break only if it was the GNU/non-GNU ld that we prefer.
7350 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7351 *GNU* | *'with BFD'*)
7352 test "$with_gnu_ld" != no && break
7355 test "$with_gnu_ld" != yes && break
7357 esac
7359 done
7360 IFS="$lt_save_ifs"
7361 else
7362 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7366 LD="$lt_cv_path_LD"
7367 if test -n "$LD"; then
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7369 $as_echo "$LD" >&6; }
7370 else
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7372 $as_echo "no" >&6; }
7374 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7376 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7377 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7378 $as_echo_n "(cached) " >&6
7379 else
7380 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7381 case `$LD -v 2>&1 </dev/null` in
7382 *GNU* | *'with BFD'*)
7383 lt_cv_prog_gnu_ld=yes
7386 lt_cv_prog_gnu_ld=no
7388 esac
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7391 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7392 with_gnu_ld=$lt_cv_prog_gnu_ld
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7403 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7404 if test "${lt_cv_path_NM+set}" = set; then :
7405 $as_echo_n "(cached) " >&6
7406 else
7407 if test -n "$NM"; then
7408 # Let the user override the test.
7409 lt_cv_path_NM="$NM"
7410 else
7411 lt_nm_to_check="${ac_tool_prefix}nm"
7412 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7413 lt_nm_to_check="$lt_nm_to_check nm"
7415 for lt_tmp_nm in $lt_nm_to_check; do
7416 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7417 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7418 IFS="$lt_save_ifs"
7419 test -z "$ac_dir" && ac_dir=.
7420 tmp_nm="$ac_dir/$lt_tmp_nm"
7421 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7422 # Check to see if the nm accepts a BSD-compat flag.
7423 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7424 # nm: unknown option "B" ignored
7425 # Tru64's nm complains that /dev/null is an invalid object file
7426 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7427 */dev/null* | *'Invalid file or object type'*)
7428 lt_cv_path_NM="$tmp_nm -B"
7429 break
7432 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7433 */dev/null*)
7434 lt_cv_path_NM="$tmp_nm -p"
7435 break
7438 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7439 continue # so that we can try to find one that supports BSD flags
7441 esac
7443 esac
7445 done
7446 IFS="$lt_save_ifs"
7447 done
7448 : ${lt_cv_path_NM=no}
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7452 $as_echo "$lt_cv_path_NM" >&6; }
7453 if test "$lt_cv_path_NM" != "no"; then
7454 NM="$lt_cv_path_NM"
7455 else
7456 # Didn't find any BSD compatible name lister, look for dumpbin.
7457 if test -n "$DUMPBIN"; then :
7458 # Let the user override the test.
7459 else
7460 if test -n "$ac_tool_prefix"; then
7461 for ac_prog in dumpbin "link -dump"
7463 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7464 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7466 $as_echo_n "checking for $ac_word... " >&6; }
7467 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7468 $as_echo_n "(cached) " >&6
7469 else
7470 if test -n "$DUMPBIN"; then
7471 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7472 else
7473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7474 for as_dir in $PATH
7476 IFS=$as_save_IFS
7477 test -z "$as_dir" && as_dir=.
7478 for ac_exec_ext in '' $ac_executable_extensions; do
7479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7480 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7482 break 2
7484 done
7485 done
7486 IFS=$as_save_IFS
7490 DUMPBIN=$ac_cv_prog_DUMPBIN
7491 if test -n "$DUMPBIN"; then
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7493 $as_echo "$DUMPBIN" >&6; }
7494 else
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7496 $as_echo "no" >&6; }
7500 test -n "$DUMPBIN" && break
7501 done
7503 if test -z "$DUMPBIN"; then
7504 ac_ct_DUMPBIN=$DUMPBIN
7505 for ac_prog in dumpbin "link -dump"
7507 # Extract the first word of "$ac_prog", so it can be a program name with args.
7508 set dummy $ac_prog; ac_word=$2
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7510 $as_echo_n "checking for $ac_word... " >&6; }
7511 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7512 $as_echo_n "(cached) " >&6
7513 else
7514 if test -n "$ac_ct_DUMPBIN"; then
7515 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7516 else
7517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7518 for as_dir in $PATH
7520 IFS=$as_save_IFS
7521 test -z "$as_dir" && as_dir=.
7522 for ac_exec_ext in '' $ac_executable_extensions; do
7523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7524 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7526 break 2
7528 done
7529 done
7530 IFS=$as_save_IFS
7534 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7535 if test -n "$ac_ct_DUMPBIN"; then
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7537 $as_echo "$ac_ct_DUMPBIN" >&6; }
7538 else
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7540 $as_echo "no" >&6; }
7544 test -n "$ac_ct_DUMPBIN" && break
7545 done
7547 if test "x$ac_ct_DUMPBIN" = x; then
7548 DUMPBIN=":"
7549 else
7550 case $cross_compiling:$ac_tool_warned in
7551 yes:)
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7554 ac_tool_warned=yes ;;
7555 esac
7556 DUMPBIN=$ac_ct_DUMPBIN
7560 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7561 *COFF*)
7562 DUMPBIN="$DUMPBIN -symbols"
7565 DUMPBIN=:
7567 esac
7570 if test "$DUMPBIN" != ":"; then
7571 NM="$DUMPBIN"
7574 test -z "$NM" && NM=nm
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7582 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7583 if test "${lt_cv_nm_interface+set}" = set; then :
7584 $as_echo_n "(cached) " >&6
7585 else
7586 lt_cv_nm_interface="BSD nm"
7587 echo "int some_variable = 0;" > conftest.$ac_ext
7588 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7589 (eval "$ac_compile" 2>conftest.err)
7590 cat conftest.err >&5
7591 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7592 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7593 cat conftest.err >&5
7594 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7595 cat conftest.out >&5
7596 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7597 lt_cv_nm_interface="MS dumpbin"
7599 rm -f conftest*
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7602 $as_echo "$lt_cv_nm_interface" >&6; }
7604 # find the maximum length of command line arguments
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7606 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7607 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7608 $as_echo_n "(cached) " >&6
7609 else
7611 teststring="ABCD"
7613 case $build_os in
7614 msdosdjgpp*)
7615 # On DJGPP, this test can blow up pretty badly due to problems in libc
7616 # (any single argument exceeding 2000 bytes causes a buffer overrun
7617 # during glob expansion). Even if it were fixed, the result of this
7618 # check would be larger than it should be.
7619 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7622 gnu*)
7623 # Under GNU Hurd, this test is not required because there is
7624 # no limit to the length of command line arguments.
7625 # Libtool will interpret -1 as no limit whatsoever
7626 lt_cv_sys_max_cmd_len=-1;
7629 cygwin* | mingw* | cegcc*)
7630 # On Win9x/ME, this test blows up -- it succeeds, but takes
7631 # about 5 minutes as the teststring grows exponentially.
7632 # Worse, since 9x/ME are not pre-emptively multitasking,
7633 # you end up with a "frozen" computer, even though with patience
7634 # the test eventually succeeds (with a max line length of 256k).
7635 # Instead, let's just punt: use the minimum linelength reported by
7636 # all of the supported platforms: 8192 (on NT/2K/XP).
7637 lt_cv_sys_max_cmd_len=8192;
7640 mint*)
7641 # On MiNT this can take a long time and run out of memory.
7642 lt_cv_sys_max_cmd_len=8192;
7645 amigaos*)
7646 # On AmigaOS with pdksh, this test takes hours, literally.
7647 # So we just punt and use a minimum line length of 8192.
7648 lt_cv_sys_max_cmd_len=8192;
7651 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7652 # This has been around since 386BSD, at least. Likely further.
7653 if test -x /sbin/sysctl; then
7654 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7655 elif test -x /usr/sbin/sysctl; then
7656 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7657 else
7658 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7660 # And add a safety zone
7661 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7662 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7665 interix*)
7666 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7667 lt_cv_sys_max_cmd_len=196608
7670 osf*)
7671 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7672 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7673 # nice to cause kernel panics so lets avoid the loop below.
7674 # First set a reasonable default.
7675 lt_cv_sys_max_cmd_len=16384
7677 if test -x /sbin/sysconfig; then
7678 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7679 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7680 esac
7683 sco3.2v5*)
7684 lt_cv_sys_max_cmd_len=102400
7686 sysv5* | sco5v6* | sysv4.2uw2*)
7687 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7688 if test -n "$kargmax"; then
7689 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7690 else
7691 lt_cv_sys_max_cmd_len=32768
7695 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7696 if test -n "$lt_cv_sys_max_cmd_len"; then
7697 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7698 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7699 else
7700 # Make teststring a little bigger before we do anything with it.
7701 # a 1K string should be a reasonable start.
7702 for i in 1 2 3 4 5 6 7 8 ; do
7703 teststring=$teststring$teststring
7704 done
7705 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7706 # If test is not a shell built-in, we'll probably end up computing a
7707 # maximum length that is only half of the actual maximum length, but
7708 # we can't tell.
7709 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7710 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7711 test $i != 17 # 1/2 MB should be enough
7713 i=`expr $i + 1`
7714 teststring=$teststring$teststring
7715 done
7716 # Only check the string length outside the loop.
7717 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7718 teststring=
7719 # Add a significant safety factor because C++ compilers can tack on
7720 # massive amounts of additional arguments before passing them to the
7721 # linker. It appears as though 1/2 is a usable value.
7722 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7725 esac
7729 if test -n $lt_cv_sys_max_cmd_len ; then
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7731 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7732 else
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7734 $as_echo "none" >&6; }
7736 max_cmd_len=$lt_cv_sys_max_cmd_len
7743 : ${CP="cp -f"}
7744 : ${MV="mv -f"}
7745 : ${RM="rm -f"}
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7748 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7749 # Try some XSI features
7750 xsi_shell=no
7751 ( _lt_dummy="a/b/c"
7752 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7753 = c,a/b,, \
7754 && eval 'test $(( 1 + 1 )) -eq 2 \
7755 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7756 && xsi_shell=yes
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7758 $as_echo "$xsi_shell" >&6; }
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7762 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7763 lt_shell_append=no
7764 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7765 >/dev/null 2>&1 \
7766 && lt_shell_append=yes
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7768 $as_echo "$lt_shell_append" >&6; }
7771 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7772 lt_unset=unset
7773 else
7774 lt_unset=false
7781 # test EBCDIC or ASCII
7782 case `echo X|tr X '\101'` in
7783 A) # ASCII based system
7784 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7785 lt_SP2NL='tr \040 \012'
7786 lt_NL2SP='tr \015\012 \040\040'
7788 *) # EBCDIC based system
7789 lt_SP2NL='tr \100 \n'
7790 lt_NL2SP='tr \r\n \100\100'
7792 esac
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7803 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7804 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7805 $as_echo_n "(cached) " >&6
7806 else
7807 lt_cv_ld_reload_flag='-r'
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7810 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7811 reload_flag=$lt_cv_ld_reload_flag
7812 case $reload_flag in
7813 "" | " "*) ;;
7814 *) reload_flag=" $reload_flag" ;;
7815 esac
7816 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7817 case $host_os in
7818 darwin*)
7819 if test "$GCC" = yes; then
7820 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7821 else
7822 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7825 esac
7835 if test -n "$ac_tool_prefix"; then
7836 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7837 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7839 $as_echo_n "checking for $ac_word... " >&6; }
7840 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7841 $as_echo_n "(cached) " >&6
7842 else
7843 if test -n "$OBJDUMP"; then
7844 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7845 else
7846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7847 for as_dir in $PATH
7849 IFS=$as_save_IFS
7850 test -z "$as_dir" && as_dir=.
7851 for ac_exec_ext in '' $ac_executable_extensions; do
7852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7853 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7855 break 2
7857 done
7858 done
7859 IFS=$as_save_IFS
7863 OBJDUMP=$ac_cv_prog_OBJDUMP
7864 if test -n "$OBJDUMP"; then
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7866 $as_echo "$OBJDUMP" >&6; }
7867 else
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869 $as_echo "no" >&6; }
7874 if test -z "$ac_cv_prog_OBJDUMP"; then
7875 ac_ct_OBJDUMP=$OBJDUMP
7876 # Extract the first word of "objdump", so it can be a program name with args.
7877 set dummy objdump; ac_word=$2
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7879 $as_echo_n "checking for $ac_word... " >&6; }
7880 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7881 $as_echo_n "(cached) " >&6
7882 else
7883 if test -n "$ac_ct_OBJDUMP"; then
7884 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7885 else
7886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7887 for as_dir in $PATH
7889 IFS=$as_save_IFS
7890 test -z "$as_dir" && as_dir=.
7891 for ac_exec_ext in '' $ac_executable_extensions; do
7892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7893 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7895 break 2
7897 done
7898 done
7899 IFS=$as_save_IFS
7903 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7904 if test -n "$ac_ct_OBJDUMP"; then
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7906 $as_echo "$ac_ct_OBJDUMP" >&6; }
7907 else
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7909 $as_echo "no" >&6; }
7912 if test "x$ac_ct_OBJDUMP" = x; then
7913 OBJDUMP="false"
7914 else
7915 case $cross_compiling:$ac_tool_warned in
7916 yes:)
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7919 ac_tool_warned=yes ;;
7920 esac
7921 OBJDUMP=$ac_ct_OBJDUMP
7923 else
7924 OBJDUMP="$ac_cv_prog_OBJDUMP"
7927 test -z "$OBJDUMP" && OBJDUMP=objdump
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7938 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7939 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7940 $as_echo_n "(cached) " >&6
7941 else
7942 lt_cv_file_magic_cmd='$MAGIC_CMD'
7943 lt_cv_file_magic_test_file=
7944 lt_cv_deplibs_check_method='unknown'
7945 # Need to set the preceding variable on all platforms that support
7946 # interlibrary dependencies.
7947 # 'none' -- dependencies not supported.
7948 # `unknown' -- same as none, but documents that we really don't know.
7949 # 'pass_all' -- all dependencies passed with no checks.
7950 # 'test_compile' -- check by making test program.
7951 # 'file_magic [[regex]]' -- check by looking for files in library path
7952 # which responds to the $file_magic_cmd with a given extended regex.
7953 # If you have `file' or equivalent on your system and you're not sure
7954 # whether `pass_all' will *always* work, you probably want this one.
7956 case $host_os in
7957 aix[4-9]*)
7958 lt_cv_deplibs_check_method=pass_all
7961 beos*)
7962 lt_cv_deplibs_check_method=pass_all
7965 bsdi[45]*)
7966 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7967 lt_cv_file_magic_cmd='/usr/bin/file -L'
7968 lt_cv_file_magic_test_file=/shlib/libc.so
7971 cygwin*)
7972 # func_win32_libid is a shell function defined in ltmain.sh
7973 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7974 lt_cv_file_magic_cmd='func_win32_libid'
7977 mingw* | pw32*)
7978 # Base MSYS/MinGW do not provide the 'file' command needed by
7979 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7980 # unless we find 'file', for example because we are cross-compiling.
7981 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7982 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7983 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7984 lt_cv_file_magic_cmd='func_win32_libid'
7985 else
7986 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7987 lt_cv_file_magic_cmd='$OBJDUMP -f'
7991 cegcc*)
7992 # use the weaker test based on 'objdump'. See mingw*.
7993 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7994 lt_cv_file_magic_cmd='$OBJDUMP -f'
7997 darwin* | rhapsody*)
7998 lt_cv_deplibs_check_method=pass_all
8001 freebsd* | dragonfly*)
8002 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8003 case $host_cpu in
8004 i*86 )
8005 # Not sure whether the presence of OpenBSD here was a mistake.
8006 # Let's accept both of them until this is cleared up.
8007 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8008 lt_cv_file_magic_cmd=/usr/bin/file
8009 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8011 esac
8012 else
8013 lt_cv_deplibs_check_method=pass_all
8017 gnu*)
8018 lt_cv_deplibs_check_method=pass_all
8021 haiku*)
8022 lt_cv_deplibs_check_method=pass_all
8025 hpux10.20* | hpux11*)
8026 lt_cv_file_magic_cmd=/usr/bin/file
8027 case $host_cpu in
8028 ia64*)
8029 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8030 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8032 hppa*64*)
8033 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]'
8034 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8037 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8038 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8040 esac
8043 interix[3-9]*)
8044 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8045 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8048 irix5* | irix6* | nonstopux*)
8049 case $LD in
8050 *-32|*"-32 ") libmagic=32-bit;;
8051 *-n32|*"-n32 ") libmagic=N32;;
8052 *-64|*"-64 ") libmagic=64-bit;;
8053 *) libmagic=never-match;;
8054 esac
8055 lt_cv_deplibs_check_method=pass_all
8058 # This must be Linux ELF.
8059 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8060 lt_cv_deplibs_check_method=pass_all
8063 netbsd*)
8064 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8065 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8066 else
8067 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8071 newos6*)
8072 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8073 lt_cv_file_magic_cmd=/usr/bin/file
8074 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8077 *nto* | *qnx*)
8078 lt_cv_deplibs_check_method=pass_all
8081 openbsd*)
8082 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8083 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8084 else
8085 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8089 osf3* | osf4* | osf5*)
8090 lt_cv_deplibs_check_method=pass_all
8093 rdos*)
8094 lt_cv_deplibs_check_method=pass_all
8097 solaris*)
8098 lt_cv_deplibs_check_method=pass_all
8101 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8102 lt_cv_deplibs_check_method=pass_all
8105 sysv4 | sysv4.3*)
8106 case $host_vendor in
8107 motorola)
8108 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]'
8109 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8111 ncr)
8112 lt_cv_deplibs_check_method=pass_all
8114 sequent)
8115 lt_cv_file_magic_cmd='/bin/file'
8116 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8118 sni)
8119 lt_cv_file_magic_cmd='/bin/file'
8120 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8121 lt_cv_file_magic_test_file=/lib/libc.so
8123 siemens)
8124 lt_cv_deplibs_check_method=pass_all
8127 lt_cv_deplibs_check_method=pass_all
8129 esac
8132 tpf*)
8133 lt_cv_deplibs_check_method=pass_all
8135 esac
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8139 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8140 file_magic_cmd=$lt_cv_file_magic_cmd
8141 deplibs_check_method=$lt_cv_deplibs_check_method
8142 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8155 if test -n "$ac_tool_prefix"; then
8156 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8157 set dummy ${ac_tool_prefix}ar; ac_word=$2
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8159 $as_echo_n "checking for $ac_word... " >&6; }
8160 if test "${ac_cv_prog_AR+set}" = set; then :
8161 $as_echo_n "(cached) " >&6
8162 else
8163 if test -n "$AR"; then
8164 ac_cv_prog_AR="$AR" # Let the user override the test.
8165 else
8166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8167 for as_dir in $PATH
8169 IFS=$as_save_IFS
8170 test -z "$as_dir" && as_dir=.
8171 for ac_exec_ext in '' $ac_executable_extensions; do
8172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8173 ac_cv_prog_AR="${ac_tool_prefix}ar"
8174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8175 break 2
8177 done
8178 done
8179 IFS=$as_save_IFS
8183 AR=$ac_cv_prog_AR
8184 if test -n "$AR"; then
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8186 $as_echo "$AR" >&6; }
8187 else
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8189 $as_echo "no" >&6; }
8194 if test -z "$ac_cv_prog_AR"; then
8195 ac_ct_AR=$AR
8196 # Extract the first word of "ar", so it can be a program name with args.
8197 set dummy ar; ac_word=$2
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8199 $as_echo_n "checking for $ac_word... " >&6; }
8200 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8201 $as_echo_n "(cached) " >&6
8202 else
8203 if test -n "$ac_ct_AR"; then
8204 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8205 else
8206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8207 for as_dir in $PATH
8209 IFS=$as_save_IFS
8210 test -z "$as_dir" && as_dir=.
8211 for ac_exec_ext in '' $ac_executable_extensions; do
8212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8213 ac_cv_prog_ac_ct_AR="ar"
8214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8215 break 2
8217 done
8218 done
8219 IFS=$as_save_IFS
8223 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8224 if test -n "$ac_ct_AR"; then
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8226 $as_echo "$ac_ct_AR" >&6; }
8227 else
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8229 $as_echo "no" >&6; }
8232 if test "x$ac_ct_AR" = x; then
8233 AR="false"
8234 else
8235 case $cross_compiling:$ac_tool_warned in
8236 yes:)
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8239 ac_tool_warned=yes ;;
8240 esac
8241 AR=$ac_ct_AR
8243 else
8244 AR="$ac_cv_prog_AR"
8247 test -z "$AR" && AR=ar
8248 test -z "$AR_FLAGS" && AR_FLAGS=cru
8260 if test -n "$ac_tool_prefix"; then
8261 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8262 set dummy ${ac_tool_prefix}strip; ac_word=$2
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8264 $as_echo_n "checking for $ac_word... " >&6; }
8265 if test "${ac_cv_prog_STRIP+set}" = set; then :
8266 $as_echo_n "(cached) " >&6
8267 else
8268 if test -n "$STRIP"; then
8269 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8270 else
8271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272 for as_dir in $PATH
8274 IFS=$as_save_IFS
8275 test -z "$as_dir" && as_dir=.
8276 for ac_exec_ext in '' $ac_executable_extensions; do
8277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8278 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8280 break 2
8282 done
8283 done
8284 IFS=$as_save_IFS
8288 STRIP=$ac_cv_prog_STRIP
8289 if test -n "$STRIP"; then
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8291 $as_echo "$STRIP" >&6; }
8292 else
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294 $as_echo "no" >&6; }
8299 if test -z "$ac_cv_prog_STRIP"; then
8300 ac_ct_STRIP=$STRIP
8301 # Extract the first word of "strip", so it can be a program name with args.
8302 set dummy strip; ac_word=$2
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8304 $as_echo_n "checking for $ac_word... " >&6; }
8305 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8306 $as_echo_n "(cached) " >&6
8307 else
8308 if test -n "$ac_ct_STRIP"; then
8309 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8310 else
8311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8312 for as_dir in $PATH
8314 IFS=$as_save_IFS
8315 test -z "$as_dir" && as_dir=.
8316 for ac_exec_ext in '' $ac_executable_extensions; do
8317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8318 ac_cv_prog_ac_ct_STRIP="strip"
8319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8320 break 2
8322 done
8323 done
8324 IFS=$as_save_IFS
8328 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8329 if test -n "$ac_ct_STRIP"; then
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8331 $as_echo "$ac_ct_STRIP" >&6; }
8332 else
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8334 $as_echo "no" >&6; }
8337 if test "x$ac_ct_STRIP" = x; then
8338 STRIP=":"
8339 else
8340 case $cross_compiling:$ac_tool_warned in
8341 yes:)
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8344 ac_tool_warned=yes ;;
8345 esac
8346 STRIP=$ac_ct_STRIP
8348 else
8349 STRIP="$ac_cv_prog_STRIP"
8352 test -z "$STRIP" && STRIP=:
8359 if test -n "$ac_tool_prefix"; then
8360 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8361 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8363 $as_echo_n "checking for $ac_word... " >&6; }
8364 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8365 $as_echo_n "(cached) " >&6
8366 else
8367 if test -n "$RANLIB"; then
8368 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8369 else
8370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8371 for as_dir in $PATH
8373 IFS=$as_save_IFS
8374 test -z "$as_dir" && as_dir=.
8375 for ac_exec_ext in '' $ac_executable_extensions; do
8376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8377 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8379 break 2
8381 done
8382 done
8383 IFS=$as_save_IFS
8387 RANLIB=$ac_cv_prog_RANLIB
8388 if test -n "$RANLIB"; then
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8390 $as_echo "$RANLIB" >&6; }
8391 else
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8393 $as_echo "no" >&6; }
8398 if test -z "$ac_cv_prog_RANLIB"; then
8399 ac_ct_RANLIB=$RANLIB
8400 # Extract the first word of "ranlib", so it can be a program name with args.
8401 set dummy ranlib; ac_word=$2
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8403 $as_echo_n "checking for $ac_word... " >&6; }
8404 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8405 $as_echo_n "(cached) " >&6
8406 else
8407 if test -n "$ac_ct_RANLIB"; then
8408 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8409 else
8410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411 for as_dir in $PATH
8413 IFS=$as_save_IFS
8414 test -z "$as_dir" && as_dir=.
8415 for ac_exec_ext in '' $ac_executable_extensions; do
8416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8417 ac_cv_prog_ac_ct_RANLIB="ranlib"
8418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8419 break 2
8421 done
8422 done
8423 IFS=$as_save_IFS
8427 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8428 if test -n "$ac_ct_RANLIB"; then
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8430 $as_echo "$ac_ct_RANLIB" >&6; }
8431 else
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8433 $as_echo "no" >&6; }
8436 if test "x$ac_ct_RANLIB" = x; then
8437 RANLIB=":"
8438 else
8439 case $cross_compiling:$ac_tool_warned in
8440 yes:)
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8443 ac_tool_warned=yes ;;
8444 esac
8445 RANLIB=$ac_ct_RANLIB
8447 else
8448 RANLIB="$ac_cv_prog_RANLIB"
8451 test -z "$RANLIB" && RANLIB=:
8458 # Determine commands to create old-style static archives.
8459 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8460 old_postinstall_cmds='chmod 644 $oldlib'
8461 old_postuninstall_cmds=
8463 if test -n "$RANLIB"; then
8464 case $host_os in
8465 openbsd*)
8466 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8469 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8471 esac
8472 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8475 case $host_os in
8476 darwin*)
8477 lock_old_archive_extraction=yes ;;
8479 lock_old_archive_extraction=no ;;
8480 esac
8520 # If no C compiler was specified, use CC.
8521 LTCC=${LTCC-"$CC"}
8523 # If no C compiler flags were specified, use CFLAGS.
8524 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8526 # Allow CC to be a program name with arguments.
8527 compiler=$CC
8530 # Check for command to grab the raw symbol name followed by C symbol from nm.
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8532 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8533 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8534 $as_echo_n "(cached) " >&6
8535 else
8537 # These are sane defaults that work on at least a few old systems.
8538 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8540 # Character class describing NM global symbol codes.
8541 symcode='[BCDEGRST]'
8543 # Regexp to match symbols that can be accessed directly from C.
8544 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8546 # Define system-specific variables.
8547 case $host_os in
8548 aix*)
8549 symcode='[BCDT]'
8551 cygwin* | mingw* | pw32* | cegcc*)
8552 symcode='[ABCDGISTW]'
8554 hpux*)
8555 if test "$host_cpu" = ia64; then
8556 symcode='[ABCDEGRST]'
8559 irix* | nonstopux*)
8560 symcode='[BCDEGRST]'
8562 osf*)
8563 symcode='[BCDEGQRST]'
8565 solaris*)
8566 symcode='[BDRT]'
8568 sco3.2v5*)
8569 symcode='[DT]'
8571 sysv4.2uw2*)
8572 symcode='[DT]'
8574 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8575 symcode='[ABDT]'
8577 sysv4)
8578 symcode='[DFNSTU]'
8580 esac
8582 # If we're using GNU nm, then use its standard symbol codes.
8583 case `$NM -V 2>&1` in
8584 *GNU* | *'with BFD'*)
8585 symcode='[ABCDGIRSTW]' ;;
8586 esac
8588 # Transform an extracted symbol line into a proper C declaration.
8589 # Some systems (esp. on ia64) link data and code symbols differently,
8590 # so use this general approach.
8591 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8593 # Transform an extracted symbol line into symbol name and symbol address
8594 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8595 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'"
8597 # Handle CRLF in mingw tool chain
8598 opt_cr=
8599 case $build_os in
8600 mingw*)
8601 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8603 esac
8605 # Try without a prefix underscore, then with it.
8606 for ac_symprfx in "" "_"; do
8608 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8609 symxfrm="\\1 $ac_symprfx\\2 \\2"
8611 # Write the raw and C identifiers.
8612 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8613 # Fake it for dumpbin and say T for any non-static function
8614 # and D for any global variable.
8615 # Also find C++ and __fastcall symbols from MSVC++,
8616 # which start with @ or ?.
8617 lt_cv_sys_global_symbol_pipe="$AWK '"\
8618 " {last_section=section; section=\$ 3};"\
8619 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8620 " \$ 0!~/External *\|/{next};"\
8621 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8622 " {if(hide[section]) next};"\
8623 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8624 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8625 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8626 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8627 " ' prfx=^$ac_symprfx"
8628 else
8629 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8632 # Check to see that the pipe works correctly.
8633 pipe_works=no
8635 rm -f conftest*
8636 cat > conftest.$ac_ext <<_LT_EOF
8637 #ifdef __cplusplus
8638 extern "C" {
8639 #endif
8640 char nm_test_var;
8641 void nm_test_func(void);
8642 void nm_test_func(void){}
8643 #ifdef __cplusplus
8645 #endif
8646 int main(){nm_test_var='a';nm_test_func();return(0);}
8647 _LT_EOF
8649 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8650 (eval $ac_compile) 2>&5
8651 ac_status=$?
8652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8653 test $ac_status = 0; }; then
8654 # Now try to grab the symbols.
8655 nlist=conftest.nm
8656 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8657 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8658 ac_status=$?
8659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8660 test $ac_status = 0; } && test -s "$nlist"; then
8661 # Try sorting and uniquifying the output.
8662 if sort "$nlist" | uniq > "$nlist"T; then
8663 mv -f "$nlist"T "$nlist"
8664 else
8665 rm -f "$nlist"T
8668 # Make sure that we snagged all the symbols we need.
8669 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8670 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8671 cat <<_LT_EOF > conftest.$ac_ext
8672 #ifdef __cplusplus
8673 extern "C" {
8674 #endif
8676 _LT_EOF
8677 # Now generate the symbol file.
8678 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8680 cat <<_LT_EOF >> conftest.$ac_ext
8682 /* The mapping between symbol names and symbols. */
8683 const struct {
8684 const char *name;
8685 void *address;
8687 lt__PROGRAM__LTX_preloaded_symbols[] =
8689 { "@PROGRAM@", (void *) 0 },
8690 _LT_EOF
8691 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8692 cat <<\_LT_EOF >> conftest.$ac_ext
8693 {0, (void *) 0}
8696 /* This works around a problem in FreeBSD linker */
8697 #ifdef FREEBSD_WORKAROUND
8698 static const void *lt_preloaded_setup() {
8699 return lt__PROGRAM__LTX_preloaded_symbols;
8701 #endif
8703 #ifdef __cplusplus
8705 #endif
8706 _LT_EOF
8707 # Now try linking the two files.
8708 mv conftest.$ac_objext conftstm.$ac_objext
8709 lt_save_LIBS="$LIBS"
8710 lt_save_CFLAGS="$CFLAGS"
8711 LIBS="conftstm.$ac_objext"
8712 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8713 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8714 (eval $ac_link) 2>&5
8715 ac_status=$?
8716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8717 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8718 pipe_works=yes
8720 LIBS="$lt_save_LIBS"
8721 CFLAGS="$lt_save_CFLAGS"
8722 else
8723 echo "cannot find nm_test_func in $nlist" >&5
8725 else
8726 echo "cannot find nm_test_var in $nlist" >&5
8728 else
8729 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8731 else
8732 echo "$progname: failed program was:" >&5
8733 cat conftest.$ac_ext >&5
8735 rm -rf conftest* conftst*
8737 # Do not use the global_symbol_pipe unless it works.
8738 if test "$pipe_works" = yes; then
8739 break
8740 else
8741 lt_cv_sys_global_symbol_pipe=
8743 done
8747 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8748 lt_cv_sys_global_symbol_to_cdecl=
8750 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8752 $as_echo "failed" >&6; }
8753 else
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8755 $as_echo "ok" >&6; }
8780 # Check whether --enable-libtool-lock was given.
8781 if test "${enable_libtool_lock+set}" = set; then :
8782 enableval=$enable_libtool_lock;
8785 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8787 # Some flags need to be propagated to the compiler or linker for good
8788 # libtool support.
8789 case $host in
8790 ia64-*-hpux*)
8791 # Find out which ABI we are using.
8792 echo 'int i;' > conftest.$ac_ext
8793 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8794 (eval $ac_compile) 2>&5
8795 ac_status=$?
8796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8797 test $ac_status = 0; }; then
8798 case `/usr/bin/file conftest.$ac_objext` in
8799 *ELF-32*)
8800 HPUX_IA64_MODE="32"
8802 *ELF-64*)
8803 HPUX_IA64_MODE="64"
8805 esac
8807 rm -rf conftest*
8809 *-*-irix6*)
8810 # Find out which ABI we are using.
8811 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8812 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8813 (eval $ac_compile) 2>&5
8814 ac_status=$?
8815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8816 test $ac_status = 0; }; then
8817 if test "$lt_cv_prog_gnu_ld" = yes; then
8818 case `/usr/bin/file conftest.$ac_objext` in
8819 *32-bit*)
8820 LD="${LD-ld} -melf32bsmip"
8822 *N32*)
8823 LD="${LD-ld} -melf32bmipn32"
8825 *64-bit*)
8826 LD="${LD-ld} -melf64bmip"
8828 esac
8829 else
8830 case `/usr/bin/file conftest.$ac_objext` in
8831 *32-bit*)
8832 LD="${LD-ld} -32"
8834 *N32*)
8835 LD="${LD-ld} -n32"
8837 *64-bit*)
8838 LD="${LD-ld} -64"
8840 esac
8843 rm -rf conftest*
8846 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8847 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8848 # Find out which ABI we are using.
8849 echo 'int i;' > conftest.$ac_ext
8850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8851 (eval $ac_compile) 2>&5
8852 ac_status=$?
8853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8854 test $ac_status = 0; }; then
8855 case `/usr/bin/file conftest.o` in
8856 *32-bit*)
8857 case $host in
8858 x86_64-*kfreebsd*-gnu)
8859 LD="${LD-ld} -m elf_i386_fbsd"
8861 x86_64-*linux*)
8862 case `/usr/bin/file conftest.o` in
8863 *x86-64*)
8864 LD="${LD-ld} -m elf32_x86_64"
8867 LD="${LD-ld} -m elf_i386"
8869 esac
8871 powerpc64le-*linux*)
8872 LD="${LD-ld} -m elf32lppclinux"
8874 powerpc64-*linux*)
8875 LD="${LD-ld} -m elf32ppclinux"
8877 s390x-*linux*)
8878 LD="${LD-ld} -m elf_s390"
8880 sparc64-*linux*)
8881 LD="${LD-ld} -m elf32_sparc"
8883 esac
8885 *64-bit*)
8886 case $host in
8887 x86_64-*kfreebsd*-gnu)
8888 LD="${LD-ld} -m elf_x86_64_fbsd"
8890 x86_64-*linux*)
8891 LD="${LD-ld} -m elf_x86_64"
8893 powerpcle-*linux*)
8894 LD="${LD-ld} -m elf64lppc"
8896 powerpc-*linux*)
8897 LD="${LD-ld} -m elf64ppc"
8899 s390*-*linux*|s390*-*tpf*)
8900 LD="${LD-ld} -m elf64_s390"
8902 sparc*-*linux*)
8903 LD="${LD-ld} -m elf64_sparc"
8905 esac
8907 esac
8909 rm -rf conftest*
8912 *-*-sco3.2v5*)
8913 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8914 SAVE_CFLAGS="$CFLAGS"
8915 CFLAGS="$CFLAGS -belf"
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8917 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8918 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8919 $as_echo_n "(cached) " >&6
8920 else
8921 ac_ext=c
8922 ac_cpp='$CPP $CPPFLAGS'
8923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8927 if test x$gcc_no_link = xyes; then
8928 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8931 /* end confdefs.h. */
8934 main ()
8938 return 0;
8940 _ACEOF
8941 if ac_fn_c_try_link "$LINENO"; then :
8942 lt_cv_cc_needs_belf=yes
8943 else
8944 lt_cv_cc_needs_belf=no
8946 rm -f core conftest.err conftest.$ac_objext \
8947 conftest$ac_exeext conftest.$ac_ext
8948 ac_ext=c
8949 ac_cpp='$CPP $CPPFLAGS'
8950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8956 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8957 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8958 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8959 CFLAGS="$SAVE_CFLAGS"
8962 sparc*-*solaris*)
8963 # Find out which ABI we are using.
8964 echo 'int i;' > conftest.$ac_ext
8965 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8966 (eval $ac_compile) 2>&5
8967 ac_status=$?
8968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8969 test $ac_status = 0; }; then
8970 case `/usr/bin/file conftest.o` in
8971 *64-bit*)
8972 case $lt_cv_prog_gnu_ld in
8973 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8975 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8976 LD="${LD-ld} -64"
8979 esac
8981 esac
8983 rm -rf conftest*
8985 esac
8987 need_locks="$enable_libtool_lock"
8990 case $host_os in
8991 rhapsody* | darwin*)
8992 if test -n "$ac_tool_prefix"; then
8993 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8994 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8996 $as_echo_n "checking for $ac_word... " >&6; }
8997 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8998 $as_echo_n "(cached) " >&6
8999 else
9000 if test -n "$DSYMUTIL"; then
9001 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9002 else
9003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9004 for as_dir in $PATH
9006 IFS=$as_save_IFS
9007 test -z "$as_dir" && as_dir=.
9008 for ac_exec_ext in '' $ac_executable_extensions; do
9009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9010 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9012 break 2
9014 done
9015 done
9016 IFS=$as_save_IFS
9020 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9021 if test -n "$DSYMUTIL"; then
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9023 $as_echo "$DSYMUTIL" >&6; }
9024 else
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9026 $as_echo "no" >&6; }
9031 if test -z "$ac_cv_prog_DSYMUTIL"; then
9032 ac_ct_DSYMUTIL=$DSYMUTIL
9033 # Extract the first word of "dsymutil", so it can be a program name with args.
9034 set dummy dsymutil; ac_word=$2
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9036 $as_echo_n "checking for $ac_word... " >&6; }
9037 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
9038 $as_echo_n "(cached) " >&6
9039 else
9040 if test -n "$ac_ct_DSYMUTIL"; then
9041 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9042 else
9043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9044 for as_dir in $PATH
9046 IFS=$as_save_IFS
9047 test -z "$as_dir" && as_dir=.
9048 for ac_exec_ext in '' $ac_executable_extensions; do
9049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9050 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9052 break 2
9054 done
9055 done
9056 IFS=$as_save_IFS
9060 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9061 if test -n "$ac_ct_DSYMUTIL"; then
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9063 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9064 else
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9066 $as_echo "no" >&6; }
9069 if test "x$ac_ct_DSYMUTIL" = x; then
9070 DSYMUTIL=":"
9071 else
9072 case $cross_compiling:$ac_tool_warned in
9073 yes:)
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9076 ac_tool_warned=yes ;;
9077 esac
9078 DSYMUTIL=$ac_ct_DSYMUTIL
9080 else
9081 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9084 if test -n "$ac_tool_prefix"; then
9085 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9086 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9088 $as_echo_n "checking for $ac_word... " >&6; }
9089 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
9090 $as_echo_n "(cached) " >&6
9091 else
9092 if test -n "$NMEDIT"; then
9093 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9094 else
9095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9096 for as_dir in $PATH
9098 IFS=$as_save_IFS
9099 test -z "$as_dir" && as_dir=.
9100 for ac_exec_ext in '' $ac_executable_extensions; do
9101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9102 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9104 break 2
9106 done
9107 done
9108 IFS=$as_save_IFS
9112 NMEDIT=$ac_cv_prog_NMEDIT
9113 if test -n "$NMEDIT"; then
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9115 $as_echo "$NMEDIT" >&6; }
9116 else
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9118 $as_echo "no" >&6; }
9123 if test -z "$ac_cv_prog_NMEDIT"; then
9124 ac_ct_NMEDIT=$NMEDIT
9125 # Extract the first word of "nmedit", so it can be a program name with args.
9126 set dummy nmedit; ac_word=$2
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9128 $as_echo_n "checking for $ac_word... " >&6; }
9129 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9130 $as_echo_n "(cached) " >&6
9131 else
9132 if test -n "$ac_ct_NMEDIT"; then
9133 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9134 else
9135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9136 for as_dir in $PATH
9138 IFS=$as_save_IFS
9139 test -z "$as_dir" && as_dir=.
9140 for ac_exec_ext in '' $ac_executable_extensions; do
9141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9142 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9144 break 2
9146 done
9147 done
9148 IFS=$as_save_IFS
9152 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9153 if test -n "$ac_ct_NMEDIT"; then
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9155 $as_echo "$ac_ct_NMEDIT" >&6; }
9156 else
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9158 $as_echo "no" >&6; }
9161 if test "x$ac_ct_NMEDIT" = x; then
9162 NMEDIT=":"
9163 else
9164 case $cross_compiling:$ac_tool_warned in
9165 yes:)
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9168 ac_tool_warned=yes ;;
9169 esac
9170 NMEDIT=$ac_ct_NMEDIT
9172 else
9173 NMEDIT="$ac_cv_prog_NMEDIT"
9176 if test -n "$ac_tool_prefix"; then
9177 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9178 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9180 $as_echo_n "checking for $ac_word... " >&6; }
9181 if test "${ac_cv_prog_LIPO+set}" = set; then :
9182 $as_echo_n "(cached) " >&6
9183 else
9184 if test -n "$LIPO"; then
9185 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9186 else
9187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9188 for as_dir in $PATH
9190 IFS=$as_save_IFS
9191 test -z "$as_dir" && as_dir=.
9192 for ac_exec_ext in '' $ac_executable_extensions; do
9193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9194 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9196 break 2
9198 done
9199 done
9200 IFS=$as_save_IFS
9204 LIPO=$ac_cv_prog_LIPO
9205 if test -n "$LIPO"; then
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9207 $as_echo "$LIPO" >&6; }
9208 else
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9210 $as_echo "no" >&6; }
9215 if test -z "$ac_cv_prog_LIPO"; then
9216 ac_ct_LIPO=$LIPO
9217 # Extract the first word of "lipo", so it can be a program name with args.
9218 set dummy lipo; ac_word=$2
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9220 $as_echo_n "checking for $ac_word... " >&6; }
9221 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9222 $as_echo_n "(cached) " >&6
9223 else
9224 if test -n "$ac_ct_LIPO"; then
9225 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9226 else
9227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9228 for as_dir in $PATH
9230 IFS=$as_save_IFS
9231 test -z "$as_dir" && as_dir=.
9232 for ac_exec_ext in '' $ac_executable_extensions; do
9233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9234 ac_cv_prog_ac_ct_LIPO="lipo"
9235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9236 break 2
9238 done
9239 done
9240 IFS=$as_save_IFS
9244 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9245 if test -n "$ac_ct_LIPO"; then
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9247 $as_echo "$ac_ct_LIPO" >&6; }
9248 else
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9250 $as_echo "no" >&6; }
9253 if test "x$ac_ct_LIPO" = x; then
9254 LIPO=":"
9255 else
9256 case $cross_compiling:$ac_tool_warned in
9257 yes:)
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9259 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9260 ac_tool_warned=yes ;;
9261 esac
9262 LIPO=$ac_ct_LIPO
9264 else
9265 LIPO="$ac_cv_prog_LIPO"
9268 if test -n "$ac_tool_prefix"; then
9269 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9270 set dummy ${ac_tool_prefix}otool; ac_word=$2
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9272 $as_echo_n "checking for $ac_word... " >&6; }
9273 if test "${ac_cv_prog_OTOOL+set}" = set; then :
9274 $as_echo_n "(cached) " >&6
9275 else
9276 if test -n "$OTOOL"; then
9277 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9278 else
9279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9280 for as_dir in $PATH
9282 IFS=$as_save_IFS
9283 test -z "$as_dir" && as_dir=.
9284 for ac_exec_ext in '' $ac_executable_extensions; do
9285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9286 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9288 break 2
9290 done
9291 done
9292 IFS=$as_save_IFS
9296 OTOOL=$ac_cv_prog_OTOOL
9297 if test -n "$OTOOL"; then
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9299 $as_echo "$OTOOL" >&6; }
9300 else
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9302 $as_echo "no" >&6; }
9307 if test -z "$ac_cv_prog_OTOOL"; then
9308 ac_ct_OTOOL=$OTOOL
9309 # Extract the first word of "otool", so it can be a program name with args.
9310 set dummy otool; ac_word=$2
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9312 $as_echo_n "checking for $ac_word... " >&6; }
9313 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9314 $as_echo_n "(cached) " >&6
9315 else
9316 if test -n "$ac_ct_OTOOL"; then
9317 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9318 else
9319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9320 for as_dir in $PATH
9322 IFS=$as_save_IFS
9323 test -z "$as_dir" && as_dir=.
9324 for ac_exec_ext in '' $ac_executable_extensions; do
9325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9326 ac_cv_prog_ac_ct_OTOOL="otool"
9327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9328 break 2
9330 done
9331 done
9332 IFS=$as_save_IFS
9336 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9337 if test -n "$ac_ct_OTOOL"; then
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9339 $as_echo "$ac_ct_OTOOL" >&6; }
9340 else
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9342 $as_echo "no" >&6; }
9345 if test "x$ac_ct_OTOOL" = x; then
9346 OTOOL=":"
9347 else
9348 case $cross_compiling:$ac_tool_warned in
9349 yes:)
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9352 ac_tool_warned=yes ;;
9353 esac
9354 OTOOL=$ac_ct_OTOOL
9356 else
9357 OTOOL="$ac_cv_prog_OTOOL"
9360 if test -n "$ac_tool_prefix"; then
9361 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9362 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9364 $as_echo_n "checking for $ac_word... " >&6; }
9365 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9366 $as_echo_n "(cached) " >&6
9367 else
9368 if test -n "$OTOOL64"; then
9369 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9370 else
9371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9372 for as_dir in $PATH
9374 IFS=$as_save_IFS
9375 test -z "$as_dir" && as_dir=.
9376 for ac_exec_ext in '' $ac_executable_extensions; do
9377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9378 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9380 break 2
9382 done
9383 done
9384 IFS=$as_save_IFS
9388 OTOOL64=$ac_cv_prog_OTOOL64
9389 if test -n "$OTOOL64"; then
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9391 $as_echo "$OTOOL64" >&6; }
9392 else
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9394 $as_echo "no" >&6; }
9399 if test -z "$ac_cv_prog_OTOOL64"; then
9400 ac_ct_OTOOL64=$OTOOL64
9401 # Extract the first word of "otool64", so it can be a program name with args.
9402 set dummy otool64; ac_word=$2
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9404 $as_echo_n "checking for $ac_word... " >&6; }
9405 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9406 $as_echo_n "(cached) " >&6
9407 else
9408 if test -n "$ac_ct_OTOOL64"; then
9409 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9410 else
9411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9412 for as_dir in $PATH
9414 IFS=$as_save_IFS
9415 test -z "$as_dir" && as_dir=.
9416 for ac_exec_ext in '' $ac_executable_extensions; do
9417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9418 ac_cv_prog_ac_ct_OTOOL64="otool64"
9419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9420 break 2
9422 done
9423 done
9424 IFS=$as_save_IFS
9428 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9429 if test -n "$ac_ct_OTOOL64"; then
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9431 $as_echo "$ac_ct_OTOOL64" >&6; }
9432 else
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9434 $as_echo "no" >&6; }
9437 if test "x$ac_ct_OTOOL64" = x; then
9438 OTOOL64=":"
9439 else
9440 case $cross_compiling:$ac_tool_warned in
9441 yes:)
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9444 ac_tool_warned=yes ;;
9445 esac
9446 OTOOL64=$ac_ct_OTOOL64
9448 else
9449 OTOOL64="$ac_cv_prog_OTOOL64"
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9479 $as_echo_n "checking for -single_module linker flag... " >&6; }
9480 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9481 $as_echo_n "(cached) " >&6
9482 else
9483 lt_cv_apple_cc_single_mod=no
9484 if test -z "${LT_MULTI_MODULE}"; then
9485 # By default we will add the -single_module flag. You can override
9486 # by either setting the environment variable LT_MULTI_MODULE
9487 # non-empty at configure time, or by adding -multi_module to the
9488 # link flags.
9489 rm -rf libconftest.dylib*
9490 echo "int foo(void){return 1;}" > conftest.c
9491 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9492 -dynamiclib -Wl,-single_module conftest.c" >&5
9493 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9494 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9495 _lt_result=$?
9496 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9497 lt_cv_apple_cc_single_mod=yes
9498 else
9499 cat conftest.err >&5
9501 rm -rf libconftest.dylib*
9502 rm -f conftest.*
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9506 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9508 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9509 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9510 $as_echo_n "(cached) " >&6
9511 else
9512 lt_cv_ld_exported_symbols_list=no
9513 save_LDFLAGS=$LDFLAGS
9514 echo "_main" > conftest.sym
9515 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9516 if test x$gcc_no_link = xyes; then
9517 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9520 /* end confdefs.h. */
9523 main ()
9527 return 0;
9529 _ACEOF
9530 if ac_fn_c_try_link "$LINENO"; then :
9531 lt_cv_ld_exported_symbols_list=yes
9532 else
9533 lt_cv_ld_exported_symbols_list=no
9535 rm -f core conftest.err conftest.$ac_objext \
9536 conftest$ac_exeext conftest.$ac_ext
9537 LDFLAGS="$save_LDFLAGS"
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9541 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9543 $as_echo_n "checking for -force_load linker flag... " >&6; }
9544 if test "${lt_cv_ld_force_load+set}" = set; then :
9545 $as_echo_n "(cached) " >&6
9546 else
9547 lt_cv_ld_force_load=no
9548 cat > conftest.c << _LT_EOF
9549 int forced_loaded() { return 2;}
9550 _LT_EOF
9551 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9552 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9553 echo "$AR cru libconftest.a conftest.o" >&5
9554 $AR cru libconftest.a conftest.o 2>&5
9555 cat > conftest.c << _LT_EOF
9556 int main() { return 0;}
9557 _LT_EOF
9558 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9559 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9560 _lt_result=$?
9561 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9562 lt_cv_ld_force_load=yes
9563 else
9564 cat conftest.err >&5
9566 rm -f conftest.err libconftest.a conftest conftest.c
9567 rm -rf conftest.dSYM
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9571 $as_echo "$lt_cv_ld_force_load" >&6; }
9572 case $host_os in
9573 rhapsody* | darwin1.[012])
9574 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9575 darwin1.*)
9576 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9577 darwin*) # darwin 5.x on
9578 # if running on 10.5 or later, the deployment target defaults
9579 # to the OS version, if on x86, and 10.4, the deployment
9580 # target defaults to 10.4. Don't you love it?
9581 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9582 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9583 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9584 10.[012][,.]*)
9585 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9586 10.*)
9587 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9588 esac
9590 esac
9591 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9592 _lt_dar_single_mod='$single_module'
9594 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9595 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9596 else
9597 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9599 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9600 _lt_dsymutil='~$DSYMUTIL $lib || :'
9601 else
9602 _lt_dsymutil=
9605 esac
9607 ac_ext=c
9608 ac_cpp='$CPP $CPPFLAGS'
9609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9613 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9614 # On Suns, sometimes $CPP names a directory.
9615 if test -n "$CPP" && test -d "$CPP"; then
9616 CPP=
9618 if test -z "$CPP"; then
9619 if test "${ac_cv_prog_CPP+set}" = set; then :
9620 $as_echo_n "(cached) " >&6
9621 else
9622 # Double quotes because CPP needs to be expanded
9623 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9625 ac_preproc_ok=false
9626 for ac_c_preproc_warn_flag in '' yes
9628 # Use a header file that comes with gcc, so configuring glibc
9629 # with a fresh cross-compiler works.
9630 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9631 # <limits.h> exists even on freestanding compilers.
9632 # On the NeXT, cc -E runs the code through the compiler's parser,
9633 # not just through cpp. "Syntax error" is here to catch this case.
9634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9635 /* end confdefs.h. */
9636 #ifdef __STDC__
9637 # include <limits.h>
9638 #else
9639 # include <assert.h>
9640 #endif
9641 Syntax error
9642 _ACEOF
9643 if ac_fn_c_try_cpp "$LINENO"; then :
9645 else
9646 # Broken: fails on valid input.
9647 continue
9649 rm -f conftest.err conftest.$ac_ext
9651 # OK, works on sane cases. Now check whether nonexistent headers
9652 # can be detected and how.
9653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9654 /* end confdefs.h. */
9655 #include <ac_nonexistent.h>
9656 _ACEOF
9657 if ac_fn_c_try_cpp "$LINENO"; then :
9658 # Broken: success on invalid input.
9659 continue
9660 else
9661 # Passes both tests.
9662 ac_preproc_ok=:
9663 break
9665 rm -f conftest.err conftest.$ac_ext
9667 done
9668 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9669 rm -f conftest.err conftest.$ac_ext
9670 if $ac_preproc_ok; then :
9671 break
9674 done
9675 ac_cv_prog_CPP=$CPP
9678 CPP=$ac_cv_prog_CPP
9679 else
9680 ac_cv_prog_CPP=$CPP
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9683 $as_echo "$CPP" >&6; }
9684 ac_preproc_ok=false
9685 for ac_c_preproc_warn_flag in '' yes
9687 # Use a header file that comes with gcc, so configuring glibc
9688 # with a fresh cross-compiler works.
9689 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9690 # <limits.h> exists even on freestanding compilers.
9691 # On the NeXT, cc -E runs the code through the compiler's parser,
9692 # not just through cpp. "Syntax error" is here to catch this case.
9693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9694 /* end confdefs.h. */
9695 #ifdef __STDC__
9696 # include <limits.h>
9697 #else
9698 # include <assert.h>
9699 #endif
9700 Syntax error
9701 _ACEOF
9702 if ac_fn_c_try_cpp "$LINENO"; then :
9704 else
9705 # Broken: fails on valid input.
9706 continue
9708 rm -f conftest.err conftest.$ac_ext
9710 # OK, works on sane cases. Now check whether nonexistent headers
9711 # can be detected and how.
9712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9713 /* end confdefs.h. */
9714 #include <ac_nonexistent.h>
9715 _ACEOF
9716 if ac_fn_c_try_cpp "$LINENO"; then :
9717 # Broken: success on invalid input.
9718 continue
9719 else
9720 # Passes both tests.
9721 ac_preproc_ok=:
9722 break
9724 rm -f conftest.err conftest.$ac_ext
9726 done
9727 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9728 rm -f conftest.err conftest.$ac_ext
9729 if $ac_preproc_ok; then :
9731 else
9732 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9734 as_fn_error "C preprocessor \"$CPP\" fails sanity check
9735 See \`config.log' for more details." "$LINENO" 5; }
9738 ac_ext=c
9739 ac_cpp='$CPP $CPPFLAGS'
9740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9746 $as_echo_n "checking for ANSI C header files... " >&6; }
9747 if test "${ac_cv_header_stdc+set}" = set; then :
9748 $as_echo_n "(cached) " >&6
9749 else
9750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9751 /* end confdefs.h. */
9752 #include <stdlib.h>
9753 #include <stdarg.h>
9754 #include <string.h>
9755 #include <float.h>
9758 main ()
9762 return 0;
9764 _ACEOF
9765 if ac_fn_c_try_compile "$LINENO"; then :
9766 ac_cv_header_stdc=yes
9767 else
9768 ac_cv_header_stdc=no
9770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9772 if test $ac_cv_header_stdc = yes; then
9773 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775 /* end confdefs.h. */
9776 #include <string.h>
9778 _ACEOF
9779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9780 $EGREP "memchr" >/dev/null 2>&1; then :
9782 else
9783 ac_cv_header_stdc=no
9785 rm -f conftest*
9789 if test $ac_cv_header_stdc = yes; then
9790 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9792 /* end confdefs.h. */
9793 #include <stdlib.h>
9795 _ACEOF
9796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9797 $EGREP "free" >/dev/null 2>&1; then :
9799 else
9800 ac_cv_header_stdc=no
9802 rm -f conftest*
9806 if test $ac_cv_header_stdc = yes; then
9807 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9808 if test "$cross_compiling" = yes; then :
9810 else
9811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9812 /* end confdefs.h. */
9813 #include <ctype.h>
9814 #include <stdlib.h>
9815 #if ((' ' & 0x0FF) == 0x020)
9816 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9817 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9818 #else
9819 # define ISLOWER(c) \
9820 (('a' <= (c) && (c) <= 'i') \
9821 || ('j' <= (c) && (c) <= 'r') \
9822 || ('s' <= (c) && (c) <= 'z'))
9823 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9824 #endif
9826 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9828 main ()
9830 int i;
9831 for (i = 0; i < 256; i++)
9832 if (XOR (islower (i), ISLOWER (i))
9833 || toupper (i) != TOUPPER (i))
9834 return 2;
9835 return 0;
9837 _ACEOF
9838 if ac_fn_c_try_run "$LINENO"; then :
9840 else
9841 ac_cv_header_stdc=no
9843 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9844 conftest.$ac_objext conftest.beam conftest.$ac_ext
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9850 $as_echo "$ac_cv_header_stdc" >&6; }
9851 if test $ac_cv_header_stdc = yes; then
9853 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9857 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9858 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9859 inttypes.h stdint.h unistd.h
9860 do :
9861 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9862 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9864 eval as_val=\$$as_ac_Header
9865 if test "x$as_val" = x""yes; then :
9866 cat >>confdefs.h <<_ACEOF
9867 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9868 _ACEOF
9872 done
9875 for ac_header in dlfcn.h
9876 do :
9877 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9879 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9880 cat >>confdefs.h <<_ACEOF
9881 #define HAVE_DLFCN_H 1
9882 _ACEOF
9886 done
9893 # Set options
9898 enable_win32_dll=no
9901 # Check whether --enable-shared was given.
9902 if test "${enable_shared+set}" = set; then :
9903 enableval=$enable_shared; p=${PACKAGE-default}
9904 case $enableval in
9905 yes) enable_shared=yes ;;
9906 no) enable_shared=no ;;
9908 enable_shared=no
9909 # Look at the argument we got. We use all the common list separators.
9910 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9911 for pkg in $enableval; do
9912 IFS="$lt_save_ifs"
9913 if test "X$pkg" = "X$p"; then
9914 enable_shared=yes
9916 done
9917 IFS="$lt_save_ifs"
9919 esac
9920 else
9921 enable_shared=yes
9932 # Check whether --enable-static was given.
9933 if test "${enable_static+set}" = set; then :
9934 enableval=$enable_static; p=${PACKAGE-default}
9935 case $enableval in
9936 yes) enable_static=yes ;;
9937 no) enable_static=no ;;
9939 enable_static=no
9940 # Look at the argument we got. We use all the common list separators.
9941 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9942 for pkg in $enableval; do
9943 IFS="$lt_save_ifs"
9944 if test "X$pkg" = "X$p"; then
9945 enable_static=yes
9947 done
9948 IFS="$lt_save_ifs"
9950 esac
9951 else
9952 enable_static=yes
9964 # Check whether --with-pic was given.
9965 if test "${with_pic+set}" = set; then :
9966 withval=$with_pic; pic_mode="$withval"
9967 else
9968 pic_mode=default
9972 test -z "$pic_mode" && pic_mode=default
9980 # Check whether --enable-fast-install was given.
9981 if test "${enable_fast_install+set}" = set; then :
9982 enableval=$enable_fast_install; p=${PACKAGE-default}
9983 case $enableval in
9984 yes) enable_fast_install=yes ;;
9985 no) enable_fast_install=no ;;
9987 enable_fast_install=no
9988 # Look at the argument we got. We use all the common list separators.
9989 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9990 for pkg in $enableval; do
9991 IFS="$lt_save_ifs"
9992 if test "X$pkg" = "X$p"; then
9993 enable_fast_install=yes
9995 done
9996 IFS="$lt_save_ifs"
9998 esac
9999 else
10000 enable_fast_install=yes
10013 # This can be used to rebuild libtool when needed
10014 LIBTOOL_DEPS="$ltmain"
10016 # Always use our own libtool.
10017 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10044 test -z "$LN_S" && LN_S="ln -s"
10059 if test -n "${ZSH_VERSION+set}" ; then
10060 setopt NO_GLOB_SUBST
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10064 $as_echo_n "checking for objdir... " >&6; }
10065 if test "${lt_cv_objdir+set}" = set; then :
10066 $as_echo_n "(cached) " >&6
10067 else
10068 rm -f .libs 2>/dev/null
10069 mkdir .libs 2>/dev/null
10070 if test -d .libs; then
10071 lt_cv_objdir=.libs
10072 else
10073 # MS-DOS does not allow filenames that begin with a dot.
10074 lt_cv_objdir=_libs
10076 rmdir .libs 2>/dev/null
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10079 $as_echo "$lt_cv_objdir" >&6; }
10080 objdir=$lt_cv_objdir
10086 cat >>confdefs.h <<_ACEOF
10087 #define LT_OBJDIR "$lt_cv_objdir/"
10088 _ACEOF
10093 case $host_os in
10094 aix3*)
10095 # AIX sometimes has problems with the GCC collect2 program. For some
10096 # reason, if we set the COLLECT_NAMES environment variable, the problems
10097 # vanish in a puff of smoke.
10098 if test "X${COLLECT_NAMES+set}" != Xset; then
10099 COLLECT_NAMES=
10100 export COLLECT_NAMES
10103 esac
10105 # Global variables:
10106 ofile=libtool
10107 can_build_shared=yes
10109 # All known linkers require a `.a' archive for static linking (except MSVC,
10110 # which needs '.lib').
10111 libext=a
10113 with_gnu_ld="$lt_cv_prog_gnu_ld"
10115 old_CC="$CC"
10116 old_CFLAGS="$CFLAGS"
10118 # Set sane defaults for various variables
10119 test -z "$CC" && CC=cc
10120 test -z "$LTCC" && LTCC=$CC
10121 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10122 test -z "$LD" && LD=ld
10123 test -z "$ac_objext" && ac_objext=o
10125 for cc_temp in $compiler""; do
10126 case $cc_temp in
10127 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10128 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10129 \-*) ;;
10130 *) break;;
10131 esac
10132 done
10133 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10136 # Only perform the check for file, if the check method requires it
10137 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10138 case $deplibs_check_method in
10139 file_magic*)
10140 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10142 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10143 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10144 $as_echo_n "(cached) " >&6
10145 else
10146 case $MAGIC_CMD in
10147 [\\/*] | ?:[\\/]*)
10148 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10151 lt_save_MAGIC_CMD="$MAGIC_CMD"
10152 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10153 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10154 for ac_dir in $ac_dummy; do
10155 IFS="$lt_save_ifs"
10156 test -z "$ac_dir" && ac_dir=.
10157 if test -f $ac_dir/${ac_tool_prefix}file; then
10158 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10159 if test -n "$file_magic_test_file"; then
10160 case $deplibs_check_method in
10161 "file_magic "*)
10162 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10163 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10164 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10165 $EGREP "$file_magic_regex" > /dev/null; then
10167 else
10168 cat <<_LT_EOF 1>&2
10170 *** Warning: the command libtool uses to detect shared libraries,
10171 *** $file_magic_cmd, produces output that libtool cannot recognize.
10172 *** The result is that libtool may fail to recognize shared libraries
10173 *** as such. This will affect the creation of libtool libraries that
10174 *** depend on shared libraries, but programs linked with such libtool
10175 *** libraries will work regardless of this problem. Nevertheless, you
10176 *** may want to report the problem to your system manager and/or to
10177 *** bug-libtool@gnu.org
10179 _LT_EOF
10180 fi ;;
10181 esac
10183 break
10185 done
10186 IFS="$lt_save_ifs"
10187 MAGIC_CMD="$lt_save_MAGIC_CMD"
10189 esac
10192 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10193 if test -n "$MAGIC_CMD"; then
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10195 $as_echo "$MAGIC_CMD" >&6; }
10196 else
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10198 $as_echo "no" >&6; }
10205 if test -z "$lt_cv_path_MAGIC_CMD"; then
10206 if test -n "$ac_tool_prefix"; then
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10208 $as_echo_n "checking for file... " >&6; }
10209 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10210 $as_echo_n "(cached) " >&6
10211 else
10212 case $MAGIC_CMD in
10213 [\\/*] | ?:[\\/]*)
10214 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10217 lt_save_MAGIC_CMD="$MAGIC_CMD"
10218 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10219 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10220 for ac_dir in $ac_dummy; do
10221 IFS="$lt_save_ifs"
10222 test -z "$ac_dir" && ac_dir=.
10223 if test -f $ac_dir/file; then
10224 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10225 if test -n "$file_magic_test_file"; then
10226 case $deplibs_check_method in
10227 "file_magic "*)
10228 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10229 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10230 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10231 $EGREP "$file_magic_regex" > /dev/null; then
10233 else
10234 cat <<_LT_EOF 1>&2
10236 *** Warning: the command libtool uses to detect shared libraries,
10237 *** $file_magic_cmd, produces output that libtool cannot recognize.
10238 *** The result is that libtool may fail to recognize shared libraries
10239 *** as such. This will affect the creation of libtool libraries that
10240 *** depend on shared libraries, but programs linked with such libtool
10241 *** libraries will work regardless of this problem. Nevertheless, you
10242 *** may want to report the problem to your system manager and/or to
10243 *** bug-libtool@gnu.org
10245 _LT_EOF
10246 fi ;;
10247 esac
10249 break
10251 done
10252 IFS="$lt_save_ifs"
10253 MAGIC_CMD="$lt_save_MAGIC_CMD"
10255 esac
10258 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10259 if test -n "$MAGIC_CMD"; then
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10261 $as_echo "$MAGIC_CMD" >&6; }
10262 else
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10264 $as_echo "no" >&6; }
10268 else
10269 MAGIC_CMD=:
10275 esac
10277 # Use C for the default configuration in the libtool script
10279 lt_save_CC="$CC"
10280 ac_ext=c
10281 ac_cpp='$CPP $CPPFLAGS'
10282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10287 # Source file extension for C test sources.
10288 ac_ext=c
10290 # Object file extension for compiled C test sources.
10291 objext=o
10292 objext=$objext
10294 # Code to be used in simple compile tests
10295 lt_simple_compile_test_code="int some_variable = 0;"
10297 # Code to be used in simple link tests
10298 lt_simple_link_test_code='int main(){return(0);}'
10306 # If no C compiler was specified, use CC.
10307 LTCC=${LTCC-"$CC"}
10309 # If no C compiler flags were specified, use CFLAGS.
10310 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10312 # Allow CC to be a program name with arguments.
10313 compiler=$CC
10315 # Save the default compiler, since it gets overwritten when the other
10316 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10317 compiler_DEFAULT=$CC
10319 # save warnings/boilerplate of simple test code
10320 ac_outfile=conftest.$ac_objext
10321 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10322 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10323 _lt_compiler_boilerplate=`cat conftest.err`
10324 $RM conftest*
10326 ac_outfile=conftest.$ac_objext
10327 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10328 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10329 _lt_linker_boilerplate=`cat conftest.err`
10330 $RM -r conftest*
10333 ## CAVEAT EMPTOR:
10334 ## There is no encapsulation within the following macros, do not change
10335 ## the running order or otherwise move them around unless you know exactly
10336 ## what you are doing...
10337 if test -n "$compiler"; then
10339 lt_prog_compiler_no_builtin_flag=
10341 if test "$GCC" = yes; then
10342 case $cc_basename in
10343 nvcc*)
10344 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10346 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10347 esac
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10350 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10351 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10352 $as_echo_n "(cached) " >&6
10353 else
10354 lt_cv_prog_compiler_rtti_exceptions=no
10355 ac_outfile=conftest.$ac_objext
10356 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10357 lt_compiler_flag="-fno-rtti -fno-exceptions"
10358 # Insert the option either (1) after the last *FLAGS variable, or
10359 # (2) before a word containing "conftest.", or (3) at the end.
10360 # Note that $ac_compile itself does not contain backslashes and begins
10361 # with a dollar sign (not a hyphen), so the echo should work correctly.
10362 # The option is referenced via a variable to avoid confusing sed.
10363 lt_compile=`echo "$ac_compile" | $SED \
10364 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10365 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10366 -e 's:$: $lt_compiler_flag:'`
10367 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10368 (eval "$lt_compile" 2>conftest.err)
10369 ac_status=$?
10370 cat conftest.err >&5
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 if (exit $ac_status) && test -s "$ac_outfile"; then
10373 # The compiler can only warn and ignore the option if not recognized
10374 # So say no if there are warnings other than the usual output.
10375 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10376 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10377 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10378 lt_cv_prog_compiler_rtti_exceptions=yes
10381 $RM conftest*
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10385 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10387 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10388 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10389 else
10400 lt_prog_compiler_wl=
10401 lt_prog_compiler_pic=
10402 lt_prog_compiler_static=
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10405 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10407 if test "$GCC" = yes; then
10408 lt_prog_compiler_wl='-Wl,'
10409 lt_prog_compiler_static='-static'
10411 case $host_os in
10412 aix*)
10413 # All AIX code is PIC.
10414 if test "$host_cpu" = ia64; then
10415 # AIX 5 now supports IA64 processor
10416 lt_prog_compiler_static='-Bstatic'
10418 lt_prog_compiler_pic='-fPIC'
10421 amigaos*)
10422 case $host_cpu in
10423 powerpc)
10424 # see comment about AmigaOS4 .so support
10425 lt_prog_compiler_pic='-fPIC'
10427 m68k)
10428 # FIXME: we need at least 68020 code to build shared libraries, but
10429 # adding the `-m68020' flag to GCC prevents building anything better,
10430 # like `-m68040'.
10431 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10433 esac
10436 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10437 # PIC is the default for these OSes.
10440 mingw* | cygwin* | pw32* | os2* | cegcc*)
10441 # This hack is so that the source file can tell whether it is being
10442 # built for inclusion in a dll (and should export symbols for example).
10443 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10444 # (--disable-auto-import) libraries
10445 lt_prog_compiler_pic='-DDLL_EXPORT'
10448 darwin* | rhapsody*)
10449 # PIC is the default on this platform
10450 # Common symbols not allowed in MH_DYLIB files
10451 lt_prog_compiler_pic='-fno-common'
10454 haiku*)
10455 # PIC is the default for Haiku.
10456 # The "-static" flag exists, but is broken.
10457 lt_prog_compiler_static=
10460 hpux*)
10461 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10462 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10463 # sets the default TLS model and affects inlining.
10464 case $host_cpu in
10465 hppa*64*)
10466 # +Z the default
10469 lt_prog_compiler_pic='-fPIC'
10471 esac
10474 interix[3-9]*)
10475 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10476 # Instead, we relocate shared libraries at runtime.
10479 msdosdjgpp*)
10480 # Just because we use GCC doesn't mean we suddenly get shared libraries
10481 # on systems that don't support them.
10482 lt_prog_compiler_can_build_shared=no
10483 enable_shared=no
10486 *nto* | *qnx*)
10487 # QNX uses GNU C++, but need to define -shared option too, otherwise
10488 # it will coredump.
10489 lt_prog_compiler_pic='-fPIC -shared'
10492 sysv4*MP*)
10493 if test -d /usr/nec; then
10494 lt_prog_compiler_pic=-Kconform_pic
10499 lt_prog_compiler_pic='-fPIC'
10501 esac
10503 case $cc_basename in
10504 nvcc*) # Cuda Compiler Driver 2.2
10505 lt_prog_compiler_wl='-Xlinker '
10506 lt_prog_compiler_pic='-Xcompiler -fPIC'
10508 esac
10509 else
10510 # PORTME Check for flag to pass linker flags through the system compiler.
10511 case $host_os in
10512 aix*)
10513 lt_prog_compiler_wl='-Wl,'
10514 if test "$host_cpu" = ia64; then
10515 # AIX 5 now supports IA64 processor
10516 lt_prog_compiler_static='-Bstatic'
10517 else
10518 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10522 mingw* | cygwin* | pw32* | os2* | cegcc*)
10523 # This hack is so that the source file can tell whether it is being
10524 # built for inclusion in a dll (and should export symbols for example).
10525 lt_prog_compiler_pic='-DDLL_EXPORT'
10528 hpux9* | hpux10* | hpux11*)
10529 lt_prog_compiler_wl='-Wl,'
10530 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10531 # not for PA HP-UX.
10532 case $host_cpu in
10533 hppa*64*|ia64*)
10534 # +Z the default
10537 lt_prog_compiler_pic='+Z'
10539 esac
10540 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10541 lt_prog_compiler_static='${wl}-a ${wl}archive'
10544 irix5* | irix6* | nonstopux*)
10545 lt_prog_compiler_wl='-Wl,'
10546 # PIC (with -KPIC) is the default.
10547 lt_prog_compiler_static='-non_shared'
10550 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10551 case $cc_basename in
10552 # old Intel for x86_64 which still supported -KPIC.
10553 ecc*)
10554 lt_prog_compiler_wl='-Wl,'
10555 lt_prog_compiler_pic='-KPIC'
10556 lt_prog_compiler_static='-static'
10558 # icc used to be incompatible with GCC.
10559 # ICC 10 doesn't accept -KPIC any more.
10560 icc* | ifort*)
10561 lt_prog_compiler_wl='-Wl,'
10562 lt_prog_compiler_pic='-fPIC'
10563 lt_prog_compiler_static='-static'
10565 # Lahey Fortran 8.1.
10566 lf95*)
10567 lt_prog_compiler_wl='-Wl,'
10568 lt_prog_compiler_pic='--shared'
10569 lt_prog_compiler_static='--static'
10571 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10572 # Portland Group compilers (*not* the Pentium gcc compiler,
10573 # which looks to be a dead project)
10574 lt_prog_compiler_wl='-Wl,'
10575 lt_prog_compiler_pic='-fpic'
10576 lt_prog_compiler_static='-Bstatic'
10578 ccc*)
10579 lt_prog_compiler_wl='-Wl,'
10580 # All Alpha code is PIC.
10581 lt_prog_compiler_static='-non_shared'
10583 xl* | bgxl* | bgf* | mpixl*)
10584 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10585 lt_prog_compiler_wl='-Wl,'
10586 lt_prog_compiler_pic='-qpic'
10587 lt_prog_compiler_static='-qstaticlink'
10590 case `$CC -V 2>&1 | sed 5q` in
10591 *Sun\ F* | *Sun*Fortran*)
10592 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10593 lt_prog_compiler_pic='-KPIC'
10594 lt_prog_compiler_static='-Bstatic'
10595 lt_prog_compiler_wl=''
10597 *Sun\ C*)
10598 # Sun C 5.9
10599 lt_prog_compiler_pic='-KPIC'
10600 lt_prog_compiler_static='-Bstatic'
10601 lt_prog_compiler_wl='-Wl,'
10603 esac
10605 esac
10608 newsos6)
10609 lt_prog_compiler_pic='-KPIC'
10610 lt_prog_compiler_static='-Bstatic'
10613 *nto* | *qnx*)
10614 # QNX uses GNU C++, but need to define -shared option too, otherwise
10615 # it will coredump.
10616 lt_prog_compiler_pic='-fPIC -shared'
10619 osf3* | osf4* | osf5*)
10620 lt_prog_compiler_wl='-Wl,'
10621 # All OSF/1 code is PIC.
10622 lt_prog_compiler_static='-non_shared'
10625 rdos*)
10626 lt_prog_compiler_static='-non_shared'
10629 solaris*)
10630 lt_prog_compiler_pic='-KPIC'
10631 lt_prog_compiler_static='-Bstatic'
10632 case $cc_basename in
10633 f77* | f90* | f95*)
10634 lt_prog_compiler_wl='-Qoption ld ';;
10636 lt_prog_compiler_wl='-Wl,';;
10637 esac
10640 sunos4*)
10641 lt_prog_compiler_wl='-Qoption ld '
10642 lt_prog_compiler_pic='-PIC'
10643 lt_prog_compiler_static='-Bstatic'
10646 sysv4 | sysv4.2uw2* | sysv4.3*)
10647 lt_prog_compiler_wl='-Wl,'
10648 lt_prog_compiler_pic='-KPIC'
10649 lt_prog_compiler_static='-Bstatic'
10652 sysv4*MP*)
10653 if test -d /usr/nec ;then
10654 lt_prog_compiler_pic='-Kconform_pic'
10655 lt_prog_compiler_static='-Bstatic'
10659 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10660 lt_prog_compiler_wl='-Wl,'
10661 lt_prog_compiler_pic='-KPIC'
10662 lt_prog_compiler_static='-Bstatic'
10665 unicos*)
10666 lt_prog_compiler_wl='-Wl,'
10667 lt_prog_compiler_can_build_shared=no
10670 uts4*)
10671 lt_prog_compiler_pic='-pic'
10672 lt_prog_compiler_static='-Bstatic'
10676 lt_prog_compiler_can_build_shared=no
10678 esac
10681 case $host_os in
10682 # For platforms which do not support PIC, -DPIC is meaningless:
10683 *djgpp*)
10684 lt_prog_compiler_pic=
10687 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10689 esac
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10691 $as_echo "$lt_prog_compiler_pic" >&6; }
10699 # Check to make sure the PIC flag actually works.
10701 if test -n "$lt_prog_compiler_pic"; then
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10703 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10704 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10705 $as_echo_n "(cached) " >&6
10706 else
10707 lt_cv_prog_compiler_pic_works=no
10708 ac_outfile=conftest.$ac_objext
10709 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10710 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10711 # Insert the option either (1) after the last *FLAGS variable, or
10712 # (2) before a word containing "conftest.", or (3) at the end.
10713 # Note that $ac_compile itself does not contain backslashes and begins
10714 # with a dollar sign (not a hyphen), so the echo should work correctly.
10715 # The option is referenced via a variable to avoid confusing sed.
10716 lt_compile=`echo "$ac_compile" | $SED \
10717 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10718 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10719 -e 's:$: $lt_compiler_flag:'`
10720 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10721 (eval "$lt_compile" 2>conftest.err)
10722 ac_status=$?
10723 cat conftest.err >&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 if (exit $ac_status) && test -s "$ac_outfile"; then
10726 # The compiler can only warn and ignore the option if not recognized
10727 # So say no if there are warnings other than the usual output.
10728 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10729 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10730 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10731 lt_cv_prog_compiler_pic_works=yes
10734 $RM conftest*
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10738 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10740 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10741 case $lt_prog_compiler_pic in
10742 "" | " "*) ;;
10743 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10744 esac
10745 else
10746 lt_prog_compiler_pic=
10747 lt_prog_compiler_can_build_shared=no
10758 # Check to make sure the static flag actually works.
10760 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10762 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10763 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10764 $as_echo_n "(cached) " >&6
10765 else
10766 lt_cv_prog_compiler_static_works=no
10767 save_LDFLAGS="$LDFLAGS"
10768 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10769 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10770 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10771 # The linker can only warn and ignore the option if not recognized
10772 # So say no if there are warnings
10773 if test -s conftest.err; then
10774 # Append any errors to the config.log.
10775 cat conftest.err 1>&5
10776 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10777 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10778 if diff conftest.exp conftest.er2 >/dev/null; then
10779 lt_cv_prog_compiler_static_works=yes
10781 else
10782 lt_cv_prog_compiler_static_works=yes
10785 $RM -r conftest*
10786 LDFLAGS="$save_LDFLAGS"
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10790 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10792 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10794 else
10795 lt_prog_compiler_static=
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10805 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10806 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10807 $as_echo_n "(cached) " >&6
10808 else
10809 lt_cv_prog_compiler_c_o=no
10810 $RM -r conftest 2>/dev/null
10811 mkdir conftest
10812 cd conftest
10813 mkdir out
10814 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10816 lt_compiler_flag="-o out/conftest2.$ac_objext"
10817 # Insert the option either (1) after the last *FLAGS variable, or
10818 # (2) before a word containing "conftest.", or (3) at the end.
10819 # Note that $ac_compile itself does not contain backslashes and begins
10820 # with a dollar sign (not a hyphen), so the echo should work correctly.
10821 lt_compile=`echo "$ac_compile" | $SED \
10822 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10823 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10824 -e 's:$: $lt_compiler_flag:'`
10825 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10826 (eval "$lt_compile" 2>out/conftest.err)
10827 ac_status=$?
10828 cat out/conftest.err >&5
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10831 then
10832 # The compiler can only warn and ignore the option if not recognized
10833 # So say no if there are warnings
10834 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10835 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10836 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10837 lt_cv_prog_compiler_c_o=yes
10840 chmod u+w . 2>&5
10841 $RM conftest*
10842 # SGI C++ compiler will create directory out/ii_files/ for
10843 # template instantiation
10844 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10845 $RM out/* && rmdir out
10846 cd ..
10847 $RM -r conftest
10848 $RM conftest*
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10852 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10860 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10861 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10862 $as_echo_n "(cached) " >&6
10863 else
10864 lt_cv_prog_compiler_c_o=no
10865 $RM -r conftest 2>/dev/null
10866 mkdir conftest
10867 cd conftest
10868 mkdir out
10869 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10871 lt_compiler_flag="-o out/conftest2.$ac_objext"
10872 # Insert the option either (1) after the last *FLAGS variable, or
10873 # (2) before a word containing "conftest.", or (3) at the end.
10874 # Note that $ac_compile itself does not contain backslashes and begins
10875 # with a dollar sign (not a hyphen), so the echo should work correctly.
10876 lt_compile=`echo "$ac_compile" | $SED \
10877 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10878 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10879 -e 's:$: $lt_compiler_flag:'`
10880 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10881 (eval "$lt_compile" 2>out/conftest.err)
10882 ac_status=$?
10883 cat out/conftest.err >&5
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10886 then
10887 # The compiler can only warn and ignore the option if not recognized
10888 # So say no if there are warnings
10889 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10890 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10891 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10892 lt_cv_prog_compiler_c_o=yes
10895 chmod u+w . 2>&5
10896 $RM conftest*
10897 # SGI C++ compiler will create directory out/ii_files/ for
10898 # template instantiation
10899 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10900 $RM out/* && rmdir out
10901 cd ..
10902 $RM -r conftest
10903 $RM conftest*
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10907 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10912 hard_links="nottested"
10913 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10914 # do not overwrite the value of need_locks provided by the user
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10916 $as_echo_n "checking if we can lock with hard links... " >&6; }
10917 hard_links=yes
10918 $RM conftest*
10919 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10920 touch conftest.a
10921 ln conftest.a conftest.b 2>&5 || hard_links=no
10922 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10924 $as_echo "$hard_links" >&6; }
10925 if test "$hard_links" = no; then
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10927 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10928 need_locks=warn
10930 else
10931 need_locks=no
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10940 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10942 runpath_var=
10943 allow_undefined_flag=
10944 always_export_symbols=no
10945 archive_cmds=
10946 archive_expsym_cmds=
10947 compiler_needs_object=no
10948 enable_shared_with_static_runtimes=no
10949 export_dynamic_flag_spec=
10950 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10951 hardcode_automatic=no
10952 hardcode_direct=no
10953 hardcode_direct_absolute=no
10954 hardcode_libdir_flag_spec=
10955 hardcode_libdir_flag_spec_ld=
10956 hardcode_libdir_separator=
10957 hardcode_minus_L=no
10958 hardcode_shlibpath_var=unsupported
10959 inherit_rpath=no
10960 link_all_deplibs=unknown
10961 module_cmds=
10962 module_expsym_cmds=
10963 old_archive_from_new_cmds=
10964 old_archive_from_expsyms_cmds=
10965 thread_safe_flag_spec=
10966 whole_archive_flag_spec=
10967 # include_expsyms should be a list of space-separated symbols to be *always*
10968 # included in the symbol list
10969 include_expsyms=
10970 # exclude_expsyms can be an extended regexp of symbols to exclude
10971 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10972 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10973 # as well as any symbol that contains `d'.
10974 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10975 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10976 # platforms (ab)use it in PIC code, but their linkers get confused if
10977 # the symbol is explicitly referenced. Since portable code cannot
10978 # rely on this symbol name, it's probably fine to never include it in
10979 # preloaded symbol tables.
10980 # Exclude shared library initialization/finalization symbols.
10981 extract_expsyms_cmds=
10983 case $host_os in
10984 cygwin* | mingw* | pw32* | cegcc*)
10985 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10986 # When not using gcc, we currently assume that we are using
10987 # Microsoft Visual C++.
10988 if test "$GCC" != yes; then
10989 with_gnu_ld=no
10992 interix*)
10993 # we just hope/assume this is gcc and not c89 (= MSVC++)
10994 with_gnu_ld=yes
10996 openbsd*)
10997 with_gnu_ld=no
10999 esac
11001 ld_shlibs=yes
11003 # On some targets, GNU ld is compatible enough with the native linker
11004 # that we're better off using the native interface for both.
11005 lt_use_gnu_ld_interface=no
11006 if test "$with_gnu_ld" = yes; then
11007 case $host_os in
11008 aix*)
11009 # The AIX port of GNU ld has always aspired to compatibility
11010 # with the native linker. However, as the warning in the GNU ld
11011 # block says, versions before 2.19.5* couldn't really create working
11012 # shared libraries, regardless of the interface used.
11013 case `$LD -v 2>&1` in
11014 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11015 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11016 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11018 lt_use_gnu_ld_interface=yes
11020 esac
11023 lt_use_gnu_ld_interface=yes
11025 esac
11028 if test "$lt_use_gnu_ld_interface" = yes; then
11029 # If archive_cmds runs LD, not CC, wlarc should be empty
11030 wlarc='${wl}'
11032 # Set some defaults for GNU ld with shared library support. These
11033 # are reset later if shared libraries are not supported. Putting them
11034 # here allows them to be overridden if necessary.
11035 runpath_var=LD_RUN_PATH
11036 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11037 export_dynamic_flag_spec='${wl}--export-dynamic'
11038 # ancient GNU ld didn't support --whole-archive et. al.
11039 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11040 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11041 else
11042 whole_archive_flag_spec=
11044 supports_anon_versioning=no
11045 case `$LD -v 2>&1` in
11046 *GNU\ gold*) supports_anon_versioning=yes ;;
11047 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11048 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11049 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11050 *\ 2.11.*) ;; # other 2.11 versions
11051 *) supports_anon_versioning=yes ;;
11052 esac
11054 # See if GNU ld supports shared libraries.
11055 case $host_os in
11056 aix[3-9]*)
11057 # On AIX/PPC, the GNU linker is very broken
11058 if test "$host_cpu" != ia64; then
11059 ld_shlibs=no
11060 cat <<_LT_EOF 1>&2
11062 *** Warning: the GNU linker, at least up to release 2.19, is reported
11063 *** to be unable to reliably create shared libraries on AIX.
11064 *** Therefore, libtool is disabling shared libraries support. If you
11065 *** really care for shared libraries, you may want to install binutils
11066 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11067 *** You will then need to restart the configuration process.
11069 _LT_EOF
11073 amigaos*)
11074 case $host_cpu in
11075 powerpc)
11076 # see comment about AmigaOS4 .so support
11077 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11078 archive_expsym_cmds=''
11080 m68k)
11081 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)'
11082 hardcode_libdir_flag_spec='-L$libdir'
11083 hardcode_minus_L=yes
11085 esac
11088 beos*)
11089 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11090 allow_undefined_flag=unsupported
11091 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11092 # support --undefined. This deserves some investigation. FIXME
11093 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11094 else
11095 ld_shlibs=no
11099 cygwin* | mingw* | pw32* | cegcc*)
11100 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11101 # as there is no search path for DLLs.
11102 hardcode_libdir_flag_spec='-L$libdir'
11103 export_dynamic_flag_spec='${wl}--export-all-symbols'
11104 allow_undefined_flag=unsupported
11105 always_export_symbols=no
11106 enable_shared_with_static_runtimes=yes
11107 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11109 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11110 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11111 # If the export-symbols file already is a .def file (1st line
11112 # is EXPORTS), use it as is; otherwise, prepend...
11113 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11114 cp $export_symbols $output_objdir/$soname.def;
11115 else
11116 echo EXPORTS > $output_objdir/$soname.def;
11117 cat $export_symbols >> $output_objdir/$soname.def;
11119 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11120 else
11121 ld_shlibs=no
11125 haiku*)
11126 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11127 link_all_deplibs=yes
11130 interix[3-9]*)
11131 hardcode_direct=no
11132 hardcode_shlibpath_var=no
11133 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11134 export_dynamic_flag_spec='${wl}-E'
11135 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11136 # Instead, shared libraries are loaded at an image base (0x10000000 by
11137 # default) and relocated if they conflict, which is a slow very memory
11138 # consuming and fragmenting process. To avoid this, we pick a random,
11139 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11140 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11141 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11142 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'
11145 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11146 tmp_diet=no
11147 if test "$host_os" = linux-dietlibc; then
11148 case $cc_basename in
11149 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11150 esac
11152 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11153 && test "$tmp_diet" = no
11154 then
11155 tmp_addflag=' $pic_flag'
11156 tmp_sharedflag='-shared'
11157 case $cc_basename,$host_cpu in
11158 pgcc*) # Portland Group C compiler
11159 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'
11160 tmp_addflag=' $pic_flag'
11162 pgf77* | pgf90* | pgf95* | pgfortran*)
11163 # Portland Group f77 and f90 compilers
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 tmp_addflag=' $pic_flag -Mnomain' ;;
11166 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11167 tmp_addflag=' -i_dynamic' ;;
11168 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11169 tmp_addflag=' -i_dynamic -nofor_main' ;;
11170 ifc* | ifort*) # Intel Fortran compiler
11171 tmp_addflag=' -nofor_main' ;;
11172 lf95*) # Lahey Fortran 8.1
11173 whole_archive_flag_spec=
11174 tmp_sharedflag='--shared' ;;
11175 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11176 tmp_sharedflag='-qmkshrobj'
11177 tmp_addflag= ;;
11178 nvcc*) # Cuda Compiler Driver 2.2
11179 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'
11180 compiler_needs_object=yes
11182 esac
11183 case `$CC -V 2>&1 | sed 5q` in
11184 *Sun\ C*) # Sun C 5.9
11185 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'
11186 compiler_needs_object=yes
11187 tmp_sharedflag='-G' ;;
11188 *Sun\ F*) # Sun Fortran 8.3
11189 tmp_sharedflag='-G' ;;
11190 esac
11191 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11193 if test "x$supports_anon_versioning" = xyes; then
11194 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11195 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11196 echo "local: *; };" >> $output_objdir/$libname.ver~
11197 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11200 case $cc_basename in
11201 xlf* | bgf* | bgxlf* | mpixlf*)
11202 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11203 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11204 hardcode_libdir_flag_spec=
11205 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11206 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11207 if test "x$supports_anon_versioning" = xyes; then
11208 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11209 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11210 echo "local: *; };" >> $output_objdir/$libname.ver~
11211 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11214 esac
11215 else
11216 ld_shlibs=no
11220 netbsd*)
11221 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11222 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11223 wlarc=
11224 else
11225 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11226 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11230 solaris*)
11231 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11232 ld_shlibs=no
11233 cat <<_LT_EOF 1>&2
11235 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11236 *** create shared libraries on Solaris systems. Therefore, libtool
11237 *** is disabling shared libraries support. We urge you to upgrade GNU
11238 *** binutils to release 2.9.1 or newer. Another option is to modify
11239 *** your PATH or compiler configuration so that the native linker is
11240 *** used, and then restart.
11242 _LT_EOF
11243 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11244 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11245 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11246 else
11247 ld_shlibs=no
11251 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11252 case `$LD -v 2>&1` in
11253 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11254 ld_shlibs=no
11255 cat <<_LT_EOF 1>&2
11257 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11258 *** reliably create shared libraries on SCO systems. Therefore, libtool
11259 *** is disabling shared libraries support. We urge you to upgrade GNU
11260 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11261 *** your PATH or compiler configuration so that the native linker is
11262 *** used, and then restart.
11264 _LT_EOF
11267 # For security reasons, it is highly recommended that you always
11268 # use absolute paths for naming shared libraries, and exclude the
11269 # DT_RUNPATH tag from executables and libraries. But doing so
11270 # requires that you compile everything twice, which is a pain.
11271 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11272 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11273 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11274 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11275 else
11276 ld_shlibs=no
11279 esac
11282 sunos4*)
11283 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11284 wlarc=
11285 hardcode_direct=yes
11286 hardcode_shlibpath_var=no
11290 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11291 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11292 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11293 else
11294 ld_shlibs=no
11297 esac
11299 if test "$ld_shlibs" = no; then
11300 runpath_var=
11301 hardcode_libdir_flag_spec=
11302 export_dynamic_flag_spec=
11303 whole_archive_flag_spec=
11305 else
11306 # PORTME fill in a description of your system's linker (not GNU ld)
11307 case $host_os in
11308 aix3*)
11309 allow_undefined_flag=unsupported
11310 always_export_symbols=yes
11311 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'
11312 # Note: this linker hardcodes the directories in LIBPATH if there
11313 # are no directories specified by -L.
11314 hardcode_minus_L=yes
11315 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11316 # Neither direct hardcoding nor static linking is supported with a
11317 # broken collect2.
11318 hardcode_direct=unsupported
11322 aix[4-9]*)
11323 if test "$host_cpu" = ia64; then
11324 # On IA64, the linker does run time linking by default, so we don't
11325 # have to do anything special.
11326 aix_use_runtimelinking=no
11327 exp_sym_flag='-Bexport'
11328 no_entry_flag=""
11329 else
11330 # If we're using GNU nm, then we don't want the "-C" option.
11331 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11332 # Also, AIX nm treats weak defined symbols like other global
11333 # defined symbols, whereas GNU nm marks them as "W".
11334 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11335 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'
11336 else
11337 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'
11339 aix_use_runtimelinking=no
11341 # Test if we are trying to use run time linking or normal
11342 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11343 # need to do runtime linking.
11344 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11345 for ld_flag in $LDFLAGS; do
11346 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11347 aix_use_runtimelinking=yes
11348 break
11350 done
11352 esac
11354 exp_sym_flag='-bexport'
11355 no_entry_flag='-bnoentry'
11358 # When large executables or shared objects are built, AIX ld can
11359 # have problems creating the table of contents. If linking a library
11360 # or program results in "error TOC overflow" add -mminimal-toc to
11361 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11362 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11364 archive_cmds=''
11365 hardcode_direct=yes
11366 hardcode_direct_absolute=yes
11367 hardcode_libdir_separator=':'
11368 link_all_deplibs=yes
11369 file_list_spec='${wl}-f,'
11371 if test "$GCC" = yes; then
11372 case $host_os in aix4.[012]|aix4.[012].*)
11373 # We only want to do this on AIX 4.2 and lower, the check
11374 # below for broken collect2 doesn't work under 4.3+
11375 collect2name=`${CC} -print-prog-name=collect2`
11376 if test -f "$collect2name" &&
11377 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11378 then
11379 # We have reworked collect2
11381 else
11382 # We have old collect2
11383 hardcode_direct=unsupported
11384 # It fails to find uninstalled libraries when the uninstalled
11385 # path is not listed in the libpath. Setting hardcode_minus_L
11386 # to unsupported forces relinking
11387 hardcode_minus_L=yes
11388 hardcode_libdir_flag_spec='-L$libdir'
11389 hardcode_libdir_separator=
11392 esac
11393 shared_flag='-shared'
11394 if test "$aix_use_runtimelinking" = yes; then
11395 shared_flag="$shared_flag "'${wl}-G'
11397 else
11398 # not using gcc
11399 if test "$host_cpu" = ia64; then
11400 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11401 # chokes on -Wl,-G. The following line is correct:
11402 shared_flag='-G'
11403 else
11404 if test "$aix_use_runtimelinking" = yes; then
11405 shared_flag='${wl}-G'
11406 else
11407 shared_flag='${wl}-bM:SRE'
11412 export_dynamic_flag_spec='${wl}-bexpall'
11413 # It seems that -bexpall does not export symbols beginning with
11414 # underscore (_), so it is better to generate a list of symbols to export.
11415 always_export_symbols=yes
11416 if test "$aix_use_runtimelinking" = yes; then
11417 # Warning - without using the other runtime loading flags (-brtl),
11418 # -berok will link without error, but may produce a broken library.
11419 allow_undefined_flag='-berok'
11420 # Determine the default libpath from the value encoded in an
11421 # empty executable.
11422 if test x$gcc_no_link = xyes; then
11423 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11426 /* end confdefs.h. */
11429 main ()
11433 return 0;
11435 _ACEOF
11436 if ac_fn_c_try_link "$LINENO"; then :
11438 lt_aix_libpath_sed='
11439 /Import File Strings/,/^$/ {
11440 /^0/ {
11441 s/^0 *\(.*\)$/\1/
11445 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11446 # Check for a 64-bit object if we didn't find anything.
11447 if test -z "$aix_libpath"; then
11448 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11451 rm -f core conftest.err conftest.$ac_objext \
11452 conftest$ac_exeext conftest.$ac_ext
11453 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11455 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11456 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"
11457 else
11458 if test "$host_cpu" = ia64; then
11459 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11460 allow_undefined_flag="-z nodefs"
11461 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"
11462 else
11463 # Determine the default libpath from the value encoded in an
11464 # empty executable.
11465 if test x$gcc_no_link = xyes; then
11466 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11469 /* end confdefs.h. */
11472 main ()
11476 return 0;
11478 _ACEOF
11479 if ac_fn_c_try_link "$LINENO"; then :
11481 lt_aix_libpath_sed='
11482 /Import File Strings/,/^$/ {
11483 /^0/ {
11484 s/^0 *\(.*\)$/\1/
11488 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11489 # Check for a 64-bit object if we didn't find anything.
11490 if test -z "$aix_libpath"; then
11491 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11494 rm -f core conftest.err conftest.$ac_objext \
11495 conftest$ac_exeext conftest.$ac_ext
11496 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11498 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11499 # Warning - without using the other run time loading flags,
11500 # -berok will link without error, but may produce a broken library.
11501 no_undefined_flag=' ${wl}-bernotok'
11502 allow_undefined_flag=' ${wl}-berok'
11503 if test "$with_gnu_ld" = yes; then
11504 # We only use this code for GNU lds that support --whole-archive.
11505 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11506 else
11507 # Exported symbols can be pulled into shared objects from archives
11508 whole_archive_flag_spec='$convenience'
11510 archive_cmds_need_lc=yes
11511 # This is similar to how AIX traditionally builds its shared libraries.
11512 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'
11517 amigaos*)
11518 case $host_cpu in
11519 powerpc)
11520 # see comment about AmigaOS4 .so support
11521 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11522 archive_expsym_cmds=''
11524 m68k)
11525 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)'
11526 hardcode_libdir_flag_spec='-L$libdir'
11527 hardcode_minus_L=yes
11529 esac
11532 bsdi[45]*)
11533 export_dynamic_flag_spec=-rdynamic
11536 cygwin* | mingw* | pw32* | cegcc*)
11537 # When not using gcc, we currently assume that we are using
11538 # Microsoft Visual C++.
11539 # hardcode_libdir_flag_spec is actually meaningless, as there is
11540 # no search path for DLLs.
11541 hardcode_libdir_flag_spec=' '
11542 allow_undefined_flag=unsupported
11543 # Tell ltmain to make .lib files, not .a files.
11544 libext=lib
11545 # Tell ltmain to make .dll files, not .so files.
11546 shrext_cmds=".dll"
11547 # FIXME: Setting linknames here is a bad hack.
11548 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11549 # The linker will automatically build a .lib file if we build a DLL.
11550 old_archive_from_new_cmds='true'
11551 # FIXME: Should let the user specify the lib program.
11552 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11553 fix_srcfile_path='`cygpath -w "$srcfile"`'
11554 enable_shared_with_static_runtimes=yes
11557 darwin* | rhapsody*)
11560 archive_cmds_need_lc=no
11561 hardcode_direct=no
11562 hardcode_automatic=yes
11563 hardcode_shlibpath_var=unsupported
11564 if test "$lt_cv_ld_force_load" = "yes"; then
11565 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\"`'
11566 else
11567 whole_archive_flag_spec=''
11569 link_all_deplibs=yes
11570 allow_undefined_flag="$_lt_dar_allow_undefined"
11571 case $cc_basename in
11572 ifort*) _lt_dar_can_shared=yes ;;
11573 *) _lt_dar_can_shared=$GCC ;;
11574 esac
11575 if test "$_lt_dar_can_shared" = "yes"; then
11576 output_verbose_link_cmd=func_echo_all
11577 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11578 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11579 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}"
11580 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}"
11582 else
11583 ld_shlibs=no
11588 dgux*)
11589 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11590 hardcode_libdir_flag_spec='-L$libdir'
11591 hardcode_shlibpath_var=no
11594 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11595 # support. Future versions do this automatically, but an explicit c++rt0.o
11596 # does not break anything, and helps significantly (at the cost of a little
11597 # extra space).
11598 freebsd2.2*)
11599 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11600 hardcode_libdir_flag_spec='-R$libdir'
11601 hardcode_direct=yes
11602 hardcode_shlibpath_var=no
11605 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11606 freebsd2.*)
11607 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11608 hardcode_direct=yes
11609 hardcode_minus_L=yes
11610 hardcode_shlibpath_var=no
11613 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11614 freebsd* | dragonfly*)
11615 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11616 hardcode_libdir_flag_spec='-R$libdir'
11617 hardcode_direct=yes
11618 hardcode_shlibpath_var=no
11621 hpux9*)
11622 if test "$GCC" = yes; then
11623 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'
11624 else
11625 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'
11627 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11628 hardcode_libdir_separator=:
11629 hardcode_direct=yes
11631 # hardcode_minus_L: Not really in the search PATH,
11632 # but as the default location of the library.
11633 hardcode_minus_L=yes
11634 export_dynamic_flag_spec='${wl}-E'
11637 hpux10*)
11638 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11639 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11640 else
11641 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11643 if test "$with_gnu_ld" = no; then
11644 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11645 hardcode_libdir_flag_spec_ld='+b $libdir'
11646 hardcode_libdir_separator=:
11647 hardcode_direct=yes
11648 hardcode_direct_absolute=yes
11649 export_dynamic_flag_spec='${wl}-E'
11650 # hardcode_minus_L: Not really in the search PATH,
11651 # but as the default location of the library.
11652 hardcode_minus_L=yes
11656 hpux11*)
11657 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11658 case $host_cpu in
11659 hppa*64*)
11660 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11662 ia64*)
11663 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11666 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11668 esac
11669 else
11670 case $host_cpu in
11671 hppa*64*)
11672 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11674 ia64*)
11675 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11679 # Older versions of the 11.00 compiler do not understand -b yet
11680 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11682 $as_echo_n "checking if $CC understands -b... " >&6; }
11683 if test "${lt_cv_prog_compiler__b+set}" = set; then :
11684 $as_echo_n "(cached) " >&6
11685 else
11686 lt_cv_prog_compiler__b=no
11687 save_LDFLAGS="$LDFLAGS"
11688 LDFLAGS="$LDFLAGS -b"
11689 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11690 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11691 # The linker can only warn and ignore the option if not recognized
11692 # So say no if there are warnings
11693 if test -s conftest.err; then
11694 # Append any errors to the config.log.
11695 cat conftest.err 1>&5
11696 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11697 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11698 if diff conftest.exp conftest.er2 >/dev/null; then
11699 lt_cv_prog_compiler__b=yes
11701 else
11702 lt_cv_prog_compiler__b=yes
11705 $RM -r conftest*
11706 LDFLAGS="$save_LDFLAGS"
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11710 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11712 if test x"$lt_cv_prog_compiler__b" = xyes; then
11713 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11714 else
11715 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11719 esac
11721 if test "$with_gnu_ld" = no; then
11722 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11723 hardcode_libdir_separator=:
11725 case $host_cpu in
11726 hppa*64*|ia64*)
11727 hardcode_direct=no
11728 hardcode_shlibpath_var=no
11731 hardcode_direct=yes
11732 hardcode_direct_absolute=yes
11733 export_dynamic_flag_spec='${wl}-E'
11735 # hardcode_minus_L: Not really in the search PATH,
11736 # but as the default location of the library.
11737 hardcode_minus_L=yes
11739 esac
11743 irix5* | irix6* | nonstopux*)
11744 if test "$GCC" = yes; then
11745 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'
11746 # Try to use the -exported_symbol ld option, if it does not
11747 # work, assume that -exports_file does not work either and
11748 # implicitly export all symbols.
11749 save_LDFLAGS="$LDFLAGS"
11750 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11751 if test x$gcc_no_link = xyes; then
11752 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11755 /* end confdefs.h. */
11756 int foo(void) {}
11757 _ACEOF
11758 if ac_fn_c_try_link "$LINENO"; then :
11759 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'
11762 rm -f core conftest.err conftest.$ac_objext \
11763 conftest$ac_exeext conftest.$ac_ext
11764 LDFLAGS="$save_LDFLAGS"
11765 else
11766 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'
11767 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'
11769 archive_cmds_need_lc='no'
11770 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11771 hardcode_libdir_separator=:
11772 inherit_rpath=yes
11773 link_all_deplibs=yes
11776 netbsd*)
11777 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11778 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11779 else
11780 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11782 hardcode_libdir_flag_spec='-R$libdir'
11783 hardcode_direct=yes
11784 hardcode_shlibpath_var=no
11787 newsos6)
11788 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11789 hardcode_direct=yes
11790 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11791 hardcode_libdir_separator=:
11792 hardcode_shlibpath_var=no
11795 *nto* | *qnx*)
11798 openbsd*)
11799 if test -f /usr/libexec/ld.so; then
11800 hardcode_direct=yes
11801 hardcode_shlibpath_var=no
11802 hardcode_direct_absolute=yes
11803 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11804 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11805 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11806 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11807 export_dynamic_flag_spec='${wl}-E'
11808 else
11809 case $host_os in
11810 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11811 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11812 hardcode_libdir_flag_spec='-R$libdir'
11815 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11816 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11818 esac
11820 else
11821 ld_shlibs=no
11825 os2*)
11826 hardcode_libdir_flag_spec='-L$libdir'
11827 hardcode_minus_L=yes
11828 allow_undefined_flag=unsupported
11829 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'
11830 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11833 osf3*)
11834 if test "$GCC" = yes; then
11835 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11836 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'
11837 else
11838 allow_undefined_flag=' -expect_unresolved \*'
11839 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'
11841 archive_cmds_need_lc='no'
11842 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11843 hardcode_libdir_separator=:
11846 osf4* | osf5*) # as osf3* with the addition of -msym flag
11847 if test "$GCC" = yes; then
11848 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11849 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'
11850 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11851 else
11852 allow_undefined_flag=' -expect_unresolved \*'
11853 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'
11854 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~
11855 $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'
11857 # Both c and cxx compiler support -rpath directly
11858 hardcode_libdir_flag_spec='-rpath $libdir'
11860 archive_cmds_need_lc='no'
11861 hardcode_libdir_separator=:
11864 solaris*)
11865 no_undefined_flag=' -z defs'
11866 if test "$GCC" = yes; then
11867 wlarc='${wl}'
11868 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11869 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11870 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11871 else
11872 case `$CC -V 2>&1` in
11873 *"Compilers 5.0"*)
11874 wlarc=''
11875 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11876 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11877 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11880 wlarc='${wl}'
11881 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11882 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11883 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11885 esac
11887 hardcode_libdir_flag_spec='-R$libdir'
11888 hardcode_shlibpath_var=no
11889 case $host_os in
11890 solaris2.[0-5] | solaris2.[0-5].*) ;;
11892 # The compiler driver will combine and reorder linker options,
11893 # but understands `-z linker_flag'. GCC discards it without `$wl',
11894 # but is careful enough not to reorder.
11895 # Supported since Solaris 2.6 (maybe 2.5.1?)
11896 if test "$GCC" = yes; then
11897 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11898 else
11899 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11902 esac
11903 link_all_deplibs=yes
11906 sunos4*)
11907 if test "x$host_vendor" = xsequent; then
11908 # Use $CC to link under sequent, because it throws in some extra .o
11909 # files that make .init and .fini sections work.
11910 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11911 else
11912 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11914 hardcode_libdir_flag_spec='-L$libdir'
11915 hardcode_direct=yes
11916 hardcode_minus_L=yes
11917 hardcode_shlibpath_var=no
11920 sysv4)
11921 case $host_vendor in
11922 sni)
11923 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11924 hardcode_direct=yes # is this really true???
11926 siemens)
11927 ## LD is ld it makes a PLAMLIB
11928 ## CC just makes a GrossModule.
11929 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11930 reload_cmds='$CC -r -o $output$reload_objs'
11931 hardcode_direct=no
11933 motorola)
11934 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11935 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11937 esac
11938 runpath_var='LD_RUN_PATH'
11939 hardcode_shlibpath_var=no
11942 sysv4.3*)
11943 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11944 hardcode_shlibpath_var=no
11945 export_dynamic_flag_spec='-Bexport'
11948 sysv4*MP*)
11949 if test -d /usr/nec; then
11950 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11951 hardcode_shlibpath_var=no
11952 runpath_var=LD_RUN_PATH
11953 hardcode_runpath_var=yes
11954 ld_shlibs=yes
11958 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11959 no_undefined_flag='${wl}-z,text'
11960 archive_cmds_need_lc=no
11961 hardcode_shlibpath_var=no
11962 runpath_var='LD_RUN_PATH'
11964 if test "$GCC" = yes; then
11965 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11966 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11967 else
11968 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11969 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11973 sysv5* | sco3.2v5* | sco5v6*)
11974 # Note: We can NOT use -z defs as we might desire, because we do not
11975 # link with -lc, and that would cause any symbols used from libc to
11976 # always be unresolved, which means just about no library would
11977 # ever link correctly. If we're not using GNU ld we use -z text
11978 # though, which does catch some bad symbols but isn't as heavy-handed
11979 # as -z defs.
11980 no_undefined_flag='${wl}-z,text'
11981 allow_undefined_flag='${wl}-z,nodefs'
11982 archive_cmds_need_lc=no
11983 hardcode_shlibpath_var=no
11984 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11985 hardcode_libdir_separator=':'
11986 link_all_deplibs=yes
11987 export_dynamic_flag_spec='${wl}-Bexport'
11988 runpath_var='LD_RUN_PATH'
11990 if test "$GCC" = yes; then
11991 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11992 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11993 else
11994 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11995 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11999 uts4*)
12000 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12001 hardcode_libdir_flag_spec='-L$libdir'
12002 hardcode_shlibpath_var=no
12006 ld_shlibs=no
12008 esac
12010 if test x$host_vendor = xsni; then
12011 case $host in
12012 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12013 export_dynamic_flag_spec='${wl}-Blargedynsym'
12015 esac
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12020 $as_echo "$ld_shlibs" >&6; }
12021 test "$ld_shlibs" = no && can_build_shared=no
12023 with_gnu_ld=$with_gnu_ld
12040 # Do we need to explicitly link libc?
12042 case "x$archive_cmds_need_lc" in
12043 x|xyes)
12044 # Assume -lc should be added
12045 archive_cmds_need_lc=yes
12047 if test "$enable_shared" = yes && test "$GCC" = yes; then
12048 case $archive_cmds in
12049 *'~'*)
12050 # FIXME: we may have to deal with multi-command sequences.
12052 '$CC '*)
12053 # Test whether the compiler implicitly links with -lc since on some
12054 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12055 # to ld, don't add -lc before -lgcc.
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12057 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12058 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
12059 $as_echo_n "(cached) " >&6
12060 else
12061 $RM conftest*
12062 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12064 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12065 (eval $ac_compile) 2>&5
12066 ac_status=$?
12067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12068 test $ac_status = 0; } 2>conftest.err; then
12069 soname=conftest
12070 lib=conftest
12071 libobjs=conftest.$ac_objext
12072 deplibs=
12073 wl=$lt_prog_compiler_wl
12074 pic_flag=$lt_prog_compiler_pic
12075 compiler_flags=-v
12076 linker_flags=-v
12077 verstring=
12078 output_objdir=.
12079 libname=conftest
12080 lt_save_allow_undefined_flag=$allow_undefined_flag
12081 allow_undefined_flag=
12082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12083 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12084 ac_status=$?
12085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12086 test $ac_status = 0; }
12087 then
12088 lt_cv_archive_cmds_need_lc=no
12089 else
12090 lt_cv_archive_cmds_need_lc=yes
12092 allow_undefined_flag=$lt_save_allow_undefined_flag
12093 else
12094 cat conftest.err 1>&5
12096 $RM conftest*
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12100 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12101 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12103 esac
12106 esac
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12265 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12267 if test "$GCC" = yes; then
12268 case $host_os in
12269 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12270 *) lt_awk_arg="/^libraries:/" ;;
12271 esac
12272 case $host_os in
12273 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12274 *) lt_sed_strip_eq="s,=/,/,g" ;;
12275 esac
12276 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12277 case $lt_search_path_spec in
12278 *\;*)
12279 # if the path contains ";" then we assume it to be the separator
12280 # otherwise default to the standard path separator (i.e. ":") - it is
12281 # assumed that no part of a normal pathname contains ";" but that should
12282 # okay in the real world where ";" in dirpaths is itself problematic.
12283 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12286 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12288 esac
12289 # Ok, now we have the path, separated by spaces, we can step through it
12290 # and add multilib dir if necessary.
12291 lt_tmp_lt_search_path_spec=
12292 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12293 for lt_sys_path in $lt_search_path_spec; do
12294 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12295 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12296 else
12297 test -d "$lt_sys_path" && \
12298 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12300 done
12301 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12302 BEGIN {RS=" "; FS="/|\n";} {
12303 lt_foo="";
12304 lt_count=0;
12305 for (lt_i = NF; lt_i > 0; lt_i--) {
12306 if ($lt_i != "" && $lt_i != ".") {
12307 if ($lt_i == "..") {
12308 lt_count++;
12309 } else {
12310 if (lt_count == 0) {
12311 lt_foo="/" $lt_i lt_foo;
12312 } else {
12313 lt_count--;
12318 if (lt_foo != "") { lt_freq[lt_foo]++; }
12319 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12321 # AWK program above erroneously prepends '/' to C:/dos/paths
12322 # for these hosts.
12323 case $host_os in
12324 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12325 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12326 esac
12327 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12328 else
12329 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12331 library_names_spec=
12332 libname_spec='lib$name'
12333 soname_spec=
12334 shrext_cmds=".so"
12335 postinstall_cmds=
12336 postuninstall_cmds=
12337 finish_cmds=
12338 finish_eval=
12339 shlibpath_var=
12340 shlibpath_overrides_runpath=unknown
12341 version_type=none
12342 dynamic_linker="$host_os ld.so"
12343 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12344 need_lib_prefix=unknown
12345 hardcode_into_libs=no
12347 # when you set need_version to no, make sure it does not cause -set_version
12348 # flags to be left without arguments
12349 need_version=unknown
12351 case $host_os in
12352 aix3*)
12353 version_type=linux
12354 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12355 shlibpath_var=LIBPATH
12357 # AIX 3 has no versioning support, so we append a major version to the name.
12358 soname_spec='${libname}${release}${shared_ext}$major'
12361 aix[4-9]*)
12362 version_type=linux
12363 need_lib_prefix=no
12364 need_version=no
12365 hardcode_into_libs=yes
12366 if test "$host_cpu" = ia64; then
12367 # AIX 5 supports IA64
12368 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12369 shlibpath_var=LD_LIBRARY_PATH
12370 else
12371 # With GCC up to 2.95.x, collect2 would create an import file
12372 # for dependence libraries. The import file would start with
12373 # the line `#! .'. This would cause the generated library to
12374 # depend on `.', always an invalid library. This was fixed in
12375 # development snapshots of GCC prior to 3.0.
12376 case $host_os in
12377 aix4 | aix4.[01] | aix4.[01].*)
12378 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12379 echo ' yes '
12380 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12382 else
12383 can_build_shared=no
12386 esac
12387 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12388 # soname into executable. Probably we can add versioning support to
12389 # collect2, so additional links can be useful in future.
12390 if test "$aix_use_runtimelinking" = yes; then
12391 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12392 # instead of lib<name>.a to let people know that these are not
12393 # typical AIX shared libraries.
12394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12395 else
12396 # We preserve .a as extension for shared libraries through AIX4.2
12397 # and later when we are not doing run time linking.
12398 library_names_spec='${libname}${release}.a $libname.a'
12399 soname_spec='${libname}${release}${shared_ext}$major'
12401 shlibpath_var=LIBPATH
12405 amigaos*)
12406 case $host_cpu in
12407 powerpc)
12408 # Since July 2007 AmigaOS4 officially supports .so libraries.
12409 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12412 m68k)
12413 library_names_spec='$libname.ixlibrary $libname.a'
12414 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12415 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'
12417 esac
12420 beos*)
12421 library_names_spec='${libname}${shared_ext}'
12422 dynamic_linker="$host_os ld.so"
12423 shlibpath_var=LIBRARY_PATH
12426 bsdi[45]*)
12427 version_type=linux
12428 need_version=no
12429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12430 soname_spec='${libname}${release}${shared_ext}$major'
12431 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12432 shlibpath_var=LD_LIBRARY_PATH
12433 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12434 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12435 # the default ld.so.conf also contains /usr/contrib/lib and
12436 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12437 # libtool to hard-code these into programs
12440 cygwin* | mingw* | pw32* | cegcc*)
12441 version_type=windows
12442 shrext_cmds=".dll"
12443 need_version=no
12444 need_lib_prefix=no
12446 case $GCC,$host_os in
12447 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12448 library_names_spec='$libname.dll.a'
12449 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12450 postinstall_cmds='base_file=`basename \${file}`~
12451 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12452 dldir=$destdir/`dirname \$dlpath`~
12453 test -d \$dldir || mkdir -p \$dldir~
12454 $install_prog $dir/$dlname \$dldir/$dlname~
12455 chmod a+x \$dldir/$dlname~
12456 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12457 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12459 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12460 dlpath=$dir/\$dldll~
12461 $RM \$dlpath'
12462 shlibpath_overrides_runpath=yes
12464 case $host_os in
12465 cygwin*)
12466 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12467 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12469 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12471 mingw* | cegcc*)
12472 # MinGW DLLs use traditional 'lib' prefix
12473 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12475 pw32*)
12476 # pw32 DLLs use 'pw' prefix rather than 'lib'
12477 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12479 esac
12483 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12485 esac
12486 dynamic_linker='Win32 ld.exe'
12487 # FIXME: first we should search . and the directory the executable is in
12488 shlibpath_var=PATH
12491 darwin* | rhapsody*)
12492 dynamic_linker="$host_os dyld"
12493 version_type=darwin
12494 need_lib_prefix=no
12495 need_version=no
12496 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12497 soname_spec='${libname}${release}${major}$shared_ext'
12498 shlibpath_overrides_runpath=yes
12499 shlibpath_var=DYLD_LIBRARY_PATH
12500 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12502 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12503 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12506 dgux*)
12507 version_type=linux
12508 need_lib_prefix=no
12509 need_version=no
12510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12511 soname_spec='${libname}${release}${shared_ext}$major'
12512 shlibpath_var=LD_LIBRARY_PATH
12515 freebsd* | dragonfly*)
12516 # DragonFly does not have aout. When/if they implement a new
12517 # versioning mechanism, adjust this.
12518 if test -x /usr/bin/objformat; then
12519 objformat=`/usr/bin/objformat`
12520 else
12521 case $host_os in
12522 freebsd[23].*) objformat=aout ;;
12523 *) objformat=elf ;;
12524 esac
12526 version_type=freebsd-$objformat
12527 case $version_type in
12528 freebsd-elf*)
12529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12530 need_version=no
12531 need_lib_prefix=no
12533 freebsd-*)
12534 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12535 need_version=yes
12537 esac
12538 shlibpath_var=LD_LIBRARY_PATH
12539 case $host_os in
12540 freebsd2.*)
12541 shlibpath_overrides_runpath=yes
12543 freebsd3.[01]* | freebsdelf3.[01]*)
12544 shlibpath_overrides_runpath=yes
12545 hardcode_into_libs=yes
12547 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12548 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12549 shlibpath_overrides_runpath=no
12550 hardcode_into_libs=yes
12552 *) # from 4.6 on, and DragonFly
12553 shlibpath_overrides_runpath=yes
12554 hardcode_into_libs=yes
12556 esac
12559 gnu*)
12560 version_type=linux
12561 need_lib_prefix=no
12562 need_version=no
12563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12564 soname_spec='${libname}${release}${shared_ext}$major'
12565 shlibpath_var=LD_LIBRARY_PATH
12566 hardcode_into_libs=yes
12569 haiku*)
12570 version_type=linux
12571 need_lib_prefix=no
12572 need_version=no
12573 dynamic_linker="$host_os runtime_loader"
12574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12575 soname_spec='${libname}${release}${shared_ext}$major'
12576 shlibpath_var=LIBRARY_PATH
12577 shlibpath_overrides_runpath=yes
12578 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
12579 hardcode_into_libs=yes
12582 hpux9* | hpux10* | hpux11*)
12583 # Give a soname corresponding to the major version so that dld.sl refuses to
12584 # link against other versions.
12585 version_type=sunos
12586 need_lib_prefix=no
12587 need_version=no
12588 case $host_cpu in
12589 ia64*)
12590 shrext_cmds='.so'
12591 hardcode_into_libs=yes
12592 dynamic_linker="$host_os dld.so"
12593 shlibpath_var=LD_LIBRARY_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 if test "X$HPUX_IA64_MODE" = X32; then
12598 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12599 else
12600 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12602 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12604 hppa*64*)
12605 shrext_cmds='.sl'
12606 hardcode_into_libs=yes
12607 dynamic_linker="$host_os dld.sl"
12608 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12609 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12611 soname_spec='${libname}${release}${shared_ext}$major'
12612 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12613 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12616 shrext_cmds='.sl'
12617 dynamic_linker="$host_os dld.sl"
12618 shlibpath_var=SHLIB_PATH
12619 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12621 soname_spec='${libname}${release}${shared_ext}$major'
12623 esac
12624 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12625 postinstall_cmds='chmod 555 $lib'
12626 # or fails outright, so override atomically:
12627 install_override_mode=555
12630 interix[3-9]*)
12631 version_type=linux
12632 need_lib_prefix=no
12633 need_version=no
12634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12635 soname_spec='${libname}${release}${shared_ext}$major'
12636 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12637 shlibpath_var=LD_LIBRARY_PATH
12638 shlibpath_overrides_runpath=no
12639 hardcode_into_libs=yes
12642 irix5* | irix6* | nonstopux*)
12643 case $host_os in
12644 nonstopux*) version_type=nonstopux ;;
12646 if test "$lt_cv_prog_gnu_ld" = yes; then
12647 version_type=linux
12648 else
12649 version_type=irix
12650 fi ;;
12651 esac
12652 need_lib_prefix=no
12653 need_version=no
12654 soname_spec='${libname}${release}${shared_ext}$major'
12655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12656 case $host_os in
12657 irix5* | nonstopux*)
12658 libsuff= shlibsuff=
12661 case $LD in # libtool.m4 will add one of these switches to LD
12662 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12663 libsuff= shlibsuff= libmagic=32-bit;;
12664 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12665 libsuff=32 shlibsuff=N32 libmagic=N32;;
12666 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12667 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12668 *) libsuff= shlibsuff= libmagic=never-match;;
12669 esac
12671 esac
12672 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12673 shlibpath_overrides_runpath=no
12674 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12675 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12676 hardcode_into_libs=yes
12679 # No shared lib support for Linux oldld, aout, or coff.
12680 linux*oldld* | linux*aout* | linux*coff*)
12681 dynamic_linker=no
12684 # This must be Linux ELF.
12685 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12686 version_type=linux
12687 need_lib_prefix=no
12688 need_version=no
12689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12690 soname_spec='${libname}${release}${shared_ext}$major'
12691 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12692 shlibpath_var=LD_LIBRARY_PATH
12693 shlibpath_overrides_runpath=no
12695 # Some binutils ld are patched to set DT_RUNPATH
12696 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
12697 $as_echo_n "(cached) " >&6
12698 else
12699 lt_cv_shlibpath_overrides_runpath=no
12700 save_LDFLAGS=$LDFLAGS
12701 save_libdir=$libdir
12702 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12703 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12704 if test x$gcc_no_link = xyes; then
12705 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12708 /* end confdefs.h. */
12711 main ()
12715 return 0;
12717 _ACEOF
12718 if ac_fn_c_try_link "$LINENO"; then :
12719 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12720 lt_cv_shlibpath_overrides_runpath=yes
12723 rm -f core conftest.err conftest.$ac_objext \
12724 conftest$ac_exeext conftest.$ac_ext
12725 LDFLAGS=$save_LDFLAGS
12726 libdir=$save_libdir
12730 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12732 # This implies no fast_install, which is unacceptable.
12733 # Some rework will be needed to allow for fast_install
12734 # before this can be enabled.
12735 hardcode_into_libs=yes
12737 # Append ld.so.conf contents to the search path
12738 if test -f /etc/ld.so.conf; then
12739 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' ' '`
12740 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12743 # We used to test for /lib/ld.so.1 and disable shared libraries on
12744 # powerpc, because MkLinux only supported shared libraries with the
12745 # GNU dynamic linker. Since this was broken with cross compilers,
12746 # most powerpc-linux boxes support dynamic linking these days and
12747 # people can always --disable-shared, the test was removed, and we
12748 # assume the GNU/Linux dynamic linker is in use.
12749 dynamic_linker='GNU/Linux ld.so'
12752 netbsd*)
12753 version_type=sunos
12754 need_lib_prefix=no
12755 need_version=no
12756 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12758 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12759 dynamic_linker='NetBSD (a.out) ld.so'
12760 else
12761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12762 soname_spec='${libname}${release}${shared_ext}$major'
12763 dynamic_linker='NetBSD ld.elf_so'
12765 shlibpath_var=LD_LIBRARY_PATH
12766 shlibpath_overrides_runpath=yes
12767 hardcode_into_libs=yes
12770 newsos6)
12771 version_type=linux
12772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12773 shlibpath_var=LD_LIBRARY_PATH
12774 shlibpath_overrides_runpath=yes
12777 *nto* | *qnx*)
12778 version_type=qnx
12779 need_lib_prefix=no
12780 need_version=no
12781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12782 soname_spec='${libname}${release}${shared_ext}$major'
12783 shlibpath_var=LD_LIBRARY_PATH
12784 shlibpath_overrides_runpath=no
12785 hardcode_into_libs=yes
12786 dynamic_linker='ldqnx.so'
12789 openbsd*)
12790 version_type=sunos
12791 sys_lib_dlsearch_path_spec="/usr/lib"
12792 need_lib_prefix=no
12793 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12794 case $host_os in
12795 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12796 *) need_version=no ;;
12797 esac
12798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12799 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12800 shlibpath_var=LD_LIBRARY_PATH
12801 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12802 case $host_os in
12803 openbsd2.[89] | openbsd2.[89].*)
12804 shlibpath_overrides_runpath=no
12807 shlibpath_overrides_runpath=yes
12809 esac
12810 else
12811 shlibpath_overrides_runpath=yes
12815 os2*)
12816 libname_spec='$name'
12817 shrext_cmds=".dll"
12818 need_lib_prefix=no
12819 library_names_spec='$libname${shared_ext} $libname.a'
12820 dynamic_linker='OS/2 ld.exe'
12821 shlibpath_var=LIBPATH
12824 osf3* | osf4* | osf5*)
12825 version_type=osf
12826 need_lib_prefix=no
12827 need_version=no
12828 soname_spec='${libname}${release}${shared_ext}$major'
12829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12830 shlibpath_var=LD_LIBRARY_PATH
12831 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12832 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12835 rdos*)
12836 dynamic_linker=no
12839 solaris*)
12840 version_type=linux
12841 need_lib_prefix=no
12842 need_version=no
12843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12844 soname_spec='${libname}${release}${shared_ext}$major'
12845 shlibpath_var=LD_LIBRARY_PATH
12846 shlibpath_overrides_runpath=yes
12847 hardcode_into_libs=yes
12848 # ldd complains unless libraries are executable
12849 postinstall_cmds='chmod +x $lib'
12852 sunos4*)
12853 version_type=sunos
12854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12855 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12856 shlibpath_var=LD_LIBRARY_PATH
12857 shlibpath_overrides_runpath=yes
12858 if test "$with_gnu_ld" = yes; then
12859 need_lib_prefix=no
12861 need_version=yes
12864 sysv4 | sysv4.3*)
12865 version_type=linux
12866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12867 soname_spec='${libname}${release}${shared_ext}$major'
12868 shlibpath_var=LD_LIBRARY_PATH
12869 case $host_vendor in
12870 sni)
12871 shlibpath_overrides_runpath=no
12872 need_lib_prefix=no
12873 runpath_var=LD_RUN_PATH
12875 siemens)
12876 need_lib_prefix=no
12878 motorola)
12879 need_lib_prefix=no
12880 need_version=no
12881 shlibpath_overrides_runpath=no
12882 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12884 esac
12887 sysv4*MP*)
12888 if test -d /usr/nec ;then
12889 version_type=linux
12890 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12891 soname_spec='$libname${shared_ext}.$major'
12892 shlibpath_var=LD_LIBRARY_PATH
12896 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12897 version_type=freebsd-elf
12898 need_lib_prefix=no
12899 need_version=no
12900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12901 soname_spec='${libname}${release}${shared_ext}$major'
12902 shlibpath_var=LD_LIBRARY_PATH
12903 shlibpath_overrides_runpath=yes
12904 hardcode_into_libs=yes
12905 if test "$with_gnu_ld" = yes; then
12906 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12907 else
12908 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12909 case $host_os in
12910 sco3.2v5*)
12911 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12913 esac
12915 sys_lib_dlsearch_path_spec='/usr/lib'
12918 tpf*)
12919 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12920 version_type=linux
12921 need_lib_prefix=no
12922 need_version=no
12923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12924 shlibpath_var=LD_LIBRARY_PATH
12925 shlibpath_overrides_runpath=no
12926 hardcode_into_libs=yes
12929 uts4*)
12930 version_type=linux
12931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12932 soname_spec='${libname}${release}${shared_ext}$major'
12933 shlibpath_var=LD_LIBRARY_PATH
12937 dynamic_linker=no
12939 esac
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12941 $as_echo "$dynamic_linker" >&6; }
12942 test "$dynamic_linker" = no && can_build_shared=no
12944 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12945 if test "$GCC" = yes; then
12946 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12949 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12950 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12952 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12953 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13048 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13049 hardcode_action=
13050 if test -n "$hardcode_libdir_flag_spec" ||
13051 test -n "$runpath_var" ||
13052 test "X$hardcode_automatic" = "Xyes" ; then
13054 # We can hardcode non-existent directories.
13055 if test "$hardcode_direct" != no &&
13056 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13057 # have to relink, otherwise we might link with an installed library
13058 # when we should be linking with a yet-to-be-installed one
13059 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13060 test "$hardcode_minus_L" != no; then
13061 # Linking always hardcodes the temporary library directory.
13062 hardcode_action=relink
13063 else
13064 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13065 hardcode_action=immediate
13067 else
13068 # We cannot hardcode anything, or else we can only hardcode existing
13069 # directories.
13070 hardcode_action=unsupported
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13073 $as_echo "$hardcode_action" >&6; }
13075 if test "$hardcode_action" = relink ||
13076 test "$inherit_rpath" = yes; then
13077 # Fast installation is not supported
13078 enable_fast_install=no
13079 elif test "$shlibpath_overrides_runpath" = yes ||
13080 test "$enable_shared" = no; then
13081 # Fast installation is not necessary
13082 enable_fast_install=needless
13090 if test "x$enable_dlopen" != xyes; then
13091 enable_dlopen=unknown
13092 enable_dlopen_self=unknown
13093 enable_dlopen_self_static=unknown
13094 else
13095 lt_cv_dlopen=no
13096 lt_cv_dlopen_libs=
13098 case $host_os in
13099 beos*)
13100 lt_cv_dlopen="load_add_on"
13101 lt_cv_dlopen_libs=
13102 lt_cv_dlopen_self=yes
13105 mingw* | pw32* | cegcc*)
13106 lt_cv_dlopen="LoadLibrary"
13107 lt_cv_dlopen_libs=
13110 cygwin*)
13111 lt_cv_dlopen="dlopen"
13112 lt_cv_dlopen_libs=
13115 darwin*)
13116 # if libdl is installed we need to link against it
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13118 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13119 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13120 $as_echo_n "(cached) " >&6
13121 else
13122 ac_check_lib_save_LIBS=$LIBS
13123 LIBS="-ldl $LIBS"
13124 if test x$gcc_no_link = xyes; then
13125 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13128 /* end confdefs.h. */
13130 /* Override any GCC internal prototype to avoid an error.
13131 Use char because int might match the return type of a GCC
13132 builtin and then its argument prototype would still apply. */
13133 #ifdef __cplusplus
13134 extern "C"
13135 #endif
13136 char dlopen ();
13138 main ()
13140 return dlopen ();
13142 return 0;
13144 _ACEOF
13145 if ac_fn_c_try_link "$LINENO"; then :
13146 ac_cv_lib_dl_dlopen=yes
13147 else
13148 ac_cv_lib_dl_dlopen=no
13150 rm -f core conftest.err conftest.$ac_objext \
13151 conftest$ac_exeext conftest.$ac_ext
13152 LIBS=$ac_check_lib_save_LIBS
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13155 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13156 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13157 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13158 else
13160 lt_cv_dlopen="dyld"
13161 lt_cv_dlopen_libs=
13162 lt_cv_dlopen_self=yes
13169 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13170 if test "x$ac_cv_func_shl_load" = x""yes; then :
13171 lt_cv_dlopen="shl_load"
13172 else
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13174 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13175 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13176 $as_echo_n "(cached) " >&6
13177 else
13178 ac_check_lib_save_LIBS=$LIBS
13179 LIBS="-ldld $LIBS"
13180 if test x$gcc_no_link = xyes; then
13181 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13184 /* end confdefs.h. */
13186 /* Override any GCC internal prototype to avoid an error.
13187 Use char because int might match the return type of a GCC
13188 builtin and then its argument prototype would still apply. */
13189 #ifdef __cplusplus
13190 extern "C"
13191 #endif
13192 char shl_load ();
13194 main ()
13196 return shl_load ();
13198 return 0;
13200 _ACEOF
13201 if ac_fn_c_try_link "$LINENO"; then :
13202 ac_cv_lib_dld_shl_load=yes
13203 else
13204 ac_cv_lib_dld_shl_load=no
13206 rm -f core conftest.err conftest.$ac_objext \
13207 conftest$ac_exeext conftest.$ac_ext
13208 LIBS=$ac_check_lib_save_LIBS
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13211 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13212 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13213 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13214 else
13215 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13216 if test "x$ac_cv_func_dlopen" = x""yes; then :
13217 lt_cv_dlopen="dlopen"
13218 else
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13220 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13221 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13222 $as_echo_n "(cached) " >&6
13223 else
13224 ac_check_lib_save_LIBS=$LIBS
13225 LIBS="-ldl $LIBS"
13226 if test x$gcc_no_link = xyes; then
13227 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13230 /* end confdefs.h. */
13232 /* Override any GCC internal prototype to avoid an error.
13233 Use char because int might match the return type of a GCC
13234 builtin and then its argument prototype would still apply. */
13235 #ifdef __cplusplus
13236 extern "C"
13237 #endif
13238 char dlopen ();
13240 main ()
13242 return dlopen ();
13244 return 0;
13246 _ACEOF
13247 if ac_fn_c_try_link "$LINENO"; then :
13248 ac_cv_lib_dl_dlopen=yes
13249 else
13250 ac_cv_lib_dl_dlopen=no
13252 rm -f core conftest.err conftest.$ac_objext \
13253 conftest$ac_exeext conftest.$ac_ext
13254 LIBS=$ac_check_lib_save_LIBS
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13257 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13258 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13259 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13260 else
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13262 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13263 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13264 $as_echo_n "(cached) " >&6
13265 else
13266 ac_check_lib_save_LIBS=$LIBS
13267 LIBS="-lsvld $LIBS"
13268 if test x$gcc_no_link = xyes; then
13269 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13272 /* end confdefs.h. */
13274 /* Override any GCC internal prototype to avoid an error.
13275 Use char because int might match the return type of a GCC
13276 builtin and then its argument prototype would still apply. */
13277 #ifdef __cplusplus
13278 extern "C"
13279 #endif
13280 char dlopen ();
13282 main ()
13284 return dlopen ();
13286 return 0;
13288 _ACEOF
13289 if ac_fn_c_try_link "$LINENO"; then :
13290 ac_cv_lib_svld_dlopen=yes
13291 else
13292 ac_cv_lib_svld_dlopen=no
13294 rm -f core conftest.err conftest.$ac_objext \
13295 conftest$ac_exeext conftest.$ac_ext
13296 LIBS=$ac_check_lib_save_LIBS
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13299 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13300 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13301 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13302 else
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13304 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13305 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13306 $as_echo_n "(cached) " >&6
13307 else
13308 ac_check_lib_save_LIBS=$LIBS
13309 LIBS="-ldld $LIBS"
13310 if test x$gcc_no_link = xyes; then
13311 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13314 /* end confdefs.h. */
13316 /* Override any GCC internal prototype to avoid an error.
13317 Use char because int might match the return type of a GCC
13318 builtin and then its argument prototype would still apply. */
13319 #ifdef __cplusplus
13320 extern "C"
13321 #endif
13322 char dld_link ();
13324 main ()
13326 return dld_link ();
13328 return 0;
13330 _ACEOF
13331 if ac_fn_c_try_link "$LINENO"; then :
13332 ac_cv_lib_dld_dld_link=yes
13333 else
13334 ac_cv_lib_dld_dld_link=no
13336 rm -f core conftest.err conftest.$ac_objext \
13337 conftest$ac_exeext conftest.$ac_ext
13338 LIBS=$ac_check_lib_save_LIBS
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13341 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13342 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13343 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13362 esac
13364 if test "x$lt_cv_dlopen" != xno; then
13365 enable_dlopen=yes
13366 else
13367 enable_dlopen=no
13370 case $lt_cv_dlopen in
13371 dlopen)
13372 save_CPPFLAGS="$CPPFLAGS"
13373 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13375 save_LDFLAGS="$LDFLAGS"
13376 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13378 save_LIBS="$LIBS"
13379 LIBS="$lt_cv_dlopen_libs $LIBS"
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13382 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13383 if test "${lt_cv_dlopen_self+set}" = set; then :
13384 $as_echo_n "(cached) " >&6
13385 else
13386 if test "$cross_compiling" = yes; then :
13387 lt_cv_dlopen_self=cross
13388 else
13389 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13390 lt_status=$lt_dlunknown
13391 cat > conftest.$ac_ext <<_LT_EOF
13392 #line 13392 "configure"
13393 #include "confdefs.h"
13395 #if HAVE_DLFCN_H
13396 #include <dlfcn.h>
13397 #endif
13399 #include <stdio.h>
13401 #ifdef RTLD_GLOBAL
13402 # define LT_DLGLOBAL RTLD_GLOBAL
13403 #else
13404 # ifdef DL_GLOBAL
13405 # define LT_DLGLOBAL DL_GLOBAL
13406 # else
13407 # define LT_DLGLOBAL 0
13408 # endif
13409 #endif
13411 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13412 find out it does not work in some platform. */
13413 #ifndef LT_DLLAZY_OR_NOW
13414 # ifdef RTLD_LAZY
13415 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13416 # else
13417 # ifdef DL_LAZY
13418 # define LT_DLLAZY_OR_NOW DL_LAZY
13419 # else
13420 # ifdef RTLD_NOW
13421 # define LT_DLLAZY_OR_NOW RTLD_NOW
13422 # else
13423 # ifdef DL_NOW
13424 # define LT_DLLAZY_OR_NOW DL_NOW
13425 # else
13426 # define LT_DLLAZY_OR_NOW 0
13427 # endif
13428 # endif
13429 # endif
13430 # endif
13431 #endif
13433 /* When -fvisbility=hidden is used, assume the code has been annotated
13434 correspondingly for the symbols needed. */
13435 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13436 void fnord () __attribute__((visibility("default")));
13437 #endif
13439 void fnord () { int i=42; }
13440 int main ()
13442 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13443 int status = $lt_dlunknown;
13445 if (self)
13447 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13448 else
13450 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13451 else puts (dlerror ());
13453 /* dlclose (self); */
13455 else
13456 puts (dlerror ());
13458 return status;
13460 _LT_EOF
13461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13462 (eval $ac_link) 2>&5
13463 ac_status=$?
13464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13465 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13466 (./conftest; exit; ) >&5 2>/dev/null
13467 lt_status=$?
13468 case x$lt_status in
13469 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13470 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13471 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13472 esac
13473 else :
13474 # compilation failed
13475 lt_cv_dlopen_self=no
13478 rm -fr conftest*
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13483 $as_echo "$lt_cv_dlopen_self" >&6; }
13485 if test "x$lt_cv_dlopen_self" = xyes; then
13486 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13488 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13489 if test "${lt_cv_dlopen_self_static+set}" = set; then :
13490 $as_echo_n "(cached) " >&6
13491 else
13492 if test "$cross_compiling" = yes; then :
13493 lt_cv_dlopen_self_static=cross
13494 else
13495 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13496 lt_status=$lt_dlunknown
13497 cat > conftest.$ac_ext <<_LT_EOF
13498 #line 13498 "configure"
13499 #include "confdefs.h"
13501 #if HAVE_DLFCN_H
13502 #include <dlfcn.h>
13503 #endif
13505 #include <stdio.h>
13507 #ifdef RTLD_GLOBAL
13508 # define LT_DLGLOBAL RTLD_GLOBAL
13509 #else
13510 # ifdef DL_GLOBAL
13511 # define LT_DLGLOBAL DL_GLOBAL
13512 # else
13513 # define LT_DLGLOBAL 0
13514 # endif
13515 #endif
13517 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13518 find out it does not work in some platform. */
13519 #ifndef LT_DLLAZY_OR_NOW
13520 # ifdef RTLD_LAZY
13521 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13522 # else
13523 # ifdef DL_LAZY
13524 # define LT_DLLAZY_OR_NOW DL_LAZY
13525 # else
13526 # ifdef RTLD_NOW
13527 # define LT_DLLAZY_OR_NOW RTLD_NOW
13528 # else
13529 # ifdef DL_NOW
13530 # define LT_DLLAZY_OR_NOW DL_NOW
13531 # else
13532 # define LT_DLLAZY_OR_NOW 0
13533 # endif
13534 # endif
13535 # endif
13536 # endif
13537 #endif
13539 /* When -fvisbility=hidden is used, assume the code has been annotated
13540 correspondingly for the symbols needed. */
13541 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13542 void fnord () __attribute__((visibility("default")));
13543 #endif
13545 void fnord () { int i=42; }
13546 int main ()
13548 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13549 int status = $lt_dlunknown;
13551 if (self)
13553 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13554 else
13556 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13557 else puts (dlerror ());
13559 /* dlclose (self); */
13561 else
13562 puts (dlerror ());
13564 return status;
13566 _LT_EOF
13567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13568 (eval $ac_link) 2>&5
13569 ac_status=$?
13570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13571 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13572 (./conftest; exit; ) >&5 2>/dev/null
13573 lt_status=$?
13574 case x$lt_status in
13575 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13576 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13577 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13578 esac
13579 else :
13580 # compilation failed
13581 lt_cv_dlopen_self_static=no
13584 rm -fr conftest*
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13589 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13592 CPPFLAGS="$save_CPPFLAGS"
13593 LDFLAGS="$save_LDFLAGS"
13594 LIBS="$save_LIBS"
13596 esac
13598 case $lt_cv_dlopen_self in
13599 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13600 *) enable_dlopen_self=unknown ;;
13601 esac
13603 case $lt_cv_dlopen_self_static in
13604 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13605 *) enable_dlopen_self_static=unknown ;;
13606 esac
13625 striplib=
13626 old_striplib=
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13628 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13629 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13630 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13631 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13633 $as_echo "yes" >&6; }
13634 else
13635 # FIXME - insert some real tests, host_os isn't really good enough
13636 case $host_os in
13637 darwin*)
13638 if test -n "$STRIP" ; then
13639 striplib="$STRIP -x"
13640 old_striplib="$STRIP -S"
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13642 $as_echo "yes" >&6; }
13643 else
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13645 $as_echo "no" >&6; }
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13650 $as_echo "no" >&6; }
13652 esac
13666 # Report which library types will actually be built
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13668 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13670 $as_echo "$can_build_shared" >&6; }
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13673 $as_echo_n "checking whether to build shared libraries... " >&6; }
13674 test "$can_build_shared" = "no" && enable_shared=no
13676 # On AIX, shared libraries and static libraries use the same namespace, and
13677 # are all built from PIC.
13678 case $host_os in
13679 aix3*)
13680 test "$enable_shared" = yes && enable_static=no
13681 if test -n "$RANLIB"; then
13682 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13683 postinstall_cmds='$RANLIB $lib'
13687 aix[4-9]*)
13688 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13689 test "$enable_shared" = yes && enable_static=no
13692 esac
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13694 $as_echo "$enable_shared" >&6; }
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13697 $as_echo_n "checking whether to build static libraries... " >&6; }
13698 # Make sure either enable_shared or enable_static is yes.
13699 test "$enable_shared" = yes || enable_static=yes
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13701 $as_echo "$enable_static" >&6; }
13707 ac_ext=c
13708 ac_cpp='$CPP $CPPFLAGS'
13709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13713 CC="$lt_save_CC"
13715 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13716 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13717 (test "X$CXX" != "Xg++"))) ; then
13718 ac_ext=cpp
13719 ac_cpp='$CXXCPP $CPPFLAGS'
13720 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13721 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13722 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13724 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13725 if test -z "$CXXCPP"; then
13726 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13727 $as_echo_n "(cached) " >&6
13728 else
13729 # Double quotes because CXXCPP needs to be expanded
13730 for CXXCPP in "$CXX -E" "/lib/cpp"
13732 ac_preproc_ok=false
13733 for ac_cxx_preproc_warn_flag in '' yes
13735 # Use a header file that comes with gcc, so configuring glibc
13736 # with a fresh cross-compiler works.
13737 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13738 # <limits.h> exists even on freestanding compilers.
13739 # On the NeXT, cc -E runs the code through the compiler's parser,
13740 # not just through cpp. "Syntax error" is here to catch this case.
13741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13742 /* end confdefs.h. */
13743 #ifdef __STDC__
13744 # include <limits.h>
13745 #else
13746 # include <assert.h>
13747 #endif
13748 Syntax error
13749 _ACEOF
13750 if ac_fn_cxx_try_cpp "$LINENO"; then :
13752 else
13753 # Broken: fails on valid input.
13754 continue
13756 rm -f conftest.err conftest.$ac_ext
13758 # OK, works on sane cases. Now check whether nonexistent headers
13759 # can be detected and how.
13760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13761 /* end confdefs.h. */
13762 #include <ac_nonexistent.h>
13763 _ACEOF
13764 if ac_fn_cxx_try_cpp "$LINENO"; then :
13765 # Broken: success on invalid input.
13766 continue
13767 else
13768 # Passes both tests.
13769 ac_preproc_ok=:
13770 break
13772 rm -f conftest.err conftest.$ac_ext
13774 done
13775 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13776 rm -f conftest.err conftest.$ac_ext
13777 if $ac_preproc_ok; then :
13778 break
13781 done
13782 ac_cv_prog_CXXCPP=$CXXCPP
13785 CXXCPP=$ac_cv_prog_CXXCPP
13786 else
13787 ac_cv_prog_CXXCPP=$CXXCPP
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13790 $as_echo "$CXXCPP" >&6; }
13791 ac_preproc_ok=false
13792 for ac_cxx_preproc_warn_flag in '' yes
13794 # Use a header file that comes with gcc, so configuring glibc
13795 # with a fresh cross-compiler works.
13796 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13797 # <limits.h> exists even on freestanding compilers.
13798 # On the NeXT, cc -E runs the code through the compiler's parser,
13799 # not just through cpp. "Syntax error" is here to catch this case.
13800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13801 /* end confdefs.h. */
13802 #ifdef __STDC__
13803 # include <limits.h>
13804 #else
13805 # include <assert.h>
13806 #endif
13807 Syntax error
13808 _ACEOF
13809 if ac_fn_cxx_try_cpp "$LINENO"; then :
13811 else
13812 # Broken: fails on valid input.
13813 continue
13815 rm -f conftest.err conftest.$ac_ext
13817 # OK, works on sane cases. Now check whether nonexistent headers
13818 # can be detected and how.
13819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13820 /* end confdefs.h. */
13821 #include <ac_nonexistent.h>
13822 _ACEOF
13823 if ac_fn_cxx_try_cpp "$LINENO"; then :
13824 # Broken: success on invalid input.
13825 continue
13826 else
13827 # Passes both tests.
13828 ac_preproc_ok=:
13829 break
13831 rm -f conftest.err conftest.$ac_ext
13833 done
13834 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13835 rm -f conftest.err conftest.$ac_ext
13836 if $ac_preproc_ok; then :
13838 else
13839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13841 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
13842 See \`config.log' for more details." "$LINENO" 5; }
13845 ac_ext=c
13846 ac_cpp='$CPP $CPPFLAGS'
13847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13851 else
13852 _lt_caught_CXX_error=yes
13855 ac_ext=cpp
13856 ac_cpp='$CXXCPP $CPPFLAGS'
13857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13861 archive_cmds_need_lc_CXX=no
13862 allow_undefined_flag_CXX=
13863 always_export_symbols_CXX=no
13864 archive_expsym_cmds_CXX=
13865 compiler_needs_object_CXX=no
13866 export_dynamic_flag_spec_CXX=
13867 hardcode_direct_CXX=no
13868 hardcode_direct_absolute_CXX=no
13869 hardcode_libdir_flag_spec_CXX=
13870 hardcode_libdir_flag_spec_ld_CXX=
13871 hardcode_libdir_separator_CXX=
13872 hardcode_minus_L_CXX=no
13873 hardcode_shlibpath_var_CXX=unsupported
13874 hardcode_automatic_CXX=no
13875 inherit_rpath_CXX=no
13876 module_cmds_CXX=
13877 module_expsym_cmds_CXX=
13878 link_all_deplibs_CXX=unknown
13879 old_archive_cmds_CXX=$old_archive_cmds
13880 reload_flag_CXX=$reload_flag
13881 reload_cmds_CXX=$reload_cmds
13882 no_undefined_flag_CXX=
13883 whole_archive_flag_spec_CXX=
13884 enable_shared_with_static_runtimes_CXX=no
13886 # Source file extension for C++ test sources.
13887 ac_ext=cpp
13889 # Object file extension for compiled C++ test sources.
13890 objext=o
13891 objext_CXX=$objext
13893 # No sense in running all these tests if we already determined that
13894 # the CXX compiler isn't working. Some variables (like enable_shared)
13895 # are currently assumed to apply to all compilers on this platform,
13896 # and will be corrupted by setting them based on a non-working compiler.
13897 if test "$_lt_caught_CXX_error" != yes; then
13898 # Code to be used in simple compile tests
13899 lt_simple_compile_test_code="int some_variable = 0;"
13901 # Code to be used in simple link tests
13902 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13904 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13911 # If no C compiler was specified, use CC.
13912 LTCC=${LTCC-"$CC"}
13914 # If no C compiler flags were specified, use CFLAGS.
13915 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13917 # Allow CC to be a program name with arguments.
13918 compiler=$CC
13921 # save warnings/boilerplate of simple test code
13922 ac_outfile=conftest.$ac_objext
13923 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13924 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13925 _lt_compiler_boilerplate=`cat conftest.err`
13926 $RM conftest*
13928 ac_outfile=conftest.$ac_objext
13929 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13930 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13931 _lt_linker_boilerplate=`cat conftest.err`
13932 $RM -r conftest*
13935 # Allow CC to be a program name with arguments.
13936 lt_save_CC=$CC
13937 lt_save_LD=$LD
13938 lt_save_GCC=$GCC
13939 GCC=$GXX
13940 lt_save_with_gnu_ld=$with_gnu_ld
13941 lt_save_path_LD=$lt_cv_path_LD
13942 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13943 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13944 else
13945 $as_unset lt_cv_prog_gnu_ld
13947 if test -n "${lt_cv_path_LDCXX+set}"; then
13948 lt_cv_path_LD=$lt_cv_path_LDCXX
13949 else
13950 $as_unset lt_cv_path_LD
13952 test -z "${LDCXX+set}" || LD=$LDCXX
13953 CC=${CXX-"c++"}
13954 compiler=$CC
13955 compiler_CXX=$CC
13956 for cc_temp in $compiler""; do
13957 case $cc_temp in
13958 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13959 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13960 \-*) ;;
13961 *) break;;
13962 esac
13963 done
13964 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13967 if test -n "$compiler"; then
13968 # We don't want -fno-exception when compiling C++ code, so set the
13969 # no_builtin_flag separately
13970 if test "$GXX" = yes; then
13971 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13972 else
13973 lt_prog_compiler_no_builtin_flag_CXX=
13976 if test "$GXX" = yes; then
13977 # Set up default GNU C++ configuration
13981 # Check whether --with-gnu-ld was given.
13982 if test "${with_gnu_ld+set}" = set; then :
13983 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13984 else
13985 with_gnu_ld=no
13988 ac_prog=ld
13989 if test "$GCC" = yes; then
13990 # Check if gcc -print-prog-name=ld gives a path.
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13992 $as_echo_n "checking for ld used by $CC... " >&6; }
13993 case $host in
13994 *-*-mingw*)
13995 # gcc leaves a trailing carriage return which upsets mingw
13996 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13998 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13999 esac
14000 case $ac_prog in
14001 # Accept absolute paths.
14002 [\\/]* | ?:[\\/]*)
14003 re_direlt='/[^/][^/]*/\.\./'
14004 # Canonicalize the pathname of ld
14005 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14006 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14007 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14008 done
14009 test -z "$LD" && LD="$ac_prog"
14012 # If it fails, then pretend we aren't using GCC.
14013 ac_prog=ld
14016 # If it is relative, then search for the first ld in PATH.
14017 with_gnu_ld=unknown
14019 esac
14020 elif test "$with_gnu_ld" = yes; then
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14022 $as_echo_n "checking for GNU ld... " >&6; }
14023 else
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14025 $as_echo_n "checking for non-GNU ld... " >&6; }
14027 if test "${lt_cv_path_LD+set}" = set; then :
14028 $as_echo_n "(cached) " >&6
14029 else
14030 if test -z "$LD"; then
14031 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14032 for ac_dir in $PATH; do
14033 IFS="$lt_save_ifs"
14034 test -z "$ac_dir" && ac_dir=.
14035 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14036 lt_cv_path_LD="$ac_dir/$ac_prog"
14037 # Check to see if the program is GNU ld. I'd rather use --version,
14038 # but apparently some variants of GNU ld only accept -v.
14039 # Break only if it was the GNU/non-GNU ld that we prefer.
14040 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14041 *GNU* | *'with BFD'*)
14042 test "$with_gnu_ld" != no && break
14045 test "$with_gnu_ld" != yes && break
14047 esac
14049 done
14050 IFS="$lt_save_ifs"
14051 else
14052 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14056 LD="$lt_cv_path_LD"
14057 if test -n "$LD"; then
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14059 $as_echo "$LD" >&6; }
14060 else
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14062 $as_echo "no" >&6; }
14064 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14066 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14067 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14068 $as_echo_n "(cached) " >&6
14069 else
14070 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14071 case `$LD -v 2>&1 </dev/null` in
14072 *GNU* | *'with BFD'*)
14073 lt_cv_prog_gnu_ld=yes
14076 lt_cv_prog_gnu_ld=no
14078 esac
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14081 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14082 with_gnu_ld=$lt_cv_prog_gnu_ld
14090 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14091 # archiving commands below assume that GNU ld is being used.
14092 if test "$with_gnu_ld" = yes; then
14093 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14094 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14096 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14097 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14099 # If archive_cmds runs LD, not CC, wlarc should be empty
14100 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14101 # investigate it a little bit more. (MM)
14102 wlarc='${wl}'
14104 # ancient GNU ld didn't support --whole-archive et. al.
14105 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14106 $GREP 'no-whole-archive' > /dev/null; then
14107 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14108 else
14109 whole_archive_flag_spec_CXX=
14111 else
14112 with_gnu_ld=no
14113 wlarc=
14115 # A generic and very simple default shared library creation
14116 # command for GNU C++ for the case where it uses the native
14117 # linker, instead of GNU ld. If possible, this setting should
14118 # overridden to take advantage of the native linker features on
14119 # the platform it is being used on.
14120 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14123 # Commands to make compiler produce verbose output that lists
14124 # what "hidden" libraries, object files and flags are used when
14125 # linking a shared library.
14126 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14128 else
14129 GXX=no
14130 with_gnu_ld=no
14131 wlarc=
14134 # PORTME: fill in a description of your system's C++ link characteristics
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14136 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14137 ld_shlibs_CXX=yes
14138 case $host_os in
14139 aix3*)
14140 # FIXME: insert proper C++ library support
14141 ld_shlibs_CXX=no
14143 aix[4-9]*)
14144 if test "$host_cpu" = ia64; then
14145 # On IA64, the linker does run time linking by default, so we don't
14146 # have to do anything special.
14147 aix_use_runtimelinking=no
14148 exp_sym_flag='-Bexport'
14149 no_entry_flag=""
14150 else
14151 aix_use_runtimelinking=no
14153 # Test if we are trying to use run time linking or normal
14154 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14155 # need to do runtime linking.
14156 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14157 for ld_flag in $LDFLAGS; do
14158 case $ld_flag in
14159 *-brtl*)
14160 aix_use_runtimelinking=yes
14161 break
14163 esac
14164 done
14166 esac
14168 exp_sym_flag='-bexport'
14169 no_entry_flag='-bnoentry'
14172 # When large executables or shared objects are built, AIX ld can
14173 # have problems creating the table of contents. If linking a library
14174 # or program results in "error TOC overflow" add -mminimal-toc to
14175 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14176 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14178 archive_cmds_CXX=''
14179 hardcode_direct_CXX=yes
14180 hardcode_direct_absolute_CXX=yes
14181 hardcode_libdir_separator_CXX=':'
14182 link_all_deplibs_CXX=yes
14183 file_list_spec_CXX='${wl}-f,'
14185 if test "$GXX" = yes; then
14186 case $host_os in aix4.[012]|aix4.[012].*)
14187 # We only want to do this on AIX 4.2 and lower, the check
14188 # below for broken collect2 doesn't work under 4.3+
14189 collect2name=`${CC} -print-prog-name=collect2`
14190 if test -f "$collect2name" &&
14191 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14192 then
14193 # We have reworked collect2
14195 else
14196 # We have old collect2
14197 hardcode_direct_CXX=unsupported
14198 # It fails to find uninstalled libraries when the uninstalled
14199 # path is not listed in the libpath. Setting hardcode_minus_L
14200 # to unsupported forces relinking
14201 hardcode_minus_L_CXX=yes
14202 hardcode_libdir_flag_spec_CXX='-L$libdir'
14203 hardcode_libdir_separator_CXX=
14205 esac
14206 shared_flag='-shared'
14207 if test "$aix_use_runtimelinking" = yes; then
14208 shared_flag="$shared_flag "'${wl}-G'
14210 else
14211 # not using gcc
14212 if test "$host_cpu" = ia64; then
14213 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14214 # chokes on -Wl,-G. The following line is correct:
14215 shared_flag='-G'
14216 else
14217 if test "$aix_use_runtimelinking" = yes; then
14218 shared_flag='${wl}-G'
14219 else
14220 shared_flag='${wl}-bM:SRE'
14225 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14226 # It seems that -bexpall does not export symbols beginning with
14227 # underscore (_), so it is better to generate a list of symbols to
14228 # export.
14229 always_export_symbols_CXX=yes
14230 if test "$aix_use_runtimelinking" = yes; then
14231 # Warning - without using the other runtime loading flags (-brtl),
14232 # -berok will link without error, but may produce a broken library.
14233 allow_undefined_flag_CXX='-berok'
14234 # Determine the default libpath from the value encoded in an empty
14235 # executable.
14236 if test x$gcc_no_link = xyes; then
14237 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14240 /* end confdefs.h. */
14243 main ()
14247 return 0;
14249 _ACEOF
14250 if ac_fn_cxx_try_link "$LINENO"; then :
14252 lt_aix_libpath_sed='
14253 /Import File Strings/,/^$/ {
14254 /^0/ {
14255 s/^0 *\(.*\)$/\1/
14259 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14260 # Check for a 64-bit object if we didn't find anything.
14261 if test -z "$aix_libpath"; then
14262 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14265 rm -f core conftest.err conftest.$ac_objext \
14266 conftest$ac_exeext conftest.$ac_ext
14267 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14269 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14271 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"
14272 else
14273 if test "$host_cpu" = ia64; then
14274 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14275 allow_undefined_flag_CXX="-z nodefs"
14276 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"
14277 else
14278 # Determine the default libpath from the value encoded in an
14279 # empty executable.
14280 if test x$gcc_no_link = xyes; then
14281 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14284 /* end confdefs.h. */
14287 main ()
14291 return 0;
14293 _ACEOF
14294 if ac_fn_cxx_try_link "$LINENO"; then :
14296 lt_aix_libpath_sed='
14297 /Import File Strings/,/^$/ {
14298 /^0/ {
14299 s/^0 *\(.*\)$/\1/
14303 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14304 # Check for a 64-bit object if we didn't find anything.
14305 if test -z "$aix_libpath"; then
14306 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14309 rm -f core conftest.err conftest.$ac_objext \
14310 conftest$ac_exeext conftest.$ac_ext
14311 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14313 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14314 # Warning - without using the other run time loading flags,
14315 # -berok will link without error, but may produce a broken library.
14316 no_undefined_flag_CXX=' ${wl}-bernotok'
14317 allow_undefined_flag_CXX=' ${wl}-berok'
14318 if test "$with_gnu_ld" = yes; then
14319 # We only use this code for GNU lds that support --whole-archive.
14320 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14321 else
14322 # Exported symbols can be pulled into shared objects from archives
14323 whole_archive_flag_spec_CXX='$convenience'
14325 archive_cmds_need_lc_CXX=yes
14326 # This is similar to how AIX traditionally builds its shared
14327 # libraries.
14328 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'
14333 beos*)
14334 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14335 allow_undefined_flag_CXX=unsupported
14336 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14337 # support --undefined. This deserves some investigation. FIXME
14338 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14339 else
14340 ld_shlibs_CXX=no
14344 chorus*)
14345 case $cc_basename in
14347 # FIXME: insert proper C++ library support
14348 ld_shlibs_CXX=no
14350 esac
14353 cygwin* | mingw* | pw32* | cegcc*)
14354 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14355 # as there is no search path for DLLs.
14356 hardcode_libdir_flag_spec_CXX='-L$libdir'
14357 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14358 allow_undefined_flag_CXX=unsupported
14359 always_export_symbols_CXX=no
14360 enable_shared_with_static_runtimes_CXX=yes
14362 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14363 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'
14364 # If the export-symbols file already is a .def file (1st line
14365 # is EXPORTS), use it as is; otherwise, prepend...
14366 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14367 cp $export_symbols $output_objdir/$soname.def;
14368 else
14369 echo EXPORTS > $output_objdir/$soname.def;
14370 cat $export_symbols >> $output_objdir/$soname.def;
14372 $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'
14373 else
14374 ld_shlibs_CXX=no
14377 darwin* | rhapsody*)
14380 archive_cmds_need_lc_CXX=no
14381 hardcode_direct_CXX=no
14382 hardcode_automatic_CXX=yes
14383 hardcode_shlibpath_var_CXX=unsupported
14384 if test "$lt_cv_ld_force_load" = "yes"; then
14385 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\"`'
14386 else
14387 whole_archive_flag_spec_CXX=''
14389 link_all_deplibs_CXX=yes
14390 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14391 case $cc_basename in
14392 ifort*) _lt_dar_can_shared=yes ;;
14393 *) _lt_dar_can_shared=$GCC ;;
14394 esac
14395 if test "$_lt_dar_can_shared" = "yes"; then
14396 output_verbose_link_cmd=func_echo_all
14397 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}"
14398 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14399 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}"
14400 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}"
14401 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14402 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}"
14403 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}"
14406 else
14407 ld_shlibs_CXX=no
14412 dgux*)
14413 case $cc_basename in
14414 ec++*)
14415 # FIXME: insert proper C++ library support
14416 ld_shlibs_CXX=no
14418 ghcx*)
14419 # Green Hills C++ Compiler
14420 # FIXME: insert proper C++ library support
14421 ld_shlibs_CXX=no
14424 # FIXME: insert proper C++ library support
14425 ld_shlibs_CXX=no
14427 esac
14430 freebsd2.*)
14431 # C++ shared libraries reported to be fairly broken before
14432 # switch to ELF
14433 ld_shlibs_CXX=no
14436 freebsd-elf*)
14437 archive_cmds_need_lc_CXX=no
14440 freebsd* | dragonfly*)
14441 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14442 # conventions
14443 ld_shlibs_CXX=yes
14446 gnu*)
14449 haiku*)
14450 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14451 link_all_deplibs_CXX=yes
14454 hpux9*)
14455 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14456 hardcode_libdir_separator_CXX=:
14457 export_dynamic_flag_spec_CXX='${wl}-E'
14458 hardcode_direct_CXX=yes
14459 hardcode_minus_L_CXX=yes # Not in the search PATH,
14460 # but as the default
14461 # location of the library.
14463 case $cc_basename in
14464 CC*)
14465 # FIXME: insert proper C++ library support
14466 ld_shlibs_CXX=no
14468 aCC*)
14469 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'
14470 # Commands to make compiler produce verbose output that lists
14471 # what "hidden" libraries, object files and flags are used when
14472 # linking a shared library.
14474 # There doesn't appear to be a way to prevent this compiler from
14475 # explicitly linking system object files so we need to strip them
14476 # from the output so that they don't get included in the library
14477 # dependencies.
14478 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"'
14481 if test "$GXX" = yes; then
14482 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'
14483 else
14484 # FIXME: insert proper C++ library support
14485 ld_shlibs_CXX=no
14488 esac
14491 hpux10*|hpux11*)
14492 if test $with_gnu_ld = no; then
14493 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14494 hardcode_libdir_separator_CXX=:
14496 case $host_cpu in
14497 hppa*64*|ia64*)
14500 export_dynamic_flag_spec_CXX='${wl}-E'
14502 esac
14504 case $host_cpu in
14505 hppa*64*|ia64*)
14506 hardcode_direct_CXX=no
14507 hardcode_shlibpath_var_CXX=no
14510 hardcode_direct_CXX=yes
14511 hardcode_direct_absolute_CXX=yes
14512 hardcode_minus_L_CXX=yes # Not in the search PATH,
14513 # but as the default
14514 # location of the library.
14516 esac
14518 case $cc_basename in
14519 CC*)
14520 # FIXME: insert proper C++ library support
14521 ld_shlibs_CXX=no
14523 aCC*)
14524 case $host_cpu in
14525 hppa*64*)
14526 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14528 ia64*)
14529 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14532 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14534 esac
14535 # Commands to make compiler produce verbose output that lists
14536 # what "hidden" libraries, object files and flags are used when
14537 # linking a shared library.
14539 # There doesn't appear to be a way to prevent this compiler from
14540 # explicitly linking system object files so we need to strip them
14541 # from the output so that they don't get included in the library
14542 # dependencies.
14543 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"'
14546 if test "$GXX" = yes; then
14547 if test $with_gnu_ld = no; then
14548 case $host_cpu in
14549 hppa*64*)
14550 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14552 ia64*)
14553 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14556 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'
14558 esac
14560 else
14561 # FIXME: insert proper C++ library support
14562 ld_shlibs_CXX=no
14565 esac
14568 interix[3-9]*)
14569 hardcode_direct_CXX=no
14570 hardcode_shlibpath_var_CXX=no
14571 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14572 export_dynamic_flag_spec_CXX='${wl}-E'
14573 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14574 # Instead, shared libraries are loaded at an image base (0x10000000 by
14575 # default) and relocated if they conflict, which is a slow very memory
14576 # consuming and fragmenting process. To avoid this, we pick a random,
14577 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14578 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14579 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'
14580 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'
14582 irix5* | irix6*)
14583 case $cc_basename in
14584 CC*)
14585 # SGI C++
14586 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'
14588 # Archives containing C++ object files must be created using
14589 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14590 # necessary to make sure instantiated templates are included
14591 # in the archive.
14592 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14595 if test "$GXX" = yes; then
14596 if test "$with_gnu_ld" = no; then
14597 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'
14598 else
14599 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'
14602 link_all_deplibs_CXX=yes
14604 esac
14605 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14606 hardcode_libdir_separator_CXX=:
14607 inherit_rpath_CXX=yes
14610 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14611 case $cc_basename in
14612 KCC*)
14613 # Kuck and Associates, Inc. (KAI) C++ Compiler
14615 # KCC will only create a shared library if the output file
14616 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14617 # to its proper name (with version) after linking.
14618 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'
14619 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'
14620 # Commands to make compiler produce verbose output that lists
14621 # what "hidden" libraries, object files and flags are used when
14622 # linking a shared library.
14624 # There doesn't appear to be a way to prevent this compiler from
14625 # explicitly linking system object files so we need to strip them
14626 # from the output so that they don't get included in the library
14627 # dependencies.
14628 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"'
14630 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14631 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14633 # Archives containing C++ object files must be created using
14634 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14635 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14637 icpc* | ecpc* )
14638 # Intel C++
14639 with_gnu_ld=yes
14640 # version 8.0 and above of icpc choke on multiply defined symbols
14641 # if we add $predep_objects and $postdep_objects, however 7.1 and
14642 # earlier do not add the objects themselves.
14643 case `$CC -V 2>&1` in
14644 *"Version 7."*)
14645 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14646 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'
14648 *) # Version 8.0 or newer
14649 tmp_idyn=
14650 case $host_cpu in
14651 ia64*) tmp_idyn=' -i_dynamic';;
14652 esac
14653 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14654 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'
14656 esac
14657 archive_cmds_need_lc_CXX=no
14658 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14659 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14660 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14662 pgCC* | pgcpp*)
14663 # Portland Group C++ compiler
14664 case `$CC -V` in
14665 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14666 prelink_cmds_CXX='tpldir=Template.dir~
14667 rm -rf $tpldir~
14668 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14669 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14670 old_archive_cmds_CXX='tpldir=Template.dir~
14671 rm -rf $tpldir~
14672 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14673 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14674 $RANLIB $oldlib'
14675 archive_cmds_CXX='tpldir=Template.dir~
14676 rm -rf $tpldir~
14677 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14678 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14679 archive_expsym_cmds_CXX='tpldir=Template.dir~
14680 rm -rf $tpldir~
14681 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14682 $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'
14684 *) # Version 6 and above use weak symbols
14685 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14686 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'
14688 esac
14690 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14691 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14692 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'
14694 cxx*)
14695 # Compaq C++
14696 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14697 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'
14699 runpath_var=LD_RUN_PATH
14700 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14701 hardcode_libdir_separator_CXX=:
14703 # Commands to make compiler produce verbose output that lists
14704 # what "hidden" libraries, object files and flags are used when
14705 # linking a shared library.
14707 # There doesn't appear to be a way to prevent this compiler from
14708 # explicitly linking system object files so we need to strip them
14709 # from the output so that they don't get included in the library
14710 # dependencies.
14711 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'
14713 xl* | mpixl* | bgxl*)
14714 # IBM XL 8.0 on PPC, with GNU ld
14715 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14716 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14717 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14718 if test "x$supports_anon_versioning" = xyes; then
14719 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14720 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14721 echo "local: *; };" >> $output_objdir/$libname.ver~
14722 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14726 case `$CC -V 2>&1 | sed 5q` in
14727 *Sun\ C*)
14728 # Sun C++ 5.9
14729 no_undefined_flag_CXX=' -zdefs'
14730 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14731 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'
14732 hardcode_libdir_flag_spec_CXX='-R$libdir'
14733 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'
14734 compiler_needs_object_CXX=yes
14736 # Not sure whether something based on
14737 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14738 # would be better.
14739 output_verbose_link_cmd='func_echo_all'
14741 # Archives containing C++ object files must be created using
14742 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14743 # necessary to make sure instantiated templates are included
14744 # in the archive.
14745 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14747 esac
14749 esac
14752 lynxos*)
14753 # FIXME: insert proper C++ library support
14754 ld_shlibs_CXX=no
14757 m88k*)
14758 # FIXME: insert proper C++ library support
14759 ld_shlibs_CXX=no
14762 mvs*)
14763 case $cc_basename in
14764 cxx*)
14765 # FIXME: insert proper C++ library support
14766 ld_shlibs_CXX=no
14769 # FIXME: insert proper C++ library support
14770 ld_shlibs_CXX=no
14772 esac
14775 netbsd*)
14776 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14777 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14778 wlarc=
14779 hardcode_libdir_flag_spec_CXX='-R$libdir'
14780 hardcode_direct_CXX=yes
14781 hardcode_shlibpath_var_CXX=no
14783 # Workaround some broken pre-1.5 toolchains
14784 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14787 *nto* | *qnx*)
14788 ld_shlibs_CXX=yes
14791 openbsd2*)
14792 # C++ shared libraries are fairly broken
14793 ld_shlibs_CXX=no
14796 openbsd*)
14797 if test -f /usr/libexec/ld.so; then
14798 hardcode_direct_CXX=yes
14799 hardcode_shlibpath_var_CXX=no
14800 hardcode_direct_absolute_CXX=yes
14801 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14802 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14803 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14804 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14805 export_dynamic_flag_spec_CXX='${wl}-E'
14806 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14808 output_verbose_link_cmd=func_echo_all
14809 else
14810 ld_shlibs_CXX=no
14814 osf3* | osf4* | osf5*)
14815 case $cc_basename in
14816 KCC*)
14817 # Kuck and Associates, Inc. (KAI) C++ Compiler
14819 # KCC will only create a shared library if the output file
14820 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14821 # to its proper name (with version) after linking.
14822 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'
14824 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14825 hardcode_libdir_separator_CXX=:
14827 # Archives containing C++ object files must be created using
14828 # the KAI C++ compiler.
14829 case $host in
14830 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14831 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14832 esac
14834 RCC*)
14835 # Rational C++ 2.4.1
14836 # FIXME: insert proper C++ library support
14837 ld_shlibs_CXX=no
14839 cxx*)
14840 case $host in
14841 osf3*)
14842 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14843 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'
14844 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14847 allow_undefined_flag_CXX=' -expect_unresolved \*'
14848 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'
14849 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14850 echo "-hidden">> $lib.exp~
14851 $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~
14852 $RM $lib.exp'
14853 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14855 esac
14857 hardcode_libdir_separator_CXX=:
14859 # Commands to make compiler produce verbose output that lists
14860 # what "hidden" libraries, object files and flags are used when
14861 # linking a shared library.
14863 # There doesn't appear to be a way to prevent this compiler from
14864 # explicitly linking system object files so we need to strip them
14865 # from the output so that they don't get included in the library
14866 # dependencies.
14867 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"'
14870 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14871 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14872 case $host in
14873 osf3*)
14874 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'
14877 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'
14879 esac
14881 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14882 hardcode_libdir_separator_CXX=:
14884 # Commands to make compiler produce verbose output that lists
14885 # what "hidden" libraries, object files and flags are used when
14886 # linking a shared library.
14887 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14889 else
14890 # FIXME: insert proper C++ library support
14891 ld_shlibs_CXX=no
14894 esac
14897 psos*)
14898 # FIXME: insert proper C++ library support
14899 ld_shlibs_CXX=no
14902 sunos4*)
14903 case $cc_basename in
14904 CC*)
14905 # Sun C++ 4.x
14906 # FIXME: insert proper C++ library support
14907 ld_shlibs_CXX=no
14909 lcc*)
14910 # Lucid
14911 # FIXME: insert proper C++ library support
14912 ld_shlibs_CXX=no
14915 # FIXME: insert proper C++ library support
14916 ld_shlibs_CXX=no
14918 esac
14921 solaris*)
14922 case $cc_basename in
14923 CC*)
14924 # Sun C++ 4.2, 5.x and Centerline C++
14925 archive_cmds_need_lc_CXX=yes
14926 no_undefined_flag_CXX=' -zdefs'
14927 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14928 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14929 $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'
14931 hardcode_libdir_flag_spec_CXX='-R$libdir'
14932 hardcode_shlibpath_var_CXX=no
14933 case $host_os in
14934 solaris2.[0-5] | solaris2.[0-5].*) ;;
14936 # The compiler driver will combine and reorder linker options,
14937 # but understands `-z linker_flag'.
14938 # Supported since Solaris 2.6 (maybe 2.5.1?)
14939 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14941 esac
14942 link_all_deplibs_CXX=yes
14944 output_verbose_link_cmd='func_echo_all'
14946 # Archives containing C++ object files must be created using
14947 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14948 # necessary to make sure instantiated templates are included
14949 # in the archive.
14950 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14952 gcx*)
14953 # Green Hills C++ Compiler
14954 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14956 # The C++ compiler must be used to create the archive.
14957 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14960 # GNU C++ compiler with Solaris linker
14961 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14962 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14963 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14964 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14965 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14966 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14968 # Commands to make compiler produce verbose output that lists
14969 # what "hidden" libraries, object files and flags are used when
14970 # linking a shared library.
14971 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14972 else
14973 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14974 # platform.
14975 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14976 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14977 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14979 # Commands to make compiler produce verbose output that lists
14980 # what "hidden" libraries, object files and flags are used when
14981 # linking a shared library.
14982 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14985 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14986 case $host_os in
14987 solaris2.[0-5] | solaris2.[0-5].*) ;;
14989 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14991 esac
14994 esac
14997 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14998 no_undefined_flag_CXX='${wl}-z,text'
14999 archive_cmds_need_lc_CXX=no
15000 hardcode_shlibpath_var_CXX=no
15001 runpath_var='LD_RUN_PATH'
15003 case $cc_basename in
15004 CC*)
15005 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15006 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15009 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15010 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15012 esac
15015 sysv5* | sco3.2v5* | sco5v6*)
15016 # Note: We can NOT use -z defs as we might desire, because we do not
15017 # link with -lc, and that would cause any symbols used from libc to
15018 # always be unresolved, which means just about no library would
15019 # ever link correctly. If we're not using GNU ld we use -z text
15020 # though, which does catch some bad symbols but isn't as heavy-handed
15021 # as -z defs.
15022 no_undefined_flag_CXX='${wl}-z,text'
15023 allow_undefined_flag_CXX='${wl}-z,nodefs'
15024 archive_cmds_need_lc_CXX=no
15025 hardcode_shlibpath_var_CXX=no
15026 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15027 hardcode_libdir_separator_CXX=':'
15028 link_all_deplibs_CXX=yes
15029 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15030 runpath_var='LD_RUN_PATH'
15032 case $cc_basename in
15033 CC*)
15034 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15035 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15036 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15037 '"$old_archive_cmds_CXX"
15038 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15039 '"$reload_cmds_CXX"
15042 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15043 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15045 esac
15048 tandem*)
15049 case $cc_basename in
15050 NCC*)
15051 # NonStop-UX NCC 3.20
15052 # FIXME: insert proper C++ library support
15053 ld_shlibs_CXX=no
15056 # FIXME: insert proper C++ library support
15057 ld_shlibs_CXX=no
15059 esac
15062 vxworks*)
15063 # FIXME: insert proper C++ library support
15064 ld_shlibs_CXX=no
15068 # FIXME: insert proper C++ library support
15069 ld_shlibs_CXX=no
15071 esac
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15074 $as_echo "$ld_shlibs_CXX" >&6; }
15075 test "$ld_shlibs_CXX" = no && can_build_shared=no
15077 GCC_CXX="$GXX"
15078 LD_CXX="$LD"
15080 ## CAVEAT EMPTOR:
15081 ## There is no encapsulation within the following macros, do not change
15082 ## the running order or otherwise move them around unless you know exactly
15083 ## what you are doing...
15084 # Dependencies to place before and after the object being linked:
15085 predep_objects_CXX=
15086 postdep_objects_CXX=
15087 predeps_CXX=
15088 postdeps_CXX=
15089 compiler_lib_search_path_CXX=
15091 cat > conftest.$ac_ext <<_LT_EOF
15092 class Foo
15094 public:
15095 Foo (void) { a = 0; }
15096 private:
15097 int a;
15099 _LT_EOF
15101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15102 (eval $ac_compile) 2>&5
15103 ac_status=$?
15104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15105 test $ac_status = 0; }; then
15106 # Parse the compiler output and extract the necessary
15107 # objects, libraries and library flags.
15109 # Sentinel used to keep track of whether or not we are before
15110 # the conftest object file.
15111 pre_test_object_deps_done=no
15113 for p in `eval "$output_verbose_link_cmd"`; do
15114 case $p in
15116 -L* | -R* | -l*)
15117 # Some compilers place space between "-{L,R}" and the path.
15118 # Remove the space.
15119 if test $p = "-L" ||
15120 test $p = "-R"; then
15121 prev=$p
15122 continue
15123 else
15124 prev=
15127 if test "$pre_test_object_deps_done" = no; then
15128 case $p in
15129 -L* | -R*)
15130 # Internal compiler library paths should come after those
15131 # provided the user. The postdeps already come after the
15132 # user supplied libs so there is no need to process them.
15133 if test -z "$compiler_lib_search_path_CXX"; then
15134 compiler_lib_search_path_CXX="${prev}${p}"
15135 else
15136 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15139 # The "-l" case would never come before the object being
15140 # linked, so don't bother handling this case.
15141 esac
15142 else
15143 if test -z "$postdeps_CXX"; then
15144 postdeps_CXX="${prev}${p}"
15145 else
15146 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15151 *.$objext)
15152 # This assumes that the test object file only shows up
15153 # once in the compiler output.
15154 if test "$p" = "conftest.$objext"; then
15155 pre_test_object_deps_done=yes
15156 continue
15159 if test "$pre_test_object_deps_done" = no; then
15160 if test -z "$predep_objects_CXX"; then
15161 predep_objects_CXX="$p"
15162 else
15163 predep_objects_CXX="$predep_objects_CXX $p"
15165 else
15166 if test -z "$postdep_objects_CXX"; then
15167 postdep_objects_CXX="$p"
15168 else
15169 postdep_objects_CXX="$postdep_objects_CXX $p"
15174 *) ;; # Ignore the rest.
15176 esac
15177 done
15179 # Clean up.
15180 rm -f a.out a.exe
15181 else
15182 echo "libtool.m4: error: problem compiling CXX test program"
15185 $RM -f confest.$objext
15187 # PORTME: override above test on systems where it is broken
15188 case $host_os in
15189 interix[3-9]*)
15190 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15191 # hack all around it, let's just trust "g++" to DTRT.
15192 predep_objects_CXX=
15193 postdep_objects_CXX=
15194 postdeps_CXX=
15197 linux*)
15198 case `$CC -V 2>&1 | sed 5q` in
15199 *Sun\ C*)
15200 # Sun C++ 5.9
15202 # The more standards-conforming stlport4 library is
15203 # incompatible with the Cstd library. Avoid specifying
15204 # it if it's in CXXFLAGS. Ignore libCrun as
15205 # -library=stlport4 depends on it.
15206 case " $CXX $CXXFLAGS " in
15207 *" -library=stlport4 "*)
15208 solaris_use_stlport4=yes
15210 esac
15212 if test "$solaris_use_stlport4" != yes; then
15213 postdeps_CXX='-library=Cstd -library=Crun'
15216 esac
15219 solaris*)
15220 case $cc_basename in
15221 CC*)
15222 # The more standards-conforming stlport4 library is
15223 # incompatible with the Cstd library. Avoid specifying
15224 # it if it's in CXXFLAGS. Ignore libCrun as
15225 # -library=stlport4 depends on it.
15226 case " $CXX $CXXFLAGS " in
15227 *" -library=stlport4 "*)
15228 solaris_use_stlport4=yes
15230 esac
15232 # Adding this requires a known-good setup of shared libraries for
15233 # Sun compiler versions before 5.6, else PIC objects from an old
15234 # archive will be linked into the output, leading to subtle bugs.
15235 if test "$solaris_use_stlport4" != yes; then
15236 postdeps_CXX='-library=Cstd -library=Crun'
15239 esac
15241 esac
15244 case " $postdeps_CXX " in
15245 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15246 esac
15247 compiler_lib_search_dirs_CXX=
15248 if test -n "${compiler_lib_search_path_CXX}"; then
15249 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15282 lt_prog_compiler_wl_CXX=
15283 lt_prog_compiler_pic_CXX=
15284 lt_prog_compiler_static_CXX=
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15287 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15289 # C++ specific cases for pic, static, wl, etc.
15290 if test "$GXX" = yes; then
15291 lt_prog_compiler_wl_CXX='-Wl,'
15292 lt_prog_compiler_static_CXX='-static'
15294 case $host_os in
15295 aix*)
15296 # All AIX code is PIC.
15297 if test "$host_cpu" = ia64; then
15298 # AIX 5 now supports IA64 processor
15299 lt_prog_compiler_static_CXX='-Bstatic'
15301 lt_prog_compiler_pic_CXX='-fPIC'
15304 amigaos*)
15305 case $host_cpu in
15306 powerpc)
15307 # see comment about AmigaOS4 .so support
15308 lt_prog_compiler_pic_CXX='-fPIC'
15310 m68k)
15311 # FIXME: we need at least 68020 code to build shared libraries, but
15312 # adding the `-m68020' flag to GCC prevents building anything better,
15313 # like `-m68040'.
15314 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15316 esac
15319 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15320 # PIC is the default for these OSes.
15322 mingw* | cygwin* | os2* | pw32* | cegcc*)
15323 # This hack is so that the source file can tell whether it is being
15324 # built for inclusion in a dll (and should export symbols for example).
15325 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15326 # (--disable-auto-import) libraries
15327 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15329 darwin* | rhapsody*)
15330 # PIC is the default on this platform
15331 # Common symbols not allowed in MH_DYLIB files
15332 lt_prog_compiler_pic_CXX='-fno-common'
15334 *djgpp*)
15335 # DJGPP does not support shared libraries at all
15336 lt_prog_compiler_pic_CXX=
15338 haiku*)
15339 # PIC is the default for Haiku.
15340 # The "-static" flag exists, but is broken.
15341 lt_prog_compiler_static_CXX=
15343 interix[3-9]*)
15344 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15345 # Instead, we relocate shared libraries at runtime.
15347 sysv4*MP*)
15348 if test -d /usr/nec; then
15349 lt_prog_compiler_pic_CXX=-Kconform_pic
15352 hpux*)
15353 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15354 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15355 # sets the default TLS model and affects inlining.
15356 case $host_cpu in
15357 hppa*64*)
15360 lt_prog_compiler_pic_CXX='-fPIC'
15362 esac
15364 *qnx* | *nto*)
15365 # QNX uses GNU C++, but need to define -shared option too, otherwise
15366 # it will coredump.
15367 lt_prog_compiler_pic_CXX='-fPIC -shared'
15370 lt_prog_compiler_pic_CXX='-fPIC'
15372 esac
15373 else
15374 case $host_os in
15375 aix[4-9]*)
15376 # All AIX code is PIC.
15377 if test "$host_cpu" = ia64; then
15378 # AIX 5 now supports IA64 processor
15379 lt_prog_compiler_static_CXX='-Bstatic'
15380 else
15381 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15384 chorus*)
15385 case $cc_basename in
15386 cxch68*)
15387 # Green Hills C++ Compiler
15388 # _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"
15390 esac
15392 dgux*)
15393 case $cc_basename in
15394 ec++*)
15395 lt_prog_compiler_pic_CXX='-KPIC'
15397 ghcx*)
15398 # Green Hills C++ Compiler
15399 lt_prog_compiler_pic_CXX='-pic'
15403 esac
15405 freebsd* | dragonfly*)
15406 # FreeBSD uses GNU C++
15408 hpux9* | hpux10* | hpux11*)
15409 case $cc_basename in
15410 CC*)
15411 lt_prog_compiler_wl_CXX='-Wl,'
15412 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15413 if test "$host_cpu" != ia64; then
15414 lt_prog_compiler_pic_CXX='+Z'
15417 aCC*)
15418 lt_prog_compiler_wl_CXX='-Wl,'
15419 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15420 case $host_cpu in
15421 hppa*64*|ia64*)
15422 # +Z the default
15425 lt_prog_compiler_pic_CXX='+Z'
15427 esac
15431 esac
15433 interix*)
15434 # This is c89, which is MS Visual C++ (no shared libs)
15435 # Anyone wants to do a port?
15437 irix5* | irix6* | nonstopux*)
15438 case $cc_basename in
15439 CC*)
15440 lt_prog_compiler_wl_CXX='-Wl,'
15441 lt_prog_compiler_static_CXX='-non_shared'
15442 # CC pic flag -KPIC is the default.
15446 esac
15448 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15449 case $cc_basename in
15450 KCC*)
15451 # KAI C++ Compiler
15452 lt_prog_compiler_wl_CXX='--backend -Wl,'
15453 lt_prog_compiler_pic_CXX='-fPIC'
15455 ecpc* )
15456 # old Intel C++ for x86_64 which still supported -KPIC.
15457 lt_prog_compiler_wl_CXX='-Wl,'
15458 lt_prog_compiler_pic_CXX='-KPIC'
15459 lt_prog_compiler_static_CXX='-static'
15461 icpc* )
15462 # Intel C++, used to be incompatible with GCC.
15463 # ICC 10 doesn't accept -KPIC any more.
15464 lt_prog_compiler_wl_CXX='-Wl,'
15465 lt_prog_compiler_pic_CXX='-fPIC'
15466 lt_prog_compiler_static_CXX='-static'
15468 pgCC* | pgcpp*)
15469 # Portland Group C++ compiler
15470 lt_prog_compiler_wl_CXX='-Wl,'
15471 lt_prog_compiler_pic_CXX='-fpic'
15472 lt_prog_compiler_static_CXX='-Bstatic'
15474 cxx*)
15475 # Compaq C++
15476 # Make sure the PIC flag is empty. It appears that all Alpha
15477 # Linux and Compaq Tru64 Unix objects are PIC.
15478 lt_prog_compiler_pic_CXX=
15479 lt_prog_compiler_static_CXX='-non_shared'
15481 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15482 # IBM XL 8.0, 9.0 on PPC and BlueGene
15483 lt_prog_compiler_wl_CXX='-Wl,'
15484 lt_prog_compiler_pic_CXX='-qpic'
15485 lt_prog_compiler_static_CXX='-qstaticlink'
15488 case `$CC -V 2>&1 | sed 5q` in
15489 *Sun\ C*)
15490 # Sun C++ 5.9
15491 lt_prog_compiler_pic_CXX='-KPIC'
15492 lt_prog_compiler_static_CXX='-Bstatic'
15493 lt_prog_compiler_wl_CXX='-Qoption ld '
15495 esac
15497 esac
15499 lynxos*)
15501 m88k*)
15503 mvs*)
15504 case $cc_basename in
15505 cxx*)
15506 lt_prog_compiler_pic_CXX='-W c,exportall'
15510 esac
15512 netbsd*)
15514 *qnx* | *nto*)
15515 # QNX uses GNU C++, but need to define -shared option too, otherwise
15516 # it will coredump.
15517 lt_prog_compiler_pic_CXX='-fPIC -shared'
15519 osf3* | osf4* | osf5*)
15520 case $cc_basename in
15521 KCC*)
15522 lt_prog_compiler_wl_CXX='--backend -Wl,'
15524 RCC*)
15525 # Rational C++ 2.4.1
15526 lt_prog_compiler_pic_CXX='-pic'
15528 cxx*)
15529 # Digital/Compaq C++
15530 lt_prog_compiler_wl_CXX='-Wl,'
15531 # Make sure the PIC flag is empty. It appears that all Alpha
15532 # Linux and Compaq Tru64 Unix objects are PIC.
15533 lt_prog_compiler_pic_CXX=
15534 lt_prog_compiler_static_CXX='-non_shared'
15538 esac
15540 psos*)
15542 solaris*)
15543 case $cc_basename in
15544 CC*)
15545 # Sun C++ 4.2, 5.x and Centerline C++
15546 lt_prog_compiler_pic_CXX='-KPIC'
15547 lt_prog_compiler_static_CXX='-Bstatic'
15548 lt_prog_compiler_wl_CXX='-Qoption ld '
15550 gcx*)
15551 # Green Hills C++ Compiler
15552 lt_prog_compiler_pic_CXX='-PIC'
15556 esac
15558 sunos4*)
15559 case $cc_basename in
15560 CC*)
15561 # Sun C++ 4.x
15562 lt_prog_compiler_pic_CXX='-pic'
15563 lt_prog_compiler_static_CXX='-Bstatic'
15565 lcc*)
15566 # Lucid
15567 lt_prog_compiler_pic_CXX='-pic'
15571 esac
15573 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15574 case $cc_basename in
15575 CC*)
15576 lt_prog_compiler_wl_CXX='-Wl,'
15577 lt_prog_compiler_pic_CXX='-KPIC'
15578 lt_prog_compiler_static_CXX='-Bstatic'
15580 esac
15582 tandem*)
15583 case $cc_basename in
15584 NCC*)
15585 # NonStop-UX NCC 3.20
15586 lt_prog_compiler_pic_CXX='-KPIC'
15590 esac
15592 vxworks*)
15595 lt_prog_compiler_can_build_shared_CXX=no
15597 esac
15600 case $host_os in
15601 # For platforms which do not support PIC, -DPIC is meaningless:
15602 *djgpp*)
15603 lt_prog_compiler_pic_CXX=
15606 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15608 esac
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15610 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15615 # Check to make sure the PIC flag actually works.
15617 if test -n "$lt_prog_compiler_pic_CXX"; then
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15619 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15620 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15621 $as_echo_n "(cached) " >&6
15622 else
15623 lt_cv_prog_compiler_pic_works_CXX=no
15624 ac_outfile=conftest.$ac_objext
15625 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15626 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15627 # Insert the option either (1) after the last *FLAGS variable, or
15628 # (2) before a word containing "conftest.", or (3) at the end.
15629 # Note that $ac_compile itself does not contain backslashes and begins
15630 # with a dollar sign (not a hyphen), so the echo should work correctly.
15631 # The option is referenced via a variable to avoid confusing sed.
15632 lt_compile=`echo "$ac_compile" | $SED \
15633 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15634 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15635 -e 's:$: $lt_compiler_flag:'`
15636 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15637 (eval "$lt_compile" 2>conftest.err)
15638 ac_status=$?
15639 cat conftest.err >&5
15640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 if (exit $ac_status) && test -s "$ac_outfile"; then
15642 # The compiler can only warn and ignore the option if not recognized
15643 # So say no if there are warnings other than the usual output.
15644 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15645 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15646 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15647 lt_cv_prog_compiler_pic_works_CXX=yes
15650 $RM conftest*
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15654 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15656 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15657 case $lt_prog_compiler_pic_CXX in
15658 "" | " "*) ;;
15659 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15660 esac
15661 else
15662 lt_prog_compiler_pic_CXX=
15663 lt_prog_compiler_can_build_shared_CXX=no
15671 # Check to make sure the static flag actually works.
15673 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15675 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15676 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15677 $as_echo_n "(cached) " >&6
15678 else
15679 lt_cv_prog_compiler_static_works_CXX=no
15680 save_LDFLAGS="$LDFLAGS"
15681 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15682 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15683 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15684 # The linker can only warn and ignore the option if not recognized
15685 # So say no if there are warnings
15686 if test -s conftest.err; then
15687 # Append any errors to the config.log.
15688 cat conftest.err 1>&5
15689 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15690 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15691 if diff conftest.exp conftest.er2 >/dev/null; then
15692 lt_cv_prog_compiler_static_works_CXX=yes
15694 else
15695 lt_cv_prog_compiler_static_works_CXX=yes
15698 $RM -r conftest*
15699 LDFLAGS="$save_LDFLAGS"
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15703 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15705 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15707 else
15708 lt_prog_compiler_static_CXX=
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15715 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15716 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15717 $as_echo_n "(cached) " >&6
15718 else
15719 lt_cv_prog_compiler_c_o_CXX=no
15720 $RM -r conftest 2>/dev/null
15721 mkdir conftest
15722 cd conftest
15723 mkdir out
15724 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15726 lt_compiler_flag="-o out/conftest2.$ac_objext"
15727 # Insert the option either (1) after the last *FLAGS variable, or
15728 # (2) before a word containing "conftest.", or (3) at the end.
15729 # Note that $ac_compile itself does not contain backslashes and begins
15730 # with a dollar sign (not a hyphen), so the echo should work correctly.
15731 lt_compile=`echo "$ac_compile" | $SED \
15732 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15733 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15734 -e 's:$: $lt_compiler_flag:'`
15735 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15736 (eval "$lt_compile" 2>out/conftest.err)
15737 ac_status=$?
15738 cat out/conftest.err >&5
15739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15741 then
15742 # The compiler can only warn and ignore the option if not recognized
15743 # So say no if there are warnings
15744 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15745 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15746 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15747 lt_cv_prog_compiler_c_o_CXX=yes
15750 chmod u+w . 2>&5
15751 $RM conftest*
15752 # SGI C++ compiler will create directory out/ii_files/ for
15753 # template instantiation
15754 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15755 $RM out/* && rmdir out
15756 cd ..
15757 $RM -r conftest
15758 $RM conftest*
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15762 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15767 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15768 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15769 $as_echo_n "(cached) " >&6
15770 else
15771 lt_cv_prog_compiler_c_o_CXX=no
15772 $RM -r conftest 2>/dev/null
15773 mkdir conftest
15774 cd conftest
15775 mkdir out
15776 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15778 lt_compiler_flag="-o out/conftest2.$ac_objext"
15779 # Insert the option either (1) after the last *FLAGS variable, or
15780 # (2) before a word containing "conftest.", or (3) at the end.
15781 # Note that $ac_compile itself does not contain backslashes and begins
15782 # with a dollar sign (not a hyphen), so the echo should work correctly.
15783 lt_compile=`echo "$ac_compile" | $SED \
15784 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15785 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15786 -e 's:$: $lt_compiler_flag:'`
15787 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15788 (eval "$lt_compile" 2>out/conftest.err)
15789 ac_status=$?
15790 cat out/conftest.err >&5
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15793 then
15794 # The compiler can only warn and ignore the option if not recognized
15795 # So say no if there are warnings
15796 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15797 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15798 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15799 lt_cv_prog_compiler_c_o_CXX=yes
15802 chmod u+w . 2>&5
15803 $RM conftest*
15804 # SGI C++ compiler will create directory out/ii_files/ for
15805 # template instantiation
15806 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15807 $RM out/* && rmdir out
15808 cd ..
15809 $RM -r conftest
15810 $RM conftest*
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15814 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15819 hard_links="nottested"
15820 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15821 # do not overwrite the value of need_locks provided by the user
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15823 $as_echo_n "checking if we can lock with hard links... " >&6; }
15824 hard_links=yes
15825 $RM conftest*
15826 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15827 touch conftest.a
15828 ln conftest.a conftest.b 2>&5 || hard_links=no
15829 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15831 $as_echo "$hard_links" >&6; }
15832 if test "$hard_links" = no; then
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15834 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15835 need_locks=warn
15837 else
15838 need_locks=no
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15844 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15846 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15847 case $host_os in
15848 aix[4-9]*)
15849 # If we're using GNU nm, then we don't want the "-C" option.
15850 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15851 # Also, AIX nm treats weak defined symbols like other global defined
15852 # symbols, whereas GNU nm marks them as "W".
15853 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15854 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'
15855 else
15856 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'
15859 pw32*)
15860 export_symbols_cmds_CXX="$ltdll_cmds"
15862 cygwin* | mingw* | cegcc*)
15863 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'
15866 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15868 esac
15869 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15872 $as_echo "$ld_shlibs_CXX" >&6; }
15873 test "$ld_shlibs_CXX" = no && can_build_shared=no
15875 with_gnu_ld_CXX=$with_gnu_ld
15883 # Do we need to explicitly link libc?
15885 case "x$archive_cmds_need_lc_CXX" in
15886 x|xyes)
15887 # Assume -lc should be added
15888 archive_cmds_need_lc_CXX=yes
15890 if test "$enable_shared" = yes && test "$GCC" = yes; then
15891 case $archive_cmds_CXX in
15892 *'~'*)
15893 # FIXME: we may have to deal with multi-command sequences.
15895 '$CC '*)
15896 # Test whether the compiler implicitly links with -lc since on some
15897 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15898 # to ld, don't add -lc before -lgcc.
15899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15900 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15901 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15902 $as_echo_n "(cached) " >&6
15903 else
15904 $RM conftest*
15905 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15907 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15908 (eval $ac_compile) 2>&5
15909 ac_status=$?
15910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15911 test $ac_status = 0; } 2>conftest.err; then
15912 soname=conftest
15913 lib=conftest
15914 libobjs=conftest.$ac_objext
15915 deplibs=
15916 wl=$lt_prog_compiler_wl_CXX
15917 pic_flag=$lt_prog_compiler_pic_CXX
15918 compiler_flags=-v
15919 linker_flags=-v
15920 verstring=
15921 output_objdir=.
15922 libname=conftest
15923 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15924 allow_undefined_flag_CXX=
15925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15926 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15927 ac_status=$?
15928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15929 test $ac_status = 0; }
15930 then
15931 lt_cv_archive_cmds_need_lc_CXX=no
15932 else
15933 lt_cv_archive_cmds_need_lc_CXX=yes
15935 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15936 else
15937 cat conftest.err 1>&5
15939 $RM conftest*
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15943 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15944 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15946 esac
15949 esac
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16015 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16017 library_names_spec=
16018 libname_spec='lib$name'
16019 soname_spec=
16020 shrext_cmds=".so"
16021 postinstall_cmds=
16022 postuninstall_cmds=
16023 finish_cmds=
16024 finish_eval=
16025 shlibpath_var=
16026 shlibpath_overrides_runpath=unknown
16027 version_type=none
16028 dynamic_linker="$host_os ld.so"
16029 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16030 need_lib_prefix=unknown
16031 hardcode_into_libs=no
16033 # when you set need_version to no, make sure it does not cause -set_version
16034 # flags to be left without arguments
16035 need_version=unknown
16037 case $host_os in
16038 aix3*)
16039 version_type=linux
16040 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16041 shlibpath_var=LIBPATH
16043 # AIX 3 has no versioning support, so we append a major version to the name.
16044 soname_spec='${libname}${release}${shared_ext}$major'
16047 aix[4-9]*)
16048 version_type=linux
16049 need_lib_prefix=no
16050 need_version=no
16051 hardcode_into_libs=yes
16052 if test "$host_cpu" = ia64; then
16053 # AIX 5 supports IA64
16054 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16055 shlibpath_var=LD_LIBRARY_PATH
16056 else
16057 # With GCC up to 2.95.x, collect2 would create an import file
16058 # for dependence libraries. The import file would start with
16059 # the line `#! .'. This would cause the generated library to
16060 # depend on `.', always an invalid library. This was fixed in
16061 # development snapshots of GCC prior to 3.0.
16062 case $host_os in
16063 aix4 | aix4.[01] | aix4.[01].*)
16064 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16065 echo ' yes '
16066 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16068 else
16069 can_build_shared=no
16072 esac
16073 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16074 # soname into executable. Probably we can add versioning support to
16075 # collect2, so additional links can be useful in future.
16076 if test "$aix_use_runtimelinking" = yes; then
16077 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16078 # instead of lib<name>.a to let people know that these are not
16079 # typical AIX shared libraries.
16080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16081 else
16082 # We preserve .a as extension for shared libraries through AIX4.2
16083 # and later when we are not doing run time linking.
16084 library_names_spec='${libname}${release}.a $libname.a'
16085 soname_spec='${libname}${release}${shared_ext}$major'
16087 shlibpath_var=LIBPATH
16091 amigaos*)
16092 case $host_cpu in
16093 powerpc)
16094 # Since July 2007 AmigaOS4 officially supports .so libraries.
16095 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16098 m68k)
16099 library_names_spec='$libname.ixlibrary $libname.a'
16100 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16101 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'
16103 esac
16106 beos*)
16107 library_names_spec='${libname}${shared_ext}'
16108 dynamic_linker="$host_os ld.so"
16109 shlibpath_var=LIBRARY_PATH
16112 bsdi[45]*)
16113 version_type=linux
16114 need_version=no
16115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16116 soname_spec='${libname}${release}${shared_ext}$major'
16117 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16118 shlibpath_var=LD_LIBRARY_PATH
16119 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16120 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16121 # the default ld.so.conf also contains /usr/contrib/lib and
16122 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16123 # libtool to hard-code these into programs
16126 cygwin* | mingw* | pw32* | cegcc*)
16127 version_type=windows
16128 shrext_cmds=".dll"
16129 need_version=no
16130 need_lib_prefix=no
16132 case $GCC,$host_os in
16133 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16134 library_names_spec='$libname.dll.a'
16135 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16136 postinstall_cmds='base_file=`basename \${file}`~
16137 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16138 dldir=$destdir/`dirname \$dlpath`~
16139 test -d \$dldir || mkdir -p \$dldir~
16140 $install_prog $dir/$dlname \$dldir/$dlname~
16141 chmod a+x \$dldir/$dlname~
16142 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16143 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16145 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16146 dlpath=$dir/\$dldll~
16147 $RM \$dlpath'
16148 shlibpath_overrides_runpath=yes
16150 case $host_os in
16151 cygwin*)
16152 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16153 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16156 mingw* | cegcc*)
16157 # MinGW DLLs use traditional 'lib' prefix
16158 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16160 pw32*)
16161 # pw32 DLLs use 'pw' prefix rather than 'lib'
16162 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16164 esac
16168 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16170 esac
16171 dynamic_linker='Win32 ld.exe'
16172 # FIXME: first we should search . and the directory the executable is in
16173 shlibpath_var=PATH
16176 darwin* | rhapsody*)
16177 dynamic_linker="$host_os dyld"
16178 version_type=darwin
16179 need_lib_prefix=no
16180 need_version=no
16181 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16182 soname_spec='${libname}${release}${major}$shared_ext'
16183 shlibpath_overrides_runpath=yes
16184 shlibpath_var=DYLD_LIBRARY_PATH
16185 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16187 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16190 dgux*)
16191 version_type=linux
16192 need_lib_prefix=no
16193 need_version=no
16194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16195 soname_spec='${libname}${release}${shared_ext}$major'
16196 shlibpath_var=LD_LIBRARY_PATH
16199 freebsd* | dragonfly*)
16200 # DragonFly does not have aout. When/if they implement a new
16201 # versioning mechanism, adjust this.
16202 if test -x /usr/bin/objformat; then
16203 objformat=`/usr/bin/objformat`
16204 else
16205 case $host_os in
16206 freebsd[23].*) objformat=aout ;;
16207 *) objformat=elf ;;
16208 esac
16210 version_type=freebsd-$objformat
16211 case $version_type in
16212 freebsd-elf*)
16213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16214 need_version=no
16215 need_lib_prefix=no
16217 freebsd-*)
16218 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16219 need_version=yes
16221 esac
16222 shlibpath_var=LD_LIBRARY_PATH
16223 case $host_os in
16224 freebsd2.*)
16225 shlibpath_overrides_runpath=yes
16227 freebsd3.[01]* | freebsdelf3.[01]*)
16228 shlibpath_overrides_runpath=yes
16229 hardcode_into_libs=yes
16231 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16232 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16233 shlibpath_overrides_runpath=no
16234 hardcode_into_libs=yes
16236 *) # from 4.6 on, and DragonFly
16237 shlibpath_overrides_runpath=yes
16238 hardcode_into_libs=yes
16240 esac
16243 gnu*)
16244 version_type=linux
16245 need_lib_prefix=no
16246 need_version=no
16247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16248 soname_spec='${libname}${release}${shared_ext}$major'
16249 shlibpath_var=LD_LIBRARY_PATH
16250 hardcode_into_libs=yes
16253 haiku*)
16254 version_type=linux
16255 need_lib_prefix=no
16256 need_version=no
16257 dynamic_linker="$host_os runtime_loader"
16258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16259 soname_spec='${libname}${release}${shared_ext}$major'
16260 shlibpath_var=LIBRARY_PATH
16261 shlibpath_overrides_runpath=yes
16262 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16263 hardcode_into_libs=yes
16266 hpux9* | hpux10* | hpux11*)
16267 # Give a soname corresponding to the major version so that dld.sl refuses to
16268 # link against other versions.
16269 version_type=sunos
16270 need_lib_prefix=no
16271 need_version=no
16272 case $host_cpu in
16273 ia64*)
16274 shrext_cmds='.so'
16275 hardcode_into_libs=yes
16276 dynamic_linker="$host_os dld.so"
16277 shlibpath_var=LD_LIBRARY_PATH
16278 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16280 soname_spec='${libname}${release}${shared_ext}$major'
16281 if test "X$HPUX_IA64_MODE" = X32; then
16282 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16283 else
16284 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16286 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16288 hppa*64*)
16289 shrext_cmds='.sl'
16290 hardcode_into_libs=yes
16291 dynamic_linker="$host_os dld.sl"
16292 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16293 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16295 soname_spec='${libname}${release}${shared_ext}$major'
16296 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16297 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16300 shrext_cmds='.sl'
16301 dynamic_linker="$host_os dld.sl"
16302 shlibpath_var=SHLIB_PATH
16303 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16305 soname_spec='${libname}${release}${shared_ext}$major'
16307 esac
16308 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16309 postinstall_cmds='chmod 555 $lib'
16310 # or fails outright, so override atomically:
16311 install_override_mode=555
16314 interix[3-9]*)
16315 version_type=linux
16316 need_lib_prefix=no
16317 need_version=no
16318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16319 soname_spec='${libname}${release}${shared_ext}$major'
16320 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16321 shlibpath_var=LD_LIBRARY_PATH
16322 shlibpath_overrides_runpath=no
16323 hardcode_into_libs=yes
16326 irix5* | irix6* | nonstopux*)
16327 case $host_os in
16328 nonstopux*) version_type=nonstopux ;;
16330 if test "$lt_cv_prog_gnu_ld" = yes; then
16331 version_type=linux
16332 else
16333 version_type=irix
16334 fi ;;
16335 esac
16336 need_lib_prefix=no
16337 need_version=no
16338 soname_spec='${libname}${release}${shared_ext}$major'
16339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16340 case $host_os in
16341 irix5* | nonstopux*)
16342 libsuff= shlibsuff=
16345 case $LD in # libtool.m4 will add one of these switches to LD
16346 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16347 libsuff= shlibsuff= libmagic=32-bit;;
16348 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16349 libsuff=32 shlibsuff=N32 libmagic=N32;;
16350 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16351 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16352 *) libsuff= shlibsuff= libmagic=never-match;;
16353 esac
16355 esac
16356 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16357 shlibpath_overrides_runpath=no
16358 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16359 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16360 hardcode_into_libs=yes
16363 # No shared lib support for Linux oldld, aout, or coff.
16364 linux*oldld* | linux*aout* | linux*coff*)
16365 dynamic_linker=no
16368 # This must be Linux ELF.
16369 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16370 version_type=linux
16371 need_lib_prefix=no
16372 need_version=no
16373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16374 soname_spec='${libname}${release}${shared_ext}$major'
16375 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16376 shlibpath_var=LD_LIBRARY_PATH
16377 shlibpath_overrides_runpath=no
16379 # Some binutils ld are patched to set DT_RUNPATH
16380 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16381 $as_echo_n "(cached) " >&6
16382 else
16383 lt_cv_shlibpath_overrides_runpath=no
16384 save_LDFLAGS=$LDFLAGS
16385 save_libdir=$libdir
16386 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16387 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16388 if test x$gcc_no_link = xyes; then
16389 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16392 /* end confdefs.h. */
16395 main ()
16399 return 0;
16401 _ACEOF
16402 if ac_fn_cxx_try_link "$LINENO"; then :
16403 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16404 lt_cv_shlibpath_overrides_runpath=yes
16407 rm -f core conftest.err conftest.$ac_objext \
16408 conftest$ac_exeext conftest.$ac_ext
16409 LDFLAGS=$save_LDFLAGS
16410 libdir=$save_libdir
16414 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16416 # This implies no fast_install, which is unacceptable.
16417 # Some rework will be needed to allow for fast_install
16418 # before this can be enabled.
16419 hardcode_into_libs=yes
16421 # Append ld.so.conf contents to the search path
16422 if test -f /etc/ld.so.conf; then
16423 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' ' '`
16424 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16427 # We used to test for /lib/ld.so.1 and disable shared libraries on
16428 # powerpc, because MkLinux only supported shared libraries with the
16429 # GNU dynamic linker. Since this was broken with cross compilers,
16430 # most powerpc-linux boxes support dynamic linking these days and
16431 # people can always --disable-shared, the test was removed, and we
16432 # assume the GNU/Linux dynamic linker is in use.
16433 dynamic_linker='GNU/Linux ld.so'
16436 netbsd*)
16437 version_type=sunos
16438 need_lib_prefix=no
16439 need_version=no
16440 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16443 dynamic_linker='NetBSD (a.out) ld.so'
16444 else
16445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16446 soname_spec='${libname}${release}${shared_ext}$major'
16447 dynamic_linker='NetBSD ld.elf_so'
16449 shlibpath_var=LD_LIBRARY_PATH
16450 shlibpath_overrides_runpath=yes
16451 hardcode_into_libs=yes
16454 newsos6)
16455 version_type=linux
16456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16457 shlibpath_var=LD_LIBRARY_PATH
16458 shlibpath_overrides_runpath=yes
16461 *nto* | *qnx*)
16462 version_type=qnx
16463 need_lib_prefix=no
16464 need_version=no
16465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16466 soname_spec='${libname}${release}${shared_ext}$major'
16467 shlibpath_var=LD_LIBRARY_PATH
16468 shlibpath_overrides_runpath=no
16469 hardcode_into_libs=yes
16470 dynamic_linker='ldqnx.so'
16473 openbsd*)
16474 version_type=sunos
16475 sys_lib_dlsearch_path_spec="/usr/lib"
16476 need_lib_prefix=no
16477 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16478 case $host_os in
16479 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16480 *) need_version=no ;;
16481 esac
16482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16483 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16484 shlibpath_var=LD_LIBRARY_PATH
16485 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16486 case $host_os in
16487 openbsd2.[89] | openbsd2.[89].*)
16488 shlibpath_overrides_runpath=no
16491 shlibpath_overrides_runpath=yes
16493 esac
16494 else
16495 shlibpath_overrides_runpath=yes
16499 os2*)
16500 libname_spec='$name'
16501 shrext_cmds=".dll"
16502 need_lib_prefix=no
16503 library_names_spec='$libname${shared_ext} $libname.a'
16504 dynamic_linker='OS/2 ld.exe'
16505 shlibpath_var=LIBPATH
16508 osf3* | osf4* | osf5*)
16509 version_type=osf
16510 need_lib_prefix=no
16511 need_version=no
16512 soname_spec='${libname}${release}${shared_ext}$major'
16513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16514 shlibpath_var=LD_LIBRARY_PATH
16515 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16516 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16519 rdos*)
16520 dynamic_linker=no
16523 solaris*)
16524 version_type=linux
16525 need_lib_prefix=no
16526 need_version=no
16527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16528 soname_spec='${libname}${release}${shared_ext}$major'
16529 shlibpath_var=LD_LIBRARY_PATH
16530 shlibpath_overrides_runpath=yes
16531 hardcode_into_libs=yes
16532 # ldd complains unless libraries are executable
16533 postinstall_cmds='chmod +x $lib'
16536 sunos4*)
16537 version_type=sunos
16538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16539 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16540 shlibpath_var=LD_LIBRARY_PATH
16541 shlibpath_overrides_runpath=yes
16542 if test "$with_gnu_ld" = yes; then
16543 need_lib_prefix=no
16545 need_version=yes
16548 sysv4 | sysv4.3*)
16549 version_type=linux
16550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16551 soname_spec='${libname}${release}${shared_ext}$major'
16552 shlibpath_var=LD_LIBRARY_PATH
16553 case $host_vendor in
16554 sni)
16555 shlibpath_overrides_runpath=no
16556 need_lib_prefix=no
16557 runpath_var=LD_RUN_PATH
16559 siemens)
16560 need_lib_prefix=no
16562 motorola)
16563 need_lib_prefix=no
16564 need_version=no
16565 shlibpath_overrides_runpath=no
16566 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16568 esac
16571 sysv4*MP*)
16572 if test -d /usr/nec ;then
16573 version_type=linux
16574 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16575 soname_spec='$libname${shared_ext}.$major'
16576 shlibpath_var=LD_LIBRARY_PATH
16580 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16581 version_type=freebsd-elf
16582 need_lib_prefix=no
16583 need_version=no
16584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16585 soname_spec='${libname}${release}${shared_ext}$major'
16586 shlibpath_var=LD_LIBRARY_PATH
16587 shlibpath_overrides_runpath=yes
16588 hardcode_into_libs=yes
16589 if test "$with_gnu_ld" = yes; then
16590 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16591 else
16592 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16593 case $host_os in
16594 sco3.2v5*)
16595 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16597 esac
16599 sys_lib_dlsearch_path_spec='/usr/lib'
16602 tpf*)
16603 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16604 version_type=linux
16605 need_lib_prefix=no
16606 need_version=no
16607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16608 shlibpath_var=LD_LIBRARY_PATH
16609 shlibpath_overrides_runpath=no
16610 hardcode_into_libs=yes
16613 uts4*)
16614 version_type=linux
16615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16616 soname_spec='${libname}${release}${shared_ext}$major'
16617 shlibpath_var=LD_LIBRARY_PATH
16621 dynamic_linker=no
16623 esac
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16625 $as_echo "$dynamic_linker" >&6; }
16626 test "$dynamic_linker" = no && can_build_shared=no
16628 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16629 if test "$GCC" = yes; then
16630 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16633 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16634 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16636 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16637 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16678 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16679 hardcode_action_CXX=
16680 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16681 test -n "$runpath_var_CXX" ||
16682 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16684 # We can hardcode non-existent directories.
16685 if test "$hardcode_direct_CXX" != no &&
16686 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16687 # have to relink, otherwise we might link with an installed library
16688 # when we should be linking with a yet-to-be-installed one
16689 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16690 test "$hardcode_minus_L_CXX" != no; then
16691 # Linking always hardcodes the temporary library directory.
16692 hardcode_action_CXX=relink
16693 else
16694 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16695 hardcode_action_CXX=immediate
16697 else
16698 # We cannot hardcode anything, or else we can only hardcode existing
16699 # directories.
16700 hardcode_action_CXX=unsupported
16702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16703 $as_echo "$hardcode_action_CXX" >&6; }
16705 if test "$hardcode_action_CXX" = relink ||
16706 test "$inherit_rpath_CXX" = yes; then
16707 # Fast installation is not supported
16708 enable_fast_install=no
16709 elif test "$shlibpath_overrides_runpath" = yes ||
16710 test "$enable_shared" = no; then
16711 # Fast installation is not necessary
16712 enable_fast_install=needless
16721 fi # test -n "$compiler"
16723 CC=$lt_save_CC
16724 LDCXX=$LD
16725 LD=$lt_save_LD
16726 GCC=$lt_save_GCC
16727 with_gnu_ld=$lt_save_with_gnu_ld
16728 lt_cv_path_LDCXX=$lt_cv_path_LD
16729 lt_cv_path_LD=$lt_save_path_LD
16730 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16731 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16732 fi # test "$_lt_caught_CXX_error" != yes
16734 ac_ext=c
16735 ac_cpp='$CPP $CPPFLAGS'
16736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16752 ac_config_commands="$ac_config_commands libtool"
16757 # Only expand once:
16763 case $host in
16764 *-cygwin* | *-mingw*)
16765 # 'host' will be top-level target in the case of a target lib,
16766 # we must compare to with_cross_host to decide if this is a native
16767 # or cross-compiler and select where to install dlls appropriately.
16768 if test -n "$with_cross_host" &&
16769 test x"$with_cross_host" != x"no"; then
16770 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
16771 else
16772 lt_host_flags='-no-undefined -bindir "$(bindir)"';
16776 lt_host_flags=
16778 esac
16783 if test -n "$ac_tool_prefix"; then
16784 for ac_prog in gcj
16786 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16787 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16789 $as_echo_n "checking for $ac_word... " >&6; }
16790 if test "${ac_cv_prog_GCJ+set}" = set; then :
16791 $as_echo_n "(cached) " >&6
16792 else
16793 if test -n "$GCJ"; then
16794 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16795 else
16796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16797 for as_dir in $PATH
16799 IFS=$as_save_IFS
16800 test -z "$as_dir" && as_dir=.
16801 for ac_exec_ext in '' $ac_executable_extensions; do
16802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16803 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
16804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16805 break 2
16807 done
16808 done
16809 IFS=$as_save_IFS
16813 GCJ=$ac_cv_prog_GCJ
16814 if test -n "$GCJ"; then
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16816 $as_echo "$GCJ" >&6; }
16817 else
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16819 $as_echo "no" >&6; }
16823 test -n "$GCJ" && break
16824 done
16826 if test -z "$GCJ"; then
16827 ac_ct_GCJ=$GCJ
16828 for ac_prog in gcj
16830 # Extract the first word of "$ac_prog", so it can be a program name with args.
16831 set dummy $ac_prog; ac_word=$2
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16833 $as_echo_n "checking for $ac_word... " >&6; }
16834 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
16835 $as_echo_n "(cached) " >&6
16836 else
16837 if test -n "$ac_ct_GCJ"; then
16838 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
16839 else
16840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16841 for as_dir in $PATH
16843 IFS=$as_save_IFS
16844 test -z "$as_dir" && as_dir=.
16845 for ac_exec_ext in '' $ac_executable_extensions; do
16846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16847 ac_cv_prog_ac_ct_GCJ="$ac_prog"
16848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16849 break 2
16851 done
16852 done
16853 IFS=$as_save_IFS
16857 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
16858 if test -n "$ac_ct_GCJ"; then
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
16860 $as_echo "$ac_ct_GCJ" >&6; }
16861 else
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16863 $as_echo "no" >&6; }
16867 test -n "$ac_ct_GCJ" && break
16868 done
16870 if test "x$ac_ct_GCJ" = x; then
16871 GCJ="gcj"
16872 else
16873 case $cross_compiling:$ac_tool_warned in
16874 yes:)
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16877 ac_tool_warned=yes ;;
16878 esac
16879 GCJ=$ac_ct_GCJ
16883 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
16884 if test "x${GCJFLAGS-unset}" = xunset; then
16885 GCJFLAGS="-g -O2"
16889 depcc="$GCJ" am_compiler_list='gcc3 gcc'
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16892 $as_echo_n "checking dependency style of $depcc... " >&6; }
16893 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16894 $as_echo_n "(cached) " >&6
16895 else
16896 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16897 # We make a subdir and do the tests there. Otherwise we can end up
16898 # making bogus files that we don't know about and never remove. For
16899 # instance it was reported that on HP-UX the gcc test will end up
16900 # making a dummy file named `D' -- because `-MD' means `put the output
16901 # in D'.
16902 rm -rf conftest.dir
16903 mkdir conftest.dir
16904 # Copy depcomp to subdir because otherwise we won't find it if we're
16905 # using a relative directory.
16906 cp "$am_depcomp" conftest.dir
16907 cd conftest.dir
16908 # We will build objects and dependencies in a subdirectory because
16909 # it helps to detect inapplicable dependency modes. For instance
16910 # both Tru64's cc and ICC support -MD to output dependencies as a
16911 # side effect of compilation, but ICC will put the dependencies in
16912 # the current directory while Tru64 will put them in the object
16913 # directory.
16914 mkdir sub
16916 am_cv_GCJ_dependencies_compiler_type=none
16917 if test "$am_compiler_list" = ""; then
16918 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16920 am__universal=false
16923 for depmode in $am_compiler_list; do
16924 # Setup a source with many dependencies, because some compilers
16925 # like to wrap large dependency lists on column 80 (with \), and
16926 # we should not choose a depcomp mode which is confused by this.
16928 # We need to recreate these files for each test, as the compiler may
16929 # overwrite some of them when testing with obscure command lines.
16930 # This happens at least with the AIX C compiler.
16931 : > sub/conftest.c
16932 for i in 1 2 3 4 5 6; do
16933 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16934 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16935 # Solaris 8's {/usr,}/bin/sh.
16936 touch sub/conftst$i.h
16937 done
16938 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16940 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16941 # mode. It turns out that the SunPro C++ compiler does not properly
16942 # handle `-M -o', and we need to detect this. Also, some Intel
16943 # versions had trouble with output in subdirs
16944 am__obj=sub/conftest.${OBJEXT-o}
16945 am__minus_obj="-o $am__obj"
16946 case $depmode in
16947 gcc)
16948 # This depmode causes a compiler race in universal mode.
16949 test "$am__universal" = false || continue
16951 nosideeffect)
16952 # after this tag, mechanisms are not by side-effect, so they'll
16953 # only be used when explicitly requested
16954 if test "x$enable_dependency_tracking" = xyes; then
16955 continue
16956 else
16957 break
16960 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
16961 # This compiler won't grok `-c -o', but also, the minuso test has
16962 # not run yet. These depmodes are late enough in the game, and
16963 # so weak that their functioning should not be impacted.
16964 am__obj=conftest.${OBJEXT-o}
16965 am__minus_obj=
16967 none) break ;;
16968 esac
16969 if depmode=$depmode \
16970 source=sub/conftest.c object=$am__obj \
16971 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16972 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16973 >/dev/null 2>conftest.err &&
16974 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16975 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16976 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16977 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16978 # icc doesn't choke on unknown options, it will just issue warnings
16979 # or remarks (even with -Werror). So we grep stderr for any message
16980 # that says an option was ignored or not supported.
16981 # When given -MP, icc 7.0 and 7.1 complain thusly:
16982 # icc: Command line warning: ignoring option '-M'; no argument required
16983 # The diagnosis changed in icc 8.0:
16984 # icc: Command line remark: option '-MP' not supported
16985 if (grep 'ignoring option' conftest.err ||
16986 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16987 am_cv_GCJ_dependencies_compiler_type=$depmode
16988 break
16991 done
16993 cd ..
16994 rm -rf conftest.dir
16995 else
16996 am_cv_GCJ_dependencies_compiler_type=none
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
17001 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
17002 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
17005 test "x$enable_dependency_tracking" != xno \
17006 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
17007 am__fastdepGCJ_TRUE=
17008 am__fastdepGCJ_FALSE='#'
17009 else
17010 am__fastdepGCJ_TRUE='#'
17011 am__fastdepGCJ_FALSE=
17016 if test -n "$ac_tool_prefix"; then
17017 for ac_prog in gcj
17019 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17020 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17022 $as_echo_n "checking for $ac_word... " >&6; }
17023 if test "${ac_cv_prog_GCJ+set}" = set; then :
17024 $as_echo_n "(cached) " >&6
17025 else
17026 if test -n "$GCJ"; then
17027 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
17028 else
17029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17030 for as_dir in $PATH
17032 IFS=$as_save_IFS
17033 test -z "$as_dir" && as_dir=.
17034 for ac_exec_ext in '' $ac_executable_extensions; do
17035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17036 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
17037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17038 break 2
17040 done
17041 done
17042 IFS=$as_save_IFS
17046 GCJ=$ac_cv_prog_GCJ
17047 if test -n "$GCJ"; then
17048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
17049 $as_echo "$GCJ" >&6; }
17050 else
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17052 $as_echo "no" >&6; }
17056 test -n "$GCJ" && break
17057 done
17059 if test -z "$GCJ"; then
17060 ac_ct_GCJ=$GCJ
17061 for ac_prog in gcj
17063 # Extract the first word of "$ac_prog", so it can be a program name with args.
17064 set dummy $ac_prog; ac_word=$2
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17066 $as_echo_n "checking for $ac_word... " >&6; }
17067 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
17068 $as_echo_n "(cached) " >&6
17069 else
17070 if test -n "$ac_ct_GCJ"; then
17071 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
17072 else
17073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17074 for as_dir in $PATH
17076 IFS=$as_save_IFS
17077 test -z "$as_dir" && as_dir=.
17078 for ac_exec_ext in '' $ac_executable_extensions; do
17079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17080 ac_cv_prog_ac_ct_GCJ="$ac_prog"
17081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17082 break 2
17084 done
17085 done
17086 IFS=$as_save_IFS
17090 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
17091 if test -n "$ac_ct_GCJ"; then
17092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
17093 $as_echo "$ac_ct_GCJ" >&6; }
17094 else
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17096 $as_echo "no" >&6; }
17100 test -n "$ac_ct_GCJ" && break
17101 done
17103 if test "x$ac_ct_GCJ" = x; then
17104 GCJ="gcj"
17105 else
17106 case $cross_compiling:$ac_tool_warned in
17107 yes:)
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17110 ac_tool_warned=yes ;;
17111 esac
17112 GCJ=$ac_ct_GCJ
17116 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
17117 if test "x${GCJFLAGS-unset}" = xunset; then
17118 GCJFLAGS="-g -O2"
17122 depcc="$GCJ" am_compiler_list='gcc3 gcc'
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17125 $as_echo_n "checking dependency style of $depcc... " >&6; }
17126 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
17127 $as_echo_n "(cached) " >&6
17128 else
17129 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17130 # We make a subdir and do the tests there. Otherwise we can end up
17131 # making bogus files that we don't know about and never remove. For
17132 # instance it was reported that on HP-UX the gcc test will end up
17133 # making a dummy file named `D' -- because `-MD' means `put the output
17134 # in D'.
17135 rm -rf conftest.dir
17136 mkdir conftest.dir
17137 # Copy depcomp to subdir because otherwise we won't find it if we're
17138 # using a relative directory.
17139 cp "$am_depcomp" conftest.dir
17140 cd conftest.dir
17141 # We will build objects and dependencies in a subdirectory because
17142 # it helps to detect inapplicable dependency modes. For instance
17143 # both Tru64's cc and ICC support -MD to output dependencies as a
17144 # side effect of compilation, but ICC will put the dependencies in
17145 # the current directory while Tru64 will put them in the object
17146 # directory.
17147 mkdir sub
17149 am_cv_GCJ_dependencies_compiler_type=none
17150 if test "$am_compiler_list" = ""; then
17151 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17153 am__universal=false
17156 for depmode in $am_compiler_list; do
17157 # Setup a source with many dependencies, because some compilers
17158 # like to wrap large dependency lists on column 80 (with \), and
17159 # we should not choose a depcomp mode which is confused by this.
17161 # We need to recreate these files for each test, as the compiler may
17162 # overwrite some of them when testing with obscure command lines.
17163 # This happens at least with the AIX C compiler.
17164 : > sub/conftest.c
17165 for i in 1 2 3 4 5 6; do
17166 echo '#include "conftst'$i'.h"' >> sub/conftest.c
17167 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17168 # Solaris 8's {/usr,}/bin/sh.
17169 touch sub/conftst$i.h
17170 done
17171 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17173 # We check with `-c' and `-o' for the sake of the "dashmstdout"
17174 # mode. It turns out that the SunPro C++ compiler does not properly
17175 # handle `-M -o', and we need to detect this. Also, some Intel
17176 # versions had trouble with output in subdirs
17177 am__obj=sub/conftest.${OBJEXT-o}
17178 am__minus_obj="-o $am__obj"
17179 case $depmode in
17180 gcc)
17181 # This depmode causes a compiler race in universal mode.
17182 test "$am__universal" = false || continue
17184 nosideeffect)
17185 # after this tag, mechanisms are not by side-effect, so they'll
17186 # only be used when explicitly requested
17187 if test "x$enable_dependency_tracking" = xyes; then
17188 continue
17189 else
17190 break
17193 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
17194 # This compiler won't grok `-c -o', but also, the minuso test has
17195 # not run yet. These depmodes are late enough in the game, and
17196 # so weak that their functioning should not be impacted.
17197 am__obj=conftest.${OBJEXT-o}
17198 am__minus_obj=
17200 none) break ;;
17201 esac
17202 if depmode=$depmode \
17203 source=sub/conftest.c object=$am__obj \
17204 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17205 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17206 >/dev/null 2>conftest.err &&
17207 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17208 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17209 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17210 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17211 # icc doesn't choke on unknown options, it will just issue warnings
17212 # or remarks (even with -Werror). So we grep stderr for any message
17213 # that says an option was ignored or not supported.
17214 # When given -MP, icc 7.0 and 7.1 complain thusly:
17215 # icc: Command line warning: ignoring option '-M'; no argument required
17216 # The diagnosis changed in icc 8.0:
17217 # icc: Command line remark: option '-MP' not supported
17218 if (grep 'ignoring option' conftest.err ||
17219 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17220 am_cv_GCJ_dependencies_compiler_type=$depmode
17221 break
17224 done
17226 cd ..
17227 rm -rf conftest.dir
17228 else
17229 am_cv_GCJ_dependencies_compiler_type=none
17233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
17234 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
17235 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
17238 test "x$enable_dependency_tracking" != xno \
17239 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
17240 am__fastdepGCJ_TRUE=
17241 am__fastdepGCJ_FALSE='#'
17242 else
17243 am__fastdepGCJ_TRUE='#'
17244 am__fastdepGCJ_FALSE=
17251 # Source file extension for Java test sources.
17252 ac_ext=c
17254 # Object file extension for compiled Java test sources.
17255 objext=o
17256 objext_GCJ=$objext
17258 # Code to be used in simple compile tests
17259 lt_simple_compile_test_code="int some_variable = 0;"
17261 # Code to be used in simple link tests
17262 lt_simple_link_test_code='int main(){return(0);}'
17264 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17271 # If no C compiler was specified, use CC.
17272 LTCC=${LTCC-"$CC"}
17274 # If no C compiler flags were specified, use CFLAGS.
17275 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17277 # Allow CC to be a program name with arguments.
17278 compiler=$CC
17281 # save warnings/boilerplate of simple test code
17282 ac_outfile=conftest.$ac_objext
17283 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17284 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17285 _lt_compiler_boilerplate=`cat conftest.err`
17286 $RM conftest*
17288 ac_outfile=conftest.$ac_objext
17289 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17290 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17291 _lt_linker_boilerplate=`cat conftest.err`
17292 $RM -r conftest*
17295 # Allow CC to be a program name with arguments.
17296 GCC=yes
17297 compiler=$CC
17298 compiler_GCJ=$CC
17299 for cc_temp in $compiler""; do
17300 case $cc_temp in
17301 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17302 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17303 \-*) ;;
17304 *) break;;
17305 esac
17306 done
17307 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17310 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17311 archive_cmds_need_lc_GCJ=no
17313 old_archive_cmds_GCJ=$old_archive_cmds
17315 ## CAVEAT EMPTOR:
17316 ## There is no encapsulation within the following macros, do not change
17317 ## the running order or otherwise move them around unless you know exactly
17318 ## what you are doing...
17319 if test -n "$compiler"; then
17321 lt_prog_compiler_no_builtin_flag_GCJ=
17323 if test "$GCC" = yes; then
17324 case $cc_basename in
17325 nvcc*)
17326 lt_prog_compiler_no_builtin_flag_GCJ=' -Xcompiler -fno-builtin' ;;
17328 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' ;;
17329 esac
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17332 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17333 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
17334 $as_echo_n "(cached) " >&6
17335 else
17336 lt_cv_prog_compiler_rtti_exceptions=no
17337 ac_outfile=conftest.$ac_objext
17338 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17339 lt_compiler_flag="-fno-rtti -fno-exceptions"
17340 # Insert the option either (1) after the last *FLAGS variable, or
17341 # (2) before a word containing "conftest.", or (3) at the end.
17342 # Note that $ac_compile itself does not contain backslashes and begins
17343 # with a dollar sign (not a hyphen), so the echo should work correctly.
17344 # The option is referenced via a variable to avoid confusing sed.
17345 lt_compile=`echo "$ac_compile" | $SED \
17346 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17348 -e 's:$: $lt_compiler_flag:'`
17349 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17350 (eval "$lt_compile" 2>conftest.err)
17351 ac_status=$?
17352 cat conftest.err >&5
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 if (exit $ac_status) && test -s "$ac_outfile"; then
17355 # The compiler can only warn and ignore the option if not recognized
17356 # So say no if there are warnings other than the usual output.
17357 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17358 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17359 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17360 lt_cv_prog_compiler_rtti_exceptions=yes
17363 $RM conftest*
17366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17367 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17369 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17370 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17371 else
17379 lt_prog_compiler_wl_GCJ=
17380 lt_prog_compiler_pic_GCJ=
17381 lt_prog_compiler_static_GCJ=
17383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17384 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17386 if test "$GCC" = yes; then
17387 lt_prog_compiler_wl_GCJ='-Wl,'
17388 lt_prog_compiler_static_GCJ='-static'
17390 case $host_os in
17391 aix*)
17392 # All AIX code is PIC.
17393 if test "$host_cpu" = ia64; then
17394 # AIX 5 now supports IA64 processor
17395 lt_prog_compiler_static_GCJ='-Bstatic'
17397 lt_prog_compiler_pic_GCJ='-fPIC'
17400 amigaos*)
17401 case $host_cpu in
17402 powerpc)
17403 # see comment about AmigaOS4 .so support
17404 lt_prog_compiler_pic_GCJ='-fPIC'
17406 m68k)
17407 # FIXME: we need at least 68020 code to build shared libraries, but
17408 # adding the `-m68020' flag to GCC prevents building anything better,
17409 # like `-m68040'.
17410 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17412 esac
17415 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17416 # PIC is the default for these OSes.
17419 mingw* | cygwin* | pw32* | os2* | cegcc*)
17420 # This hack is so that the source file can tell whether it is being
17421 # built for inclusion in a dll (and should export symbols for example).
17422 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17423 # (--disable-auto-import) libraries
17427 darwin* | rhapsody*)
17428 # PIC is the default on this platform
17429 # Common symbols not allowed in MH_DYLIB files
17430 lt_prog_compiler_pic_GCJ='-fno-common'
17433 haiku*)
17434 # PIC is the default for Haiku.
17435 # The "-static" flag exists, but is broken.
17436 lt_prog_compiler_static_GCJ=
17439 hpux*)
17440 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17441 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17442 # sets the default TLS model and affects inlining.
17443 case $host_cpu in
17444 hppa*64*)
17445 # +Z the default
17448 lt_prog_compiler_pic_GCJ='-fPIC'
17450 esac
17453 interix[3-9]*)
17454 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17455 # Instead, we relocate shared libraries at runtime.
17458 msdosdjgpp*)
17459 # Just because we use GCC doesn't mean we suddenly get shared libraries
17460 # on systems that don't support them.
17461 lt_prog_compiler_can_build_shared_GCJ=no
17462 enable_shared=no
17465 *nto* | *qnx*)
17466 # QNX uses GNU C++, but need to define -shared option too, otherwise
17467 # it will coredump.
17468 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17471 sysv4*MP*)
17472 if test -d /usr/nec; then
17473 lt_prog_compiler_pic_GCJ=-Kconform_pic
17478 lt_prog_compiler_pic_GCJ='-fPIC'
17480 esac
17482 case $cc_basename in
17483 nvcc*) # Cuda Compiler Driver 2.2
17484 lt_prog_compiler_wl_GCJ='-Xlinker '
17485 lt_prog_compiler_pic_GCJ='-Xcompiler -fPIC'
17487 esac
17488 else
17489 # PORTME Check for flag to pass linker flags through the system compiler.
17490 case $host_os in
17491 aix*)
17492 lt_prog_compiler_wl_GCJ='-Wl,'
17493 if test "$host_cpu" = ia64; then
17494 # AIX 5 now supports IA64 processor
17495 lt_prog_compiler_static_GCJ='-Bstatic'
17496 else
17497 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17501 mingw* | cygwin* | pw32* | os2* | cegcc*)
17502 # This hack is so that the source file can tell whether it is being
17503 # built for inclusion in a dll (and should export symbols for example).
17507 hpux9* | hpux10* | hpux11*)
17508 lt_prog_compiler_wl_GCJ='-Wl,'
17509 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17510 # not for PA HP-UX.
17511 case $host_cpu in
17512 hppa*64*|ia64*)
17513 # +Z the default
17516 lt_prog_compiler_pic_GCJ='+Z'
17518 esac
17519 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17520 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17523 irix5* | irix6* | nonstopux*)
17524 lt_prog_compiler_wl_GCJ='-Wl,'
17525 # PIC (with -KPIC) is the default.
17526 lt_prog_compiler_static_GCJ='-non_shared'
17529 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17530 case $cc_basename in
17531 # old Intel for x86_64 which still supported -KPIC.
17532 ecc*)
17533 lt_prog_compiler_wl_GCJ='-Wl,'
17534 lt_prog_compiler_pic_GCJ='-KPIC'
17535 lt_prog_compiler_static_GCJ='-static'
17537 # icc used to be incompatible with GCC.
17538 # ICC 10 doesn't accept -KPIC any more.
17539 icc* | ifort*)
17540 lt_prog_compiler_wl_GCJ='-Wl,'
17541 lt_prog_compiler_pic_GCJ='-fPIC'
17542 lt_prog_compiler_static_GCJ='-static'
17544 # Lahey Fortran 8.1.
17545 lf95*)
17546 lt_prog_compiler_wl_GCJ='-Wl,'
17547 lt_prog_compiler_pic_GCJ='--shared'
17548 lt_prog_compiler_static_GCJ='--static'
17550 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17551 # Portland Group compilers (*not* the Pentium gcc compiler,
17552 # which looks to be a dead project)
17553 lt_prog_compiler_wl_GCJ='-Wl,'
17554 lt_prog_compiler_pic_GCJ='-fpic'
17555 lt_prog_compiler_static_GCJ='-Bstatic'
17557 ccc*)
17558 lt_prog_compiler_wl_GCJ='-Wl,'
17559 # All Alpha code is PIC.
17560 lt_prog_compiler_static_GCJ='-non_shared'
17562 xl* | bgxl* | bgf* | mpixl*)
17563 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17564 lt_prog_compiler_wl_GCJ='-Wl,'
17565 lt_prog_compiler_pic_GCJ='-qpic'
17566 lt_prog_compiler_static_GCJ='-qstaticlink'
17569 case `$CC -V 2>&1 | sed 5q` in
17570 *Sun\ F* | *Sun*Fortran*)
17571 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17572 lt_prog_compiler_pic_GCJ='-KPIC'
17573 lt_prog_compiler_static_GCJ='-Bstatic'
17574 lt_prog_compiler_wl_GCJ=''
17576 *Sun\ C*)
17577 # Sun C 5.9
17578 lt_prog_compiler_pic_GCJ='-KPIC'
17579 lt_prog_compiler_static_GCJ='-Bstatic'
17580 lt_prog_compiler_wl_GCJ='-Wl,'
17582 esac
17584 esac
17587 newsos6)
17588 lt_prog_compiler_pic_GCJ='-KPIC'
17589 lt_prog_compiler_static_GCJ='-Bstatic'
17592 *nto* | *qnx*)
17593 # QNX uses GNU C++, but need to define -shared option too, otherwise
17594 # it will coredump.
17595 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17598 osf3* | osf4* | osf5*)
17599 lt_prog_compiler_wl_GCJ='-Wl,'
17600 # All OSF/1 code is PIC.
17601 lt_prog_compiler_static_GCJ='-non_shared'
17604 rdos*)
17605 lt_prog_compiler_static_GCJ='-non_shared'
17608 solaris*)
17609 lt_prog_compiler_pic_GCJ='-KPIC'
17610 lt_prog_compiler_static_GCJ='-Bstatic'
17611 case $cc_basename in
17612 f77* | f90* | f95*)
17613 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17615 lt_prog_compiler_wl_GCJ='-Wl,';;
17616 esac
17619 sunos4*)
17620 lt_prog_compiler_wl_GCJ='-Qoption ld '
17621 lt_prog_compiler_pic_GCJ='-PIC'
17622 lt_prog_compiler_static_GCJ='-Bstatic'
17625 sysv4 | sysv4.2uw2* | sysv4.3*)
17626 lt_prog_compiler_wl_GCJ='-Wl,'
17627 lt_prog_compiler_pic_GCJ='-KPIC'
17628 lt_prog_compiler_static_GCJ='-Bstatic'
17631 sysv4*MP*)
17632 if test -d /usr/nec ;then
17633 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17634 lt_prog_compiler_static_GCJ='-Bstatic'
17638 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17639 lt_prog_compiler_wl_GCJ='-Wl,'
17640 lt_prog_compiler_pic_GCJ='-KPIC'
17641 lt_prog_compiler_static_GCJ='-Bstatic'
17644 unicos*)
17645 lt_prog_compiler_wl_GCJ='-Wl,'
17646 lt_prog_compiler_can_build_shared_GCJ=no
17649 uts4*)
17650 lt_prog_compiler_pic_GCJ='-pic'
17651 lt_prog_compiler_static_GCJ='-Bstatic'
17655 lt_prog_compiler_can_build_shared_GCJ=no
17657 esac
17660 case $host_os in
17661 # For platforms which do not support PIC, -DPIC is meaningless:
17662 *djgpp*)
17663 lt_prog_compiler_pic_GCJ=
17666 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17668 esac
17669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
17670 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17675 # Check to make sure the PIC flag actually works.
17677 if test -n "$lt_prog_compiler_pic_GCJ"; then
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17679 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17680 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
17681 $as_echo_n "(cached) " >&6
17682 else
17683 lt_cv_prog_compiler_pic_works_GCJ=no
17684 ac_outfile=conftest.$ac_objext
17685 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17686 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17687 # Insert the option either (1) after the last *FLAGS variable, or
17688 # (2) before a word containing "conftest.", or (3) at the end.
17689 # Note that $ac_compile itself does not contain backslashes and begins
17690 # with a dollar sign (not a hyphen), so the echo should work correctly.
17691 # The option is referenced via a variable to avoid confusing sed.
17692 lt_compile=`echo "$ac_compile" | $SED \
17693 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17694 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17695 -e 's:$: $lt_compiler_flag:'`
17696 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17697 (eval "$lt_compile" 2>conftest.err)
17698 ac_status=$?
17699 cat conftest.err >&5
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 if (exit $ac_status) && test -s "$ac_outfile"; then
17702 # The compiler can only warn and ignore the option if not recognized
17703 # So say no if there are warnings other than the usual output.
17704 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17705 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17706 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17707 lt_cv_prog_compiler_pic_works_GCJ=yes
17710 $RM conftest*
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17714 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17716 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17717 case $lt_prog_compiler_pic_GCJ in
17718 "" | " "*) ;;
17719 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17720 esac
17721 else
17722 lt_prog_compiler_pic_GCJ=
17723 lt_prog_compiler_can_build_shared_GCJ=no
17731 # Check to make sure the static flag actually works.
17733 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17735 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17736 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
17737 $as_echo_n "(cached) " >&6
17738 else
17739 lt_cv_prog_compiler_static_works_GCJ=no
17740 save_LDFLAGS="$LDFLAGS"
17741 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17742 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17743 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17744 # The linker can only warn and ignore the option if not recognized
17745 # So say no if there are warnings
17746 if test -s conftest.err; then
17747 # Append any errors to the config.log.
17748 cat conftest.err 1>&5
17749 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17750 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17751 if diff conftest.exp conftest.er2 >/dev/null; then
17752 lt_cv_prog_compiler_static_works_GCJ=yes
17754 else
17755 lt_cv_prog_compiler_static_works_GCJ=yes
17758 $RM -r conftest*
17759 LDFLAGS="$save_LDFLAGS"
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17763 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17765 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17767 else
17768 lt_prog_compiler_static_GCJ=
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17775 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17776 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17777 $as_echo_n "(cached) " >&6
17778 else
17779 lt_cv_prog_compiler_c_o_GCJ=no
17780 $RM -r conftest 2>/dev/null
17781 mkdir conftest
17782 cd conftest
17783 mkdir out
17784 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17786 lt_compiler_flag="-o out/conftest2.$ac_objext"
17787 # Insert the option either (1) after the last *FLAGS variable, or
17788 # (2) before a word containing "conftest.", or (3) at the end.
17789 # Note that $ac_compile itself does not contain backslashes and begins
17790 # with a dollar sign (not a hyphen), so the echo should work correctly.
17791 lt_compile=`echo "$ac_compile" | $SED \
17792 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17793 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17794 -e 's:$: $lt_compiler_flag:'`
17795 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17796 (eval "$lt_compile" 2>out/conftest.err)
17797 ac_status=$?
17798 cat out/conftest.err >&5
17799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17801 then
17802 # The compiler can only warn and ignore the option if not recognized
17803 # So say no if there are warnings
17804 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17805 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17806 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17807 lt_cv_prog_compiler_c_o_GCJ=yes
17810 chmod u+w . 2>&5
17811 $RM conftest*
17812 # SGI C++ compiler will create directory out/ii_files/ for
17813 # template instantiation
17814 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17815 $RM out/* && rmdir out
17816 cd ..
17817 $RM -r conftest
17818 $RM conftest*
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17822 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17827 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17828 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17829 $as_echo_n "(cached) " >&6
17830 else
17831 lt_cv_prog_compiler_c_o_GCJ=no
17832 $RM -r conftest 2>/dev/null
17833 mkdir conftest
17834 cd conftest
17835 mkdir out
17836 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17838 lt_compiler_flag="-o out/conftest2.$ac_objext"
17839 # Insert the option either (1) after the last *FLAGS variable, or
17840 # (2) before a word containing "conftest.", or (3) at the end.
17841 # Note that $ac_compile itself does not contain backslashes and begins
17842 # with a dollar sign (not a hyphen), so the echo should work correctly.
17843 lt_compile=`echo "$ac_compile" | $SED \
17844 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17845 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17846 -e 's:$: $lt_compiler_flag:'`
17847 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17848 (eval "$lt_compile" 2>out/conftest.err)
17849 ac_status=$?
17850 cat out/conftest.err >&5
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17853 then
17854 # The compiler can only warn and ignore the option if not recognized
17855 # So say no if there are warnings
17856 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17857 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17858 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17859 lt_cv_prog_compiler_c_o_GCJ=yes
17862 chmod u+w . 2>&5
17863 $RM conftest*
17864 # SGI C++ compiler will create directory out/ii_files/ for
17865 # template instantiation
17866 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17867 $RM out/* && rmdir out
17868 cd ..
17869 $RM -r conftest
17870 $RM conftest*
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17874 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17879 hard_links="nottested"
17880 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17881 # do not overwrite the value of need_locks provided by the user
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17883 $as_echo_n "checking if we can lock with hard links... " >&6; }
17884 hard_links=yes
17885 $RM conftest*
17886 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17887 touch conftest.a
17888 ln conftest.a conftest.b 2>&5 || hard_links=no
17889 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17891 $as_echo "$hard_links" >&6; }
17892 if test "$hard_links" = no; then
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17894 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17895 need_locks=warn
17897 else
17898 need_locks=no
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17904 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17906 runpath_var=
17907 allow_undefined_flag_GCJ=
17908 always_export_symbols_GCJ=no
17909 archive_cmds_GCJ=
17910 archive_expsym_cmds_GCJ=
17911 compiler_needs_object_GCJ=no
17912 enable_shared_with_static_runtimes_GCJ=no
17913 export_dynamic_flag_spec_GCJ=
17914 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17915 hardcode_automatic_GCJ=no
17916 hardcode_direct_GCJ=no
17917 hardcode_direct_absolute_GCJ=no
17918 hardcode_libdir_flag_spec_GCJ=
17919 hardcode_libdir_flag_spec_ld_GCJ=
17920 hardcode_libdir_separator_GCJ=
17921 hardcode_minus_L_GCJ=no
17922 hardcode_shlibpath_var_GCJ=unsupported
17923 inherit_rpath_GCJ=no
17924 link_all_deplibs_GCJ=unknown
17925 module_cmds_GCJ=
17926 module_expsym_cmds_GCJ=
17927 old_archive_from_new_cmds_GCJ=
17928 old_archive_from_expsyms_cmds_GCJ=
17929 thread_safe_flag_spec_GCJ=
17930 whole_archive_flag_spec_GCJ=
17931 # include_expsyms should be a list of space-separated symbols to be *always*
17932 # included in the symbol list
17933 include_expsyms_GCJ=
17934 # exclude_expsyms can be an extended regexp of symbols to exclude
17935 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17936 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17937 # as well as any symbol that contains `d'.
17938 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17939 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17940 # platforms (ab)use it in PIC code, but their linkers get confused if
17941 # the symbol is explicitly referenced. Since portable code cannot
17942 # rely on this symbol name, it's probably fine to never include it in
17943 # preloaded symbol tables.
17944 # Exclude shared library initialization/finalization symbols.
17945 extract_expsyms_cmds=
17947 case $host_os in
17948 cygwin* | mingw* | pw32* | cegcc*)
17949 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17950 # When not using gcc, we currently assume that we are using
17951 # Microsoft Visual C++.
17952 if test "$GCC" != yes; then
17953 with_gnu_ld=no
17956 interix*)
17957 # we just hope/assume this is gcc and not c89 (= MSVC++)
17958 with_gnu_ld=yes
17960 openbsd*)
17961 with_gnu_ld=no
17963 esac
17965 ld_shlibs_GCJ=yes
17967 # On some targets, GNU ld is compatible enough with the native linker
17968 # that we're better off using the native interface for both.
17969 lt_use_gnu_ld_interface=no
17970 if test "$with_gnu_ld" = yes; then
17971 case $host_os in
17972 aix*)
17973 # The AIX port of GNU ld has always aspired to compatibility
17974 # with the native linker. However, as the warning in the GNU ld
17975 # block says, versions before 2.19.5* couldn't really create working
17976 # shared libraries, regardless of the interface used.
17977 case `$LD -v 2>&1` in
17978 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17979 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17980 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17982 lt_use_gnu_ld_interface=yes
17984 esac
17987 lt_use_gnu_ld_interface=yes
17989 esac
17992 if test "$lt_use_gnu_ld_interface" = yes; then
17993 # If archive_cmds runs LD, not CC, wlarc should be empty
17994 wlarc='${wl}'
17996 # Set some defaults for GNU ld with shared library support. These
17997 # are reset later if shared libraries are not supported. Putting them
17998 # here allows them to be overridden if necessary.
17999 runpath_var=LD_RUN_PATH
18000 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18001 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18002 # ancient GNU ld didn't support --whole-archive et. al.
18003 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
18004 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18005 else
18006 whole_archive_flag_spec_GCJ=
18008 supports_anon_versioning=no
18009 case `$LD -v 2>&1` in
18010 *GNU\ gold*) supports_anon_versioning=yes ;;
18011 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18012 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18013 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18014 *\ 2.11.*) ;; # other 2.11 versions
18015 *) supports_anon_versioning=yes ;;
18016 esac
18018 # See if GNU ld supports shared libraries.
18019 case $host_os in
18020 aix[3-9]*)
18021 # On AIX/PPC, the GNU linker is very broken
18022 if test "$host_cpu" != ia64; then
18023 ld_shlibs_GCJ=no
18024 cat <<_LT_EOF 1>&2
18026 *** Warning: the GNU linker, at least up to release 2.19, is reported
18027 *** to be unable to reliably create shared libraries on AIX.
18028 *** Therefore, libtool is disabling shared libraries support. If you
18029 *** really care for shared libraries, you may want to install binutils
18030 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
18031 *** You will then need to restart the configuration process.
18033 _LT_EOF
18037 amigaos*)
18038 case $host_cpu in
18039 powerpc)
18040 # see comment about AmigaOS4 .so support
18041 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18042 archive_expsym_cmds_GCJ=''
18044 m68k)
18045 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)'
18046 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18047 hardcode_minus_L_GCJ=yes
18049 esac
18052 beos*)
18053 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18054 allow_undefined_flag_GCJ=unsupported
18055 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18056 # support --undefined. This deserves some investigation. FIXME
18057 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18058 else
18059 ld_shlibs_GCJ=no
18063 cygwin* | mingw* | pw32* | cegcc*)
18064 # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18065 # as there is no search path for DLLs.
18066 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18067 export_dynamic_flag_spec_GCJ='${wl}--export-all-symbols'
18068 allow_undefined_flag_GCJ=unsupported
18069 always_export_symbols_GCJ=no
18070 enable_shared_with_static_runtimes_GCJ=yes
18071 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18073 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18074 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18075 # If the export-symbols file already is a .def file (1st line
18076 # is EXPORTS), use it as is; otherwise, prepend...
18077 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18078 cp $export_symbols $output_objdir/$soname.def;
18079 else
18080 echo EXPORTS > $output_objdir/$soname.def;
18081 cat $export_symbols >> $output_objdir/$soname.def;
18083 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18084 else
18085 ld_shlibs_GCJ=no
18089 haiku*)
18090 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18091 link_all_deplibs_GCJ=yes
18094 interix[3-9]*)
18095 hardcode_direct_GCJ=no
18096 hardcode_shlibpath_var_GCJ=no
18097 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18098 export_dynamic_flag_spec_GCJ='${wl}-E'
18099 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18100 # Instead, shared libraries are loaded at an image base (0x10000000 by
18101 # default) and relocated if they conflict, which is a slow very memory
18102 # consuming and fragmenting process. To avoid this, we pick a random,
18103 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18104 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18105 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'
18106 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'
18109 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
18110 tmp_diet=no
18111 if test "$host_os" = linux-dietlibc; then
18112 case $cc_basename in
18113 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
18114 esac
18116 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
18117 && test "$tmp_diet" = no
18118 then
18119 tmp_addflag=' $pic_flag'
18120 tmp_sharedflag='-shared'
18121 case $cc_basename,$host_cpu in
18122 pgcc*) # Portland Group C compiler
18123 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'
18124 tmp_addflag=' $pic_flag'
18126 pgf77* | pgf90* | pgf95* | pgfortran*)
18127 # Portland Group f77 and f90 compilers
18128 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'
18129 tmp_addflag=' $pic_flag -Mnomain' ;;
18130 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18131 tmp_addflag=' -i_dynamic' ;;
18132 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18133 tmp_addflag=' -i_dynamic -nofor_main' ;;
18134 ifc* | ifort*) # Intel Fortran compiler
18135 tmp_addflag=' -nofor_main' ;;
18136 lf95*) # Lahey Fortran 8.1
18137 whole_archive_flag_spec_GCJ=
18138 tmp_sharedflag='--shared' ;;
18139 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
18140 tmp_sharedflag='-qmkshrobj'
18141 tmp_addflag= ;;
18142 nvcc*) # Cuda Compiler Driver 2.2
18143 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'
18144 compiler_needs_object_GCJ=yes
18146 esac
18147 case `$CC -V 2>&1 | sed 5q` in
18148 *Sun\ C*) # Sun C 5.9
18149 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'
18150 compiler_needs_object_GCJ=yes
18151 tmp_sharedflag='-G' ;;
18152 *Sun\ F*) # Sun Fortran 8.3
18153 tmp_sharedflag='-G' ;;
18154 esac
18155 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18157 if test "x$supports_anon_versioning" = xyes; then
18158 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18159 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18160 echo "local: *; };" >> $output_objdir/$libname.ver~
18161 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18164 case $cc_basename in
18165 xlf* | bgf* | bgxlf* | mpixlf*)
18166 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
18167 whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
18168 hardcode_libdir_flag_spec_GCJ=
18169 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18170 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
18171 if test "x$supports_anon_versioning" = xyes; then
18172 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18173 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18174 echo "local: *; };" >> $output_objdir/$libname.ver~
18175 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
18178 esac
18179 else
18180 ld_shlibs_GCJ=no
18184 netbsd*)
18185 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18186 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18187 wlarc=
18188 else
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'
18194 solaris*)
18195 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
18196 ld_shlibs_GCJ=no
18197 cat <<_LT_EOF 1>&2
18199 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18200 *** create shared libraries on Solaris systems. Therefore, libtool
18201 *** is disabling shared libraries support. We urge you to upgrade GNU
18202 *** binutils to release 2.9.1 or newer. Another option is to modify
18203 *** your PATH or compiler configuration so that the native linker is
18204 *** used, and then restart.
18206 _LT_EOF
18207 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18208 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18209 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18210 else
18211 ld_shlibs_GCJ=no
18215 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18216 case `$LD -v 2>&1` in
18217 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18218 ld_shlibs_GCJ=no
18219 cat <<_LT_EOF 1>&2
18221 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18222 *** reliably create shared libraries on SCO systems. Therefore, libtool
18223 *** is disabling shared libraries support. We urge you to upgrade GNU
18224 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18225 *** your PATH or compiler configuration so that the native linker is
18226 *** used, and then restart.
18228 _LT_EOF
18231 # For security reasons, it is highly recommended that you always
18232 # use absolute paths for naming shared libraries, and exclude the
18233 # DT_RUNPATH tag from executables and libraries. But doing so
18234 # requires that you compile everything twice, which is a pain.
18235 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18236 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18237 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18238 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18239 else
18240 ld_shlibs_GCJ=no
18243 esac
18246 sunos4*)
18247 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18248 wlarc=
18249 hardcode_direct_GCJ=yes
18250 hardcode_shlibpath_var_GCJ=no
18254 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18255 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18256 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18257 else
18258 ld_shlibs_GCJ=no
18261 esac
18263 if test "$ld_shlibs_GCJ" = no; then
18264 runpath_var=
18265 hardcode_libdir_flag_spec_GCJ=
18266 export_dynamic_flag_spec_GCJ=
18267 whole_archive_flag_spec_GCJ=
18269 else
18270 # PORTME fill in a description of your system's linker (not GNU ld)
18271 case $host_os in
18272 aix3*)
18273 allow_undefined_flag_GCJ=unsupported
18274 always_export_symbols_GCJ=yes
18275 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'
18276 # Note: this linker hardcodes the directories in LIBPATH if there
18277 # are no directories specified by -L.
18278 hardcode_minus_L_GCJ=yes
18279 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18280 # Neither direct hardcoding nor static linking is supported with a
18281 # broken collect2.
18282 hardcode_direct_GCJ=unsupported
18286 aix[4-9]*)
18287 if test "$host_cpu" = ia64; then
18288 # On IA64, the linker does run time linking by default, so we don't
18289 # have to do anything special.
18290 aix_use_runtimelinking=no
18291 exp_sym_flag='-Bexport'
18292 no_entry_flag=""
18293 else
18294 # If we're using GNU nm, then we don't want the "-C" option.
18295 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18296 # Also, AIX nm treats weak defined symbols like other global
18297 # defined symbols, whereas GNU nm marks them as "W".
18298 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18299 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'
18300 else
18301 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'
18303 aix_use_runtimelinking=no
18305 # Test if we are trying to use run time linking or normal
18306 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18307 # need to do runtime linking.
18308 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18309 for ld_flag in $LDFLAGS; do
18310 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18311 aix_use_runtimelinking=yes
18312 break
18314 done
18316 esac
18318 exp_sym_flag='-bexport'
18319 no_entry_flag='-bnoentry'
18322 # When large executables or shared objects are built, AIX ld can
18323 # have problems creating the table of contents. If linking a library
18324 # or program results in "error TOC overflow" add -mminimal-toc to
18325 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18326 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18328 archive_cmds_GCJ=''
18329 hardcode_direct_GCJ=yes
18330 hardcode_direct_absolute_GCJ=yes
18331 hardcode_libdir_separator_GCJ=':'
18332 link_all_deplibs_GCJ=yes
18333 file_list_spec_GCJ='${wl}-f,'
18335 if test "$GCC" = yes; then
18336 case $host_os in aix4.[012]|aix4.[012].*)
18337 # We only want to do this on AIX 4.2 and lower, the check
18338 # below for broken collect2 doesn't work under 4.3+
18339 collect2name=`${CC} -print-prog-name=collect2`
18340 if test -f "$collect2name" &&
18341 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18342 then
18343 # We have reworked collect2
18345 else
18346 # We have old collect2
18347 hardcode_direct_GCJ=unsupported
18348 # It fails to find uninstalled libraries when the uninstalled
18349 # path is not listed in the libpath. Setting hardcode_minus_L
18350 # to unsupported forces relinking
18351 hardcode_minus_L_GCJ=yes
18352 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18353 hardcode_libdir_separator_GCJ=
18356 esac
18357 shared_flag='-shared'
18358 if test "$aix_use_runtimelinking" = yes; then
18359 shared_flag="$shared_flag "'${wl}-G'
18361 else
18362 # not using gcc
18363 if test "$host_cpu" = ia64; then
18364 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18365 # chokes on -Wl,-G. The following line is correct:
18366 shared_flag='-G'
18367 else
18368 if test "$aix_use_runtimelinking" = yes; then
18369 shared_flag='${wl}-G'
18370 else
18371 shared_flag='${wl}-bM:SRE'
18376 export_dynamic_flag_spec_GCJ='${wl}-bexpall'
18377 # It seems that -bexpall does not export symbols beginning with
18378 # underscore (_), so it is better to generate a list of symbols to export.
18379 always_export_symbols_GCJ=yes
18380 if test "$aix_use_runtimelinking" = yes; then
18381 # Warning - without using the other runtime loading flags (-brtl),
18382 # -berok will link without error, but may produce a broken library.
18383 allow_undefined_flag_GCJ='-berok'
18384 # Determine the default libpath from the value encoded in an
18385 # empty executable.
18386 if test x$gcc_no_link = xyes; then
18387 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18390 /* end confdefs.h. */
18393 main ()
18397 return 0;
18399 _ACEOF
18400 if ac_fn_c_try_link "$LINENO"; then :
18402 lt_aix_libpath_sed='
18403 /Import File Strings/,/^$/ {
18404 /^0/ {
18405 s/^0 *\(.*\)$/\1/
18409 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18410 # Check for a 64-bit object if we didn't find anything.
18411 if test -z "$aix_libpath"; then
18412 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18415 rm -f core conftest.err conftest.$ac_objext \
18416 conftest$ac_exeext conftest.$ac_ext
18417 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18419 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18420 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"
18421 else
18422 if test "$host_cpu" = ia64; then
18423 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18424 allow_undefined_flag_GCJ="-z nodefs"
18425 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"
18426 else
18427 # Determine the default libpath from the value encoded in an
18428 # empty executable.
18429 if test x$gcc_no_link = xyes; then
18430 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18433 /* end confdefs.h. */
18436 main ()
18440 return 0;
18442 _ACEOF
18443 if ac_fn_c_try_link "$LINENO"; then :
18445 lt_aix_libpath_sed='
18446 /Import File Strings/,/^$/ {
18447 /^0/ {
18448 s/^0 *\(.*\)$/\1/
18452 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18453 # Check for a 64-bit object if we didn't find anything.
18454 if test -z "$aix_libpath"; then
18455 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18458 rm -f core conftest.err conftest.$ac_objext \
18459 conftest$ac_exeext conftest.$ac_ext
18460 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18462 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18463 # Warning - without using the other run time loading flags,
18464 # -berok will link without error, but may produce a broken library.
18465 no_undefined_flag_GCJ=' ${wl}-bernotok'
18466 allow_undefined_flag_GCJ=' ${wl}-berok'
18467 if test "$with_gnu_ld" = yes; then
18468 # We only use this code for GNU lds that support --whole-archive.
18469 whole_archive_flag_spec_GCJ='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18470 else
18471 # Exported symbols can be pulled into shared objects from archives
18472 whole_archive_flag_spec_GCJ='$convenience'
18474 archive_cmds_need_lc_GCJ=yes
18475 # This is similar to how AIX traditionally builds its shared libraries.
18476 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'
18481 amigaos*)
18482 case $host_cpu in
18483 powerpc)
18484 # see comment about AmigaOS4 .so support
18485 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18486 archive_expsym_cmds_GCJ=''
18488 m68k)
18489 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)'
18490 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18491 hardcode_minus_L_GCJ=yes
18493 esac
18496 bsdi[45]*)
18497 export_dynamic_flag_spec_GCJ=-rdynamic
18500 cygwin* | mingw* | pw32* | cegcc*)
18501 # When not using gcc, we currently assume that we are using
18502 # Microsoft Visual C++.
18503 # hardcode_libdir_flag_spec is actually meaningless, as there is
18504 # no search path for DLLs.
18505 hardcode_libdir_flag_spec_GCJ=' '
18506 allow_undefined_flag_GCJ=unsupported
18507 # Tell ltmain to make .lib files, not .a files.
18508 libext=lib
18509 # Tell ltmain to make .dll files, not .so files.
18510 shrext_cmds=".dll"
18511 # FIXME: Setting linknames here is a bad hack.
18512 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18513 # The linker will automatically build a .lib file if we build a DLL.
18514 old_archive_from_new_cmds_GCJ='true'
18515 # FIXME: Should let the user specify the lib program.
18516 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18517 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18518 enable_shared_with_static_runtimes_GCJ=yes
18521 darwin* | rhapsody*)
18524 archive_cmds_need_lc_GCJ=no
18525 hardcode_direct_GCJ=no
18526 hardcode_automatic_GCJ=yes
18527 hardcode_shlibpath_var_GCJ=unsupported
18528 if test "$lt_cv_ld_force_load" = "yes"; then
18529 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\"`'
18530 else
18531 whole_archive_flag_spec_GCJ=''
18533 link_all_deplibs_GCJ=yes
18534 allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
18535 case $cc_basename in
18536 ifort*) _lt_dar_can_shared=yes ;;
18537 *) _lt_dar_can_shared=$GCC ;;
18538 esac
18539 if test "$_lt_dar_can_shared" = "yes"; then
18540 output_verbose_link_cmd=func_echo_all
18541 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}"
18542 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18543 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}"
18544 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}"
18546 else
18547 ld_shlibs_GCJ=no
18552 dgux*)
18553 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18554 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18555 hardcode_shlibpath_var_GCJ=no
18558 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18559 # support. Future versions do this automatically, but an explicit c++rt0.o
18560 # does not break anything, and helps significantly (at the cost of a little
18561 # extra space).
18562 freebsd2.2*)
18563 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18564 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18565 hardcode_direct_GCJ=yes
18566 hardcode_shlibpath_var_GCJ=no
18569 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18570 freebsd2.*)
18571 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18572 hardcode_direct_GCJ=yes
18573 hardcode_minus_L_GCJ=yes
18574 hardcode_shlibpath_var_GCJ=no
18577 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18578 freebsd* | dragonfly*)
18579 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18580 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18581 hardcode_direct_GCJ=yes
18582 hardcode_shlibpath_var_GCJ=no
18585 hpux9*)
18586 if test "$GCC" = yes; then
18587 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'
18588 else
18589 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'
18591 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18592 hardcode_libdir_separator_GCJ=:
18593 hardcode_direct_GCJ=yes
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
18598 export_dynamic_flag_spec_GCJ='${wl}-E'
18601 hpux10*)
18602 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18603 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18604 else
18605 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18607 if test "$with_gnu_ld" = no; then
18608 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18609 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18610 hardcode_libdir_separator_GCJ=:
18611 hardcode_direct_GCJ=yes
18612 hardcode_direct_absolute_GCJ=yes
18613 export_dynamic_flag_spec_GCJ='${wl}-E'
18614 # hardcode_minus_L: Not really in the search PATH,
18615 # but as the default location of the library.
18616 hardcode_minus_L_GCJ=yes
18620 hpux11*)
18621 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18622 case $host_cpu in
18623 hppa*64*)
18624 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18626 ia64*)
18627 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18630 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18632 esac
18633 else
18634 case $host_cpu in
18635 hppa*64*)
18636 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18638 ia64*)
18639 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18642 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18644 esac
18646 if test "$with_gnu_ld" = no; then
18647 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18648 hardcode_libdir_separator_GCJ=:
18650 case $host_cpu in
18651 hppa*64*|ia64*)
18652 hardcode_direct_GCJ=no
18653 hardcode_shlibpath_var_GCJ=no
18656 hardcode_direct_GCJ=yes
18657 hardcode_direct_absolute_GCJ=yes
18658 export_dynamic_flag_spec_GCJ='${wl}-E'
18660 # hardcode_minus_L: Not really in the search PATH,
18661 # but as the default location of the library.
18662 hardcode_minus_L_GCJ=yes
18664 esac
18668 irix5* | irix6* | nonstopux*)
18669 if test "$GCC" = yes; then
18670 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'
18671 # Try to use the -exported_symbol ld option, if it does not
18672 # work, assume that -exports_file does not work either and
18673 # implicitly export all symbols.
18674 save_LDFLAGS="$LDFLAGS"
18675 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18676 if test x$gcc_no_link = xyes; then
18677 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18680 /* end confdefs.h. */
18681 int foo(void) {}
18682 _ACEOF
18683 if ac_fn_c_try_link "$LINENO"; then :
18684 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'
18687 rm -f core conftest.err conftest.$ac_objext \
18688 conftest$ac_exeext conftest.$ac_ext
18689 LDFLAGS="$save_LDFLAGS"
18690 else
18691 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'
18692 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'
18694 archive_cmds_need_lc_GCJ='no'
18695 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18696 hardcode_libdir_separator_GCJ=:
18697 inherit_rpath_GCJ=yes
18698 link_all_deplibs_GCJ=yes
18701 netbsd*)
18702 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18703 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18704 else
18705 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18707 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18708 hardcode_direct_GCJ=yes
18709 hardcode_shlibpath_var_GCJ=no
18712 newsos6)
18713 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18714 hardcode_direct_GCJ=yes
18715 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18716 hardcode_libdir_separator_GCJ=:
18717 hardcode_shlibpath_var_GCJ=no
18720 *nto* | *qnx*)
18723 openbsd*)
18724 if test -f /usr/libexec/ld.so; then
18725 hardcode_direct_GCJ=yes
18726 hardcode_shlibpath_var_GCJ=no
18727 hardcode_direct_absolute_GCJ=yes
18728 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18729 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18730 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18731 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18732 export_dynamic_flag_spec_GCJ='${wl}-E'
18733 else
18734 case $host_os in
18735 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18736 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18737 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18740 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18741 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18743 esac
18745 else
18746 ld_shlibs_GCJ=no
18750 os2*)
18751 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18752 hardcode_minus_L_GCJ=yes
18753 allow_undefined_flag_GCJ=unsupported
18754 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'
18755 old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18758 osf3*)
18759 if test "$GCC" = yes; then
18760 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18761 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'
18762 else
18763 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18764 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'
18766 archive_cmds_need_lc_GCJ='no'
18767 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18768 hardcode_libdir_separator_GCJ=:
18771 osf4* | osf5*) # as osf3* with the addition of -msym flag
18772 if test "$GCC" = yes; then
18773 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18774 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'
18775 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18776 else
18777 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18778 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'
18779 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~
18780 $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'
18782 # Both c and cxx compiler support -rpath directly
18783 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18785 archive_cmds_need_lc_GCJ='no'
18786 hardcode_libdir_separator_GCJ=:
18789 solaris*)
18790 no_undefined_flag_GCJ=' -z defs'
18791 if test "$GCC" = yes; then
18792 wlarc='${wl}'
18793 archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18794 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18795 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18796 else
18797 case `$CC -V 2>&1` in
18798 *"Compilers 5.0"*)
18799 wlarc=''
18800 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18801 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18802 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18805 wlarc='${wl}'
18806 archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18807 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18808 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18810 esac
18812 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18813 hardcode_shlibpath_var_GCJ=no
18814 case $host_os in
18815 solaris2.[0-5] | solaris2.[0-5].*) ;;
18817 # The compiler driver will combine and reorder linker options,
18818 # but understands `-z linker_flag'. GCC discards it without `$wl',
18819 # but is careful enough not to reorder.
18820 # Supported since Solaris 2.6 (maybe 2.5.1?)
18821 if test "$GCC" = yes; then
18822 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18823 else
18824 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18827 esac
18828 link_all_deplibs_GCJ=yes
18831 sunos4*)
18832 if test "x$host_vendor" = xsequent; then
18833 # Use $CC to link under sequent, because it throws in some extra .o
18834 # files that make .init and .fini sections work.
18835 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18836 else
18837 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18839 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18840 hardcode_direct_GCJ=yes
18841 hardcode_minus_L_GCJ=yes
18842 hardcode_shlibpath_var_GCJ=no
18845 sysv4)
18846 case $host_vendor in
18847 sni)
18848 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18849 hardcode_direct_GCJ=yes # is this really true???
18851 siemens)
18852 ## LD is ld it makes a PLAMLIB
18853 ## CC just makes a GrossModule.
18854 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18855 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18856 hardcode_direct_GCJ=no
18858 motorola)
18859 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18860 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18862 esac
18863 runpath_var='LD_RUN_PATH'
18864 hardcode_shlibpath_var_GCJ=no
18867 sysv4.3*)
18868 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18869 hardcode_shlibpath_var_GCJ=no
18870 export_dynamic_flag_spec_GCJ='-Bexport'
18873 sysv4*MP*)
18874 if test -d /usr/nec; then
18875 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18876 hardcode_shlibpath_var_GCJ=no
18877 runpath_var=LD_RUN_PATH
18878 hardcode_runpath_var=yes
18879 ld_shlibs_GCJ=yes
18883 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18884 no_undefined_flag_GCJ='${wl}-z,text'
18885 archive_cmds_need_lc_GCJ=no
18886 hardcode_shlibpath_var_GCJ=no
18887 runpath_var='LD_RUN_PATH'
18889 if test "$GCC" = yes; then
18890 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18891 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18892 else
18893 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18894 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18898 sysv5* | sco3.2v5* | sco5v6*)
18899 # Note: We can NOT use -z defs as we might desire, because we do not
18900 # link with -lc, and that would cause any symbols used from libc to
18901 # always be unresolved, which means just about no library would
18902 # ever link correctly. If we're not using GNU ld we use -z text
18903 # though, which does catch some bad symbols but isn't as heavy-handed
18904 # as -z defs.
18905 no_undefined_flag_GCJ='${wl}-z,text'
18906 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18907 archive_cmds_need_lc_GCJ=no
18908 hardcode_shlibpath_var_GCJ=no
18909 hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
18910 hardcode_libdir_separator_GCJ=':'
18911 link_all_deplibs_GCJ=yes
18912 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18913 runpath_var='LD_RUN_PATH'
18915 if test "$GCC" = yes; then
18916 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18917 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18918 else
18919 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18920 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18924 uts4*)
18925 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18926 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18927 hardcode_shlibpath_var_GCJ=no
18931 ld_shlibs_GCJ=no
18933 esac
18935 if test x$host_vendor = xsni; then
18936 case $host in
18937 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18938 export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
18940 esac
18944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
18945 $as_echo "$ld_shlibs_GCJ" >&6; }
18946 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18948 with_gnu_ld_GCJ=$with_gnu_ld
18956 # Do we need to explicitly link libc?
18958 case "x$archive_cmds_need_lc_GCJ" in
18959 x|xyes)
18960 # Assume -lc should be added
18961 archive_cmds_need_lc_GCJ=yes
18963 if test "$enable_shared" = yes && test "$GCC" = yes; then
18964 case $archive_cmds_GCJ in
18965 *'~'*)
18966 # FIXME: we may have to deal with multi-command sequences.
18968 '$CC '*)
18969 # Test whether the compiler implicitly links with -lc since on some
18970 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18971 # to ld, don't add -lc before -lgcc.
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18973 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18974 if test "${lt_cv_archive_cmds_need_lc_GCJ+set}" = set; then :
18975 $as_echo_n "(cached) " >&6
18976 else
18977 $RM conftest*
18978 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18980 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18981 (eval $ac_compile) 2>&5
18982 ac_status=$?
18983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18984 test $ac_status = 0; } 2>conftest.err; then
18985 soname=conftest
18986 lib=conftest
18987 libobjs=conftest.$ac_objext
18988 deplibs=
18989 wl=$lt_prog_compiler_wl_GCJ
18990 pic_flag=$lt_prog_compiler_pic_GCJ
18991 compiler_flags=-v
18992 linker_flags=-v
18993 verstring=
18994 output_objdir=.
18995 libname=conftest
18996 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18997 allow_undefined_flag_GCJ=
18998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18999 (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19000 ac_status=$?
19001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19002 test $ac_status = 0; }
19003 then
19004 lt_cv_archive_cmds_need_lc_GCJ=no
19005 else
19006 lt_cv_archive_cmds_need_lc_GCJ=yes
19008 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19009 else
19010 cat conftest.err 1>&5
19012 $RM conftest*
19015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GCJ" >&5
19016 $as_echo "$lt_cv_archive_cmds_need_lc_GCJ" >&6; }
19017 archive_cmds_need_lc_GCJ=$lt_cv_archive_cmds_need_lc_GCJ
19019 esac
19022 esac
19087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19088 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19089 hardcode_action_GCJ=
19090 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
19091 test -n "$runpath_var_GCJ" ||
19092 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19094 # We can hardcode non-existent directories.
19095 if test "$hardcode_direct_GCJ" != no &&
19096 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19097 # have to relink, otherwise we might link with an installed library
19098 # when we should be linking with a yet-to-be-installed one
19099 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19100 test "$hardcode_minus_L_GCJ" != no; then
19101 # Linking always hardcodes the temporary library directory.
19102 hardcode_action_GCJ=relink
19103 else
19104 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19105 hardcode_action_GCJ=immediate
19107 else
19108 # We cannot hardcode anything, or else we can only hardcode existing
19109 # directories.
19110 hardcode_action_GCJ=unsupported
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
19113 $as_echo "$hardcode_action_GCJ" >&6; }
19115 if test "$hardcode_action_GCJ" = relink ||
19116 test "$inherit_rpath_GCJ" = yes; then
19117 # Fast installation is not supported
19118 enable_fast_install=no
19119 elif test "$shlibpath_overrides_runpath" = yes ||
19120 test "$enable_shared" = no; then
19121 # Fast installation is not necessary
19122 enable_fast_install=needless
19133 compiler_GCJ=${GCJ-gcj}
19134 ac_ext=c
19135 ac_cpp='$CPP $CPPFLAGS'
19136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19141 if test "x$CC" != xcc; then
19142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
19143 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
19144 else
19145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
19146 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
19148 set dummy $CC; ac_cc=`$as_echo "$2" |
19149 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19150 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
19151 $as_echo_n "(cached) " >&6
19152 else
19153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19154 /* end confdefs.h. */
19157 main ()
19161 return 0;
19163 _ACEOF
19164 # Make sure it works both with $CC and with simple cc.
19165 # We do the test twice because some compilers refuse to overwrite an
19166 # existing .o file with -o, though they will create one.
19167 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19168 rm -f conftest2.*
19169 if { { case "(($ac_try" in
19170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19171 *) ac_try_echo=$ac_try;;
19172 esac
19173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19174 $as_echo "$ac_try_echo"; } >&5
19175 (eval "$ac_try") 2>&5
19176 ac_status=$?
19177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19178 test $ac_status = 0; } &&
19179 test -f conftest2.$ac_objext && { { case "(($ac_try" in
19180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19181 *) ac_try_echo=$ac_try;;
19182 esac
19183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19184 $as_echo "$ac_try_echo"; } >&5
19185 (eval "$ac_try") 2>&5
19186 ac_status=$?
19187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19188 test $ac_status = 0; };
19189 then
19190 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
19191 if test "x$CC" != xcc; then
19192 # Test first that cc exists at all.
19193 if { ac_try='cc -c conftest.$ac_ext >&5'
19194 { { case "(($ac_try" in
19195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19196 *) ac_try_echo=$ac_try;;
19197 esac
19198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19199 $as_echo "$ac_try_echo"; } >&5
19200 (eval "$ac_try") 2>&5
19201 ac_status=$?
19202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19203 test $ac_status = 0; }; }; then
19204 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19205 rm -f conftest2.*
19206 if { { case "(($ac_try" in
19207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19208 *) ac_try_echo=$ac_try;;
19209 esac
19210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19211 $as_echo "$ac_try_echo"; } >&5
19212 (eval "$ac_try") 2>&5
19213 ac_status=$?
19214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19215 test $ac_status = 0; } &&
19216 test -f conftest2.$ac_objext && { { case "(($ac_try" in
19217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19218 *) ac_try_echo=$ac_try;;
19219 esac
19220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19221 $as_echo "$ac_try_echo"; } >&5
19222 (eval "$ac_try") 2>&5
19223 ac_status=$?
19224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19225 test $ac_status = 0; };
19226 then
19227 # cc works too.
19229 else
19230 # cc exists but doesn't like -o.
19231 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19235 else
19236 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19238 rm -f core conftest*
19241 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19243 $as_echo "yes" >&6; }
19244 else
19245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19246 $as_echo "no" >&6; }
19248 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
19252 # FIXME: we rely on the cache variable name because
19253 # there is no other way.
19254 set dummy $CC
19255 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19256 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
19257 if test "$am_t" != yes; then
19258 # Losing compiler, so override with the script.
19259 # FIXME: It is wrong to rewrite CC.
19260 # But if we don't then we get into trouble of one sort or another.
19261 # A longer-term fix would be to have automake use am__CC in this case,
19262 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19263 CC="$am_aux_dir/compile $CC"
19270 subdirs="$subdirs classpath libltdl"
19273 # The -no-testsuite modules omit the test subdir.
19274 if test -d $srcdir/testsuite; then
19275 TESTSUBDIR_TRUE=
19276 TESTSUBDIR_FALSE='#'
19277 else
19278 TESTSUBDIR_TRUE='#'
19279 TESTSUBDIR_FALSE=
19283 # Should the runtime set system properties by examining the
19284 # environment variable GCJ_PROPERTIES?
19285 # Check whether --enable-getenv-properties was given.
19286 if test "${enable_getenv_properties+set}" = set; then :
19287 enableval=$enable_getenv_properties;
19291 # Whether GCJ_PROPERTIES is used depends on the target.
19292 if test -z "$enable_getenv_properties"; then
19293 enable_getenv_properties=${enable_getenv_properties_default-yes}
19295 if test "$enable_getenv_properties" = no; then
19297 $as_echo "#define DISABLE_GETENV_PROPERTIES 1" >>confdefs.h
19301 # Whether we should use arguments to main()
19302 if test -z "$enable_main_args"; then
19303 enable_main_args=${enable_main_args_default-yes}
19305 if test "$enable_main_args" = no; then
19307 $as_echo "#define DISABLE_MAIN_ARGS 1" >>confdefs.h
19312 # Should we use hashtable-based synchronization?
19313 # Currently works only for Linux X86/ia64
19314 # Typically faster and more space-efficient
19315 # Check whether --enable-hash-synchronization was given.
19316 if test "${enable_hash_synchronization+set}" = set; then :
19317 enableval=$enable_hash_synchronization;
19321 if test -z "$enable_hash_synchronization"; then
19322 enable_hash_synchronization=$enable_hash_synchronization_default
19326 install_ecj_jar=no
19327 ECJ_BUILD_JAR=
19328 ECJ_JAR=
19330 # Check whether --with-ecj-jar was given.
19331 if test "${with_ecj_jar+set}" = set; then :
19332 withval=$with_ecj_jar; ECJ_JAR=$withval
19333 else
19334 if test -f $multi_basedir/ecj.jar; then
19335 ECJ_BUILD_JAR=$multi_basedir/ecj.jar
19336 ECJ_JAR='$(jardir)/ecj.jar'
19337 install_ecj_jar=yes
19343 if test "$ECJ_JAR" != ""; then
19344 BUILD_ECJ1_TRUE=
19345 BUILD_ECJ1_FALSE='#'
19346 else
19347 BUILD_ECJ1_TRUE='#'
19348 BUILD_ECJ1_FALSE=
19351 if test $install_ecj_jar = yes; then
19352 INSTALL_ECJ_JAR_TRUE=
19353 INSTALL_ECJ_JAR_FALSE='#'
19354 else
19355 INSTALL_ECJ_JAR_TRUE='#'
19356 INSTALL_ECJ_JAR_FALSE=
19361 # Check whether --with-java-home was given.
19362 if test "${with_java_home+set}" = set; then :
19363 withval=$with_java_home; JAVA_HOME="${withval}"
19364 else
19365 JAVA_HOME=""
19368 if test ! -z "$JAVA_HOME"; then
19369 JAVA_HOME_SET_TRUE=
19370 JAVA_HOME_SET_FALSE='#'
19371 else
19372 JAVA_HOME_SET_TRUE='#'
19373 JAVA_HOME_SET_FALSE=
19378 suppress_libgcj_bc=no
19379 # Check whether --enable-libgcj-bc was given.
19380 if test "${enable_libgcj_bc+set}" = set; then :
19381 enableval=$enable_libgcj_bc; if test "$enable_libgcj_bc" = "no"; then
19382 suppress_libgcj_bc=yes
19386 if test "$suppress_libgcj_bc" = "yes"; then
19387 SUPPRESS_LIBGCJ_BC_TRUE=
19388 SUPPRESS_LIBGCJ_BC_FALSE='#'
19389 else
19390 SUPPRESS_LIBGCJ_BC_TRUE='#'
19391 SUPPRESS_LIBGCJ_BC_FALSE=
19395 build_libgcj_reduced_reflection=no
19396 # Check whether --enable-reduced-reflection was given.
19397 if test "${enable_reduced_reflection+set}" = set; then :
19398 enableval=$enable_reduced_reflection; if test "$enable_reduced_reflection" = "yes"; then
19399 build_libgcj_reduced_reflection=yes
19403 if test "$build_libgcj_reduced_reflection" = "yes"; then
19404 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE=
19405 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE='#'
19406 else
19407 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE='#'
19408 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE=
19412 # What is the native OS API for MinGW?
19414 # Check whether --with-win32-nlsapi was given.
19415 if test "${with_win32_nlsapi+set}" = set; then :
19416 withval=$with_win32_nlsapi; case "${withval}" in
19417 ansi) with_win32_nlsapi=ansi ;;
19418 unicows) with_win32_nlsapi=unicows ;;
19419 unicode) with_win32_nlsapi=unicode ;;
19420 *) as_fn_error "Bad value ${withval} for --with-win32-nlsapi." "$LINENO" 5 ;;
19421 esac
19422 else
19423 with_win32_nlsapi=ansi
19427 case "${with_win32_nlsapi}" in
19428 unicows | unicode)
19430 $as_echo "#define MINGW_LIBGCJ_UNICODE 1" >>confdefs.h
19433 esac
19435 # configure.host sets slow_pthread_self if the synchronization code should
19436 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
19437 if test "${slow_pthread_self}" = "yes"; then
19439 $as_echo "#define SLOW_PTHREAD_SELF 1" >>confdefs.h
19443 # Check for gc debugging. This option is handled both here and in the GC.
19444 # Check whether --enable-gc-debug was given.
19445 if test "${enable_gc_debug+set}" = set; then :
19446 enableval=$enable_gc_debug; if test "$enable_gc_debug" = "yes"; then
19448 $as_echo "#define LIBGCJ_GC_DEBUG 1" >>confdefs.h
19454 # See if the user has the interpreter included.
19455 # Check whether --enable-interpreter was given.
19456 if test "${enable_interpreter+set}" = set; then :
19457 enableval=$enable_interpreter; if test "$enable_interpreter" = yes; then
19458 # This can also be set in configure.host.
19459 libgcj_interpreter=yes
19460 elif test "$enable_interpreter" = no; then
19461 libgcj_interpreter=no
19466 if test "$libgcj_interpreter" = yes; then
19468 $as_echo "#define INTERPRETER 1" >>confdefs.h
19471 INTERPRETER="$libgcj_interpreter"
19473 if test "$libgcj_interpreter" = yes; then
19474 INTERPRETER_TRUE=
19475 INTERPRETER_FALSE='#'
19476 else
19477 INTERPRETER_TRUE='#'
19478 INTERPRETER_FALSE=
19482 # If we are not using SJLJ exceptions, and this host does not have support
19483 # for unwinding from a signal handler, enable checked dereferences and divides.
19484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is configured for setjmp/longjmp exceptions" >&5
19485 $as_echo_n "checking whether the compiler is configured for setjmp/longjmp exceptions... " >&6; }
19486 if test "${ac_cv_sjlj_exceptions+set}" = set; then :
19487 $as_echo_n "(cached) " >&6
19488 else
19489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19490 /* end confdefs.h. */
19491 #ifdef __USING_SJLJ_EXCEPTIONS__
19492 this will fail
19493 #endif
19495 main ()
19497 int i;
19499 return 0;
19501 _ACEOF
19502 if ac_fn_c_try_compile "$LINENO"; then :
19503 ac_cv_sjlj_exceptions=no
19504 else
19505 ac_cv_sjlj_exceptions=yes
19507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sjlj_exceptions" >&5
19510 $as_echo "$ac_cv_sjlj_exceptions" >&6; }
19511 if test $ac_cv_sjlj_exceptions = no && test $can_unwind_signal = no; then
19512 CHECKREFSPEC=-fcheck-references
19513 DIVIDESPEC=-fuse-divide-subroutine
19514 EXCEPTIONSPEC=
19517 # See if the user wants to disable java.net. This is the mildly
19518 # ugly way that we admit that target-side configuration sucks.
19519 # Check whether --enable-java-net was given.
19520 if test "${enable_java_net+set}" = set; then :
19521 enableval=$enable_java_net;
19525 # Whether java.net is built by default can depend on the target.
19526 if test -z "$enable_java_net"; then
19527 enable_java_net=${enable_java_net_default-yes}
19529 if test "$enable_java_net" = no; then
19531 $as_echo "#define DISABLE_JAVA_NET 1" >>confdefs.h
19535 # See if the user wants to configure without libffi. Some
19536 # architectures don't support it, and default values are set in
19537 # configure.host.
19539 # Check whether --with-libffi was given.
19540 if test "${with_libffi+set}" = set; then :
19541 withval=$with_libffi; :
19542 else
19543 with_libffi=${with_libffi_default-yes}
19547 LIBFFI=
19548 LIBFFIINCS=
19549 if test "$with_libffi" != no; then
19551 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
19553 LIBFFI=../libffi/libffi_convenience.la
19554 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
19559 # See if the user wants to disable JVMPI support.
19560 # Check whether --enable-jvmpi was given.
19561 if test "${enable_jvmpi+set}" = set; then :
19562 enableval=$enable_jvmpi;
19566 if test "$enable_jvmpi" != no; then
19568 $as_echo "#define ENABLE_JVMPI 1" >>confdefs.h
19572 # If the target is an eCos system, use the appropriate eCos
19573 # I/O routines.
19574 # FIXME: this should not be a local option but a global target
19575 # system; at present there is no eCos target.
19576 TARGET_ECOS=${PROCESS-"no"}
19578 # Check whether --with-ecos was given.
19579 if test "${with_ecos+set}" = set; then :
19580 withval=$with_ecos; TARGET_ECOS="$with_ecos"
19585 case "$TARGET_ECOS" in
19586 no) case "$host" in
19587 *mingw*)
19588 PLATFORM=Win32
19589 PLATFORMNET=Win32
19590 PLATFORMH=win32.h
19592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'ld' is at least 2.13" >&5
19593 $as_echo_n "checking whether 'ld' is at least 2.13... " >&6; }
19594 LD_PROG=`$CC --print-prog-name=ld`
19595 LD_VERSION=`$LD_PROG --version`
19596 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
19597 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
19598 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
19599 LD_OK="ok"
19600 else
19601 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
19602 LD_OK="ok"
19605 if test "x$LD_OK" != x; then
19606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19607 $as_echo "yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19608 else
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19610 $as_echo "no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
19612 $as_echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
19614 $as_echo "#define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1" >>confdefs.h
19619 PLATFORM=Posix
19620 PLATFORMNET=Posix
19621 PLATFORMH=posix.h
19623 esac
19626 PLATFORM=Ecos
19627 PLATFORMNET=NoNet
19629 $as_echo "#define ECOS 1" >>confdefs.h
19631 PLATFORMH=posix.h
19633 esac
19635 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
19638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19639 /* end confdefs.h. */
19640 #include <stdint.h>
19642 _ACEOF
19643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19644 $EGREP "uint32_t" >/dev/null 2>&1; then :
19646 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19649 rm -f conftest*
19651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19652 /* end confdefs.h. */
19653 #include <inttypes.h>
19655 _ACEOF
19656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19657 $EGREP "uint32_t" >/dev/null 2>&1; then :
19659 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19662 rm -f conftest*
19664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19665 /* end confdefs.h. */
19666 #include <sys/types.h>
19668 _ACEOF
19669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19670 $EGREP "u_int32_t" >/dev/null 2>&1; then :
19672 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19675 rm -f conftest*
19677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19678 /* end confdefs.h. */
19679 #include <sys/config.h>
19681 _ACEOF
19682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19683 $EGREP "u_int32_t" >/dev/null 2>&1; then :
19685 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19688 rm -f conftest*
19691 if test "$PLATFORM" = Win32; then
19692 USING_WIN32_PLATFORM_TRUE=
19693 USING_WIN32_PLATFORM_FALSE='#'
19694 else
19695 USING_WIN32_PLATFORM_TRUE='#'
19696 USING_WIN32_PLATFORM_FALSE=
19699 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
19700 USING_POSIX_PLATFORM_TRUE=
19701 USING_POSIX_PLATFORM_FALSE='#'
19702 else
19703 USING_POSIX_PLATFORM_TRUE='#'
19704 USING_POSIX_PLATFORM_FALSE=
19708 case "$host" in
19709 *-darwin*) DARWIN_CRT=true ;;
19710 *) DARWIN_CRT=false ;;
19711 esac
19712 if $DARWIN_CRT; then
19713 USING_DARWIN_CRT_TRUE=
19714 USING_DARWIN_CRT_FALSE='#'
19715 else
19716 USING_DARWIN_CRT_TRUE='#'
19717 USING_DARWIN_CRT_FALSE=
19721 # This may not be defined in a non-ANS conformant embedded system.
19722 # FIXME: Should these case a runtime exception in that case?
19723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19724 /* end confdefs.h. */
19725 #include <time.h>
19727 _ACEOF
19728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19729 $EGREP "localtime" >/dev/null 2>&1; then :
19731 $as_echo "#define HAVE_LOCALTIME 1" >>confdefs.h
19734 rm -f conftest*
19737 # Create the subdirectory for natFile.cc, or the attempt
19738 # to create the link will fail.
19739 test -d java || mkdir java
19740 test -d java/io || mkdir java/io
19741 test -d gnu || mkdir gnu
19742 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
19745 # Likewise for natConcreteProcess.cc.
19746 test -d java/lang || mkdir java/lang
19747 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
19750 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
19751 test -d java/net || mkdir java/net
19752 ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
19754 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
19757 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
19758 test -d gnu/java || mkdir gnu/java
19759 test -d gnu/java/net || mkdir gnu/java/net
19760 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
19762 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
19765 # Likewise for natVMPipe.cc and natVMSelector.cc.
19766 test -d gnu/java/nio || mkdir gnu/java/nio
19767 ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
19769 ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
19772 # Likewise for natFileChannelImpl.cc
19773 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
19774 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
19777 # Likewise for natVMSecureRandom.cc
19778 test -d gnu/java/security || mkdir gnu/java/security
19779 test -d gnu/java/security/jce || mkdir gnu/java/security/jce
19780 test -d gnu/java/security/jce/prng || mkdir gnu/java/security/jce/prng
19781 ac_config_links="$ac_config_links gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc"
19784 case "${host}" in
19785 *mingw*)
19786 SYSTEMSPEC="-lgdi32 -lws2_32"
19787 if test "${with_win32_nlsapi}" = "unicows"; then
19788 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
19791 *-*-darwin[912]*)
19792 SYSTEMSPEC="%{!Zdynamiclib:%{!Zbundle:-allow_stack_execute}}"
19795 SYSTEMSPEC=
19797 esac
19801 # Check whether --with-system-zlib was given.
19802 if test "${with_system_zlib+set}" = set; then :
19803 withval=$with_system_zlib;
19806 ZLIBSPEC=
19808 ZLIBTESTSPEC=
19811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19812 $as_echo_n "checking for X... " >&6; }
19815 # Check whether --with-x was given.
19816 if test "${with_x+set}" = set; then :
19817 withval=$with_x;
19820 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19821 if test "x$with_x" = xno; then
19822 # The user explicitly disabled X.
19823 have_x=disabled
19824 else
19825 case $x_includes,$x_libraries in #(
19826 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
19827 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
19828 $as_echo_n "(cached) " >&6
19829 else
19830 # One or both of the vars are not set, and there is no cached value.
19831 ac_x_includes=no ac_x_libraries=no
19832 rm -f -r conftest.dir
19833 if mkdir conftest.dir; then
19834 cd conftest.dir
19835 cat >Imakefile <<'_ACEOF'
19836 incroot:
19837 @echo incroot='${INCROOT}'
19838 usrlibdir:
19839 @echo usrlibdir='${USRLIBDIR}'
19840 libdir:
19841 @echo libdir='${LIBDIR}'
19842 _ACEOF
19843 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19844 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19845 for ac_var in incroot usrlibdir libdir; do
19846 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19847 done
19848 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19849 for ac_extension in a so sl dylib la dll; do
19850 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19851 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19852 ac_im_usrlibdir=$ac_im_libdir; break
19854 done
19855 # Screen out bogus values from the imake configuration. They are
19856 # bogus both because they are the default anyway, and because
19857 # using them would break gcc on systems where it needs fixed includes.
19858 case $ac_im_incroot in
19859 /usr/include) ac_x_includes= ;;
19860 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19861 esac
19862 case $ac_im_usrlibdir in
19863 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19864 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19865 esac
19867 cd ..
19868 rm -f -r conftest.dir
19871 # Standard set of common directories for X headers.
19872 # Check X11 before X11Rn because it is often a symlink to the current release.
19873 ac_x_header_dirs='
19874 /usr/X11/include
19875 /usr/X11R7/include
19876 /usr/X11R6/include
19877 /usr/X11R5/include
19878 /usr/X11R4/include
19880 /usr/include/X11
19881 /usr/include/X11R7
19882 /usr/include/X11R6
19883 /usr/include/X11R5
19884 /usr/include/X11R4
19886 /usr/local/X11/include
19887 /usr/local/X11R7/include
19888 /usr/local/X11R6/include
19889 /usr/local/X11R5/include
19890 /usr/local/X11R4/include
19892 /usr/local/include/X11
19893 /usr/local/include/X11R7
19894 /usr/local/include/X11R6
19895 /usr/local/include/X11R5
19896 /usr/local/include/X11R4
19898 /usr/X386/include
19899 /usr/x386/include
19900 /usr/XFree86/include/X11
19902 /usr/include
19903 /usr/local/include
19904 /usr/unsupported/include
19905 /usr/athena/include
19906 /usr/local/x11r5/include
19907 /usr/lpp/Xamples/include
19909 /usr/openwin/include
19910 /usr/openwin/share/include'
19912 if test "$ac_x_includes" = no; then
19913 # Guess where to find include files, by looking for Xlib.h.
19914 # First, try using that file with no special directory specified.
19915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19916 /* end confdefs.h. */
19917 #include <X11/Xlib.h>
19918 _ACEOF
19919 if ac_fn_c_try_cpp "$LINENO"; then :
19920 # We can compile using X headers with no special include directory.
19921 ac_x_includes=
19922 else
19923 for ac_dir in $ac_x_header_dirs; do
19924 if test -r "$ac_dir/X11/Xlib.h"; then
19925 ac_x_includes=$ac_dir
19926 break
19928 done
19930 rm -f conftest.err conftest.$ac_ext
19931 fi # $ac_x_includes = no
19933 if test "$ac_x_libraries" = no; then
19934 # Check for the libraries.
19935 # See if we find them without any special options.
19936 # Don't add to $LIBS permanently.
19937 ac_save_LIBS=$LIBS
19938 LIBS="-lX11 $LIBS"
19939 if test x$gcc_no_link = xyes; then
19940 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19943 /* end confdefs.h. */
19944 #include <X11/Xlib.h>
19946 main ()
19948 XrmInitialize ()
19950 return 0;
19952 _ACEOF
19953 if ac_fn_c_try_link "$LINENO"; then :
19954 LIBS=$ac_save_LIBS
19955 # We can link X programs with no special library path.
19956 ac_x_libraries=
19957 else
19958 LIBS=$ac_save_LIBS
19959 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19961 # Don't even attempt the hair of trying to link an X program!
19962 for ac_extension in a so sl dylib la dll; do
19963 if test -r "$ac_dir/libX11.$ac_extension"; then
19964 ac_x_libraries=$ac_dir
19965 break 2
19967 done
19968 done
19970 rm -f core conftest.err conftest.$ac_objext \
19971 conftest$ac_exeext conftest.$ac_ext
19972 fi # $ac_x_libraries = no
19974 case $ac_x_includes,$ac_x_libraries in #(
19975 no,* | *,no | *\'*)
19976 # Didn't find X, or a directory has "'" in its name.
19977 ac_cv_have_x="have_x=no";; #(
19979 # Record where we found X for the cache.
19980 ac_cv_have_x="have_x=yes\
19981 ac_x_includes='$ac_x_includes'\
19982 ac_x_libraries='$ac_x_libraries'"
19983 esac
19985 ;; #(
19986 *) have_x=yes;;
19987 esac
19988 eval "$ac_cv_have_x"
19989 fi # $with_x != no
19991 if test "$have_x" != yes; then
19992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19993 $as_echo "$have_x" >&6; }
19994 no_x=yes
19995 else
19996 # If each of the values was on the command line, it overrides each guess.
19997 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19998 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19999 # Update the cache value to reflect the command line values.
20000 ac_cv_have_x="have_x=yes\
20001 ac_x_includes='$x_includes'\
20002 ac_x_libraries='$x_libraries'"
20003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
20004 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
20007 if test "$no_x" = yes; then
20008 # Not all programs may use this symbol, but it does not hurt to define it.
20010 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
20012 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
20013 else
20014 if test -n "$x_includes"; then
20015 X_CFLAGS="$X_CFLAGS -I$x_includes"
20018 # It would also be nice to do this for all -L options, not just this one.
20019 if test -n "$x_libraries"; then
20020 X_LIBS="$X_LIBS -L$x_libraries"
20021 # For Solaris; some versions of Sun CC require a space after -R and
20022 # others require no space. Words are not sufficient . . . .
20023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
20024 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
20025 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20026 ac_xsave_c_werror_flag=$ac_c_werror_flag
20027 ac_c_werror_flag=yes
20028 if test x$gcc_no_link = xyes; then
20029 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20032 /* end confdefs.h. */
20035 main ()
20039 return 0;
20041 _ACEOF
20042 if ac_fn_c_try_link "$LINENO"; then :
20043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20044 $as_echo "no" >&6; }
20045 X_LIBS="$X_LIBS -R$x_libraries"
20046 else
20047 LIBS="$ac_xsave_LIBS -R $x_libraries"
20048 if test x$gcc_no_link = xyes; then
20049 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20052 /* end confdefs.h. */
20055 main ()
20059 return 0;
20061 _ACEOF
20062 if ac_fn_c_try_link "$LINENO"; then :
20063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20064 $as_echo "yes" >&6; }
20065 X_LIBS="$X_LIBS -R $x_libraries"
20066 else
20067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
20068 $as_echo "neither works" >&6; }
20070 rm -f core conftest.err conftest.$ac_objext \
20071 conftest$ac_exeext conftest.$ac_ext
20073 rm -f core conftest.err conftest.$ac_objext \
20074 conftest$ac_exeext conftest.$ac_ext
20075 ac_c_werror_flag=$ac_xsave_c_werror_flag
20076 LIBS=$ac_xsave_LIBS
20079 # Check for system-dependent libraries X programs must link with.
20080 # Do this before checking for the system-independent R6 libraries
20081 # (-lICE), since we may need -lsocket or whatever for X linking.
20083 if test "$ISC" = yes; then
20084 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20085 else
20086 # Martyn Johnson says this is needed for Ultrix, if the X
20087 # libraries were built with DECnet support. And Karl Berry says
20088 # the Alpha needs dnet_stub (dnet does not exist).
20089 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20090 if test x$gcc_no_link = xyes; then
20091 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20094 /* end confdefs.h. */
20096 /* Override any GCC internal prototype to avoid an error.
20097 Use char because int might match the return type of a GCC
20098 builtin and then its argument prototype would still apply. */
20099 #ifdef __cplusplus
20100 extern "C"
20101 #endif
20102 char XOpenDisplay ();
20104 main ()
20106 return XOpenDisplay ();
20108 return 0;
20110 _ACEOF
20111 if ac_fn_c_try_link "$LINENO"; then :
20113 else
20114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
20115 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
20116 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
20117 $as_echo_n "(cached) " >&6
20118 else
20119 ac_check_lib_save_LIBS=$LIBS
20120 LIBS="-ldnet $LIBS"
20121 if test x$gcc_no_link = xyes; then
20122 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20125 /* end confdefs.h. */
20127 /* Override any GCC internal prototype to avoid an error.
20128 Use char because int might match the return type of a GCC
20129 builtin and then its argument prototype would still apply. */
20130 #ifdef __cplusplus
20131 extern "C"
20132 #endif
20133 char dnet_ntoa ();
20135 main ()
20137 return dnet_ntoa ();
20139 return 0;
20141 _ACEOF
20142 if ac_fn_c_try_link "$LINENO"; then :
20143 ac_cv_lib_dnet_dnet_ntoa=yes
20144 else
20145 ac_cv_lib_dnet_dnet_ntoa=no
20147 rm -f core conftest.err conftest.$ac_objext \
20148 conftest$ac_exeext conftest.$ac_ext
20149 LIBS=$ac_check_lib_save_LIBS
20151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20152 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20153 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
20154 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20157 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
20159 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
20160 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
20161 $as_echo_n "(cached) " >&6
20162 else
20163 ac_check_lib_save_LIBS=$LIBS
20164 LIBS="-ldnet_stub $LIBS"
20165 if test x$gcc_no_link = xyes; then
20166 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20169 /* end confdefs.h. */
20171 /* Override any GCC internal prototype to avoid an error.
20172 Use char because int might match the return type of a GCC
20173 builtin and then its argument prototype would still apply. */
20174 #ifdef __cplusplus
20175 extern "C"
20176 #endif
20177 char dnet_ntoa ();
20179 main ()
20181 return dnet_ntoa ();
20183 return 0;
20185 _ACEOF
20186 if ac_fn_c_try_link "$LINENO"; then :
20187 ac_cv_lib_dnet_stub_dnet_ntoa=yes
20188 else
20189 ac_cv_lib_dnet_stub_dnet_ntoa=no
20191 rm -f core conftest.err conftest.$ac_objext \
20192 conftest$ac_exeext conftest.$ac_ext
20193 LIBS=$ac_check_lib_save_LIBS
20195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20196 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20197 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
20198 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20203 rm -f core conftest.err conftest.$ac_objext \
20204 conftest$ac_exeext conftest.$ac_ext
20205 LIBS="$ac_xsave_LIBS"
20207 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20208 # to get the SysV transport functions.
20209 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20210 # needs -lnsl.
20211 # The nsl library prevents programs from opening the X display
20212 # on Irix 5.2, according to T.E. Dickey.
20213 # The functions gethostbyname, getservbyname, and inet_addr are
20214 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20215 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
20216 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
20220 if test $ac_cv_func_gethostbyname = no; then
20221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20222 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20223 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
20224 $as_echo_n "(cached) " >&6
20225 else
20226 ac_check_lib_save_LIBS=$LIBS
20227 LIBS="-lnsl $LIBS"
20228 if test x$gcc_no_link = xyes; then
20229 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20232 /* end confdefs.h. */
20234 /* Override any GCC internal prototype to avoid an error.
20235 Use char because int might match the return type of a GCC
20236 builtin and then its argument prototype would still apply. */
20237 #ifdef __cplusplus
20238 extern "C"
20239 #endif
20240 char gethostbyname ();
20242 main ()
20244 return gethostbyname ();
20246 return 0;
20248 _ACEOF
20249 if ac_fn_c_try_link "$LINENO"; then :
20250 ac_cv_lib_nsl_gethostbyname=yes
20251 else
20252 ac_cv_lib_nsl_gethostbyname=no
20254 rm -f core conftest.err conftest.$ac_objext \
20255 conftest$ac_exeext conftest.$ac_ext
20256 LIBS=$ac_check_lib_save_LIBS
20258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20259 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20260 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
20261 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20264 if test $ac_cv_lib_nsl_gethostbyname = no; then
20265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20266 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20267 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
20268 $as_echo_n "(cached) " >&6
20269 else
20270 ac_check_lib_save_LIBS=$LIBS
20271 LIBS="-lbsd $LIBS"
20272 if test x$gcc_no_link = xyes; then
20273 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20276 /* end confdefs.h. */
20278 /* Override any GCC internal prototype to avoid an error.
20279 Use char because int might match the return type of a GCC
20280 builtin and then its argument prototype would still apply. */
20281 #ifdef __cplusplus
20282 extern "C"
20283 #endif
20284 char gethostbyname ();
20286 main ()
20288 return gethostbyname ();
20290 return 0;
20292 _ACEOF
20293 if ac_fn_c_try_link "$LINENO"; then :
20294 ac_cv_lib_bsd_gethostbyname=yes
20295 else
20296 ac_cv_lib_bsd_gethostbyname=no
20298 rm -f core conftest.err conftest.$ac_objext \
20299 conftest$ac_exeext conftest.$ac_ext
20300 LIBS=$ac_check_lib_save_LIBS
20302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
20303 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
20304 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
20305 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20311 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20312 # socket/setsockopt and other routines are undefined under SCO ODT
20313 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20314 # on later versions), says Simon Leinen: it contains gethostby*
20315 # variants that don't use the name server (or something). -lsocket
20316 # must be given before -lnsl if both are needed. We assume that
20317 # if connect needs -lnsl, so does gethostbyname.
20318 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
20319 if test "x$ac_cv_func_connect" = x""yes; then :
20323 if test $ac_cv_func_connect = no; then
20324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
20325 $as_echo_n "checking for connect in -lsocket... " >&6; }
20326 if test "${ac_cv_lib_socket_connect+set}" = set; then :
20327 $as_echo_n "(cached) " >&6
20328 else
20329 ac_check_lib_save_LIBS=$LIBS
20330 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20331 if test x$gcc_no_link = xyes; then
20332 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20335 /* end confdefs.h. */
20337 /* Override any GCC internal prototype to avoid an error.
20338 Use char because int might match the return type of a GCC
20339 builtin and then its argument prototype would still apply. */
20340 #ifdef __cplusplus
20341 extern "C"
20342 #endif
20343 char connect ();
20345 main ()
20347 return connect ();
20349 return 0;
20351 _ACEOF
20352 if ac_fn_c_try_link "$LINENO"; then :
20353 ac_cv_lib_socket_connect=yes
20354 else
20355 ac_cv_lib_socket_connect=no
20357 rm -f core conftest.err conftest.$ac_objext \
20358 conftest$ac_exeext conftest.$ac_ext
20359 LIBS=$ac_check_lib_save_LIBS
20361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
20362 $as_echo "$ac_cv_lib_socket_connect" >&6; }
20363 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
20364 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20369 # Guillermo Gomez says -lposix is necessary on A/UX.
20370 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
20371 if test "x$ac_cv_func_remove" = x""yes; then :
20375 if test $ac_cv_func_remove = no; then
20376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
20377 $as_echo_n "checking for remove in -lposix... " >&6; }
20378 if test "${ac_cv_lib_posix_remove+set}" = set; then :
20379 $as_echo_n "(cached) " >&6
20380 else
20381 ac_check_lib_save_LIBS=$LIBS
20382 LIBS="-lposix $LIBS"
20383 if test x$gcc_no_link = xyes; then
20384 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20387 /* end confdefs.h. */
20389 /* Override any GCC internal prototype to avoid an error.
20390 Use char because int might match the return type of a GCC
20391 builtin and then its argument prototype would still apply. */
20392 #ifdef __cplusplus
20393 extern "C"
20394 #endif
20395 char remove ();
20397 main ()
20399 return remove ();
20401 return 0;
20403 _ACEOF
20404 if ac_fn_c_try_link "$LINENO"; then :
20405 ac_cv_lib_posix_remove=yes
20406 else
20407 ac_cv_lib_posix_remove=no
20409 rm -f core conftest.err conftest.$ac_objext \
20410 conftest$ac_exeext conftest.$ac_ext
20411 LIBS=$ac_check_lib_save_LIBS
20413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
20414 $as_echo "$ac_cv_lib_posix_remove" >&6; }
20415 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
20416 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20421 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20422 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20423 if test "x$ac_cv_func_shmat" = x""yes; then :
20427 if test $ac_cv_func_shmat = no; then
20428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
20429 $as_echo_n "checking for shmat in -lipc... " >&6; }
20430 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
20431 $as_echo_n "(cached) " >&6
20432 else
20433 ac_check_lib_save_LIBS=$LIBS
20434 LIBS="-lipc $LIBS"
20435 if test x$gcc_no_link = xyes; then
20436 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20439 /* end confdefs.h. */
20441 /* Override any GCC internal prototype to avoid an error.
20442 Use char because int might match the return type of a GCC
20443 builtin and then its argument prototype would still apply. */
20444 #ifdef __cplusplus
20445 extern "C"
20446 #endif
20447 char shmat ();
20449 main ()
20451 return shmat ();
20453 return 0;
20455 _ACEOF
20456 if ac_fn_c_try_link "$LINENO"; then :
20457 ac_cv_lib_ipc_shmat=yes
20458 else
20459 ac_cv_lib_ipc_shmat=no
20461 rm -f core conftest.err conftest.$ac_objext \
20462 conftest$ac_exeext conftest.$ac_ext
20463 LIBS=$ac_check_lib_save_LIBS
20465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
20466 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20467 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
20468 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20474 # Check for libraries that X11R6 Xt/Xaw programs need.
20475 ac_save_LDFLAGS=$LDFLAGS
20476 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20477 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20478 # check for ICE first), but we must link in the order -lSM -lICE or
20479 # we get undefined symbols. So assume we have SM if we have ICE.
20480 # These have to be linked with before -lX11, unlike the other
20481 # libraries we check for below, so use a different variable.
20482 # John Interrante, Karl Berry
20483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
20484 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20485 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
20486 $as_echo_n "(cached) " >&6
20487 else
20488 ac_check_lib_save_LIBS=$LIBS
20489 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20490 if test x$gcc_no_link = xyes; then
20491 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20494 /* end confdefs.h. */
20496 /* Override any GCC internal prototype to avoid an error.
20497 Use char because int might match the return type of a GCC
20498 builtin and then its argument prototype would still apply. */
20499 #ifdef __cplusplus
20500 extern "C"
20501 #endif
20502 char IceConnectionNumber ();
20504 main ()
20506 return IceConnectionNumber ();
20508 return 0;
20510 _ACEOF
20511 if ac_fn_c_try_link "$LINENO"; then :
20512 ac_cv_lib_ICE_IceConnectionNumber=yes
20513 else
20514 ac_cv_lib_ICE_IceConnectionNumber=no
20516 rm -f core conftest.err conftest.$ac_objext \
20517 conftest$ac_exeext conftest.$ac_ext
20518 LIBS=$ac_check_lib_save_LIBS
20520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20521 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20522 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
20523 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20526 LDFLAGS=$ac_save_LDFLAGS
20531 # FIXME: this should be _libs on some hosts.
20532 libsubdir=.libs
20534 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20536 LIBSTDCXXSPEC=
20537 # extra LD Flags which are required for targets
20538 case "${host}" in
20539 *-*-darwin[0-7].*)
20540 # For now we have to disable it on darwin[8-9] because it slows down
20541 # the linking phase. A possible bug in ld?
20542 # on Darwin -single_module speeds up loading of the dynamic libraries.
20543 extra_ldflags_libjava=-Wl,-single_module
20545 arm*-*-linux-*)
20546 # Some of the ARM unwinder code is actually in libstdc++. We
20547 # could in principle replicate it in libgcj, but it's better to
20548 # have a dependency on libstdc++.
20549 extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20550 LIBSTDCXXSPEC=-lstdc++
20551 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20553 *-*-cygwin)
20554 extra_ldflags_libjava=-liconv
20556 *-*-mingw*)
20557 extra_ldflags_libjava=-lws2_32
20559 esac
20561 LIBMATHSPEC=
20562 # extra LD Flags which are required for targets
20563 case "${host}" in
20564 *-*-darwin*)
20567 LIBMATHSPEC=-lm
20569 esac
20571 # Check for --no-merge-exidx-entries, an ARM-specific linker option.
20572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --no-merge-exidx-entries" >&5
20573 $as_echo_n "checking for --no-merge-exidx-entries... " >&6; }
20574 if test "${libgcj_cv_exidx+set}" = set; then :
20575 $as_echo_n "(cached) " >&6
20576 else
20577 saved_ldflags="$LDFLAGS"
20578 LDFLAGS="${LDFLAGS} -Wl,--no-merge-exidx-entries"
20579 if test x$gcc_no_link = xyes; then
20580 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20583 /* end confdefs.h. */
20584 int main(void){ return 0;}
20585 _ACEOF
20586 if ac_fn_c_try_link "$LINENO"; then :
20587 eval "libgcj_cv_exidx=yes"
20588 else
20589 eval "libgcj_cv_exidx=no"
20591 rm -f core conftest.err conftest.$ac_objext \
20592 conftest$ac_exeext conftest.$ac_ext
20593 LDFLAGS="${saved_ldflags}"
20596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcj_cv_exidx" >&5
20597 $as_echo "$libgcj_cv_exidx" >&6; }
20598 if test "${libgcj_cv_exidx}" = "yes"; then
20599 SYSTEMSPEC="${SYSTEMSPEC} --no-merge-exidx-entries"
20600 extra_ldflags="${extra_ldflags} -Wl,--no-merge-exidx-entries"
20610 # Allow the GC to be disabled. Can be useful when debugging.
20611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for garbage collector to use" >&5
20612 $as_echo_n "checking for garbage collector to use... " >&6; }
20613 # Check whether --enable-java-gc was given.
20614 if test "${enable_java_gc+set}" = set; then :
20615 enableval=$enable_java_gc; GC=$enableval
20616 else
20617 GC=boehm
20620 GCLIBS=
20621 GCINCS=
20622 GCDEPS=
20623 GCSPEC=
20624 JC1GCSPEC=
20625 GCTESTSPEC=
20626 case "$GC" in
20627 boehm)
20628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: boehm" >&5
20629 $as_echo "boehm" >&6; }
20630 GCLIBS=../boehm-gc/libgcjgc_convenience.la
20631 JC1GCSPEC='-fuse-boehm-gc'
20632 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20633 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20634 GCOBJS=boehm.lo
20635 GCHDR=boehm-gc.h
20636 # The POSIX thread support needs to know this.
20638 $as_echo "#define HAVE_BOEHM_GC 1" >>confdefs.h
20642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
20643 $as_echo "none" >&6; }
20644 GCHDR=no-gc.h
20647 as_fn_error "unrecognized collector \"$GC\"" "$LINENO" 5
20649 esac
20656 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20658 if test "$GC" = boehm; then
20659 USING_BOEHMGC_TRUE=
20660 USING_BOEHMGC_FALSE='#'
20661 else
20662 USING_BOEHMGC_TRUE='#'
20663 USING_BOEHMGC_FALSE=
20666 if test "$GC" = no; then
20667 USING_NOGC_TRUE=
20668 USING_NOGC_FALSE='#'
20669 else
20670 USING_NOGC_TRUE='#'
20671 USING_NOGC_FALSE=
20676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
20677 $as_echo_n "checking for thread model used by GCC... " >&6; }
20678 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
20680 $as_echo "$THREADS" >&6; }
20682 case "$THREADS" in
20683 no | none | single)
20684 THREADS=none
20686 aix | posix | pthreads)
20687 THREADS=posix
20688 case "$host" in
20689 *-*-linux*)
20691 $as_echo "#define LINUX_THREADS 1" >>confdefs.h
20694 esac
20696 win32)
20698 dce | vxworks)
20699 as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
20702 as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
20704 esac
20706 THREADCXXFLAGS=
20707 THREADLDFLAGS=
20708 THREADLIBS=
20709 THREADINCS=
20710 THREADDEPS=
20711 THREADH=
20712 THREADSPEC=
20713 THREADSTARTFILESPEC=
20714 case "$THREADS" in
20715 posix)
20716 case "$host" in
20717 *-*-cygwin*)
20718 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
20720 *-*-freebsd[34].*)
20721 # Before FreeBSD 5, it didn't have -lpthread (or any library which
20722 # merely adds pthread_* functions) but it does have a -pthread switch
20723 # which is required at link-time to select -lc_r *instead* of -lc.
20724 THREADLDFLAGS=-pthread
20725 # Don't set THREADSPEC here as might be expected since -pthread is
20726 # not processed when found within a spec file, it must come from
20727 # the command line. For now, the user must provide the -pthread
20728 # switch to link code compiled with gcj. In future, consider adding
20729 # support for weak references to pthread_* functions ala gthr.h API.
20730 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20732 *-*-freebsd*)
20733 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20734 # systems which support threads and -lpthread.
20735 THREADLDFLAGS=-pthread
20736 THREADSPEC=-lpthread
20738 hppa*-hp-hpux*)
20739 THREADCXXFLAGS=-pthread
20740 # boehm-gc needs some functions from librt, so link that too.
20741 THREADLIBS='-lpthread -lrt'
20742 THREADSPEC='-lpthread -lrt'
20744 *-*-darwin*)
20745 # Don't set THREADLIBS or THREADSPEC as Darwin already
20746 # provides pthread via libSystem.
20749 THREADLIBS=-lpthread
20750 THREADSPEC=-lpthread
20752 esac
20753 THREADH=posix-threads.h
20754 # MIT pthreads doesn't seem to have the mutexattr functions.
20755 # But for now we don't check for it. We just assume you aren't
20756 # using MIT pthreads.
20758 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20761 # If we're using the Boehm GC, then we happen to know that it
20762 # defines _REENTRANT, so we don't bother. Eww.
20763 if test "$GC" != boehm; then
20765 $as_echo "#define _REENTRANT 1" >>confdefs.h
20769 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
20773 win32)
20774 THREADH=win32-threads.h
20775 THREADCXXFLAGS=-mthreads
20776 # We need thread-safe exception handling so _CRT_MT should be set to 1.
20777 # But we do not want the executables created to be dependent on
20778 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20779 # exception handling contexts. The following kludge achieves this effect
20780 # and causes a dummy __mingwthr_key_dtor() to be linked in from
20781 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
20782 # A workaround is to explicitly use -mthreads while linking Java programs.
20783 # See PR libgcj/28263.
20785 # FIXME: In Java we are able to detect thread death at the end of
20786 # Thread.run() so we should be able to clean up the exception handling
20787 # contexts ourselves.
20788 case "$host" in
20789 *-w64-mingw*)
20792 THREADSTARTFILESPEC='crtmt%O%s'
20794 esac
20796 none)
20797 THREADH=no-threads.h
20799 esac
20800 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20809 if test "$THREADS" = posix; then
20810 USING_POSIX_THREADS_TRUE=
20811 USING_POSIX_THREADS_FALSE='#'
20812 else
20813 USING_POSIX_THREADS_TRUE='#'
20814 USING_POSIX_THREADS_FALSE=
20817 if test "$THREADS" = win32; then
20818 USING_WIN32_THREADS_TRUE=
20819 USING_WIN32_THREADS_FALSE='#'
20820 else
20821 USING_WIN32_THREADS_TRUE='#'
20822 USING_WIN32_THREADS_FALSE=
20825 if test "$THREADS" = none; then
20826 USING_NO_THREADS_TRUE=
20827 USING_NO_THREADS_FALSE='#'
20828 else
20829 USING_NO_THREADS_TRUE='#'
20830 USING_NO_THREADS_FALSE=
20833 if test "$enable_shared" != yes; then
20834 use_libgcj_bc=no
20836 if test "$use_libgcj_bc" = yes; then
20837 USE_LIBGCJ_BC_TRUE=
20838 USE_LIBGCJ_BC_FALSE='#'
20839 else
20840 USE_LIBGCJ_BC_TRUE='#'
20841 USE_LIBGCJ_BC_FALSE=
20845 if test -d sysdep; then true; else mkdir sysdep; fi
20846 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20848 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20850 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20853 LIBGCJ_SPEC_LGCJ=-lgcj
20854 LIBGCJ_SPEC_LGCJ_BC=-lgcj_bc
20855 if test x"$libgcj_spec_lgcj_override" != x ; then
20856 LIBGCJ_SPEC_LGCJ=$libgcj_spec_lgcj_override
20858 if test x"$libgcj_spec_lgcj_bc_override" != x ; then
20859 LIBGCJ_SPEC_LGCJ_BC=$libgcj_spec_lgcj_bc_override
20861 LIBGCJ_SPEC="%{s-bc-abi:} $LIBGCJ_SPEC_LGCJ"
20862 if test "$use_libgcj_bc" = yes; then
20863 LIBGCJ_SPEC="%{static|static-libgcj|!s-bc-abi:$LIBGCJ_SPEC_LGCJ;:$LIBGCJ_SPEC_LGCJ_BC}"
20864 LIBGCJ_BC_SPEC="%{findirect-dispatch:-fPIC}"
20869 HASH_SYNC_SPEC=
20870 # Hash synchronization is only useful with posix threads right now.
20871 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20872 HASH_SYNC_SPEC=-fhash-synchronization
20874 $as_echo "#define JV_HASH_SYNCHRONIZATION 1" >>confdefs.h
20879 if test "$GCC" = yes; then
20880 USING_GCC_TRUE=
20881 USING_GCC_FALSE='#'
20882 else
20883 USING_GCC_TRUE='#'
20884 USING_GCC_FALSE=
20888 # We're in the tree with libgcc, and need to include some of its headers.
20889 LIBGCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../libgcc'
20891 if test "x${with_newlib}" = "xyes"; then
20892 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
20893 # may not work correctly, because the compiler may not be able to
20894 # link executables.
20896 # We assume newlib. This lets us hard-code the functions we know
20897 # we'll have.
20899 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20902 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
20905 $as_echo "#define HAVE_TIME 1" >>confdefs.h
20908 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20911 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
20914 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
20916 # This is only for POSIX threads.
20918 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20921 # Assume we do not have getuid and friends.
20923 $as_echo "#define NO_GETUID 1" >>confdefs.h
20925 PLATFORMNET=NoNet
20926 else
20927 for ac_func in strerror_r select fstat open fsync sleep opendir \
20928 localtime_r getpwuid_r getcwd \
20929 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20930 nl_langinfo setlocale \
20931 inet_pton uname inet_ntoa \
20932 getrlimit sigaction ftruncate mmap \
20933 getifaddrs
20934 do :
20935 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20936 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20937 eval as_val=\$$as_ac_var
20938 if test "x$as_val" = x""yes; then :
20939 cat >>confdefs.h <<_ACEOF
20940 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20941 _ACEOF
20944 done
20946 for ac_func in inet_aton inet_addr
20947 do :
20948 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20949 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20950 eval as_val=\$$as_ac_var
20951 if test "x$as_val" = x""yes; then :
20952 cat >>confdefs.h <<_ACEOF
20953 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20954 _ACEOF
20955 break
20957 done
20959 for ac_header in unistd.h dlfcn.h sys/resource.h
20960 do :
20961 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20962 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20963 eval as_val=\$$as_ac_Header
20964 if test "x$as_val" = x""yes; then :
20965 cat >>confdefs.h <<_ACEOF
20966 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20967 _ACEOF
20971 done
20973 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5
20975 $as_echo_n "checking for dladdr in -ldl... " >&6; }
20976 if test "${ac_cv_lib_dl_dladdr+set}" = set; then :
20977 $as_echo_n "(cached) " >&6
20978 else
20979 ac_check_lib_save_LIBS=$LIBS
20980 LIBS="-ldl $LIBS"
20981 if test x$gcc_no_link = xyes; then
20982 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20985 /* end confdefs.h. */
20987 /* Override any GCC internal prototype to avoid an error.
20988 Use char because int might match the return type of a GCC
20989 builtin and then its argument prototype would still apply. */
20990 #ifdef __cplusplus
20991 extern "C"
20992 #endif
20993 char dladdr ();
20995 main ()
20997 return dladdr ();
20999 return 0;
21001 _ACEOF
21002 if ac_fn_c_try_link "$LINENO"; then :
21003 ac_cv_lib_dl_dladdr=yes
21004 else
21005 ac_cv_lib_dl_dladdr=no
21007 rm -f core conftest.err conftest.$ac_objext \
21008 conftest$ac_exeext conftest.$ac_ext
21009 LIBS=$ac_check_lib_save_LIBS
21011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
21012 $as_echo "$ac_cv_lib_dl_dladdr" >&6; }
21013 if test "x$ac_cv_lib_dl_dladdr" = x""yes; then :
21016 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
21018 else
21020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldld" >&5
21021 $as_echo_n "checking for dladdr in -ldld... " >&6; }
21022 if test "${ac_cv_lib_dld_dladdr+set}" = set; then :
21023 $as_echo_n "(cached) " >&6
21024 else
21025 ac_check_lib_save_LIBS=$LIBS
21026 LIBS="-ldld $LIBS"
21027 if test x$gcc_no_link = xyes; then
21028 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21031 /* end confdefs.h. */
21033 /* Override any GCC internal prototype to avoid an error.
21034 Use char because int might match the return type of a GCC
21035 builtin and then its argument prototype would still apply. */
21036 #ifdef __cplusplus
21037 extern "C"
21038 #endif
21039 char dladdr ();
21041 main ()
21043 return dladdr ();
21045 return 0;
21047 _ACEOF
21048 if ac_fn_c_try_link "$LINENO"; then :
21049 ac_cv_lib_dld_dladdr=yes
21050 else
21051 ac_cv_lib_dld_dladdr=no
21053 rm -f core conftest.err conftest.$ac_objext \
21054 conftest$ac_exeext conftest.$ac_ext
21055 LIBS=$ac_check_lib_save_LIBS
21057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dladdr" >&5
21058 $as_echo "$ac_cv_lib_dld_dladdr" >&6; }
21059 if test "x$ac_cv_lib_dld_dladdr" = x""yes; then :
21062 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
21069 if test x"$cross_compiling" = x"no"; then
21070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/exe" >&5
21071 $as_echo_n "checking for /proc/self/exe... " >&6; }
21072 if test "${ac_cv_file__proc_self_exe+set}" = set; then :
21073 $as_echo_n "(cached) " >&6
21074 else
21075 test "$cross_compiling" = yes &&
21076 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
21077 if test -r "/proc/self/exe"; then
21078 ac_cv_file__proc_self_exe=yes
21079 else
21080 ac_cv_file__proc_self_exe=no
21083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_exe" >&5
21084 $as_echo "$ac_cv_file__proc_self_exe" >&6; }
21085 if test "x$ac_cv_file__proc_self_exe" = x""yes; then :
21087 cat >>confdefs.h <<_ACEOF
21088 #define HAVE__PROC_SELF_EXE 1
21089 _ACEOF
21092 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
21096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/maps" >&5
21097 $as_echo_n "checking for /proc/self/maps... " >&6; }
21098 if test "${ac_cv_file__proc_self_maps+set}" = set; then :
21099 $as_echo_n "(cached) " >&6
21100 else
21101 test "$cross_compiling" = yes &&
21102 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
21103 if test -r "/proc/self/maps"; then
21104 ac_cv_file__proc_self_maps=yes
21105 else
21106 ac_cv_file__proc_self_maps=no
21109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_maps" >&5
21110 $as_echo "$ac_cv_file__proc_self_maps" >&6; }
21111 if test "x$ac_cv_file__proc_self_maps" = x""yes; then :
21113 cat >>confdefs.h <<_ACEOF
21114 #define HAVE__PROC_SELF_MAPS 1
21115 _ACEOF
21118 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
21122 else
21123 case $host in
21124 *-linux*)
21126 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
21129 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
21132 esac
21136 if test "X$prefix" = "XNONE"; then
21137 acl_final_prefix="$ac_default_prefix"
21138 else
21139 acl_final_prefix="$prefix"
21141 if test "X$exec_prefix" = "XNONE"; then
21142 acl_final_exec_prefix='${prefix}'
21143 else
21144 acl_final_exec_prefix="$exec_prefix"
21146 acl_save_prefix="$prefix"
21147 prefix="$acl_final_prefix"
21148 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21149 prefix="$acl_save_prefix"
21152 # Check whether --with-gnu-ld was given.
21153 if test "${with_gnu_ld+set}" = set; then :
21154 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
21155 else
21156 with_gnu_ld=no
21159 # Prepare PATH_SEPARATOR.
21160 # The user is always right.
21161 if test "${PATH_SEPARATOR+set}" != set; then
21162 echo "#! /bin/sh" >conf$$.sh
21163 echo "exit 0" >>conf$$.sh
21164 chmod +x conf$$.sh
21165 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21166 PATH_SEPARATOR=';'
21167 else
21168 PATH_SEPARATOR=:
21170 rm -f conf$$.sh
21172 ac_prog=ld
21173 if test "$GCC" = yes; then
21174 # Check if gcc -print-prog-name=ld gives a path.
21175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
21176 $as_echo_n "checking for ld used by GCC... " >&6; }
21177 case $host in
21178 *-*-mingw*)
21179 # gcc leaves a trailing carriage return which upsets mingw
21180 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21182 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21183 esac
21184 case $ac_prog in
21185 # Accept absolute paths.
21186 [\\/]* | [A-Za-z]:[\\/]*)
21187 re_direlt='/[^/][^/]*/\.\./'
21188 # Canonicalize the path of ld
21189 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21190 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21191 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21192 done
21193 test -z "$LD" && LD="$ac_prog"
21196 # If it fails, then pretend we aren't using GCC.
21197 ac_prog=ld
21200 # If it is relative, then search for the first ld in PATH.
21201 with_gnu_ld=unknown
21203 esac
21204 elif test "$with_gnu_ld" = yes; then
21205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
21206 $as_echo_n "checking for GNU ld... " >&6; }
21207 else
21208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
21209 $as_echo_n "checking for non-GNU ld... " >&6; }
21211 if test "${acl_cv_path_LD+set}" = set; then :
21212 $as_echo_n "(cached) " >&6
21213 else
21214 if test -z "$LD"; then
21215 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21216 for ac_dir in $PATH; do
21217 test -z "$ac_dir" && ac_dir=.
21218 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21219 acl_cv_path_LD="$ac_dir/$ac_prog"
21220 # Check to see if the program is GNU ld. I'd rather use --version,
21221 # but apparently some GNU ld's only accept -v.
21222 # Break only if it was the GNU/non-GNU ld that we prefer.
21223 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
21224 test "$with_gnu_ld" != no && break
21225 else
21226 test "$with_gnu_ld" != yes && break
21229 done
21230 IFS="$ac_save_ifs"
21231 else
21232 acl_cv_path_LD="$LD" # Let the user override the test with a path.
21236 LD="$acl_cv_path_LD"
21237 if test -n "$LD"; then
21238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
21239 $as_echo "$LD" >&6; }
21240 else
21241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21242 $as_echo "no" >&6; }
21244 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
21245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
21246 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
21247 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
21248 $as_echo_n "(cached) " >&6
21249 else
21250 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21251 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
21252 acl_cv_prog_gnu_ld=yes
21253 else
21254 acl_cv_prog_gnu_ld=no
21257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
21258 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
21259 with_gnu_ld=$acl_cv_prog_gnu_ld
21263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
21264 $as_echo_n "checking for shared library run path origin... " >&6; }
21265 if test "${acl_cv_rpath+set}" = set; then :
21266 $as_echo_n "(cached) " >&6
21267 else
21269 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21270 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21271 . ./conftest.sh
21272 rm -f ./conftest.sh
21273 acl_cv_rpath=done
21276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
21277 $as_echo "$acl_cv_rpath" >&6; }
21278 wl="$acl_cv_wl"
21279 libext="$acl_cv_libext"
21280 shlibext="$acl_cv_shlibext"
21281 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21282 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21283 hardcode_direct="$acl_cv_hardcode_direct"
21284 hardcode_minus_L="$acl_cv_hardcode_minus_L"
21285 # Check whether --enable-rpath was given.
21286 if test "${enable_rpath+set}" = set; then :
21287 enableval=$enable_rpath; :
21288 else
21289 enable_rpath=yes
21299 use_additional=yes
21301 acl_save_prefix="$prefix"
21302 prefix="$acl_final_prefix"
21303 acl_save_exec_prefix="$exec_prefix"
21304 exec_prefix="$acl_final_exec_prefix"
21306 eval additional_includedir=\"$includedir\"
21307 eval additional_libdir=\"$libdir\"
21309 exec_prefix="$acl_save_exec_prefix"
21310 prefix="$acl_save_prefix"
21313 # Check whether --with-libiconv-prefix was given.
21314 if test "${with_libiconv_prefix+set}" = set; then :
21315 withval=$with_libiconv_prefix;
21316 if test "X$withval" = "Xno"; then
21317 use_additional=no
21318 else
21319 if test "X$withval" = "X"; then
21321 acl_save_prefix="$prefix"
21322 prefix="$acl_final_prefix"
21323 acl_save_exec_prefix="$exec_prefix"
21324 exec_prefix="$acl_final_exec_prefix"
21326 eval additional_includedir=\"$includedir\"
21327 eval additional_libdir=\"$libdir\"
21329 exec_prefix="$acl_save_exec_prefix"
21330 prefix="$acl_save_prefix"
21332 else
21333 additional_includedir="$withval/include"
21334 additional_libdir="$withval/lib"
21340 LIBICONV=
21341 LTLIBICONV=
21342 INCICONV=
21343 rpathdirs=
21344 ltrpathdirs=
21345 names_already_handled=
21346 names_next_round='iconv '
21347 while test -n "$names_next_round"; do
21348 names_this_round="$names_next_round"
21349 names_next_round=
21350 for name in $names_this_round; do
21351 already_handled=
21352 for n in $names_already_handled; do
21353 if test "$n" = "$name"; then
21354 already_handled=yes
21355 break
21357 done
21358 if test -z "$already_handled"; then
21359 names_already_handled="$names_already_handled $name"
21360 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21361 eval value=\"\$HAVE_LIB$uppername\"
21362 if test -n "$value"; then
21363 if test "$value" = yes; then
21364 eval value=\"\$LIB$uppername\"
21365 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21366 eval value=\"\$LTLIB$uppername\"
21367 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21368 else
21371 else
21372 found_dir=
21373 found_la=
21374 found_so=
21375 found_a=
21376 if test $use_additional = yes; then
21377 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21378 found_dir="$additional_libdir"
21379 found_so="$additional_libdir/lib$name.$shlibext"
21380 if test -f "$additional_libdir/lib$name.la"; then
21381 found_la="$additional_libdir/lib$name.la"
21383 else
21384 if test -f "$additional_libdir/lib$name.$libext"; then
21385 found_dir="$additional_libdir"
21386 found_a="$additional_libdir/lib$name.$libext"
21387 if test -f "$additional_libdir/lib$name.la"; then
21388 found_la="$additional_libdir/lib$name.la"
21393 if test "X$found_dir" = "X"; then
21394 for x in $LDFLAGS $LTLIBICONV; do
21396 acl_save_prefix="$prefix"
21397 prefix="$acl_final_prefix"
21398 acl_save_exec_prefix="$exec_prefix"
21399 exec_prefix="$acl_final_exec_prefix"
21400 eval x=\"$x\"
21401 exec_prefix="$acl_save_exec_prefix"
21402 prefix="$acl_save_prefix"
21404 case "$x" in
21405 -L*)
21406 dir=`echo "X$x" | sed -e 's/^X-L//'`
21407 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21408 found_dir="$dir"
21409 found_so="$dir/lib$name.$shlibext"
21410 if test -f "$dir/lib$name.la"; then
21411 found_la="$dir/lib$name.la"
21413 else
21414 if test -f "$dir/lib$name.$libext"; then
21415 found_dir="$dir"
21416 found_a="$dir/lib$name.$libext"
21417 if test -f "$dir/lib$name.la"; then
21418 found_la="$dir/lib$name.la"
21423 esac
21424 if test "X$found_dir" != "X"; then
21425 break
21427 done
21429 if test "X$found_dir" != "X"; then
21430 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21431 if test "X$found_so" != "X"; then
21432 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21433 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21434 else
21435 haveit=
21436 for x in $ltrpathdirs; do
21437 if test "X$x" = "X$found_dir"; then
21438 haveit=yes
21439 break
21441 done
21442 if test -z "$haveit"; then
21443 ltrpathdirs="$ltrpathdirs $found_dir"
21445 if test "$hardcode_direct" = yes; then
21446 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21447 else
21448 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21449 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21450 haveit=
21451 for x in $rpathdirs; do
21452 if test "X$x" = "X$found_dir"; then
21453 haveit=yes
21454 break
21456 done
21457 if test -z "$haveit"; then
21458 rpathdirs="$rpathdirs $found_dir"
21460 else
21461 haveit=
21462 for x in $LDFLAGS $LIBICONV; do
21464 acl_save_prefix="$prefix"
21465 prefix="$acl_final_prefix"
21466 acl_save_exec_prefix="$exec_prefix"
21467 exec_prefix="$acl_final_exec_prefix"
21468 eval x=\"$x\"
21469 exec_prefix="$acl_save_exec_prefix"
21470 prefix="$acl_save_prefix"
21472 if test "X$x" = "X-L$found_dir"; then
21473 haveit=yes
21474 break
21476 done
21477 if test -z "$haveit"; then
21478 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21480 if test "$hardcode_minus_L" != no; then
21481 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21482 else
21483 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21488 else
21489 if test "X$found_a" != "X"; then
21490 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21491 else
21492 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21495 additional_includedir=
21496 case "$found_dir" in
21497 */lib | */lib/)
21498 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21499 additional_includedir="$basedir/include"
21501 esac
21502 if test "X$additional_includedir" != "X"; then
21503 if test "X$additional_includedir" != "X/usr/include"; then
21504 haveit=
21505 if test "X$additional_includedir" = "X/usr/local/include"; then
21506 if test -n "$GCC"; then
21507 case $host_os in
21508 linux*) haveit=yes;;
21509 esac
21512 if test -z "$haveit"; then
21513 for x in $CPPFLAGS $INCICONV; do
21515 acl_save_prefix="$prefix"
21516 prefix="$acl_final_prefix"
21517 acl_save_exec_prefix="$exec_prefix"
21518 exec_prefix="$acl_final_exec_prefix"
21519 eval x=\"$x\"
21520 exec_prefix="$acl_save_exec_prefix"
21521 prefix="$acl_save_prefix"
21523 if test "X$x" = "X-I$additional_includedir"; then
21524 haveit=yes
21525 break
21527 done
21528 if test -z "$haveit"; then
21529 if test -d "$additional_includedir"; then
21530 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21536 if test -n "$found_la"; then
21537 save_libdir="$libdir"
21538 case "$found_la" in
21539 */* | *\\*) . "$found_la" ;;
21540 *) . "./$found_la" ;;
21541 esac
21542 libdir="$save_libdir"
21543 for dep in $dependency_libs; do
21544 case "$dep" in
21545 -L*)
21546 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21547 if test "X$additional_libdir" != "X/usr/lib"; then
21548 haveit=
21549 if test "X$additional_libdir" = "X/usr/local/lib"; then
21550 if test -n "$GCC"; then
21551 case $host_os in
21552 linux*) haveit=yes;;
21553 esac
21556 if test -z "$haveit"; then
21557 haveit=
21558 for x in $LDFLAGS $LIBICONV; do
21560 acl_save_prefix="$prefix"
21561 prefix="$acl_final_prefix"
21562 acl_save_exec_prefix="$exec_prefix"
21563 exec_prefix="$acl_final_exec_prefix"
21564 eval x=\"$x\"
21565 exec_prefix="$acl_save_exec_prefix"
21566 prefix="$acl_save_prefix"
21568 if test "X$x" = "X-L$additional_libdir"; then
21569 haveit=yes
21570 break
21572 done
21573 if test -z "$haveit"; then
21574 if test -d "$additional_libdir"; then
21575 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21578 haveit=
21579 for x in $LDFLAGS $LTLIBICONV; do
21581 acl_save_prefix="$prefix"
21582 prefix="$acl_final_prefix"
21583 acl_save_exec_prefix="$exec_prefix"
21584 exec_prefix="$acl_final_exec_prefix"
21585 eval x=\"$x\"
21586 exec_prefix="$acl_save_exec_prefix"
21587 prefix="$acl_save_prefix"
21589 if test "X$x" = "X-L$additional_libdir"; then
21590 haveit=yes
21591 break
21593 done
21594 if test -z "$haveit"; then
21595 if test -d "$additional_libdir"; then
21596 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21602 -R*)
21603 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21604 if test "$enable_rpath" != no; then
21605 haveit=
21606 for x in $rpathdirs; do
21607 if test "X$x" = "X$dir"; then
21608 haveit=yes
21609 break
21611 done
21612 if test -z "$haveit"; then
21613 rpathdirs="$rpathdirs $dir"
21615 haveit=
21616 for x in $ltrpathdirs; do
21617 if test "X$x" = "X$dir"; then
21618 haveit=yes
21619 break
21621 done
21622 if test -z "$haveit"; then
21623 ltrpathdirs="$ltrpathdirs $dir"
21627 -l*)
21628 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21630 *.la)
21631 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21634 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21635 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21637 esac
21638 done
21640 else
21641 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21642 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21646 done
21647 done
21648 if test "X$rpathdirs" != "X"; then
21649 if test -n "$hardcode_libdir_separator"; then
21650 alldirs=
21651 for found_dir in $rpathdirs; do
21652 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21653 done
21654 acl_save_libdir="$libdir"
21655 libdir="$alldirs"
21656 eval flag=\"$hardcode_libdir_flag_spec\"
21657 libdir="$acl_save_libdir"
21658 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21659 else
21660 for found_dir in $rpathdirs; do
21661 acl_save_libdir="$libdir"
21662 libdir="$found_dir"
21663 eval flag=\"$hardcode_libdir_flag_spec\"
21664 libdir="$acl_save_libdir"
21665 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21666 done
21669 if test "X$ltrpathdirs" != "X"; then
21670 for found_dir in $ltrpathdirs; do
21671 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21672 done
21681 am_save_CPPFLAGS="$CPPFLAGS"
21683 for element in $INCICONV; do
21684 haveit=
21685 for x in $CPPFLAGS; do
21687 acl_save_prefix="$prefix"
21688 prefix="$acl_final_prefix"
21689 acl_save_exec_prefix="$exec_prefix"
21690 exec_prefix="$acl_final_exec_prefix"
21691 eval x=\"$x\"
21692 exec_prefix="$acl_save_exec_prefix"
21693 prefix="$acl_save_prefix"
21695 if test "X$x" = "X$element"; then
21696 haveit=yes
21697 break
21699 done
21700 if test -z "$haveit"; then
21701 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21703 done
21706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
21707 $as_echo_n "checking for iconv... " >&6; }
21708 if test "${am_cv_func_iconv+set}" = set; then :
21709 $as_echo_n "(cached) " >&6
21710 else
21712 am_cv_func_iconv="no, consider installing GNU libiconv"
21713 am_cv_lib_iconv=no
21714 if test x$gcc_no_link = xyes; then
21715 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21718 /* end confdefs.h. */
21719 #include <stdlib.h>
21720 #include <iconv.h>
21722 main ()
21724 iconv_t cd = iconv_open("","");
21725 iconv(cd,NULL,NULL,NULL,NULL);
21726 iconv_close(cd);
21728 return 0;
21730 _ACEOF
21731 if ac_fn_c_try_link "$LINENO"; then :
21732 am_cv_func_iconv=yes
21734 rm -f core conftest.err conftest.$ac_objext \
21735 conftest$ac_exeext conftest.$ac_ext
21736 if test "$am_cv_func_iconv" != yes; then
21737 am_save_LIBS="$LIBS"
21738 LIBS="$LIBS $LIBICONV"
21739 if test x$gcc_no_link = xyes; then
21740 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21743 /* end confdefs.h. */
21744 #include <stdlib.h>
21745 #include <iconv.h>
21747 main ()
21749 iconv_t cd = iconv_open("","");
21750 iconv(cd,NULL,NULL,NULL,NULL);
21751 iconv_close(cd);
21753 return 0;
21755 _ACEOF
21756 if ac_fn_c_try_link "$LINENO"; then :
21757 am_cv_lib_iconv=yes
21758 am_cv_func_iconv=yes
21760 rm -f core conftest.err conftest.$ac_objext \
21761 conftest$ac_exeext conftest.$ac_ext
21762 LIBS="$am_save_LIBS"
21766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
21767 $as_echo "$am_cv_func_iconv" >&6; }
21768 if test "$am_cv_func_iconv" = yes; then
21770 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
21773 if test "$am_cv_lib_iconv" = yes; then
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
21775 $as_echo_n "checking how to link with libiconv... " >&6; }
21776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
21777 $as_echo "$LIBICONV" >&6; }
21778 else
21779 CPPFLAGS="$am_save_CPPFLAGS"
21780 LIBICONV=
21781 LTLIBICONV=
21786 if test "$am_cv_func_iconv" = yes; then
21787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
21788 $as_echo_n "checking for iconv declaration... " >&6; }
21789 if test "${am_cv_proto_iconv+set}" = set; then :
21790 $as_echo_n "(cached) " >&6
21791 else
21793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21794 /* end confdefs.h. */
21796 #include <stdlib.h>
21797 #include <iconv.h>
21798 extern
21799 #ifdef __cplusplus
21801 #endif
21802 #if defined(__STDC__) || defined(__cplusplus)
21803 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21804 #else
21805 size_t iconv();
21806 #endif
21809 main ()
21813 return 0;
21815 _ACEOF
21816 if ac_fn_c_try_compile "$LINENO"; then :
21817 am_cv_proto_iconv_arg1=""
21818 else
21819 am_cv_proto_iconv_arg1="const"
21821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21822 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);"
21825 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
21827 }$am_cv_proto_iconv" >&5
21828 $as_echo "${ac_t:-
21829 }$am_cv_proto_iconv" >&6; }
21831 cat >>confdefs.h <<_ACEOF
21832 #define ICONV_CONST $am_cv_proto_iconv_arg1
21833 _ACEOF
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
21839 $as_echo_n "checking for LC_MESSAGES... " >&6; }
21840 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
21841 $as_echo_n "(cached) " >&6
21842 else
21843 if test x$gcc_no_link = xyes; then
21844 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21847 /* end confdefs.h. */
21848 #include <locale.h>
21850 main ()
21852 return LC_MESSAGES
21854 return 0;
21856 _ACEOF
21857 if ac_fn_c_try_link "$LINENO"; then :
21858 am_cv_val_LC_MESSAGES=yes
21859 else
21860 am_cv_val_LC_MESSAGES=no
21862 rm -f core conftest.err conftest.$ac_objext \
21863 conftest$ac_exeext conftest.$ac_ext
21865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
21866 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
21867 if test $am_cv_val_LC_MESSAGES = yes; then
21869 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
21873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21874 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21875 if test "${ac_cv_struct_tm+set}" = set; then :
21876 $as_echo_n "(cached) " >&6
21877 else
21878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21879 /* end confdefs.h. */
21880 #include <sys/types.h>
21881 #include <time.h>
21884 main ()
21886 struct tm tm;
21887 int *p = &tm.tm_sec;
21888 return !p;
21890 return 0;
21892 _ACEOF
21893 if ac_fn_c_try_compile "$LINENO"; then :
21894 ac_cv_struct_tm=time.h
21895 else
21896 ac_cv_struct_tm=sys/time.h
21898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21901 $as_echo "$ac_cv_struct_tm" >&6; }
21902 if test $ac_cv_struct_tm = sys/time.h; then
21904 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21908 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21909 #include <$ac_cv_struct_tm>
21912 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21914 cat >>confdefs.h <<_ACEOF
21915 #define HAVE_STRUCT_TM_TM_ZONE 1
21916 _ACEOF
21921 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21923 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21925 else
21926 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21928 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21929 ac_have_decl=1
21930 else
21931 ac_have_decl=0
21934 cat >>confdefs.h <<_ACEOF
21935 #define HAVE_DECL_TZNAME $ac_have_decl
21936 _ACEOF
21938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21939 $as_echo_n "checking for tzname... " >&6; }
21940 if test "${ac_cv_var_tzname+set}" = set; then :
21941 $as_echo_n "(cached) " >&6
21942 else
21943 if test x$gcc_no_link = xyes; then
21944 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21947 /* end confdefs.h. */
21948 #include <time.h>
21949 #if !HAVE_DECL_TZNAME
21950 extern char *tzname[];
21951 #endif
21954 main ()
21956 return tzname[0][0];
21958 return 0;
21960 _ACEOF
21961 if ac_fn_c_try_link "$LINENO"; then :
21962 ac_cv_var_tzname=yes
21963 else
21964 ac_cv_var_tzname=no
21966 rm -f core conftest.err conftest.$ac_objext \
21967 conftest$ac_exeext conftest.$ac_ext
21969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21970 $as_echo "$ac_cv_var_tzname" >&6; }
21971 if test $ac_cv_var_tzname = yes; then
21973 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21978 LDLIBICONV=`echo " $LIBICONV " | sed "s/${acl_cv_wl--Wl,}/ /g; s/,/ /g"`
21981 for ac_func in gethostbyname_r
21982 do :
21983 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
21984 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
21985 cat >>confdefs.h <<_ACEOF
21986 #define HAVE_GETHOSTBYNAME_R 1
21987 _ACEOF
21990 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
21992 # There are two different kinds of gethostbyname_r.
21993 # We look for the one that returns `int'.
21994 # Hopefully this check is robust enough.
21995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21996 /* end confdefs.h. */
21997 #include <netdb.h>
21999 _ACEOF
22000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22001 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then :
22004 $as_echo "#define GETHOSTBYNAME_R_RETURNS_INT 1" >>confdefs.h
22007 rm -f conftest*
22010 case " $GCINCS " in
22011 *" -D_REENTRANT "*) ;;
22013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
22014 $as_echo_n "checking whether gethostbyname_r declaration requires -D_REENTRANT... " >&6; }
22015 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then :
22016 $as_echo_n "(cached) " >&6
22017 else
22018 ac_ext=cpp
22019 ac_cpp='$CXXCPP $CPPFLAGS'
22020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22025 /* end confdefs.h. */
22026 #include <netdb.h>
22028 main ()
22030 gethostbyname_r("", 0, 0);
22032 return 0;
22034 _ACEOF
22035 if ac_fn_cxx_try_compile "$LINENO"; then :
22036 libjava_cv_gethostbyname_r_needs_reentrant=no
22037 else
22038 CPPFLAGS_SAVE="$CPPFLAGS"
22039 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
22040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22041 /* end confdefs.h. */
22042 #include <netdb.h>
22044 main ()
22046 gethostbyname_r("", 0, 0);
22048 return 0;
22050 _ACEOF
22051 if ac_fn_cxx_try_compile "$LINENO"; then :
22052 libjava_cv_gethostbyname_r_needs_reentrant=yes
22053 else
22054 libjava_cv_gethostbyname_r_needs_reentrant=fail
22056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22057 CPPFLAGS="$CPPFLAGS_SAVE"
22060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22061 ac_ext=c
22062 ac_cpp='$CPP $CPPFLAGS'
22063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
22070 $as_echo "$libjava_cv_gethostbyname_r_needs_reentrant" >&6; }
22071 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
22073 $as_echo "#define _REENTRANT 1" >>confdefs.h
22077 esac
22079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct hostent_data" >&5
22080 $as_echo_n "checking for struct hostent_data... " >&6; }
22081 if test "${libjava_cv_struct_hostent_data+set}" = set; then :
22082 $as_echo_n "(cached) " >&6
22083 else
22084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22085 /* end confdefs.h. */
22087 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
22088 # define _REENTRANT 1
22089 #endif
22090 #include <netdb.h>
22092 main ()
22094 struct hostent_data data;
22096 return 0;
22098 _ACEOF
22099 if ac_fn_c_try_compile "$LINENO"; then :
22100 libjava_cv_struct_hostent_data=yes
22101 else
22102 libjava_cv_struct_hostent_data=no
22104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_struct_hostent_data" >&5
22107 $as_echo "$libjava_cv_struct_hostent_data" >&6; }
22108 if test "x$libjava_cv_struct_hostent_data" = xyes; then
22110 $as_echo "#define HAVE_STRUCT_HOSTENT_DATA 1" >>confdefs.h
22115 done
22118 # FIXME: libjava source code expects to find a prototype for
22119 # gethostbyaddr_r in netdb.h. The outer check ensures that
22120 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
22121 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
22122 # linkage check is enough, yet C++ code requires proper prototypes.)
22123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22124 /* end confdefs.h. */
22125 #include <netdb.h>
22127 _ACEOF
22128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22129 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
22131 for ac_func in gethostbyaddr_r
22132 do :
22133 ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
22134 if test "x$ac_cv_func_gethostbyaddr_r" = x""yes; then :
22135 cat >>confdefs.h <<_ACEOF
22136 #define HAVE_GETHOSTBYADDR_R 1
22137 _ACEOF
22140 $as_echo "#define HAVE_GETHOSTBYADDR_R 1" >>confdefs.h
22142 # There are two different kinds of gethostbyaddr_r.
22143 # We look for the one that returns `int'.
22144 # Hopefully this check is robust enough.
22145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22146 /* end confdefs.h. */
22147 #include <netdb.h>
22149 _ACEOF
22150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22151 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then :
22154 $as_echo "#define GETHOSTBYADDR_R_RETURNS_INT 1" >>confdefs.h
22157 rm -f conftest*
22160 done
22163 rm -f conftest*
22166 for ac_func in gethostname
22167 do :
22168 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
22169 if test "x$ac_cv_func_gethostname" = x""yes; then :
22170 cat >>confdefs.h <<_ACEOF
22171 #define HAVE_GETHOSTNAME 1
22172 _ACEOF
22175 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
22177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22178 /* end confdefs.h. */
22179 #include <unistd.h>
22181 _ACEOF
22182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22183 $EGREP "gethostname" >/dev/null 2>&1; then :
22186 $as_echo "#define HAVE_GETHOSTNAME_DECL 1" >>confdefs.h
22189 rm -f conftest*
22192 done
22195 for ac_func in usleep
22196 do :
22197 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
22198 if test "x$ac_cv_func_usleep" = x""yes; then :
22199 cat >>confdefs.h <<_ACEOF
22200 #define HAVE_USLEEP 1
22201 _ACEOF
22203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22204 /* end confdefs.h. */
22205 #include <unistd.h>
22207 _ACEOF
22208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22209 $EGREP "usleep" >/dev/null 2>&1; then :
22212 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
22215 rm -f conftest*
22218 done
22221 # Look for these functions in the thread library, but only bother
22222 # if using POSIX threads.
22223 if test "$THREADS" = posix; then
22224 save_LIBS="$LIBS"
22225 LIBS="$LIBS $THREADLIBS"
22227 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
22228 # Solaris 7 the name librt is preferred.
22229 for ac_func in sched_yield
22230 do :
22231 ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
22232 if test "x$ac_cv_func_sched_yield" = x""yes; then :
22233 cat >>confdefs.h <<_ACEOF
22234 #define HAVE_SCHED_YIELD 1
22235 _ACEOF
22237 else
22239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
22240 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
22241 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
22242 $as_echo_n "(cached) " >&6
22243 else
22244 ac_check_lib_save_LIBS=$LIBS
22245 LIBS="-lrt $LIBS"
22246 if test x$gcc_no_link = xyes; then
22247 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22250 /* end confdefs.h. */
22252 /* Override any GCC internal prototype to avoid an error.
22253 Use char because int might match the return type of a GCC
22254 builtin and then its argument prototype would still apply. */
22255 #ifdef __cplusplus
22256 extern "C"
22257 #endif
22258 char sched_yield ();
22260 main ()
22262 return sched_yield ();
22264 return 0;
22266 _ACEOF
22267 if ac_fn_c_try_link "$LINENO"; then :
22268 ac_cv_lib_rt_sched_yield=yes
22269 else
22270 ac_cv_lib_rt_sched_yield=no
22272 rm -f core conftest.err conftest.$ac_objext \
22273 conftest$ac_exeext conftest.$ac_ext
22274 LIBS=$ac_check_lib_save_LIBS
22276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
22277 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
22278 if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
22280 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22282 THREADLIBS="$THREADLIBS -lrt"
22283 THREADSPEC="$THREADSPEC -lrt"
22284 else
22286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
22287 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
22288 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then :
22289 $as_echo_n "(cached) " >&6
22290 else
22291 ac_check_lib_save_LIBS=$LIBS
22292 LIBS="-lposix4 $LIBS"
22293 if test x$gcc_no_link = xyes; then
22294 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22297 /* end confdefs.h. */
22299 /* Override any GCC internal prototype to avoid an error.
22300 Use char because int might match the return type of a GCC
22301 builtin and then its argument prototype would still apply. */
22302 #ifdef __cplusplus
22303 extern "C"
22304 #endif
22305 char sched_yield ();
22307 main ()
22309 return sched_yield ();
22311 return 0;
22313 _ACEOF
22314 if ac_fn_c_try_link "$LINENO"; then :
22315 ac_cv_lib_posix4_sched_yield=yes
22316 else
22317 ac_cv_lib_posix4_sched_yield=no
22319 rm -f core conftest.err conftest.$ac_objext \
22320 conftest$ac_exeext conftest.$ac_ext
22321 LIBS=$ac_check_lib_save_LIBS
22323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
22324 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
22325 if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then :
22327 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22329 THREADLIBS="$THREADLIBS -lposix4"
22330 THREADSPEC="$THREADSPEC -lposix4"
22336 done
22339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22340 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22341 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
22342 $as_echo_n "(cached) " >&6
22343 else
22344 ac_check_lib_save_LIBS=$LIBS
22345 LIBS="-lrt $LIBS"
22346 if test x$gcc_no_link = xyes; then
22347 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22350 /* end confdefs.h. */
22352 /* Override any GCC internal prototype to avoid an error.
22353 Use char because int might match the return type of a GCC
22354 builtin and then its argument prototype would still apply. */
22355 #ifdef __cplusplus
22356 extern "C"
22357 #endif
22358 char clock_gettime ();
22360 main ()
22362 return clock_gettime ();
22364 return 0;
22366 _ACEOF
22367 if ac_fn_c_try_link "$LINENO"; then :
22368 ac_cv_lib_rt_clock_gettime=yes
22369 else
22370 ac_cv_lib_rt_clock_gettime=no
22372 rm -f core conftest.err conftest.$ac_objext \
22373 conftest$ac_exeext conftest.$ac_ext
22374 LIBS=$ac_check_lib_save_LIBS
22376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22377 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22378 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
22381 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22383 case "$THREADSPEC" in
22384 *-lrt*) ;;
22386 THREADSPEC="$THREADSPEC -lrt"
22387 THREADLIBS="$THREADLIBS -lrt"
22389 esac
22393 LIBS="$save_LIBS"
22395 # We can save a little space at runtime if the mutex has m_count
22396 # or __m_count. This is a nice hack for Linux.
22397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22398 /* end confdefs.h. */
22399 #include <pthread.h>
22401 main ()
22404 extern pthread_mutex_t *mutex; int q = mutex->m_count;
22407 return 0;
22409 _ACEOF
22410 if ac_fn_c_try_compile "$LINENO"; then :
22412 $as_echo "#define PTHREAD_MUTEX_HAVE_M_COUNT 1" >>confdefs.h
22414 else
22416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22417 /* end confdefs.h. */
22418 #include <pthread.h>
22420 main ()
22423 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
22426 return 0;
22428 _ACEOF
22429 if ac_fn_c_try_compile "$LINENO"; then :
22431 $as_echo "#define PTHREAD_MUTEX_HAVE___M_COUNT 1" >>confdefs.h
22434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22439 # We require a way to get the time.
22440 time_found=no
22441 for ac_func in gettimeofday time ftime
22442 do :
22443 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22444 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22445 eval as_val=\$$as_ac_var
22446 if test "x$as_val" = x""yes; then :
22447 cat >>confdefs.h <<_ACEOF
22448 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22449 _ACEOF
22450 time_found=yes
22452 done
22454 if test "$time_found" = no; then
22455 as_fn_error "no function found to get the time" "$LINENO" 5
22458 for ac_func in memmove
22459 do :
22460 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22461 if test "x$ac_cv_func_memmove" = x""yes; then :
22462 cat >>confdefs.h <<_ACEOF
22463 #define HAVE_MEMMOVE 1
22464 _ACEOF
22467 done
22470 # We require memcpy.
22471 memcpy_found=no
22472 for ac_func in memcpy
22473 do :
22474 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
22475 if test "x$ac_cv_func_memcpy" = x""yes; then :
22476 cat >>confdefs.h <<_ACEOF
22477 #define HAVE_MEMCPY 1
22478 _ACEOF
22479 memcpy_found=yes
22481 done
22483 if test "$memcpy_found" = no; then
22484 as_fn_error "memcpy is required" "$LINENO" 5
22486 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
22487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22488 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22489 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
22490 $as_echo_n "(cached) " >&6
22491 else
22492 ac_check_lib_save_LIBS=$LIBS
22493 LIBS="-ldl $LIBS"
22494 if test x$gcc_no_link = xyes; then
22495 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22498 /* end confdefs.h. */
22500 /* Override any GCC internal prototype to avoid an error.
22501 Use char because int might match the return type of a GCC
22502 builtin and then its argument prototype would still apply. */
22503 #ifdef __cplusplus
22504 extern "C"
22505 #endif
22506 char dlopen ();
22508 main ()
22510 return dlopen ();
22512 return 0;
22514 _ACEOF
22515 if ac_fn_c_try_link "$LINENO"; then :
22516 ac_cv_lib_dl_dlopen=yes
22517 else
22518 ac_cv_lib_dl_dlopen=no
22520 rm -f core conftest.err conftest.$ac_objext \
22521 conftest$ac_exeext conftest.$ac_ext
22522 LIBS=$ac_check_lib_save_LIBS
22524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22525 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22526 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
22529 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22531 else
22533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldld" >&5
22534 $as_echo_n "checking for dlopen in -ldld... " >&6; }
22535 if test "${ac_cv_lib_dld_dlopen+set}" = set; then :
22536 $as_echo_n "(cached) " >&6
22537 else
22538 ac_check_lib_save_LIBS=$LIBS
22539 LIBS="-ldld $LIBS"
22540 if test x$gcc_no_link = xyes; then
22541 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22544 /* end confdefs.h. */
22546 /* Override any GCC internal prototype to avoid an error.
22547 Use char because int might match the return type of a GCC
22548 builtin and then its argument prototype would still apply. */
22549 #ifdef __cplusplus
22550 extern "C"
22551 #endif
22552 char dlopen ();
22554 main ()
22556 return dlopen ();
22558 return 0;
22560 _ACEOF
22561 if ac_fn_c_try_link "$LINENO"; then :
22562 ac_cv_lib_dld_dlopen=yes
22563 else
22564 ac_cv_lib_dld_dlopen=no
22566 rm -f core conftest.err conftest.$ac_objext \
22567 conftest$ac_exeext conftest.$ac_ext
22568 LIBS=$ac_check_lib_save_LIBS
22570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dlopen" >&5
22571 $as_echo "$ac_cv_lib_dld_dlopen" >&6; }
22572 if test "x$ac_cv_lib_dld_dlopen" = x""yes; then :
22575 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22582 # Some library-finding code we stole from Tcl.
22583 #--------------------------------------------------------------------
22584 # Check for the existence of the -lsocket and -lnsl libraries.
22585 # The order here is important, so that they end up in the right
22586 # order in the command line generated by make. Here are some
22587 # special considerations:
22588 # 1. Use "connect" and "accept" to check for -lsocket, and
22589 # "gethostbyname" to check for -lnsl.
22590 # 2. Use each function name only once: can't redo a check because
22591 # autoconf caches the results of the last check and won't redo it.
22592 # 3. Use -lnsl and -lsocket only if they supply procedures that
22593 # aren't already present in the normal libraries. This is because
22594 # IRIX 5.2 has libraries, but they aren't needed and they're
22595 # bogus: they goof up name resolution if used.
22596 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
22597 # To get around this problem, check for both libraries together
22598 # if -lsocket doesn't work by itself.
22599 #--------------------------------------------------------------------
22601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
22602 $as_echo_n "checking for socket libraries... " >&6; }
22603 if test "${gcj_cv_lib_sockets+set}" = set; then :
22604 $as_echo_n "(cached) " >&6
22605 else
22606 gcj_cv_lib_sockets=
22607 gcj_checkBoth=0
22608 unset ac_cv_func_connect
22609 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
22610 if test "x$ac_cv_func_connect" = x""yes; then :
22611 gcj_checkSocket=0
22612 else
22613 gcj_checkSocket=1
22616 if test "$gcj_checkSocket" = 1; then
22617 unset ac_cv_func_connect
22618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
22619 $as_echo_n "checking for main in -lsocket... " >&6; }
22620 if test "${ac_cv_lib_socket_main+set}" = set; then :
22621 $as_echo_n "(cached) " >&6
22622 else
22623 ac_check_lib_save_LIBS=$LIBS
22624 LIBS="-lsocket $LIBS"
22625 if test x$gcc_no_link = xyes; then
22626 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22629 /* end confdefs.h. */
22633 main ()
22635 return main ();
22637 return 0;
22639 _ACEOF
22640 if ac_fn_c_try_link "$LINENO"; then :
22641 ac_cv_lib_socket_main=yes
22642 else
22643 ac_cv_lib_socket_main=no
22645 rm -f core conftest.err conftest.$ac_objext \
22646 conftest$ac_exeext conftest.$ac_ext
22647 LIBS=$ac_check_lib_save_LIBS
22649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
22650 $as_echo "$ac_cv_lib_socket_main" >&6; }
22651 if test "x$ac_cv_lib_socket_main" = x""yes; then :
22652 gcj_cv_lib_sockets="-lsocket"
22653 else
22654 gcj_checkBoth=1
22658 if test "$gcj_checkBoth" = 1; then
22659 gcj_oldLibs=$LIBS
22660 LIBS="$LIBS -lsocket -lnsl"
22661 unset ac_cv_func_accept
22662 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
22663 if test "x$ac_cv_func_accept" = x""yes; then :
22664 gcj_checkNsl=0
22665 gcj_cv_lib_sockets="-lsocket -lnsl"
22668 unset ac_cv_func_accept
22669 LIBS=$gcj_oldLibs
22671 unset ac_cv_func_gethostbyname
22672 gcj_oldLibs=$LIBS
22673 LIBS="$LIBS $gcj_cv_lib_sockets"
22674 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22675 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
22677 else
22678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
22679 $as_echo_n "checking for main in -lnsl... " >&6; }
22680 if test "${ac_cv_lib_nsl_main+set}" = set; then :
22681 $as_echo_n "(cached) " >&6
22682 else
22683 ac_check_lib_save_LIBS=$LIBS
22684 LIBS="-lnsl $LIBS"
22685 if test x$gcc_no_link = xyes; then
22686 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22689 /* end confdefs.h. */
22693 main ()
22695 return main ();
22697 return 0;
22699 _ACEOF
22700 if ac_fn_c_try_link "$LINENO"; then :
22701 ac_cv_lib_nsl_main=yes
22702 else
22703 ac_cv_lib_nsl_main=no
22705 rm -f core conftest.err conftest.$ac_objext \
22706 conftest$ac_exeext conftest.$ac_ext
22707 LIBS=$ac_check_lib_save_LIBS
22709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
22710 $as_echo "$ac_cv_lib_nsl_main" >&6; }
22711 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
22712 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
22717 unset ac_cv_func_gethostbyname
22718 LIBS=$gcj_oldLIBS
22721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcj_cv_lib_sockets" >&5
22722 $as_echo "$gcj_cv_lib_sockets" >&6; }
22723 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
22725 if test "$with_system_zlib" = yes; then
22726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
22727 $as_echo_n "checking for deflate in -lz... " >&6; }
22728 if test "${ac_cv_lib_z_deflate+set}" = set; then :
22729 $as_echo_n "(cached) " >&6
22730 else
22731 ac_check_lib_save_LIBS=$LIBS
22732 LIBS="-lz $LIBS"
22733 if test x$gcc_no_link = xyes; then
22734 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22737 /* end confdefs.h. */
22739 /* Override any GCC internal prototype to avoid an error.
22740 Use char because int might match the return type of a GCC
22741 builtin and then its argument prototype would still apply. */
22742 #ifdef __cplusplus
22743 extern "C"
22744 #endif
22745 char deflate ();
22747 main ()
22749 return deflate ();
22751 return 0;
22753 _ACEOF
22754 if ac_fn_c_try_link "$LINENO"; then :
22755 ac_cv_lib_z_deflate=yes
22756 else
22757 ac_cv_lib_z_deflate=no
22759 rm -f core conftest.err conftest.$ac_objext \
22760 conftest$ac_exeext conftest.$ac_ext
22761 LIBS=$ac_check_lib_save_LIBS
22763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
22764 $as_echo "$ac_cv_lib_z_deflate" >&6; }
22765 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
22766 ZLIBSPEC=-lz
22767 else
22768 ZLIBSPEC=
22773 # Test for Gtk stuff, if asked for.
22774 if test "$use_gtk_awt" = yes; then
22776 succeeded=no
22778 if test -z "$PKG_CONFIG"; then
22779 if test -n "$ac_tool_prefix"; then
22780 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22781 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22783 $as_echo_n "checking for $ac_word... " >&6; }
22784 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22785 $as_echo_n "(cached) " >&6
22786 else
22787 case $PKG_CONFIG in
22788 [\\/]* | ?:[\\/]*)
22789 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22793 for as_dir in $PATH
22795 IFS=$as_save_IFS
22796 test -z "$as_dir" && as_dir=.
22797 for ac_exec_ext in '' $ac_executable_extensions; do
22798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22799 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22801 break 2
22803 done
22804 done
22805 IFS=$as_save_IFS
22808 esac
22810 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22811 if test -n "$PKG_CONFIG"; then
22812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22813 $as_echo "$PKG_CONFIG" >&6; }
22814 else
22815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22816 $as_echo "no" >&6; }
22821 if test -z "$ac_cv_path_PKG_CONFIG"; then
22822 ac_pt_PKG_CONFIG=$PKG_CONFIG
22823 # Extract the first word of "pkg-config", so it can be a program name with args.
22824 set dummy pkg-config; ac_word=$2
22825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22826 $as_echo_n "checking for $ac_word... " >&6; }
22827 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
22828 $as_echo_n "(cached) " >&6
22829 else
22830 case $ac_pt_PKG_CONFIG in
22831 [\\/]* | ?:[\\/]*)
22832 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22836 for as_dir in $PATH
22838 IFS=$as_save_IFS
22839 test -z "$as_dir" && as_dir=.
22840 for ac_exec_ext in '' $ac_executable_extensions; do
22841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22842 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22844 break 2
22846 done
22847 done
22848 IFS=$as_save_IFS
22851 esac
22853 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22854 if test -n "$ac_pt_PKG_CONFIG"; then
22855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
22856 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
22857 else
22858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22859 $as_echo "no" >&6; }
22862 if test "x$ac_pt_PKG_CONFIG" = x; then
22863 PKG_CONFIG="no"
22864 else
22865 case $cross_compiling:$ac_tool_warned in
22866 yes:)
22867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22869 ac_tool_warned=yes ;;
22870 esac
22871 PKG_CONFIG=$ac_pt_PKG_CONFIG
22873 else
22874 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22879 if test "$PKG_CONFIG" = "no" ; then
22880 echo "*** The pkg-config script could not be found. Make sure it is"
22881 echo "*** in your path, or set the PKG_CONFIG environment variable"
22882 echo "*** to the full path to pkg-config."
22883 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22884 else
22885 PKG_CONFIG_MIN_VERSION=0.9.0
22886 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.4" >&5
22888 $as_echo_n "checking for gtk+-2.0 >= 2.4... " >&6; }
22890 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
22891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22892 $as_echo "yes" >&6; }
22893 succeeded=yes
22895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
22896 $as_echo_n "checking GTK_CFLAGS... " >&6; }
22897 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
22898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
22899 $as_echo "$GTK_CFLAGS" >&6; }
22901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
22902 $as_echo_n "checking GTK_LIBS... " >&6; }
22903 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
22904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
22905 $as_echo "$GTK_LIBS" >&6; }
22906 else
22907 GTK_CFLAGS=""
22908 GTK_LIBS=""
22909 ## If we have a custom action on failure, don't print errors, but
22910 ## do set a variable so people can do so.
22911 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
22912 echo $GTK_PKG_ERRORS
22917 else
22918 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22919 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22923 if test $succeeded = yes; then
22925 else
22926 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
22933 succeeded=no
22935 if test -z "$PKG_CONFIG"; then
22936 if test -n "$ac_tool_prefix"; then
22937 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22938 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22940 $as_echo_n "checking for $ac_word... " >&6; }
22941 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22942 $as_echo_n "(cached) " >&6
22943 else
22944 case $PKG_CONFIG in
22945 [\\/]* | ?:[\\/]*)
22946 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22950 for as_dir in $PATH
22952 IFS=$as_save_IFS
22953 test -z "$as_dir" && as_dir=.
22954 for ac_exec_ext in '' $ac_executable_extensions; do
22955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22956 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22958 break 2
22960 done
22961 done
22962 IFS=$as_save_IFS
22965 esac
22967 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22968 if test -n "$PKG_CONFIG"; then
22969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22970 $as_echo "$PKG_CONFIG" >&6; }
22971 else
22972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22973 $as_echo "no" >&6; }
22978 if test -z "$ac_cv_path_PKG_CONFIG"; then
22979 ac_pt_PKG_CONFIG=$PKG_CONFIG
22980 # Extract the first word of "pkg-config", so it can be a program name with args.
22981 set dummy pkg-config; ac_word=$2
22982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22983 $as_echo_n "checking for $ac_word... " >&6; }
22984 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
22985 $as_echo_n "(cached) " >&6
22986 else
22987 case $ac_pt_PKG_CONFIG in
22988 [\\/]* | ?:[\\/]*)
22989 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22993 for as_dir in $PATH
22995 IFS=$as_save_IFS
22996 test -z "$as_dir" && as_dir=.
22997 for ac_exec_ext in '' $ac_executable_extensions; do
22998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22999 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23001 break 2
23003 done
23004 done
23005 IFS=$as_save_IFS
23008 esac
23010 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
23011 if test -n "$ac_pt_PKG_CONFIG"; then
23012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
23013 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
23014 else
23015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23016 $as_echo "no" >&6; }
23019 if test "x$ac_pt_PKG_CONFIG" = x; then
23020 PKG_CONFIG="no"
23021 else
23022 case $cross_compiling:$ac_tool_warned in
23023 yes:)
23024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23026 ac_tool_warned=yes ;;
23027 esac
23028 PKG_CONFIG=$ac_pt_PKG_CONFIG
23030 else
23031 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
23036 if test "$PKG_CONFIG" = "no" ; then
23037 echo "*** The pkg-config script could not be found. Make sure it is"
23038 echo "*** in your path, or set the PKG_CONFIG environment variable"
23039 echo "*** to the full path to pkg-config."
23040 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23041 else
23042 PKG_CONFIG_MIN_VERSION=0.9.0
23043 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
23045 $as_echo_n "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... " >&6; }
23047 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
23048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23049 $as_echo "yes" >&6; }
23050 succeeded=yes
23052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
23053 $as_echo_n "checking GLIB_CFLAGS... " >&6; }
23054 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
23055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
23056 $as_echo "$GLIB_CFLAGS" >&6; }
23058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
23059 $as_echo_n "checking GLIB_LIBS... " >&6; }
23060 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
23061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
23062 $as_echo "$GLIB_LIBS" >&6; }
23063 else
23064 GLIB_CFLAGS=""
23065 GLIB_LIBS=""
23066 ## If we have a custom action on failure, don't print errors, but
23067 ## do set a variable so people can do so.
23068 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
23069 echo $GLIB_PKG_ERRORS
23074 else
23075 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23076 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23080 if test $succeeded = yes; then
23082 else
23083 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
23090 succeeded=no
23092 if test -z "$PKG_CONFIG"; then
23093 if test -n "$ac_tool_prefix"; then
23094 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23095 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23097 $as_echo_n "checking for $ac_word... " >&6; }
23098 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
23099 $as_echo_n "(cached) " >&6
23100 else
23101 case $PKG_CONFIG in
23102 [\\/]* | ?:[\\/]*)
23103 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23107 for as_dir in $PATH
23109 IFS=$as_save_IFS
23110 test -z "$as_dir" && as_dir=.
23111 for ac_exec_ext in '' $ac_executable_extensions; do
23112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23113 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23115 break 2
23117 done
23118 done
23119 IFS=$as_save_IFS
23122 esac
23124 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23125 if test -n "$PKG_CONFIG"; then
23126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
23127 $as_echo "$PKG_CONFIG" >&6; }
23128 else
23129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23130 $as_echo "no" >&6; }
23135 if test -z "$ac_cv_path_PKG_CONFIG"; then
23136 ac_pt_PKG_CONFIG=$PKG_CONFIG
23137 # Extract the first word of "pkg-config", so it can be a program name with args.
23138 set dummy pkg-config; ac_word=$2
23139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23140 $as_echo_n "checking for $ac_word... " >&6; }
23141 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
23142 $as_echo_n "(cached) " >&6
23143 else
23144 case $ac_pt_PKG_CONFIG in
23145 [\\/]* | ?:[\\/]*)
23146 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
23149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23150 for as_dir in $PATH
23152 IFS=$as_save_IFS
23153 test -z "$as_dir" && as_dir=.
23154 for ac_exec_ext in '' $ac_executable_extensions; do
23155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23156 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23158 break 2
23160 done
23161 done
23162 IFS=$as_save_IFS
23165 esac
23167 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
23168 if test -n "$ac_pt_PKG_CONFIG"; then
23169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
23170 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
23171 else
23172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23173 $as_echo "no" >&6; }
23176 if test "x$ac_pt_PKG_CONFIG" = x; then
23177 PKG_CONFIG="no"
23178 else
23179 case $cross_compiling:$ac_tool_warned in
23180 yes:)
23181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23183 ac_tool_warned=yes ;;
23184 esac
23185 PKG_CONFIG=$ac_pt_PKG_CONFIG
23187 else
23188 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
23193 if test "$PKG_CONFIG" = "no" ; then
23194 echo "*** The pkg-config script could not be found. Make sure it is"
23195 echo "*** in your path, or set the PKG_CONFIG environment variable"
23196 echo "*** to the full path to pkg-config."
23197 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23198 else
23199 PKG_CONFIG_MIN_VERSION=0.9.0
23200 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libart-2.0 >= 2.1" >&5
23202 $as_echo_n "checking for libart-2.0 >= 2.1... " >&6; }
23204 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
23205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23206 $as_echo "yes" >&6; }
23207 succeeded=yes
23209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_CFLAGS" >&5
23210 $as_echo_n "checking LIBART_CFLAGS... " >&6; }
23211 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
23212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_CFLAGS" >&5
23213 $as_echo "$LIBART_CFLAGS" >&6; }
23215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_LIBS" >&5
23216 $as_echo_n "checking LIBART_LIBS... " >&6; }
23217 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
23218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_LIBS" >&5
23219 $as_echo "$LIBART_LIBS" >&6; }
23220 else
23221 LIBART_CFLAGS=""
23222 LIBART_LIBS=""
23223 ## If we have a custom action on failure, don't print errors, but
23224 ## do set a variable so people can do so.
23225 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
23226 echo $LIBART_PKG_ERRORS
23231 else
23232 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23233 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23237 if test $succeeded = yes; then
23239 else
23240 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
23246 # We require the XTest Extension to support java.awt.Robot.
23247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
23248 $as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
23249 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
23250 $as_echo_n "(cached) " >&6
23251 else
23252 ac_check_lib_save_LIBS=$LIBS
23253 LIBS="-lXtst ${X_LIBS} $LIBS"
23254 if test x$gcc_no_link = xyes; then
23255 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23258 /* end confdefs.h. */
23260 /* Override any GCC internal prototype to avoid an error.
23261 Use char because int might match the return type of a GCC
23262 builtin and then its argument prototype would still apply. */
23263 #ifdef __cplusplus
23264 extern "C"
23265 #endif
23266 char XTestQueryExtension ();
23268 main ()
23270 return XTestQueryExtension ();
23272 return 0;
23274 _ACEOF
23275 if ac_fn_c_try_link "$LINENO"; then :
23276 ac_cv_lib_Xtst_XTestQueryExtension=yes
23277 else
23278 ac_cv_lib_Xtst_XTestQueryExtension=no
23280 rm -f core conftest.err conftest.$ac_objext \
23281 conftest$ac_exeext conftest.$ac_ext
23282 LIBS=$ac_check_lib_save_LIBS
23284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
23285 $as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
23286 if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
23287 true
23288 else
23289 as_fn_error "libXtst not found, required by java.awt.Robot" "$LINENO" 5
23294 # On Solaris, and maybe other architectures, the Boehm collector
23295 # requires -ldl.
23296 if test "$GC" = boehm; then
23297 case "${host}" in
23298 *-*-darwin*)
23301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
23302 $as_echo_n "checking for main in -ldl... " >&6; }
23303 if test "${ac_cv_lib_dl_main+set}" = set; then :
23304 $as_echo_n "(cached) " >&6
23305 else
23306 ac_check_lib_save_LIBS=$LIBS
23307 LIBS="-ldl $LIBS"
23308 if test x$gcc_no_link = xyes; then
23309 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23312 /* end confdefs.h. */
23316 main ()
23318 return main ();
23320 return 0;
23322 _ACEOF
23323 if ac_fn_c_try_link "$LINENO"; then :
23324 ac_cv_lib_dl_main=yes
23325 else
23326 ac_cv_lib_dl_main=no
23328 rm -f core conftest.err conftest.$ac_objext \
23329 conftest$ac_exeext conftest.$ac_ext
23330 LIBS=$ac_check_lib_save_LIBS
23332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
23333 $as_echo "$ac_cv_lib_dl_main" >&6; }
23334 if test "x$ac_cv_lib_dl_main" = x""yes; then :
23335 SYSTEMSPEC="$SYSTEMSPEC -ldl"
23339 esac
23343 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
23344 case $build in
23345 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
23346 *) CLASSPATH_SEPARATOR=':' ;;
23347 esac
23350 # We must search the source tree for java.lang, since we still don't
23351 # have libgcj.jar nor java/lang/*.class
23352 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
23353 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
23355 # Since some classes depend on this one, we need its source available
23356 # before we can do any GCJ compilation test :-(
23357 if test ! -f gnu/classpath/Configuration.java; then
23358 test -d gnu || mkdir gnu
23359 test -d gnu/classpath || mkdir gnu/classpath
23360 # Note that it is not crucial that all the values here be correct.
23361 sed -e "s,@prefix@,$expanded_prefix," \
23362 -e "s,@VERSION@,$VERSION," \
23363 -e "s,@LIBDEBUG@,false," \
23364 -e "s,@INIT_LOAD_LIBRARY@,false," \
23365 -e "s,@@,$LIBGCJDEBUG," \
23366 -e "s,@default_toolkit@,$TOOLKIT," \
23367 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
23368 -e "s,@GTK_CAIRO_ENABLED@,false," \
23369 -e "s,@ECJ_JAR@,," \
23370 -e "s,@WANT_NATIVE_BIG_INTEGER@,false," \
23371 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
23372 > gnu/classpath/Configuration.java
23373 # We do not want to redirect the output of the grep below to /dev/null,
23374 # but we add /dev/null to the input list so that grep will print the
23375 # filename of Configuration.java in case it finds any matches.
23376 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
23377 as_fn_error "configure.ac is missing the substitutions above" "$LINENO" 5
23382 if test -n "$ac_tool_prefix"; then
23383 for ac_prog in gcj
23385 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23386 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23388 $as_echo_n "checking for $ac_word... " >&6; }
23389 if test "${ac_cv_prog_GCJ+set}" = set; then :
23390 $as_echo_n "(cached) " >&6
23391 else
23392 if test -n "$GCJ"; then
23393 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
23394 else
23395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23396 for as_dir in $PATH
23398 IFS=$as_save_IFS
23399 test -z "$as_dir" && as_dir=.
23400 for ac_exec_ext in '' $ac_executable_extensions; do
23401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23402 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
23403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23404 break 2
23406 done
23407 done
23408 IFS=$as_save_IFS
23412 GCJ=$ac_cv_prog_GCJ
23413 if test -n "$GCJ"; then
23414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
23415 $as_echo "$GCJ" >&6; }
23416 else
23417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23418 $as_echo "no" >&6; }
23422 test -n "$GCJ" && break
23423 done
23425 if test -z "$GCJ"; then
23426 ac_ct_GCJ=$GCJ
23427 for ac_prog in gcj
23429 # Extract the first word of "$ac_prog", so it can be a program name with args.
23430 set dummy $ac_prog; ac_word=$2
23431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23432 $as_echo_n "checking for $ac_word... " >&6; }
23433 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
23434 $as_echo_n "(cached) " >&6
23435 else
23436 if test -n "$ac_ct_GCJ"; then
23437 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
23438 else
23439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23440 for as_dir in $PATH
23442 IFS=$as_save_IFS
23443 test -z "$as_dir" && as_dir=.
23444 for ac_exec_ext in '' $ac_executable_extensions; do
23445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23446 ac_cv_prog_ac_ct_GCJ="$ac_prog"
23447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23448 break 2
23450 done
23451 done
23452 IFS=$as_save_IFS
23456 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
23457 if test -n "$ac_ct_GCJ"; then
23458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
23459 $as_echo "$ac_ct_GCJ" >&6; }
23460 else
23461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23462 $as_echo "no" >&6; }
23466 test -n "$ac_ct_GCJ" && break
23467 done
23469 if test "x$ac_ct_GCJ" = x; then
23470 GCJ="gcj"
23471 else
23472 case $cross_compiling:$ac_tool_warned in
23473 yes:)
23474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23476 ac_tool_warned=yes ;;
23477 esac
23478 GCJ=$ac_ct_GCJ
23482 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
23483 if test "x${GCJFLAGS-unset}" = xunset; then
23484 GCJFLAGS="-g -O2"
23488 depcc="$GCJ" am_compiler_list='gcc3 gcc'
23490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23491 $as_echo_n "checking dependency style of $depcc... " >&6; }
23492 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
23493 $as_echo_n "(cached) " >&6
23494 else
23495 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23496 # We make a subdir and do the tests there. Otherwise we can end up
23497 # making bogus files that we don't know about and never remove. For
23498 # instance it was reported that on HP-UX the gcc test will end up
23499 # making a dummy file named `D' -- because `-MD' means `put the output
23500 # in D'.
23501 rm -rf conftest.dir
23502 mkdir conftest.dir
23503 # Copy depcomp to subdir because otherwise we won't find it if we're
23504 # using a relative directory.
23505 cp "$am_depcomp" conftest.dir
23506 cd conftest.dir
23507 # We will build objects and dependencies in a subdirectory because
23508 # it helps to detect inapplicable dependency modes. For instance
23509 # both Tru64's cc and ICC support -MD to output dependencies as a
23510 # side effect of compilation, but ICC will put the dependencies in
23511 # the current directory while Tru64 will put them in the object
23512 # directory.
23513 mkdir sub
23515 am_cv_GCJ_dependencies_compiler_type=none
23516 if test "$am_compiler_list" = ""; then
23517 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23519 am__universal=false
23522 for depmode in $am_compiler_list; do
23523 # Setup a source with many dependencies, because some compilers
23524 # like to wrap large dependency lists on column 80 (with \), and
23525 # we should not choose a depcomp mode which is confused by this.
23527 # We need to recreate these files for each test, as the compiler may
23528 # overwrite some of them when testing with obscure command lines.
23529 # This happens at least with the AIX C compiler.
23530 : > sub/conftest.c
23531 for i in 1 2 3 4 5 6; do
23532 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23533 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23534 # Solaris 8's {/usr,}/bin/sh.
23535 touch sub/conftst$i.h
23536 done
23537 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23539 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23540 # mode. It turns out that the SunPro C++ compiler does not properly
23541 # handle `-M -o', and we need to detect this. Also, some Intel
23542 # versions had trouble with output in subdirs
23543 am__obj=sub/conftest.${OBJEXT-o}
23544 am__minus_obj="-o $am__obj"
23545 case $depmode in
23546 gcc)
23547 # This depmode causes a compiler race in universal mode.
23548 test "$am__universal" = false || continue
23550 nosideeffect)
23551 # after this tag, mechanisms are not by side-effect, so they'll
23552 # only be used when explicitly requested
23553 if test "x$enable_dependency_tracking" = xyes; then
23554 continue
23555 else
23556 break
23559 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
23560 # This compiler won't grok `-c -o', but also, the minuso test has
23561 # not run yet. These depmodes are late enough in the game, and
23562 # so weak that their functioning should not be impacted.
23563 am__obj=conftest.${OBJEXT-o}
23564 am__minus_obj=
23566 none) break ;;
23567 esac
23568 if depmode=$depmode \
23569 source=sub/conftest.c object=$am__obj \
23570 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23571 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23572 >/dev/null 2>conftest.err &&
23573 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23574 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23575 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23576 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23577 # icc doesn't choke on unknown options, it will just issue warnings
23578 # or remarks (even with -Werror). So we grep stderr for any message
23579 # that says an option was ignored or not supported.
23580 # When given -MP, icc 7.0 and 7.1 complain thusly:
23581 # icc: Command line warning: ignoring option '-M'; no argument required
23582 # The diagnosis changed in icc 8.0:
23583 # icc: Command line remark: option '-MP' not supported
23584 if (grep 'ignoring option' conftest.err ||
23585 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23586 am_cv_GCJ_dependencies_compiler_type=$depmode
23587 break
23590 done
23592 cd ..
23593 rm -rf conftest.dir
23594 else
23595 am_cv_GCJ_dependencies_compiler_type=none
23599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
23600 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
23601 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
23604 test "x$enable_dependency_tracking" != xno \
23605 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
23606 am__fastdepGCJ_TRUE=
23607 am__fastdepGCJ_FALSE='#'
23608 else
23609 am__fastdepGCJ_TRUE='#'
23610 am__fastdepGCJ_FALSE=
23616 # Now remove it.
23617 rm -f gnu/classpath/Configuration.java
23619 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
23621 # The cast to long int works around a bug in the HP C Compiler
23622 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23623 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23624 # This bug is HP SR number 8606223364.
23625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
23626 $as_echo_n "checking size of void *... " >&6; }
23627 if test "${ac_cv_sizeof_void_p+set}" = set; then :
23628 $as_echo_n "(cached) " >&6
23629 else
23630 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
23632 else
23633 if test "$ac_cv_type_void_p" = yes; then
23634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23636 { as_fn_set_status 77
23637 as_fn_error "cannot compute sizeof (void *)
23638 See \`config.log' for more details." "$LINENO" 5; }; }
23639 else
23640 ac_cv_sizeof_void_p=0
23645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
23646 $as_echo "$ac_cv_sizeof_void_p" >&6; }
23650 cat >>confdefs.h <<_ACEOF
23651 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23652 _ACEOF
23656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23657 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23658 if test "${ac_cv_c_bigendian+set}" = set; then :
23659 $as_echo_n "(cached) " >&6
23660 else
23661 ac_cv_c_bigendian=unknown
23662 # See if we're dealing with a universal compiler.
23663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23664 /* end confdefs.h. */
23665 #ifndef __APPLE_CC__
23666 not a universal capable compiler
23667 #endif
23668 typedef int dummy;
23670 _ACEOF
23671 if ac_fn_c_try_compile "$LINENO"; then :
23673 # Check for potential -arch flags. It is not universal unless
23674 # there are at least two -arch flags with different values.
23675 ac_arch=
23676 ac_prev=
23677 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23678 if test -n "$ac_prev"; then
23679 case $ac_word in
23680 i?86 | x86_64 | ppc | ppc64)
23681 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23682 ac_arch=$ac_word
23683 else
23684 ac_cv_c_bigendian=universal
23685 break
23688 esac
23689 ac_prev=
23690 elif test "x$ac_word" = "x-arch"; then
23691 ac_prev=arch
23693 done
23695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23696 if test $ac_cv_c_bigendian = unknown; then
23697 # See if sys/param.h defines the BYTE_ORDER macro.
23698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23699 /* end confdefs.h. */
23700 #include <sys/types.h>
23701 #include <sys/param.h>
23704 main ()
23706 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23707 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23708 && LITTLE_ENDIAN)
23709 bogus endian macros
23710 #endif
23713 return 0;
23715 _ACEOF
23716 if ac_fn_c_try_compile "$LINENO"; then :
23717 # It does; now see whether it defined to BIG_ENDIAN or not.
23718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23719 /* end confdefs.h. */
23720 #include <sys/types.h>
23721 #include <sys/param.h>
23724 main ()
23726 #if BYTE_ORDER != BIG_ENDIAN
23727 not big endian
23728 #endif
23731 return 0;
23733 _ACEOF
23734 if ac_fn_c_try_compile "$LINENO"; then :
23735 ac_cv_c_bigendian=yes
23736 else
23737 ac_cv_c_bigendian=no
23739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23743 if test $ac_cv_c_bigendian = unknown; then
23744 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23746 /* end confdefs.h. */
23747 #include <limits.h>
23750 main ()
23752 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23753 bogus endian macros
23754 #endif
23757 return 0;
23759 _ACEOF
23760 if ac_fn_c_try_compile "$LINENO"; then :
23761 # It does; now see whether it defined to _BIG_ENDIAN or not.
23762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23763 /* end confdefs.h. */
23764 #include <limits.h>
23767 main ()
23769 #ifndef _BIG_ENDIAN
23770 not big endian
23771 #endif
23774 return 0;
23776 _ACEOF
23777 if ac_fn_c_try_compile "$LINENO"; then :
23778 ac_cv_c_bigendian=yes
23779 else
23780 ac_cv_c_bigendian=no
23782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23786 if test $ac_cv_c_bigendian = unknown; then
23787 # Compile a test program.
23788 if test "$cross_compiling" = yes; then :
23789 # Try to guess by grepping values from an object file.
23790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23791 /* end confdefs.h. */
23792 short int ascii_mm[] =
23793 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23794 short int ascii_ii[] =
23795 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23796 int use_ascii (int i) {
23797 return ascii_mm[i] + ascii_ii[i];
23799 short int ebcdic_ii[] =
23800 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23801 short int ebcdic_mm[] =
23802 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23803 int use_ebcdic (int i) {
23804 return ebcdic_mm[i] + ebcdic_ii[i];
23806 extern int foo;
23809 main ()
23811 return use_ascii (foo) == use_ebcdic (foo);
23813 return 0;
23815 _ACEOF
23816 if ac_fn_c_try_compile "$LINENO"; then :
23817 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23818 ac_cv_c_bigendian=yes
23820 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23821 if test "$ac_cv_c_bigendian" = unknown; then
23822 ac_cv_c_bigendian=no
23823 else
23824 # finding both strings is unlikely to happen, but who knows?
23825 ac_cv_c_bigendian=unknown
23829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23830 else
23831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23832 /* end confdefs.h. */
23833 $ac_includes_default
23835 main ()
23838 /* Are we little or big endian? From Harbison&Steele. */
23839 union
23841 long int l;
23842 char c[sizeof (long int)];
23843 } u;
23844 u.l = 1;
23845 return u.c[sizeof (long int) - 1] == 1;
23848 return 0;
23850 _ACEOF
23851 if ac_fn_c_try_run "$LINENO"; then :
23852 ac_cv_c_bigendian=no
23853 else
23854 ac_cv_c_bigendian=yes
23856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23857 conftest.$ac_objext conftest.beam conftest.$ac_ext
23862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23863 $as_echo "$ac_cv_c_bigendian" >&6; }
23864 case $ac_cv_c_bigendian in #(
23865 yes)
23866 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23867 ;; #(
23869 ;; #(
23870 universal)
23872 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23874 ;; #(
23876 as_fn_error "unknown endianness
23877 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23878 esac
23881 ZLIBS=
23882 SYS_ZLIBS=
23883 ZINCS=
23885 if test -z "$ZLIBSPEC"; then
23886 # Use zlib from the GCC tree.
23887 ZINCS='-I$(top_srcdir)/../zlib'
23888 ZLIBS=../zlib/libzgcj_convenience.la
23889 else
23890 # System's zlib.
23891 SYS_ZLIBS="$ZLIBSPEC"
23903 if test "$NATIVE" = yes; then
23904 NATIVE_TRUE=
23905 NATIVE_FALSE='#'
23906 else
23907 NATIVE_TRUE='#'
23908 NATIVE_FALSE=
23911 if test "$enable_shared" = yes; then
23912 ENABLE_SHARED_TRUE=
23913 ENABLE_SHARED_FALSE='#'
23914 else
23915 ENABLE_SHARED_TRUE='#'
23916 ENABLE_SHARED_FALSE=
23919 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
23920 NEEDS_DATA_START_TRUE=
23921 NEEDS_DATA_START_FALSE='#'
23922 else
23923 NEEDS_DATA_START_TRUE='#'
23924 NEEDS_DATA_START_FALSE=
23927 if test -z "${with_multisubdir}"; then
23928 INSTALL_BINARIES_TRUE=
23929 INSTALL_BINARIES_FALSE='#'
23930 else
23931 INSTALL_BINARIES_TRUE='#'
23932 INSTALL_BINARIES_FALSE=
23937 # Process the option "--enable-version-specific-runtime-libs"
23938 # Calculate toolexeclibdir
23939 case ${version_specific_libs} in
23940 yes)
23941 # Need the gcc compiler version to know where to install libraries
23942 # and header files if --enable-version-specific-runtime-libs option
23943 # is selected.
23944 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
23945 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
23946 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
23947 toolexeclibdir=$toolexecmainlibdir
23950 if test -n "$with_cross_host" &&
23951 test x"$with_cross_host" != x"no"; then
23952 # Install a library built with a cross compiler in tooldir, not libdir.
23953 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
23954 toolexecmainlibdir='$(toolexecdir)/lib'
23955 else
23956 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
23957 toolexecmainlibdir='$(libdir)'
23959 multi_os_directory=`$CC -print-multi-os-directory`
23960 case $multi_os_directory in
23961 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
23962 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
23963 esac
23965 esac
23970 # Determine gcj and libgcj version number.
23971 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
23972 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
23973 GCJVERSION=$gcjversion
23976 cat >>confdefs.h <<_ACEOF
23977 #define GCJVERSION "$GCJVERSION"
23978 _ACEOF
23981 # Determine where the standard .db file and GNU Classpath JNI
23982 # libraries are found.
23983 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
23984 dbexecdir='$(toolexeclibdir)/'$gcjsubdir
23989 $as_echo "#define JV_VERSION \"1.5.0\"" >>confdefs.h
23992 $as_echo "#define JV_API_VERSION \"1.5\"" >>confdefs.h
23996 case "${with_gxx_include_dir}" in
23997 yes)
23998 as_fn_error "--with-gxx-include-dir=[dir] requires a directory" "$LINENO" 5
24000 no | "")
24001 case "${enable_version_specific_runtime_libs}" in
24002 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
24004 libstdcxx_incdir='c++/$(gcc_version)'
24005 gxx_include_dir='include/$(libstdcxx_incdir)'
24006 if test -n "$with_cross_host" &&
24007 test x"$with_cross_host" != x"no"; then
24008 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
24009 else
24010 gxx_include_dir='${prefix}/'"$gxx_include_dir"
24011 fi;;
24012 esac ;;
24013 *) gxx_include_dir=${with_gxx_include_dir} ;;
24014 esac
24019 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
24020 # On that system, sys/ioctl.h will not include sys/filio.h unless
24021 # BSD_COMP is defined; just including sys/filio.h is simpler.
24022 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
24023 # for now. If you change this, you also must update natFile.cc.
24024 for ac_header in unistd.h sys/time.h sys/types.h fcntl.h \
24025 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
24026 sys/socket.h netinet/in.h arpa/inet.h netdb.h \
24027 pwd.h sys/config.h stdint.h langinfo.h locale.h \
24028 dirent.h sys/rw_lock.h magic.h ifaddrs.h
24029 do :
24030 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24031 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24032 eval as_val=\$$as_ac_Header
24033 if test "x$as_val" = x""yes; then :
24034 cat >>confdefs.h <<_ACEOF
24035 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24036 _ACEOF
24040 done
24043 # sys/socket.h is a prerequisite for net/if.h on Solaris.
24044 for ac_header in net/if.h
24045 do :
24046 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
24047 #ifdef HAVE_SYS_SOCKET_H
24048 #include <sys/socket.h>
24049 #endif
24052 if test "x$ac_cv_header_net_if_h" = x""yes; then :
24053 cat >>confdefs.h <<_ACEOF
24054 #define HAVE_NET_IF_H 1
24055 _ACEOF
24059 done
24062 for ac_header in inttypes.h
24063 do :
24064 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
24065 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
24066 cat >>confdefs.h <<_ACEOF
24067 #define HAVE_INTTYPES_H 1
24068 _ACEOF
24071 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
24074 $as_echo "#define JV_HAVE_INTTYPES_H 1" >>confdefs.h
24079 done
24082 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
24083 if test "x$ac_cv_type_ssize_t" = x""yes; then :
24085 else
24087 cat >>confdefs.h <<_ACEOF
24088 #define ssize_t int
24089 _ACEOF
24093 ac_fn_c_check_type "$LINENO" "magic_t" "ac_cv_type_magic_t" "
24094 #ifdef HAVE_MAGIC_H
24095 #include <magic.h>
24096 #endif
24098 if test "x$ac_cv_type_magic_t" = x""yes; then :
24101 $as_echo "#define HAVE_MAGIC_T 1" >>confdefs.h
24106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5
24107 $as_echo_n "checking for in_addr_t... " >&6; }
24108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24109 /* end confdefs.h. */
24110 #include <sys/types.h>
24111 #if STDC_HEADERS
24112 #include <stdlib.h>
24113 #include <stddef.h>
24114 #endif
24115 #if HAVE_NETINET_IN_H
24116 #include <netinet/in.h>
24117 #endif
24119 main ()
24121 in_addr_t foo;
24123 return 0;
24125 _ACEOF
24126 if ac_fn_c_try_compile "$LINENO"; then :
24128 $as_echo "#define HAVE_IN_ADDR_T 1" >>confdefs.h
24130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24131 $as_echo "yes" >&6; }
24132 else
24133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24134 $as_echo "no" >&6; }
24136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ip_mreq is in netinet/in.h" >&5
24139 $as_echo_n "checking whether struct ip_mreq is in netinet/in.h... " >&6; }
24140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24141 /* end confdefs.h. */
24142 #include <netinet/in.h>
24144 main ()
24146 struct ip_mreq mreq;
24148 return 0;
24150 _ACEOF
24151 if ac_fn_c_try_compile "$LINENO"; then :
24153 $as_echo "#define HAVE_STRUCT_IP_MREQ 1" >>confdefs.h
24155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24156 $as_echo "yes" >&6; }
24157 else
24158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24159 $as_echo "no" >&6; }
24161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ipv6_mreq is in netinet/in.h" >&5
24164 $as_echo_n "checking whether struct ipv6_mreq is in netinet/in.h... " >&6; }
24165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24166 /* end confdefs.h. */
24167 #include <netinet/in.h>
24169 main ()
24171 struct ipv6_mreq mreq6;
24173 return 0;
24175 _ACEOF
24176 if ac_fn_c_try_compile "$LINENO"; then :
24178 $as_echo "#define HAVE_STRUCT_IPV6_MREQ 1" >>confdefs.h
24180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24181 $as_echo "yes" >&6; }
24182 else
24183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24184 $as_echo "no" >&6; }
24186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
24189 $as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
24190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24191 /* end confdefs.h. */
24192 #include <netinet/in.h>
24194 main ()
24196 struct sockaddr_in6 addr6;
24198 return 0;
24200 _ACEOF
24201 if ac_fn_c_try_compile "$LINENO"; then :
24203 $as_echo "#define HAVE_INET6 1" >>confdefs.h
24205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24206 $as_echo "yes" >&6; }
24207 else
24208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24209 $as_echo "no" >&6; }
24211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
24214 $as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
24215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24216 /* end confdefs.h. */
24217 #define _POSIX_PII_SOCKET
24218 #include <sys/types.h>
24219 #include <sys/socket.h>
24221 main ()
24223 socklen_t x = 5;
24225 return 0;
24227 _ACEOF
24228 if ac_fn_c_try_compile "$LINENO"; then :
24230 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
24232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24233 $as_echo "yes" >&6; }
24234 else
24235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24236 $as_echo "no" >&6; }
24238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
24241 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
24242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24243 /* end confdefs.h. */
24244 #include <time.h>
24246 main ()
24248 struct tm tim; tim.tm_gmtoff = 0;
24250 return 0;
24252 _ACEOF
24253 if ac_fn_c_try_compile "$LINENO"; then :
24255 $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
24257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24258 $as_echo "yes" >&6; }
24259 else
24260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24261 $as_echo "no" >&6; }
24262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
24263 $as_echo_n "checking for global timezone variable... " >&6; }
24264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24265 /* end confdefs.h. */
24266 #include <time.h>
24268 main ()
24270 void i(){long z2 = 2*timezone;}
24272 return 0;
24274 _ACEOF
24275 if ac_fn_c_try_compile "$LINENO"; then :
24277 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
24279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24280 $as_echo "yes" >&6; }
24281 else
24282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24283 $as_echo "no" >&6; }
24284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
24285 $as_echo_n "checking for global _timezone variable... " >&6; }
24286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24287 /* end confdefs.h. */
24288 #include <time.h>
24290 main ()
24292 long z2 = _timezone;
24294 return 0;
24296 _ACEOF
24297 if ac_fn_c_try_compile "$LINENO"; then :
24299 $as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
24301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24302 $as_echo "yes" >&6; }
24303 else
24304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24305 $as_echo "no" >&6; }
24307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24313 for ac_prog in perl
24315 # Extract the first word of "$ac_prog", so it can be a program name with args.
24316 set dummy $ac_prog; ac_word=$2
24317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24318 $as_echo_n "checking for $ac_word... " >&6; }
24319 if test "${ac_cv_prog_PERL+set}" = set; then :
24320 $as_echo_n "(cached) " >&6
24321 else
24322 if test -n "$PERL"; then
24323 ac_cv_prog_PERL="$PERL" # Let the user override the test.
24324 else
24325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24326 for as_dir in $PATH
24328 IFS=$as_save_IFS
24329 test -z "$as_dir" && as_dir=.
24330 for ac_exec_ext in '' $ac_executable_extensions; do
24331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24332 ac_cv_prog_PERL="$ac_prog"
24333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24334 break 2
24336 done
24337 done
24338 IFS=$as_save_IFS
24342 PERL=$ac_cv_prog_PERL
24343 if test -n "$PERL"; then
24344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
24345 $as_echo "$PERL" >&6; }
24346 else
24347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24348 $as_echo "no" >&6; }
24352 test -n "$PERL" && break
24353 done
24354 test -n "$PERL" || PERL="false"
24357 SYSDEP_SOURCES=
24358 SIGNAL_HANDLER_AUX=
24360 case "${host}" in
24361 *-*-solaris2*)
24362 SIGNAL_HANDLER=include/posix-signal.h
24364 i?86-*-linux*)
24365 SIGNAL_HANDLER=include/i386-signal.h
24366 SIGNAL_HANDLER_AUX=include/x86_64-signal.h
24368 # ia64-*)
24369 # SYSDEP_SOURCES=sysdep/ia64.c
24370 # test -d sysdep || mkdir sysdep
24371 # ;;
24372 hppa*-*-linux*)
24373 SIGNAL_HANDLER=include/pa-signal.h
24375 hppa*-hp-hpux*)
24376 SIGNAL_HANDLER=include/hppa-signal.h
24378 ia64-*-linux*)
24379 SIGNAL_HANDLER=include/dwarf2-signal.h
24381 powerpc*-*-linux*)
24382 SIGNAL_HANDLER=include/powerpc-signal.h
24384 alpha*-*-linux*)
24385 SIGNAL_HANDLER=include/dwarf2-signal.h
24387 s390*-*-linux*)
24388 SIGNAL_HANDLER=include/s390-signal.h
24390 x86_64*-*-linux*)
24391 SIGNAL_HANDLER=include/x86_64-signal.h
24392 SIGNAL_HANDLER_AUX=include/i386-signal.h
24394 sparc*-*-linux*)
24395 SIGNAL_HANDLER=include/dwarf2-signal.h
24397 sh*-*-linux*)
24398 SIGNAL_HANDLER=include/sh-signal.h
24400 *mingw*)
24401 SIGNAL_HANDLER=include/win32-signal.h
24403 mips*-*-linux*)
24404 SIGNAL_HANDLER=include/mips-signal.h
24406 m68*-*-linux*)
24407 SIGNAL_HANDLER=include/dwarf2-signal.h
24409 powerpc*-*-darwin* | i?86-*-darwin[912]* | x86_64-*-darwin[912]*)
24410 SIGNAL_HANDLER=include/darwin-signal.h
24412 powerpc*-*-aix*)
24413 SIGNAL_HANDLER=include/aix-signal.h
24415 i?86-*-freebsd* | x86_64-*-freebsd*)
24416 SIGNAL_HANDLER=include/freebsd-signal.h
24419 SIGNAL_HANDLER=include/default-signal.h
24421 esac
24423 # If we're using sjlj exceptions, forget what we just learned.
24424 if test "$ac_cv_sjlj_exceptions" = yes; then
24425 SIGNAL_HANDLER=include/default-signal.h
24426 SIGNAL_HANDLER_AUX=
24431 if test -z "$SIGNAL_HANDLER_AUX"; then
24432 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
24435 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
24438 if test "${multilib}" = "yes"; then
24439 multilib_arg="--enable-multilib"
24440 else
24441 multilib_arg=
24444 # See if we support thread-local storage.
24447 # Check whether --enable-tls was given.
24448 if test "${enable_tls+set}" = set; then :
24449 enableval=$enable_tls;
24450 case "$enableval" in
24451 yes|no) ;;
24452 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
24453 esac
24455 else
24456 enable_tls=yes
24460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
24461 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
24462 if test "${gcc_cv_have_tls+set}" = set; then :
24463 $as_echo_n "(cached) " >&6
24464 else
24466 if test "$cross_compiling" = yes; then :
24467 if test x$gcc_no_link = xyes; then
24468 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24471 /* end confdefs.h. */
24472 __thread int a; int b; int main() { return a = b; }
24473 _ACEOF
24474 if ac_fn_c_try_link "$LINENO"; then :
24475 chktls_save_LDFLAGS="$LDFLAGS"
24476 case $host in
24477 *-*-linux*)
24478 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
24480 esac
24481 chktls_save_CFLAGS="$CFLAGS"
24482 CFLAGS="-fPIC $CFLAGS"
24483 if test x$gcc_no_link = xyes; then
24484 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24487 /* end confdefs.h. */
24488 int f() { return 0; }
24489 _ACEOF
24490 if ac_fn_c_try_link "$LINENO"; then :
24491 if test x$gcc_no_link = xyes; then
24492 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24495 /* end confdefs.h. */
24496 __thread int a; int b; int f() { return a = b; }
24497 _ACEOF
24498 if ac_fn_c_try_link "$LINENO"; then :
24499 gcc_cv_have_tls=yes
24500 else
24501 gcc_cv_have_tls=no
24503 rm -f core conftest.err conftest.$ac_objext \
24504 conftest$ac_exeext conftest.$ac_ext
24505 else
24506 gcc_cv_have_tls=yes
24508 rm -f core conftest.err conftest.$ac_objext \
24509 conftest$ac_exeext conftest.$ac_ext
24510 CFLAGS="$chktls_save_CFLAGS"
24511 LDFLAGS="$chktls_save_LDFLAGS"
24512 else
24513 gcc_cv_have_tls=no
24515 rm -f core conftest.err conftest.$ac_objext \
24516 conftest$ac_exeext conftest.$ac_ext
24519 else
24520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24521 /* end confdefs.h. */
24522 __thread int a; int b; int main() { return a = b; }
24523 _ACEOF
24524 if ac_fn_c_try_run "$LINENO"; then :
24525 chktls_save_LDFLAGS="$LDFLAGS"
24526 LDFLAGS="-static $LDFLAGS"
24527 if test x$gcc_no_link = xyes; then
24528 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24531 /* end confdefs.h. */
24532 int main() { return 0; }
24533 _ACEOF
24534 if ac_fn_c_try_link "$LINENO"; then :
24535 if test "$cross_compiling" = yes; then :
24536 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24538 as_fn_error "cannot run test program while cross compiling
24539 See \`config.log' for more details." "$LINENO" 5; }
24540 else
24541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24542 /* end confdefs.h. */
24543 __thread int a; int b; int main() { return a = b; }
24544 _ACEOF
24545 if ac_fn_c_try_run "$LINENO"; then :
24546 gcc_cv_have_tls=yes
24547 else
24548 gcc_cv_have_tls=no
24550 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24551 conftest.$ac_objext conftest.beam conftest.$ac_ext
24554 else
24555 gcc_cv_have_tls=yes
24557 rm -f core conftest.err conftest.$ac_objext \
24558 conftest$ac_exeext conftest.$ac_ext
24559 LDFLAGS="$chktls_save_LDFLAGS"
24560 if test $gcc_cv_have_tls = yes; then
24561 chktls_save_CFLAGS="$CFLAGS"
24562 thread_CFLAGS=failed
24563 for flag in '' '-pthread' '-lpthread'; do
24564 CFLAGS="$flag $chktls_save_CFLAGS"
24565 if test x$gcc_no_link = xyes; then
24566 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24569 /* end confdefs.h. */
24570 #include <pthread.h>
24571 void *g(void *d) { return NULL; }
24573 main ()
24575 pthread_t t; pthread_create(&t,NULL,g,NULL);
24577 return 0;
24579 _ACEOF
24580 if ac_fn_c_try_link "$LINENO"; then :
24581 thread_CFLAGS="$flag"
24583 rm -f core conftest.err conftest.$ac_objext \
24584 conftest$ac_exeext conftest.$ac_ext
24585 if test "X$thread_CFLAGS" != Xfailed; then
24586 break
24588 done
24589 CFLAGS="$chktls_save_CFLAGS"
24590 if test "X$thread_CFLAGS" != Xfailed; then
24591 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
24592 if test "$cross_compiling" = yes; then :
24593 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24595 as_fn_error "cannot run test program while cross compiling
24596 See \`config.log' for more details." "$LINENO" 5; }
24597 else
24598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24599 /* end confdefs.h. */
24600 #include <pthread.h>
24601 __thread int a;
24602 static int *volatile a_in_other_thread;
24603 static void *
24604 thread_func (void *arg)
24606 a_in_other_thread = &a;
24607 return (void *)0;
24610 main ()
24612 pthread_t thread;
24613 void *thread_retval;
24614 int *volatile a_in_main_thread;
24615 a_in_main_thread = &a;
24616 if (pthread_create (&thread, (pthread_attr_t *)0,
24617 thread_func, (void *)0))
24618 return 0;
24619 if (pthread_join (thread, &thread_retval))
24620 return 0;
24621 return (a_in_other_thread == a_in_main_thread);
24623 return 0;
24625 _ACEOF
24626 if ac_fn_c_try_run "$LINENO"; then :
24627 gcc_cv_have_tls=yes
24628 else
24629 gcc_cv_have_tls=no
24631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24632 conftest.$ac_objext conftest.beam conftest.$ac_ext
24635 CFLAGS="$chktls_save_CFLAGS"
24638 else
24639 gcc_cv_have_tls=no
24641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24642 conftest.$ac_objext conftest.beam conftest.$ac_ext
24646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
24647 $as_echo "$gcc_cv_have_tls" >&6; }
24648 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
24650 $as_echo "#define HAVE_TLS 1" >>confdefs.h
24654 # For _Unwind_GetIPInfo.
24657 # Check whether --with-system-libunwind was given.
24658 if test "${with_system_libunwind+set}" = set; then :
24659 withval=$with_system_libunwind;
24662 # If system-libunwind was not specifically set, pick a default setting.
24663 if test x$with_system_libunwind = x; then
24664 case ${target} in
24665 ia64-*-hpux*) with_system_libunwind=yes ;;
24666 *) with_system_libunwind=no ;;
24667 esac
24669 # Based on system-libunwind and target, do we have ipinfo?
24670 if test x$with_system_libunwind = xyes; then
24671 case ${target} in
24672 ia64-*-*) have_unwind_getipinfo=no ;;
24673 *) have_unwind_getipinfo=yes ;;
24674 esac
24675 else
24676 # Darwin before version 9 does not have _Unwind_GetIPInfo.
24678 case ${target} in
24679 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
24680 *) have_unwind_getipinfo=yes ;;
24681 esac
24685 if test x$have_unwind_getipinfo = xyes; then
24687 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
24692 # See if linker supports anonymous version scripts.
24693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous version scripts" >&5
24694 $as_echo_n "checking whether ld supports anonymous version scripts... " >&6; }
24695 if test "${libjava_cv_anon_version_script+set}" = set; then :
24696 $as_echo_n "(cached) " >&6
24697 else
24698 # Check whether --enable-symvers was given.
24699 if test "${enable_symvers+set}" = set; then :
24700 enableval=$enable_symvers; case "$enableval" in
24701 yes|gnu*) libjava_cv_anon_version_script=yes ;;
24702 no) libjava_cv_anon_version_script=no ;;
24703 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5;;
24704 esac
24705 else
24706 libjava_cv_anon_version_script=yes
24710 if test x$libjava_cv_anon_version_script = xyes; then
24711 save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
24712 CFLAGS="$CFLAGS -fPIC";
24713 LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
24714 echo '{ global: globalsymb*; local: *; };' > conftest.map
24715 if test x$gcc_no_link = xyes; then
24716 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24719 /* end confdefs.h. */
24720 void globalsymbol (void) {} void localsymbol (void) {}
24722 main ()
24726 return 0;
24728 _ACEOF
24729 if ac_fn_c_try_link "$LINENO"; then :
24730 libjava_cv_anon_version_script=gnu
24731 else
24732 libjava_cv_anon_version_script=no
24734 rm -f core conftest.err conftest.$ac_objext \
24735 conftest$ac_exeext conftest.$ac_ext
24736 if test x$libjava_cv_anon_version_script = xno; then
24737 case "$target_os" in
24738 solaris2*)
24739 LDFLAGS="$save_LDFLAGS"
24740 LDFLAGS="$LDFLAGS -shared -Wl,-M,conftest.map"
24741 # Sun ld doesn't understand wildcards here.
24742 echo '{ global: globalsymbol; local: *; };' > conftest.map
24743 if test x$gcc_no_link = xyes; then
24744 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24747 /* end confdefs.h. */
24748 void globalsymbol (void) {} void localsymbol (void) {}
24750 main ()
24754 return 0;
24756 _ACEOF
24757 if ac_fn_c_try_link "$LINENO"; then :
24758 libjava_cv_anon_version_script=sun
24760 rm -f core conftest.err conftest.$ac_objext \
24761 conftest$ac_exeext conftest.$ac_ext
24763 esac
24765 CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
24769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_anon_version_script" >&5
24770 $as_echo "$libjava_cv_anon_version_script" >&6; }
24771 if test "$libjava_cv_anon_version_script" != no; then
24772 ANONVERSCRIPT_TRUE=
24773 ANONVERSCRIPT_FALSE='#'
24774 else
24775 ANONVERSCRIPT_TRUE='#'
24776 ANONVERSCRIPT_FALSE=
24779 if test "$libjava_cv_anon_version_script" = gnu; then
24780 ANONVERSCRIPT_GNU_TRUE=
24781 ANONVERSCRIPT_GNU_FALSE='#'
24782 else
24783 ANONVERSCRIPT_GNU_TRUE='#'
24784 ANONVERSCRIPT_GNU_FALSE=
24787 if test "$libjava_cv_anon_version_script" = sun; then
24788 ANONVERSCRIPT_SUN_TRUE=
24789 ANONVERSCRIPT_SUN_FALSE='#'
24790 else
24791 ANONVERSCRIPT_SUN_TRUE='#'
24792 ANONVERSCRIPT_SUN_FALSE=
24796 # Check if linker supports static linking on a per library basis
24797 LD_START_STATIC_SPEC=
24798 LD_FINISH_STATIC_SPEC=
24799 if $LD --help 2>&1 | grep -- -call_shared >/dev/null 2>&1; then
24800 if $LD --help 2>&1 | grep -- -non_shared >/dev/null 2>&1; then
24801 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
24802 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
24808 here=`${PWDCMD-pwd}`
24811 # We get this from the environment.
24814 default_python_dir="/share/gcc-`cat ${srcdir}/../gcc/BASE-VER`/python/libjava"
24816 # Check whether --with-python-dir was given.
24817 if test "${with_python_dir+set}" = set; then :
24818 withval=$with_python_dir; with_python_dir=$withval
24819 else
24820 with_python_dir="${default_python_dir}"
24824 # Needed for installing Python modules during make install.
24825 python_mod_dir="\${prefix}${with_python_dir}"
24827 # Needed for substituting into aot-compile*
24828 python_mod_dir_expanded="${expanded_prefix}${with_python_dir}"
24830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Python modules dir: ${python_mod_dir_expanded}" >&5
24831 $as_echo "Python modules dir: ${python_mod_dir_expanded}" >&6; };
24835 # needed for aot-compile-rpm
24836 MAKE=`which make`
24839 # Check whether --enable-aot-compile-rpm was given.
24840 if test "${enable_aot_compile_rpm+set}" = set; then :
24841 enableval=$enable_aot_compile_rpm; case "${enableval}" in
24842 yes) AOT_RPM_ENABLED=yes ;;
24843 no) AOT_RPM_ENABLED=no ;;
24844 *) as_fn_error "Unknown argument to enable/disable aot-compile-rpm" "$LINENO" 5 ;;
24845 esac
24846 else
24847 AOT_RPM_ENABLED=no
24851 if test "x${AOT_RPM_ENABLED}" = xyes; then
24852 INSTALL_AOT_RPM_TRUE=
24853 INSTALL_AOT_RPM_FALSE='#'
24854 else
24855 INSTALL_AOT_RPM_TRUE='#'
24856 INSTALL_AOT_RPM_FALSE=
24860 # Check whether --enable-java-home was given.
24861 if test "${enable_java_home+set}" = set; then :
24862 enableval=$enable_java_home; case "${enableval}" in
24863 yes) JAVA_HOME_ENABLED=yes ;;
24864 no) JAVA_HOME_ENABLED=no ;;
24865 *) as_fn_error "Unknown argument to enable/disable java-home" "$LINENO" 5 ;;
24866 esac
24867 else
24868 JAVA_HOME_ENABLED=no
24872 if test "x${JAVA_HOME_ENABLED}" = xyes; then
24873 CREATE_JAVA_HOME_TRUE=
24874 CREATE_JAVA_HOME_FALSE='#'
24875 else
24876 CREATE_JAVA_HOME_TRUE='#'
24877 CREATE_JAVA_HOME_FALSE=
24881 # Only do these checks if java-home above is enabled.
24882 if test "x${JAVA_HOME_ENABLED}" = xyes
24883 then
24886 # Check whether --with-gcc-suffix was given.
24887 if test "${with_gcc_suffix+set}" = set; then :
24888 withval=$with_gcc_suffix; gcc_suffix=$withval
24889 else
24890 gcc_suffix=""
24893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCC suffix: ${gcc_suffix}" >&5
24894 $as_echo "GCC suffix: ${gcc_suffix}" >&6; }
24898 # Check whether --with-arch-directory was given.
24899 if test "${with_arch_directory+set}" = set; then :
24900 withval=$with_arch_directory; host_cpu=$withval
24901 else
24902 host_cpu=""
24907 # Check whether --with-os-directory was given.
24908 if test "${with_os_directory+set}" = set; then :
24909 withval=$with_os_directory; host_os=$withval
24910 else
24911 host_os=""
24916 # Check whether --with-origin-name was given.
24917 if test "${with_origin_name+set}" = set; then :
24918 withval=$with_origin_name; origin_name=$withval
24919 else
24920 origin_name=gcj${gcc_suffix}
24923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JPackage origin name: ${origin_name}" >&5
24924 $as_echo "JPackage origin name: ${origin_name}" >&6; }
24927 # Check whether --with-arch-suffix was given.
24928 if test "${with_arch_suffix+set}" = set; then :
24929 withval=$with_arch_suffix; arch_suffix=$withval
24930 else
24931 arch_suffix=""
24934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch suffix: ${arch_suffix}" >&5
24935 $as_echo "arch suffix: ${arch_suffix}" >&6; }
24938 # Check whether --with-jvm-root-dir was given.
24939 if test "${with_jvm_root_dir+set}" = set; then :
24940 withval=$with_jvm_root_dir; jvm_root_dir=$withval
24941 else
24942 jvm_root_dir="\${prefix}/lib/jvm"
24945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM root installation directory: ${jvm_root_dir}" >&5
24946 $as_echo "JVM root installation directory: ${jvm_root_dir}" >&6; }
24949 # Check whether --with-jvm-jar-dir was given.
24950 if test "${with_jvm_jar_dir+set}" = set; then :
24951 withval=$with_jvm_jar_dir; jvm_jar_dir=$withval
24952 else
24953 jvm_jar_dir=\${prefix}/lib/jvm-exports
24956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JAR root installation directory: ${jvm_jar_dir}" >&5
24957 $as_echo "JAR root installation directory: ${jvm_jar_dir}" >&6; }
24959 JAVA_VERSION=1.5.0
24960 BUILD_VERSION=0
24963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Java version: ${JAVA_VERSION}" >&5
24964 $as_echo "Java version: ${JAVA_VERSION}" >&6; }
24966 jre_dir=jre
24967 jre_lnk=jre-${JAVA_VERSION}-${origin_name}
24968 sdk_lnk=java-${JAVA_VERSION}-${origin_name}
24970 JVM_ROOT_DIR=${jvm_root_dir}
24972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5
24973 $as_echo "JVM ROOT directory: ${JVM_ROOT_DIR}" >&6; }
24975 JVM_JAR_ROOT_DIR=${jvm_jar_dir}
24977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5
24978 $as_echo "JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6; }
24980 JVM_JAR_DIR=${jvm_jar_dir}
24982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5
24983 $as_echo "JVM JAR directory: ${JVM_JAR_DIR}" >&6; }
24985 JRE_DIR=${jre_dir}
24988 JRE_LNK=${jre_lnk}
24991 SDK_LNK=${sdk_lnk}
24994 SDK_BIN_DIR=${jvm_root_dir}/bin
24996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK tools directory: ${SDK_BIN_DIR}" >&5
24997 $as_echo "SDK tools directory: ${SDK_BIN_DIR}" >&6; }
24999 SDK_LIB_DIR=${jvm_root_dir}/lib
25001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK jar directory: ${SDK_LIB_DIR}" >&5
25002 $as_echo "SDK jar directory: ${SDK_LIB_DIR}" >&6; }
25004 SDK_INCLUDE_DIR=${jvm_root_dir}/include
25006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5
25007 $as_echo "SDK include directory: ${SDK_INCLUDE_DIR}" >&6; }
25009 JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin
25011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE tools directory: ${JRE_BIN_DIR}" >&5
25012 $as_echo "JRE tools directory: ${JRE_BIN_DIR}" >&6; }
25014 JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib
25016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE lib directory: ${JRE_LIB_DIR}" >&5
25017 $as_echo "JRE lib directory: ${JRE_LIB_DIR}" >&6; }
25019 # Find gcj prefix using gcj found in PATH.
25020 gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"`
25022 # Where do the gcj binaries live?
25023 # For jhbuild based builds, they all live in a sibling of bin called
25024 # gcj-bin. Check for gcj-bin first, and use bin otherwise.
25025 GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi`
25027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5
25028 $as_echo "GCJ tools directory: ${GCJ_BIN_DIR}" >&6; }
25030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host is ${host}" >&5
25031 $as_echo "host is ${host}" >&6; }
25032 if test "x${host_cpu}" = "x"
25033 then
25034 case ${host} in
25035 *-mingw* | *-cygwin*)
25036 host_cpu=x86;;
25037 i486-* | i586-* | i686-*)
25038 host_cpu=i386;;
25039 x86_64-*)
25040 host_cpu=amd64;;
25042 host_cpu=${host_cpu};;
25043 esac
25045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch directory: ${host_cpu}" >&5
25046 $as_echo "arch directory: ${host_cpu}" >&6; }
25047 CPU=${host_cpu}
25050 if test "x${host_os}" = "x"
25051 then
25052 case ${host} in
25053 *-mingw* | *-cygwin*)
25054 host_os=win32;;
25055 *-linux*)
25056 host_os=linux;;
25058 host_os=${host_os};;
25059 esac
25061 echo os directory: ${host_os}
25062 OS=${host_os}
25065 # make an expanded $libdir, for substituting into
25066 # scripts (and other non-Makefile things).
25067 LIBDIR=$libdir
25068 if test "x${exec_prefix}" = "xNONE"
25069 then
25070 lib_exec_prefix=$expanded_prefix
25071 else
25072 lib_exec_prefix=$exec_prefix
25074 LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"`
25078 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"
25081 if test ${multilib} = yes; then
25082 multilib_arg="--enable-multilib"
25083 else
25084 multilib_arg=
25087 ac_config_files="$ac_config_files scripts/jar"
25089 cat >confcache <<\_ACEOF
25090 # This file is a shell script that caches the results of configure
25091 # tests run on this system so they can be shared between configure
25092 # scripts and configure runs, see configure's option --config-cache.
25093 # It is not useful on other systems. If it contains results you don't
25094 # want to keep, you may remove or edit it.
25096 # config.status only pays attention to the cache file if you give it
25097 # the --recheck option to rerun configure.
25099 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25100 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25101 # following values.
25103 _ACEOF
25105 # The following way of writing the cache mishandles newlines in values,
25106 # but we know of no workaround that is simple, portable, and efficient.
25107 # So, we kill variables containing newlines.
25108 # Ultrix sh set writes to stderr and can't be redirected directly,
25109 # and sets the high bit in the cache file unless we assign to the vars.
25111 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25112 eval ac_val=\$$ac_var
25113 case $ac_val in #(
25114 *${as_nl}*)
25115 case $ac_var in #(
25116 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25117 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25118 esac
25119 case $ac_var in #(
25120 _ | IFS | as_nl) ;; #(
25121 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25122 *) { eval $ac_var=; unset $ac_var;} ;;
25123 esac ;;
25124 esac
25125 done
25127 (set) 2>&1 |
25128 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25129 *${as_nl}ac_space=\ *)
25130 # `set' does not quote correctly, so add quotes: double-quote
25131 # substitution turns \\\\ into \\, and sed turns \\ into \.
25132 sed -n \
25133 "s/'/'\\\\''/g;
25134 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25135 ;; #(
25137 # `set' quotes correctly as required by POSIX, so do not add quotes.
25138 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25140 esac |
25141 sort
25143 sed '
25144 /^ac_cv_env_/b end
25145 t clear
25146 :clear
25147 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25148 t end
25149 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25150 :end' >>confcache
25151 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25152 if test -w "$cache_file"; then
25153 test "x$cache_file" != "x/dev/null" &&
25154 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25155 $as_echo "$as_me: updating cache $cache_file" >&6;}
25156 cat confcache >$cache_file
25157 else
25158 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25159 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25162 rm -f confcache
25164 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25165 # Let make expand exec_prefix.
25166 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25168 DEFS=-DHAVE_CONFIG_H
25170 ac_libobjs=
25171 ac_ltlibobjs=
25172 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25173 # 1. Remove the extension, and $U if already installed.
25174 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25175 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25176 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25177 # will be set to the directory where LIBOBJS objects are built.
25178 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25179 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25180 done
25181 LIBOBJS=$ac_libobjs
25183 LTLIBOBJS=$ac_ltlibobjs
25186 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
25187 as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
25188 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25190 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
25191 as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
25192 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25194 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25195 as_fn_error "conditional \"AMDEP\" was never defined.
25196 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25198 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25199 as_fn_error "conditional \"am__fastdepCC\" was never defined.
25200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25202 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25203 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
25204 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25206 if test -n "$EXEEXT"; then
25207 am__EXEEXT_TRUE=
25208 am__EXEEXT_FALSE='#'
25209 else
25210 am__EXEEXT_TRUE='#'
25211 am__EXEEXT_FALSE=
25214 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25215 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
25216 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25218 if test -z "${BUILD_SUBLIBS_TRUE}" && test -z "${BUILD_SUBLIBS_FALSE}"; then
25219 as_fn_error "conditional \"BUILD_SUBLIBS\" was never defined.
25220 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25222 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
25223 as_fn_error "conditional \"XLIB_AWT\" was never defined.
25224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25226 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
25227 as_fn_error "conditional \"X_AWT\" was never defined.
25228 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25230 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25231 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25232 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25234 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25235 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25236 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25238 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
25239 as_fn_error "conditional \"TESTSUBDIR\" was never defined.
25240 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25242 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
25243 as_fn_error "conditional \"BUILD_ECJ1\" was never defined.
25244 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25246 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
25247 as_fn_error "conditional \"INSTALL_ECJ_JAR\" was never defined.
25248 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25250 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
25251 as_fn_error "conditional \"JAVA_HOME_SET\" was never defined.
25252 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25254 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
25255 as_fn_error "conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
25256 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25258 if test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE}" && test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE}"; then
25259 as_fn_error "conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
25260 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25262 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
25263 as_fn_error "conditional \"INTERPRETER\" was never defined.
25264 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25266 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
25267 as_fn_error "conditional \"USING_WIN32_PLATFORM\" was never defined.
25268 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25270 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
25271 as_fn_error "conditional \"USING_POSIX_PLATFORM\" was never defined.
25272 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25274 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
25275 as_fn_error "conditional \"USING_DARWIN_CRT\" was never defined.
25276 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25278 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
25279 as_fn_error "conditional \"USING_BOEHMGC\" was never defined.
25280 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25282 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
25283 as_fn_error "conditional \"USING_NOGC\" was never defined.
25284 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25286 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
25287 as_fn_error "conditional \"USING_POSIX_THREADS\" was never defined.
25288 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25290 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
25291 as_fn_error "conditional \"USING_WIN32_THREADS\" was never defined.
25292 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25294 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
25295 as_fn_error "conditional \"USING_NO_THREADS\" was never defined.
25296 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25298 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
25299 as_fn_error "conditional \"USE_LIBGCJ_BC\" was never defined.
25300 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25302 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
25303 as_fn_error "conditional \"USING_GCC\" was never defined.
25304 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25306 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25307 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25308 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25311 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
25312 as_fn_error "conditional \"NATIVE\" was never defined.
25313 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25315 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
25316 as_fn_error "conditional \"ENABLE_SHARED\" was never defined.
25317 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25319 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
25320 as_fn_error "conditional \"NEEDS_DATA_START\" was never defined.
25321 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25323 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
25324 as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
25325 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25327 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
25328 as_fn_error "conditional \"ANONVERSCRIPT\" was never defined.
25329 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25331 if test -z "${ANONVERSCRIPT_GNU_TRUE}" && test -z "${ANONVERSCRIPT_GNU_FALSE}"; then
25332 as_fn_error "conditional \"ANONVERSCRIPT_GNU\" was never defined.
25333 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25335 if test -z "${ANONVERSCRIPT_SUN_TRUE}" && test -z "${ANONVERSCRIPT_SUN_FALSE}"; then
25336 as_fn_error "conditional \"ANONVERSCRIPT_SUN\" was never defined.
25337 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25339 if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then
25340 as_fn_error "conditional \"INSTALL_AOT_RPM\" was never defined.
25341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25343 if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then
25344 as_fn_error "conditional \"CREATE_JAVA_HOME\" was never defined.
25345 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25348 : ${CONFIG_STATUS=./config.status}
25349 ac_write_fail=0
25350 ac_clean_files_save=$ac_clean_files
25351 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25352 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25353 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25354 as_write_fail=0
25355 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25356 #! $SHELL
25357 # Generated by $as_me.
25358 # Run this file to recreate the current configuration.
25359 # Compiler output produced by configure, useful for debugging
25360 # configure, is in config.log if it exists.
25362 debug=false
25363 ac_cs_recheck=false
25364 ac_cs_silent=false
25366 SHELL=\${CONFIG_SHELL-$SHELL}
25367 export SHELL
25368 _ASEOF
25369 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25370 ## -------------------- ##
25371 ## M4sh Initialization. ##
25372 ## -------------------- ##
25374 # Be more Bourne compatible
25375 DUALCASE=1; export DUALCASE # for MKS sh
25376 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25377 emulate sh
25378 NULLCMD=:
25379 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25380 # is contrary to our usage. Disable this feature.
25381 alias -g '${1+"$@"}'='"$@"'
25382 setopt NO_GLOB_SUBST
25383 else
25384 case `(set -o) 2>/dev/null` in #(
25385 *posix*) :
25386 set -o posix ;; #(
25387 *) :
25389 esac
25393 as_nl='
25395 export as_nl
25396 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25397 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25398 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25399 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25400 # Prefer a ksh shell builtin over an external printf program on Solaris,
25401 # but without wasting forks for bash or zsh.
25402 if test -z "$BASH_VERSION$ZSH_VERSION" \
25403 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25404 as_echo='print -r --'
25405 as_echo_n='print -rn --'
25406 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25407 as_echo='printf %s\n'
25408 as_echo_n='printf %s'
25409 else
25410 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25411 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25412 as_echo_n='/usr/ucb/echo -n'
25413 else
25414 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25415 as_echo_n_body='eval
25416 arg=$1;
25417 case $arg in #(
25418 *"$as_nl"*)
25419 expr "X$arg" : "X\\(.*\\)$as_nl";
25420 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25421 esac;
25422 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25424 export as_echo_n_body
25425 as_echo_n='sh -c $as_echo_n_body as_echo'
25427 export as_echo_body
25428 as_echo='sh -c $as_echo_body as_echo'
25431 # The user is always right.
25432 if test "${PATH_SEPARATOR+set}" != set; then
25433 PATH_SEPARATOR=:
25434 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25435 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25436 PATH_SEPARATOR=';'
25441 # IFS
25442 # We need space, tab and new line, in precisely that order. Quoting is
25443 # there to prevent editors from complaining about space-tab.
25444 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25445 # splitting by setting IFS to empty value.)
25446 IFS=" "" $as_nl"
25448 # Find who we are. Look in the path if we contain no directory separator.
25449 case $0 in #((
25450 *[\\/]* ) as_myself=$0 ;;
25451 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25452 for as_dir in $PATH
25454 IFS=$as_save_IFS
25455 test -z "$as_dir" && as_dir=.
25456 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25457 done
25458 IFS=$as_save_IFS
25461 esac
25462 # We did not find ourselves, most probably we were run as `sh COMMAND'
25463 # in which case we are not to be found in the path.
25464 if test "x$as_myself" = x; then
25465 as_myself=$0
25467 if test ! -f "$as_myself"; then
25468 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25469 exit 1
25472 # Unset variables that we do not need and which cause bugs (e.g. in
25473 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25474 # suppresses any "Segmentation fault" message there. '((' could
25475 # trigger a bug in pdksh 5.2.14.
25476 for as_var in BASH_ENV ENV MAIL MAILPATH
25477 do eval test x\${$as_var+set} = xset \
25478 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25479 done
25480 PS1='$ '
25481 PS2='> '
25482 PS4='+ '
25484 # NLS nuisances.
25485 LC_ALL=C
25486 export LC_ALL
25487 LANGUAGE=C
25488 export LANGUAGE
25490 # CDPATH.
25491 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25494 # as_fn_error ERROR [LINENO LOG_FD]
25495 # ---------------------------------
25496 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25497 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25498 # script with status $?, using 1 if that was 0.
25499 as_fn_error ()
25501 as_status=$?; test $as_status -eq 0 && as_status=1
25502 if test "$3"; then
25503 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25504 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25506 $as_echo "$as_me: error: $1" >&2
25507 as_fn_exit $as_status
25508 } # as_fn_error
25511 # as_fn_set_status STATUS
25512 # -----------------------
25513 # Set $? to STATUS, without forking.
25514 as_fn_set_status ()
25516 return $1
25517 } # as_fn_set_status
25519 # as_fn_exit STATUS
25520 # -----------------
25521 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25522 as_fn_exit ()
25524 set +e
25525 as_fn_set_status $1
25526 exit $1
25527 } # as_fn_exit
25529 # as_fn_unset VAR
25530 # ---------------
25531 # Portably unset VAR.
25532 as_fn_unset ()
25534 { eval $1=; unset $1;}
25536 as_unset=as_fn_unset
25537 # as_fn_append VAR VALUE
25538 # ----------------------
25539 # Append the text in VALUE to the end of the definition contained in VAR. Take
25540 # advantage of any shell optimizations that allow amortized linear growth over
25541 # repeated appends, instead of the typical quadratic growth present in naive
25542 # implementations.
25543 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25544 eval 'as_fn_append ()
25546 eval $1+=\$2
25548 else
25549 as_fn_append ()
25551 eval $1=\$$1\$2
25553 fi # as_fn_append
25555 # as_fn_arith ARG...
25556 # ------------------
25557 # Perform arithmetic evaluation on the ARGs, and store the result in the
25558 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25559 # must be portable across $(()) and expr.
25560 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25561 eval 'as_fn_arith ()
25563 as_val=$(( $* ))
25565 else
25566 as_fn_arith ()
25568 as_val=`expr "$@" || test $? -eq 1`
25570 fi # as_fn_arith
25573 if expr a : '\(a\)' >/dev/null 2>&1 &&
25574 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25575 as_expr=expr
25576 else
25577 as_expr=false
25580 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25581 as_basename=basename
25582 else
25583 as_basename=false
25586 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25587 as_dirname=dirname
25588 else
25589 as_dirname=false
25592 as_me=`$as_basename -- "$0" ||
25593 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25594 X"$0" : 'X\(//\)$' \| \
25595 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25596 $as_echo X/"$0" |
25597 sed '/^.*\/\([^/][^/]*\)\/*$/{
25598 s//\1/
25601 /^X\/\(\/\/\)$/{
25602 s//\1/
25605 /^X\/\(\/\).*/{
25606 s//\1/
25609 s/.*/./; q'`
25611 # Avoid depending upon Character Ranges.
25612 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25613 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25614 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25615 as_cr_digits='0123456789'
25616 as_cr_alnum=$as_cr_Letters$as_cr_digits
25618 ECHO_C= ECHO_N= ECHO_T=
25619 case `echo -n x` in #(((((
25620 -n*)
25621 case `echo 'xy\c'` in
25622 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25623 xy) ECHO_C='\c';;
25624 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25625 ECHO_T=' ';;
25626 esac;;
25628 ECHO_N='-n';;
25629 esac
25631 rm -f conf$$ conf$$.exe conf$$.file
25632 if test -d conf$$.dir; then
25633 rm -f conf$$.dir/conf$$.file
25634 else
25635 rm -f conf$$.dir
25636 mkdir conf$$.dir 2>/dev/null
25638 if (echo >conf$$.file) 2>/dev/null; then
25639 if ln -s conf$$.file conf$$ 2>/dev/null; then
25640 as_ln_s='ln -s'
25641 # ... but there are two gotchas:
25642 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25643 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25644 # In both cases, we have to default to `cp -p'.
25645 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25646 as_ln_s='cp -p'
25647 elif ln conf$$.file conf$$ 2>/dev/null; then
25648 as_ln_s=ln
25649 else
25650 as_ln_s='cp -p'
25652 else
25653 as_ln_s='cp -p'
25655 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25656 rmdir conf$$.dir 2>/dev/null
25659 # as_fn_mkdir_p
25660 # -------------
25661 # Create "$as_dir" as a directory, including parents if necessary.
25662 as_fn_mkdir_p ()
25665 case $as_dir in #(
25666 -*) as_dir=./$as_dir;;
25667 esac
25668 test -d "$as_dir" || eval $as_mkdir_p || {
25669 as_dirs=
25670 while :; do
25671 case $as_dir in #(
25672 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25673 *) as_qdir=$as_dir;;
25674 esac
25675 as_dirs="'$as_qdir' $as_dirs"
25676 as_dir=`$as_dirname -- "$as_dir" ||
25677 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25678 X"$as_dir" : 'X\(//\)[^/]' \| \
25679 X"$as_dir" : 'X\(//\)$' \| \
25680 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25681 $as_echo X"$as_dir" |
25682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25683 s//\1/
25686 /^X\(\/\/\)[^/].*/{
25687 s//\1/
25690 /^X\(\/\/\)$/{
25691 s//\1/
25694 /^X\(\/\).*/{
25695 s//\1/
25698 s/.*/./; q'`
25699 test -d "$as_dir" && break
25700 done
25701 test -z "$as_dirs" || eval "mkdir $as_dirs"
25702 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25705 } # as_fn_mkdir_p
25706 if mkdir -p . 2>/dev/null; then
25707 as_mkdir_p='mkdir -p "$as_dir"'
25708 else
25709 test -d ./-p && rmdir ./-p
25710 as_mkdir_p=false
25713 if test -x / >/dev/null 2>&1; then
25714 as_test_x='test -x'
25715 else
25716 if ls -dL / >/dev/null 2>&1; then
25717 as_ls_L_option=L
25718 else
25719 as_ls_L_option=
25721 as_test_x='
25722 eval sh -c '\''
25723 if test -d "$1"; then
25724 test -d "$1/.";
25725 else
25726 case $1 in #(
25727 -*)set "./$1";;
25728 esac;
25729 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25730 ???[sx]*):;;*)false;;esac;fi
25731 '\'' sh
25734 as_executable_p=$as_test_x
25736 # Sed expression to map a string onto a valid CPP name.
25737 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25739 # Sed expression to map a string onto a valid variable name.
25740 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25743 exec 6>&1
25744 ## ----------------------------------- ##
25745 ## Main body of $CONFIG_STATUS script. ##
25746 ## ----------------------------------- ##
25747 _ASEOF
25748 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25751 # Save the log message, to keep $0 and so on meaningful, and to
25752 # report actual input values of CONFIG_FILES etc. instead of their
25753 # values after options handling.
25754 ac_log="
25755 This file was extended by libjava $as_me version-unused, which was
25756 generated by GNU Autoconf 2.64. Invocation command line was
25758 CONFIG_FILES = $CONFIG_FILES
25759 CONFIG_HEADERS = $CONFIG_HEADERS
25760 CONFIG_LINKS = $CONFIG_LINKS
25761 CONFIG_COMMANDS = $CONFIG_COMMANDS
25762 $ $0 $@
25764 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25767 _ACEOF
25769 case $ac_config_files in *"
25770 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25771 esac
25773 case $ac_config_headers in *"
25774 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25775 esac
25778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25779 # Files that config.status was made for.
25780 config_files="$ac_config_files"
25781 config_headers="$ac_config_headers"
25782 config_links="$ac_config_links"
25783 config_commands="$ac_config_commands"
25785 _ACEOF
25787 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25788 ac_cs_usage="\
25789 \`$as_me' instantiates files and other configuration actions
25790 from templates according to the current configuration. Unless the files
25791 and actions are specified as TAGs, all are instantiated by default.
25793 Usage: $0 [OPTION]... [TAG]...
25795 -h, --help print this help, then exit
25796 -V, --version print version number and configuration settings, then exit
25797 -q, --quiet, --silent
25798 do not print progress messages
25799 -d, --debug don't remove temporary files
25800 --recheck update $as_me by reconfiguring in the same conditions
25801 --file=FILE[:TEMPLATE]
25802 instantiate the configuration file FILE
25803 --header=FILE[:TEMPLATE]
25804 instantiate the configuration header FILE
25806 Configuration files:
25807 $config_files
25809 Configuration headers:
25810 $config_headers
25812 Configuration links:
25813 $config_links
25815 Configuration commands:
25816 $config_commands
25818 Report bugs to the package provider."
25820 _ACEOF
25821 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25822 ac_cs_version="\\
25823 libjava config.status version-unused
25824 configured by $0, generated by GNU Autoconf 2.64,
25825 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25827 Copyright (C) 2009 Free Software Foundation, Inc.
25828 This config.status script is free software; the Free Software Foundation
25829 gives unlimited permission to copy, distribute and modify it."
25831 ac_pwd='$ac_pwd'
25832 srcdir='$srcdir'
25833 INSTALL='$INSTALL'
25834 MKDIR_P='$MKDIR_P'
25835 AWK='$AWK'
25836 test -n "\$AWK" || AWK=awk
25837 _ACEOF
25839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25840 # The default lists apply if the user does not specify any file.
25841 ac_need_defaults=:
25842 while test $# != 0
25844 case $1 in
25845 --*=*)
25846 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25847 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25848 ac_shift=:
25851 ac_option=$1
25852 ac_optarg=$2
25853 ac_shift=shift
25855 esac
25857 case $ac_option in
25858 # Handling of the options.
25859 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25860 ac_cs_recheck=: ;;
25861 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25862 $as_echo "$ac_cs_version"; exit ;;
25863 --debug | --debu | --deb | --de | --d | -d )
25864 debug=: ;;
25865 --file | --fil | --fi | --f )
25866 $ac_shift
25867 case $ac_optarg in
25868 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25869 esac
25870 as_fn_append CONFIG_FILES " '$ac_optarg'"
25871 ac_need_defaults=false;;
25872 --header | --heade | --head | --hea )
25873 $ac_shift
25874 case $ac_optarg in
25875 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25876 esac
25877 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25878 ac_need_defaults=false;;
25879 --he | --h)
25880 # Conflict between --help and --header
25881 as_fn_error "ambiguous option: \`$1'
25882 Try \`$0 --help' for more information.";;
25883 --help | --hel | -h )
25884 $as_echo "$ac_cs_usage"; exit ;;
25885 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25886 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25887 ac_cs_silent=: ;;
25889 # This is an error.
25890 -*) as_fn_error "unrecognized option: \`$1'
25891 Try \`$0 --help' for more information." ;;
25893 *) as_fn_append ac_config_targets " $1"
25894 ac_need_defaults=false ;;
25896 esac
25897 shift
25898 done
25900 ac_configure_extra_args=
25902 if $ac_cs_silent; then
25903 exec 6>/dev/null
25904 ac_configure_extra_args="$ac_configure_extra_args --silent"
25907 _ACEOF
25908 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25909 if \$ac_cs_recheck; then
25910 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25911 shift
25912 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25913 CONFIG_SHELL='$SHELL'
25914 export CONFIG_SHELL
25915 exec "\$@"
25918 _ACEOF
25919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25920 exec 5>>config.log
25922 echo
25923 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25924 ## Running $as_me. ##
25925 _ASBOX
25926 $as_echo "$ac_log"
25927 } >&5
25929 _ACEOF
25930 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25932 # INIT-COMMANDS
25935 srcdir="$srcdir"
25936 host="$host"
25937 target="$target"
25938 with_multisubdir="$with_multisubdir"
25939 with_multisrctop="$with_multisrctop"
25940 with_target_subdir="$with_target_subdir"
25941 ac_configure_args="${multilib_arg} ${ac_configure_args}"
25942 multi_basedir="$multi_basedir"
25943 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
25944 CC="$CC"
25945 CXX="$CXX"
25946 GFORTRAN="$GFORTRAN"
25947 GCJ="$GCJ"
25948 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25951 # The HP-UX ksh and POSIX shell print the target directory to stdout
25952 # if CDPATH is set.
25953 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25955 sed_quote_subst='$sed_quote_subst'
25956 double_quote_subst='$double_quote_subst'
25957 delay_variable_subst='$delay_variable_subst'
25958 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25959 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25960 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25961 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25962 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25963 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25964 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25965 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25966 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25967 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25968 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25969 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25970 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25971 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25972 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25973 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25974 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25975 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25976 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25977 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25978 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25979 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25980 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25981 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25982 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25983 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25984 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25985 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25986 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25987 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25988 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25989 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25990 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25991 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25992 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25993 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25994 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25995 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25996 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25997 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25998 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25999 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
26000 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
26001 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
26002 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
26003 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
26004 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
26005 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
26006 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"`'
26007 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
26008 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
26009 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
26010 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
26011 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
26012 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
26013 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
26014 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
26015 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
26016 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
26017 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
26018 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
26019 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
26020 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
26021 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
26022 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26023 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
26024 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
26025 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
26026 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
26027 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
26028 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
26029 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26030 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
26031 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26032 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
26033 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26034 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
26035 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
26036 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
26037 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
26038 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
26039 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
26040 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
26041 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
26042 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
26043 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
26044 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
26045 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
26046 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
26047 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
26048 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
26049 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
26050 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
26051 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
26052 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
26053 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
26054 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
26055 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
26056 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
26057 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
26058 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
26059 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
26060 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
26061 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
26062 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
26063 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
26064 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
26065 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26066 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26067 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
26068 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
26069 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
26070 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
26071 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
26072 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
26073 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
26074 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
26075 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
26076 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
26077 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
26078 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
26079 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
26080 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
26081 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
26082 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
26083 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
26084 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
26085 LD_GCJ='`$ECHO "$LD_GCJ" | $SED "$delay_single_quote_subst"`'
26086 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
26087 reload_flag_GCJ='`$ECHO "$reload_flag_GCJ" | $SED "$delay_single_quote_subst"`'
26088 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26089 reload_cmds_GCJ='`$ECHO "$reload_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26090 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26091 old_archive_cmds_GCJ='`$ECHO "$old_archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26092 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
26093 compiler_GCJ='`$ECHO "$compiler_GCJ" | $SED "$delay_single_quote_subst"`'
26094 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
26095 GCC_GCJ='`$ECHO "$GCC_GCJ" | $SED "$delay_single_quote_subst"`'
26096 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
26097 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "$lt_prog_compiler_no_builtin_flag_GCJ" | $SED "$delay_single_quote_subst"`'
26098 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
26099 lt_prog_compiler_wl_GCJ='`$ECHO "$lt_prog_compiler_wl_GCJ" | $SED "$delay_single_quote_subst"`'
26100 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
26101 lt_prog_compiler_pic_GCJ='`$ECHO "$lt_prog_compiler_pic_GCJ" | $SED "$delay_single_quote_subst"`'
26102 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
26103 lt_prog_compiler_static_GCJ='`$ECHO "$lt_prog_compiler_static_GCJ" | $SED "$delay_single_quote_subst"`'
26104 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
26105 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "$lt_cv_prog_compiler_c_o_GCJ" | $SED "$delay_single_quote_subst"`'
26106 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
26107 archive_cmds_need_lc_GCJ='`$ECHO "$archive_cmds_need_lc_GCJ" | $SED "$delay_single_quote_subst"`'
26108 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
26109 enable_shared_with_static_runtimes_GCJ='`$ECHO "$enable_shared_with_static_runtimes_GCJ" | $SED "$delay_single_quote_subst"`'
26110 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26111 export_dynamic_flag_spec_GCJ='`$ECHO "$export_dynamic_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
26112 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26113 whole_archive_flag_spec_GCJ='`$ECHO "$whole_archive_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
26114 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
26115 compiler_needs_object_GCJ='`$ECHO "$compiler_needs_object_GCJ" | $SED "$delay_single_quote_subst"`'
26116 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26117 old_archive_from_new_cmds_GCJ='`$ECHO "$old_archive_from_new_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26118 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26119 old_archive_from_expsyms_cmds_GCJ='`$ECHO "$old_archive_from_expsyms_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26120 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26121 archive_cmds_GCJ='`$ECHO "$archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26122 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26123 archive_expsym_cmds_GCJ='`$ECHO "$archive_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26124 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26125 module_cmds_GCJ='`$ECHO "$module_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26126 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26127 module_expsym_cmds_GCJ='`$ECHO "$module_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26128 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
26129 with_gnu_ld_GCJ='`$ECHO "$with_gnu_ld_GCJ" | $SED "$delay_single_quote_subst"`'
26130 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26131 allow_undefined_flag_GCJ='`$ECHO "$allow_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
26132 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26133 no_undefined_flag_GCJ='`$ECHO "$no_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
26134 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26135 hardcode_libdir_flag_spec_GCJ='`$ECHO "$hardcode_libdir_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
26136 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
26137 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "$hardcode_libdir_flag_spec_ld_GCJ" | $SED "$delay_single_quote_subst"`'
26138 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
26139 hardcode_libdir_separator_GCJ='`$ECHO "$hardcode_libdir_separator_GCJ" | $SED "$delay_single_quote_subst"`'
26140 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
26141 hardcode_direct_GCJ='`$ECHO "$hardcode_direct_GCJ" | $SED "$delay_single_quote_subst"`'
26142 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
26143 hardcode_direct_absolute_GCJ='`$ECHO "$hardcode_direct_absolute_GCJ" | $SED "$delay_single_quote_subst"`'
26144 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
26145 hardcode_minus_L_GCJ='`$ECHO "$hardcode_minus_L_GCJ" | $SED "$delay_single_quote_subst"`'
26146 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
26147 hardcode_shlibpath_var_GCJ='`$ECHO "$hardcode_shlibpath_var_GCJ" | $SED "$delay_single_quote_subst"`'
26148 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
26149 hardcode_automatic_GCJ='`$ECHO "$hardcode_automatic_GCJ" | $SED "$delay_single_quote_subst"`'
26150 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
26151 inherit_rpath_GCJ='`$ECHO "$inherit_rpath_GCJ" | $SED "$delay_single_quote_subst"`'
26152 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
26153 link_all_deplibs_GCJ='`$ECHO "$link_all_deplibs_GCJ" | $SED "$delay_single_quote_subst"`'
26154 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
26155 fix_srcfile_path_GCJ='`$ECHO "$fix_srcfile_path_GCJ" | $SED "$delay_single_quote_subst"`'
26156 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
26157 always_export_symbols_GCJ='`$ECHO "$always_export_symbols_GCJ" | $SED "$delay_single_quote_subst"`'
26158 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26159 export_symbols_cmds_GCJ='`$ECHO "$export_symbols_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26160 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26161 exclude_expsyms_GCJ='`$ECHO "$exclude_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
26162 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26163 include_expsyms_GCJ='`$ECHO "$include_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
26164 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26165 prelink_cmds_GCJ='`$ECHO "$prelink_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26166 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
26167 file_list_spec_GCJ='`$ECHO "$file_list_spec_GCJ" | $SED "$delay_single_quote_subst"`'
26168 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
26169 hardcode_action_GCJ='`$ECHO "$hardcode_action_GCJ" | $SED "$delay_single_quote_subst"`'
26170 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
26171 compiler_lib_search_dirs_GCJ='`$ECHO "$compiler_lib_search_dirs_GCJ" | $SED "$delay_single_quote_subst"`'
26172 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26173 predep_objects_GCJ='`$ECHO "$predep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
26174 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26175 postdep_objects_GCJ='`$ECHO "$postdep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
26176 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
26177 predeps_GCJ='`$ECHO "$predeps_GCJ" | $SED "$delay_single_quote_subst"`'
26178 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
26179 postdeps_GCJ='`$ECHO "$postdeps_GCJ" | $SED "$delay_single_quote_subst"`'
26180 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
26181 compiler_lib_search_path_GCJ='`$ECHO "$compiler_lib_search_path_GCJ" | $SED "$delay_single_quote_subst"`'
26183 LTCC='$LTCC'
26184 LTCFLAGS='$LTCFLAGS'
26185 compiler='$compiler_DEFAULT'
26187 # A function that is used when there is no print builtin or printf.
26188 func_fallback_echo ()
26190 eval 'cat <<_LTECHO_EOF
26192 _LTECHO_EOF'
26195 # Quote evaled strings.
26196 for var in SHELL \
26197 ECHO \
26198 SED \
26199 GREP \
26200 EGREP \
26201 FGREP \
26202 LD \
26203 NM \
26204 LN_S \
26205 lt_SP2NL \
26206 lt_NL2SP \
26207 reload_flag \
26208 OBJDUMP \
26209 deplibs_check_method \
26210 file_magic_cmd \
26211 AR \
26212 AR_FLAGS \
26213 STRIP \
26214 RANLIB \
26215 CC \
26216 CFLAGS \
26217 compiler \
26218 lt_cv_sys_global_symbol_pipe \
26219 lt_cv_sys_global_symbol_to_cdecl \
26220 lt_cv_sys_global_symbol_to_c_name_address \
26221 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26222 lt_prog_compiler_no_builtin_flag \
26223 lt_prog_compiler_wl \
26224 lt_prog_compiler_pic \
26225 lt_prog_compiler_static \
26226 lt_cv_prog_compiler_c_o \
26227 need_locks \
26228 DSYMUTIL \
26229 NMEDIT \
26230 LIPO \
26231 OTOOL \
26232 OTOOL64 \
26233 shrext_cmds \
26234 export_dynamic_flag_spec \
26235 whole_archive_flag_spec \
26236 compiler_needs_object \
26237 with_gnu_ld \
26238 allow_undefined_flag \
26239 no_undefined_flag \
26240 hardcode_libdir_flag_spec \
26241 hardcode_libdir_flag_spec_ld \
26242 hardcode_libdir_separator \
26243 fix_srcfile_path \
26244 exclude_expsyms \
26245 include_expsyms \
26246 file_list_spec \
26247 variables_saved_for_relink \
26248 libname_spec \
26249 library_names_spec \
26250 soname_spec \
26251 install_override_mode \
26252 finish_eval \
26253 old_striplib \
26254 striplib \
26255 compiler_lib_search_dirs \
26256 predep_objects \
26257 postdep_objects \
26258 predeps \
26259 postdeps \
26260 compiler_lib_search_path \
26261 LD_CXX \
26262 LD_GCJ \
26263 reload_flag_CXX \
26264 reload_flag_GCJ \
26265 compiler_CXX \
26266 compiler_GCJ \
26267 lt_prog_compiler_no_builtin_flag_CXX \
26268 lt_prog_compiler_no_builtin_flag_GCJ \
26269 lt_prog_compiler_wl_CXX \
26270 lt_prog_compiler_wl_GCJ \
26271 lt_prog_compiler_pic_CXX \
26272 lt_prog_compiler_pic_GCJ \
26273 lt_prog_compiler_static_CXX \
26274 lt_prog_compiler_static_GCJ \
26275 lt_cv_prog_compiler_c_o_CXX \
26276 lt_cv_prog_compiler_c_o_GCJ \
26277 export_dynamic_flag_spec_CXX \
26278 export_dynamic_flag_spec_GCJ \
26279 whole_archive_flag_spec_CXX \
26280 whole_archive_flag_spec_GCJ \
26281 compiler_needs_object_CXX \
26282 compiler_needs_object_GCJ \
26283 with_gnu_ld_CXX \
26284 with_gnu_ld_GCJ \
26285 allow_undefined_flag_CXX \
26286 allow_undefined_flag_GCJ \
26287 no_undefined_flag_CXX \
26288 no_undefined_flag_GCJ \
26289 hardcode_libdir_flag_spec_CXX \
26290 hardcode_libdir_flag_spec_GCJ \
26291 hardcode_libdir_flag_spec_ld_CXX \
26292 hardcode_libdir_flag_spec_ld_GCJ \
26293 hardcode_libdir_separator_CXX \
26294 hardcode_libdir_separator_GCJ \
26295 fix_srcfile_path_CXX \
26296 fix_srcfile_path_GCJ \
26297 exclude_expsyms_CXX \
26298 exclude_expsyms_GCJ \
26299 include_expsyms_CXX \
26300 include_expsyms_GCJ \
26301 file_list_spec_CXX \
26302 file_list_spec_GCJ \
26303 compiler_lib_search_dirs_CXX \
26304 compiler_lib_search_dirs_GCJ \
26305 predep_objects_CXX \
26306 predep_objects_GCJ \
26307 postdep_objects_CXX \
26308 postdep_objects_GCJ \
26309 predeps_CXX \
26310 predeps_GCJ \
26311 postdeps_CXX \
26312 postdeps_GCJ \
26313 compiler_lib_search_path_CXX \
26314 compiler_lib_search_path_GCJ; do
26315 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26316 *[\\\\\\\`\\"\\\$]*)
26317 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26320 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26322 esac
26323 done
26325 # Double-quote double-evaled strings.
26326 for var in reload_cmds \
26327 old_postinstall_cmds \
26328 old_postuninstall_cmds \
26329 old_archive_cmds \
26330 extract_expsyms_cmds \
26331 old_archive_from_new_cmds \
26332 old_archive_from_expsyms_cmds \
26333 archive_cmds \
26334 archive_expsym_cmds \
26335 module_cmds \
26336 module_expsym_cmds \
26337 export_symbols_cmds \
26338 prelink_cmds \
26339 postinstall_cmds \
26340 postuninstall_cmds \
26341 finish_cmds \
26342 sys_lib_search_path_spec \
26343 sys_lib_dlsearch_path_spec \
26344 reload_cmds_CXX \
26345 reload_cmds_GCJ \
26346 old_archive_cmds_CXX \
26347 old_archive_cmds_GCJ \
26348 old_archive_from_new_cmds_CXX \
26349 old_archive_from_new_cmds_GCJ \
26350 old_archive_from_expsyms_cmds_CXX \
26351 old_archive_from_expsyms_cmds_GCJ \
26352 archive_cmds_CXX \
26353 archive_cmds_GCJ \
26354 archive_expsym_cmds_CXX \
26355 archive_expsym_cmds_GCJ \
26356 module_cmds_CXX \
26357 module_cmds_GCJ \
26358 module_expsym_cmds_CXX \
26359 module_expsym_cmds_GCJ \
26360 export_symbols_cmds_CXX \
26361 export_symbols_cmds_GCJ \
26362 prelink_cmds_CXX \
26363 prelink_cmds_GCJ; do
26364 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26365 *[\\\\\\\`\\"\\\$]*)
26366 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26369 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26371 esac
26372 done
26374 ac_aux_dir='$ac_aux_dir'
26375 xsi_shell='$xsi_shell'
26376 lt_shell_append='$lt_shell_append'
26378 # See if we are running on zsh, and set the options which allow our
26379 # commands through without removal of \ escapes INIT.
26380 if test -n "\${ZSH_VERSION+set}" ; then
26381 setopt NO_GLOB_SUBST
26385 PACKAGE='$PACKAGE'
26386 VERSION='$VERSION'
26387 TIMESTAMP='$TIMESTAMP'
26388 RM='$RM'
26389 ofile='$ofile'
26398 _ACEOF
26400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26402 # Handling of arguments.
26403 for ac_config_target in $ac_config_targets
26405 case $ac_config_target in
26406 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
26407 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26408 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
26409 "gcj/libgcj-config.h") CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
26410 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26411 "include/platform.h") CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
26412 "java/io/natFile.cc") CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
26413 "java/lang/natConcreteProcess.cc") CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
26414 "java/net/natVMInetAddress.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
26415 "java/net/natVMNetworkInterface.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
26416 "gnu/java/net/natPlainSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
26417 "gnu/java/net/natPlainDatagramSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
26418 "gnu/java/nio/natVMPipe.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
26419 "gnu/java/nio/natVMSelector.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
26420 "gnu/java/nio/channels/natFileChannelImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
26421 "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" ;;
26422 "include/java-gc.h") CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
26423 "include/java-threads.h") CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
26424 "sysdep/locks.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
26425 "sysdep/backtrace.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
26426 "sysdep/descriptor.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
26427 "include/java-signal.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
26428 "include/java-signal-aux.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
26429 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26430 "libgcj.pc") CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
26431 "libgcj.spec") CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
26432 "libgcj-test.spec") CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
26433 "gcj/Makefile") CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
26434 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26435 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
26436 "contrib/aotcompile.py") CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;;
26437 "contrib/aot-compile") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;;
26438 "contrib/aot-compile-rpm") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;;
26439 "contrib/generate-cacerts.pl") CONFIG_FILES="$CONFIG_FILES contrib/generate-cacerts.pl" ;;
26440 "contrib/rebuild-gcj-db") CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;;
26441 "scripts/jar") CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
26443 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26444 esac
26445 done
26448 # If the user did not use the arguments to specify the items to instantiate,
26449 # then the envvar interface is used. Set only those that are not.
26450 # We use the long form for the default assignment because of an extremely
26451 # bizarre bug on SunOS 4.1.3.
26452 if $ac_need_defaults; then
26453 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26454 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26455 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26456 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26459 # Have a temporary directory for convenience. Make it in the build tree
26460 # simply because there is no reason against having it here, and in addition,
26461 # creating and moving files from /tmp can sometimes cause problems.
26462 # Hook for its removal unless debugging.
26463 # Note that there is a small window in which the directory will not be cleaned:
26464 # after its creation but before its name has been assigned to `$tmp'.
26465 $debug ||
26467 tmp=
26468 trap 'exit_status=$?
26469 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26471 trap 'as_fn_exit 1' 1 2 13 15
26473 # Create a (secure) tmp directory for tmp files.
26476 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26477 test -n "$tmp" && test -d "$tmp"
26478 } ||
26480 tmp=./conf$$-$RANDOM
26481 (umask 077 && mkdir "$tmp")
26482 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26484 # Set up the scripts for CONFIG_FILES section.
26485 # No need to generate them if there are no CONFIG_FILES.
26486 # This happens for instance with `./config.status config.h'.
26487 if test -n "$CONFIG_FILES"; then
26490 ac_cr=`echo X | tr X '\015'`
26491 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26492 # But we know of no other shell where ac_cr would be empty at this
26493 # point, so we can use a bashism as a fallback.
26494 if test "x$ac_cr" = x; then
26495 eval ac_cr=\$\'\\r\'
26497 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26498 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26499 ac_cs_awk_cr='\r'
26500 else
26501 ac_cs_awk_cr=$ac_cr
26504 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26505 _ACEOF
26509 echo "cat >conf$$subs.awk <<_ACEOF" &&
26510 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26511 echo "_ACEOF"
26512 } >conf$$subs.sh ||
26513 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26514 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26515 ac_delim='%!_!# '
26516 for ac_last_try in false false false false false :; do
26517 . ./conf$$subs.sh ||
26518 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26520 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26521 if test $ac_delim_n = $ac_delim_num; then
26522 break
26523 elif $ac_last_try; then
26524 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26525 else
26526 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26528 done
26529 rm -f conf$$subs.sh
26531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26532 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26533 _ACEOF
26534 sed -n '
26536 s/^/S["/; s/!.*/"]=/
26539 s/^[^!]*!//
26540 :repl
26541 t repl
26542 s/'"$ac_delim"'$//
26543 t delim
26546 s/\(.\{148\}\).*/\1/
26547 t more1
26548 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26551 b repl
26552 :more1
26553 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26556 s/.\{148\}//
26557 t nl
26558 :delim
26560 s/\(.\{148\}\).*/\1/
26561 t more2
26562 s/["\\]/\\&/g; s/^/"/; s/$/"/
26565 :more2
26566 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26569 s/.\{148\}//
26570 t delim
26571 ' <conf$$subs.awk | sed '
26572 /^[^""]/{
26574 s/\n//
26576 ' >>$CONFIG_STATUS || ac_write_fail=1
26577 rm -f conf$$subs.awk
26578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26579 _ACAWK
26580 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26581 for (key in S) S_is_set[key] = 1
26582 FS = "\a"
26586 line = $ 0
26587 nfields = split(line, field, "@")
26588 substed = 0
26589 len = length(field[1])
26590 for (i = 2; i < nfields; i++) {
26591 key = field[i]
26592 keylen = length(key)
26593 if (S_is_set[key]) {
26594 value = S[key]
26595 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26596 len += length(value) + length(field[++i])
26597 substed = 1
26598 } else
26599 len += 1 + keylen
26602 print line
26605 _ACAWK
26606 _ACEOF
26607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26608 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26609 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26610 else
26612 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26613 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26614 _ACEOF
26616 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26617 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26618 # trailing colons and then remove the whole line if VPATH becomes empty
26619 # (actually we leave an empty line to preserve line numbers).
26620 if test "x$srcdir" = x.; then
26621 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26622 s/:*\$(srcdir):*/:/
26623 s/:*\${srcdir}:*/:/
26624 s/:*@srcdir@:*/:/
26625 s/^\([^=]*=[ ]*\):*/\1/
26626 s/:*$//
26627 s/^[^=]*=[ ]*$//
26631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26632 fi # test -n "$CONFIG_FILES"
26634 # Set up the scripts for CONFIG_HEADERS section.
26635 # No need to generate them if there are no CONFIG_HEADERS.
26636 # This happens for instance with `./config.status Makefile'.
26637 if test -n "$CONFIG_HEADERS"; then
26638 cat >"$tmp/defines.awk" <<\_ACAWK ||
26639 BEGIN {
26640 _ACEOF
26642 # Transform confdefs.h into an awk script `defines.awk', embedded as
26643 # here-document in config.status, that substitutes the proper values into
26644 # config.h.in to produce config.h.
26646 # Create a delimiter string that does not exist in confdefs.h, to ease
26647 # handling of long lines.
26648 ac_delim='%!_!# '
26649 for ac_last_try in false false :; do
26650 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26651 if test -z "$ac_t"; then
26652 break
26653 elif $ac_last_try; then
26654 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26655 else
26656 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26658 done
26660 # For the awk script, D is an array of macro values keyed by name,
26661 # likewise P contains macro parameters if any. Preserve backslash
26662 # newline sequences.
26664 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26665 sed -n '
26666 s/.\{148\}/&'"$ac_delim"'/g
26667 t rset
26668 :rset
26669 s/^[ ]*#[ ]*define[ ][ ]*/ /
26670 t def
26672 :def
26673 s/\\$//
26674 t bsnl
26675 s/["\\]/\\&/g
26676 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26677 D["\1"]=" \3"/p
26678 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26680 :bsnl
26681 s/["\\]/\\&/g
26682 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26683 D["\1"]=" \3\\\\\\n"\\/p
26684 t cont
26685 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26686 t cont
26688 :cont
26690 s/.\{148\}/&'"$ac_delim"'/g
26691 t clear
26692 :clear
26693 s/\\$//
26694 t bsnlc
26695 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26697 :bsnlc
26698 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26699 b cont
26700 ' <confdefs.h | sed '
26701 s/'"$ac_delim"'/"\\\
26702 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26705 for (key in D) D_is_set[key] = 1
26706 FS = "\a"
26708 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26709 line = \$ 0
26710 split(line, arg, " ")
26711 if (arg[1] == "#") {
26712 defundef = arg[2]
26713 mac1 = arg[3]
26714 } else {
26715 defundef = substr(arg[1], 2)
26716 mac1 = arg[2]
26718 split(mac1, mac2, "(") #)
26719 macro = mac2[1]
26720 prefix = substr(line, 1, index(line, defundef) - 1)
26721 if (D_is_set[macro]) {
26722 # Preserve the white space surrounding the "#".
26723 print prefix "define", macro P[macro] D[macro]
26724 next
26725 } else {
26726 # Replace #undef with comments. This is necessary, for example,
26727 # in the case of _POSIX_SOURCE, which is predefined and required
26728 # on some systems where configure will not decide to define it.
26729 if (defundef == "undef") {
26730 print "/*", prefix defundef, macro, "*/"
26731 next
26735 { print }
26736 _ACAWK
26737 _ACEOF
26738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26739 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26740 fi # test -n "$CONFIG_HEADERS"
26743 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
26744 shift
26745 for ac_tag
26747 case $ac_tag in
26748 :[FHLC]) ac_mode=$ac_tag; continue;;
26749 esac
26750 case $ac_mode$ac_tag in
26751 :[FHL]*:*);;
26752 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26753 :[FH]-) ac_tag=-:-;;
26754 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26755 esac
26756 ac_save_IFS=$IFS
26757 IFS=:
26758 set x $ac_tag
26759 IFS=$ac_save_IFS
26760 shift
26761 ac_file=$1
26762 shift
26764 case $ac_mode in
26765 :L) ac_source=$1;;
26766 :[FH])
26767 ac_file_inputs=
26768 for ac_f
26770 case $ac_f in
26771 -) ac_f="$tmp/stdin";;
26772 *) # Look for the file first in the build tree, then in the source tree
26773 # (if the path is not absolute). The absolute path cannot be DOS-style,
26774 # because $ac_f cannot contain `:'.
26775 test -f "$ac_f" ||
26776 case $ac_f in
26777 [\\/$]*) false;;
26778 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26779 esac ||
26780 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26781 esac
26782 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26783 as_fn_append ac_file_inputs " '$ac_f'"
26784 done
26786 # Let's still pretend it is `configure' which instantiates (i.e., don't
26787 # use $as_me), people would be surprised to read:
26788 # /* config.h. Generated by config.status. */
26789 configure_input='Generated from '`
26790 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26791 `' by configure.'
26792 if test x"$ac_file" != x-; then
26793 configure_input="$ac_file. $configure_input"
26794 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26795 $as_echo "$as_me: creating $ac_file" >&6;}
26797 # Neutralize special characters interpreted by sed in replacement strings.
26798 case $configure_input in #(
26799 *\&* | *\|* | *\\* )
26800 ac_sed_conf_input=`$as_echo "$configure_input" |
26801 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26802 *) ac_sed_conf_input=$configure_input;;
26803 esac
26805 case $ac_tag in
26806 *:-:* | *:-) cat >"$tmp/stdin" \
26807 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26808 esac
26810 esac
26812 ac_dir=`$as_dirname -- "$ac_file" ||
26813 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26814 X"$ac_file" : 'X\(//\)[^/]' \| \
26815 X"$ac_file" : 'X\(//\)$' \| \
26816 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26817 $as_echo X"$ac_file" |
26818 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26819 s//\1/
26822 /^X\(\/\/\)[^/].*/{
26823 s//\1/
26826 /^X\(\/\/\)$/{
26827 s//\1/
26830 /^X\(\/\).*/{
26831 s//\1/
26834 s/.*/./; q'`
26835 as_dir="$ac_dir"; as_fn_mkdir_p
26836 ac_builddir=.
26838 case "$ac_dir" in
26839 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26841 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26842 # A ".." for each directory in $ac_dir_suffix.
26843 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26844 case $ac_top_builddir_sub in
26845 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26846 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26847 esac ;;
26848 esac
26849 ac_abs_top_builddir=$ac_pwd
26850 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26851 # for backward compatibility:
26852 ac_top_builddir=$ac_top_build_prefix
26854 case $srcdir in
26855 .) # We are building in place.
26856 ac_srcdir=.
26857 ac_top_srcdir=$ac_top_builddir_sub
26858 ac_abs_top_srcdir=$ac_pwd ;;
26859 [\\/]* | ?:[\\/]* ) # Absolute name.
26860 ac_srcdir=$srcdir$ac_dir_suffix;
26861 ac_top_srcdir=$srcdir
26862 ac_abs_top_srcdir=$srcdir ;;
26863 *) # Relative name.
26864 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26865 ac_top_srcdir=$ac_top_build_prefix$srcdir
26866 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26867 esac
26868 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26871 case $ac_mode in
26874 # CONFIG_FILE
26877 case $INSTALL in
26878 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26879 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26880 esac
26881 ac_MKDIR_P=$MKDIR_P
26882 case $MKDIR_P in
26883 [\\/$]* | ?:[\\/]* ) ;;
26884 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26885 esac
26886 _ACEOF
26888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26889 # If the template does not know about datarootdir, expand it.
26890 # FIXME: This hack should be removed a few years after 2.60.
26891 ac_datarootdir_hack=; ac_datarootdir_seen=
26892 ac_sed_dataroot='
26893 /datarootdir/ {
26897 /@datadir@/p
26898 /@docdir@/p
26899 /@infodir@/p
26900 /@localedir@/p
26901 /@mandir@/p'
26902 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26903 *datarootdir*) ac_datarootdir_seen=yes;;
26904 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26906 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26907 _ACEOF
26908 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26909 ac_datarootdir_hack='
26910 s&@datadir@&$datadir&g
26911 s&@docdir@&$docdir&g
26912 s&@infodir@&$infodir&g
26913 s&@localedir@&$localedir&g
26914 s&@mandir@&$mandir&g
26915 s&\\\${datarootdir}&$datarootdir&g' ;;
26916 esac
26917 _ACEOF
26919 # Neutralize VPATH when `$srcdir' = `.'.
26920 # Shell code in configure.ac might set extrasub.
26921 # FIXME: do we really want to maintain this feature?
26922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26923 ac_sed_extra="$ac_vpsub
26924 $extrasub
26925 _ACEOF
26926 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26928 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26929 s|@configure_input@|$ac_sed_conf_input|;t t
26930 s&@top_builddir@&$ac_top_builddir_sub&;t t
26931 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26932 s&@srcdir@&$ac_srcdir&;t t
26933 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26934 s&@top_srcdir@&$ac_top_srcdir&;t t
26935 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26936 s&@builddir@&$ac_builddir&;t t
26937 s&@abs_builddir@&$ac_abs_builddir&;t t
26938 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26939 s&@INSTALL@&$ac_INSTALL&;t t
26940 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26941 $ac_datarootdir_hack
26943 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26944 || as_fn_error "could not create $ac_file" "$LINENO" 5
26946 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26947 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26948 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26950 which seems to be undefined. Please make sure it is defined." >&5
26951 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26952 which seems to be undefined. Please make sure it is defined." >&2;}
26954 rm -f "$tmp/stdin"
26955 case $ac_file in
26956 -) cat "$tmp/out" && rm -f "$tmp/out";;
26957 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26958 esac \
26959 || as_fn_error "could not create $ac_file" "$LINENO" 5
26963 # CONFIG_HEADER
26965 if test x"$ac_file" != x-; then
26967 $as_echo "/* $configure_input */" \
26968 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26969 } >"$tmp/config.h" \
26970 || as_fn_error "could not create $ac_file" "$LINENO" 5
26971 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26972 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26973 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26974 else
26975 rm -f "$ac_file"
26976 mv "$tmp/config.h" "$ac_file" \
26977 || as_fn_error "could not create $ac_file" "$LINENO" 5
26979 else
26980 $as_echo "/* $configure_input */" \
26981 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26982 || as_fn_error "could not create -" "$LINENO" 5
26984 # Compute "$ac_file"'s index in $config_headers.
26985 _am_arg="$ac_file"
26986 _am_stamp_count=1
26987 for _am_header in $config_headers :; do
26988 case $_am_header in
26989 $_am_arg | $_am_arg:* )
26990 break ;;
26992 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26993 esac
26994 done
26995 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26996 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26997 X"$_am_arg" : 'X\(//\)[^/]' \| \
26998 X"$_am_arg" : 'X\(//\)$' \| \
26999 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27000 $as_echo X"$_am_arg" |
27001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27002 s//\1/
27005 /^X\(\/\/\)[^/].*/{
27006 s//\1/
27009 /^X\(\/\/\)$/{
27010 s//\1/
27013 /^X\(\/\).*/{
27014 s//\1/
27017 s/.*/./; q'`/stamp-h$_am_stamp_count
27021 # CONFIG_LINK
27024 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
27026 else
27027 # Prefer the file from the source tree if names are identical.
27028 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
27029 ac_source=$srcdir/$ac_source
27032 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
27033 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
27035 if test ! -r "$ac_source"; then
27036 as_fn_error "$ac_source: file not found" "$LINENO" 5
27038 rm -f "$ac_file"
27040 # Try a relative symlink, then a hard link, then a copy.
27041 case $srcdir in
27042 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
27043 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
27044 esac
27045 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
27046 ln "$ac_source" "$ac_file" 2>/dev/null ||
27047 cp -p "$ac_source" "$ac_file" ||
27048 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
27051 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27052 $as_echo "$as_me: executing $ac_file commands" >&6;}
27054 esac
27057 case $ac_file$ac_mode in
27058 "default-1":C)
27059 # Only add multilib support code if we just rebuilt the top-level
27060 # Makefile.
27061 case " $CONFIG_FILES " in
27062 *" Makefile "*)
27063 ac_file=Makefile . ${multi_basedir}/config-ml.in
27065 esac ;;
27066 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27067 # Autoconf 2.62 quotes --file arguments for eval, but not when files
27068 # are listed without --file. Let's play safe and only enable the eval
27069 # if we detect the quoting.
27070 case $CONFIG_FILES in
27071 *\'*) eval set x "$CONFIG_FILES" ;;
27072 *) set x $CONFIG_FILES ;;
27073 esac
27074 shift
27075 for mf
27077 # Strip MF so we end up with the name of the file.
27078 mf=`echo "$mf" | sed -e 's/:.*$//'`
27079 # Check whether this is an Automake generated Makefile or not.
27080 # We used to match only the files named `Makefile.in', but
27081 # some people rename them; so instead we look at the file content.
27082 # Grep'ing the first line is not enough: some people post-process
27083 # each Makefile.in and add a new line on top of each file to say so.
27084 # Grep'ing the whole file is not good either: AIX grep has a line
27085 # limit of 2048, but all sed's we know have understand at least 4000.
27086 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27087 dirpart=`$as_dirname -- "$mf" ||
27088 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27089 X"$mf" : 'X\(//\)[^/]' \| \
27090 X"$mf" : 'X\(//\)$' \| \
27091 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27092 $as_echo X"$mf" |
27093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27094 s//\1/
27097 /^X\(\/\/\)[^/].*/{
27098 s//\1/
27101 /^X\(\/\/\)$/{
27102 s//\1/
27105 /^X\(\/\).*/{
27106 s//\1/
27109 s/.*/./; q'`
27110 else
27111 continue
27113 # Extract the definition of DEPDIR, am__include, and am__quote
27114 # from the Makefile without running `make'.
27115 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27116 test -z "$DEPDIR" && continue
27117 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27118 test -z "am__include" && continue
27119 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27120 # When using ansi2knr, U may be empty or an underscore; expand it
27121 U=`sed -n 's/^U = //p' < "$mf"`
27122 # Find all dependency output files, they are included files with
27123 # $(DEPDIR) in their names. We invoke sed twice because it is the
27124 # simplest approach to changing $(DEPDIR) to its actual value in the
27125 # expansion.
27126 for file in `sed -n "
27127 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27128 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27129 # Make sure the directory exists.
27130 test -f "$dirpart/$file" && continue
27131 fdir=`$as_dirname -- "$file" ||
27132 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27133 X"$file" : 'X\(//\)[^/]' \| \
27134 X"$file" : 'X\(//\)$' \| \
27135 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27136 $as_echo X"$file" |
27137 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27138 s//\1/
27141 /^X\(\/\/\)[^/].*/{
27142 s//\1/
27145 /^X\(\/\/\)$/{
27146 s//\1/
27149 /^X\(\/\).*/{
27150 s//\1/
27153 s/.*/./; q'`
27154 as_dir=$dirpart/$fdir; as_fn_mkdir_p
27155 # echo "creating $dirpart/$file"
27156 echo '# dummy' > "$dirpart/$file"
27157 done
27158 done
27161 "libtool":C)
27163 # See if we are running on zsh, and set the options which allow our
27164 # commands through without removal of \ escapes.
27165 if test -n "${ZSH_VERSION+set}" ; then
27166 setopt NO_GLOB_SUBST
27169 cfgfile="${ofile}T"
27170 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27171 $RM "$cfgfile"
27173 cat <<_LT_EOF >> "$cfgfile"
27174 #! $SHELL
27176 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
27177 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
27178 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27179 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
27181 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
27182 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
27183 # Written by Gordon Matzigkeit, 1996
27185 # This file is part of GNU Libtool.
27187 # GNU Libtool is free software; you can redistribute it and/or
27188 # modify it under the terms of the GNU General Public License as
27189 # published by the Free Software Foundation; either version 2 of
27190 # the License, or (at your option) any later version.
27192 # As a special exception to the GNU General Public License,
27193 # if you distribute this file as part of a program or library that
27194 # is built using GNU Libtool, you may include this file under the
27195 # same distribution terms that you use for the rest of that program.
27197 # GNU Libtool is distributed in the hope that it will be useful,
27198 # but WITHOUT ANY WARRANTY; without even the implied warranty of
27199 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27200 # GNU General Public License for more details.
27202 # You should have received a copy of the GNU General Public License
27203 # along with GNU Libtool; see the file COPYING. If not, a copy
27204 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27205 # obtained by writing to the Free Software Foundation, Inc.,
27206 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27209 # The names of the tagged configurations supported by this script.
27210 available_tags="CXX GCJ "
27212 # ### BEGIN LIBTOOL CONFIG
27214 # Which release of libtool.m4 was used?
27215 macro_version=$macro_version
27216 macro_revision=$macro_revision
27218 # Whether or not to build shared libraries.
27219 build_libtool_libs=$enable_shared
27221 # Whether or not to build static libraries.
27222 build_old_libs=$enable_static
27224 # What type of objects to build.
27225 pic_mode=$pic_mode
27227 # Whether or not to optimize for fast installation.
27228 fast_install=$enable_fast_install
27230 # Shell to use when invoking shell scripts.
27231 SHELL=$lt_SHELL
27233 # An echo program that protects backslashes.
27234 ECHO=$lt_ECHO
27236 # The host system.
27237 host_alias=$host_alias
27238 host=$host
27239 host_os=$host_os
27241 # The build system.
27242 build_alias=$build_alias
27243 build=$build
27244 build_os=$build_os
27246 # A sed program that does not truncate output.
27247 SED=$lt_SED
27249 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27250 Xsed="\$SED -e 1s/^X//"
27252 # A grep program that handles long lines.
27253 GREP=$lt_GREP
27255 # An ERE matcher.
27256 EGREP=$lt_EGREP
27258 # A literal string matcher.
27259 FGREP=$lt_FGREP
27261 # A BSD- or MS-compatible name lister.
27262 NM=$lt_NM
27264 # Whether we need soft or hard links.
27265 LN_S=$lt_LN_S
27267 # What is the maximum length of a command?
27268 max_cmd_len=$max_cmd_len
27270 # Object file suffix (normally "o").
27271 objext=$ac_objext
27273 # Executable file suffix (normally "").
27274 exeext=$exeext
27276 # whether the shell understands "unset".
27277 lt_unset=$lt_unset
27279 # turn spaces into newlines.
27280 SP2NL=$lt_lt_SP2NL
27282 # turn newlines into spaces.
27283 NL2SP=$lt_lt_NL2SP
27285 # An object symbol dumper.
27286 OBJDUMP=$lt_OBJDUMP
27288 # Method to check whether dependent libraries are shared objects.
27289 deplibs_check_method=$lt_deplibs_check_method
27291 # Command to use when deplibs_check_method == "file_magic".
27292 file_magic_cmd=$lt_file_magic_cmd
27294 # The archiver.
27295 AR=$lt_AR
27296 AR_FLAGS=$lt_AR_FLAGS
27298 # A symbol stripping program.
27299 STRIP=$lt_STRIP
27301 # Commands used to install an old-style archive.
27302 RANLIB=$lt_RANLIB
27303 old_postinstall_cmds=$lt_old_postinstall_cmds
27304 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27306 # Whether to use a lock for old archive extraction.
27307 lock_old_archive_extraction=$lock_old_archive_extraction
27309 # A C compiler.
27310 LTCC=$lt_CC
27312 # LTCC compiler flags.
27313 LTCFLAGS=$lt_CFLAGS
27315 # Take the output of nm and produce a listing of raw symbols and C names.
27316 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27318 # Transform the output of nm in a proper C declaration.
27319 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27321 # Transform the output of nm in a C name address pair.
27322 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27324 # Transform the output of nm in a C name address pair when lib prefix is needed.
27325 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27327 # The name of the directory that contains temporary libtool files.
27328 objdir=$objdir
27330 # Used to examine libraries when file_magic_cmd begins with "file".
27331 MAGIC_CMD=$MAGIC_CMD
27333 # Must we lock files when doing compilation?
27334 need_locks=$lt_need_locks
27336 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27337 DSYMUTIL=$lt_DSYMUTIL
27339 # Tool to change global to local symbols on Mac OS X.
27340 NMEDIT=$lt_NMEDIT
27342 # Tool to manipulate fat objects and archives on Mac OS X.
27343 LIPO=$lt_LIPO
27345 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27346 OTOOL=$lt_OTOOL
27348 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27349 OTOOL64=$lt_OTOOL64
27351 # Old archive suffix (normally "a").
27352 libext=$libext
27354 # Shared library suffix (normally ".so").
27355 shrext_cmds=$lt_shrext_cmds
27357 # The commands to extract the exported symbol list from a shared archive.
27358 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27360 # Variables whose values should be saved in libtool wrapper scripts and
27361 # restored at link time.
27362 variables_saved_for_relink=$lt_variables_saved_for_relink
27364 # Do we need the "lib" prefix for modules?
27365 need_lib_prefix=$need_lib_prefix
27367 # Do we need a version for libraries?
27368 need_version=$need_version
27370 # Library versioning type.
27371 version_type=$version_type
27373 # Shared library runtime path variable.
27374 runpath_var=$runpath_var
27376 # Shared library path variable.
27377 shlibpath_var=$shlibpath_var
27379 # Is shlibpath searched before the hard-coded library search path?
27380 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27382 # Format of library name prefix.
27383 libname_spec=$lt_libname_spec
27385 # List of archive names. First name is the real one, the rest are links.
27386 # The last name is the one that the linker finds with -lNAME
27387 library_names_spec=$lt_library_names_spec
27389 # The coded name of the library, if different from the real name.
27390 soname_spec=$lt_soname_spec
27392 # Permission mode override for installation of shared libraries.
27393 install_override_mode=$lt_install_override_mode
27395 # Command to use after installation of a shared archive.
27396 postinstall_cmds=$lt_postinstall_cmds
27398 # Command to use after uninstallation of a shared archive.
27399 postuninstall_cmds=$lt_postuninstall_cmds
27401 # Commands used to finish a libtool library installation in a directory.
27402 finish_cmds=$lt_finish_cmds
27404 # As "finish_cmds", except a single script fragment to be evaled but
27405 # not shown.
27406 finish_eval=$lt_finish_eval
27408 # Whether we should hardcode library paths into libraries.
27409 hardcode_into_libs=$hardcode_into_libs
27411 # Compile-time system search path for libraries.
27412 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27414 # Run-time system search path for libraries.
27415 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27417 # Whether dlopen is supported.
27418 dlopen_support=$enable_dlopen
27420 # Whether dlopen of programs is supported.
27421 dlopen_self=$enable_dlopen_self
27423 # Whether dlopen of statically linked programs is supported.
27424 dlopen_self_static=$enable_dlopen_self_static
27426 # Commands to strip libraries.
27427 old_striplib=$lt_old_striplib
27428 striplib=$lt_striplib
27431 # The linker used to build libraries.
27432 LD=$lt_LD
27434 # How to create reloadable object files.
27435 reload_flag=$lt_reload_flag
27436 reload_cmds=$lt_reload_cmds
27438 # Commands used to build an old-style archive.
27439 old_archive_cmds=$lt_old_archive_cmds
27441 # A language specific compiler.
27442 CC=$lt_compiler
27444 # Is the compiler the GNU compiler?
27445 with_gcc=$GCC
27447 # Compiler flag to turn off builtin functions.
27448 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27450 # How to pass a linker flag through the compiler.
27451 wl=$lt_lt_prog_compiler_wl
27453 # Additional compiler flags for building library objects.
27454 pic_flag=$lt_lt_prog_compiler_pic
27456 # Compiler flag to prevent dynamic linking.
27457 link_static_flag=$lt_lt_prog_compiler_static
27459 # Does compiler simultaneously support -c and -o options?
27460 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27462 # Whether or not to add -lc for building shared libraries.
27463 build_libtool_need_lc=$archive_cmds_need_lc
27465 # Whether or not to disallow shared libs when runtime libs are static.
27466 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27468 # Compiler flag to allow reflexive dlopens.
27469 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27471 # Compiler flag to generate shared objects directly from archives.
27472 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27474 # Whether the compiler copes with passing no objects directly.
27475 compiler_needs_object=$lt_compiler_needs_object
27477 # Create an old-style archive from a shared archive.
27478 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27480 # Create a temporary old-style archive to link instead of a shared archive.
27481 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27483 # Commands used to build a shared archive.
27484 archive_cmds=$lt_archive_cmds
27485 archive_expsym_cmds=$lt_archive_expsym_cmds
27487 # Commands used to build a loadable module if different from building
27488 # a shared archive.
27489 module_cmds=$lt_module_cmds
27490 module_expsym_cmds=$lt_module_expsym_cmds
27492 # Whether we are building with GNU ld or not.
27493 with_gnu_ld=$lt_with_gnu_ld
27495 # Flag that allows shared libraries with undefined symbols to be built.
27496 allow_undefined_flag=$lt_allow_undefined_flag
27498 # Flag that enforces no undefined symbols.
27499 no_undefined_flag=$lt_no_undefined_flag
27501 # Flag to hardcode \$libdir into a binary during linking.
27502 # This must work even if \$libdir does not exist
27503 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27505 # If ld is used when linking, flag to hardcode \$libdir into a binary
27506 # during linking. This must work even if \$libdir does not exist.
27507 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
27509 # Whether we need a single "-rpath" flag with a separated argument.
27510 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27512 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27513 # DIR into the resulting binary.
27514 hardcode_direct=$hardcode_direct
27516 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27517 # DIR into the resulting binary and the resulting library dependency is
27518 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27519 # library is relocated.
27520 hardcode_direct_absolute=$hardcode_direct_absolute
27522 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27523 # into the resulting binary.
27524 hardcode_minus_L=$hardcode_minus_L
27526 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27527 # into the resulting binary.
27528 hardcode_shlibpath_var=$hardcode_shlibpath_var
27530 # Set to "yes" if building a shared library automatically hardcodes DIR
27531 # into the library and all subsequent libraries and executables linked
27532 # against it.
27533 hardcode_automatic=$hardcode_automatic
27535 # Set to yes if linker adds runtime paths of dependent libraries
27536 # to runtime path list.
27537 inherit_rpath=$inherit_rpath
27539 # Whether libtool must link a program against all its dependency libraries.
27540 link_all_deplibs=$link_all_deplibs
27542 # Fix the shell variable \$srcfile for the compiler.
27543 fix_srcfile_path=$lt_fix_srcfile_path
27545 # Set to "yes" if exported symbols are required.
27546 always_export_symbols=$always_export_symbols
27548 # The commands to list exported symbols.
27549 export_symbols_cmds=$lt_export_symbols_cmds
27551 # Symbols that should not be listed in the preloaded symbols.
27552 exclude_expsyms=$lt_exclude_expsyms
27554 # Symbols that must always be exported.
27555 include_expsyms=$lt_include_expsyms
27557 # Commands necessary for linking programs (against libraries) with templates.
27558 prelink_cmds=$lt_prelink_cmds
27560 # Specify filename containing input files.
27561 file_list_spec=$lt_file_list_spec
27563 # How to hardcode a shared library path into an executable.
27564 hardcode_action=$hardcode_action
27566 # The directories searched by this compiler when creating a shared library.
27567 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27569 # Dependencies to place before and after the objects being linked to
27570 # create a shared library.
27571 predep_objects=$lt_predep_objects
27572 postdep_objects=$lt_postdep_objects
27573 predeps=$lt_predeps
27574 postdeps=$lt_postdeps
27576 # The library search path used internally by the compiler when linking
27577 # a shared library.
27578 compiler_lib_search_path=$lt_compiler_lib_search_path
27580 # ### END LIBTOOL CONFIG
27582 _LT_EOF
27584 case $host_os in
27585 aix3*)
27586 cat <<\_LT_EOF >> "$cfgfile"
27587 # AIX sometimes has problems with the GCC collect2 program. For some
27588 # reason, if we set the COLLECT_NAMES environment variable, the problems
27589 # vanish in a puff of smoke.
27590 if test "X${COLLECT_NAMES+set}" != Xset; then
27591 COLLECT_NAMES=
27592 export COLLECT_NAMES
27594 _LT_EOF
27596 esac
27599 ltmain="$ac_aux_dir/ltmain.sh"
27602 # We use sed instead of cat because bash on DJGPP gets confused if
27603 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27604 # text mode, it properly converts lines to CR/LF. This bash problem
27605 # is reportedly fixed, but why not run on old versions too?
27606 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27607 || (rm -f "$cfgfile"; exit 1)
27609 case $xsi_shell in
27610 yes)
27611 cat << \_LT_EOF >> "$cfgfile"
27613 # func_dirname file append nondir_replacement
27614 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27615 # otherwise set result to NONDIR_REPLACEMENT.
27616 func_dirname ()
27618 case ${1} in
27619 */*) func_dirname_result="${1%/*}${2}" ;;
27620 * ) func_dirname_result="${3}" ;;
27621 esac
27624 # func_basename file
27625 func_basename ()
27627 func_basename_result="${1##*/}"
27630 # func_dirname_and_basename file append nondir_replacement
27631 # perform func_basename and func_dirname in a single function
27632 # call:
27633 # dirname: Compute the dirname of FILE. If nonempty,
27634 # add APPEND to the result, otherwise set result
27635 # to NONDIR_REPLACEMENT.
27636 # value returned in "$func_dirname_result"
27637 # basename: Compute filename of FILE.
27638 # value retuned in "$func_basename_result"
27639 # Implementation must be kept synchronized with func_dirname
27640 # and func_basename. For efficiency, we do not delegate to
27641 # those functions but instead duplicate the functionality here.
27642 func_dirname_and_basename ()
27644 case ${1} in
27645 */*) func_dirname_result="${1%/*}${2}" ;;
27646 * ) func_dirname_result="${3}" ;;
27647 esac
27648 func_basename_result="${1##*/}"
27651 # func_stripname prefix suffix name
27652 # strip PREFIX and SUFFIX off of NAME.
27653 # PREFIX and SUFFIX must not contain globbing or regex special
27654 # characters, hashes, percent signs, but SUFFIX may contain a leading
27655 # dot (in which case that matches only a dot).
27656 func_stripname ()
27658 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27659 # positional parameters, so assign one to ordinary parameter first.
27660 func_stripname_result=${3}
27661 func_stripname_result=${func_stripname_result#"${1}"}
27662 func_stripname_result=${func_stripname_result%"${2}"}
27665 # func_opt_split
27666 func_opt_split ()
27668 func_opt_split_opt=${1%%=*}
27669 func_opt_split_arg=${1#*=}
27672 # func_lo2o object
27673 func_lo2o ()
27675 case ${1} in
27676 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27677 *) func_lo2o_result=${1} ;;
27678 esac
27681 # func_xform libobj-or-source
27682 func_xform ()
27684 func_xform_result=${1%.*}.lo
27687 # func_arith arithmetic-term...
27688 func_arith ()
27690 func_arith_result=$(( $* ))
27693 # func_len string
27694 # STRING may not start with a hyphen.
27695 func_len ()
27697 func_len_result=${#1}
27700 _LT_EOF
27702 *) # Bourne compatible functions.
27703 cat << \_LT_EOF >> "$cfgfile"
27705 # func_dirname file append nondir_replacement
27706 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27707 # otherwise set result to NONDIR_REPLACEMENT.
27708 func_dirname ()
27710 # Extract subdirectory from the argument.
27711 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
27712 if test "X$func_dirname_result" = "X${1}"; then
27713 func_dirname_result="${3}"
27714 else
27715 func_dirname_result="$func_dirname_result${2}"
27719 # func_basename file
27720 func_basename ()
27722 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
27726 # func_stripname prefix suffix name
27727 # strip PREFIX and SUFFIX off of NAME.
27728 # PREFIX and SUFFIX must not contain globbing or regex special
27729 # characters, hashes, percent signs, but SUFFIX may contain a leading
27730 # dot (in which case that matches only a dot).
27731 # func_strip_suffix prefix name
27732 func_stripname ()
27734 case ${2} in
27735 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
27736 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
27737 esac
27740 # sed scripts:
27741 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27742 my_sed_long_arg='1s/^-[^=]*=//'
27744 # func_opt_split
27745 func_opt_split ()
27747 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
27748 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
27751 # func_lo2o object
27752 func_lo2o ()
27754 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
27757 # func_xform libobj-or-source
27758 func_xform ()
27760 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
27763 # func_arith arithmetic-term...
27764 func_arith ()
27766 func_arith_result=`expr "$@"`
27769 # func_len string
27770 # STRING may not start with a hyphen.
27771 func_len ()
27773 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27776 _LT_EOF
27777 esac
27779 case $lt_shell_append in
27780 yes)
27781 cat << \_LT_EOF >> "$cfgfile"
27783 # func_append var value
27784 # Append VALUE to the end of shell variable VAR.
27785 func_append ()
27787 eval "$1+=\$2"
27789 _LT_EOF
27792 cat << \_LT_EOF >> "$cfgfile"
27794 # func_append var value
27795 # Append VALUE to the end of shell variable VAR.
27796 func_append ()
27798 eval "$1=\$$1\$2"
27801 _LT_EOF
27803 esac
27806 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27807 || (rm -f "$cfgfile"; exit 1)
27809 mv -f "$cfgfile" "$ofile" ||
27810 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27811 chmod +x "$ofile"
27814 cat <<_LT_EOF >> "$ofile"
27816 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27818 # The linker used to build libraries.
27819 LD=$lt_LD_CXX
27821 # How to create reloadable object files.
27822 reload_flag=$lt_reload_flag_CXX
27823 reload_cmds=$lt_reload_cmds_CXX
27825 # Commands used to build an old-style archive.
27826 old_archive_cmds=$lt_old_archive_cmds_CXX
27828 # A language specific compiler.
27829 CC=$lt_compiler_CXX
27831 # Is the compiler the GNU compiler?
27832 with_gcc=$GCC_CXX
27834 # Compiler flag to turn off builtin functions.
27835 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27837 # How to pass a linker flag through the compiler.
27838 wl=$lt_lt_prog_compiler_wl_CXX
27840 # Additional compiler flags for building library objects.
27841 pic_flag=$lt_lt_prog_compiler_pic_CXX
27843 # Compiler flag to prevent dynamic linking.
27844 link_static_flag=$lt_lt_prog_compiler_static_CXX
27846 # Does compiler simultaneously support -c and -o options?
27847 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27849 # Whether or not to add -lc for building shared libraries.
27850 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27852 # Whether or not to disallow shared libs when runtime libs are static.
27853 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27855 # Compiler flag to allow reflexive dlopens.
27856 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27858 # Compiler flag to generate shared objects directly from archives.
27859 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27861 # Whether the compiler copes with passing no objects directly.
27862 compiler_needs_object=$lt_compiler_needs_object_CXX
27864 # Create an old-style archive from a shared archive.
27865 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27867 # Create a temporary old-style archive to link instead of a shared archive.
27868 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27870 # Commands used to build a shared archive.
27871 archive_cmds=$lt_archive_cmds_CXX
27872 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27874 # Commands used to build a loadable module if different from building
27875 # a shared archive.
27876 module_cmds=$lt_module_cmds_CXX
27877 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27879 # Whether we are building with GNU ld or not.
27880 with_gnu_ld=$lt_with_gnu_ld_CXX
27882 # Flag that allows shared libraries with undefined symbols to be built.
27883 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27885 # Flag that enforces no undefined symbols.
27886 no_undefined_flag=$lt_no_undefined_flag_CXX
27888 # Flag to hardcode \$libdir into a binary during linking.
27889 # This must work even if \$libdir does not exist
27890 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27892 # If ld is used when linking, flag to hardcode \$libdir into a binary
27893 # during linking. This must work even if \$libdir does not exist.
27894 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27896 # Whether we need a single "-rpath" flag with a separated argument.
27897 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27899 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27900 # DIR into the resulting binary.
27901 hardcode_direct=$hardcode_direct_CXX
27903 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27904 # DIR into the resulting binary and the resulting library dependency is
27905 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27906 # library is relocated.
27907 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27909 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27910 # into the resulting binary.
27911 hardcode_minus_L=$hardcode_minus_L_CXX
27913 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27914 # into the resulting binary.
27915 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27917 # Set to "yes" if building a shared library automatically hardcodes DIR
27918 # into the library and all subsequent libraries and executables linked
27919 # against it.
27920 hardcode_automatic=$hardcode_automatic_CXX
27922 # Set to yes if linker adds runtime paths of dependent libraries
27923 # to runtime path list.
27924 inherit_rpath=$inherit_rpath_CXX
27926 # Whether libtool must link a program against all its dependency libraries.
27927 link_all_deplibs=$link_all_deplibs_CXX
27929 # Fix the shell variable \$srcfile for the compiler.
27930 fix_srcfile_path=$lt_fix_srcfile_path_CXX
27932 # Set to "yes" if exported symbols are required.
27933 always_export_symbols=$always_export_symbols_CXX
27935 # The commands to list exported symbols.
27936 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27938 # Symbols that should not be listed in the preloaded symbols.
27939 exclude_expsyms=$lt_exclude_expsyms_CXX
27941 # Symbols that must always be exported.
27942 include_expsyms=$lt_include_expsyms_CXX
27944 # Commands necessary for linking programs (against libraries) with templates.
27945 prelink_cmds=$lt_prelink_cmds_CXX
27947 # Specify filename containing input files.
27948 file_list_spec=$lt_file_list_spec_CXX
27950 # How to hardcode a shared library path into an executable.
27951 hardcode_action=$hardcode_action_CXX
27953 # The directories searched by this compiler when creating a shared library.
27954 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27956 # Dependencies to place before and after the objects being linked to
27957 # create a shared library.
27958 predep_objects=$lt_predep_objects_CXX
27959 postdep_objects=$lt_postdep_objects_CXX
27960 predeps=$lt_predeps_CXX
27961 postdeps=$lt_postdeps_CXX
27963 # The library search path used internally by the compiler when linking
27964 # a shared library.
27965 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27967 # ### END LIBTOOL TAG CONFIG: CXX
27968 _LT_EOF
27971 cat <<_LT_EOF >> "$ofile"
27973 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
27975 # The linker used to build libraries.
27976 LD=$lt_LD_GCJ
27978 # How to create reloadable object files.
27979 reload_flag=$lt_reload_flag_GCJ
27980 reload_cmds=$lt_reload_cmds_GCJ
27982 # Commands used to build an old-style archive.
27983 old_archive_cmds=$lt_old_archive_cmds_GCJ
27985 # A language specific compiler.
27986 CC=$lt_compiler_GCJ
27988 # Is the compiler the GNU compiler?
27989 with_gcc=$GCC_GCJ
27991 # Compiler flag to turn off builtin functions.
27992 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
27994 # How to pass a linker flag through the compiler.
27995 wl=$lt_lt_prog_compiler_wl_GCJ
27997 # Additional compiler flags for building library objects.
27998 pic_flag=$lt_lt_prog_compiler_pic_GCJ
28000 # Compiler flag to prevent dynamic linking.
28001 link_static_flag=$lt_lt_prog_compiler_static_GCJ
28003 # Does compiler simultaneously support -c and -o options?
28004 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
28006 # Whether or not to add -lc for building shared libraries.
28007 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
28009 # Whether or not to disallow shared libs when runtime libs are static.
28010 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
28012 # Compiler flag to allow reflexive dlopens.
28013 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
28015 # Compiler flag to generate shared objects directly from archives.
28016 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
28018 # Whether the compiler copes with passing no objects directly.
28019 compiler_needs_object=$lt_compiler_needs_object_GCJ
28021 # Create an old-style archive from a shared archive.
28022 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
28024 # Create a temporary old-style archive to link instead of a shared archive.
28025 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
28027 # Commands used to build a shared archive.
28028 archive_cmds=$lt_archive_cmds_GCJ
28029 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
28031 # Commands used to build a loadable module if different from building
28032 # a shared archive.
28033 module_cmds=$lt_module_cmds_GCJ
28034 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
28036 # Whether we are building with GNU ld or not.
28037 with_gnu_ld=$lt_with_gnu_ld_GCJ
28039 # Flag that allows shared libraries with undefined symbols to be built.
28040 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
28042 # Flag that enforces no undefined symbols.
28043 no_undefined_flag=$lt_no_undefined_flag_GCJ
28045 # Flag to hardcode \$libdir into a binary during linking.
28046 # This must work even if \$libdir does not exist
28047 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
28049 # If ld is used when linking, flag to hardcode \$libdir into a binary
28050 # during linking. This must work even if \$libdir does not exist.
28051 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
28053 # Whether we need a single "-rpath" flag with a separated argument.
28054 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
28056 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28057 # DIR into the resulting binary.
28058 hardcode_direct=$hardcode_direct_GCJ
28060 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28061 # DIR into the resulting binary and the resulting library dependency is
28062 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28063 # library is relocated.
28064 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
28066 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28067 # into the resulting binary.
28068 hardcode_minus_L=$hardcode_minus_L_GCJ
28070 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28071 # into the resulting binary.
28072 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
28074 # Set to "yes" if building a shared library automatically hardcodes DIR
28075 # into the library and all subsequent libraries and executables linked
28076 # against it.
28077 hardcode_automatic=$hardcode_automatic_GCJ
28079 # Set to yes if linker adds runtime paths of dependent libraries
28080 # to runtime path list.
28081 inherit_rpath=$inherit_rpath_GCJ
28083 # Whether libtool must link a program against all its dependency libraries.
28084 link_all_deplibs=$link_all_deplibs_GCJ
28086 # Fix the shell variable \$srcfile for the compiler.
28087 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
28089 # Set to "yes" if exported symbols are required.
28090 always_export_symbols=$always_export_symbols_GCJ
28092 # The commands to list exported symbols.
28093 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
28095 # Symbols that should not be listed in the preloaded symbols.
28096 exclude_expsyms=$lt_exclude_expsyms_GCJ
28098 # Symbols that must always be exported.
28099 include_expsyms=$lt_include_expsyms_GCJ
28101 # Commands necessary for linking programs (against libraries) with templates.
28102 prelink_cmds=$lt_prelink_cmds_GCJ
28104 # Specify filename containing input files.
28105 file_list_spec=$lt_file_list_spec_GCJ
28107 # How to hardcode a shared library path into an executable.
28108 hardcode_action=$hardcode_action_GCJ
28110 # The directories searched by this compiler when creating a shared library.
28111 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
28113 # Dependencies to place before and after the objects being linked to
28114 # create a shared library.
28115 predep_objects=$lt_predep_objects_GCJ
28116 postdep_objects=$lt_postdep_objects_GCJ
28117 predeps=$lt_predeps_GCJ
28118 postdeps=$lt_postdeps_GCJ
28120 # The library search path used internally by the compiler when linking
28121 # a shared library.
28122 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
28124 # ### END LIBTOOL TAG CONFIG: GCJ
28125 _LT_EOF
28128 "scripts/jar":F) chmod +x scripts/jar ;;
28130 esac
28131 done # for ac_tag
28134 as_fn_exit 0
28135 _ACEOF
28136 ac_clean_files=$ac_clean_files_save
28138 test $ac_write_fail = 0 ||
28139 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28142 # configure is writing to config.log, and then calls config.status.
28143 # config.status does its own redirection, appending to config.log.
28144 # Unfortunately, on DOS this fails, as config.log is still kept open
28145 # by configure, so config.status won't be able to write to it; its
28146 # output is simply discarded. So we exec the FD to /dev/null,
28147 # effectively closing config.log, so it can be properly (re)opened and
28148 # appended to by config.status. When coming back to configure, we
28149 # need to make the FD available again.
28150 if test "$no_create" != yes; then
28151 ac_cs_success=:
28152 ac_config_status_args=
28153 test "$silent" = yes &&
28154 ac_config_status_args="$ac_config_status_args --quiet"
28155 exec 5>/dev/null
28156 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28157 exec 5>>config.log
28158 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28159 # would make configure fail if this is the last instruction.
28160 $ac_cs_success || as_fn_exit $?
28164 # CONFIG_SUBDIRS section.
28166 if test "$no_recursion" != yes; then
28168 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
28169 # so they do not pile up.
28170 ac_sub_configure_args=
28171 ac_prev=
28172 eval "set x $ac_configure_args"
28173 shift
28174 for ac_arg
28176 if test -n "$ac_prev"; then
28177 ac_prev=
28178 continue
28180 case $ac_arg in
28181 -cache-file | --cache-file | --cache-fil | --cache-fi \
28182 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
28183 ac_prev=cache_file ;;
28184 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
28185 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
28186 | --c=*)
28188 --config-cache | -C)
28190 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
28191 ac_prev=srcdir ;;
28192 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
28194 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
28195 ac_prev=prefix ;;
28196 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
28198 --disable-option-checking)
28201 case $ac_arg in
28202 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28203 esac
28204 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
28205 esac
28206 done
28208 # Always prepend --prefix to ensure using the same prefix
28209 # in subdir configurations.
28210 ac_arg="--prefix=$prefix"
28211 case $ac_arg in
28212 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28213 esac
28214 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
28216 # Pass --silent
28217 if test "$silent" = yes; then
28218 ac_sub_configure_args="--silent $ac_sub_configure_args"
28221 # Always prepend --disable-option-checking to silence warnings, since
28222 # different subdirs can have different --enable and --with options.
28223 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
28225 ac_popdir=`pwd`
28226 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
28228 # Do not complain, so a configure script can configure whichever
28229 # parts of a large source tree are present.
28230 test -d "$srcdir/$ac_dir" || continue
28232 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
28233 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
28234 $as_echo "$ac_msg" >&6
28235 as_dir="$ac_dir"; as_fn_mkdir_p
28236 ac_builddir=.
28238 case "$ac_dir" in
28239 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28241 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28242 # A ".." for each directory in $ac_dir_suffix.
28243 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28244 case $ac_top_builddir_sub in
28245 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28246 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28247 esac ;;
28248 esac
28249 ac_abs_top_builddir=$ac_pwd
28250 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28251 # for backward compatibility:
28252 ac_top_builddir=$ac_top_build_prefix
28254 case $srcdir in
28255 .) # We are building in place.
28256 ac_srcdir=.
28257 ac_top_srcdir=$ac_top_builddir_sub
28258 ac_abs_top_srcdir=$ac_pwd ;;
28259 [\\/]* | ?:[\\/]* ) # Absolute name.
28260 ac_srcdir=$srcdir$ac_dir_suffix;
28261 ac_top_srcdir=$srcdir
28262 ac_abs_top_srcdir=$srcdir ;;
28263 *) # Relative name.
28264 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28265 ac_top_srcdir=$ac_top_build_prefix$srcdir
28266 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28267 esac
28268 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28271 cd "$ac_dir"
28273 # Check for guested configure; otherwise get Cygnus style configure.
28274 if test -f "$ac_srcdir/configure.gnu"; then
28275 ac_sub_configure=$ac_srcdir/configure.gnu
28276 elif test -f "$ac_srcdir/configure"; then
28277 ac_sub_configure=$ac_srcdir/configure
28278 elif test -f "$ac_srcdir/configure.in"; then
28279 # This should be Cygnus configure.
28280 ac_sub_configure=$ac_aux_dir/configure
28281 else
28282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
28283 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
28284 ac_sub_configure=
28287 # The recursion is here.
28288 if test -n "$ac_sub_configure"; then
28289 # Make the cache file name correct relative to the subdirectory.
28290 case $cache_file in
28291 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
28292 *) # Relative name.
28293 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
28294 esac
28296 { $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
28297 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
28298 # The eval makes quoting arguments work.
28299 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
28300 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
28301 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
28304 cd "$ac_popdir"
28305 done
28307 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28309 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}