Merge aosp-toolchain/gcc/gcc-4_9 changes.
[official-gcc.git] / gcc-4_9-mobile / libjava / configure
blob8ae991d6aa5d8684a972e40a638b01e0f7b8d992
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 AMDEPBACKSLASH
814 AMDEP_FALSE
815 AMDEP_TRUE
816 am__quote
817 am__include
818 DEPDIR
819 am__untar
820 am__tar
821 AMTAR
822 am__leading_dot
823 SET_MAKE
825 mkdir_p
826 MKDIR_P
827 INSTALL_STRIP_PROGRAM
828 STRIP
829 install_sh
830 MAKEINFO
831 AUTOHEADER
832 AUTOMAKE
833 AUTOCONF
834 ACLOCAL
835 VERSION
836 PACKAGE
837 CYGPATH_W
838 am__isrc
839 INSTALL_DATA
840 INSTALL_SCRIPT
841 INSTALL_PROGRAM
842 ac_ct_CXX
843 CXXFLAGS
845 OBJEXT
846 EXEEXT
847 ac_ct_CC
848 CPPFLAGS
849 LDFLAGS
850 CFLAGS
852 JAVA_MAINTAINER_MODE_FALSE
853 JAVA_MAINTAINER_MODE_TRUE
854 CREATE_GJDOC_FALSE
855 CREATE_GJDOC_TRUE
856 ANTLR_JAR
857 mkinstalldirs
858 LN_S
859 LIBSTDCXX_RAW_CXX_LDFLAGS
860 LIBSTDCXX_RAW_CXX_CXXFLAGS
861 target_noncanonical
862 target_os
863 target_vendor
864 target_cpu
865 target
866 host_os
867 host_vendor
868 host_cpu
869 host
870 multi_basedir
871 target_subdir
872 host_subdir
873 build_subdir
874 build_libsubdir
875 build_os
876 build_vendor
877 build_cpu
878 build
879 target_alias
880 host_alias
881 build_alias
882 LIBS
883 ECHO_T
884 ECHO_N
885 ECHO_C
886 DEFS
887 mandir
888 localedir
889 libdir
890 psdir
891 pdfdir
892 dvidir
893 htmldir
894 infodir
895 docdir
896 oldincludedir
897 includedir
898 localstatedir
899 sharedstatedir
900 sysconfdir
901 datadir
902 datarootdir
903 libexecdir
904 sbindir
905 bindir
906 program_transform_name
907 prefix
908 exec_prefix
909 PACKAGE_URL
910 PACKAGE_BUGREPORT
911 PACKAGE_STRING
912 PACKAGE_VERSION
913 PACKAGE_TARNAME
914 PACKAGE_NAME
915 PATH_SEPARATOR
916 SHELL'
917 ac_subst_files=''
918 ac_user_opts='
919 enable_option_checking
920 with_build_libsubdir
921 with_target_subdir
922 enable_multilib
923 with_cross_host
924 with_newlib
925 enable_version_specific_runtime_libs
926 enable_browser_plugin
927 enable_gconf_peer
928 with_antlr_jar
929 enable_gjdoc
930 enable_java_maintainer_mode
931 enable_dependency_tracking
932 enable_maintainer_mode
933 enable_libgcj_sublibs
934 enable_libgcj_debug
935 with_escher
936 enable_java_awt
937 enable_shared
938 enable_static
939 with_pic
940 enable_fast_install
941 with_gnu_ld
942 enable_libtool_lock
943 enable_getenv_properties
944 enable_hash_synchronization
945 with_ecj_jar
946 with_java_home
947 enable_libgcj_bc
948 enable_reduced_reflection
949 with_win32_nlsapi
950 enable_gc_debug
951 enable_interpreter
952 enable_sjlj_exceptions
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 --enable-sjlj-exceptions
1648 force use of builtin_setjmp for exceptions
1649 --disable-java-net disable java.net
1650 --disable-jvmpi disable JVMPI support
1651 --enable-java-gc=TYPE choose garbage collector (default is boehm)
1652 --disable-rpath do not hardcode runtime library paths
1653 --enable-tls Use thread-local storage [default=yes]
1654 --disable-symvers disable symbol versioning for libjava
1655 --enable-aot-compile-rpm
1656 enable installation of aot-compile-rpm [default=no]
1657 --enable-java-home create a standard JDK-style directory layout in the
1658 install tree [default=no]
1660 Optional Packages:
1661 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1662 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1663 --with-build-libsubdir=DIR Directory where to find libraries for build system
1664 --with-target-subdir=SUBDIR
1665 configure in a subdirectory
1666 --with-cross-host=HOST configure with a cross compiler from HOST
1667 --with-newlib configure with newlib
1668 --with-antlr-jar=file Use ANTLR from the specified jar file
1669 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
1670 --with-pic try to use only PIC/non-PIC objects [default=use
1671 both]
1672 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1673 --with-ecj-jar=FILE use preinstalled ecj jar
1674 --with-java-home=DIRECTORY
1675 value of java.home system property
1676 --with-win32-nlsapi=ansi or unicows or unicode
1677 native MinGW libgcj Win32 OS API (default is ansi)
1678 --without-libffi don't use libffi
1679 --with-ecos enable runtime eCos target support
1680 --with-system-zlib use installed libz
1681 --with-x use the X Window System
1682 --with-gnu-ld assume the C compiler uses GNU ld default=no
1683 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1684 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1685 --with-system-libunwind use installed libunwind
1686 --with-python-dir the location to install Python modules. This path
1687 should NOT include the prefix.
1688 --with-gcc-suffix the GCC tool suffix (defaults to empty string)
1689 --with-arch-directory the arch directory under jre/lib (defaults to
1690 auto-detect)
1691 --with-os-directory the os directory under include (defaults to
1692 auto-detect)
1693 --with-origin-name the JPackage origin name of this package (default is
1694 gcj${gcc_suffix}
1695 --with-arch-suffix the arch directory suffix (default is the empty
1696 string
1697 --with-jvm-root-dir where to install SDK (default is ${prefix}/lib/jvm)
1698 --with-jvm-jar-dir where to install jars (default is
1699 ${prefix}/lib/jvm-exports)
1701 Some influential environment variables:
1702 CC C compiler command
1703 CFLAGS C compiler flags
1704 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1705 nonstandard directory <lib dir>
1706 LIBS libraries to pass to the linker, e.g. -l<library>
1707 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1708 you have headers in a nonstandard directory <include dir>
1709 CXX C++ compiler command
1710 CXXFLAGS C++ compiler flags
1711 CPP C preprocessor
1712 CXXCPP C++ preprocessor
1713 XMKMF Path to xmkmf, Makefile generator for X Window System
1715 Use these variables to override the choices made by `configure' or to help
1716 it to find libraries and programs with nonstandard names/locations.
1718 Report bugs to the package provider.
1719 _ACEOF
1720 ac_status=$?
1723 if test "$ac_init_help" = "recursive"; then
1724 # If there are subdirs, report their specific --help.
1725 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1726 test -d "$ac_dir" ||
1727 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1728 continue
1729 ac_builddir=.
1731 case "$ac_dir" in
1732 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1734 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1735 # A ".." for each directory in $ac_dir_suffix.
1736 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1737 case $ac_top_builddir_sub in
1738 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1739 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1740 esac ;;
1741 esac
1742 ac_abs_top_builddir=$ac_pwd
1743 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1744 # for backward compatibility:
1745 ac_top_builddir=$ac_top_build_prefix
1747 case $srcdir in
1748 .) # We are building in place.
1749 ac_srcdir=.
1750 ac_top_srcdir=$ac_top_builddir_sub
1751 ac_abs_top_srcdir=$ac_pwd ;;
1752 [\\/]* | ?:[\\/]* ) # Absolute name.
1753 ac_srcdir=$srcdir$ac_dir_suffix;
1754 ac_top_srcdir=$srcdir
1755 ac_abs_top_srcdir=$srcdir ;;
1756 *) # Relative name.
1757 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1758 ac_top_srcdir=$ac_top_build_prefix$srcdir
1759 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1760 esac
1761 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1763 cd "$ac_dir" || { ac_status=$?; continue; }
1764 # Check for guested configure.
1765 if test -f "$ac_srcdir/configure.gnu"; then
1766 echo &&
1767 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1768 elif test -f "$ac_srcdir/configure"; then
1769 echo &&
1770 $SHELL "$ac_srcdir/configure" --help=recursive
1771 else
1772 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1773 fi || ac_status=$?
1774 cd "$ac_pwd" || { ac_status=$?; break; }
1775 done
1778 test -n "$ac_init_help" && exit $ac_status
1779 if $ac_init_version; then
1780 cat <<\_ACEOF
1781 libjava configure version-unused
1782 generated by GNU Autoconf 2.64
1784 Copyright (C) 2009 Free Software Foundation, Inc.
1785 This configure script is free software; the Free Software Foundation
1786 gives unlimited permission to copy, distribute and modify it.
1787 _ACEOF
1788 exit
1791 ## ------------------------ ##
1792 ## Autoconf initialization. ##
1793 ## ------------------------ ##
1795 # ac_fn_c_try_compile LINENO
1796 # --------------------------
1797 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1798 ac_fn_c_try_compile ()
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 rm -f conftest.$ac_objext
1802 if { { ac_try="$ac_compile"
1803 case "(($ac_try" in
1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805 *) ac_try_echo=$ac_try;;
1806 esac
1807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808 $as_echo "$ac_try_echo"; } >&5
1809 (eval "$ac_compile") 2>conftest.err
1810 ac_status=$?
1811 if test -s conftest.err; then
1812 grep -v '^ *+' conftest.err >conftest.er1
1813 cat conftest.er1 >&5
1814 mv -f conftest.er1 conftest.err
1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; } && {
1818 test -z "$ac_c_werror_flag" ||
1819 test ! -s conftest.err
1820 } && test -s conftest.$ac_objext; then :
1821 ac_retval=0
1822 else
1823 $as_echo "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1826 ac_retval=1
1828 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1829 return $ac_retval
1831 } # ac_fn_c_try_compile
1833 # ac_fn_cxx_try_compile LINENO
1834 # ----------------------------
1835 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1836 ac_fn_cxx_try_compile ()
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 rm -f conftest.$ac_objext
1840 if { { ac_try="$ac_compile"
1841 case "(($ac_try" in
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1844 esac
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_compile") 2>conftest.err
1848 ac_status=$?
1849 if test -s conftest.err; then
1850 grep -v '^ *+' conftest.err >conftest.er1
1851 cat conftest.er1 >&5
1852 mv -f conftest.er1 conftest.err
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; } && {
1856 test -z "$ac_cxx_werror_flag" ||
1857 test ! -s conftest.err
1858 } && test -s conftest.$ac_objext; then :
1859 ac_retval=0
1860 else
1861 $as_echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1864 ac_retval=1
1866 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1867 return $ac_retval
1869 } # ac_fn_cxx_try_compile
1871 # ac_fn_c_try_link LINENO
1872 # -----------------------
1873 # Try to link conftest.$ac_ext, and return whether this succeeded.
1874 ac_fn_c_try_link ()
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 rm -f conftest.$ac_objext conftest$ac_exeext
1878 if { { ac_try="$ac_link"
1879 case "(($ac_try" in
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1882 esac
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_link") 2>conftest.err
1886 ac_status=$?
1887 if test -s conftest.err; then
1888 grep -v '^ *+' conftest.err >conftest.er1
1889 cat conftest.er1 >&5
1890 mv -f conftest.er1 conftest.err
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; } && {
1894 test -z "$ac_c_werror_flag" ||
1895 test ! -s conftest.err
1896 } && test -s conftest$ac_exeext && {
1897 test "$cross_compiling" = yes ||
1898 $as_test_x conftest$ac_exeext
1899 }; then :
1900 ac_retval=0
1901 else
1902 $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1905 ac_retval=1
1907 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1908 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1909 # interfere with the next link command; also delete a directory that is
1910 # left behind by Apple's compiler. We do this before executing the actions.
1911 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1912 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1913 return $ac_retval
1915 } # ac_fn_c_try_link
1917 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1918 # -------------------------------------------------------
1919 # Tests whether HEADER exists and can be compiled using the include files in
1920 # INCLUDES, setting the cache variable VAR accordingly.
1921 ac_fn_c_check_header_compile ()
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925 $as_echo_n "checking for $2... " >&6; }
1926 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1927 $as_echo_n "(cached) " >&6
1928 else
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h. */
1932 #include <$2>
1933 _ACEOF
1934 if ac_fn_c_try_compile "$LINENO"; then :
1935 eval "$3=yes"
1936 else
1937 eval "$3=no"
1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1941 eval ac_res=\$$3
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943 $as_echo "$ac_res" >&6; }
1944 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1946 } # ac_fn_c_check_header_compile
1948 # ac_fn_c_try_cpp LINENO
1949 # ----------------------
1950 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1951 ac_fn_c_try_cpp ()
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 if { { ac_try="$ac_cpp conftest.$ac_ext"
1955 case "(($ac_try" in
1956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1957 *) ac_try_echo=$ac_try;;
1958 esac
1959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1960 $as_echo "$ac_try_echo"; } >&5
1961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1962 ac_status=$?
1963 if test -s conftest.err; then
1964 grep -v '^ *+' conftest.err >conftest.er1
1965 cat conftest.er1 >&5
1966 mv -f conftest.er1 conftest.err
1968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1969 test $ac_status = 0; } >/dev/null && {
1970 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1971 test ! -s conftest.err
1972 }; then :
1973 ac_retval=0
1974 else
1975 $as_echo "$as_me: failed program was:" >&5
1976 sed 's/^/| /' conftest.$ac_ext >&5
1978 ac_retval=1
1980 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1981 return $ac_retval
1983 } # ac_fn_c_try_cpp
1985 # ac_fn_c_try_run LINENO
1986 # ----------------------
1987 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1988 # that executables *can* be run.
1989 ac_fn_c_try_run ()
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 if { { ac_try="$ac_link"
1993 case "(($ac_try" in
1994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1995 *) ac_try_echo=$ac_try;;
1996 esac
1997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1998 $as_echo "$ac_try_echo"; } >&5
1999 (eval "$ac_link") 2>&5
2000 ac_status=$?
2001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2002 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2003 { { case "(($ac_try" in
2004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2005 *) ac_try_echo=$ac_try;;
2006 esac
2007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2008 $as_echo "$ac_try_echo"; } >&5
2009 (eval "$ac_try") 2>&5
2010 ac_status=$?
2011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2012 test $ac_status = 0; }; }; then :
2013 ac_retval=0
2014 else
2015 $as_echo "$as_me: program exited with status $ac_status" >&5
2016 $as_echo "$as_me: failed program was:" >&5
2017 sed 's/^/| /' conftest.$ac_ext >&5
2019 ac_retval=$ac_status
2021 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2022 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2023 return $ac_retval
2025 } # ac_fn_c_try_run
2027 # ac_fn_c_check_func LINENO FUNC VAR
2028 # ----------------------------------
2029 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2030 ac_fn_c_check_func ()
2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2034 $as_echo_n "checking for $2... " >&6; }
2035 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2036 $as_echo_n "(cached) " >&6
2037 else
2038 if test x$gcc_no_link = xyes; then
2039 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2043 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2044 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2045 #define $2 innocuous_$2
2047 /* System header to define __stub macros and hopefully few prototypes,
2048 which can conflict with char $2 (); below.
2049 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2050 <limits.h> exists even on freestanding compilers. */
2052 #ifdef __STDC__
2053 # include <limits.h>
2054 #else
2055 # include <assert.h>
2056 #endif
2058 #undef $2
2060 /* Override any GCC internal prototype to avoid an error.
2061 Use char because int might match the return type of a GCC
2062 builtin and then its argument prototype would still apply. */
2063 #ifdef __cplusplus
2064 extern "C"
2065 #endif
2066 char $2 ();
2067 /* The GNU C library defines this for functions which it implements
2068 to always fail with ENOSYS. Some functions are actually named
2069 something starting with __ and the normal name is an alias. */
2070 #if defined __stub_$2 || defined __stub___$2
2071 choke me
2072 #endif
2075 main ()
2077 return $2 ();
2079 return 0;
2081 _ACEOF
2082 if ac_fn_c_try_link "$LINENO"; then :
2083 eval "$3=yes"
2084 else
2085 eval "$3=no"
2087 rm -f core conftest.err conftest.$ac_objext \
2088 conftest$ac_exeext conftest.$ac_ext
2090 eval ac_res=\$$3
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2092 $as_echo "$ac_res" >&6; }
2093 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2095 } # ac_fn_c_check_func
2097 # ac_fn_cxx_try_cpp LINENO
2098 # ------------------------
2099 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2100 ac_fn_cxx_try_cpp ()
2102 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103 if { { ac_try="$ac_cpp conftest.$ac_ext"
2104 case "(($ac_try" in
2105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106 *) ac_try_echo=$ac_try;;
2107 esac
2108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2109 $as_echo "$ac_try_echo"; } >&5
2110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2111 ac_status=$?
2112 if test -s conftest.err; then
2113 grep -v '^ *+' conftest.err >conftest.er1
2114 cat conftest.er1 >&5
2115 mv -f conftest.er1 conftest.err
2117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2118 test $ac_status = 0; } >/dev/null && {
2119 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2120 test ! -s conftest.err
2121 }; then :
2122 ac_retval=0
2123 else
2124 $as_echo "$as_me: failed program was:" >&5
2125 sed 's/^/| /' conftest.$ac_ext >&5
2127 ac_retval=1
2129 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2130 return $ac_retval
2132 } # ac_fn_cxx_try_cpp
2134 # ac_fn_cxx_try_link LINENO
2135 # -------------------------
2136 # Try to link conftest.$ac_ext, and return whether this succeeded.
2137 ac_fn_cxx_try_link ()
2139 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2140 rm -f conftest.$ac_objext conftest$ac_exeext
2141 if { { ac_try="$ac_link"
2142 case "(($ac_try" in
2143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2144 *) ac_try_echo=$ac_try;;
2145 esac
2146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2147 $as_echo "$ac_try_echo"; } >&5
2148 (eval "$ac_link") 2>conftest.err
2149 ac_status=$?
2150 if test -s conftest.err; then
2151 grep -v '^ *+' conftest.err >conftest.er1
2152 cat conftest.er1 >&5
2153 mv -f conftest.er1 conftest.err
2155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2156 test $ac_status = 0; } && {
2157 test -z "$ac_cxx_werror_flag" ||
2158 test ! -s conftest.err
2159 } && test -s conftest$ac_exeext && {
2160 test "$cross_compiling" = yes ||
2161 $as_test_x conftest$ac_exeext
2162 }; then :
2163 ac_retval=0
2164 else
2165 $as_echo "$as_me: failed program was:" >&5
2166 sed 's/^/| /' conftest.$ac_ext >&5
2168 ac_retval=1
2170 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2171 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2172 # interfere with the next link command; also delete a directory that is
2173 # left behind by Apple's compiler. We do this before executing the actions.
2174 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2175 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2176 return $ac_retval
2178 } # ac_fn_cxx_try_link
2180 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2181 # -------------------------------------------------------
2182 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2183 # the include files in INCLUDES and setting the cache variable VAR
2184 # accordingly.
2185 ac_fn_c_check_header_mongrel ()
2187 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2190 $as_echo_n "checking for $2... " >&6; }
2191 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2192 $as_echo_n "(cached) " >&6
2194 eval ac_res=\$$3
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2196 $as_echo "$ac_res" >&6; }
2197 else
2198 # Is the header compilable?
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2200 $as_echo_n "checking $2 usability... " >&6; }
2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h. */
2204 #include <$2>
2205 _ACEOF
2206 if ac_fn_c_try_compile "$LINENO"; then :
2207 ac_header_compiler=yes
2208 else
2209 ac_header_compiler=no
2211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2213 $as_echo "$ac_header_compiler" >&6; }
2215 # Is the header present?
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2217 $as_echo_n "checking $2 presence... " >&6; }
2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h. */
2220 #include <$2>
2221 _ACEOF
2222 if ac_fn_c_try_cpp "$LINENO"; then :
2223 ac_header_preproc=yes
2224 else
2225 ac_header_preproc=no
2227 rm -f conftest.err conftest.$ac_ext
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2229 $as_echo "$ac_header_preproc" >&6; }
2231 # So? What about this header?
2232 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2233 yes:no: )
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2235 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2237 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2239 no:yes:* )
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2241 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2243 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2245 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2247 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2249 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2251 esac
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2253 $as_echo_n "checking for $2... " >&6; }
2254 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2255 $as_echo_n "(cached) " >&6
2256 else
2257 eval "$3=\$ac_header_compiler"
2259 eval ac_res=\$$3
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2261 $as_echo "$ac_res" >&6; }
2263 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2265 } # ac_fn_c_check_header_mongrel
2267 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2268 # ----------------------------------------------------
2269 # Tries to find if the field MEMBER exists in type AGGR, after including
2270 # INCLUDES, setting cache variable VAR accordingly.
2271 ac_fn_c_check_member ()
2273 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2275 $as_echo_n "checking for $2.$3... " >&6; }
2276 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2277 $as_echo_n "(cached) " >&6
2278 else
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h. */
2283 main ()
2285 static $2 ac_aggr;
2286 if (ac_aggr.$3)
2287 return 0;
2289 return 0;
2291 _ACEOF
2292 if ac_fn_c_try_compile "$LINENO"; then :
2293 eval "$4=yes"
2294 else
2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h. */
2299 main ()
2301 static $2 ac_aggr;
2302 if (sizeof ac_aggr.$3)
2303 return 0;
2305 return 0;
2307 _ACEOF
2308 if ac_fn_c_try_compile "$LINENO"; then :
2309 eval "$4=yes"
2310 else
2311 eval "$4=no"
2313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2317 eval ac_res=\$$4
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2319 $as_echo "$ac_res" >&6; }
2320 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2322 } # ac_fn_c_check_member
2324 # ac_fn_c_check_decl LINENO SYMBOL VAR
2325 # ------------------------------------
2326 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2327 ac_fn_c_check_decl ()
2329 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2330 as_decl_name=`echo $2|sed 's/ *(.*//'`
2331 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2333 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2334 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2335 $as_echo_n "(cached) " >&6
2336 else
2337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338 /* end confdefs.h. */
2341 main ()
2343 #ifndef $as_decl_name
2344 #ifdef __cplusplus
2345 (void) $as_decl_use;
2346 #else
2347 (void) $as_decl_name;
2348 #endif
2349 #endif
2352 return 0;
2354 _ACEOF
2355 if ac_fn_c_try_compile "$LINENO"; then :
2356 eval "$3=yes"
2357 else
2358 eval "$3=no"
2360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2362 eval ac_res=\$$3
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2364 $as_echo "$ac_res" >&6; }
2365 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2367 } # ac_fn_c_check_decl
2369 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2370 # --------------------------------------------
2371 # Tries to find the compile-time value of EXPR in a program that includes
2372 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2373 # computed
2374 ac_fn_c_compute_int ()
2376 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2377 if test "$cross_compiling" = yes; then
2378 # Depending upon the size, compute the lo and hi bounds.
2379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2380 /* end confdefs.h. */
2383 main ()
2385 static int test_array [1 - 2 * !(($2) >= 0)];
2386 test_array [0] = 0
2389 return 0;
2391 _ACEOF
2392 if ac_fn_c_try_compile "$LINENO"; then :
2393 ac_lo=0 ac_mid=0
2394 while :; do
2395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2396 /* end confdefs.h. */
2399 main ()
2401 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2402 test_array [0] = 0
2405 return 0;
2407 _ACEOF
2408 if ac_fn_c_try_compile "$LINENO"; then :
2409 ac_hi=$ac_mid; break
2410 else
2411 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2412 if test $ac_lo -le $ac_mid; then
2413 ac_lo= ac_hi=
2414 break
2416 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2419 done
2420 else
2421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2422 /* end confdefs.h. */
2425 main ()
2427 static int test_array [1 - 2 * !(($2) < 0)];
2428 test_array [0] = 0
2431 return 0;
2433 _ACEOF
2434 if ac_fn_c_try_compile "$LINENO"; then :
2435 ac_hi=-1 ac_mid=-1
2436 while :; do
2437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2438 /* end confdefs.h. */
2441 main ()
2443 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2444 test_array [0] = 0
2447 return 0;
2449 _ACEOF
2450 if ac_fn_c_try_compile "$LINENO"; then :
2451 ac_lo=$ac_mid; break
2452 else
2453 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2454 if test $ac_mid -le $ac_hi; then
2455 ac_lo= ac_hi=
2456 break
2458 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2461 done
2462 else
2463 ac_lo= ac_hi=
2465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2468 # Binary search between lo and hi bounds.
2469 while test "x$ac_lo" != "x$ac_hi"; do
2470 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2472 /* end confdefs.h. */
2475 main ()
2477 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2478 test_array [0] = 0
2481 return 0;
2483 _ACEOF
2484 if ac_fn_c_try_compile "$LINENO"; then :
2485 ac_hi=$ac_mid
2486 else
2487 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2490 done
2491 case $ac_lo in #((
2492 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2493 '') ac_retval=1 ;;
2494 esac
2495 else
2496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2497 /* end confdefs.h. */
2499 static long int longval () { return $2; }
2500 static unsigned long int ulongval () { return $2; }
2501 #include <stdio.h>
2502 #include <stdlib.h>
2504 main ()
2507 FILE *f = fopen ("conftest.val", "w");
2508 if (! f)
2509 return 1;
2510 if (($2) < 0)
2512 long int i = longval ();
2513 if (i != ($2))
2514 return 1;
2515 fprintf (f, "%ld", i);
2517 else
2519 unsigned long int i = ulongval ();
2520 if (i != ($2))
2521 return 1;
2522 fprintf (f, "%lu", i);
2524 /* Do not output a trailing newline, as this causes \r\n confusion
2525 on some platforms. */
2526 return ferror (f) || fclose (f) != 0;
2529 return 0;
2531 _ACEOF
2532 if ac_fn_c_try_run "$LINENO"; then :
2533 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2534 else
2535 ac_retval=1
2537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2538 conftest.$ac_objext conftest.beam conftest.$ac_ext
2539 rm -f conftest.val
2542 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2543 return $ac_retval
2545 } # ac_fn_c_compute_int
2547 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2548 # -------------------------------------------
2549 # Tests whether TYPE exists after having included INCLUDES, setting cache
2550 # variable VAR accordingly.
2551 ac_fn_c_check_type ()
2553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2555 $as_echo_n "checking for $2... " >&6; }
2556 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2557 $as_echo_n "(cached) " >&6
2558 else
2559 eval "$3=no"
2560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2561 /* end confdefs.h. */
2564 main ()
2566 if (sizeof ($2))
2567 return 0;
2569 return 0;
2571 _ACEOF
2572 if ac_fn_c_try_compile "$LINENO"; then :
2573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2574 /* end confdefs.h. */
2577 main ()
2579 if (sizeof (($2)))
2580 return 0;
2582 return 0;
2584 _ACEOF
2585 if ac_fn_c_try_compile "$LINENO"; then :
2587 else
2588 eval "$3=yes"
2590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2594 eval ac_res=\$$3
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2596 $as_echo "$ac_res" >&6; }
2597 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2599 } # ac_fn_c_check_type
2600 cat >config.log <<_ACEOF
2601 This file contains any messages produced by compilers while
2602 running configure, to aid debugging if configure makes a mistake.
2604 It was created by libjava $as_me version-unused, which was
2605 generated by GNU Autoconf 2.64. Invocation command line was
2607 $ $0 $@
2609 _ACEOF
2610 exec 5>>config.log
2612 cat <<_ASUNAME
2613 ## --------- ##
2614 ## Platform. ##
2615 ## --------- ##
2617 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2618 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2619 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2620 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2621 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2623 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2624 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2626 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2627 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2628 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2629 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2630 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2631 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2632 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2634 _ASUNAME
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 for as_dir in $PATH
2639 IFS=$as_save_IFS
2640 test -z "$as_dir" && as_dir=.
2641 $as_echo "PATH: $as_dir"
2642 done
2643 IFS=$as_save_IFS
2645 } >&5
2647 cat >&5 <<_ACEOF
2650 ## ----------- ##
2651 ## Core tests. ##
2652 ## ----------- ##
2654 _ACEOF
2657 # Keep a trace of the command line.
2658 # Strip out --no-create and --no-recursion so they do not pile up.
2659 # Strip out --silent because we don't want to record it for future runs.
2660 # Also quote any args containing shell meta-characters.
2661 # Make two passes to allow for proper duplicate-argument suppression.
2662 ac_configure_args=
2663 ac_configure_args0=
2664 ac_configure_args1=
2665 ac_must_keep_next=false
2666 for ac_pass in 1 2
2668 for ac_arg
2670 case $ac_arg in
2671 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2672 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2673 | -silent | --silent | --silen | --sile | --sil)
2674 continue ;;
2675 *\'*)
2676 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2677 esac
2678 case $ac_pass in
2679 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2681 as_fn_append ac_configure_args1 " '$ac_arg'"
2682 if test $ac_must_keep_next = true; then
2683 ac_must_keep_next=false # Got value, back to normal.
2684 else
2685 case $ac_arg in
2686 *=* | --config-cache | -C | -disable-* | --disable-* \
2687 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2688 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2689 | -with-* | --with-* | -without-* | --without-* | --x)
2690 case "$ac_configure_args0 " in
2691 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2692 esac
2694 -* ) ac_must_keep_next=true ;;
2695 esac
2697 as_fn_append ac_configure_args " '$ac_arg'"
2699 esac
2700 done
2701 done
2702 { ac_configure_args0=; unset ac_configure_args0;}
2703 { ac_configure_args1=; unset ac_configure_args1;}
2705 # When interrupted or exit'd, cleanup temporary files, and complete
2706 # config.log. We remove comments because anyway the quotes in there
2707 # would cause problems or look ugly.
2708 # WARNING: Use '\'' to represent an apostrophe within the trap.
2709 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2710 trap 'exit_status=$?
2711 # Save into config.log some information that might help in debugging.
2713 echo
2715 cat <<\_ASBOX
2716 ## ---------------- ##
2717 ## Cache variables. ##
2718 ## ---------------- ##
2719 _ASBOX
2720 echo
2721 # The following way of writing the cache mishandles newlines in values,
2723 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2724 eval ac_val=\$$ac_var
2725 case $ac_val in #(
2726 *${as_nl}*)
2727 case $ac_var in #(
2728 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2729 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2730 esac
2731 case $ac_var in #(
2732 _ | IFS | as_nl) ;; #(
2733 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2734 *) { eval $ac_var=; unset $ac_var;} ;;
2735 esac ;;
2736 esac
2737 done
2738 (set) 2>&1 |
2739 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2740 *${as_nl}ac_space=\ *)
2741 sed -n \
2742 "s/'\''/'\''\\\\'\'''\''/g;
2743 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2744 ;; #(
2746 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2748 esac |
2749 sort
2751 echo
2753 cat <<\_ASBOX
2754 ## ----------------- ##
2755 ## Output variables. ##
2756 ## ----------------- ##
2757 _ASBOX
2758 echo
2759 for ac_var in $ac_subst_vars
2761 eval ac_val=\$$ac_var
2762 case $ac_val in
2763 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2764 esac
2765 $as_echo "$ac_var='\''$ac_val'\''"
2766 done | sort
2767 echo
2769 if test -n "$ac_subst_files"; then
2770 cat <<\_ASBOX
2771 ## ------------------- ##
2772 ## File substitutions. ##
2773 ## ------------------- ##
2774 _ASBOX
2775 echo
2776 for ac_var in $ac_subst_files
2778 eval ac_val=\$$ac_var
2779 case $ac_val in
2780 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2781 esac
2782 $as_echo "$ac_var='\''$ac_val'\''"
2783 done | sort
2784 echo
2787 if test -s confdefs.h; then
2788 cat <<\_ASBOX
2789 ## ----------- ##
2790 ## confdefs.h. ##
2791 ## ----------- ##
2792 _ASBOX
2793 echo
2794 cat confdefs.h
2795 echo
2797 test "$ac_signal" != 0 &&
2798 $as_echo "$as_me: caught signal $ac_signal"
2799 $as_echo "$as_me: exit $exit_status"
2800 } >&5
2801 rm -f core *.core core.conftest.* &&
2802 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2803 exit $exit_status
2805 for ac_signal in 1 2 13 15; do
2806 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2807 done
2808 ac_signal=0
2810 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2811 rm -f -r conftest* confdefs.h
2813 $as_echo "/* confdefs.h */" > confdefs.h
2815 # Predefined preprocessor variables.
2817 cat >>confdefs.h <<_ACEOF
2818 #define PACKAGE_NAME "$PACKAGE_NAME"
2819 _ACEOF
2821 cat >>confdefs.h <<_ACEOF
2822 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2823 _ACEOF
2825 cat >>confdefs.h <<_ACEOF
2826 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2827 _ACEOF
2829 cat >>confdefs.h <<_ACEOF
2830 #define PACKAGE_STRING "$PACKAGE_STRING"
2831 _ACEOF
2833 cat >>confdefs.h <<_ACEOF
2834 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2835 _ACEOF
2837 cat >>confdefs.h <<_ACEOF
2838 #define PACKAGE_URL "$PACKAGE_URL"
2839 _ACEOF
2842 # Let the site file select an alternate cache file if it wants to.
2843 # Prefer an explicitly selected file to automatically selected ones.
2844 ac_site_file1=NONE
2845 ac_site_file2=NONE
2846 if test -n "$CONFIG_SITE"; then
2847 ac_site_file1=$CONFIG_SITE
2848 elif test "x$prefix" != xNONE; then
2849 ac_site_file1=$prefix/share/config.site
2850 ac_site_file2=$prefix/etc/config.site
2851 else
2852 ac_site_file1=$ac_default_prefix/share/config.site
2853 ac_site_file2=$ac_default_prefix/etc/config.site
2855 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2857 test "x$ac_site_file" = xNONE && continue
2858 if test -r "$ac_site_file"; then
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2860 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2861 sed 's/^/| /' "$ac_site_file" >&5
2862 . "$ac_site_file"
2864 done
2866 if test -r "$cache_file"; then
2867 # Some versions of bash will fail to source /dev/null (special
2868 # files actually), so we avoid doing that.
2869 if test -f "$cache_file"; then
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2871 $as_echo "$as_me: loading cache $cache_file" >&6;}
2872 case $cache_file in
2873 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2874 *) . "./$cache_file";;
2875 esac
2877 else
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2879 $as_echo "$as_me: creating cache $cache_file" >&6;}
2880 >$cache_file
2883 # Check that the precious variables saved in the cache have kept the same
2884 # value.
2885 ac_cache_corrupted=false
2886 for ac_var in $ac_precious_vars; do
2887 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2888 eval ac_new_set=\$ac_env_${ac_var}_set
2889 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2890 eval ac_new_val=\$ac_env_${ac_var}_value
2891 case $ac_old_set,$ac_new_set in
2892 set,)
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2894 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2895 ac_cache_corrupted=: ;;
2896 ,set)
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2898 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2899 ac_cache_corrupted=: ;;
2900 ,);;
2902 if test "x$ac_old_val" != "x$ac_new_val"; then
2903 # differences in whitespace do not lead to failure.
2904 ac_old_val_w=`echo x $ac_old_val`
2905 ac_new_val_w=`echo x $ac_new_val`
2906 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2908 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2909 ac_cache_corrupted=:
2910 else
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2912 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2913 eval $ac_var=\$ac_old_val
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2916 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2918 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2919 fi;;
2920 esac
2921 # Pass precious variables to config.status.
2922 if test "$ac_new_set" = set; then
2923 case $ac_new_val in
2924 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2925 *) ac_arg=$ac_var=$ac_new_val ;;
2926 esac
2927 case " $ac_configure_args " in
2928 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2929 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2930 esac
2932 done
2933 if $ac_cache_corrupted; then
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2937 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2938 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2940 ## -------------------- ##
2941 ## Main body of script. ##
2942 ## -------------------- ##
2944 ac_ext=c
2945 ac_cpp='$CPP $CPPFLAGS'
2946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2957 ac_aux_dir=
2958 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2959 for ac_t in install-sh install.sh shtool; do
2960 if test -f "$ac_dir/$ac_t"; then
2961 ac_aux_dir=$ac_dir
2962 ac_install_sh="$ac_aux_dir/$ac_t -c"
2963 break 2
2965 done
2966 done
2967 if test -z "$ac_aux_dir"; then
2968 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2971 # These three variables are undocumented and unsupported,
2972 # and are intended to be withdrawn in a future Autoconf release.
2973 # They can cause serious problems if a builder's source tree is in a directory
2974 # whose full name contains unusual characters.
2975 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2976 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2977 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2980 # Make sure we can run config.sub.
2981 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2982 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2985 $as_echo_n "checking build system type... " >&6; }
2986 if test "${ac_cv_build+set}" = set; then :
2987 $as_echo_n "(cached) " >&6
2988 else
2989 ac_build_alias=$build_alias
2990 test "x$ac_build_alias" = x &&
2991 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2992 test "x$ac_build_alias" = x &&
2993 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2994 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2995 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2999 $as_echo "$ac_cv_build" >&6; }
3000 case $ac_cv_build in
3001 *-*-*) ;;
3002 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3003 esac
3004 build=$ac_cv_build
3005 ac_save_IFS=$IFS; IFS='-'
3006 set x $ac_cv_build
3007 shift
3008 build_cpu=$1
3009 build_vendor=$2
3010 shift; shift
3011 # Remember, the first character of IFS is used to create $*,
3012 # except with old shells:
3013 build_os=$*
3014 IFS=$ac_save_IFS
3015 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3018 case ${build_alias} in
3019 "") build_noncanonical=${build} ;;
3020 *) build_noncanonical=${build_alias} ;;
3021 esac
3023 case ${host_alias} in
3024 "") host_noncanonical=${build_noncanonical} ;;
3025 *) host_noncanonical=${host_alias} ;;
3026 esac
3028 case ${target_alias} in
3029 "") target_noncanonical=${host_noncanonical} ;;
3030 *) target_noncanonical=${target_alias} ;;
3031 esac
3034 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3035 # have matching libraries, they should use host libraries: Makefile.tpl
3036 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3037 # However, they still use the build modules, because the corresponding
3038 # host modules (e.g. bison) are only built for the host when bootstrap
3039 # finishes. So:
3040 # - build_subdir is where we find build modules, and never changes.
3041 # - build_libsubdir is where we find build libraries, and can be overridden.
3043 # Prefix 'build-' so this never conflicts with target_subdir.
3044 build_subdir="build-${build_noncanonical}"
3046 # Check whether --with-build-libsubdir was given.
3047 if test "${with_build_libsubdir+set}" = set; then :
3048 withval=$with_build_libsubdir; build_libsubdir="$withval"
3049 else
3050 build_libsubdir="$build_subdir"
3053 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3054 if ( test $srcdir = . && test -d gcc ) \
3055 || test -d $srcdir/../host-${host_noncanonical}; then
3056 host_subdir="host-${host_noncanonical}"
3057 else
3058 host_subdir=.
3060 # No prefix.
3061 target_subdir=${target_noncanonical}
3064 # We use these options to decide which functions to include.
3066 # Check whether --with-target-subdir was given.
3067 if test "${with_target_subdir+set}" = set; then :
3068 withval=$with_target_subdir;
3072 # We may get other options which we don't document:
3073 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3075 # Find the rest of the source tree framework.
3076 # Default to --enable-multilib
3077 # Check whether --enable-multilib was given.
3078 if test "${enable_multilib+set}" = set; then :
3079 enableval=$enable_multilib; case "$enableval" in
3080 yes) multilib=yes ;;
3081 no) multilib=no ;;
3082 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3083 esac
3084 else
3085 multilib=yes
3089 # We may get other options which we leave undocumented:
3090 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3091 # See config-ml.in if you want the gory details.
3093 if test "$srcdir" = "."; then
3094 if test "$with_target_subdir" != "."; then
3095 multi_basedir="$srcdir/$with_multisrctop../.."
3096 else
3097 multi_basedir="$srcdir/$with_multisrctop.."
3099 else
3100 multi_basedir="$srcdir/.."
3104 # Even if the default multilib is not a cross compilation,
3105 # it may be that some of the other multilibs are.
3106 if test $cross_compiling = no && test $multilib = yes \
3107 && test "x${with_multisubdir}" != x ; then
3108 cross_compiling=maybe
3111 ac_config_commands="$ac_config_commands default-1"
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3115 $as_echo_n "checking host system type... " >&6; }
3116 if test "${ac_cv_host+set}" = set; then :
3117 $as_echo_n "(cached) " >&6
3118 else
3119 if test "x$host_alias" = x; then
3120 ac_cv_host=$ac_cv_build
3121 else
3122 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3123 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3128 $as_echo "$ac_cv_host" >&6; }
3129 case $ac_cv_host in
3130 *-*-*) ;;
3131 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3132 esac
3133 host=$ac_cv_host
3134 ac_save_IFS=$IFS; IFS='-'
3135 set x $ac_cv_host
3136 shift
3137 host_cpu=$1
3138 host_vendor=$2
3139 shift; shift
3140 # Remember, the first character of IFS is used to create $*,
3141 # except with old shells:
3142 host_os=$*
3143 IFS=$ac_save_IFS
3144 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3148 $as_echo_n "checking target system type... " >&6; }
3149 if test "${ac_cv_target+set}" = set; then :
3150 $as_echo_n "(cached) " >&6
3151 else
3152 if test "x$target_alias" = x; then
3153 ac_cv_target=$ac_cv_host
3154 else
3155 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3156 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3161 $as_echo "$ac_cv_target" >&6; }
3162 case $ac_cv_target in
3163 *-*-*) ;;
3164 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3165 esac
3166 target=$ac_cv_target
3167 ac_save_IFS=$IFS; IFS='-'
3168 set x $ac_cv_target
3169 shift
3170 target_cpu=$1
3171 target_vendor=$2
3172 shift; shift
3173 # Remember, the first character of IFS is used to create $*,
3174 # except with old shells:
3175 target_os=$*
3176 IFS=$ac_save_IFS
3177 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3180 # The aliases save the names the user supplied, while $host etc.
3181 # will get canonicalized.
3182 test -n "$target_alias" &&
3183 test "$program_prefix$program_suffix$program_transform_name" = \
3184 NONENONEs,x,x, &&
3185 program_prefix=${target_alias}-
3187 case ${build_alias} in
3188 "") build_noncanonical=${build} ;;
3189 *) build_noncanonical=${build_alias} ;;
3190 esac
3192 case ${target_alias} in
3193 "") target_noncanonical=${host_noncanonical} ;;
3194 *) target_noncanonical=${target_alias} ;;
3195 esac
3204 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
3205 -I\$(top_builddir)/../libstdc++-v3/include \
3206 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
3207 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
3208 LIBSTDCXX_RAW_CXX_LDFLAGS="\
3209 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
3214 # This works around the fact that libtool configuration may change LD
3215 # for this particular configuration, but some shells, instead of
3216 # keeping the changes in LD private, export them just because LD is
3217 # exported.
3218 ORIGINAL_LD_FOR_MULTILIBS=$LD
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3221 $as_echo_n "checking whether ln -s works... " >&6; }
3222 LN_S=$as_ln_s
3223 if test "$LN_S" = "ln -s"; then
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3225 $as_echo "yes" >&6; }
3226 else
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3228 $as_echo "no, using $LN_S" >&6; }
3232 # This works around an automake problem.
3233 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
3237 # Check whether --with-cross-host was given.
3238 if test "${with_cross_host+set}" = set; then :
3239 withval=$with_cross_host;
3244 # Check whether --with-newlib was given.
3245 if test "${with_newlib+set}" = set; then :
3246 withval=$with_newlib;
3250 # Check whether --enable-version-specific-runtime-libs was given.
3251 if test "${enable_version_specific_runtime_libs+set}" = set; then :
3252 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
3253 yes) version_specific_libs=yes ;;
3254 no) version_specific_libs=no ;;
3255 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3256 esac
3257 else
3258 version_specific_libs=no
3263 # Check whether --enable-browser-plugin was given.
3264 if test "${enable_browser_plugin+set}" = set; then :
3265 enableval=$enable_browser_plugin; case "$enableval" in
3266 yes) browser_plugin_enabled=yes ;;
3267 no) browser_plugin_enabled=no ;;
3268 *) as_fn_error "Unknown argument to enable/disable browser plugin" "$LINENO" 5;;
3269 esac
3270 else
3271 browser_plugin_enabled=no
3276 # Check whether --enable-gconf-peer was given.
3277 if test "${enable_gconf_peer+set}" = set; then :
3278 enableval=$enable_gconf_peer; case "$enableval" in
3279 yes) gconf_enabled=yes ;;
3280 no) gconf_enabled=no ;;
3281 *) as_fn_error "Unknown argument to enable/disable gconf-peer" "$LINENO" 5;;
3282 esac
3283 else
3284 gconf_enabled=no
3290 # Check whether --with-antlr-jar was given.
3291 if test "${with_antlr_jar+set}" = set; then :
3292 withval=$with_antlr_jar;
3293 ANTLR_JAR=$withval
3295 else
3297 ANTLR_JAR=
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr.jar" >&5
3303 $as_echo_n "checking for antlr.jar... " >&6; }
3304 if test "x$ANTLR_JAR" = x; then
3305 for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
3306 /usr/share/antlr/lib /usr/share/java /usr/lib;
3308 if test -f "$antlr_lib_home/antlr.jar"; then
3309 # FIXME: version check for antlr needed without using a VM
3310 ANTLR_JAR="$antlr_lib_home/antlr.jar"
3311 break
3313 done
3314 if test "x$ANTLR_JAR" = x; then
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
3316 $as_echo "not found" >&6; }
3317 else
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3319 $as_echo "$ANTLR_JAR" >&6; }
3321 else
3322 if test -f "${ANTLR_JAR}"; then
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3324 $as_echo "$ANTLR_JAR" >&6; }
3325 else
3326 as_fn_error "antlr jar file not found: $ANTLR_JAR" "$LINENO" 5
3331 # Check whether --enable-gjdoc was given.
3332 if test "${enable_gjdoc+set}" = set; then :
3333 enableval=$enable_gjdoc; case "${enableval}" in
3334 yes) BUILD_GJDOC=yes ;;
3335 no) BUILD_GJDOC=no ;;
3336 *) BUILD_GJDOC=yes ;;
3337 esac
3338 else
3339 BUILD_GJDOC=maybe
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gjdoc" >&5
3344 $as_echo_n "checking whether to build gjdoc... " >&6; }
3345 if test "x$BUILD_GJDOC" = xmaybe; then
3346 if test -f "${ANTLR_JAR}"; then
3347 BUILD_GJDOC=yes
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3349 $as_echo "yes" >&6; }
3350 else
3351 BUILD_GJDOC=no
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, antlr.jar not found" >&5
3353 $as_echo "no, antlr.jar not found" >&6; }
3355 else
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_GJDOC" >&5
3357 $as_echo "$BUILD_GJDOC" >&6; }
3359 if test "x${BUILD_GJDOC}" = xyes; then
3360 CREATE_GJDOC_TRUE=
3361 CREATE_GJDOC_FALSE='#'
3362 else
3363 CREATE_GJDOC_TRUE='#'
3364 CREATE_GJDOC_FALSE=
3368 # Check whether --enable-java-maintainer-mode was given.
3369 if test "${enable_java_maintainer_mode+set}" = set; then :
3370 enableval=$enable_java_maintainer_mode;
3373 if test "$enable_java_maintainer_mode" = yes; then
3374 JAVA_MAINTAINER_MODE_TRUE=
3375 JAVA_MAINTAINER_MODE_FALSE='#'
3376 else
3377 JAVA_MAINTAINER_MODE_TRUE='#'
3378 JAVA_MAINTAINER_MODE_FALSE=
3382 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
3385 # For libstdc++-v3, -fno-builtin must be present here so that a
3386 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
3387 # used in later tests. This may not be necessary in libjava; I don't know.
3388 save_CXXFLAGS="$CXXFLAGS"
3389 CXXFLAGS="$CXXFLAGS -fno-builtin"
3390 ac_ext=c
3391 ac_cpp='$CPP $CPPFLAGS'
3392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3395 if test -n "$ac_tool_prefix"; then
3396 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3397 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3399 $as_echo_n "checking for $ac_word... " >&6; }
3400 if test "${ac_cv_prog_CC+set}" = set; then :
3401 $as_echo_n "(cached) " >&6
3402 else
3403 if test -n "$CC"; then
3404 ac_cv_prog_CC="$CC" # Let the user override the test.
3405 else
3406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407 for as_dir in $PATH
3409 IFS=$as_save_IFS
3410 test -z "$as_dir" && as_dir=.
3411 for ac_exec_ext in '' $ac_executable_extensions; do
3412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3413 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3415 break 2
3417 done
3418 done
3419 IFS=$as_save_IFS
3423 CC=$ac_cv_prog_CC
3424 if test -n "$CC"; then
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3426 $as_echo "$CC" >&6; }
3427 else
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3429 $as_echo "no" >&6; }
3434 if test -z "$ac_cv_prog_CC"; then
3435 ac_ct_CC=$CC
3436 # Extract the first word of "gcc", so it can be a program name with args.
3437 set dummy gcc; ac_word=$2
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3439 $as_echo_n "checking for $ac_word... " >&6; }
3440 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3441 $as_echo_n "(cached) " >&6
3442 else
3443 if test -n "$ac_ct_CC"; then
3444 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3445 else
3446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447 for as_dir in $PATH
3449 IFS=$as_save_IFS
3450 test -z "$as_dir" && as_dir=.
3451 for ac_exec_ext in '' $ac_executable_extensions; do
3452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3453 ac_cv_prog_ac_ct_CC="gcc"
3454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3455 break 2
3457 done
3458 done
3459 IFS=$as_save_IFS
3463 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3464 if test -n "$ac_ct_CC"; then
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3466 $as_echo "$ac_ct_CC" >&6; }
3467 else
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3469 $as_echo "no" >&6; }
3472 if test "x$ac_ct_CC" = x; then
3473 CC=""
3474 else
3475 case $cross_compiling:$ac_tool_warned in
3476 yes:)
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3479 ac_tool_warned=yes ;;
3480 esac
3481 CC=$ac_ct_CC
3483 else
3484 CC="$ac_cv_prog_CC"
3487 if test -z "$CC"; then
3488 if test -n "$ac_tool_prefix"; then
3489 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3490 set dummy ${ac_tool_prefix}cc; ac_word=$2
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3492 $as_echo_n "checking for $ac_word... " >&6; }
3493 if test "${ac_cv_prog_CC+set}" = set; then :
3494 $as_echo_n "(cached) " >&6
3495 else
3496 if test -n "$CC"; then
3497 ac_cv_prog_CC="$CC" # Let the user override the test.
3498 else
3499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3500 for as_dir in $PATH
3502 IFS=$as_save_IFS
3503 test -z "$as_dir" && as_dir=.
3504 for ac_exec_ext in '' $ac_executable_extensions; do
3505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3506 ac_cv_prog_CC="${ac_tool_prefix}cc"
3507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3508 break 2
3510 done
3511 done
3512 IFS=$as_save_IFS
3516 CC=$ac_cv_prog_CC
3517 if test -n "$CC"; then
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3519 $as_echo "$CC" >&6; }
3520 else
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3522 $as_echo "no" >&6; }
3528 if test -z "$CC"; then
3529 # Extract the first word of "cc", so it can be a program name with args.
3530 set dummy cc; ac_word=$2
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3532 $as_echo_n "checking for $ac_word... " >&6; }
3533 if test "${ac_cv_prog_CC+set}" = set; then :
3534 $as_echo_n "(cached) " >&6
3535 else
3536 if test -n "$CC"; then
3537 ac_cv_prog_CC="$CC" # Let the user override the test.
3538 else
3539 ac_prog_rejected=no
3540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541 for as_dir in $PATH
3543 IFS=$as_save_IFS
3544 test -z "$as_dir" && as_dir=.
3545 for ac_exec_ext in '' $ac_executable_extensions; do
3546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3547 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3548 ac_prog_rejected=yes
3549 continue
3551 ac_cv_prog_CC="cc"
3552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3553 break 2
3555 done
3556 done
3557 IFS=$as_save_IFS
3559 if test $ac_prog_rejected = yes; then
3560 # We found a bogon in the path, so make sure we never use it.
3561 set dummy $ac_cv_prog_CC
3562 shift
3563 if test $# != 0; then
3564 # We chose a different compiler from the bogus one.
3565 # However, it has the same basename, so the bogon will be chosen
3566 # first if we set CC to just the basename; use the full file name.
3567 shift
3568 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3573 CC=$ac_cv_prog_CC
3574 if test -n "$CC"; then
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3576 $as_echo "$CC" >&6; }
3577 else
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579 $as_echo "no" >&6; }
3584 if test -z "$CC"; then
3585 if test -n "$ac_tool_prefix"; then
3586 for ac_prog in cl.exe
3588 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3589 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591 $as_echo_n "checking for $ac_word... " >&6; }
3592 if test "${ac_cv_prog_CC+set}" = set; then :
3593 $as_echo_n "(cached) " >&6
3594 else
3595 if test -n "$CC"; then
3596 ac_cv_prog_CC="$CC" # Let the user override the test.
3597 else
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 for as_dir in $PATH
3601 IFS=$as_save_IFS
3602 test -z "$as_dir" && as_dir=.
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3605 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3607 break 2
3609 done
3610 done
3611 IFS=$as_save_IFS
3615 CC=$ac_cv_prog_CC
3616 if test -n "$CC"; then
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3618 $as_echo "$CC" >&6; }
3619 else
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621 $as_echo "no" >&6; }
3625 test -n "$CC" && break
3626 done
3628 if test -z "$CC"; then
3629 ac_ct_CC=$CC
3630 for ac_prog in cl.exe
3632 # Extract the first word of "$ac_prog", so it can be a program name with args.
3633 set dummy $ac_prog; ac_word=$2
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3635 $as_echo_n "checking for $ac_word... " >&6; }
3636 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3637 $as_echo_n "(cached) " >&6
3638 else
3639 if test -n "$ac_ct_CC"; then
3640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3641 else
3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643 for as_dir in $PATH
3645 IFS=$as_save_IFS
3646 test -z "$as_dir" && as_dir=.
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3649 ac_cv_prog_ac_ct_CC="$ac_prog"
3650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3651 break 2
3653 done
3654 done
3655 IFS=$as_save_IFS
3659 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3660 if test -n "$ac_ct_CC"; then
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3662 $as_echo "$ac_ct_CC" >&6; }
3663 else
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665 $as_echo "no" >&6; }
3669 test -n "$ac_ct_CC" && break
3670 done
3672 if test "x$ac_ct_CC" = x; then
3673 CC=""
3674 else
3675 case $cross_compiling:$ac_tool_warned in
3676 yes:)
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3679 ac_tool_warned=yes ;;
3680 esac
3681 CC=$ac_ct_CC
3688 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3690 as_fn_error "no acceptable C compiler found in \$PATH
3691 See \`config.log' for more details." "$LINENO" 5; }
3693 # Provide some information about the compiler.
3694 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3695 set X $ac_compile
3696 ac_compiler=$2
3697 for ac_option in --version -v -V -qversion; do
3698 { { ac_try="$ac_compiler $ac_option >&5"
3699 case "(($ac_try" in
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3702 esac
3703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3704 $as_echo "$ac_try_echo"; } >&5
3705 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3706 ac_status=$?
3707 if test -s conftest.err; then
3708 sed '10a\
3709 ... rest of stderr output deleted ...
3710 10q' conftest.err >conftest.er1
3711 cat conftest.er1 >&5
3712 rm -f conftest.er1 conftest.err
3714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3715 test $ac_status = 0; }
3716 done
3718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719 /* end confdefs.h. */
3722 main ()
3726 return 0;
3728 _ACEOF
3729 # FIXME: Cleanup?
3730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3731 (eval $ac_link) 2>&5
3732 ac_status=$?
3733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3734 test $ac_status = 0; }; then :
3735 gcc_no_link=no
3736 else
3737 gcc_no_link=yes
3739 if test x$gcc_no_link = xyes; then
3740 # Setting cross_compile will disable run tests; it will
3741 # also disable AC_CHECK_FILE but that's generally
3742 # correct if we can't link.
3743 cross_compiling=yes
3744 EXEEXT=
3745 else
3746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3747 /* end confdefs.h. */
3750 main ()
3754 return 0;
3756 _ACEOF
3757 ac_clean_files_save=$ac_clean_files
3758 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3759 # Try to create an executable without -o first, disregard a.out.
3760 # It will help us diagnose broken compilers, and finding out an intuition
3761 # of exeext.
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3763 $as_echo_n "checking for C compiler default output file name... " >&6; }
3764 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3766 # The possible output files:
3767 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3769 ac_rmfiles=
3770 for ac_file in $ac_files
3772 case $ac_file in
3773 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3774 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3775 esac
3776 done
3777 rm -f $ac_rmfiles
3779 if { { ac_try="$ac_link_default"
3780 case "(($ac_try" in
3781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3782 *) ac_try_echo=$ac_try;;
3783 esac
3784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3785 $as_echo "$ac_try_echo"; } >&5
3786 (eval "$ac_link_default") 2>&5
3787 ac_status=$?
3788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3789 test $ac_status = 0; }; then :
3790 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3791 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3792 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3793 # so that the user can short-circuit this test for compilers unknown to
3794 # Autoconf.
3795 for ac_file in $ac_files ''
3797 test -f "$ac_file" || continue
3798 case $ac_file in
3799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3801 [ab].out )
3802 # We found the default executable, but exeext='' is most
3803 # certainly right.
3804 break;;
3805 *.* )
3806 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3807 then :; else
3808 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3810 # We set ac_cv_exeext here because the later test for it is not
3811 # safe: cross compilers may not add the suffix if given an `-o'
3812 # argument, so we may need to know it at that point already.
3813 # Even if this section looks crufty: it has the advantage of
3814 # actually working.
3815 break;;
3817 break;;
3818 esac
3819 done
3820 test "$ac_cv_exeext" = no && ac_cv_exeext=
3822 else
3823 ac_file=''
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3826 $as_echo "$ac_file" >&6; }
3827 if test -z "$ac_file"; then :
3828 $as_echo "$as_me: failed program was:" >&5
3829 sed 's/^/| /' conftest.$ac_ext >&5
3831 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3832 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3833 { as_fn_set_status 77
3834 as_fn_error "C compiler cannot create executables
3835 See \`config.log' for more details." "$LINENO" 5; }; }
3837 ac_exeext=$ac_cv_exeext
3839 # Check that the compiler produces executables we can run. If not, either
3840 # the compiler is broken, or we cross compile.
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3842 $as_echo_n "checking whether the C compiler works... " >&6; }
3843 # If not cross compiling, check that we can run a simple program.
3844 if test "$cross_compiling" != yes; then
3845 if { ac_try='./$ac_file'
3846 { { case "(($ac_try" in
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3849 esac
3850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3851 $as_echo "$ac_try_echo"; } >&5
3852 (eval "$ac_try") 2>&5
3853 ac_status=$?
3854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3855 test $ac_status = 0; }; }; then
3856 cross_compiling=no
3857 else
3858 if test "$cross_compiling" = maybe; then
3859 cross_compiling=yes
3860 else
3861 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3863 as_fn_error "cannot run C compiled programs.
3864 If you meant to cross compile, use \`--host'.
3865 See \`config.log' for more details." "$LINENO" 5; }
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3870 $as_echo "yes" >&6; }
3872 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3873 ac_clean_files=$ac_clean_files_save
3874 # Check that the compiler produces executables we can run. If not, either
3875 # the compiler is broken, or we cross compile.
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3877 $as_echo_n "checking whether we are cross compiling... " >&6; }
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3879 $as_echo "$cross_compiling" >&6; }
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3882 $as_echo_n "checking for suffix of executables... " >&6; }
3883 if { { ac_try="$ac_link"
3884 case "(($ac_try" in
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3887 esac
3888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3889 $as_echo "$ac_try_echo"; } >&5
3890 (eval "$ac_link") 2>&5
3891 ac_status=$?
3892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3893 test $ac_status = 0; }; then :
3894 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3895 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3896 # work properly (i.e., refer to `conftest.exe'), while it won't with
3897 # `rm'.
3898 for ac_file in conftest.exe conftest conftest.*; do
3899 test -f "$ac_file" || continue
3900 case $ac_file in
3901 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3902 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3903 break;;
3904 * ) break;;
3905 esac
3906 done
3907 else
3908 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3910 as_fn_error "cannot compute suffix of executables: cannot compile and link
3911 See \`config.log' for more details." "$LINENO" 5; }
3913 rm -f conftest$ac_cv_exeext
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3915 $as_echo "$ac_cv_exeext" >&6; }
3917 rm -f conftest.$ac_ext
3918 EXEEXT=$ac_cv_exeext
3919 ac_exeext=$EXEEXT
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3922 $as_echo_n "checking for suffix of object files... " >&6; }
3923 if test "${ac_cv_objext+set}" = set; then :
3924 $as_echo_n "(cached) " >&6
3925 else
3926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927 /* end confdefs.h. */
3930 main ()
3934 return 0;
3936 _ACEOF
3937 rm -f conftest.o conftest.obj
3938 if { { ac_try="$ac_compile"
3939 case "(($ac_try" in
3940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941 *) ac_try_echo=$ac_try;;
3942 esac
3943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3944 $as_echo "$ac_try_echo"; } >&5
3945 (eval "$ac_compile") 2>&5
3946 ac_status=$?
3947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3948 test $ac_status = 0; }; then :
3949 for ac_file in conftest.o conftest.obj conftest.*; do
3950 test -f "$ac_file" || continue;
3951 case $ac_file in
3952 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3953 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3954 break;;
3955 esac
3956 done
3957 else
3958 $as_echo "$as_me: failed program was:" >&5
3959 sed 's/^/| /' conftest.$ac_ext >&5
3961 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3963 as_fn_error "cannot compute suffix of object files: cannot compile
3964 See \`config.log' for more details." "$LINENO" 5; }
3966 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3969 $as_echo "$ac_cv_objext" >&6; }
3970 OBJEXT=$ac_cv_objext
3971 ac_objext=$OBJEXT
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3973 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3974 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3975 $as_echo_n "(cached) " >&6
3976 else
3977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978 /* end confdefs.h. */
3981 main ()
3983 #ifndef __GNUC__
3984 choke me
3985 #endif
3988 return 0;
3990 _ACEOF
3991 if ac_fn_c_try_compile "$LINENO"; then :
3992 ac_compiler_gnu=yes
3993 else
3994 ac_compiler_gnu=no
3996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3997 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4001 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4002 if test $ac_compiler_gnu = yes; then
4003 GCC=yes
4004 else
4005 GCC=
4007 ac_test_CFLAGS=${CFLAGS+set}
4008 ac_save_CFLAGS=$CFLAGS
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4010 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4011 if test "${ac_cv_prog_cc_g+set}" = set; then :
4012 $as_echo_n "(cached) " >&6
4013 else
4014 ac_save_c_werror_flag=$ac_c_werror_flag
4015 ac_c_werror_flag=yes
4016 ac_cv_prog_cc_g=no
4017 CFLAGS="-g"
4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019 /* end confdefs.h. */
4022 main ()
4026 return 0;
4028 _ACEOF
4029 if ac_fn_c_try_compile "$LINENO"; then :
4030 ac_cv_prog_cc_g=yes
4031 else
4032 CFLAGS=""
4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h. */
4037 main ()
4041 return 0;
4043 _ACEOF
4044 if ac_fn_c_try_compile "$LINENO"; then :
4046 else
4047 ac_c_werror_flag=$ac_save_c_werror_flag
4048 CFLAGS="-g"
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h. */
4053 main ()
4057 return 0;
4059 _ACEOF
4060 if ac_fn_c_try_compile "$LINENO"; then :
4061 ac_cv_prog_cc_g=yes
4063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4068 ac_c_werror_flag=$ac_save_c_werror_flag
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4071 $as_echo "$ac_cv_prog_cc_g" >&6; }
4072 if test "$ac_test_CFLAGS" = set; then
4073 CFLAGS=$ac_save_CFLAGS
4074 elif test $ac_cv_prog_cc_g = yes; then
4075 if test "$GCC" = yes; then
4076 CFLAGS="-g -O2"
4077 else
4078 CFLAGS="-g"
4080 else
4081 if test "$GCC" = yes; then
4082 CFLAGS="-O2"
4083 else
4084 CFLAGS=
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4088 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4089 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4090 $as_echo_n "(cached) " >&6
4091 else
4092 ac_cv_prog_cc_c89=no
4093 ac_save_CC=$CC
4094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095 /* end confdefs.h. */
4096 #include <stdarg.h>
4097 #include <stdio.h>
4098 #include <sys/types.h>
4099 #include <sys/stat.h>
4100 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4101 struct buf { int x; };
4102 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4103 static char *e (p, i)
4104 char **p;
4105 int i;
4107 return p[i];
4109 static char *f (char * (*g) (char **, int), char **p, ...)
4111 char *s;
4112 va_list v;
4113 va_start (v,p);
4114 s = g (p, va_arg (v,int));
4115 va_end (v);
4116 return s;
4119 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4120 function prototypes and stuff, but not '\xHH' hex character constants.
4121 These don't provoke an error unfortunately, instead are silently treated
4122 as 'x'. The following induces an error, until -std is added to get
4123 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4124 array size at least. It's necessary to write '\x00'==0 to get something
4125 that's true only with -std. */
4126 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4128 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4129 inside strings and character constants. */
4130 #define FOO(x) 'x'
4131 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4133 int test (int i, double x);
4134 struct s1 {int (*f) (int a);};
4135 struct s2 {int (*f) (double a);};
4136 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4137 int argc;
4138 char **argv;
4140 main ()
4142 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4144 return 0;
4146 _ACEOF
4147 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4148 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4150 CC="$ac_save_CC $ac_arg"
4151 if ac_fn_c_try_compile "$LINENO"; then :
4152 ac_cv_prog_cc_c89=$ac_arg
4154 rm -f core conftest.err conftest.$ac_objext
4155 test "x$ac_cv_prog_cc_c89" != "xno" && break
4156 done
4157 rm -f conftest.$ac_ext
4158 CC=$ac_save_CC
4161 # AC_CACHE_VAL
4162 case "x$ac_cv_prog_cc_c89" in
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4165 $as_echo "none needed" >&6; } ;;
4166 xno)
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4168 $as_echo "unsupported" >&6; } ;;
4170 CC="$CC $ac_cv_prog_cc_c89"
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4172 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4173 esac
4174 if test "x$ac_cv_prog_cc_c89" != xno; then :
4178 ac_ext=c
4179 ac_cpp='$CPP $CPPFLAGS'
4180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4184 ac_ext=cpp
4185 ac_cpp='$CXXCPP $CPPFLAGS'
4186 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4187 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4188 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4189 if test -z "$CXX"; then
4190 if test -n "$CCC"; then
4191 CXX=$CCC
4192 else
4193 if test -n "$ac_tool_prefix"; then
4194 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4196 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4197 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4199 $as_echo_n "checking for $ac_word... " >&6; }
4200 if test "${ac_cv_prog_CXX+set}" = set; then :
4201 $as_echo_n "(cached) " >&6
4202 else
4203 if test -n "$CXX"; then
4204 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4205 else
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH
4209 IFS=$as_save_IFS
4210 test -z "$as_dir" && as_dir=.
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4215 break 2
4217 done
4218 done
4219 IFS=$as_save_IFS
4223 CXX=$ac_cv_prog_CXX
4224 if test -n "$CXX"; then
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4226 $as_echo "$CXX" >&6; }
4227 else
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229 $as_echo "no" >&6; }
4233 test -n "$CXX" && break
4234 done
4236 if test -z "$CXX"; then
4237 ac_ct_CXX=$CXX
4238 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4240 # Extract the first word of "$ac_prog", so it can be a program name with args.
4241 set dummy $ac_prog; ac_word=$2
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4243 $as_echo_n "checking for $ac_word... " >&6; }
4244 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4245 $as_echo_n "(cached) " >&6
4246 else
4247 if test -n "$ac_ct_CXX"; then
4248 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4249 else
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 for as_dir in $PATH
4253 IFS=$as_save_IFS
4254 test -z "$as_dir" && as_dir=.
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4257 ac_cv_prog_ac_ct_CXX="$ac_prog"
4258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4259 break 2
4261 done
4262 done
4263 IFS=$as_save_IFS
4267 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4268 if test -n "$ac_ct_CXX"; then
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4270 $as_echo "$ac_ct_CXX" >&6; }
4271 else
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4273 $as_echo "no" >&6; }
4277 test -n "$ac_ct_CXX" && break
4278 done
4280 if test "x$ac_ct_CXX" = x; then
4281 CXX="g++"
4282 else
4283 case $cross_compiling:$ac_tool_warned in
4284 yes:)
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4287 ac_tool_warned=yes ;;
4288 esac
4289 CXX=$ac_ct_CXX
4295 # Provide some information about the compiler.
4296 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4297 set X $ac_compile
4298 ac_compiler=$2
4299 for ac_option in --version -v -V -qversion; do
4300 { { ac_try="$ac_compiler $ac_option >&5"
4301 case "(($ac_try" in
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4304 esac
4305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4306 $as_echo "$ac_try_echo"; } >&5
4307 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4308 ac_status=$?
4309 if test -s conftest.err; then
4310 sed '10a\
4311 ... rest of stderr output deleted ...
4312 10q' conftest.err >conftest.er1
4313 cat conftest.er1 >&5
4314 rm -f conftest.er1 conftest.err
4316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4317 test $ac_status = 0; }
4318 done
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4321 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4322 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4323 $as_echo_n "(cached) " >&6
4324 else
4325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4326 /* end confdefs.h. */
4329 main ()
4331 #ifndef __GNUC__
4332 choke me
4333 #endif
4336 return 0;
4338 _ACEOF
4339 if ac_fn_cxx_try_compile "$LINENO"; then :
4340 ac_compiler_gnu=yes
4341 else
4342 ac_compiler_gnu=no
4344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4345 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4349 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4350 if test $ac_compiler_gnu = yes; then
4351 GXX=yes
4352 else
4353 GXX=
4355 ac_test_CXXFLAGS=${CXXFLAGS+set}
4356 ac_save_CXXFLAGS=$CXXFLAGS
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4358 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4359 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4360 $as_echo_n "(cached) " >&6
4361 else
4362 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4363 ac_cxx_werror_flag=yes
4364 ac_cv_prog_cxx_g=no
4365 CXXFLAGS="-g"
4366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367 /* end confdefs.h. */
4370 main ()
4374 return 0;
4376 _ACEOF
4377 if ac_fn_cxx_try_compile "$LINENO"; then :
4378 ac_cv_prog_cxx_g=yes
4379 else
4380 CXXFLAGS=""
4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382 /* end confdefs.h. */
4385 main ()
4389 return 0;
4391 _ACEOF
4392 if ac_fn_cxx_try_compile "$LINENO"; then :
4394 else
4395 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4396 CXXFLAGS="-g"
4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398 /* end confdefs.h. */
4401 main ()
4405 return 0;
4407 _ACEOF
4408 if ac_fn_cxx_try_compile "$LINENO"; then :
4409 ac_cv_prog_cxx_g=yes
4411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4416 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4419 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4420 if test "$ac_test_CXXFLAGS" = set; then
4421 CXXFLAGS=$ac_save_CXXFLAGS
4422 elif test $ac_cv_prog_cxx_g = yes; then
4423 if test "$GXX" = yes; then
4424 CXXFLAGS="-g -O2"
4425 else
4426 CXXFLAGS="-g"
4428 else
4429 if test "$GXX" = yes; then
4430 CXXFLAGS="-O2"
4431 else
4432 CXXFLAGS=
4435 ac_ext=c
4436 ac_cpp='$CPP $CPPFLAGS'
4437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4441 CXXFLAGS="$save_CXXFLAGS"
4443 am__api_version='1.11'
4445 # Find a good install program. We prefer a C program (faster),
4446 # so one script is as good as another. But avoid the broken or
4447 # incompatible versions:
4448 # SysV /etc/install, /usr/sbin/install
4449 # SunOS /usr/etc/install
4450 # IRIX /sbin/install
4451 # AIX /bin/install
4452 # AmigaOS /C/install, which installs bootblocks on floppy discs
4453 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4454 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4455 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4456 # OS/2's system install, which has a completely different semantic
4457 # ./install, which can be erroneously created by make from ./install.sh.
4458 # Reject install programs that cannot install multiple files.
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4460 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4461 if test -z "$INSTALL"; then
4462 if test "${ac_cv_path_install+set}" = set; then :
4463 $as_echo_n "(cached) " >&6
4464 else
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 for as_dir in $PATH
4468 IFS=$as_save_IFS
4469 test -z "$as_dir" && as_dir=.
4470 # Account for people who put trailing slashes in PATH elements.
4471 case $as_dir/ in #((
4472 ./ | .// | /[cC]/* | \
4473 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4474 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4475 /usr/ucb/* ) ;;
4477 # OSF1 and SCO ODT 3.0 have their own names for install.
4478 # Don't use installbsd from OSF since it installs stuff as root
4479 # by default.
4480 for ac_prog in ginstall scoinst install; do
4481 for ac_exec_ext in '' $ac_executable_extensions; do
4482 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4483 if test $ac_prog = install &&
4484 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4485 # AIX install. It has an incompatible calling convention.
4487 elif test $ac_prog = install &&
4488 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4489 # program-specific install script used by HP pwplus--don't use.
4491 else
4492 rm -rf conftest.one conftest.two conftest.dir
4493 echo one > conftest.one
4494 echo two > conftest.two
4495 mkdir conftest.dir
4496 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4497 test -s conftest.one && test -s conftest.two &&
4498 test -s conftest.dir/conftest.one &&
4499 test -s conftest.dir/conftest.two
4500 then
4501 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4502 break 3
4506 done
4507 done
4509 esac
4511 done
4512 IFS=$as_save_IFS
4514 rm -rf conftest.one conftest.two conftest.dir
4517 if test "${ac_cv_path_install+set}" = set; then
4518 INSTALL=$ac_cv_path_install
4519 else
4520 # As a last resort, use the slow shell script. Don't cache a
4521 # value for INSTALL within a source directory, because that will
4522 # break other packages using the cache if that directory is
4523 # removed, or if the value is a relative name.
4524 INSTALL=$ac_install_sh
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4528 $as_echo "$INSTALL" >&6; }
4530 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4531 # It thinks the first close brace ends the variable substitution.
4532 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4534 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4536 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4539 $as_echo_n "checking whether build environment is sane... " >&6; }
4540 # Just in case
4541 sleep 1
4542 echo timestamp > conftest.file
4543 # Reject unsafe characters in $srcdir or the absolute working directory
4544 # name. Accept space and tab only in the latter.
4545 am_lf='
4547 case `pwd` in
4548 *[\\\"\#\$\&\'\`$am_lf]*)
4549 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4550 esac
4551 case $srcdir in
4552 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4553 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4554 esac
4556 # Do `set' in a subshell so we don't clobber the current shell's
4557 # arguments. Must try -L first in case configure is actually a
4558 # symlink; some systems play weird games with the mod time of symlinks
4559 # (eg FreeBSD returns the mod time of the symlink's containing
4560 # directory).
4561 if (
4562 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4563 if test "$*" = "X"; then
4564 # -L didn't work.
4565 set X `ls -t "$srcdir/configure" conftest.file`
4567 rm -f conftest.file
4568 if test "$*" != "X $srcdir/configure conftest.file" \
4569 && test "$*" != "X conftest.file $srcdir/configure"; then
4571 # If neither matched, then we have a broken ls. This can happen
4572 # if, for instance, CONFIG_SHELL is bash and it inherits a
4573 # broken ls alias from the environment. This has actually
4574 # happened. Such a system could not be considered "sane".
4575 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4576 alias in your environment" "$LINENO" 5
4579 test "$2" = conftest.file
4581 then
4582 # Ok.
4584 else
4585 as_fn_error "newly created file is older than distributed files!
4586 Check your system clock" "$LINENO" 5
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4589 $as_echo "yes" >&6; }
4590 test "$program_prefix" != NONE &&
4591 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4592 # Use a double $ so make ignores it.
4593 test "$program_suffix" != NONE &&
4594 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4595 # Double any \ or $.
4596 # By default was `s,x,x', remove it if useless.
4597 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4598 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4600 # expand $ac_aux_dir to an absolute path
4601 am_aux_dir=`cd $ac_aux_dir && pwd`
4603 if test x"${MISSING+set}" != xset; then
4604 case $am_aux_dir in
4605 *\ * | *\ *)
4606 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4608 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4609 esac
4611 # Use eval to expand $SHELL
4612 if eval "$MISSING --run true"; then
4613 am_missing_run="$MISSING --run "
4614 else
4615 am_missing_run=
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4617 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4620 if test x"${install_sh}" != xset; then
4621 case $am_aux_dir in
4622 *\ * | *\ *)
4623 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4625 install_sh="\${SHELL} $am_aux_dir/install-sh"
4626 esac
4629 # Installed binaries are usually stripped using `strip' when the user
4630 # run `make install-strip'. However `strip' might not be the right
4631 # tool to use in cross-compilation environments, therefore Automake
4632 # will honor the `STRIP' environment variable to overrule this program.
4633 if test "$cross_compiling" != no; then
4634 if test -n "$ac_tool_prefix"; then
4635 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4636 set dummy ${ac_tool_prefix}strip; ac_word=$2
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4638 $as_echo_n "checking for $ac_word... " >&6; }
4639 if test "${ac_cv_prog_STRIP+set}" = set; then :
4640 $as_echo_n "(cached) " >&6
4641 else
4642 if test -n "$STRIP"; then
4643 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4644 else
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 for as_dir in $PATH
4648 IFS=$as_save_IFS
4649 test -z "$as_dir" && as_dir=.
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4652 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4654 break 2
4656 done
4657 done
4658 IFS=$as_save_IFS
4662 STRIP=$ac_cv_prog_STRIP
4663 if test -n "$STRIP"; then
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4665 $as_echo "$STRIP" >&6; }
4666 else
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4668 $as_echo "no" >&6; }
4673 if test -z "$ac_cv_prog_STRIP"; then
4674 ac_ct_STRIP=$STRIP
4675 # Extract the first word of "strip", so it can be a program name with args.
4676 set dummy strip; ac_word=$2
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4678 $as_echo_n "checking for $ac_word... " >&6; }
4679 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4680 $as_echo_n "(cached) " >&6
4681 else
4682 if test -n "$ac_ct_STRIP"; then
4683 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4684 else
4685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 for as_dir in $PATH
4688 IFS=$as_save_IFS
4689 test -z "$as_dir" && as_dir=.
4690 for ac_exec_ext in '' $ac_executable_extensions; do
4691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4692 ac_cv_prog_ac_ct_STRIP="strip"
4693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4694 break 2
4696 done
4697 done
4698 IFS=$as_save_IFS
4702 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4703 if test -n "$ac_ct_STRIP"; then
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4705 $as_echo "$ac_ct_STRIP" >&6; }
4706 else
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4708 $as_echo "no" >&6; }
4711 if test "x$ac_ct_STRIP" = x; then
4712 STRIP=":"
4713 else
4714 case $cross_compiling:$ac_tool_warned in
4715 yes:)
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4718 ac_tool_warned=yes ;;
4719 esac
4720 STRIP=$ac_ct_STRIP
4722 else
4723 STRIP="$ac_cv_prog_STRIP"
4727 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4730 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4731 if test -z "$MKDIR_P"; then
4732 if test "${ac_cv_path_mkdir+set}" = set; then :
4733 $as_echo_n "(cached) " >&6
4734 else
4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4738 IFS=$as_save_IFS
4739 test -z "$as_dir" && as_dir=.
4740 for ac_prog in mkdir gmkdir; do
4741 for ac_exec_ext in '' $ac_executable_extensions; do
4742 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4743 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4744 'mkdir (GNU coreutils) '* | \
4745 'mkdir (coreutils) '* | \
4746 'mkdir (fileutils) '4.1*)
4747 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4748 break 3;;
4749 esac
4750 done
4751 done
4752 done
4753 IFS=$as_save_IFS
4757 if test "${ac_cv_path_mkdir+set}" = set; then
4758 MKDIR_P="$ac_cv_path_mkdir -p"
4759 else
4760 # As a last resort, use the slow shell script. Don't cache a
4761 # value for MKDIR_P within a source directory, because that will
4762 # break other packages using the cache if that directory is
4763 # removed, or if the value is a relative name.
4764 test -d ./--version && rmdir ./--version
4765 MKDIR_P="$ac_install_sh -d"
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4769 $as_echo "$MKDIR_P" >&6; }
4771 mkdir_p="$MKDIR_P"
4772 case $mkdir_p in
4773 [\\/$]* | ?:[\\/]*) ;;
4774 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4775 esac
4777 for ac_prog in gawk mawk nawk awk
4779 # Extract the first word of "$ac_prog", so it can be a program name with args.
4780 set dummy $ac_prog; ac_word=$2
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4782 $as_echo_n "checking for $ac_word... " >&6; }
4783 if test "${ac_cv_prog_AWK+set}" = set; then :
4784 $as_echo_n "(cached) " >&6
4785 else
4786 if test -n "$AWK"; then
4787 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4788 else
4789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 for as_dir in $PATH
4792 IFS=$as_save_IFS
4793 test -z "$as_dir" && as_dir=.
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4796 ac_cv_prog_AWK="$ac_prog"
4797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 break 2
4800 done
4801 done
4802 IFS=$as_save_IFS
4806 AWK=$ac_cv_prog_AWK
4807 if test -n "$AWK"; then
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4809 $as_echo "$AWK" >&6; }
4810 else
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812 $as_echo "no" >&6; }
4816 test -n "$AWK" && break
4817 done
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4820 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4821 set x ${MAKE-make}
4822 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4823 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4824 $as_echo_n "(cached) " >&6
4825 else
4826 cat >conftest.make <<\_ACEOF
4827 SHELL = /bin/sh
4828 all:
4829 @echo '@@@%%%=$(MAKE)=@@@%%%'
4830 _ACEOF
4831 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4832 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4833 *@@@%%%=?*=@@@%%%*)
4834 eval ac_cv_prog_make_${ac_make}_set=yes;;
4836 eval ac_cv_prog_make_${ac_make}_set=no;;
4837 esac
4838 rm -f conftest.make
4840 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4842 $as_echo "yes" >&6; }
4843 SET_MAKE=
4844 else
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846 $as_echo "no" >&6; }
4847 SET_MAKE="MAKE=${MAKE-make}"
4850 rm -rf .tst 2>/dev/null
4851 mkdir .tst 2>/dev/null
4852 if test -d .tst; then
4853 am__leading_dot=.
4854 else
4855 am__leading_dot=_
4857 rmdir .tst 2>/dev/null
4859 DEPDIR="${am__leading_dot}deps"
4861 ac_config_commands="$ac_config_commands depfiles"
4864 am_make=${MAKE-make}
4865 cat > confinc << 'END'
4866 am__doit:
4867 @echo this is the am__doit target
4868 .PHONY: am__doit
4870 # If we don't find an include directive, just comment out the code.
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4872 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4873 am__include="#"
4874 am__quote=
4875 _am_result=none
4876 # First try GNU make style include.
4877 echo "include confinc" > confmf
4878 # Ignore all kinds of additional output from `make'.
4879 case `$am_make -s -f confmf 2> /dev/null` in #(
4880 *the\ am__doit\ target*)
4881 am__include=include
4882 am__quote=
4883 _am_result=GNU
4885 esac
4886 # Now try BSD make style include.
4887 if test "$am__include" = "#"; then
4888 echo '.include "confinc"' > confmf
4889 case `$am_make -s -f confmf 2> /dev/null` in #(
4890 *the\ am__doit\ target*)
4891 am__include=.include
4892 am__quote="\""
4893 _am_result=BSD
4895 esac
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4900 $as_echo "$_am_result" >&6; }
4901 rm -f confinc confmf
4903 # Check whether --enable-dependency-tracking was given.
4904 if test "${enable_dependency_tracking+set}" = set; then :
4905 enableval=$enable_dependency_tracking;
4908 if test "x$enable_dependency_tracking" != xno; then
4909 am_depcomp="$ac_aux_dir/depcomp"
4910 AMDEPBACKSLASH='\'
4912 if test "x$enable_dependency_tracking" != xno; then
4913 AMDEP_TRUE=
4914 AMDEP_FALSE='#'
4915 else
4916 AMDEP_TRUE='#'
4917 AMDEP_FALSE=
4921 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4922 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4923 # is not polluted with repeated "-I."
4924 am__isrc=' -I$(srcdir)'
4925 # test to see if srcdir already configured
4926 if test -f $srcdir/config.status; then
4927 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4931 # test whether we have cygpath
4932 if test -z "$CYGPATH_W"; then
4933 if (cygpath --version) >/dev/null 2>/dev/null; then
4934 CYGPATH_W='cygpath -w'
4935 else
4936 CYGPATH_W=echo
4941 # Define the identity of the package.
4942 PACKAGE='libjava'
4943 VERSION='version-unused'
4946 cat >>confdefs.h <<_ACEOF
4947 #define PACKAGE "$PACKAGE"
4948 _ACEOF
4951 cat >>confdefs.h <<_ACEOF
4952 #define VERSION "$VERSION"
4953 _ACEOF
4955 # Some tools Automake needs.
4957 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4960 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4963 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4966 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4969 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4971 # We need awk for the "check" target. The system "awk" is bad on
4972 # some platforms.
4973 # Always define AMTAR for backward compatibility.
4975 AMTAR=${AMTAR-"${am_missing_run}tar"}
4977 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4982 depcc="$CC" am_compiler_list=
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4985 $as_echo_n "checking dependency style of $depcc... " >&6; }
4986 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4987 $as_echo_n "(cached) " >&6
4988 else
4989 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4990 # We make a subdir and do the tests there. Otherwise we can end up
4991 # making bogus files that we don't know about and never remove. For
4992 # instance it was reported that on HP-UX the gcc test will end up
4993 # making a dummy file named `D' -- because `-MD' means `put the output
4994 # in D'.
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 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 mkdir conftest.dir
5123 # Copy depcomp to subdir because otherwise we won't find it if we're
5124 # using a relative directory.
5125 cp "$am_depcomp" conftest.dir
5126 cd conftest.dir
5127 # We will build objects and dependencies in a subdirectory because
5128 # it helps to detect inapplicable dependency modes. For instance
5129 # both Tru64's cc and ICC support -MD to output dependencies as a
5130 # side effect of compilation, but ICC will put the dependencies in
5131 # the current directory while Tru64 will put them in the object
5132 # directory.
5133 mkdir sub
5135 am_cv_CXX_dependencies_compiler_type=none
5136 if test "$am_compiler_list" = ""; then
5137 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5139 am__universal=false
5140 case " $depcc " in #(
5141 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5142 esac
5144 for depmode in $am_compiler_list; do
5145 # Setup a source with many dependencies, because some compilers
5146 # like to wrap large dependency lists on column 80 (with \), and
5147 # we should not choose a depcomp mode which is confused by this.
5149 # We need to recreate these files for each test, as the compiler may
5150 # overwrite some of them when testing with obscure command lines.
5151 # This happens at least with the AIX C compiler.
5152 : > sub/conftest.c
5153 for i in 1 2 3 4 5 6; do
5154 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5155 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5156 # Solaris 8's {/usr,}/bin/sh.
5157 touch sub/conftst$i.h
5158 done
5159 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5161 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5162 # mode. It turns out that the SunPro C++ compiler does not properly
5163 # handle `-M -o', and we need to detect this. Also, some Intel
5164 # versions had trouble with output in subdirs
5165 am__obj=sub/conftest.${OBJEXT-o}
5166 am__minus_obj="-o $am__obj"
5167 case $depmode in
5168 gcc)
5169 # This depmode causes a compiler race in universal mode.
5170 test "$am__universal" = false || continue
5172 nosideeffect)
5173 # after this tag, mechanisms are not by side-effect, so they'll
5174 # only be used when explicitly requested
5175 if test "x$enable_dependency_tracking" = xyes; then
5176 continue
5177 else
5178 break
5181 msvisualcpp | msvcmsys)
5182 # This compiler won't grok `-c -o', but also, the minuso test has
5183 # not run yet. These depmodes are late enough in the game, and
5184 # so weak that their functioning should not be impacted.
5185 am__obj=conftest.${OBJEXT-o}
5186 am__minus_obj=
5188 none) break ;;
5189 esac
5190 if depmode=$depmode \
5191 source=sub/conftest.c object=$am__obj \
5192 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5193 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5194 >/dev/null 2>conftest.err &&
5195 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5196 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5197 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5198 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5199 # icc doesn't choke on unknown options, it will just issue warnings
5200 # or remarks (even with -Werror). So we grep stderr for any message
5201 # that says an option was ignored or not supported.
5202 # When given -MP, icc 7.0 and 7.1 complain thusly:
5203 # icc: Command line warning: ignoring option '-M'; no argument required
5204 # The diagnosis changed in icc 8.0:
5205 # icc: Command line remark: option '-MP' not supported
5206 if (grep 'ignoring option' conftest.err ||
5207 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5208 am_cv_CXX_dependencies_compiler_type=$depmode
5209 break
5212 done
5214 cd ..
5215 rm -rf conftest.dir
5216 else
5217 am_cv_CXX_dependencies_compiler_type=none
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5222 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5223 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5226 test "x$enable_dependency_tracking" != xno \
5227 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5228 am__fastdepCXX_TRUE=
5229 am__fastdepCXX_FALSE='#'
5230 else
5231 am__fastdepCXX_TRUE='#'
5232 am__fastdepCXX_FALSE=
5238 if test -n "$ac_tool_prefix"; then
5239 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5240 set dummy ${ac_tool_prefix}as; ac_word=$2
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5242 $as_echo_n "checking for $ac_word... " >&6; }
5243 if test "${ac_cv_prog_AS+set}" = set; then :
5244 $as_echo_n "(cached) " >&6
5245 else
5246 if test -n "$AS"; then
5247 ac_cv_prog_AS="$AS" # Let the user override the test.
5248 else
5249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250 for as_dir in $PATH
5252 IFS=$as_save_IFS
5253 test -z "$as_dir" && as_dir=.
5254 for ac_exec_ext in '' $ac_executable_extensions; do
5255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5256 ac_cv_prog_AS="${ac_tool_prefix}as"
5257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5258 break 2
5260 done
5261 done
5262 IFS=$as_save_IFS
5266 AS=$ac_cv_prog_AS
5267 if test -n "$AS"; then
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5269 $as_echo "$AS" >&6; }
5270 else
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5272 $as_echo "no" >&6; }
5277 if test -z "$ac_cv_prog_AS"; then
5278 ac_ct_AS=$AS
5279 # Extract the first word of "as", so it can be a program name with args.
5280 set dummy as; ac_word=$2
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5282 $as_echo_n "checking for $ac_word... " >&6; }
5283 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5284 $as_echo_n "(cached) " >&6
5285 else
5286 if test -n "$ac_ct_AS"; then
5287 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5288 else
5289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5290 for as_dir in $PATH
5292 IFS=$as_save_IFS
5293 test -z "$as_dir" && as_dir=.
5294 for ac_exec_ext in '' $ac_executable_extensions; do
5295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5296 ac_cv_prog_ac_ct_AS="as"
5297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5298 break 2
5300 done
5301 done
5302 IFS=$as_save_IFS
5306 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5307 if test -n "$ac_ct_AS"; then
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5309 $as_echo "$ac_ct_AS" >&6; }
5310 else
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5312 $as_echo "no" >&6; }
5315 if test "x$ac_ct_AS" = x; then
5316 AS=""
5317 else
5318 case $cross_compiling:$ac_tool_warned in
5319 yes:)
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5321 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5322 ac_tool_warned=yes ;;
5323 esac
5324 AS=$ac_ct_AS
5326 else
5327 AS="$ac_cv_prog_AS"
5330 if test -n "$ac_tool_prefix"; then
5331 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5332 set dummy ${ac_tool_prefix}ld; ac_word=$2
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5334 $as_echo_n "checking for $ac_word... " >&6; }
5335 if test "${ac_cv_prog_LD+set}" = set; then :
5336 $as_echo_n "(cached) " >&6
5337 else
5338 if test -n "$LD"; then
5339 ac_cv_prog_LD="$LD" # Let the user override the test.
5340 else
5341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342 for as_dir in $PATH
5344 IFS=$as_save_IFS
5345 test -z "$as_dir" && as_dir=.
5346 for ac_exec_ext in '' $ac_executable_extensions; do
5347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5348 ac_cv_prog_LD="${ac_tool_prefix}ld"
5349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5350 break 2
5352 done
5353 done
5354 IFS=$as_save_IFS
5358 LD=$ac_cv_prog_LD
5359 if test -n "$LD"; then
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5361 $as_echo "$LD" >&6; }
5362 else
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364 $as_echo "no" >&6; }
5369 if test -z "$ac_cv_prog_LD"; then
5370 ac_ct_LD=$LD
5371 # Extract the first word of "ld", so it can be a program name with args.
5372 set dummy ld; ac_word=$2
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5374 $as_echo_n "checking for $ac_word... " >&6; }
5375 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
5376 $as_echo_n "(cached) " >&6
5377 else
5378 if test -n "$ac_ct_LD"; then
5379 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5380 else
5381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5382 for as_dir in $PATH
5384 IFS=$as_save_IFS
5385 test -z "$as_dir" && as_dir=.
5386 for ac_exec_ext in '' $ac_executable_extensions; do
5387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5388 ac_cv_prog_ac_ct_LD="ld"
5389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5390 break 2
5392 done
5393 done
5394 IFS=$as_save_IFS
5398 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5399 if test -n "$ac_ct_LD"; then
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
5401 $as_echo "$ac_ct_LD" >&6; }
5402 else
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5404 $as_echo "no" >&6; }
5407 if test "x$ac_ct_LD" = x; then
5408 LD=""
5409 else
5410 case $cross_compiling:$ac_tool_warned in
5411 yes:)
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5414 ac_tool_warned=yes ;;
5415 esac
5416 LD=$ac_ct_LD
5418 else
5419 LD="$ac_cv_prog_LD"
5422 if test -n "$ac_tool_prefix"; then
5423 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5424 set dummy ${ac_tool_prefix}ar; ac_word=$2
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5426 $as_echo_n "checking for $ac_word... " >&6; }
5427 if test "${ac_cv_prog_AR+set}" = set; then :
5428 $as_echo_n "(cached) " >&6
5429 else
5430 if test -n "$AR"; then
5431 ac_cv_prog_AR="$AR" # Let the user override the test.
5432 else
5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434 for as_dir in $PATH
5436 IFS=$as_save_IFS
5437 test -z "$as_dir" && as_dir=.
5438 for ac_exec_ext in '' $ac_executable_extensions; do
5439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5440 ac_cv_prog_AR="${ac_tool_prefix}ar"
5441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5442 break 2
5444 done
5445 done
5446 IFS=$as_save_IFS
5450 AR=$ac_cv_prog_AR
5451 if test -n "$AR"; then
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5453 $as_echo "$AR" >&6; }
5454 else
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456 $as_echo "no" >&6; }
5461 if test -z "$ac_cv_prog_AR"; then
5462 ac_ct_AR=$AR
5463 # Extract the first word of "ar", so it can be a program name with args.
5464 set dummy ar; ac_word=$2
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5466 $as_echo_n "checking for $ac_word... " >&6; }
5467 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5468 $as_echo_n "(cached) " >&6
5469 else
5470 if test -n "$ac_ct_AR"; then
5471 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5472 else
5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 for as_dir in $PATH
5476 IFS=$as_save_IFS
5477 test -z "$as_dir" && as_dir=.
5478 for ac_exec_ext in '' $ac_executable_extensions; do
5479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5480 ac_cv_prog_ac_ct_AR="ar"
5481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5482 break 2
5484 done
5485 done
5486 IFS=$as_save_IFS
5490 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5491 if test -n "$ac_ct_AR"; then
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5493 $as_echo "$ac_ct_AR" >&6; }
5494 else
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5496 $as_echo "no" >&6; }
5499 if test "x$ac_ct_AR" = x; then
5500 AR=""
5501 else
5502 case $cross_compiling:$ac_tool_warned in
5503 yes:)
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5506 ac_tool_warned=yes ;;
5507 esac
5508 AR=$ac_ct_AR
5510 else
5511 AR="$ac_cv_prog_AR"
5514 if test -n "$ac_tool_prefix"; then
5515 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5516 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5518 $as_echo_n "checking for $ac_word... " >&6; }
5519 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5520 $as_echo_n "(cached) " >&6
5521 else
5522 if test -n "$RANLIB"; then
5523 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5524 else
5525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 for as_dir in $PATH
5528 IFS=$as_save_IFS
5529 test -z "$as_dir" && as_dir=.
5530 for ac_exec_ext in '' $ac_executable_extensions; do
5531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5532 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5534 break 2
5536 done
5537 done
5538 IFS=$as_save_IFS
5542 RANLIB=$ac_cv_prog_RANLIB
5543 if test -n "$RANLIB"; then
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5545 $as_echo "$RANLIB" >&6; }
5546 else
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548 $as_echo "no" >&6; }
5553 if test -z "$ac_cv_prog_RANLIB"; then
5554 ac_ct_RANLIB=$RANLIB
5555 # Extract the first word of "ranlib", so it can be a program name with args.
5556 set dummy ranlib; ac_word=$2
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5558 $as_echo_n "checking for $ac_word... " >&6; }
5559 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5560 $as_echo_n "(cached) " >&6
5561 else
5562 if test -n "$ac_ct_RANLIB"; then
5563 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5564 else
5565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566 for as_dir in $PATH
5568 IFS=$as_save_IFS
5569 test -z "$as_dir" && as_dir=.
5570 for ac_exec_ext in '' $ac_executable_extensions; do
5571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5572 ac_cv_prog_ac_ct_RANLIB="ranlib"
5573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5574 break 2
5576 done
5577 done
5578 IFS=$as_save_IFS
5582 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5583 if test -n "$ac_ct_RANLIB"; then
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5585 $as_echo "$ac_ct_RANLIB" >&6; }
5586 else
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5588 $as_echo "no" >&6; }
5591 if test "x$ac_ct_RANLIB" = x; then
5592 RANLIB=":"
5593 else
5594 case $cross_compiling:$ac_tool_warned in
5595 yes:)
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5598 ac_tool_warned=yes ;;
5599 esac
5600 RANLIB=$ac_ct_RANLIB
5602 else
5603 RANLIB="$ac_cv_prog_RANLIB"
5606 if test -n "$ac_tool_prefix"; then
5607 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5608 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5610 $as_echo_n "checking for $ac_word... " >&6; }
5611 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5612 $as_echo_n "(cached) " >&6
5613 else
5614 if test -n "$DLLTOOL"; then
5615 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5616 else
5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 for as_dir in $PATH
5620 IFS=$as_save_IFS
5621 test -z "$as_dir" && as_dir=.
5622 for ac_exec_ext in '' $ac_executable_extensions; do
5623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5624 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5626 break 2
5628 done
5629 done
5630 IFS=$as_save_IFS
5634 DLLTOOL=$ac_cv_prog_DLLTOOL
5635 if test -n "$DLLTOOL"; then
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5637 $as_echo "$DLLTOOL" >&6; }
5638 else
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640 $as_echo "no" >&6; }
5645 if test -z "$ac_cv_prog_DLLTOOL"; then
5646 ac_ct_DLLTOOL=$DLLTOOL
5647 # Extract the first word of "dlltool", so it can be a program name with args.
5648 set dummy dlltool; ac_word=$2
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5650 $as_echo_n "checking for $ac_word... " >&6; }
5651 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5652 $as_echo_n "(cached) " >&6
5653 else
5654 if test -n "$ac_ct_DLLTOOL"; then
5655 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5656 else
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 for as_dir in $PATH
5660 IFS=$as_save_IFS
5661 test -z "$as_dir" && as_dir=.
5662 for ac_exec_ext in '' $ac_executable_extensions; do
5663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5664 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5666 break 2
5668 done
5669 done
5670 IFS=$as_save_IFS
5674 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5675 if test -n "$ac_ct_DLLTOOL"; then
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5677 $as_echo "$ac_ct_DLLTOOL" >&6; }
5678 else
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680 $as_echo "no" >&6; }
5683 if test "x$ac_ct_DLLTOOL" = x; then
5684 DLLTOOL=":"
5685 else
5686 case $cross_compiling:$ac_tool_warned in
5687 yes:)
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5690 ac_tool_warned=yes ;;
5691 esac
5692 DLLTOOL=$ac_ct_DLLTOOL
5694 else
5695 DLLTOOL="$ac_cv_prog_DLLTOOL"
5698 for ac_prog in gawk mawk nawk awk
5700 # Extract the first word of "$ac_prog", so it can be a program name with args.
5701 set dummy $ac_prog; ac_word=$2
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5703 $as_echo_n "checking for $ac_word... " >&6; }
5704 if test "${ac_cv_prog_AWK+set}" = set; then :
5705 $as_echo_n "(cached) " >&6
5706 else
5707 if test -n "$AWK"; then
5708 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5709 else
5710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711 for as_dir in $PATH
5713 IFS=$as_save_IFS
5714 test -z "$as_dir" && as_dir=.
5715 for ac_exec_ext in '' $ac_executable_extensions; do
5716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5717 ac_cv_prog_AWK="$ac_prog"
5718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5719 break 2
5721 done
5722 done
5723 IFS=$as_save_IFS
5727 AWK=$ac_cv_prog_AWK
5728 if test -n "$AWK"; then
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5730 $as_echo "$AWK" >&6; }
5731 else
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733 $as_echo "no" >&6; }
5737 test -n "$AWK" && break
5738 done
5740 for ac_prog in jar fastjar gjar
5742 # Extract the first word of "$ac_prog", so it can be a program name with args.
5743 set dummy $ac_prog; ac_word=$2
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5745 $as_echo_n "checking for $ac_word... " >&6; }
5746 if test "${ac_cv_prog_JAR+set}" = set; then :
5747 $as_echo_n "(cached) " >&6
5748 else
5749 if test -n "$JAR"; then
5750 ac_cv_prog_JAR="$JAR" # Let the user override the test.
5751 else
5752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753 for as_dir in $PATH
5755 IFS=$as_save_IFS
5756 test -z "$as_dir" && as_dir=.
5757 for ac_exec_ext in '' $ac_executable_extensions; do
5758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5759 ac_cv_prog_JAR="$ac_prog"
5760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5761 break 2
5763 done
5764 done
5765 IFS=$as_save_IFS
5769 JAR=$ac_cv_prog_JAR
5770 if test -n "$JAR"; then
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
5772 $as_echo "$JAR" >&6; }
5773 else
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5775 $as_echo "no" >&6; }
5779 test -n "$JAR" && break
5780 done
5781 test -n "$JAR" || JAR="no"
5783 # Extract the first word of "zip", so it can be a program name with args.
5784 set dummy zip; ac_word=$2
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5786 $as_echo_n "checking for $ac_word... " >&6; }
5787 if test "${ac_cv_path_ZIP+set}" = set; then :
5788 $as_echo_n "(cached) " >&6
5789 else
5790 case $ZIP in
5791 [\\/]* | ?:[\\/]*)
5792 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5796 for as_dir in $PATH
5798 IFS=$as_save_IFS
5799 test -z "$as_dir" && as_dir=.
5800 for ac_exec_ext in '' $ac_executable_extensions; do
5801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5802 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5804 break 2
5806 done
5807 done
5808 IFS=$as_save_IFS
5810 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
5812 esac
5814 ZIP=$ac_cv_path_ZIP
5815 if test -n "$ZIP"; then
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
5817 $as_echo "$ZIP" >&6; }
5818 else
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5820 $as_echo "no" >&6; }
5824 # Extract the first word of "unzip", so it can be a program name with args.
5825 set dummy unzip; ac_word=$2
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5827 $as_echo_n "checking for $ac_word... " >&6; }
5828 if test "${ac_cv_path_UNZIP+set}" = set; then :
5829 $as_echo_n "(cached) " >&6
5830 else
5831 case $UNZIP in
5832 [\\/]* | ?:[\\/]*)
5833 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
5836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837 for as_dir in $PATH
5839 IFS=$as_save_IFS
5840 test -z "$as_dir" && as_dir=.
5841 for ac_exec_ext in '' $ac_executable_extensions; do
5842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5843 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
5844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5845 break 2
5847 done
5848 done
5849 IFS=$as_save_IFS
5851 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
5853 esac
5855 UNZIP=$ac_cv_path_UNZIP
5856 if test -n "$UNZIP"; then
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
5858 $as_echo "$UNZIP" >&6; }
5859 else
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5861 $as_echo "no" >&6; }
5866 # We need a jar that supports -@. This is a GNU extension.
5867 if test "$JAR" != no; then
5868 rm -f config-test.jar
5869 echo $srcdir/configure.ac | $JAR -cf@ config-test.jar >/dev/null 2>&1
5870 if test -f config-test.jar; then
5871 rm -f config-test.jar
5872 else
5873 JAR=no
5877 # Prefer the jar we found, but fall back to our jar script.
5878 if test "$JAR" = no; then
5879 if test "$ZIP" = no; then
5880 as_fn_error "cannot find neither zip nor jar, cannot continue" "$LINENO" 5
5881 else
5882 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
5883 JAR=`pwd`/scripts/jar
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5891 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5892 # Check whether --enable-maintainer-mode was given.
5893 if test "${enable_maintainer_mode+set}" = set; then :
5894 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5895 else
5896 USE_MAINTAINER_MODE=no
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5900 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5901 if test $USE_MAINTAINER_MODE = yes; then
5902 MAINTAINER_MODE_TRUE=
5903 MAINTAINER_MODE_FALSE='#'
5904 else
5905 MAINTAINER_MODE_TRUE='#'
5906 MAINTAINER_MODE_FALSE=
5909 MAINT=$MAINTAINER_MODE_TRUE
5915 # configure.host sets the following important variables
5916 # libgcj_cflags - host specific C compiler flags
5917 # libgcj_cxxflags - host specific C++ compiler flags
5918 # libgcj_javaflags - host specific Java compiler flags
5919 # libgcj_sublib_ltflags - host specific Libtool flags
5920 # libgcj_sublib_core_extra_deps - host specific extra
5921 # dependencies for core sublib
5922 # (these last two only used when building sublibs)
5923 # and a number of others; see the list at the start of the file.
5925 libgcj_cflags=
5926 libgcj_cxxflags=
5927 libgcj_javaflags=
5928 libgcj_sublib_ltflags=
5929 libgcj_sublib_core_extra_deps=
5931 . ${srcdir}/configure.host
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5934 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5935 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5936 $as_echo_n "(cached) " >&6
5937 else
5938 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5939 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5940 acl_cv_prog_gnu_ld=yes
5941 else
5942 acl_cv_prog_gnu_ld=no
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5946 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5947 with_gnu_ld=$acl_cv_prog_gnu_ld
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
5950 $as_echo_n "checking if the GNU linker ($LD) supports -Bsymbolic-functions... " >&6; }
5951 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then :
5952 $as_echo_n "(cached) " >&6
5953 else
5955 acl_cv_prog_gnu_ld_symbolic=no
5957 if test x"$with_gnu_ld" = x"yes"; then
5958 if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
5959 acl_cv_prog_gnu_ld_symbolic=yes
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld_symbolic" >&5
5964 $as_echo "$acl_cv_prog_gnu_ld_symbolic" >&6; }
5965 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
5966 SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
5967 else
5968 SYMBOLIC_LDFLAGS=''
5971 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
5972 if test -z "$libgcj_ld_symbolic"; then
5973 libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
5976 # for windows native targets enforce export of all symbols for shared libgcj.
5977 libgcj_ld_export_all=
5978 case "$host" in
5979 *mingw*)
5980 libgcj_ld_export_all=-Wl,--export-all-symbols
5984 esac
5986 LIBGCJ_CFLAGS="${libgcj_cflags}"
5987 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
5988 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
5989 LIBGCJ_SUBLIB_LTFLAGS="${libgcj_sublib_ltflags}"
5990 LIBGCJ_SUBLIB_CORE_EXTRA_DEPS="${libgcj_sublib_core_extra_deps}"
5991 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
5992 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
5993 LIBGCJ_LD_EXPORT_ALL="${libgcj_ld_export_all}"
6003 # Only use libltdl for non-newlib builds.
6004 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
6006 $as_echo_n "checking dynamic linker characteristics... " >&6; }
6007 library_names_spec=
6008 libname_spec='lib$name'
6009 soname_spec=
6010 shrext=".so"
6011 postinstall_cmds=
6012 postuninstall_cmds=
6013 finish_cmds=
6014 finish_eval=
6015 shlibpath_var=
6016 shlibpath_overrides_runpath=unknown
6017 version_type=none
6018 dynamic_linker="$host_os ld.so"
6019 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6020 if test "$GCC" = yes; then
6021 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
6022 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6023 # if the path contains ";" then we assume it to be the separator
6024 # otherwise default to the standard path separator (i.e. ":") - it is
6025 # assumed that no part of a normal pathname contains ";" but that should
6026 # okay in the real world where ";" in dirpaths is itself problematic.
6027 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6028 else
6029 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6031 else
6032 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6034 need_lib_prefix=unknown
6035 hardcode_into_libs=no
6037 # when you set need_version to no, make sure it does not cause -set_version
6038 # flags to be left without arguments
6039 need_version=unknown
6041 case $host_os in
6042 aix3*)
6043 version_type=linux
6044 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6045 shlibpath_var=LIBPATH
6047 # AIX 3 has no versioning support, so we append a major version to the name.
6048 soname_spec='${libname}${release}${shared_ext}$major'
6051 aix[4-9]*)
6052 version_type=linux
6053 need_lib_prefix=no
6054 need_version=no
6055 hardcode_into_libs=yes
6056 if test "$host_cpu" = ia64; then
6057 # AIX 5 supports IA64
6058 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6059 shlibpath_var=LD_LIBRARY_PATH
6060 else
6061 # With GCC up to 2.95.x, collect2 would create an import file
6062 # for dependence libraries. The import file would start with
6063 # the line `#! .'. This would cause the generated library to
6064 # depend on `.', always an invalid library. This was fixed in
6065 # development snapshots of GCC prior to 3.0.
6066 case $host_os in
6067 aix4 | aix4.[01] | aix4.[01].*)
6068 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6069 echo ' yes '
6070 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6072 else
6073 can_build_shared=no
6076 esac
6077 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6078 # soname into executable. Probably we can add versioning support to
6079 # collect2, so additional links can be useful in future.
6080 if test "$aix_use_runtimelinking" = yes; then
6081 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6082 # instead of lib<name>.a to let people know that these are not
6083 # typical AIX shared libraries.
6084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6085 else
6086 # We preserve .a as extension for shared libraries through AIX4.2
6087 # and later when we are not doing run time linking.
6088 library_names_spec='${libname}${release}.a $libname.a'
6089 soname_spec='${libname}${release}${shared_ext}$major'
6091 shlibpath_var=LIBPATH
6095 amigaos*)
6096 library_names_spec='$libname.ixlibrary $libname.a'
6097 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6098 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'
6101 beos*)
6102 library_names_spec='${libname}${shared_ext}'
6103 dynamic_linker="$host_os ld.so"
6104 shlibpath_var=LIBRARY_PATH
6107 bsdi4*)
6108 version_type=linux
6109 need_version=no
6110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6111 soname_spec='${libname}${release}${shared_ext}$major'
6112 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6113 shlibpath_var=LD_LIBRARY_PATH
6114 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6115 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6116 # the default ld.so.conf also contains /usr/contrib/lib and
6117 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6118 # libtool to hard-code these into programs
6121 cygwin* | mingw* | pw32*)
6122 version_type=windows
6123 shrext=".dll"
6124 need_version=no
6125 need_lib_prefix=no
6127 case $GCC,$host_os in
6128 yes,cygwin* | yes,mingw* | yes,pw32*)
6129 library_names_spec='$libname.dll.a'
6130 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6131 postinstall_cmds='base_file=`basename \${file}`~
6132 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6133 dldir=$destdir/`dirname \$dlpath`~
6134 test -d \$dldir || mkdir -p \$dldir~
6135 $install_prog $dir/$dlname \$dldir/$dlname'
6136 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6137 dlpath=$dir/\$dldll~
6138 $rm \$dlpath'
6139 shlibpath_overrides_runpath=yes
6141 case $host_os in
6142 cygwin*)
6143 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6144 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6145 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
6147 mingw*)
6148 # MinGW DLLs use traditional 'lib' prefix
6149 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6150 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
6151 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6152 # It is most probably a Windows format PATH printed by
6153 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6154 # path with ; separators, and with drive letters. We can handle the
6155 # drive letters (cygwin fileutils understands them), so leave them,
6156 # especially as we might pass files found there to a mingw objdump,
6157 # which wouldn't understand a cygwinified path. Ahh.
6158 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6159 else
6160 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6163 pw32*)
6164 # pw32 DLLs use 'pw' prefix rather than 'lib'
6165 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
6167 esac
6171 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6173 esac
6174 dynamic_linker='Win32 ld.exe'
6175 # FIXME: first we should search . and the directory the executable is in
6176 shlibpath_var=PATH
6179 darwin* | rhapsody*)
6180 dynamic_linker="$host_os dyld"
6181 version_type=darwin
6182 need_lib_prefix=no
6183 need_version=no
6184 # FIXME: Relying on posixy $() will cause problems for
6185 # cross-compilation, but unfortunately the echo tests do not
6186 # yet detect zsh echo's removal of \ escapes.
6187 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6188 soname_spec='${libname}${release}${major}$shared_ext'
6189 shlibpath_overrides_runpath=yes
6190 shlibpath_var=DYLD_LIBRARY_PATH
6191 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
6192 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6193 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6194 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"`
6196 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6199 dgux*)
6200 version_type=linux
6201 need_lib_prefix=no
6202 need_version=no
6203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6204 soname_spec='${libname}${release}${shared_ext}$major'
6205 shlibpath_var=LD_LIBRARY_PATH
6208 freebsd*)
6209 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6210 version_type=freebsd-$objformat
6211 case $version_type in
6212 freebsd-elf*)
6213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6214 need_version=no
6215 need_lib_prefix=no
6217 freebsd-*)
6218 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6219 need_version=yes
6221 esac
6222 shlibpath_var=LD_LIBRARY_PATH
6223 case $host_os in
6224 freebsd2*)
6225 shlibpath_overrides_runpath=yes
6227 freebsd3.01* | freebsdelf3.01*)
6228 shlibpath_overrides_runpath=yes
6229 hardcode_into_libs=yes
6231 *) # from 3.2 on
6232 shlibpath_overrides_runpath=no
6233 hardcode_into_libs=yes
6235 esac
6238 gnu*)
6239 version_type=linux
6240 need_lib_prefix=no
6241 need_version=no
6242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6243 soname_spec='${libname}${release}${shared_ext}$major'
6244 shlibpath_var=LD_LIBRARY_PATH
6245 hardcode_into_libs=yes
6248 hpux9* | hpux10* | hpux11*)
6249 # Give a soname corresponding to the major version so that dld.sl refuses to
6250 # link against other versions.
6251 version_type=sunos
6252 need_lib_prefix=no
6253 need_version=no
6254 case "$host_cpu" in
6255 ia64*)
6256 shrext='.so'
6257 hardcode_into_libs=yes
6258 dynamic_linker="$host_os dld.so"
6259 shlibpath_var=LD_LIBRARY_PATH
6260 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6262 soname_spec='${libname}${release}${shared_ext}$major'
6263 if test "X$HPUX_IA64_MODE" = X32; then
6264 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6265 else
6266 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6268 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6270 hppa*64*)
6271 shrext='.sl'
6272 hardcode_into_libs=yes
6273 dynamic_linker="$host_os dld.sl"
6274 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6275 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6277 soname_spec='${libname}${release}${shared_ext}$major'
6278 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6279 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6282 shrext='.sl'
6283 dynamic_linker="$host_os dld.sl"
6284 shlibpath_var=SHLIB_PATH
6285 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6287 soname_spec='${libname}${release}${shared_ext}$major'
6289 esac
6290 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6291 postinstall_cmds='chmod 555 $lib'
6294 irix5* | irix6* | nonstopux*)
6295 case $host_os in
6296 nonstopux*) version_type=nonstopux ;;
6298 if test "$lt_cv_prog_gnu_ld" = yes; then
6299 version_type=linux
6300 else
6301 version_type=irix
6302 fi ;;
6303 esac
6304 need_lib_prefix=no
6305 need_version=no
6306 soname_spec='${libname}${release}${shared_ext}$major'
6307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6308 case $host_os in
6309 irix5* | nonstopux*)
6310 libsuff= shlibsuff=
6313 case $LD in # libtool.m4 will add one of these switches to LD
6314 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6315 libsuff= shlibsuff= libmagic=32-bit;;
6316 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6317 libsuff=32 shlibsuff=N32 libmagic=N32;;
6318 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6319 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6320 *) libsuff= shlibsuff= libmagic=never-match;;
6321 esac
6323 esac
6324 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6325 shlibpath_overrides_runpath=no
6326 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6327 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6328 hardcode_into_libs=yes
6331 # No shared lib support for Linux oldld, aout, or coff.
6332 linux*oldld* | linux*aout* | linux*coff*)
6333 dynamic_linker=no
6336 # This must be Linux ELF.
6337 linux*|k*bsd*-gnu)
6338 version_type=linux
6339 need_lib_prefix=no
6340 need_version=no
6341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6342 soname_spec='${libname}${release}${shared_ext}$major'
6343 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6344 shlibpath_var=LD_LIBRARY_PATH
6345 shlibpath_overrides_runpath=no
6346 # This implies no fast_install, which is unacceptable.
6347 # Some rework will be needed to allow for fast_install
6348 # before this can be enabled.
6349 hardcode_into_libs=yes
6351 # We used to test for /lib/ld.so.1 and disable shared libraries on
6352 # powerpc, because MkLinux only supported shared libraries with the
6353 # GNU dynamic linker. Since this was broken with cross compilers,
6354 # most powerpc-linux boxes support dynamic linking these days and
6355 # people can always --disable-shared, the test was removed, and we
6356 # assume the GNU/Linux dynamic linker is in use.
6357 dynamic_linker='GNU/Linux ld.so'
6360 netbsd*)
6361 version_type=sunos
6362 need_lib_prefix=no
6363 need_version=no
6364 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6366 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6367 dynamic_linker='NetBSD (a.out) ld.so'
6368 else
6369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
6370 soname_spec='${libname}${release}${shared_ext}$major'
6371 dynamic_linker='NetBSD ld.elf_so'
6373 shlibpath_var=LD_LIBRARY_PATH
6374 shlibpath_overrides_runpath=yes
6375 hardcode_into_libs=yes
6378 newsos6)
6379 version_type=linux
6380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6381 shlibpath_var=LD_LIBRARY_PATH
6382 shlibpath_overrides_runpath=yes
6385 nto-qnx)
6386 version_type=linux
6387 need_lib_prefix=no
6388 need_version=no
6389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6390 soname_spec='${libname}${release}${shared_ext}$major'
6391 shlibpath_var=LD_LIBRARY_PATH
6392 shlibpath_overrides_runpath=yes
6395 openbsd*)
6396 version_type=sunos
6397 need_lib_prefix=no
6398 need_version=no
6399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6400 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6401 shlibpath_var=LD_LIBRARY_PATH
6402 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6403 case $host_os in
6404 openbsd2.[89] | openbsd2.[89].*)
6405 shlibpath_overrides_runpath=no
6408 shlibpath_overrides_runpath=yes
6410 esac
6411 else
6412 shlibpath_overrides_runpath=yes
6416 os2*)
6417 libname_spec='$name'
6418 shrext=".dll"
6419 need_lib_prefix=no
6420 library_names_spec='$libname${shared_ext} $libname.a'
6421 dynamic_linker='OS/2 ld.exe'
6422 shlibpath_var=LIBPATH
6425 osf3* | osf4* | osf5*)
6426 version_type=osf
6427 need_lib_prefix=no
6428 need_version=no
6429 soname_spec='${libname}${release}${shared_ext}$major'
6430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6431 shlibpath_var=LD_LIBRARY_PATH
6432 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6433 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6436 sco3.2v5*)
6437 version_type=osf
6438 soname_spec='${libname}${release}${shared_ext}$major'
6439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6440 shlibpath_var=LD_LIBRARY_PATH
6443 solaris*)
6444 version_type=linux
6445 need_lib_prefix=no
6446 need_version=no
6447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6448 soname_spec='${libname}${release}${shared_ext}$major'
6449 shlibpath_var=LD_LIBRARY_PATH
6450 shlibpath_overrides_runpath=yes
6451 hardcode_into_libs=yes
6452 # ldd complains unless libraries are executable
6453 postinstall_cmds='chmod +x $lib'
6456 sunos4*)
6457 version_type=sunos
6458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6459 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6460 shlibpath_var=LD_LIBRARY_PATH
6461 shlibpath_overrides_runpath=yes
6462 if test "$with_gnu_ld" = yes; then
6463 need_lib_prefix=no
6465 need_version=yes
6468 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6469 version_type=linux
6470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6471 soname_spec='${libname}${release}${shared_ext}$major'
6472 shlibpath_var=LD_LIBRARY_PATH
6473 case $host_vendor in
6474 sni)
6475 shlibpath_overrides_runpath=no
6476 need_lib_prefix=no
6477 export_dynamic_flag_spec='${wl}-Blargedynsym'
6478 runpath_var=LD_RUN_PATH
6480 siemens)
6481 need_lib_prefix=no
6483 motorola)
6484 need_lib_prefix=no
6485 need_version=no
6486 shlibpath_overrides_runpath=no
6487 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6489 esac
6492 sysv4*MP*)
6493 if test -d /usr/nec ;then
6494 version_type=linux
6495 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
6496 soname_spec='$libname${shared_ext}.$major'
6497 shlibpath_var=LD_LIBRARY_PATH
6501 uts4*)
6502 version_type=linux
6503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6504 soname_spec='${libname}${release}${shared_ext}$major'
6505 shlibpath_var=LD_LIBRARY_PATH
6509 dynamic_linker=no
6511 esac
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
6513 $as_echo "$dynamic_linker" >&6; }
6514 test "$dynamic_linker" = no && can_build_shared=no
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
6518 $as_echo_n "checking which variable specifies run-time library path... " >&6; }
6519 if test "${libltdl_cv_shlibpath_var+set}" = set; then :
6520 $as_echo_n "(cached) " >&6
6521 else
6522 libltdl_cv_shlibpath_var="$shlibpath_var"
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
6525 $as_echo "$libltdl_cv_shlibpath_var" >&6; }
6526 if test -n "$libltdl_cv_shlibpath_var"; then
6528 cat >>confdefs.h <<_ACEOF
6529 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
6530 _ACEOF
6536 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
6539 # Possibly build libgcj as many sub-libraries.
6540 # Check whether --enable-libgcj-sublibs was given.
6541 if test "${enable_libgcj_sublibs+set}" = set; then :
6542 enableval=$enable_libgcj_sublibs;
6546 if test -z "$enable_libgcj_sublibs"; then
6547 enable_libgcj_sublibs=$enable_libgcj_sublibs_default
6549 if test "$enable_libgcj_sublibs" = yes; then
6550 BUILD_SUBLIBS_TRUE=
6551 BUILD_SUBLIBS_FALSE='#'
6552 else
6553 BUILD_SUBLIBS_TRUE='#'
6554 BUILD_SUBLIBS_FALSE=
6557 if test "$enable_libgcj_sublibs" = yes ; then
6558 # In theory we could make do with only one override and simply
6559 # tag "_bc" onto the end of it when we use it to generate the
6560 # spec, but that's an ugly thing to do when there are multiple
6561 # words in the string and you're relying on the ordering to
6562 # append the correct one.
6563 libgcj_spec_lgcj_override="-lgcj-noncore -lgcj"
6564 libgcj_spec_lgcj_bc_override="-lgcj-noncore -lgcj_bc"
6568 # See if the user has requested runtime debugging.
6569 LIBGCJDEBUG="disable"
6571 # Check whether --enable-libgcj-debug was given.
6572 if test "${enable_libgcj_debug+set}" = set; then :
6573 enableval=$enable_libgcj_debug; if test "$enable_libgcj_debug" = yes; then
6575 $as_echo "#define __GCJ_DEBUG 1" >>confdefs.h
6577 LIBGCJDEBUG="enable"
6583 # Check whether --with-escher was given.
6584 if test "${with_escher+set}" = set; then :
6585 withval=$with_escher;
6588 case "$with_escher" in
6590 use_escher=false
6592 "no")
6593 use_escher=false
6595 "yes")
6596 as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
6599 use_escher=true
6601 esac
6603 # Determine which AWT peer libraries to build
6604 # Check whether --enable-java-awt was given.
6605 if test "${enable_java_awt+set}" = set; then :
6606 enableval=$enable_java_awt;
6610 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6611 use_xlib_awt=""
6612 use_gtk_awt=""
6613 use_qt_awt=""
6614 use_x_awt=""
6615 # The default toolkit to use is the first one specified.
6616 TOOLKIT=
6619 for peer in $peerlibs ; do
6620 case $peer in
6621 xlib)
6622 if test "$no_x" = yes; then
6623 echo "*** xlib peers requested but no X library available" 1>&2
6624 exit 1
6625 else
6626 use_xlib_awt="yes"
6627 if test -z "$TOOLKIT"; then
6628 TOOLKIT=gnu.awt.xlib.XToolkit
6632 gtk)
6633 if test "$no_x" = yes; then
6634 echo "*** gtk peers requested but no X library available" 1>&2
6635 exit 1
6636 else
6637 use_gtk_awt=yes
6638 if test -z "$TOOLKIT"; then
6639 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
6644 if test "$no_x" = yes; then
6645 # Perhaps we should admit the possibility of embedded Qt.
6646 echo "*** Qt peers requested but no X library available" 1>&2
6647 exit 1
6648 else
6649 use_qt_awt=yes
6650 if test -z "$TOOLKIT"; then
6651 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
6656 use_x_awt=yes
6657 if test -z "$TOOLKIT"; then
6658 TOOLKIT=gnu.java.awt.peer.x.XToolkit
6662 use_xlib_awt=
6663 use_gtk_awt=
6664 use_qt_awt=
6665 use_x_awt=
6666 break
6669 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
6670 exit 1
6671 esac
6672 done
6674 if test "$use_xlib_awt" = yes; then
6675 XLIB_AWT_TRUE=
6676 XLIB_AWT_FALSE='#'
6677 else
6678 XLIB_AWT_TRUE='#'
6679 XLIB_AWT_FALSE=
6682 if test "$use_x_awt" = yes; then
6683 X_AWT_TRUE=
6684 X_AWT_FALSE='#'
6685 else
6686 X_AWT_TRUE='#'
6687 X_AWT_FALSE=
6692 cat >>confdefs.h <<_ACEOF
6693 #define AWT_TOOLKIT "$TOOLKIT"
6694 _ACEOF
6697 expanded_prefix=$prefix
6698 if test "X$prefix" = XNONE; then
6699 expanded_prefix=${ac_default_prefix}
6703 cat >>confdefs.h <<_ACEOF
6704 #define LIBGCJ_PREFIX "$expanded_prefix"
6705 _ACEOF
6708 # Create standard.omit based on decisions we just made.
6709 cp $srcdir/standard.omit.in standard.omit
6710 if test "$use_xlib_awt" != yes; then
6711 echo gnu/awt/xlib >> standard.omit
6712 echo gnu/gcj/xlib >> standard.omit
6714 if test "$use_x_awt" != yes; then
6715 echo gnu/java/awt/peer/x >> standard.omit
6718 # Tools that need to be compiled against classpath's tools classes
6719 : > vm-tools-packages
6720 for package in gnu/gcj/tools/gc_analyze ; do
6721 echo $package >> standard.omit
6722 echo $package >> vm-tools-packages
6723 done
6725 if test -z "${with_multisubdir}"; then
6726 builddotdot=.
6727 else
6728 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
6731 NATIVE=yes
6733 # Which gcj and host gcj (for ecjx) do we use?
6734 which_gcj=default
6735 host_exeext=${ac_exeext}
6736 GCJ_FOR_ECJX='$(GCJ)'
6737 GCC_FOR_ECJX='$(CXX)'
6738 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
6739 if test -n "${with_cross_host}"; then
6740 # We are being configured with a cross compiler. We can't
6741 # use ac_exeext, because that is for the target platform.
6742 NATIVE=no
6743 cross_host_exeext=
6744 GCJ_FOR_ECJX="${with_cross_host}-gcj"
6745 GCC_FOR_ECJX="${with_cross_host}-gcc"
6746 case "${with_cross_host}" in
6747 *mingw* | *cygwin*)
6748 cross_host_exeext=.exe
6750 esac
6751 host_exeext=${cross_host_exeext}
6752 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
6753 if test x"$build_noncanonical" = x"$with_cross_host"; then
6754 # Ordinary cross (host!=target and host=build)
6755 which_gcj=built
6756 else
6757 # Canadian cross (host!=target and host!=build)
6758 which_gcj=cross
6760 else
6761 which_gcj=cross
6763 else
6764 # We are being configured with a native or crossed-native compiler
6765 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
6766 if test x"$build" = x"$host"; then
6767 # True native build (host=target and host=build)
6768 which_gcj=built
6769 else
6770 # Crossed-native build (host=target and host!=build)
6771 which_gcj=cross
6773 else
6774 which_gcj=path
6777 libgcjdir=`${PWDCMD-pwd}`
6778 case $GCJ in
6779 *" -B"*)
6780 # Just in case there is a comma in the build dir, quote it for the
6781 # sed command below.
6782 case $libgcjdir in
6783 *[,\\]*) qlibgcjdir=`echo "$libgcjdir" | sed 's:[,\\]:\\&:g'`;;
6784 *) qlibgcjdir=$libgcjdir;;
6785 esac
6786 GCJ=`echo "$GCJ" | sed "s, -B, -B$qlibgcjdir/&,"`
6789 GCJ=$GCJ" -B$libgcjdir/"
6791 esac
6792 case "${which_gcj}" in
6793 built)
6794 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
6796 cross)
6797 if test "x${with_newlib}" = "xyes"; then
6798 # FIXME (comment): Why is this needed?
6799 LIBGCC_UNWIND_INCLUDE=
6801 GCJH='$(target_noncanonical)-gcjh'
6803 path)
6804 GCJH=gcjh
6806 esac
6807 JAVAC="$GCJ -C"
6808 export JAVAC
6815 # Create it, so that compile/link tests don't fail
6816 test -f libgcj.spec || touch libgcj.spec
6820 # Set up to configure Classpath.
6821 # FIXME: no supported way to pass args in autoconf.
6822 # Disable tool wrappers to avoid ltdl.h configure check.
6823 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
6824 ac_configure_args="$ac_configure_args --disable-load-library"
6825 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
6826 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
6827 dir1=`cd $srcdir && pwd`
6828 dir2=`pwd`
6829 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
6830 ac_configure_args="$ac_configure_args --disable-core-jni"
6831 ac_configure_args="$ac_configure_args --disable-examples"
6832 ac_configure_args="$ac_configure_args --with-glibj=build"
6833 if test "$browser_plugin_enabled" != yes; then
6834 ac_configure_args="$ac_configure_args --disable-plugin"
6835 else
6836 ac_configure_args="$ac_configure_args --enable-plugin"
6838 if test "$gconf_enabled" != yes; then
6839 ac_configure_args="$ac_configure_args --disable-gconf-peer"
6840 ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
6842 if test "$use_gtk_awt" != yes; then
6843 ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
6845 if test "$use_qt_awt" != yes; then
6846 ac_configure_args="$ac_configure_args --disable-qt-peer"
6847 else
6848 # We need this as qt is disabled by default in classpath.
6849 ac_configure_args="$ac_configure_args --enable-qt-peer"
6851 if test "$use_x_awt" != yes; then
6852 ac_configure_args="$ac_configure_args --without-escher"
6853 else
6854 # We need this as escher is disabled by default in classpath.
6855 if test "$use_escher" != true; then
6856 as_fn_error "Please supply an absolute path to the Escher library" "$LINENO" 5
6857 else
6858 ac_configure_args="$ac_configure_args --with-escher=$with_escher"
6861 if test "x$BUILD_GJDOC" = xno; then
6862 ac_configure_args="$ac_configure_args --disable-gjdoc"
6864 # -Werror causes unavoidable problems in code using alsa.
6865 ac_configure_args="$ac_configure_args --disable-regen-headers"
6866 ac_configure_args="$ac_configure_args --disable-Werror"
6868 # Only use libltdl for non-newlib builds.
6869 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
6870 case $enable_ltdl_convenience in
6871 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
6872 "") enable_ltdl_convenience=yes
6873 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
6874 esac
6875 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
6876 LTDLINCL='-I${top_srcdir}/''libltdl'
6877 # For backwards non-gettext consistent compatibility...
6878 INCLTDL="$LTDLINCL"
6880 enable_dlopen=yes
6884 DIRLTDL=libltdl
6886 $as_echo "#define USE_LTDL 1" >>confdefs.h
6888 # Sigh. Libtool's macro doesn't do the right thing.
6889 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
6890 # FIXME: this is a hack.
6891 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
6892 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
6897 case `pwd` in
6898 *\ * | *\ *)
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6900 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6901 esac
6905 macro_version='2.2.7a'
6906 macro_revision='1.3134'
6920 ltmain="$ac_aux_dir/ltmain.sh"
6922 # Backslashify metacharacters that are still active within
6923 # double-quoted strings.
6924 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6926 # Same as above, but do not quote variable references.
6927 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6929 # Sed substitution to delay expansion of an escaped shell variable in a
6930 # double_quote_subst'ed string.
6931 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6933 # Sed substitution to delay expansion of an escaped single quote.
6934 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6936 # Sed substitution to avoid accidental globbing in evaled expressions
6937 no_glob_subst='s/\*/\\\*/g'
6939 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6940 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6941 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6944 $as_echo_n "checking how to print strings... " >&6; }
6945 # Test print first, because it will be a builtin if present.
6946 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6947 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6948 ECHO='print -r --'
6949 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6950 ECHO='printf %s\n'
6951 else
6952 # Use this function as a fallback that always works.
6953 func_fallback_echo ()
6955 eval 'cat <<_LTECHO_EOF
6957 _LTECHO_EOF'
6959 ECHO='func_fallback_echo'
6962 # func_echo_all arg...
6963 # Invoke $ECHO with all args, space-separated.
6964 func_echo_all ()
6966 $ECHO ""
6969 case "$ECHO" in
6970 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6971 $as_echo "printf" >&6; } ;;
6972 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6973 $as_echo "print -r" >&6; } ;;
6974 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6975 $as_echo "cat" >&6; } ;;
6976 esac
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6992 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6993 if test "${ac_cv_path_SED+set}" = set; then :
6994 $as_echo_n "(cached) " >&6
6995 else
6996 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6997 for ac_i in 1 2 3 4 5 6 7; do
6998 ac_script="$ac_script$as_nl$ac_script"
6999 done
7000 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7001 { ac_script=; unset ac_script;}
7002 if test -z "$SED"; then
7003 ac_path_SED_found=false
7004 # Loop through the user's path and test for each of PROGNAME-LIST
7005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006 for as_dir in $PATH
7008 IFS=$as_save_IFS
7009 test -z "$as_dir" && as_dir=.
7010 for ac_prog in sed gsed; do
7011 for ac_exec_ext in '' $ac_executable_extensions; do
7012 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7013 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7014 # Check for GNU ac_path_SED and select it if it is found.
7015 # Check for GNU $ac_path_SED
7016 case `"$ac_path_SED" --version 2>&1` in
7017 *GNU*)
7018 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7020 ac_count=0
7021 $as_echo_n 0123456789 >"conftest.in"
7022 while :
7024 cat "conftest.in" "conftest.in" >"conftest.tmp"
7025 mv "conftest.tmp" "conftest.in"
7026 cp "conftest.in" "conftest.nl"
7027 $as_echo '' >> "conftest.nl"
7028 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7029 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7030 as_fn_arith $ac_count + 1 && ac_count=$as_val
7031 if test $ac_count -gt ${ac_path_SED_max-0}; then
7032 # Best one so far, save it but keep looking for a better one
7033 ac_cv_path_SED="$ac_path_SED"
7034 ac_path_SED_max=$ac_count
7036 # 10*(2^10) chars as input seems more than enough
7037 test $ac_count -gt 10 && break
7038 done
7039 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7040 esac
7042 $ac_path_SED_found && break 3
7043 done
7044 done
7045 done
7046 IFS=$as_save_IFS
7047 if test -z "$ac_cv_path_SED"; then
7048 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7050 else
7051 ac_cv_path_SED=$SED
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7056 $as_echo "$ac_cv_path_SED" >&6; }
7057 SED="$ac_cv_path_SED"
7058 rm -f conftest.sed
7060 test -z "$SED" && SED=sed
7061 Xsed="$SED -e 1s/^X//"
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7074 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7075 if test "${ac_cv_path_GREP+set}" = set; then :
7076 $as_echo_n "(cached) " >&6
7077 else
7078 if test -z "$GREP"; then
7079 ac_path_GREP_found=false
7080 # Loop through the user's path and test for each of PROGNAME-LIST
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7084 IFS=$as_save_IFS
7085 test -z "$as_dir" && as_dir=.
7086 for ac_prog in grep ggrep; do
7087 for ac_exec_ext in '' $ac_executable_extensions; do
7088 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7089 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7090 # Check for GNU ac_path_GREP and select it if it is found.
7091 # Check for GNU $ac_path_GREP
7092 case `"$ac_path_GREP" --version 2>&1` in
7093 *GNU*)
7094 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7096 ac_count=0
7097 $as_echo_n 0123456789 >"conftest.in"
7098 while :
7100 cat "conftest.in" "conftest.in" >"conftest.tmp"
7101 mv "conftest.tmp" "conftest.in"
7102 cp "conftest.in" "conftest.nl"
7103 $as_echo 'GREP' >> "conftest.nl"
7104 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7105 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7106 as_fn_arith $ac_count + 1 && ac_count=$as_val
7107 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7108 # Best one so far, save it but keep looking for a better one
7109 ac_cv_path_GREP="$ac_path_GREP"
7110 ac_path_GREP_max=$ac_count
7112 # 10*(2^10) chars as input seems more than enough
7113 test $ac_count -gt 10 && break
7114 done
7115 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7116 esac
7118 $ac_path_GREP_found && break 3
7119 done
7120 done
7121 done
7122 IFS=$as_save_IFS
7123 if test -z "$ac_cv_path_GREP"; then
7124 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7126 else
7127 ac_cv_path_GREP=$GREP
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7132 $as_echo "$ac_cv_path_GREP" >&6; }
7133 GREP="$ac_cv_path_GREP"
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7137 $as_echo_n "checking for egrep... " >&6; }
7138 if test "${ac_cv_path_EGREP+set}" = set; then :
7139 $as_echo_n "(cached) " >&6
7140 else
7141 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7142 then ac_cv_path_EGREP="$GREP -E"
7143 else
7144 if test -z "$EGREP"; then
7145 ac_path_EGREP_found=false
7146 # Loop through the user's path and test for each of PROGNAME-LIST
7147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7150 IFS=$as_save_IFS
7151 test -z "$as_dir" && as_dir=.
7152 for ac_prog in egrep; do
7153 for ac_exec_ext in '' $ac_executable_extensions; do
7154 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7155 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7156 # Check for GNU ac_path_EGREP and select it if it is found.
7157 # Check for GNU $ac_path_EGREP
7158 case `"$ac_path_EGREP" --version 2>&1` in
7159 *GNU*)
7160 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7162 ac_count=0
7163 $as_echo_n 0123456789 >"conftest.in"
7164 while :
7166 cat "conftest.in" "conftest.in" >"conftest.tmp"
7167 mv "conftest.tmp" "conftest.in"
7168 cp "conftest.in" "conftest.nl"
7169 $as_echo 'EGREP' >> "conftest.nl"
7170 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7171 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7172 as_fn_arith $ac_count + 1 && ac_count=$as_val
7173 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7174 # Best one so far, save it but keep looking for a better one
7175 ac_cv_path_EGREP="$ac_path_EGREP"
7176 ac_path_EGREP_max=$ac_count
7178 # 10*(2^10) chars as input seems more than enough
7179 test $ac_count -gt 10 && break
7180 done
7181 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7182 esac
7184 $ac_path_EGREP_found && break 3
7185 done
7186 done
7187 done
7188 IFS=$as_save_IFS
7189 if test -z "$ac_cv_path_EGREP"; then
7190 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7192 else
7193 ac_cv_path_EGREP=$EGREP
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7199 $as_echo "$ac_cv_path_EGREP" >&6; }
7200 EGREP="$ac_cv_path_EGREP"
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7204 $as_echo_n "checking for fgrep... " >&6; }
7205 if test "${ac_cv_path_FGREP+set}" = set; then :
7206 $as_echo_n "(cached) " >&6
7207 else
7208 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7209 then ac_cv_path_FGREP="$GREP -F"
7210 else
7211 if test -z "$FGREP"; then
7212 ac_path_FGREP_found=false
7213 # Loop through the user's path and test for each of PROGNAME-LIST
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7217 IFS=$as_save_IFS
7218 test -z "$as_dir" && as_dir=.
7219 for ac_prog in fgrep; do
7220 for ac_exec_ext in '' $ac_executable_extensions; do
7221 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7222 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7223 # Check for GNU ac_path_FGREP and select it if it is found.
7224 # Check for GNU $ac_path_FGREP
7225 case `"$ac_path_FGREP" --version 2>&1` in
7226 *GNU*)
7227 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7229 ac_count=0
7230 $as_echo_n 0123456789 >"conftest.in"
7231 while :
7233 cat "conftest.in" "conftest.in" >"conftest.tmp"
7234 mv "conftest.tmp" "conftest.in"
7235 cp "conftest.in" "conftest.nl"
7236 $as_echo 'FGREP' >> "conftest.nl"
7237 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7238 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7239 as_fn_arith $ac_count + 1 && ac_count=$as_val
7240 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7241 # Best one so far, save it but keep looking for a better one
7242 ac_cv_path_FGREP="$ac_path_FGREP"
7243 ac_path_FGREP_max=$ac_count
7245 # 10*(2^10) chars as input seems more than enough
7246 test $ac_count -gt 10 && break
7247 done
7248 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7249 esac
7251 $ac_path_FGREP_found && break 3
7252 done
7253 done
7254 done
7255 IFS=$as_save_IFS
7256 if test -z "$ac_cv_path_FGREP"; then
7257 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7259 else
7260 ac_cv_path_FGREP=$FGREP
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7266 $as_echo "$ac_cv_path_FGREP" >&6; }
7267 FGREP="$ac_cv_path_FGREP"
7270 test -z "$GREP" && GREP=grep
7290 # Check whether --with-gnu-ld was given.
7291 if test "${with_gnu_ld+set}" = set; then :
7292 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7293 else
7294 with_gnu_ld=no
7297 ac_prog=ld
7298 if test "$GCC" = yes; then
7299 # Check if gcc -print-prog-name=ld gives a path.
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7301 $as_echo_n "checking for ld used by $CC... " >&6; }
7302 case $host in
7303 *-*-mingw*)
7304 # gcc leaves a trailing carriage return which upsets mingw
7305 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7307 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7308 esac
7309 case $ac_prog in
7310 # Accept absolute paths.
7311 [\\/]* | ?:[\\/]*)
7312 re_direlt='/[^/][^/]*/\.\./'
7313 # Canonicalize the pathname of ld
7314 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7315 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7316 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7317 done
7318 test -z "$LD" && LD="$ac_prog"
7321 # If it fails, then pretend we aren't using GCC.
7322 ac_prog=ld
7325 # If it is relative, then search for the first ld in PATH.
7326 with_gnu_ld=unknown
7328 esac
7329 elif test "$with_gnu_ld" = yes; then
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7331 $as_echo_n "checking for GNU ld... " >&6; }
7332 else
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7334 $as_echo_n "checking for non-GNU ld... " >&6; }
7336 if test "${lt_cv_path_LD+set}" = set; then :
7337 $as_echo_n "(cached) " >&6
7338 else
7339 if test -z "$LD"; then
7340 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7341 for ac_dir in $PATH; do
7342 IFS="$lt_save_ifs"
7343 test -z "$ac_dir" && ac_dir=.
7344 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7345 lt_cv_path_LD="$ac_dir/$ac_prog"
7346 # Check to see if the program is GNU ld. I'd rather use --version,
7347 # but apparently some variants of GNU ld only accept -v.
7348 # Break only if it was the GNU/non-GNU ld that we prefer.
7349 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7350 *GNU* | *'with BFD'*)
7351 test "$with_gnu_ld" != no && break
7354 test "$with_gnu_ld" != yes && break
7356 esac
7358 done
7359 IFS="$lt_save_ifs"
7360 else
7361 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7365 LD="$lt_cv_path_LD"
7366 if test -n "$LD"; then
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7368 $as_echo "$LD" >&6; }
7369 else
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7371 $as_echo "no" >&6; }
7373 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7375 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7376 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7377 $as_echo_n "(cached) " >&6
7378 else
7379 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7380 case `$LD -v 2>&1 </dev/null` in
7381 *GNU* | *'with BFD'*)
7382 lt_cv_prog_gnu_ld=yes
7385 lt_cv_prog_gnu_ld=no
7387 esac
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7390 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7391 with_gnu_ld=$lt_cv_prog_gnu_ld
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7402 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7403 if test "${lt_cv_path_NM+set}" = set; then :
7404 $as_echo_n "(cached) " >&6
7405 else
7406 if test -n "$NM"; then
7407 # Let the user override the test.
7408 lt_cv_path_NM="$NM"
7409 else
7410 lt_nm_to_check="${ac_tool_prefix}nm"
7411 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7412 lt_nm_to_check="$lt_nm_to_check nm"
7414 for lt_tmp_nm in $lt_nm_to_check; do
7415 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7416 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7417 IFS="$lt_save_ifs"
7418 test -z "$ac_dir" && ac_dir=.
7419 tmp_nm="$ac_dir/$lt_tmp_nm"
7420 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7421 # Check to see if the nm accepts a BSD-compat flag.
7422 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7423 # nm: unknown option "B" ignored
7424 # Tru64's nm complains that /dev/null is an invalid object file
7425 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7426 */dev/null* | *'Invalid file or object type'*)
7427 lt_cv_path_NM="$tmp_nm -B"
7428 break
7431 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7432 */dev/null*)
7433 lt_cv_path_NM="$tmp_nm -p"
7434 break
7437 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7438 continue # so that we can try to find one that supports BSD flags
7440 esac
7442 esac
7444 done
7445 IFS="$lt_save_ifs"
7446 done
7447 : ${lt_cv_path_NM=no}
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7451 $as_echo "$lt_cv_path_NM" >&6; }
7452 if test "$lt_cv_path_NM" != "no"; then
7453 NM="$lt_cv_path_NM"
7454 else
7455 # Didn't find any BSD compatible name lister, look for dumpbin.
7456 if test -n "$DUMPBIN"; then :
7457 # Let the user override the test.
7458 else
7459 if test -n "$ac_tool_prefix"; then
7460 for ac_prog in dumpbin "link -dump"
7462 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7463 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7465 $as_echo_n "checking for $ac_word... " >&6; }
7466 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7467 $as_echo_n "(cached) " >&6
7468 else
7469 if test -n "$DUMPBIN"; then
7470 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7471 else
7472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473 for as_dir in $PATH
7475 IFS=$as_save_IFS
7476 test -z "$as_dir" && as_dir=.
7477 for ac_exec_ext in '' $ac_executable_extensions; do
7478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7479 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7481 break 2
7483 done
7484 done
7485 IFS=$as_save_IFS
7489 DUMPBIN=$ac_cv_prog_DUMPBIN
7490 if test -n "$DUMPBIN"; then
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7492 $as_echo "$DUMPBIN" >&6; }
7493 else
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495 $as_echo "no" >&6; }
7499 test -n "$DUMPBIN" && break
7500 done
7502 if test -z "$DUMPBIN"; then
7503 ac_ct_DUMPBIN=$DUMPBIN
7504 for ac_prog in dumpbin "link -dump"
7506 # Extract the first word of "$ac_prog", so it can be a program name with args.
7507 set dummy $ac_prog; ac_word=$2
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7509 $as_echo_n "checking for $ac_word... " >&6; }
7510 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7511 $as_echo_n "(cached) " >&6
7512 else
7513 if test -n "$ac_ct_DUMPBIN"; then
7514 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7515 else
7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 for as_dir in $PATH
7519 IFS=$as_save_IFS
7520 test -z "$as_dir" && as_dir=.
7521 for ac_exec_ext in '' $ac_executable_extensions; do
7522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7523 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 break 2
7527 done
7528 done
7529 IFS=$as_save_IFS
7533 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7534 if test -n "$ac_ct_DUMPBIN"; then
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7536 $as_echo "$ac_ct_DUMPBIN" >&6; }
7537 else
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7539 $as_echo "no" >&6; }
7543 test -n "$ac_ct_DUMPBIN" && break
7544 done
7546 if test "x$ac_ct_DUMPBIN" = x; then
7547 DUMPBIN=":"
7548 else
7549 case $cross_compiling:$ac_tool_warned in
7550 yes:)
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7553 ac_tool_warned=yes ;;
7554 esac
7555 DUMPBIN=$ac_ct_DUMPBIN
7559 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7560 *COFF*)
7561 DUMPBIN="$DUMPBIN -symbols"
7564 DUMPBIN=:
7566 esac
7569 if test "$DUMPBIN" != ":"; then
7570 NM="$DUMPBIN"
7573 test -z "$NM" && NM=nm
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7581 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7582 if test "${lt_cv_nm_interface+set}" = set; then :
7583 $as_echo_n "(cached) " >&6
7584 else
7585 lt_cv_nm_interface="BSD nm"
7586 echo "int some_variable = 0;" > conftest.$ac_ext
7587 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7588 (eval "$ac_compile" 2>conftest.err)
7589 cat conftest.err >&5
7590 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7591 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7592 cat conftest.err >&5
7593 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7594 cat conftest.out >&5
7595 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7596 lt_cv_nm_interface="MS dumpbin"
7598 rm -f conftest*
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7601 $as_echo "$lt_cv_nm_interface" >&6; }
7603 # find the maximum length of command line arguments
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7605 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7606 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7607 $as_echo_n "(cached) " >&6
7608 else
7610 teststring="ABCD"
7612 case $build_os in
7613 msdosdjgpp*)
7614 # On DJGPP, this test can blow up pretty badly due to problems in libc
7615 # (any single argument exceeding 2000 bytes causes a buffer overrun
7616 # during glob expansion). Even if it were fixed, the result of this
7617 # check would be larger than it should be.
7618 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7621 gnu*)
7622 # Under GNU Hurd, this test is not required because there is
7623 # no limit to the length of command line arguments.
7624 # Libtool will interpret -1 as no limit whatsoever
7625 lt_cv_sys_max_cmd_len=-1;
7628 cygwin* | mingw* | cegcc*)
7629 # On Win9x/ME, this test blows up -- it succeeds, but takes
7630 # about 5 minutes as the teststring grows exponentially.
7631 # Worse, since 9x/ME are not pre-emptively multitasking,
7632 # you end up with a "frozen" computer, even though with patience
7633 # the test eventually succeeds (with a max line length of 256k).
7634 # Instead, let's just punt: use the minimum linelength reported by
7635 # all of the supported platforms: 8192 (on NT/2K/XP).
7636 lt_cv_sys_max_cmd_len=8192;
7639 mint*)
7640 # On MiNT this can take a long time and run out of memory.
7641 lt_cv_sys_max_cmd_len=8192;
7644 amigaos*)
7645 # On AmigaOS with pdksh, this test takes hours, literally.
7646 # So we just punt and use a minimum line length of 8192.
7647 lt_cv_sys_max_cmd_len=8192;
7650 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7651 # This has been around since 386BSD, at least. Likely further.
7652 if test -x /sbin/sysctl; then
7653 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7654 elif test -x /usr/sbin/sysctl; then
7655 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7656 else
7657 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7659 # And add a safety zone
7660 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7661 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7664 interix*)
7665 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7666 lt_cv_sys_max_cmd_len=196608
7669 osf*)
7670 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7671 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7672 # nice to cause kernel panics so lets avoid the loop below.
7673 # First set a reasonable default.
7674 lt_cv_sys_max_cmd_len=16384
7676 if test -x /sbin/sysconfig; then
7677 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7678 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7679 esac
7682 sco3.2v5*)
7683 lt_cv_sys_max_cmd_len=102400
7685 sysv5* | sco5v6* | sysv4.2uw2*)
7686 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7687 if test -n "$kargmax"; then
7688 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7689 else
7690 lt_cv_sys_max_cmd_len=32768
7694 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7695 if test -n "$lt_cv_sys_max_cmd_len"; then
7696 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7697 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7698 else
7699 # Make teststring a little bigger before we do anything with it.
7700 # a 1K string should be a reasonable start.
7701 for i in 1 2 3 4 5 6 7 8 ; do
7702 teststring=$teststring$teststring
7703 done
7704 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7705 # If test is not a shell built-in, we'll probably end up computing a
7706 # maximum length that is only half of the actual maximum length, but
7707 # we can't tell.
7708 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7709 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7710 test $i != 17 # 1/2 MB should be enough
7712 i=`expr $i + 1`
7713 teststring=$teststring$teststring
7714 done
7715 # Only check the string length outside the loop.
7716 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7717 teststring=
7718 # Add a significant safety factor because C++ compilers can tack on
7719 # massive amounts of additional arguments before passing them to the
7720 # linker. It appears as though 1/2 is a usable value.
7721 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7724 esac
7728 if test -n $lt_cv_sys_max_cmd_len ; then
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7730 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7731 else
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7733 $as_echo "none" >&6; }
7735 max_cmd_len=$lt_cv_sys_max_cmd_len
7742 : ${CP="cp -f"}
7743 : ${MV="mv -f"}
7744 : ${RM="rm -f"}
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7747 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7748 # Try some XSI features
7749 xsi_shell=no
7750 ( _lt_dummy="a/b/c"
7751 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7752 = c,a/b,, \
7753 && eval 'test $(( 1 + 1 )) -eq 2 \
7754 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7755 && xsi_shell=yes
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7757 $as_echo "$xsi_shell" >&6; }
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7761 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7762 lt_shell_append=no
7763 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7764 >/dev/null 2>&1 \
7765 && lt_shell_append=yes
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7767 $as_echo "$lt_shell_append" >&6; }
7770 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7771 lt_unset=unset
7772 else
7773 lt_unset=false
7780 # test EBCDIC or ASCII
7781 case `echo X|tr X '\101'` in
7782 A) # ASCII based system
7783 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7784 lt_SP2NL='tr \040 \012'
7785 lt_NL2SP='tr \015\012 \040\040'
7787 *) # EBCDIC based system
7788 lt_SP2NL='tr \100 \n'
7789 lt_NL2SP='tr \r\n \100\100'
7791 esac
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7802 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7803 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7804 $as_echo_n "(cached) " >&6
7805 else
7806 lt_cv_ld_reload_flag='-r'
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7809 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7810 reload_flag=$lt_cv_ld_reload_flag
7811 case $reload_flag in
7812 "" | " "*) ;;
7813 *) reload_flag=" $reload_flag" ;;
7814 esac
7815 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7816 case $host_os in
7817 darwin*)
7818 if test "$GCC" = yes; then
7819 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7820 else
7821 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7824 esac
7834 if test -n "$ac_tool_prefix"; then
7835 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7836 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7838 $as_echo_n "checking for $ac_word... " >&6; }
7839 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7840 $as_echo_n "(cached) " >&6
7841 else
7842 if test -n "$OBJDUMP"; then
7843 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7844 else
7845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846 for as_dir in $PATH
7848 IFS=$as_save_IFS
7849 test -z "$as_dir" && as_dir=.
7850 for ac_exec_ext in '' $ac_executable_extensions; do
7851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7852 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7854 break 2
7856 done
7857 done
7858 IFS=$as_save_IFS
7862 OBJDUMP=$ac_cv_prog_OBJDUMP
7863 if test -n "$OBJDUMP"; then
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7865 $as_echo "$OBJDUMP" >&6; }
7866 else
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868 $as_echo "no" >&6; }
7873 if test -z "$ac_cv_prog_OBJDUMP"; then
7874 ac_ct_OBJDUMP=$OBJDUMP
7875 # Extract the first word of "objdump", so it can be a program name with args.
7876 set dummy objdump; ac_word=$2
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7878 $as_echo_n "checking for $ac_word... " >&6; }
7879 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7880 $as_echo_n "(cached) " >&6
7881 else
7882 if test -n "$ac_ct_OBJDUMP"; then
7883 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7884 else
7885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7886 for as_dir in $PATH
7888 IFS=$as_save_IFS
7889 test -z "$as_dir" && as_dir=.
7890 for ac_exec_ext in '' $ac_executable_extensions; do
7891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7892 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7894 break 2
7896 done
7897 done
7898 IFS=$as_save_IFS
7902 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7903 if test -n "$ac_ct_OBJDUMP"; then
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7905 $as_echo "$ac_ct_OBJDUMP" >&6; }
7906 else
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908 $as_echo "no" >&6; }
7911 if test "x$ac_ct_OBJDUMP" = x; then
7912 OBJDUMP="false"
7913 else
7914 case $cross_compiling:$ac_tool_warned in
7915 yes:)
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7918 ac_tool_warned=yes ;;
7919 esac
7920 OBJDUMP=$ac_ct_OBJDUMP
7922 else
7923 OBJDUMP="$ac_cv_prog_OBJDUMP"
7926 test -z "$OBJDUMP" && OBJDUMP=objdump
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7937 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7938 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7939 $as_echo_n "(cached) " >&6
7940 else
7941 lt_cv_file_magic_cmd='$MAGIC_CMD'
7942 lt_cv_file_magic_test_file=
7943 lt_cv_deplibs_check_method='unknown'
7944 # Need to set the preceding variable on all platforms that support
7945 # interlibrary dependencies.
7946 # 'none' -- dependencies not supported.
7947 # `unknown' -- same as none, but documents that we really don't know.
7948 # 'pass_all' -- all dependencies passed with no checks.
7949 # 'test_compile' -- check by making test program.
7950 # 'file_magic [[regex]]' -- check by looking for files in library path
7951 # which responds to the $file_magic_cmd with a given extended regex.
7952 # If you have `file' or equivalent on your system and you're not sure
7953 # whether `pass_all' will *always* work, you probably want this one.
7955 case $host_os in
7956 aix[4-9]*)
7957 lt_cv_deplibs_check_method=pass_all
7960 beos*)
7961 lt_cv_deplibs_check_method=pass_all
7964 bsdi[45]*)
7965 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7966 lt_cv_file_magic_cmd='/usr/bin/file -L'
7967 lt_cv_file_magic_test_file=/shlib/libc.so
7970 cygwin*)
7971 # func_win32_libid is a shell function defined in ltmain.sh
7972 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7973 lt_cv_file_magic_cmd='func_win32_libid'
7976 mingw* | pw32*)
7977 # Base MSYS/MinGW do not provide the 'file' command needed by
7978 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7979 # unless we find 'file', for example because we are cross-compiling.
7980 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7981 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7982 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7983 lt_cv_file_magic_cmd='func_win32_libid'
7984 else
7985 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7986 lt_cv_file_magic_cmd='$OBJDUMP -f'
7990 cegcc*)
7991 # use the weaker test based on 'objdump'. See mingw*.
7992 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7993 lt_cv_file_magic_cmd='$OBJDUMP -f'
7996 darwin* | rhapsody*)
7997 lt_cv_deplibs_check_method=pass_all
8000 freebsd* | dragonfly*)
8001 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8002 case $host_cpu in
8003 i*86 )
8004 # Not sure whether the presence of OpenBSD here was a mistake.
8005 # Let's accept both of them until this is cleared up.
8006 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8007 lt_cv_file_magic_cmd=/usr/bin/file
8008 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8010 esac
8011 else
8012 lt_cv_deplibs_check_method=pass_all
8016 gnu*)
8017 lt_cv_deplibs_check_method=pass_all
8020 haiku*)
8021 lt_cv_deplibs_check_method=pass_all
8024 hpux10.20* | hpux11*)
8025 lt_cv_file_magic_cmd=/usr/bin/file
8026 case $host_cpu in
8027 ia64*)
8028 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8029 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8031 hppa*64*)
8032 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]'
8033 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8036 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8037 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8039 esac
8042 interix[3-9]*)
8043 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8044 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8047 irix5* | irix6* | nonstopux*)
8048 case $LD in
8049 *-32|*"-32 ") libmagic=32-bit;;
8050 *-n32|*"-n32 ") libmagic=N32;;
8051 *-64|*"-64 ") libmagic=64-bit;;
8052 *) libmagic=never-match;;
8053 esac
8054 lt_cv_deplibs_check_method=pass_all
8057 # This must be Linux ELF.
8058 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8059 lt_cv_deplibs_check_method=pass_all
8062 netbsd*)
8063 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8064 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8065 else
8066 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8070 newos6*)
8071 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8072 lt_cv_file_magic_cmd=/usr/bin/file
8073 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8076 *nto* | *qnx*)
8077 lt_cv_deplibs_check_method=pass_all
8080 openbsd*)
8081 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8082 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8083 else
8084 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8088 osf3* | osf4* | osf5*)
8089 lt_cv_deplibs_check_method=pass_all
8092 rdos*)
8093 lt_cv_deplibs_check_method=pass_all
8096 solaris*)
8097 lt_cv_deplibs_check_method=pass_all
8100 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8101 lt_cv_deplibs_check_method=pass_all
8104 sysv4 | sysv4.3*)
8105 case $host_vendor in
8106 motorola)
8107 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]'
8108 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8110 ncr)
8111 lt_cv_deplibs_check_method=pass_all
8113 sequent)
8114 lt_cv_file_magic_cmd='/bin/file'
8115 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8117 sni)
8118 lt_cv_file_magic_cmd='/bin/file'
8119 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8120 lt_cv_file_magic_test_file=/lib/libc.so
8122 siemens)
8123 lt_cv_deplibs_check_method=pass_all
8126 lt_cv_deplibs_check_method=pass_all
8128 esac
8131 tpf*)
8132 lt_cv_deplibs_check_method=pass_all
8134 esac
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8138 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8139 file_magic_cmd=$lt_cv_file_magic_cmd
8140 deplibs_check_method=$lt_cv_deplibs_check_method
8141 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8154 if test -n "$ac_tool_prefix"; then
8155 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8156 set dummy ${ac_tool_prefix}ar; ac_word=$2
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8158 $as_echo_n "checking for $ac_word... " >&6; }
8159 if test "${ac_cv_prog_AR+set}" = set; then :
8160 $as_echo_n "(cached) " >&6
8161 else
8162 if test -n "$AR"; then
8163 ac_cv_prog_AR="$AR" # Let the user override the test.
8164 else
8165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8166 for as_dir in $PATH
8168 IFS=$as_save_IFS
8169 test -z "$as_dir" && as_dir=.
8170 for ac_exec_ext in '' $ac_executable_extensions; do
8171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8172 ac_cv_prog_AR="${ac_tool_prefix}ar"
8173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8174 break 2
8176 done
8177 done
8178 IFS=$as_save_IFS
8182 AR=$ac_cv_prog_AR
8183 if test -n "$AR"; then
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8185 $as_echo "$AR" >&6; }
8186 else
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8188 $as_echo "no" >&6; }
8193 if test -z "$ac_cv_prog_AR"; then
8194 ac_ct_AR=$AR
8195 # Extract the first word of "ar", so it can be a program name with args.
8196 set dummy ar; ac_word=$2
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8198 $as_echo_n "checking for $ac_word... " >&6; }
8199 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8200 $as_echo_n "(cached) " >&6
8201 else
8202 if test -n "$ac_ct_AR"; then
8203 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8204 else
8205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8206 for as_dir in $PATH
8208 IFS=$as_save_IFS
8209 test -z "$as_dir" && as_dir=.
8210 for ac_exec_ext in '' $ac_executable_extensions; do
8211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8212 ac_cv_prog_ac_ct_AR="ar"
8213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8214 break 2
8216 done
8217 done
8218 IFS=$as_save_IFS
8222 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8223 if test -n "$ac_ct_AR"; then
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8225 $as_echo "$ac_ct_AR" >&6; }
8226 else
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8228 $as_echo "no" >&6; }
8231 if test "x$ac_ct_AR" = x; then
8232 AR="false"
8233 else
8234 case $cross_compiling:$ac_tool_warned in
8235 yes:)
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8238 ac_tool_warned=yes ;;
8239 esac
8240 AR=$ac_ct_AR
8242 else
8243 AR="$ac_cv_prog_AR"
8246 test -z "$AR" && AR=ar
8247 test -z "$AR_FLAGS" && AR_FLAGS=cru
8259 if test -n "$ac_tool_prefix"; then
8260 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8261 set dummy ${ac_tool_prefix}strip; ac_word=$2
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8263 $as_echo_n "checking for $ac_word... " >&6; }
8264 if test "${ac_cv_prog_STRIP+set}" = set; then :
8265 $as_echo_n "(cached) " >&6
8266 else
8267 if test -n "$STRIP"; then
8268 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8269 else
8270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271 for as_dir in $PATH
8273 IFS=$as_save_IFS
8274 test -z "$as_dir" && as_dir=.
8275 for ac_exec_ext in '' $ac_executable_extensions; do
8276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8277 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8279 break 2
8281 done
8282 done
8283 IFS=$as_save_IFS
8287 STRIP=$ac_cv_prog_STRIP
8288 if test -n "$STRIP"; then
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8290 $as_echo "$STRIP" >&6; }
8291 else
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293 $as_echo "no" >&6; }
8298 if test -z "$ac_cv_prog_STRIP"; then
8299 ac_ct_STRIP=$STRIP
8300 # Extract the first word of "strip", so it can be a program name with args.
8301 set dummy strip; ac_word=$2
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8303 $as_echo_n "checking for $ac_word... " >&6; }
8304 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8305 $as_echo_n "(cached) " >&6
8306 else
8307 if test -n "$ac_ct_STRIP"; then
8308 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8309 else
8310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8311 for as_dir in $PATH
8313 IFS=$as_save_IFS
8314 test -z "$as_dir" && as_dir=.
8315 for ac_exec_ext in '' $ac_executable_extensions; do
8316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8317 ac_cv_prog_ac_ct_STRIP="strip"
8318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8319 break 2
8321 done
8322 done
8323 IFS=$as_save_IFS
8327 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8328 if test -n "$ac_ct_STRIP"; then
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8330 $as_echo "$ac_ct_STRIP" >&6; }
8331 else
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8333 $as_echo "no" >&6; }
8336 if test "x$ac_ct_STRIP" = x; then
8337 STRIP=":"
8338 else
8339 case $cross_compiling:$ac_tool_warned in
8340 yes:)
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8343 ac_tool_warned=yes ;;
8344 esac
8345 STRIP=$ac_ct_STRIP
8347 else
8348 STRIP="$ac_cv_prog_STRIP"
8351 test -z "$STRIP" && STRIP=:
8358 if test -n "$ac_tool_prefix"; then
8359 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8360 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8362 $as_echo_n "checking for $ac_word... " >&6; }
8363 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8364 $as_echo_n "(cached) " >&6
8365 else
8366 if test -n "$RANLIB"; then
8367 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8368 else
8369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8370 for as_dir in $PATH
8372 IFS=$as_save_IFS
8373 test -z "$as_dir" && as_dir=.
8374 for ac_exec_ext in '' $ac_executable_extensions; do
8375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8376 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8378 break 2
8380 done
8381 done
8382 IFS=$as_save_IFS
8386 RANLIB=$ac_cv_prog_RANLIB
8387 if test -n "$RANLIB"; then
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8389 $as_echo "$RANLIB" >&6; }
8390 else
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392 $as_echo "no" >&6; }
8397 if test -z "$ac_cv_prog_RANLIB"; then
8398 ac_ct_RANLIB=$RANLIB
8399 # Extract the first word of "ranlib", so it can be a program name with args.
8400 set dummy ranlib; ac_word=$2
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8402 $as_echo_n "checking for $ac_word... " >&6; }
8403 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8404 $as_echo_n "(cached) " >&6
8405 else
8406 if test -n "$ac_ct_RANLIB"; then
8407 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8408 else
8409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8410 for as_dir in $PATH
8412 IFS=$as_save_IFS
8413 test -z "$as_dir" && as_dir=.
8414 for ac_exec_ext in '' $ac_executable_extensions; do
8415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8416 ac_cv_prog_ac_ct_RANLIB="ranlib"
8417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8418 break 2
8420 done
8421 done
8422 IFS=$as_save_IFS
8426 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8427 if test -n "$ac_ct_RANLIB"; then
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8429 $as_echo "$ac_ct_RANLIB" >&6; }
8430 else
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8432 $as_echo "no" >&6; }
8435 if test "x$ac_ct_RANLIB" = x; then
8436 RANLIB=":"
8437 else
8438 case $cross_compiling:$ac_tool_warned in
8439 yes:)
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8442 ac_tool_warned=yes ;;
8443 esac
8444 RANLIB=$ac_ct_RANLIB
8446 else
8447 RANLIB="$ac_cv_prog_RANLIB"
8450 test -z "$RANLIB" && RANLIB=:
8457 # Determine commands to create old-style static archives.
8458 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8459 old_postinstall_cmds='chmod 644 $oldlib'
8460 old_postuninstall_cmds=
8462 if test -n "$RANLIB"; then
8463 case $host_os in
8464 openbsd*)
8465 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8468 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8470 esac
8471 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8474 case $host_os in
8475 darwin*)
8476 lock_old_archive_extraction=yes ;;
8478 lock_old_archive_extraction=no ;;
8479 esac
8519 # If no C compiler was specified, use CC.
8520 LTCC=${LTCC-"$CC"}
8522 # If no C compiler flags were specified, use CFLAGS.
8523 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8525 # Allow CC to be a program name with arguments.
8526 compiler=$CC
8529 # Check for command to grab the raw symbol name followed by C symbol from nm.
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8531 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8532 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8533 $as_echo_n "(cached) " >&6
8534 else
8536 # These are sane defaults that work on at least a few old systems.
8537 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8539 # Character class describing NM global symbol codes.
8540 symcode='[BCDEGRST]'
8542 # Regexp to match symbols that can be accessed directly from C.
8543 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8545 # Define system-specific variables.
8546 case $host_os in
8547 aix*)
8548 symcode='[BCDT]'
8550 cygwin* | mingw* | pw32* | cegcc*)
8551 symcode='[ABCDGISTW]'
8553 hpux*)
8554 if test "$host_cpu" = ia64; then
8555 symcode='[ABCDEGRST]'
8558 irix* | nonstopux*)
8559 symcode='[BCDEGRST]'
8561 osf*)
8562 symcode='[BCDEGQRST]'
8564 solaris*)
8565 symcode='[BDRT]'
8567 sco3.2v5*)
8568 symcode='[DT]'
8570 sysv4.2uw2*)
8571 symcode='[DT]'
8573 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8574 symcode='[ABDT]'
8576 sysv4)
8577 symcode='[DFNSTU]'
8579 esac
8581 # If we're using GNU nm, then use its standard symbol codes.
8582 case `$NM -V 2>&1` in
8583 *GNU* | *'with BFD'*)
8584 symcode='[ABCDGIRSTW]' ;;
8585 esac
8587 # Transform an extracted symbol line into a proper C declaration.
8588 # Some systems (esp. on ia64) link data and code symbols differently,
8589 # so use this general approach.
8590 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8592 # Transform an extracted symbol line into symbol name and symbol address
8593 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8594 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'"
8596 # Handle CRLF in mingw tool chain
8597 opt_cr=
8598 case $build_os in
8599 mingw*)
8600 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8602 esac
8604 # Try without a prefix underscore, then with it.
8605 for ac_symprfx in "" "_"; do
8607 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8608 symxfrm="\\1 $ac_symprfx\\2 \\2"
8610 # Write the raw and C identifiers.
8611 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8612 # Fake it for dumpbin and say T for any non-static function
8613 # and D for any global variable.
8614 # Also find C++ and __fastcall symbols from MSVC++,
8615 # which start with @ or ?.
8616 lt_cv_sys_global_symbol_pipe="$AWK '"\
8617 " {last_section=section; section=\$ 3};"\
8618 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8619 " \$ 0!~/External *\|/{next};"\
8620 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8621 " {if(hide[section]) next};"\
8622 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8623 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8624 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8625 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8626 " ' prfx=^$ac_symprfx"
8627 else
8628 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8631 # Check to see that the pipe works correctly.
8632 pipe_works=no
8634 rm -f conftest*
8635 cat > conftest.$ac_ext <<_LT_EOF
8636 #ifdef __cplusplus
8637 extern "C" {
8638 #endif
8639 char nm_test_var;
8640 void nm_test_func(void);
8641 void nm_test_func(void){}
8642 #ifdef __cplusplus
8644 #endif
8645 int main(){nm_test_var='a';nm_test_func();return(0);}
8646 _LT_EOF
8648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8649 (eval $ac_compile) 2>&5
8650 ac_status=$?
8651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8652 test $ac_status = 0; }; then
8653 # Now try to grab the symbols.
8654 nlist=conftest.nm
8655 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8656 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8657 ac_status=$?
8658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8659 test $ac_status = 0; } && test -s "$nlist"; then
8660 # Try sorting and uniquifying the output.
8661 if sort "$nlist" | uniq > "$nlist"T; then
8662 mv -f "$nlist"T "$nlist"
8663 else
8664 rm -f "$nlist"T
8667 # Make sure that we snagged all the symbols we need.
8668 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8669 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8670 cat <<_LT_EOF > conftest.$ac_ext
8671 #ifdef __cplusplus
8672 extern "C" {
8673 #endif
8675 _LT_EOF
8676 # Now generate the symbol file.
8677 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8679 cat <<_LT_EOF >> conftest.$ac_ext
8681 /* The mapping between symbol names and symbols. */
8682 const struct {
8683 const char *name;
8684 void *address;
8686 lt__PROGRAM__LTX_preloaded_symbols[] =
8688 { "@PROGRAM@", (void *) 0 },
8689 _LT_EOF
8690 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8691 cat <<\_LT_EOF >> conftest.$ac_ext
8692 {0, (void *) 0}
8695 /* This works around a problem in FreeBSD linker */
8696 #ifdef FREEBSD_WORKAROUND
8697 static const void *lt_preloaded_setup() {
8698 return lt__PROGRAM__LTX_preloaded_symbols;
8700 #endif
8702 #ifdef __cplusplus
8704 #endif
8705 _LT_EOF
8706 # Now try linking the two files.
8707 mv conftest.$ac_objext conftstm.$ac_objext
8708 lt_save_LIBS="$LIBS"
8709 lt_save_CFLAGS="$CFLAGS"
8710 LIBS="conftstm.$ac_objext"
8711 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8712 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8713 (eval $ac_link) 2>&5
8714 ac_status=$?
8715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8716 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8717 pipe_works=yes
8719 LIBS="$lt_save_LIBS"
8720 CFLAGS="$lt_save_CFLAGS"
8721 else
8722 echo "cannot find nm_test_func in $nlist" >&5
8724 else
8725 echo "cannot find nm_test_var in $nlist" >&5
8727 else
8728 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8730 else
8731 echo "$progname: failed program was:" >&5
8732 cat conftest.$ac_ext >&5
8734 rm -rf conftest* conftst*
8736 # Do not use the global_symbol_pipe unless it works.
8737 if test "$pipe_works" = yes; then
8738 break
8739 else
8740 lt_cv_sys_global_symbol_pipe=
8742 done
8746 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8747 lt_cv_sys_global_symbol_to_cdecl=
8749 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8751 $as_echo "failed" >&6; }
8752 else
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8754 $as_echo "ok" >&6; }
8779 # Check whether --enable-libtool-lock was given.
8780 if test "${enable_libtool_lock+set}" = set; then :
8781 enableval=$enable_libtool_lock;
8784 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8786 # Some flags need to be propagated to the compiler or linker for good
8787 # libtool support.
8788 case $host in
8789 ia64-*-hpux*)
8790 # Find out which ABI we are using.
8791 echo 'int i;' > conftest.$ac_ext
8792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8793 (eval $ac_compile) 2>&5
8794 ac_status=$?
8795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8796 test $ac_status = 0; }; then
8797 case `/usr/bin/file conftest.$ac_objext` in
8798 *ELF-32*)
8799 HPUX_IA64_MODE="32"
8801 *ELF-64*)
8802 HPUX_IA64_MODE="64"
8804 esac
8806 rm -rf conftest*
8808 *-*-irix6*)
8809 # Find out which ABI we are using.
8810 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8811 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8812 (eval $ac_compile) 2>&5
8813 ac_status=$?
8814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8815 test $ac_status = 0; }; then
8816 if test "$lt_cv_prog_gnu_ld" = yes; then
8817 case `/usr/bin/file conftest.$ac_objext` in
8818 *32-bit*)
8819 LD="${LD-ld} -melf32bsmip"
8821 *N32*)
8822 LD="${LD-ld} -melf32bmipn32"
8824 *64-bit*)
8825 LD="${LD-ld} -melf64bmip"
8827 esac
8828 else
8829 case `/usr/bin/file conftest.$ac_objext` in
8830 *32-bit*)
8831 LD="${LD-ld} -32"
8833 *N32*)
8834 LD="${LD-ld} -n32"
8836 *64-bit*)
8837 LD="${LD-ld} -64"
8839 esac
8842 rm -rf conftest*
8845 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8846 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8847 # Find out which ABI we are using.
8848 echo 'int i;' > conftest.$ac_ext
8849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8850 (eval $ac_compile) 2>&5
8851 ac_status=$?
8852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8853 test $ac_status = 0; }; then
8854 case `/usr/bin/file conftest.o` in
8855 *32-bit*)
8856 case $host in
8857 x86_64-*kfreebsd*-gnu)
8858 LD="${LD-ld} -m elf_i386_fbsd"
8860 x86_64-*linux*)
8861 case `/usr/bin/file conftest.o` in
8862 *x86-64*)
8863 LD="${LD-ld} -m elf32_x86_64"
8866 LD="${LD-ld} -m elf_i386"
8868 esac
8870 powerpc64le-*linux*)
8871 LD="${LD-ld} -m elf32lppclinux"
8873 powerpc64-*linux*)
8874 LD="${LD-ld} -m elf32ppclinux"
8876 s390x-*linux*)
8877 LD="${LD-ld} -m elf_s390"
8879 sparc64-*linux*)
8880 LD="${LD-ld} -m elf32_sparc"
8882 esac
8884 *64-bit*)
8885 case $host in
8886 x86_64-*kfreebsd*-gnu)
8887 LD="${LD-ld} -m elf_x86_64_fbsd"
8889 x86_64-*linux*)
8890 LD="${LD-ld} -m elf_x86_64"
8892 powerpcle-*linux*)
8893 LD="${LD-ld} -m elf64lppc"
8895 powerpc-*linux*)
8896 LD="${LD-ld} -m elf64ppc"
8898 s390*-*linux*|s390*-*tpf*)
8899 LD="${LD-ld} -m elf64_s390"
8901 sparc*-*linux*)
8902 LD="${LD-ld} -m elf64_sparc"
8904 esac
8906 esac
8908 rm -rf conftest*
8911 *-*-sco3.2v5*)
8912 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8913 SAVE_CFLAGS="$CFLAGS"
8914 CFLAGS="$CFLAGS -belf"
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8916 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8917 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8918 $as_echo_n "(cached) " >&6
8919 else
8920 ac_ext=c
8921 ac_cpp='$CPP $CPPFLAGS'
8922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8926 if test x$gcc_no_link = xyes; then
8927 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8930 /* end confdefs.h. */
8933 main ()
8937 return 0;
8939 _ACEOF
8940 if ac_fn_c_try_link "$LINENO"; then :
8941 lt_cv_cc_needs_belf=yes
8942 else
8943 lt_cv_cc_needs_belf=no
8945 rm -f core conftest.err conftest.$ac_objext \
8946 conftest$ac_exeext conftest.$ac_ext
8947 ac_ext=c
8948 ac_cpp='$CPP $CPPFLAGS'
8949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8955 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8956 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8957 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8958 CFLAGS="$SAVE_CFLAGS"
8961 sparc*-*solaris*)
8962 # Find out which ABI we are using.
8963 echo 'int i;' > conftest.$ac_ext
8964 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8965 (eval $ac_compile) 2>&5
8966 ac_status=$?
8967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8968 test $ac_status = 0; }; then
8969 case `/usr/bin/file conftest.o` in
8970 *64-bit*)
8971 case $lt_cv_prog_gnu_ld in
8972 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8974 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8975 LD="${LD-ld} -64"
8978 esac
8980 esac
8982 rm -rf conftest*
8984 esac
8986 need_locks="$enable_libtool_lock"
8989 case $host_os in
8990 rhapsody* | darwin*)
8991 if test -n "$ac_tool_prefix"; then
8992 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8993 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8995 $as_echo_n "checking for $ac_word... " >&6; }
8996 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8997 $as_echo_n "(cached) " >&6
8998 else
8999 if test -n "$DSYMUTIL"; then
9000 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9001 else
9002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9003 for as_dir in $PATH
9005 IFS=$as_save_IFS
9006 test -z "$as_dir" && as_dir=.
9007 for ac_exec_ext in '' $ac_executable_extensions; do
9008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9009 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9011 break 2
9013 done
9014 done
9015 IFS=$as_save_IFS
9019 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9020 if test -n "$DSYMUTIL"; then
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9022 $as_echo "$DSYMUTIL" >&6; }
9023 else
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9025 $as_echo "no" >&6; }
9030 if test -z "$ac_cv_prog_DSYMUTIL"; then
9031 ac_ct_DSYMUTIL=$DSYMUTIL
9032 # Extract the first word of "dsymutil", so it can be a program name with args.
9033 set dummy dsymutil; ac_word=$2
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9035 $as_echo_n "checking for $ac_word... " >&6; }
9036 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
9037 $as_echo_n "(cached) " >&6
9038 else
9039 if test -n "$ac_ct_DSYMUTIL"; then
9040 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9041 else
9042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9043 for as_dir in $PATH
9045 IFS=$as_save_IFS
9046 test -z "$as_dir" && as_dir=.
9047 for ac_exec_ext in '' $ac_executable_extensions; do
9048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9049 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9051 break 2
9053 done
9054 done
9055 IFS=$as_save_IFS
9059 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9060 if test -n "$ac_ct_DSYMUTIL"; then
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9062 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9063 else
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9065 $as_echo "no" >&6; }
9068 if test "x$ac_ct_DSYMUTIL" = x; then
9069 DSYMUTIL=":"
9070 else
9071 case $cross_compiling:$ac_tool_warned in
9072 yes:)
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9075 ac_tool_warned=yes ;;
9076 esac
9077 DSYMUTIL=$ac_ct_DSYMUTIL
9079 else
9080 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9083 if test -n "$ac_tool_prefix"; then
9084 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9085 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9087 $as_echo_n "checking for $ac_word... " >&6; }
9088 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
9089 $as_echo_n "(cached) " >&6
9090 else
9091 if test -n "$NMEDIT"; then
9092 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9093 else
9094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9095 for as_dir in $PATH
9097 IFS=$as_save_IFS
9098 test -z "$as_dir" && as_dir=.
9099 for ac_exec_ext in '' $ac_executable_extensions; do
9100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9101 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9103 break 2
9105 done
9106 done
9107 IFS=$as_save_IFS
9111 NMEDIT=$ac_cv_prog_NMEDIT
9112 if test -n "$NMEDIT"; then
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9114 $as_echo "$NMEDIT" >&6; }
9115 else
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9117 $as_echo "no" >&6; }
9122 if test -z "$ac_cv_prog_NMEDIT"; then
9123 ac_ct_NMEDIT=$NMEDIT
9124 # Extract the first word of "nmedit", so it can be a program name with args.
9125 set dummy nmedit; ac_word=$2
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9127 $as_echo_n "checking for $ac_word... " >&6; }
9128 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9129 $as_echo_n "(cached) " >&6
9130 else
9131 if test -n "$ac_ct_NMEDIT"; then
9132 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9133 else
9134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9135 for as_dir in $PATH
9137 IFS=$as_save_IFS
9138 test -z "$as_dir" && as_dir=.
9139 for ac_exec_ext in '' $ac_executable_extensions; do
9140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9141 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9143 break 2
9145 done
9146 done
9147 IFS=$as_save_IFS
9151 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9152 if test -n "$ac_ct_NMEDIT"; then
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9154 $as_echo "$ac_ct_NMEDIT" >&6; }
9155 else
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9157 $as_echo "no" >&6; }
9160 if test "x$ac_ct_NMEDIT" = x; then
9161 NMEDIT=":"
9162 else
9163 case $cross_compiling:$ac_tool_warned in
9164 yes:)
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9167 ac_tool_warned=yes ;;
9168 esac
9169 NMEDIT=$ac_ct_NMEDIT
9171 else
9172 NMEDIT="$ac_cv_prog_NMEDIT"
9175 if test -n "$ac_tool_prefix"; then
9176 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9177 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9179 $as_echo_n "checking for $ac_word... " >&6; }
9180 if test "${ac_cv_prog_LIPO+set}" = set; then :
9181 $as_echo_n "(cached) " >&6
9182 else
9183 if test -n "$LIPO"; then
9184 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9185 else
9186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9187 for as_dir in $PATH
9189 IFS=$as_save_IFS
9190 test -z "$as_dir" && as_dir=.
9191 for ac_exec_ext in '' $ac_executable_extensions; do
9192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9193 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9195 break 2
9197 done
9198 done
9199 IFS=$as_save_IFS
9203 LIPO=$ac_cv_prog_LIPO
9204 if test -n "$LIPO"; then
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9206 $as_echo "$LIPO" >&6; }
9207 else
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9209 $as_echo "no" >&6; }
9214 if test -z "$ac_cv_prog_LIPO"; then
9215 ac_ct_LIPO=$LIPO
9216 # Extract the first word of "lipo", so it can be a program name with args.
9217 set dummy lipo; ac_word=$2
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9219 $as_echo_n "checking for $ac_word... " >&6; }
9220 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9221 $as_echo_n "(cached) " >&6
9222 else
9223 if test -n "$ac_ct_LIPO"; then
9224 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9225 else
9226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9227 for as_dir in $PATH
9229 IFS=$as_save_IFS
9230 test -z "$as_dir" && as_dir=.
9231 for ac_exec_ext in '' $ac_executable_extensions; do
9232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9233 ac_cv_prog_ac_ct_LIPO="lipo"
9234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9235 break 2
9237 done
9238 done
9239 IFS=$as_save_IFS
9243 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9244 if test -n "$ac_ct_LIPO"; then
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9246 $as_echo "$ac_ct_LIPO" >&6; }
9247 else
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9249 $as_echo "no" >&6; }
9252 if test "x$ac_ct_LIPO" = x; then
9253 LIPO=":"
9254 else
9255 case $cross_compiling:$ac_tool_warned in
9256 yes:)
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9259 ac_tool_warned=yes ;;
9260 esac
9261 LIPO=$ac_ct_LIPO
9263 else
9264 LIPO="$ac_cv_prog_LIPO"
9267 if test -n "$ac_tool_prefix"; then
9268 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9269 set dummy ${ac_tool_prefix}otool; ac_word=$2
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9271 $as_echo_n "checking for $ac_word... " >&6; }
9272 if test "${ac_cv_prog_OTOOL+set}" = set; then :
9273 $as_echo_n "(cached) " >&6
9274 else
9275 if test -n "$OTOOL"; then
9276 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9277 else
9278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9279 for as_dir in $PATH
9281 IFS=$as_save_IFS
9282 test -z "$as_dir" && as_dir=.
9283 for ac_exec_ext in '' $ac_executable_extensions; do
9284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9285 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9287 break 2
9289 done
9290 done
9291 IFS=$as_save_IFS
9295 OTOOL=$ac_cv_prog_OTOOL
9296 if test -n "$OTOOL"; then
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9298 $as_echo "$OTOOL" >&6; }
9299 else
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9301 $as_echo "no" >&6; }
9306 if test -z "$ac_cv_prog_OTOOL"; then
9307 ac_ct_OTOOL=$OTOOL
9308 # Extract the first word of "otool", so it can be a program name with args.
9309 set dummy otool; ac_word=$2
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9311 $as_echo_n "checking for $ac_word... " >&6; }
9312 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9313 $as_echo_n "(cached) " >&6
9314 else
9315 if test -n "$ac_ct_OTOOL"; then
9316 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9317 else
9318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9319 for as_dir in $PATH
9321 IFS=$as_save_IFS
9322 test -z "$as_dir" && as_dir=.
9323 for ac_exec_ext in '' $ac_executable_extensions; do
9324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9325 ac_cv_prog_ac_ct_OTOOL="otool"
9326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9327 break 2
9329 done
9330 done
9331 IFS=$as_save_IFS
9335 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9336 if test -n "$ac_ct_OTOOL"; then
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9338 $as_echo "$ac_ct_OTOOL" >&6; }
9339 else
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9341 $as_echo "no" >&6; }
9344 if test "x$ac_ct_OTOOL" = x; then
9345 OTOOL=":"
9346 else
9347 case $cross_compiling:$ac_tool_warned in
9348 yes:)
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9351 ac_tool_warned=yes ;;
9352 esac
9353 OTOOL=$ac_ct_OTOOL
9355 else
9356 OTOOL="$ac_cv_prog_OTOOL"
9359 if test -n "$ac_tool_prefix"; then
9360 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9361 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9363 $as_echo_n "checking for $ac_word... " >&6; }
9364 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9365 $as_echo_n "(cached) " >&6
9366 else
9367 if test -n "$OTOOL64"; then
9368 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9369 else
9370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9371 for as_dir in $PATH
9373 IFS=$as_save_IFS
9374 test -z "$as_dir" && as_dir=.
9375 for ac_exec_ext in '' $ac_executable_extensions; do
9376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9377 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9379 break 2
9381 done
9382 done
9383 IFS=$as_save_IFS
9387 OTOOL64=$ac_cv_prog_OTOOL64
9388 if test -n "$OTOOL64"; then
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9390 $as_echo "$OTOOL64" >&6; }
9391 else
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9393 $as_echo "no" >&6; }
9398 if test -z "$ac_cv_prog_OTOOL64"; then
9399 ac_ct_OTOOL64=$OTOOL64
9400 # Extract the first word of "otool64", so it can be a program name with args.
9401 set dummy otool64; ac_word=$2
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9403 $as_echo_n "checking for $ac_word... " >&6; }
9404 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9405 $as_echo_n "(cached) " >&6
9406 else
9407 if test -n "$ac_ct_OTOOL64"; then
9408 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9409 else
9410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9411 for as_dir in $PATH
9413 IFS=$as_save_IFS
9414 test -z "$as_dir" && as_dir=.
9415 for ac_exec_ext in '' $ac_executable_extensions; do
9416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9417 ac_cv_prog_ac_ct_OTOOL64="otool64"
9418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9419 break 2
9421 done
9422 done
9423 IFS=$as_save_IFS
9427 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9428 if test -n "$ac_ct_OTOOL64"; then
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9430 $as_echo "$ac_ct_OTOOL64" >&6; }
9431 else
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9433 $as_echo "no" >&6; }
9436 if test "x$ac_ct_OTOOL64" = x; then
9437 OTOOL64=":"
9438 else
9439 case $cross_compiling:$ac_tool_warned in
9440 yes:)
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9443 ac_tool_warned=yes ;;
9444 esac
9445 OTOOL64=$ac_ct_OTOOL64
9447 else
9448 OTOOL64="$ac_cv_prog_OTOOL64"
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9478 $as_echo_n "checking for -single_module linker flag... " >&6; }
9479 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9480 $as_echo_n "(cached) " >&6
9481 else
9482 lt_cv_apple_cc_single_mod=no
9483 if test -z "${LT_MULTI_MODULE}"; then
9484 # By default we will add the -single_module flag. You can override
9485 # by either setting the environment variable LT_MULTI_MODULE
9486 # non-empty at configure time, or by adding -multi_module to the
9487 # link flags.
9488 rm -rf libconftest.dylib*
9489 echo "int foo(void){return 1;}" > conftest.c
9490 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9491 -dynamiclib -Wl,-single_module conftest.c" >&5
9492 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9493 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9494 _lt_result=$?
9495 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9496 lt_cv_apple_cc_single_mod=yes
9497 else
9498 cat conftest.err >&5
9500 rm -rf libconftest.dylib*
9501 rm -f conftest.*
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9505 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9507 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9508 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9509 $as_echo_n "(cached) " >&6
9510 else
9511 lt_cv_ld_exported_symbols_list=no
9512 save_LDFLAGS=$LDFLAGS
9513 echo "_main" > conftest.sym
9514 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9515 if test x$gcc_no_link = xyes; then
9516 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9519 /* end confdefs.h. */
9522 main ()
9526 return 0;
9528 _ACEOF
9529 if ac_fn_c_try_link "$LINENO"; then :
9530 lt_cv_ld_exported_symbols_list=yes
9531 else
9532 lt_cv_ld_exported_symbols_list=no
9534 rm -f core conftest.err conftest.$ac_objext \
9535 conftest$ac_exeext conftest.$ac_ext
9536 LDFLAGS="$save_LDFLAGS"
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9540 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9542 $as_echo_n "checking for -force_load linker flag... " >&6; }
9543 if test "${lt_cv_ld_force_load+set}" = set; then :
9544 $as_echo_n "(cached) " >&6
9545 else
9546 lt_cv_ld_force_load=no
9547 cat > conftest.c << _LT_EOF
9548 int forced_loaded() { return 2;}
9549 _LT_EOF
9550 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9551 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9552 echo "$AR cru libconftest.a conftest.o" >&5
9553 $AR cru libconftest.a conftest.o 2>&5
9554 cat > conftest.c << _LT_EOF
9555 int main() { return 0;}
9556 _LT_EOF
9557 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9558 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9559 _lt_result=$?
9560 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9561 lt_cv_ld_force_load=yes
9562 else
9563 cat conftest.err >&5
9565 rm -f conftest.err libconftest.a conftest conftest.c
9566 rm -rf conftest.dSYM
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9570 $as_echo "$lt_cv_ld_force_load" >&6; }
9571 case $host_os in
9572 rhapsody* | darwin1.[012])
9573 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9574 darwin1.*)
9575 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9576 darwin*) # darwin 5.x on
9577 # if running on 10.5 or later, the deployment target defaults
9578 # to the OS version, if on x86, and 10.4, the deployment
9579 # target defaults to 10.4. Don't you love it?
9580 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9581 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9582 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9583 10.[012]*)
9584 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9585 10.*)
9586 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9587 esac
9589 esac
9590 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9591 _lt_dar_single_mod='$single_module'
9593 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9594 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9595 else
9596 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9598 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9599 _lt_dsymutil='~$DSYMUTIL $lib || :'
9600 else
9601 _lt_dsymutil=
9604 esac
9606 ac_ext=c
9607 ac_cpp='$CPP $CPPFLAGS'
9608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9612 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9613 # On Suns, sometimes $CPP names a directory.
9614 if test -n "$CPP" && test -d "$CPP"; then
9615 CPP=
9617 if test -z "$CPP"; then
9618 if test "${ac_cv_prog_CPP+set}" = set; then :
9619 $as_echo_n "(cached) " >&6
9620 else
9621 # Double quotes because CPP needs to be expanded
9622 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9624 ac_preproc_ok=false
9625 for ac_c_preproc_warn_flag in '' yes
9627 # Use a header file that comes with gcc, so configuring glibc
9628 # with a fresh cross-compiler works.
9629 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9630 # <limits.h> exists even on freestanding compilers.
9631 # On the NeXT, cc -E runs the code through the compiler's parser,
9632 # not just through cpp. "Syntax error" is here to catch this case.
9633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9634 /* end confdefs.h. */
9635 #ifdef __STDC__
9636 # include <limits.h>
9637 #else
9638 # include <assert.h>
9639 #endif
9640 Syntax error
9641 _ACEOF
9642 if ac_fn_c_try_cpp "$LINENO"; then :
9644 else
9645 # Broken: fails on valid input.
9646 continue
9648 rm -f conftest.err conftest.$ac_ext
9650 # OK, works on sane cases. Now check whether nonexistent headers
9651 # can be detected and how.
9652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9653 /* end confdefs.h. */
9654 #include <ac_nonexistent.h>
9655 _ACEOF
9656 if ac_fn_c_try_cpp "$LINENO"; then :
9657 # Broken: success on invalid input.
9658 continue
9659 else
9660 # Passes both tests.
9661 ac_preproc_ok=:
9662 break
9664 rm -f conftest.err conftest.$ac_ext
9666 done
9667 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9668 rm -f conftest.err conftest.$ac_ext
9669 if $ac_preproc_ok; then :
9670 break
9673 done
9674 ac_cv_prog_CPP=$CPP
9677 CPP=$ac_cv_prog_CPP
9678 else
9679 ac_cv_prog_CPP=$CPP
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9682 $as_echo "$CPP" >&6; }
9683 ac_preproc_ok=false
9684 for ac_c_preproc_warn_flag in '' yes
9686 # Use a header file that comes with gcc, so configuring glibc
9687 # with a fresh cross-compiler works.
9688 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9689 # <limits.h> exists even on freestanding compilers.
9690 # On the NeXT, cc -E runs the code through the compiler's parser,
9691 # not just through cpp. "Syntax error" is here to catch this case.
9692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9693 /* end confdefs.h. */
9694 #ifdef __STDC__
9695 # include <limits.h>
9696 #else
9697 # include <assert.h>
9698 #endif
9699 Syntax error
9700 _ACEOF
9701 if ac_fn_c_try_cpp "$LINENO"; then :
9703 else
9704 # Broken: fails on valid input.
9705 continue
9707 rm -f conftest.err conftest.$ac_ext
9709 # OK, works on sane cases. Now check whether nonexistent headers
9710 # can be detected and how.
9711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9712 /* end confdefs.h. */
9713 #include <ac_nonexistent.h>
9714 _ACEOF
9715 if ac_fn_c_try_cpp "$LINENO"; then :
9716 # Broken: success on invalid input.
9717 continue
9718 else
9719 # Passes both tests.
9720 ac_preproc_ok=:
9721 break
9723 rm -f conftest.err conftest.$ac_ext
9725 done
9726 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9727 rm -f conftest.err conftest.$ac_ext
9728 if $ac_preproc_ok; then :
9730 else
9731 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9732 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9733 as_fn_error "C preprocessor \"$CPP\" fails sanity check
9734 See \`config.log' for more details." "$LINENO" 5; }
9737 ac_ext=c
9738 ac_cpp='$CPP $CPPFLAGS'
9739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9745 $as_echo_n "checking for ANSI C header files... " >&6; }
9746 if test "${ac_cv_header_stdc+set}" = set; then :
9747 $as_echo_n "(cached) " >&6
9748 else
9749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9750 /* end confdefs.h. */
9751 #include <stdlib.h>
9752 #include <stdarg.h>
9753 #include <string.h>
9754 #include <float.h>
9757 main ()
9761 return 0;
9763 _ACEOF
9764 if ac_fn_c_try_compile "$LINENO"; then :
9765 ac_cv_header_stdc=yes
9766 else
9767 ac_cv_header_stdc=no
9769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9771 if test $ac_cv_header_stdc = yes; then
9772 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9774 /* end confdefs.h. */
9775 #include <string.h>
9777 _ACEOF
9778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9779 $EGREP "memchr" >/dev/null 2>&1; then :
9781 else
9782 ac_cv_header_stdc=no
9784 rm -f conftest*
9788 if test $ac_cv_header_stdc = yes; then
9789 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9791 /* end confdefs.h. */
9792 #include <stdlib.h>
9794 _ACEOF
9795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9796 $EGREP "free" >/dev/null 2>&1; then :
9798 else
9799 ac_cv_header_stdc=no
9801 rm -f conftest*
9805 if test $ac_cv_header_stdc = yes; then
9806 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9807 if test "$cross_compiling" = yes; then :
9809 else
9810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9811 /* end confdefs.h. */
9812 #include <ctype.h>
9813 #include <stdlib.h>
9814 #if ((' ' & 0x0FF) == 0x020)
9815 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9816 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9817 #else
9818 # define ISLOWER(c) \
9819 (('a' <= (c) && (c) <= 'i') \
9820 || ('j' <= (c) && (c) <= 'r') \
9821 || ('s' <= (c) && (c) <= 'z'))
9822 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9823 #endif
9825 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9827 main ()
9829 int i;
9830 for (i = 0; i < 256; i++)
9831 if (XOR (islower (i), ISLOWER (i))
9832 || toupper (i) != TOUPPER (i))
9833 return 2;
9834 return 0;
9836 _ACEOF
9837 if ac_fn_c_try_run "$LINENO"; then :
9839 else
9840 ac_cv_header_stdc=no
9842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9843 conftest.$ac_objext conftest.beam conftest.$ac_ext
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9849 $as_echo "$ac_cv_header_stdc" >&6; }
9850 if test $ac_cv_header_stdc = yes; then
9852 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9856 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9857 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9858 inttypes.h stdint.h unistd.h
9859 do :
9860 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9861 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9863 eval as_val=\$$as_ac_Header
9864 if test "x$as_val" = x""yes; then :
9865 cat >>confdefs.h <<_ACEOF
9866 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9867 _ACEOF
9871 done
9874 for ac_header in dlfcn.h
9875 do :
9876 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9878 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9879 cat >>confdefs.h <<_ACEOF
9880 #define HAVE_DLFCN_H 1
9881 _ACEOF
9885 done
9892 # Set options
9897 enable_win32_dll=no
9900 # Check whether --enable-shared was given.
9901 if test "${enable_shared+set}" = set; then :
9902 enableval=$enable_shared; p=${PACKAGE-default}
9903 case $enableval in
9904 yes) enable_shared=yes ;;
9905 no) enable_shared=no ;;
9907 enable_shared=no
9908 # Look at the argument we got. We use all the common list separators.
9909 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9910 for pkg in $enableval; do
9911 IFS="$lt_save_ifs"
9912 if test "X$pkg" = "X$p"; then
9913 enable_shared=yes
9915 done
9916 IFS="$lt_save_ifs"
9918 esac
9919 else
9920 enable_shared=yes
9931 # Check whether --enable-static was given.
9932 if test "${enable_static+set}" = set; then :
9933 enableval=$enable_static; p=${PACKAGE-default}
9934 case $enableval in
9935 yes) enable_static=yes ;;
9936 no) enable_static=no ;;
9938 enable_static=no
9939 # Look at the argument we got. We use all the common list separators.
9940 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9941 for pkg in $enableval; do
9942 IFS="$lt_save_ifs"
9943 if test "X$pkg" = "X$p"; then
9944 enable_static=yes
9946 done
9947 IFS="$lt_save_ifs"
9949 esac
9950 else
9951 enable_static=yes
9963 # Check whether --with-pic was given.
9964 if test "${with_pic+set}" = set; then :
9965 withval=$with_pic; p=${PACKAGE-default}
9966 case "$withval" in
9967 yes|no) pic_mode="$withval" ;;
9969 pic_mode=default
9970 # Look at the argument we got. We use all the common list separators.
9971 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9972 for pkg in $withval; do
9973 IFS="$lt_save_ifs"
9974 if test "X$pkg" = "X$p"; then
9975 pic_mode=yes
9977 done
9978 IFS="$lt_save_ifs"
9980 esac
9981 else
9982 pic_mode=default
9986 test -z "$pic_mode" && pic_mode=default
9994 # Check whether --enable-fast-install was given.
9995 if test "${enable_fast_install+set}" = set; then :
9996 enableval=$enable_fast_install; p=${PACKAGE-default}
9997 case $enableval in
9998 yes) enable_fast_install=yes ;;
9999 no) enable_fast_install=no ;;
10001 enable_fast_install=no
10002 # Look at the argument we got. We use all the common list separators.
10003 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10004 for pkg in $enableval; do
10005 IFS="$lt_save_ifs"
10006 if test "X$pkg" = "X$p"; then
10007 enable_fast_install=yes
10009 done
10010 IFS="$lt_save_ifs"
10012 esac
10013 else
10014 enable_fast_install=yes
10027 # This can be used to rebuild libtool when needed
10028 LIBTOOL_DEPS="$ltmain"
10030 # Always use our own libtool.
10031 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10058 test -z "$LN_S" && LN_S="ln -s"
10073 if test -n "${ZSH_VERSION+set}" ; then
10074 setopt NO_GLOB_SUBST
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10078 $as_echo_n "checking for objdir... " >&6; }
10079 if test "${lt_cv_objdir+set}" = set; then :
10080 $as_echo_n "(cached) " >&6
10081 else
10082 rm -f .libs 2>/dev/null
10083 mkdir .libs 2>/dev/null
10084 if test -d .libs; then
10085 lt_cv_objdir=.libs
10086 else
10087 # MS-DOS does not allow filenames that begin with a dot.
10088 lt_cv_objdir=_libs
10090 rmdir .libs 2>/dev/null
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10093 $as_echo "$lt_cv_objdir" >&6; }
10094 objdir=$lt_cv_objdir
10100 cat >>confdefs.h <<_ACEOF
10101 #define LT_OBJDIR "$lt_cv_objdir/"
10102 _ACEOF
10107 case $host_os in
10108 aix3*)
10109 # AIX sometimes has problems with the GCC collect2 program. For some
10110 # reason, if we set the COLLECT_NAMES environment variable, the problems
10111 # vanish in a puff of smoke.
10112 if test "X${COLLECT_NAMES+set}" != Xset; then
10113 COLLECT_NAMES=
10114 export COLLECT_NAMES
10117 esac
10119 # Global variables:
10120 ofile=libtool
10121 can_build_shared=yes
10123 # All known linkers require a `.a' archive for static linking (except MSVC,
10124 # which needs '.lib').
10125 libext=a
10127 with_gnu_ld="$lt_cv_prog_gnu_ld"
10129 old_CC="$CC"
10130 old_CFLAGS="$CFLAGS"
10132 # Set sane defaults for various variables
10133 test -z "$CC" && CC=cc
10134 test -z "$LTCC" && LTCC=$CC
10135 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10136 test -z "$LD" && LD=ld
10137 test -z "$ac_objext" && ac_objext=o
10139 for cc_temp in $compiler""; do
10140 case $cc_temp in
10141 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10142 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10143 \-*) ;;
10144 *) break;;
10145 esac
10146 done
10147 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10150 # Only perform the check for file, if the check method requires it
10151 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10152 case $deplibs_check_method in
10153 file_magic*)
10154 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10156 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10157 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10158 $as_echo_n "(cached) " >&6
10159 else
10160 case $MAGIC_CMD in
10161 [\\/*] | ?:[\\/]*)
10162 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10165 lt_save_MAGIC_CMD="$MAGIC_CMD"
10166 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10167 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10168 for ac_dir in $ac_dummy; do
10169 IFS="$lt_save_ifs"
10170 test -z "$ac_dir" && ac_dir=.
10171 if test -f $ac_dir/${ac_tool_prefix}file; then
10172 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10173 if test -n "$file_magic_test_file"; then
10174 case $deplibs_check_method in
10175 "file_magic "*)
10176 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10177 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10178 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10179 $EGREP "$file_magic_regex" > /dev/null; then
10181 else
10182 cat <<_LT_EOF 1>&2
10184 *** Warning: the command libtool uses to detect shared libraries,
10185 *** $file_magic_cmd, produces output that libtool cannot recognize.
10186 *** The result is that libtool may fail to recognize shared libraries
10187 *** as such. This will affect the creation of libtool libraries that
10188 *** depend on shared libraries, but programs linked with such libtool
10189 *** libraries will work regardless of this problem. Nevertheless, you
10190 *** may want to report the problem to your system manager and/or to
10191 *** bug-libtool@gnu.org
10193 _LT_EOF
10194 fi ;;
10195 esac
10197 break
10199 done
10200 IFS="$lt_save_ifs"
10201 MAGIC_CMD="$lt_save_MAGIC_CMD"
10203 esac
10206 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10207 if test -n "$MAGIC_CMD"; then
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10209 $as_echo "$MAGIC_CMD" >&6; }
10210 else
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10212 $as_echo "no" >&6; }
10219 if test -z "$lt_cv_path_MAGIC_CMD"; then
10220 if test -n "$ac_tool_prefix"; then
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10222 $as_echo_n "checking for file... " >&6; }
10223 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10224 $as_echo_n "(cached) " >&6
10225 else
10226 case $MAGIC_CMD in
10227 [\\/*] | ?:[\\/]*)
10228 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10231 lt_save_MAGIC_CMD="$MAGIC_CMD"
10232 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10233 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10234 for ac_dir in $ac_dummy; do
10235 IFS="$lt_save_ifs"
10236 test -z "$ac_dir" && ac_dir=.
10237 if test -f $ac_dir/file; then
10238 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10239 if test -n "$file_magic_test_file"; then
10240 case $deplibs_check_method in
10241 "file_magic "*)
10242 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10243 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10244 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10245 $EGREP "$file_magic_regex" > /dev/null; then
10247 else
10248 cat <<_LT_EOF 1>&2
10250 *** Warning: the command libtool uses to detect shared libraries,
10251 *** $file_magic_cmd, produces output that libtool cannot recognize.
10252 *** The result is that libtool may fail to recognize shared libraries
10253 *** as such. This will affect the creation of libtool libraries that
10254 *** depend on shared libraries, but programs linked with such libtool
10255 *** libraries will work regardless of this problem. Nevertheless, you
10256 *** may want to report the problem to your system manager and/or to
10257 *** bug-libtool@gnu.org
10259 _LT_EOF
10260 fi ;;
10261 esac
10263 break
10265 done
10266 IFS="$lt_save_ifs"
10267 MAGIC_CMD="$lt_save_MAGIC_CMD"
10269 esac
10272 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10273 if test -n "$MAGIC_CMD"; then
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10275 $as_echo "$MAGIC_CMD" >&6; }
10276 else
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10278 $as_echo "no" >&6; }
10282 else
10283 MAGIC_CMD=:
10289 esac
10291 # Use C for the default configuration in the libtool script
10293 lt_save_CC="$CC"
10294 ac_ext=c
10295 ac_cpp='$CPP $CPPFLAGS'
10296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10301 # Source file extension for C test sources.
10302 ac_ext=c
10304 # Object file extension for compiled C test sources.
10305 objext=o
10306 objext=$objext
10308 # Code to be used in simple compile tests
10309 lt_simple_compile_test_code="int some_variable = 0;"
10311 # Code to be used in simple link tests
10312 lt_simple_link_test_code='int main(){return(0);}'
10320 # If no C compiler was specified, use CC.
10321 LTCC=${LTCC-"$CC"}
10323 # If no C compiler flags were specified, use CFLAGS.
10324 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10326 # Allow CC to be a program name with arguments.
10327 compiler=$CC
10329 # Save the default compiler, since it gets overwritten when the other
10330 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10331 compiler_DEFAULT=$CC
10333 # save warnings/boilerplate of simple test code
10334 ac_outfile=conftest.$ac_objext
10335 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10336 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10337 _lt_compiler_boilerplate=`cat conftest.err`
10338 $RM conftest*
10340 ac_outfile=conftest.$ac_objext
10341 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10342 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10343 _lt_linker_boilerplate=`cat conftest.err`
10344 $RM -r conftest*
10347 ## CAVEAT EMPTOR:
10348 ## There is no encapsulation within the following macros, do not change
10349 ## the running order or otherwise move them around unless you know exactly
10350 ## what you are doing...
10351 if test -n "$compiler"; then
10353 lt_prog_compiler_no_builtin_flag=
10355 if test "$GCC" = yes; then
10356 case $cc_basename in
10357 nvcc*)
10358 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10360 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10361 esac
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10364 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10365 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10366 $as_echo_n "(cached) " >&6
10367 else
10368 lt_cv_prog_compiler_rtti_exceptions=no
10369 ac_outfile=conftest.$ac_objext
10370 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10371 lt_compiler_flag="-fno-rtti -fno-exceptions"
10372 # Insert the option either (1) after the last *FLAGS variable, or
10373 # (2) before a word containing "conftest.", or (3) at the end.
10374 # Note that $ac_compile itself does not contain backslashes and begins
10375 # with a dollar sign (not a hyphen), so the echo should work correctly.
10376 # The option is referenced via a variable to avoid confusing sed.
10377 lt_compile=`echo "$ac_compile" | $SED \
10378 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10379 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10380 -e 's:$: $lt_compiler_flag:'`
10381 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10382 (eval "$lt_compile" 2>conftest.err)
10383 ac_status=$?
10384 cat conftest.err >&5
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 if (exit $ac_status) && test -s "$ac_outfile"; then
10387 # The compiler can only warn and ignore the option if not recognized
10388 # So say no if there are warnings other than the usual output.
10389 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10390 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10391 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10392 lt_cv_prog_compiler_rtti_exceptions=yes
10395 $RM conftest*
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10399 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10401 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10402 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10403 else
10414 lt_prog_compiler_wl=
10415 lt_prog_compiler_pic=
10416 lt_prog_compiler_static=
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10419 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10421 if test "$GCC" = yes; then
10422 lt_prog_compiler_wl='-Wl,'
10423 lt_prog_compiler_static='-static'
10425 case $host_os in
10426 aix*)
10427 # All AIX code is PIC.
10428 if test "$host_cpu" = ia64; then
10429 # AIX 5 now supports IA64 processor
10430 lt_prog_compiler_static='-Bstatic'
10432 lt_prog_compiler_pic='-fPIC'
10435 amigaos*)
10436 case $host_cpu in
10437 powerpc)
10438 # see comment about AmigaOS4 .so support
10439 lt_prog_compiler_pic='-fPIC'
10441 m68k)
10442 # FIXME: we need at least 68020 code to build shared libraries, but
10443 # adding the `-m68020' flag to GCC prevents building anything better,
10444 # like `-m68040'.
10445 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10447 esac
10450 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10451 # PIC is the default for these OSes.
10454 mingw* | cygwin* | pw32* | os2* | cegcc*)
10455 # This hack is so that the source file can tell whether it is being
10456 # built for inclusion in a dll (and should export symbols for example).
10457 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10458 # (--disable-auto-import) libraries
10459 lt_prog_compiler_pic='-DDLL_EXPORT'
10462 darwin* | rhapsody*)
10463 # PIC is the default on this platform
10464 # Common symbols not allowed in MH_DYLIB files
10465 lt_prog_compiler_pic='-fno-common'
10468 haiku*)
10469 # PIC is the default for Haiku.
10470 # The "-static" flag exists, but is broken.
10471 lt_prog_compiler_static=
10474 hpux*)
10475 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10476 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10477 # sets the default TLS model and affects inlining.
10478 case $host_cpu in
10479 hppa*64*)
10480 # +Z the default
10483 lt_prog_compiler_pic='-fPIC'
10485 esac
10488 interix[3-9]*)
10489 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10490 # Instead, we relocate shared libraries at runtime.
10493 msdosdjgpp*)
10494 # Just because we use GCC doesn't mean we suddenly get shared libraries
10495 # on systems that don't support them.
10496 lt_prog_compiler_can_build_shared=no
10497 enable_shared=no
10500 *nto* | *qnx*)
10501 # QNX uses GNU C++, but need to define -shared option too, otherwise
10502 # it will coredump.
10503 lt_prog_compiler_pic='-fPIC -shared'
10506 sysv4*MP*)
10507 if test -d /usr/nec; then
10508 lt_prog_compiler_pic=-Kconform_pic
10513 lt_prog_compiler_pic='-fPIC'
10515 esac
10517 case $cc_basename in
10518 nvcc*) # Cuda Compiler Driver 2.2
10519 lt_prog_compiler_wl='-Xlinker '
10520 lt_prog_compiler_pic='-Xcompiler -fPIC'
10522 esac
10523 else
10524 # PORTME Check for flag to pass linker flags through the system compiler.
10525 case $host_os in
10526 aix*)
10527 lt_prog_compiler_wl='-Wl,'
10528 if test "$host_cpu" = ia64; then
10529 # AIX 5 now supports IA64 processor
10530 lt_prog_compiler_static='-Bstatic'
10531 else
10532 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10536 mingw* | cygwin* | pw32* | os2* | cegcc*)
10537 # This hack is so that the source file can tell whether it is being
10538 # built for inclusion in a dll (and should export symbols for example).
10539 lt_prog_compiler_pic='-DDLL_EXPORT'
10542 hpux9* | hpux10* | hpux11*)
10543 lt_prog_compiler_wl='-Wl,'
10544 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10545 # not for PA HP-UX.
10546 case $host_cpu in
10547 hppa*64*|ia64*)
10548 # +Z the default
10551 lt_prog_compiler_pic='+Z'
10553 esac
10554 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10555 lt_prog_compiler_static='${wl}-a ${wl}archive'
10558 irix5* | irix6* | nonstopux*)
10559 lt_prog_compiler_wl='-Wl,'
10560 # PIC (with -KPIC) is the default.
10561 lt_prog_compiler_static='-non_shared'
10564 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10565 case $cc_basename in
10566 # old Intel for x86_64 which still supported -KPIC.
10567 ecc*)
10568 lt_prog_compiler_wl='-Wl,'
10569 lt_prog_compiler_pic='-KPIC'
10570 lt_prog_compiler_static='-static'
10572 # icc used to be incompatible with GCC.
10573 # ICC 10 doesn't accept -KPIC any more.
10574 icc* | ifort*)
10575 lt_prog_compiler_wl='-Wl,'
10576 lt_prog_compiler_pic='-fPIC'
10577 lt_prog_compiler_static='-static'
10579 # Lahey Fortran 8.1.
10580 lf95*)
10581 lt_prog_compiler_wl='-Wl,'
10582 lt_prog_compiler_pic='--shared'
10583 lt_prog_compiler_static='--static'
10585 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10586 # Portland Group compilers (*not* the Pentium gcc compiler,
10587 # which looks to be a dead project)
10588 lt_prog_compiler_wl='-Wl,'
10589 lt_prog_compiler_pic='-fpic'
10590 lt_prog_compiler_static='-Bstatic'
10592 ccc*)
10593 lt_prog_compiler_wl='-Wl,'
10594 # All Alpha code is PIC.
10595 lt_prog_compiler_static='-non_shared'
10597 xl* | bgxl* | bgf* | mpixl*)
10598 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10599 lt_prog_compiler_wl='-Wl,'
10600 lt_prog_compiler_pic='-qpic'
10601 lt_prog_compiler_static='-qstaticlink'
10604 case `$CC -V 2>&1 | sed 5q` in
10605 *Sun\ F* | *Sun*Fortran*)
10606 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10607 lt_prog_compiler_pic='-KPIC'
10608 lt_prog_compiler_static='-Bstatic'
10609 lt_prog_compiler_wl=''
10611 *Sun\ C*)
10612 # Sun C 5.9
10613 lt_prog_compiler_pic='-KPIC'
10614 lt_prog_compiler_static='-Bstatic'
10615 lt_prog_compiler_wl='-Wl,'
10617 esac
10619 esac
10622 newsos6)
10623 lt_prog_compiler_pic='-KPIC'
10624 lt_prog_compiler_static='-Bstatic'
10627 *nto* | *qnx*)
10628 # QNX uses GNU C++, but need to define -shared option too, otherwise
10629 # it will coredump.
10630 lt_prog_compiler_pic='-fPIC -shared'
10633 osf3* | osf4* | osf5*)
10634 lt_prog_compiler_wl='-Wl,'
10635 # All OSF/1 code is PIC.
10636 lt_prog_compiler_static='-non_shared'
10639 rdos*)
10640 lt_prog_compiler_static='-non_shared'
10643 solaris*)
10644 lt_prog_compiler_pic='-KPIC'
10645 lt_prog_compiler_static='-Bstatic'
10646 case $cc_basename in
10647 f77* | f90* | f95*)
10648 lt_prog_compiler_wl='-Qoption ld ';;
10650 lt_prog_compiler_wl='-Wl,';;
10651 esac
10654 sunos4*)
10655 lt_prog_compiler_wl='-Qoption ld '
10656 lt_prog_compiler_pic='-PIC'
10657 lt_prog_compiler_static='-Bstatic'
10660 sysv4 | sysv4.2uw2* | sysv4.3*)
10661 lt_prog_compiler_wl='-Wl,'
10662 lt_prog_compiler_pic='-KPIC'
10663 lt_prog_compiler_static='-Bstatic'
10666 sysv4*MP*)
10667 if test -d /usr/nec ;then
10668 lt_prog_compiler_pic='-Kconform_pic'
10669 lt_prog_compiler_static='-Bstatic'
10673 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10674 lt_prog_compiler_wl='-Wl,'
10675 lt_prog_compiler_pic='-KPIC'
10676 lt_prog_compiler_static='-Bstatic'
10679 unicos*)
10680 lt_prog_compiler_wl='-Wl,'
10681 lt_prog_compiler_can_build_shared=no
10684 uts4*)
10685 lt_prog_compiler_pic='-pic'
10686 lt_prog_compiler_static='-Bstatic'
10690 lt_prog_compiler_can_build_shared=no
10692 esac
10695 case $host_os in
10696 # For platforms which do not support PIC, -DPIC is meaningless:
10697 *djgpp*)
10698 lt_prog_compiler_pic=
10701 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10703 esac
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10705 $as_echo "$lt_prog_compiler_pic" >&6; }
10713 # Check to make sure the PIC flag actually works.
10715 if test -n "$lt_prog_compiler_pic"; then
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10717 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10718 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10719 $as_echo_n "(cached) " >&6
10720 else
10721 lt_cv_prog_compiler_pic_works=no
10722 ac_outfile=conftest.$ac_objext
10723 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10724 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10725 # Insert the option either (1) after the last *FLAGS variable, or
10726 # (2) before a word containing "conftest.", or (3) at the end.
10727 # Note that $ac_compile itself does not contain backslashes and begins
10728 # with a dollar sign (not a hyphen), so the echo should work correctly.
10729 # The option is referenced via a variable to avoid confusing sed.
10730 lt_compile=`echo "$ac_compile" | $SED \
10731 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10732 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10733 -e 's:$: $lt_compiler_flag:'`
10734 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10735 (eval "$lt_compile" 2>conftest.err)
10736 ac_status=$?
10737 cat conftest.err >&5
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 if (exit $ac_status) && test -s "$ac_outfile"; then
10740 # The compiler can only warn and ignore the option if not recognized
10741 # So say no if there are warnings other than the usual output.
10742 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10743 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10744 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10745 lt_cv_prog_compiler_pic_works=yes
10748 $RM conftest*
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10752 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10754 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10755 case $lt_prog_compiler_pic in
10756 "" | " "*) ;;
10757 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10758 esac
10759 else
10760 lt_prog_compiler_pic=
10761 lt_prog_compiler_can_build_shared=no
10772 # Check to make sure the static flag actually works.
10774 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10776 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10777 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10778 $as_echo_n "(cached) " >&6
10779 else
10780 lt_cv_prog_compiler_static_works=no
10781 save_LDFLAGS="$LDFLAGS"
10782 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10783 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10784 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10785 # The linker can only warn and ignore the option if not recognized
10786 # So say no if there are warnings
10787 if test -s conftest.err; then
10788 # Append any errors to the config.log.
10789 cat conftest.err 1>&5
10790 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10791 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10792 if diff conftest.exp conftest.er2 >/dev/null; then
10793 lt_cv_prog_compiler_static_works=yes
10795 else
10796 lt_cv_prog_compiler_static_works=yes
10799 $RM -r conftest*
10800 LDFLAGS="$save_LDFLAGS"
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10804 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10806 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10808 else
10809 lt_prog_compiler_static=
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10819 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10820 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10821 $as_echo_n "(cached) " >&6
10822 else
10823 lt_cv_prog_compiler_c_o=no
10824 $RM -r conftest 2>/dev/null
10825 mkdir conftest
10826 cd conftest
10827 mkdir out
10828 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10830 lt_compiler_flag="-o out/conftest2.$ac_objext"
10831 # Insert the option either (1) after the last *FLAGS variable, or
10832 # (2) before a word containing "conftest.", or (3) at the end.
10833 # Note that $ac_compile itself does not contain backslashes and begins
10834 # with a dollar sign (not a hyphen), so the echo should work correctly.
10835 lt_compile=`echo "$ac_compile" | $SED \
10836 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10837 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10838 -e 's:$: $lt_compiler_flag:'`
10839 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10840 (eval "$lt_compile" 2>out/conftest.err)
10841 ac_status=$?
10842 cat out/conftest.err >&5
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10845 then
10846 # The compiler can only warn and ignore the option if not recognized
10847 # So say no if there are warnings
10848 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10849 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10850 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10851 lt_cv_prog_compiler_c_o=yes
10854 chmod u+w . 2>&5
10855 $RM conftest*
10856 # SGI C++ compiler will create directory out/ii_files/ for
10857 # template instantiation
10858 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10859 $RM out/* && rmdir out
10860 cd ..
10861 $RM -r conftest
10862 $RM conftest*
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10866 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10874 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10875 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10876 $as_echo_n "(cached) " >&6
10877 else
10878 lt_cv_prog_compiler_c_o=no
10879 $RM -r conftest 2>/dev/null
10880 mkdir conftest
10881 cd conftest
10882 mkdir out
10883 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10885 lt_compiler_flag="-o out/conftest2.$ac_objext"
10886 # Insert the option either (1) after the last *FLAGS variable, or
10887 # (2) before a word containing "conftest.", or (3) at the end.
10888 # Note that $ac_compile itself does not contain backslashes and begins
10889 # with a dollar sign (not a hyphen), so the echo should work correctly.
10890 lt_compile=`echo "$ac_compile" | $SED \
10891 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10892 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10893 -e 's:$: $lt_compiler_flag:'`
10894 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10895 (eval "$lt_compile" 2>out/conftest.err)
10896 ac_status=$?
10897 cat out/conftest.err >&5
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10900 then
10901 # The compiler can only warn and ignore the option if not recognized
10902 # So say no if there are warnings
10903 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10904 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10905 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10906 lt_cv_prog_compiler_c_o=yes
10909 chmod u+w . 2>&5
10910 $RM conftest*
10911 # SGI C++ compiler will create directory out/ii_files/ for
10912 # template instantiation
10913 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10914 $RM out/* && rmdir out
10915 cd ..
10916 $RM -r conftest
10917 $RM conftest*
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10921 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10926 hard_links="nottested"
10927 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10928 # do not overwrite the value of need_locks provided by the user
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10930 $as_echo_n "checking if we can lock with hard links... " >&6; }
10931 hard_links=yes
10932 $RM conftest*
10933 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10934 touch conftest.a
10935 ln conftest.a conftest.b 2>&5 || hard_links=no
10936 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10938 $as_echo "$hard_links" >&6; }
10939 if test "$hard_links" = no; then
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10941 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10942 need_locks=warn
10944 else
10945 need_locks=no
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10954 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10956 runpath_var=
10957 allow_undefined_flag=
10958 always_export_symbols=no
10959 archive_cmds=
10960 archive_expsym_cmds=
10961 compiler_needs_object=no
10962 enable_shared_with_static_runtimes=no
10963 export_dynamic_flag_spec=
10964 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10965 hardcode_automatic=no
10966 hardcode_direct=no
10967 hardcode_direct_absolute=no
10968 hardcode_libdir_flag_spec=
10969 hardcode_libdir_flag_spec_ld=
10970 hardcode_libdir_separator=
10971 hardcode_minus_L=no
10972 hardcode_shlibpath_var=unsupported
10973 inherit_rpath=no
10974 link_all_deplibs=unknown
10975 module_cmds=
10976 module_expsym_cmds=
10977 old_archive_from_new_cmds=
10978 old_archive_from_expsyms_cmds=
10979 thread_safe_flag_spec=
10980 whole_archive_flag_spec=
10981 # include_expsyms should be a list of space-separated symbols to be *always*
10982 # included in the symbol list
10983 include_expsyms=
10984 # exclude_expsyms can be an extended regexp of symbols to exclude
10985 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10986 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10987 # as well as any symbol that contains `d'.
10988 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10989 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10990 # platforms (ab)use it in PIC code, but their linkers get confused if
10991 # the symbol is explicitly referenced. Since portable code cannot
10992 # rely on this symbol name, it's probably fine to never include it in
10993 # preloaded symbol tables.
10994 # Exclude shared library initialization/finalization symbols.
10995 extract_expsyms_cmds=
10997 case $host_os in
10998 cygwin* | mingw* | pw32* | cegcc*)
10999 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11000 # When not using gcc, we currently assume that we are using
11001 # Microsoft Visual C++.
11002 if test "$GCC" != yes; then
11003 with_gnu_ld=no
11006 interix*)
11007 # we just hope/assume this is gcc and not c89 (= MSVC++)
11008 with_gnu_ld=yes
11010 openbsd*)
11011 with_gnu_ld=no
11013 esac
11015 ld_shlibs=yes
11017 # On some targets, GNU ld is compatible enough with the native linker
11018 # that we're better off using the native interface for both.
11019 lt_use_gnu_ld_interface=no
11020 if test "$with_gnu_ld" = yes; then
11021 case $host_os in
11022 aix*)
11023 # The AIX port of GNU ld has always aspired to compatibility
11024 # with the native linker. However, as the warning in the GNU ld
11025 # block says, versions before 2.19.5* couldn't really create working
11026 # shared libraries, regardless of the interface used.
11027 case `$LD -v 2>&1` in
11028 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11029 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11030 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11032 lt_use_gnu_ld_interface=yes
11034 esac
11037 lt_use_gnu_ld_interface=yes
11039 esac
11042 if test "$lt_use_gnu_ld_interface" = yes; then
11043 # If archive_cmds runs LD, not CC, wlarc should be empty
11044 wlarc='${wl}'
11046 # Set some defaults for GNU ld with shared library support. These
11047 # are reset later if shared libraries are not supported. Putting them
11048 # here allows them to be overridden if necessary.
11049 runpath_var=LD_RUN_PATH
11050 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11051 export_dynamic_flag_spec='${wl}--export-dynamic'
11052 # ancient GNU ld didn't support --whole-archive et. al.
11053 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11054 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11055 else
11056 whole_archive_flag_spec=
11058 supports_anon_versioning=no
11059 case `$LD -v 2>&1` in
11060 *GNU\ gold*) supports_anon_versioning=yes ;;
11061 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11062 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11063 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11064 *\ 2.11.*) ;; # other 2.11 versions
11065 *) supports_anon_versioning=yes ;;
11066 esac
11068 # See if GNU ld supports shared libraries.
11069 case $host_os in
11070 aix[3-9]*)
11071 # On AIX/PPC, the GNU linker is very broken
11072 if test "$host_cpu" != ia64; then
11073 ld_shlibs=no
11074 cat <<_LT_EOF 1>&2
11076 *** Warning: the GNU linker, at least up to release 2.19, is reported
11077 *** to be unable to reliably create shared libraries on AIX.
11078 *** Therefore, libtool is disabling shared libraries support. If you
11079 *** really care for shared libraries, you may want to install binutils
11080 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11081 *** You will then need to restart the configuration process.
11083 _LT_EOF
11087 amigaos*)
11088 case $host_cpu in
11089 powerpc)
11090 # see comment about AmigaOS4 .so support
11091 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11092 archive_expsym_cmds=''
11094 m68k)
11095 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)'
11096 hardcode_libdir_flag_spec='-L$libdir'
11097 hardcode_minus_L=yes
11099 esac
11102 beos*)
11103 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11104 allow_undefined_flag=unsupported
11105 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11106 # support --undefined. This deserves some investigation. FIXME
11107 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11108 else
11109 ld_shlibs=no
11113 cygwin* | mingw* | pw32* | cegcc*)
11114 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11115 # as there is no search path for DLLs.
11116 hardcode_libdir_flag_spec='-L$libdir'
11117 export_dynamic_flag_spec='${wl}--export-all-symbols'
11118 allow_undefined_flag=unsupported
11119 always_export_symbols=no
11120 enable_shared_with_static_runtimes=yes
11121 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11123 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11124 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11125 # If the export-symbols file already is a .def file (1st line
11126 # is EXPORTS), use it as is; otherwise, prepend...
11127 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11128 cp $export_symbols $output_objdir/$soname.def;
11129 else
11130 echo EXPORTS > $output_objdir/$soname.def;
11131 cat $export_symbols >> $output_objdir/$soname.def;
11133 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11134 else
11135 ld_shlibs=no
11139 haiku*)
11140 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11141 link_all_deplibs=yes
11144 interix[3-9]*)
11145 hardcode_direct=no
11146 hardcode_shlibpath_var=no
11147 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11148 export_dynamic_flag_spec='${wl}-E'
11149 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11150 # Instead, shared libraries are loaded at an image base (0x10000000 by
11151 # default) and relocated if they conflict, which is a slow very memory
11152 # consuming and fragmenting process. To avoid this, we pick a random,
11153 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11154 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11155 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11156 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'
11159 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11160 tmp_diet=no
11161 if test "$host_os" = linux-dietlibc; then
11162 case $cc_basename in
11163 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11164 esac
11166 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11167 && test "$tmp_diet" = no
11168 then
11169 tmp_addflag=
11170 tmp_sharedflag='-shared'
11171 case $cc_basename,$host_cpu in
11172 pgcc*) # Portland Group C compiler
11173 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'
11174 tmp_addflag=' $pic_flag'
11176 pgf77* | pgf90* | pgf95* | pgfortran*)
11177 # Portland Group f77 and f90 compilers
11178 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'
11179 tmp_addflag=' $pic_flag -Mnomain' ;;
11180 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11181 tmp_addflag=' -i_dynamic' ;;
11182 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11183 tmp_addflag=' -i_dynamic -nofor_main' ;;
11184 ifc* | ifort*) # Intel Fortran compiler
11185 tmp_addflag=' -nofor_main' ;;
11186 lf95*) # Lahey Fortran 8.1
11187 whole_archive_flag_spec=
11188 tmp_sharedflag='--shared' ;;
11189 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11190 tmp_sharedflag='-qmkshrobj'
11191 tmp_addflag= ;;
11192 nvcc*) # Cuda Compiler Driver 2.2
11193 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'
11194 compiler_needs_object=yes
11196 esac
11197 case `$CC -V 2>&1 | sed 5q` in
11198 *Sun\ C*) # Sun C 5.9
11199 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'
11200 compiler_needs_object=yes
11201 tmp_sharedflag='-G' ;;
11202 *Sun\ F*) # Sun Fortran 8.3
11203 tmp_sharedflag='-G' ;;
11204 esac
11205 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$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 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11214 case $cc_basename in
11215 xlf* | bgf* | bgxlf* | mpixlf*)
11216 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11217 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11218 hardcode_libdir_flag_spec=
11219 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11220 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11221 if test "x$supports_anon_versioning" = xyes; then
11222 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11223 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11224 echo "local: *; };" >> $output_objdir/$libname.ver~
11225 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11228 esac
11229 else
11230 ld_shlibs=no
11234 netbsd*)
11235 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11236 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11237 wlarc=
11238 else
11239 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11240 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11244 solaris*)
11245 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11246 ld_shlibs=no
11247 cat <<_LT_EOF 1>&2
11249 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11250 *** create shared libraries on Solaris systems. Therefore, libtool
11251 *** is disabling shared libraries support. We urge you to upgrade GNU
11252 *** binutils to release 2.9.1 or newer. Another option is to modify
11253 *** your PATH or compiler configuration so that the native linker is
11254 *** used, and then restart.
11256 _LT_EOF
11257 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11258 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11259 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11260 else
11261 ld_shlibs=no
11265 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11266 case `$LD -v 2>&1` in
11267 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11268 ld_shlibs=no
11269 cat <<_LT_EOF 1>&2
11271 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11272 *** reliably create shared libraries on SCO systems. Therefore, libtool
11273 *** is disabling shared libraries support. We urge you to upgrade GNU
11274 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11275 *** your PATH or compiler configuration so that the native linker is
11276 *** used, and then restart.
11278 _LT_EOF
11281 # For security reasons, it is highly recommended that you always
11282 # use absolute paths for naming shared libraries, and exclude the
11283 # DT_RUNPATH tag from executables and libraries. But doing so
11284 # requires that you compile everything twice, which is a pain.
11285 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11286 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11287 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11288 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11289 else
11290 ld_shlibs=no
11293 esac
11296 sunos4*)
11297 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11298 wlarc=
11299 hardcode_direct=yes
11300 hardcode_shlibpath_var=no
11304 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11306 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11307 else
11308 ld_shlibs=no
11311 esac
11313 if test "$ld_shlibs" = no; then
11314 runpath_var=
11315 hardcode_libdir_flag_spec=
11316 export_dynamic_flag_spec=
11317 whole_archive_flag_spec=
11319 else
11320 # PORTME fill in a description of your system's linker (not GNU ld)
11321 case $host_os in
11322 aix3*)
11323 allow_undefined_flag=unsupported
11324 always_export_symbols=yes
11325 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'
11326 # Note: this linker hardcodes the directories in LIBPATH if there
11327 # are no directories specified by -L.
11328 hardcode_minus_L=yes
11329 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11330 # Neither direct hardcoding nor static linking is supported with a
11331 # broken collect2.
11332 hardcode_direct=unsupported
11336 aix[4-9]*)
11337 if test "$host_cpu" = ia64; then
11338 # On IA64, the linker does run time linking by default, so we don't
11339 # have to do anything special.
11340 aix_use_runtimelinking=no
11341 exp_sym_flag='-Bexport'
11342 no_entry_flag=""
11343 else
11344 # If we're using GNU nm, then we don't want the "-C" option.
11345 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11346 # Also, AIX nm treats weak defined symbols like other global
11347 # defined symbols, whereas GNU nm marks them as "W".
11348 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11349 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'
11350 else
11351 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'
11353 aix_use_runtimelinking=no
11355 # Test if we are trying to use run time linking or normal
11356 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11357 # need to do runtime linking.
11358 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11359 for ld_flag in $LDFLAGS; do
11360 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11361 aix_use_runtimelinking=yes
11362 break
11364 done
11366 esac
11368 exp_sym_flag='-bexport'
11369 no_entry_flag='-bnoentry'
11372 # When large executables or shared objects are built, AIX ld can
11373 # have problems creating the table of contents. If linking a library
11374 # or program results in "error TOC overflow" add -mminimal-toc to
11375 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11376 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11378 archive_cmds=''
11379 hardcode_direct=yes
11380 hardcode_direct_absolute=yes
11381 hardcode_libdir_separator=':'
11382 link_all_deplibs=yes
11383 file_list_spec='${wl}-f,'
11385 if test "$GCC" = yes; then
11386 case $host_os in aix4.[012]|aix4.[012].*)
11387 # We only want to do this on AIX 4.2 and lower, the check
11388 # below for broken collect2 doesn't work under 4.3+
11389 collect2name=`${CC} -print-prog-name=collect2`
11390 if test -f "$collect2name" &&
11391 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11392 then
11393 # We have reworked collect2
11395 else
11396 # We have old collect2
11397 hardcode_direct=unsupported
11398 # It fails to find uninstalled libraries when the uninstalled
11399 # path is not listed in the libpath. Setting hardcode_minus_L
11400 # to unsupported forces relinking
11401 hardcode_minus_L=yes
11402 hardcode_libdir_flag_spec='-L$libdir'
11403 hardcode_libdir_separator=
11406 esac
11407 shared_flag='-shared'
11408 if test "$aix_use_runtimelinking" = yes; then
11409 shared_flag="$shared_flag "'${wl}-G'
11411 else
11412 # not using gcc
11413 if test "$host_cpu" = ia64; then
11414 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11415 # chokes on -Wl,-G. The following line is correct:
11416 shared_flag='-G'
11417 else
11418 if test "$aix_use_runtimelinking" = yes; then
11419 shared_flag='${wl}-G'
11420 else
11421 shared_flag='${wl}-bM:SRE'
11426 export_dynamic_flag_spec='${wl}-bexpall'
11427 # It seems that -bexpall does not export symbols beginning with
11428 # underscore (_), so it is better to generate a list of symbols to export.
11429 always_export_symbols=yes
11430 if test "$aix_use_runtimelinking" = yes; then
11431 # Warning - without using the other runtime loading flags (-brtl),
11432 # -berok will link without error, but may produce a broken library.
11433 allow_undefined_flag='-berok'
11434 # Determine the default libpath from the value encoded in an
11435 # empty executable.
11436 if test x$gcc_no_link = xyes; then
11437 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11440 /* end confdefs.h. */
11443 main ()
11447 return 0;
11449 _ACEOF
11450 if ac_fn_c_try_link "$LINENO"; then :
11452 lt_aix_libpath_sed='
11453 /Import File Strings/,/^$/ {
11454 /^0/ {
11455 s/^0 *\(.*\)$/\1/
11459 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11460 # Check for a 64-bit object if we didn't find anything.
11461 if test -z "$aix_libpath"; then
11462 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11465 rm -f core conftest.err conftest.$ac_objext \
11466 conftest$ac_exeext conftest.$ac_ext
11467 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11469 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11470 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"
11471 else
11472 if test "$host_cpu" = ia64; then
11473 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11474 allow_undefined_flag="-z nodefs"
11475 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"
11476 else
11477 # Determine the default libpath from the value encoded in an
11478 # empty executable.
11479 if test x$gcc_no_link = xyes; then
11480 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11483 /* end confdefs.h. */
11486 main ()
11490 return 0;
11492 _ACEOF
11493 if ac_fn_c_try_link "$LINENO"; then :
11495 lt_aix_libpath_sed='
11496 /Import File Strings/,/^$/ {
11497 /^0/ {
11498 s/^0 *\(.*\)$/\1/
11502 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11503 # Check for a 64-bit object if we didn't find anything.
11504 if test -z "$aix_libpath"; then
11505 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11508 rm -f core conftest.err conftest.$ac_objext \
11509 conftest$ac_exeext conftest.$ac_ext
11510 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11512 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11513 # Warning - without using the other run time loading flags,
11514 # -berok will link without error, but may produce a broken library.
11515 no_undefined_flag=' ${wl}-bernotok'
11516 allow_undefined_flag=' ${wl}-berok'
11517 if test "$with_gnu_ld" = yes; then
11518 # We only use this code for GNU lds that support --whole-archive.
11519 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11520 else
11521 # Exported symbols can be pulled into shared objects from archives
11522 whole_archive_flag_spec='$convenience'
11524 archive_cmds_need_lc=yes
11525 # This is similar to how AIX traditionally builds its shared libraries.
11526 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'
11531 amigaos*)
11532 case $host_cpu in
11533 powerpc)
11534 # see comment about AmigaOS4 .so support
11535 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11536 archive_expsym_cmds=''
11538 m68k)
11539 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)'
11540 hardcode_libdir_flag_spec='-L$libdir'
11541 hardcode_minus_L=yes
11543 esac
11546 bsdi[45]*)
11547 export_dynamic_flag_spec=-rdynamic
11550 cygwin* | mingw* | pw32* | cegcc*)
11551 # When not using gcc, we currently assume that we are using
11552 # Microsoft Visual C++.
11553 # hardcode_libdir_flag_spec is actually meaningless, as there is
11554 # no search path for DLLs.
11555 hardcode_libdir_flag_spec=' '
11556 allow_undefined_flag=unsupported
11557 # Tell ltmain to make .lib files, not .a files.
11558 libext=lib
11559 # Tell ltmain to make .dll files, not .so files.
11560 shrext_cmds=".dll"
11561 # FIXME: Setting linknames here is a bad hack.
11562 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11563 # The linker will automatically build a .lib file if we build a DLL.
11564 old_archive_from_new_cmds='true'
11565 # FIXME: Should let the user specify the lib program.
11566 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11567 fix_srcfile_path='`cygpath -w "$srcfile"`'
11568 enable_shared_with_static_runtimes=yes
11571 darwin* | rhapsody*)
11574 archive_cmds_need_lc=no
11575 hardcode_direct=no
11576 hardcode_automatic=yes
11577 hardcode_shlibpath_var=unsupported
11578 if test "$lt_cv_ld_force_load" = "yes"; then
11579 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\"`'
11580 else
11581 whole_archive_flag_spec=''
11583 link_all_deplibs=yes
11584 allow_undefined_flag="$_lt_dar_allow_undefined"
11585 case $cc_basename in
11586 ifort*) _lt_dar_can_shared=yes ;;
11587 *) _lt_dar_can_shared=$GCC ;;
11588 esac
11589 if test "$_lt_dar_can_shared" = "yes"; then
11590 output_verbose_link_cmd=func_echo_all
11591 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11592 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11593 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}"
11594 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}"
11596 else
11597 ld_shlibs=no
11602 dgux*)
11603 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11604 hardcode_libdir_flag_spec='-L$libdir'
11605 hardcode_shlibpath_var=no
11608 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11609 # support. Future versions do this automatically, but an explicit c++rt0.o
11610 # does not break anything, and helps significantly (at the cost of a little
11611 # extra space).
11612 freebsd2.2*)
11613 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11614 hardcode_libdir_flag_spec='-R$libdir'
11615 hardcode_direct=yes
11616 hardcode_shlibpath_var=no
11619 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11620 freebsd2.*)
11621 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11622 hardcode_direct=yes
11623 hardcode_minus_L=yes
11624 hardcode_shlibpath_var=no
11627 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11628 freebsd* | dragonfly*)
11629 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11630 hardcode_libdir_flag_spec='-R$libdir'
11631 hardcode_direct=yes
11632 hardcode_shlibpath_var=no
11635 hpux9*)
11636 if test "$GCC" = yes; then
11637 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'
11638 else
11639 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'
11641 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11642 hardcode_libdir_separator=:
11643 hardcode_direct=yes
11645 # hardcode_minus_L: Not really in the search PATH,
11646 # but as the default location of the library.
11647 hardcode_minus_L=yes
11648 export_dynamic_flag_spec='${wl}-E'
11651 hpux10*)
11652 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11653 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11654 else
11655 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11657 if test "$with_gnu_ld" = no; then
11658 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11659 hardcode_libdir_flag_spec_ld='+b $libdir'
11660 hardcode_libdir_separator=:
11661 hardcode_direct=yes
11662 hardcode_direct_absolute=yes
11663 export_dynamic_flag_spec='${wl}-E'
11664 # hardcode_minus_L: Not really in the search PATH,
11665 # but as the default location of the library.
11666 hardcode_minus_L=yes
11670 hpux11*)
11671 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11672 case $host_cpu in
11673 hppa*64*)
11674 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11676 ia64*)
11677 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11680 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11682 esac
11683 else
11684 case $host_cpu in
11685 hppa*64*)
11686 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11688 ia64*)
11689 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11693 # Older versions of the 11.00 compiler do not understand -b yet
11694 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11696 $as_echo_n "checking if $CC understands -b... " >&6; }
11697 if test "${lt_cv_prog_compiler__b+set}" = set; then :
11698 $as_echo_n "(cached) " >&6
11699 else
11700 lt_cv_prog_compiler__b=no
11701 save_LDFLAGS="$LDFLAGS"
11702 LDFLAGS="$LDFLAGS -b"
11703 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11704 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11705 # The linker can only warn and ignore the option if not recognized
11706 # So say no if there are warnings
11707 if test -s conftest.err; then
11708 # Append any errors to the config.log.
11709 cat conftest.err 1>&5
11710 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11711 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11712 if diff conftest.exp conftest.er2 >/dev/null; then
11713 lt_cv_prog_compiler__b=yes
11715 else
11716 lt_cv_prog_compiler__b=yes
11719 $RM -r conftest*
11720 LDFLAGS="$save_LDFLAGS"
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11724 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11726 if test x"$lt_cv_prog_compiler__b" = xyes; then
11727 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11728 else
11729 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11733 esac
11735 if test "$with_gnu_ld" = no; then
11736 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11737 hardcode_libdir_separator=:
11739 case $host_cpu in
11740 hppa*64*|ia64*)
11741 hardcode_direct=no
11742 hardcode_shlibpath_var=no
11745 hardcode_direct=yes
11746 hardcode_direct_absolute=yes
11747 export_dynamic_flag_spec='${wl}-E'
11749 # hardcode_minus_L: Not really in the search PATH,
11750 # but as the default location of the library.
11751 hardcode_minus_L=yes
11753 esac
11757 irix5* | irix6* | nonstopux*)
11758 if test "$GCC" = yes; then
11759 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'
11760 # Try to use the -exported_symbol ld option, if it does not
11761 # work, assume that -exports_file does not work either and
11762 # implicitly export all symbols.
11763 save_LDFLAGS="$LDFLAGS"
11764 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11765 if test x$gcc_no_link = xyes; then
11766 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11769 /* end confdefs.h. */
11770 int foo(void) {}
11771 _ACEOF
11772 if ac_fn_c_try_link "$LINENO"; then :
11773 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'
11776 rm -f core conftest.err conftest.$ac_objext \
11777 conftest$ac_exeext conftest.$ac_ext
11778 LDFLAGS="$save_LDFLAGS"
11779 else
11780 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'
11781 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'
11783 archive_cmds_need_lc='no'
11784 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11785 hardcode_libdir_separator=:
11786 inherit_rpath=yes
11787 link_all_deplibs=yes
11790 netbsd*)
11791 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11792 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11793 else
11794 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11796 hardcode_libdir_flag_spec='-R$libdir'
11797 hardcode_direct=yes
11798 hardcode_shlibpath_var=no
11801 newsos6)
11802 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11803 hardcode_direct=yes
11804 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11805 hardcode_libdir_separator=:
11806 hardcode_shlibpath_var=no
11809 *nto* | *qnx*)
11812 openbsd*)
11813 if test -f /usr/libexec/ld.so; then
11814 hardcode_direct=yes
11815 hardcode_shlibpath_var=no
11816 hardcode_direct_absolute=yes
11817 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11818 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11819 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11820 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11821 export_dynamic_flag_spec='${wl}-E'
11822 else
11823 case $host_os in
11824 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11825 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11826 hardcode_libdir_flag_spec='-R$libdir'
11829 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11830 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11832 esac
11834 else
11835 ld_shlibs=no
11839 os2*)
11840 hardcode_libdir_flag_spec='-L$libdir'
11841 hardcode_minus_L=yes
11842 allow_undefined_flag=unsupported
11843 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'
11844 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11847 osf3*)
11848 if test "$GCC" = yes; then
11849 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11850 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'
11851 else
11852 allow_undefined_flag=' -expect_unresolved \*'
11853 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'
11855 archive_cmds_need_lc='no'
11856 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11857 hardcode_libdir_separator=:
11860 osf4* | osf5*) # as osf3* with the addition of -msym flag
11861 if test "$GCC" = yes; then
11862 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11863 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'
11864 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11865 else
11866 allow_undefined_flag=' -expect_unresolved \*'
11867 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'
11868 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~
11869 $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'
11871 # Both c and cxx compiler support -rpath directly
11872 hardcode_libdir_flag_spec='-rpath $libdir'
11874 archive_cmds_need_lc='no'
11875 hardcode_libdir_separator=:
11878 solaris*)
11879 no_undefined_flag=' -z defs'
11880 if test "$GCC" = yes; then
11881 wlarc='${wl}'
11882 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11883 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11884 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11885 else
11886 case `$CC -V 2>&1` in
11887 *"Compilers 5.0"*)
11888 wlarc=''
11889 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11890 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11891 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11894 wlarc='${wl}'
11895 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11896 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11897 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11899 esac
11901 hardcode_libdir_flag_spec='-R$libdir'
11902 hardcode_shlibpath_var=no
11903 case $host_os in
11904 solaris2.[0-5] | solaris2.[0-5].*) ;;
11906 # The compiler driver will combine and reorder linker options,
11907 # but understands `-z linker_flag'. GCC discards it without `$wl',
11908 # but is careful enough not to reorder.
11909 # Supported since Solaris 2.6 (maybe 2.5.1?)
11910 if test "$GCC" = yes; then
11911 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11912 else
11913 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11916 esac
11917 link_all_deplibs=yes
11920 sunos4*)
11921 if test "x$host_vendor" = xsequent; then
11922 # Use $CC to link under sequent, because it throws in some extra .o
11923 # files that make .init and .fini sections work.
11924 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11925 else
11926 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11928 hardcode_libdir_flag_spec='-L$libdir'
11929 hardcode_direct=yes
11930 hardcode_minus_L=yes
11931 hardcode_shlibpath_var=no
11934 sysv4)
11935 case $host_vendor in
11936 sni)
11937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11938 hardcode_direct=yes # is this really true???
11940 siemens)
11941 ## LD is ld it makes a PLAMLIB
11942 ## CC just makes a GrossModule.
11943 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11944 reload_cmds='$CC -r -o $output$reload_objs'
11945 hardcode_direct=no
11947 motorola)
11948 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11949 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11951 esac
11952 runpath_var='LD_RUN_PATH'
11953 hardcode_shlibpath_var=no
11956 sysv4.3*)
11957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11958 hardcode_shlibpath_var=no
11959 export_dynamic_flag_spec='-Bexport'
11962 sysv4*MP*)
11963 if test -d /usr/nec; then
11964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11965 hardcode_shlibpath_var=no
11966 runpath_var=LD_RUN_PATH
11967 hardcode_runpath_var=yes
11968 ld_shlibs=yes
11972 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11973 no_undefined_flag='${wl}-z,text'
11974 archive_cmds_need_lc=no
11975 hardcode_shlibpath_var=no
11976 runpath_var='LD_RUN_PATH'
11978 if test "$GCC" = yes; then
11979 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11980 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11981 else
11982 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11983 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11987 sysv5* | sco3.2v5* | sco5v6*)
11988 # Note: We can NOT use -z defs as we might desire, because we do not
11989 # link with -lc, and that would cause any symbols used from libc to
11990 # always be unresolved, which means just about no library would
11991 # ever link correctly. If we're not using GNU ld we use -z text
11992 # though, which does catch some bad symbols but isn't as heavy-handed
11993 # as -z defs.
11994 no_undefined_flag='${wl}-z,text'
11995 allow_undefined_flag='${wl}-z,nodefs'
11996 archive_cmds_need_lc=no
11997 hardcode_shlibpath_var=no
11998 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11999 hardcode_libdir_separator=':'
12000 link_all_deplibs=yes
12001 export_dynamic_flag_spec='${wl}-Bexport'
12002 runpath_var='LD_RUN_PATH'
12004 if test "$GCC" = yes; then
12005 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12006 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12007 else
12008 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12009 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12013 uts4*)
12014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12015 hardcode_libdir_flag_spec='-L$libdir'
12016 hardcode_shlibpath_var=no
12020 ld_shlibs=no
12022 esac
12024 if test x$host_vendor = xsni; then
12025 case $host in
12026 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12027 export_dynamic_flag_spec='${wl}-Blargedynsym'
12029 esac
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12034 $as_echo "$ld_shlibs" >&6; }
12035 test "$ld_shlibs" = no && can_build_shared=no
12037 with_gnu_ld=$with_gnu_ld
12054 # Do we need to explicitly link libc?
12056 case "x$archive_cmds_need_lc" in
12057 x|xyes)
12058 # Assume -lc should be added
12059 archive_cmds_need_lc=yes
12061 if test "$enable_shared" = yes && test "$GCC" = yes; then
12062 case $archive_cmds in
12063 *'~'*)
12064 # FIXME: we may have to deal with multi-command sequences.
12066 '$CC '*)
12067 # Test whether the compiler implicitly links with -lc since on some
12068 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12069 # to ld, don't add -lc before -lgcc.
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12071 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12072 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
12073 $as_echo_n "(cached) " >&6
12074 else
12075 $RM conftest*
12076 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12078 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12079 (eval $ac_compile) 2>&5
12080 ac_status=$?
12081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12082 test $ac_status = 0; } 2>conftest.err; then
12083 soname=conftest
12084 lib=conftest
12085 libobjs=conftest.$ac_objext
12086 deplibs=
12087 wl=$lt_prog_compiler_wl
12088 pic_flag=$lt_prog_compiler_pic
12089 compiler_flags=-v
12090 linker_flags=-v
12091 verstring=
12092 output_objdir=.
12093 libname=conftest
12094 lt_save_allow_undefined_flag=$allow_undefined_flag
12095 allow_undefined_flag=
12096 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12097 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12098 ac_status=$?
12099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12100 test $ac_status = 0; }
12101 then
12102 lt_cv_archive_cmds_need_lc=no
12103 else
12104 lt_cv_archive_cmds_need_lc=yes
12106 allow_undefined_flag=$lt_save_allow_undefined_flag
12107 else
12108 cat conftest.err 1>&5
12110 $RM conftest*
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12114 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12115 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12117 esac
12120 esac
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12279 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12281 if test "$GCC" = yes; then
12282 case $host_os in
12283 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12284 *) lt_awk_arg="/^libraries:/" ;;
12285 esac
12286 case $host_os in
12287 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12288 *) lt_sed_strip_eq="s,=/,/,g" ;;
12289 esac
12290 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12291 case $lt_search_path_spec in
12292 *\;*)
12293 # if the path contains ";" then we assume it to be the separator
12294 # otherwise default to the standard path separator (i.e. ":") - it is
12295 # assumed that no part of a normal pathname contains ";" but that should
12296 # okay in the real world where ";" in dirpaths is itself problematic.
12297 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12300 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12302 esac
12303 # Ok, now we have the path, separated by spaces, we can step through it
12304 # and add multilib dir if necessary.
12305 lt_tmp_lt_search_path_spec=
12306 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12307 for lt_sys_path in $lt_search_path_spec; do
12308 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12309 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12310 else
12311 test -d "$lt_sys_path" && \
12312 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12314 done
12315 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12316 BEGIN {RS=" "; FS="/|\n";} {
12317 lt_foo="";
12318 lt_count=0;
12319 for (lt_i = NF; lt_i > 0; lt_i--) {
12320 if ($lt_i != "" && $lt_i != ".") {
12321 if ($lt_i == "..") {
12322 lt_count++;
12323 } else {
12324 if (lt_count == 0) {
12325 lt_foo="/" $lt_i lt_foo;
12326 } else {
12327 lt_count--;
12332 if (lt_foo != "") { lt_freq[lt_foo]++; }
12333 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12335 # AWK program above erroneously prepends '/' to C:/dos/paths
12336 # for these hosts.
12337 case $host_os in
12338 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12339 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12340 esac
12341 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12342 else
12343 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12345 library_names_spec=
12346 libname_spec='lib$name'
12347 soname_spec=
12348 shrext_cmds=".so"
12349 postinstall_cmds=
12350 postuninstall_cmds=
12351 finish_cmds=
12352 finish_eval=
12353 shlibpath_var=
12354 shlibpath_overrides_runpath=unknown
12355 version_type=none
12356 dynamic_linker="$host_os ld.so"
12357 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12358 need_lib_prefix=unknown
12359 hardcode_into_libs=no
12361 # when you set need_version to no, make sure it does not cause -set_version
12362 # flags to be left without arguments
12363 need_version=unknown
12365 case $host_os in
12366 aix3*)
12367 version_type=linux
12368 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12369 shlibpath_var=LIBPATH
12371 # AIX 3 has no versioning support, so we append a major version to the name.
12372 soname_spec='${libname}${release}${shared_ext}$major'
12375 aix[4-9]*)
12376 version_type=linux
12377 need_lib_prefix=no
12378 need_version=no
12379 hardcode_into_libs=yes
12380 if test "$host_cpu" = ia64; then
12381 # AIX 5 supports IA64
12382 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12383 shlibpath_var=LD_LIBRARY_PATH
12384 else
12385 # With GCC up to 2.95.x, collect2 would create an import file
12386 # for dependence libraries. The import file would start with
12387 # the line `#! .'. This would cause the generated library to
12388 # depend on `.', always an invalid library. This was fixed in
12389 # development snapshots of GCC prior to 3.0.
12390 case $host_os in
12391 aix4 | aix4.[01] | aix4.[01].*)
12392 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12393 echo ' yes '
12394 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12396 else
12397 can_build_shared=no
12400 esac
12401 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12402 # soname into executable. Probably we can add versioning support to
12403 # collect2, so additional links can be useful in future.
12404 if test "$aix_use_runtimelinking" = yes; then
12405 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12406 # instead of lib<name>.a to let people know that these are not
12407 # typical AIX shared libraries.
12408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12409 else
12410 # We preserve .a as extension for shared libraries through AIX4.2
12411 # and later when we are not doing run time linking.
12412 library_names_spec='${libname}${release}.a $libname.a'
12413 soname_spec='${libname}${release}${shared_ext}$major'
12415 shlibpath_var=LIBPATH
12419 amigaos*)
12420 case $host_cpu in
12421 powerpc)
12422 # Since July 2007 AmigaOS4 officially supports .so libraries.
12423 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12426 m68k)
12427 library_names_spec='$libname.ixlibrary $libname.a'
12428 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12429 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'
12431 esac
12434 beos*)
12435 library_names_spec='${libname}${shared_ext}'
12436 dynamic_linker="$host_os ld.so"
12437 shlibpath_var=LIBRARY_PATH
12440 bsdi[45]*)
12441 version_type=linux
12442 need_version=no
12443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12444 soname_spec='${libname}${release}${shared_ext}$major'
12445 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12446 shlibpath_var=LD_LIBRARY_PATH
12447 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12448 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12449 # the default ld.so.conf also contains /usr/contrib/lib and
12450 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12451 # libtool to hard-code these into programs
12454 cygwin* | mingw* | pw32* | cegcc*)
12455 version_type=windows
12456 shrext_cmds=".dll"
12457 need_version=no
12458 need_lib_prefix=no
12460 case $GCC,$host_os in
12461 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12462 library_names_spec='$libname.dll.a'
12463 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12464 postinstall_cmds='base_file=`basename \${file}`~
12465 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12466 dldir=$destdir/`dirname \$dlpath`~
12467 test -d \$dldir || mkdir -p \$dldir~
12468 $install_prog $dir/$dlname \$dldir/$dlname~
12469 chmod a+x \$dldir/$dlname~
12470 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12471 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12473 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12474 dlpath=$dir/\$dldll~
12475 $RM \$dlpath'
12476 shlibpath_overrides_runpath=yes
12478 case $host_os in
12479 cygwin*)
12480 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12481 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12483 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12485 mingw* | cegcc*)
12486 # MinGW DLLs use traditional 'lib' prefix
12487 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12489 pw32*)
12490 # pw32 DLLs use 'pw' prefix rather than 'lib'
12491 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12493 esac
12497 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12499 esac
12500 dynamic_linker='Win32 ld.exe'
12501 # FIXME: first we should search . and the directory the executable is in
12502 shlibpath_var=PATH
12505 darwin* | rhapsody*)
12506 dynamic_linker="$host_os dyld"
12507 version_type=darwin
12508 need_lib_prefix=no
12509 need_version=no
12510 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12511 soname_spec='${libname}${release}${major}$shared_ext'
12512 shlibpath_overrides_runpath=yes
12513 shlibpath_var=DYLD_LIBRARY_PATH
12514 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12516 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12517 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12520 dgux*)
12521 version_type=linux
12522 need_lib_prefix=no
12523 need_version=no
12524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12525 soname_spec='${libname}${release}${shared_ext}$major'
12526 shlibpath_var=LD_LIBRARY_PATH
12529 freebsd* | dragonfly*)
12530 # DragonFly does not have aout. When/if they implement a new
12531 # versioning mechanism, adjust this.
12532 if test -x /usr/bin/objformat; then
12533 objformat=`/usr/bin/objformat`
12534 else
12535 case $host_os in
12536 freebsd[23].*) objformat=aout ;;
12537 *) objformat=elf ;;
12538 esac
12540 version_type=freebsd-$objformat
12541 case $version_type in
12542 freebsd-elf*)
12543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12544 need_version=no
12545 need_lib_prefix=no
12547 freebsd-*)
12548 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12549 need_version=yes
12551 esac
12552 shlibpath_var=LD_LIBRARY_PATH
12553 case $host_os in
12554 freebsd2.*)
12555 shlibpath_overrides_runpath=yes
12557 freebsd3.[01]* | freebsdelf3.[01]*)
12558 shlibpath_overrides_runpath=yes
12559 hardcode_into_libs=yes
12561 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12562 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12563 shlibpath_overrides_runpath=no
12564 hardcode_into_libs=yes
12566 *) # from 4.6 on, and DragonFly
12567 shlibpath_overrides_runpath=yes
12568 hardcode_into_libs=yes
12570 esac
12573 gnu*)
12574 version_type=linux
12575 need_lib_prefix=no
12576 need_version=no
12577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12578 soname_spec='${libname}${release}${shared_ext}$major'
12579 shlibpath_var=LD_LIBRARY_PATH
12580 hardcode_into_libs=yes
12583 haiku*)
12584 version_type=linux
12585 need_lib_prefix=no
12586 need_version=no
12587 dynamic_linker="$host_os runtime_loader"
12588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12589 soname_spec='${libname}${release}${shared_ext}$major'
12590 shlibpath_var=LIBRARY_PATH
12591 shlibpath_overrides_runpath=yes
12592 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
12593 hardcode_into_libs=yes
12596 hpux9* | hpux10* | hpux11*)
12597 # Give a soname corresponding to the major version so that dld.sl refuses to
12598 # link against other versions.
12599 version_type=sunos
12600 need_lib_prefix=no
12601 need_version=no
12602 case $host_cpu in
12603 ia64*)
12604 shrext_cmds='.so'
12605 hardcode_into_libs=yes
12606 dynamic_linker="$host_os dld.so"
12607 shlibpath_var=LD_LIBRARY_PATH
12608 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12610 soname_spec='${libname}${release}${shared_ext}$major'
12611 if test "X$HPUX_IA64_MODE" = X32; then
12612 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12613 else
12614 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12616 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12618 hppa*64*)
12619 shrext_cmds='.sl'
12620 hardcode_into_libs=yes
12621 dynamic_linker="$host_os dld.sl"
12622 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12623 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12625 soname_spec='${libname}${release}${shared_ext}$major'
12626 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12627 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12630 shrext_cmds='.sl'
12631 dynamic_linker="$host_os dld.sl"
12632 shlibpath_var=SHLIB_PATH
12633 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
12637 esac
12638 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12639 postinstall_cmds='chmod 555 $lib'
12640 # or fails outright, so override atomically:
12641 install_override_mode=555
12644 interix[3-9]*)
12645 version_type=linux
12646 need_lib_prefix=no
12647 need_version=no
12648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12649 soname_spec='${libname}${release}${shared_ext}$major'
12650 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12651 shlibpath_var=LD_LIBRARY_PATH
12652 shlibpath_overrides_runpath=no
12653 hardcode_into_libs=yes
12656 irix5* | irix6* | nonstopux*)
12657 case $host_os in
12658 nonstopux*) version_type=nonstopux ;;
12660 if test "$lt_cv_prog_gnu_ld" = yes; then
12661 version_type=linux
12662 else
12663 version_type=irix
12664 fi ;;
12665 esac
12666 need_lib_prefix=no
12667 need_version=no
12668 soname_spec='${libname}${release}${shared_ext}$major'
12669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12670 case $host_os in
12671 irix5* | nonstopux*)
12672 libsuff= shlibsuff=
12675 case $LD in # libtool.m4 will add one of these switches to LD
12676 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12677 libsuff= shlibsuff= libmagic=32-bit;;
12678 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12679 libsuff=32 shlibsuff=N32 libmagic=N32;;
12680 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12681 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12682 *) libsuff= shlibsuff= libmagic=never-match;;
12683 esac
12685 esac
12686 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12687 shlibpath_overrides_runpath=no
12688 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12689 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12690 hardcode_into_libs=yes
12693 # No shared lib support for Linux oldld, aout, or coff.
12694 linux*oldld* | linux*aout* | linux*coff*)
12695 dynamic_linker=no
12698 # This must be Linux ELF.
12699 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12700 version_type=linux
12701 need_lib_prefix=no
12702 need_version=no
12703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12704 soname_spec='${libname}${release}${shared_ext}$major'
12705 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12706 shlibpath_var=LD_LIBRARY_PATH
12707 shlibpath_overrides_runpath=no
12709 # Some binutils ld are patched to set DT_RUNPATH
12710 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
12711 $as_echo_n "(cached) " >&6
12712 else
12713 lt_cv_shlibpath_overrides_runpath=no
12714 save_LDFLAGS=$LDFLAGS
12715 save_libdir=$libdir
12716 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12717 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12718 if test x$gcc_no_link = xyes; then
12719 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12722 /* end confdefs.h. */
12725 main ()
12729 return 0;
12731 _ACEOF
12732 if ac_fn_c_try_link "$LINENO"; then :
12733 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12734 lt_cv_shlibpath_overrides_runpath=yes
12737 rm -f core conftest.err conftest.$ac_objext \
12738 conftest$ac_exeext conftest.$ac_ext
12739 LDFLAGS=$save_LDFLAGS
12740 libdir=$save_libdir
12744 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12746 # This implies no fast_install, which is unacceptable.
12747 # Some rework will be needed to allow for fast_install
12748 # before this can be enabled.
12749 hardcode_into_libs=yes
12751 # Append ld.so.conf contents to the search path
12752 if test -f /etc/ld.so.conf; then
12753 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' ' '`
12754 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12757 # We used to test for /lib/ld.so.1 and disable shared libraries on
12758 # powerpc, because MkLinux only supported shared libraries with the
12759 # GNU dynamic linker. Since this was broken with cross compilers,
12760 # most powerpc-linux boxes support dynamic linking these days and
12761 # people can always --disable-shared, the test was removed, and we
12762 # assume the GNU/Linux dynamic linker is in use.
12763 dynamic_linker='GNU/Linux ld.so'
12766 netbsd*)
12767 version_type=sunos
12768 need_lib_prefix=no
12769 need_version=no
12770 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12772 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12773 dynamic_linker='NetBSD (a.out) ld.so'
12774 else
12775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12776 soname_spec='${libname}${release}${shared_ext}$major'
12777 dynamic_linker='NetBSD ld.elf_so'
12779 shlibpath_var=LD_LIBRARY_PATH
12780 shlibpath_overrides_runpath=yes
12781 hardcode_into_libs=yes
12784 newsos6)
12785 version_type=linux
12786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12787 shlibpath_var=LD_LIBRARY_PATH
12788 shlibpath_overrides_runpath=yes
12791 *nto* | *qnx*)
12792 version_type=qnx
12793 need_lib_prefix=no
12794 need_version=no
12795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12796 soname_spec='${libname}${release}${shared_ext}$major'
12797 shlibpath_var=LD_LIBRARY_PATH
12798 shlibpath_overrides_runpath=no
12799 hardcode_into_libs=yes
12800 dynamic_linker='ldqnx.so'
12803 openbsd*)
12804 version_type=sunos
12805 sys_lib_dlsearch_path_spec="/usr/lib"
12806 need_lib_prefix=no
12807 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12808 case $host_os in
12809 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12810 *) need_version=no ;;
12811 esac
12812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12814 shlibpath_var=LD_LIBRARY_PATH
12815 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12816 case $host_os in
12817 openbsd2.[89] | openbsd2.[89].*)
12818 shlibpath_overrides_runpath=no
12821 shlibpath_overrides_runpath=yes
12823 esac
12824 else
12825 shlibpath_overrides_runpath=yes
12829 os2*)
12830 libname_spec='$name'
12831 shrext_cmds=".dll"
12832 need_lib_prefix=no
12833 library_names_spec='$libname${shared_ext} $libname.a'
12834 dynamic_linker='OS/2 ld.exe'
12835 shlibpath_var=LIBPATH
12838 osf3* | osf4* | osf5*)
12839 version_type=osf
12840 need_lib_prefix=no
12841 need_version=no
12842 soname_spec='${libname}${release}${shared_ext}$major'
12843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12844 shlibpath_var=LD_LIBRARY_PATH
12845 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12846 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12849 rdos*)
12850 dynamic_linker=no
12853 solaris*)
12854 version_type=linux
12855 need_lib_prefix=no
12856 need_version=no
12857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12858 soname_spec='${libname}${release}${shared_ext}$major'
12859 shlibpath_var=LD_LIBRARY_PATH
12860 shlibpath_overrides_runpath=yes
12861 hardcode_into_libs=yes
12862 # ldd complains unless libraries are executable
12863 postinstall_cmds='chmod +x $lib'
12866 sunos4*)
12867 version_type=sunos
12868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12869 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12870 shlibpath_var=LD_LIBRARY_PATH
12871 shlibpath_overrides_runpath=yes
12872 if test "$with_gnu_ld" = yes; then
12873 need_lib_prefix=no
12875 need_version=yes
12878 sysv4 | sysv4.3*)
12879 version_type=linux
12880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12881 soname_spec='${libname}${release}${shared_ext}$major'
12882 shlibpath_var=LD_LIBRARY_PATH
12883 case $host_vendor in
12884 sni)
12885 shlibpath_overrides_runpath=no
12886 need_lib_prefix=no
12887 runpath_var=LD_RUN_PATH
12889 siemens)
12890 need_lib_prefix=no
12892 motorola)
12893 need_lib_prefix=no
12894 need_version=no
12895 shlibpath_overrides_runpath=no
12896 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12898 esac
12901 sysv4*MP*)
12902 if test -d /usr/nec ;then
12903 version_type=linux
12904 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12905 soname_spec='$libname${shared_ext}.$major'
12906 shlibpath_var=LD_LIBRARY_PATH
12910 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12911 version_type=freebsd-elf
12912 need_lib_prefix=no
12913 need_version=no
12914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12915 soname_spec='${libname}${release}${shared_ext}$major'
12916 shlibpath_var=LD_LIBRARY_PATH
12917 shlibpath_overrides_runpath=yes
12918 hardcode_into_libs=yes
12919 if test "$with_gnu_ld" = yes; then
12920 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12921 else
12922 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12923 case $host_os in
12924 sco3.2v5*)
12925 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12927 esac
12929 sys_lib_dlsearch_path_spec='/usr/lib'
12932 tpf*)
12933 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12934 version_type=linux
12935 need_lib_prefix=no
12936 need_version=no
12937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12938 shlibpath_var=LD_LIBRARY_PATH
12939 shlibpath_overrides_runpath=no
12940 hardcode_into_libs=yes
12943 uts4*)
12944 version_type=linux
12945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12946 soname_spec='${libname}${release}${shared_ext}$major'
12947 shlibpath_var=LD_LIBRARY_PATH
12951 dynamic_linker=no
12953 esac
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12955 $as_echo "$dynamic_linker" >&6; }
12956 test "$dynamic_linker" = no && can_build_shared=no
12958 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12959 if test "$GCC" = yes; then
12960 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12963 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12964 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12966 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12967 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13062 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13063 hardcode_action=
13064 if test -n "$hardcode_libdir_flag_spec" ||
13065 test -n "$runpath_var" ||
13066 test "X$hardcode_automatic" = "Xyes" ; then
13068 # We can hardcode non-existent directories.
13069 if test "$hardcode_direct" != no &&
13070 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13071 # have to relink, otherwise we might link with an installed library
13072 # when we should be linking with a yet-to-be-installed one
13073 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13074 test "$hardcode_minus_L" != no; then
13075 # Linking always hardcodes the temporary library directory.
13076 hardcode_action=relink
13077 else
13078 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13079 hardcode_action=immediate
13081 else
13082 # We cannot hardcode anything, or else we can only hardcode existing
13083 # directories.
13084 hardcode_action=unsupported
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13087 $as_echo "$hardcode_action" >&6; }
13089 if test "$hardcode_action" = relink ||
13090 test "$inherit_rpath" = yes; then
13091 # Fast installation is not supported
13092 enable_fast_install=no
13093 elif test "$shlibpath_overrides_runpath" = yes ||
13094 test "$enable_shared" = no; then
13095 # Fast installation is not necessary
13096 enable_fast_install=needless
13104 if test "x$enable_dlopen" != xyes; then
13105 enable_dlopen=unknown
13106 enable_dlopen_self=unknown
13107 enable_dlopen_self_static=unknown
13108 else
13109 lt_cv_dlopen=no
13110 lt_cv_dlopen_libs=
13112 case $host_os in
13113 beos*)
13114 lt_cv_dlopen="load_add_on"
13115 lt_cv_dlopen_libs=
13116 lt_cv_dlopen_self=yes
13119 mingw* | pw32* | cegcc*)
13120 lt_cv_dlopen="LoadLibrary"
13121 lt_cv_dlopen_libs=
13124 cygwin*)
13125 lt_cv_dlopen="dlopen"
13126 lt_cv_dlopen_libs=
13129 darwin*)
13130 # if libdl is installed we need to link against it
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13132 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13133 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13134 $as_echo_n "(cached) " >&6
13135 else
13136 ac_check_lib_save_LIBS=$LIBS
13137 LIBS="-ldl $LIBS"
13138 if test x$gcc_no_link = xyes; then
13139 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13142 /* end confdefs.h. */
13144 /* Override any GCC internal prototype to avoid an error.
13145 Use char because int might match the return type of a GCC
13146 builtin and then its argument prototype would still apply. */
13147 #ifdef __cplusplus
13148 extern "C"
13149 #endif
13150 char dlopen ();
13152 main ()
13154 return dlopen ();
13156 return 0;
13158 _ACEOF
13159 if ac_fn_c_try_link "$LINENO"; then :
13160 ac_cv_lib_dl_dlopen=yes
13161 else
13162 ac_cv_lib_dl_dlopen=no
13164 rm -f core conftest.err conftest.$ac_objext \
13165 conftest$ac_exeext conftest.$ac_ext
13166 LIBS=$ac_check_lib_save_LIBS
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13169 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13170 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13171 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13172 else
13174 lt_cv_dlopen="dyld"
13175 lt_cv_dlopen_libs=
13176 lt_cv_dlopen_self=yes
13183 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13184 if test "x$ac_cv_func_shl_load" = x""yes; then :
13185 lt_cv_dlopen="shl_load"
13186 else
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13188 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13189 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13190 $as_echo_n "(cached) " >&6
13191 else
13192 ac_check_lib_save_LIBS=$LIBS
13193 LIBS="-ldld $LIBS"
13194 if test x$gcc_no_link = xyes; then
13195 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13198 /* end confdefs.h. */
13200 /* Override any GCC internal prototype to avoid an error.
13201 Use char because int might match the return type of a GCC
13202 builtin and then its argument prototype would still apply. */
13203 #ifdef __cplusplus
13204 extern "C"
13205 #endif
13206 char shl_load ();
13208 main ()
13210 return shl_load ();
13212 return 0;
13214 _ACEOF
13215 if ac_fn_c_try_link "$LINENO"; then :
13216 ac_cv_lib_dld_shl_load=yes
13217 else
13218 ac_cv_lib_dld_shl_load=no
13220 rm -f core conftest.err conftest.$ac_objext \
13221 conftest$ac_exeext conftest.$ac_ext
13222 LIBS=$ac_check_lib_save_LIBS
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13225 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13226 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13227 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13228 else
13229 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13230 if test "x$ac_cv_func_dlopen" = x""yes; then :
13231 lt_cv_dlopen="dlopen"
13232 else
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13234 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13235 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13236 $as_echo_n "(cached) " >&6
13237 else
13238 ac_check_lib_save_LIBS=$LIBS
13239 LIBS="-ldl $LIBS"
13240 if test x$gcc_no_link = xyes; then
13241 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13244 /* end confdefs.h. */
13246 /* Override any GCC internal prototype to avoid an error.
13247 Use char because int might match the return type of a GCC
13248 builtin and then its argument prototype would still apply. */
13249 #ifdef __cplusplus
13250 extern "C"
13251 #endif
13252 char dlopen ();
13254 main ()
13256 return dlopen ();
13258 return 0;
13260 _ACEOF
13261 if ac_fn_c_try_link "$LINENO"; then :
13262 ac_cv_lib_dl_dlopen=yes
13263 else
13264 ac_cv_lib_dl_dlopen=no
13266 rm -f core conftest.err conftest.$ac_objext \
13267 conftest$ac_exeext conftest.$ac_ext
13268 LIBS=$ac_check_lib_save_LIBS
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13271 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13272 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13273 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13274 else
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13276 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13277 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13278 $as_echo_n "(cached) " >&6
13279 else
13280 ac_check_lib_save_LIBS=$LIBS
13281 LIBS="-lsvld $LIBS"
13282 if test x$gcc_no_link = xyes; then
13283 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13286 /* end confdefs.h. */
13288 /* Override any GCC internal prototype to avoid an error.
13289 Use char because int might match the return type of a GCC
13290 builtin and then its argument prototype would still apply. */
13291 #ifdef __cplusplus
13292 extern "C"
13293 #endif
13294 char dlopen ();
13296 main ()
13298 return dlopen ();
13300 return 0;
13302 _ACEOF
13303 if ac_fn_c_try_link "$LINENO"; then :
13304 ac_cv_lib_svld_dlopen=yes
13305 else
13306 ac_cv_lib_svld_dlopen=no
13308 rm -f core conftest.err conftest.$ac_objext \
13309 conftest$ac_exeext conftest.$ac_ext
13310 LIBS=$ac_check_lib_save_LIBS
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13313 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13314 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13315 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13316 else
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13318 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13319 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13320 $as_echo_n "(cached) " >&6
13321 else
13322 ac_check_lib_save_LIBS=$LIBS
13323 LIBS="-ldld $LIBS"
13324 if test x$gcc_no_link = xyes; then
13325 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13328 /* end confdefs.h. */
13330 /* Override any GCC internal prototype to avoid an error.
13331 Use char because int might match the return type of a GCC
13332 builtin and then its argument prototype would still apply. */
13333 #ifdef __cplusplus
13334 extern "C"
13335 #endif
13336 char dld_link ();
13338 main ()
13340 return dld_link ();
13342 return 0;
13344 _ACEOF
13345 if ac_fn_c_try_link "$LINENO"; then :
13346 ac_cv_lib_dld_dld_link=yes
13347 else
13348 ac_cv_lib_dld_dld_link=no
13350 rm -f core conftest.err conftest.$ac_objext \
13351 conftest$ac_exeext conftest.$ac_ext
13352 LIBS=$ac_check_lib_save_LIBS
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13355 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13356 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13357 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13376 esac
13378 if test "x$lt_cv_dlopen" != xno; then
13379 enable_dlopen=yes
13380 else
13381 enable_dlopen=no
13384 case $lt_cv_dlopen in
13385 dlopen)
13386 save_CPPFLAGS="$CPPFLAGS"
13387 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13389 save_LDFLAGS="$LDFLAGS"
13390 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13392 save_LIBS="$LIBS"
13393 LIBS="$lt_cv_dlopen_libs $LIBS"
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13396 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13397 if test "${lt_cv_dlopen_self+set}" = set; then :
13398 $as_echo_n "(cached) " >&6
13399 else
13400 if test "$cross_compiling" = yes; then :
13401 lt_cv_dlopen_self=cross
13402 else
13403 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13404 lt_status=$lt_dlunknown
13405 cat > conftest.$ac_ext <<_LT_EOF
13406 #line 13391 "configure"
13407 #include "confdefs.h"
13409 #if HAVE_DLFCN_H
13410 #include <dlfcn.h>
13411 #endif
13413 #include <stdio.h>
13415 #ifdef RTLD_GLOBAL
13416 # define LT_DLGLOBAL RTLD_GLOBAL
13417 #else
13418 # ifdef DL_GLOBAL
13419 # define LT_DLGLOBAL DL_GLOBAL
13420 # else
13421 # define LT_DLGLOBAL 0
13422 # endif
13423 #endif
13425 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13426 find out it does not work in some platform. */
13427 #ifndef LT_DLLAZY_OR_NOW
13428 # ifdef RTLD_LAZY
13429 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13430 # else
13431 # ifdef DL_LAZY
13432 # define LT_DLLAZY_OR_NOW DL_LAZY
13433 # else
13434 # ifdef RTLD_NOW
13435 # define LT_DLLAZY_OR_NOW RTLD_NOW
13436 # else
13437 # ifdef DL_NOW
13438 # define LT_DLLAZY_OR_NOW DL_NOW
13439 # else
13440 # define LT_DLLAZY_OR_NOW 0
13441 # endif
13442 # endif
13443 # endif
13444 # endif
13445 #endif
13447 /* When -fvisbility=hidden is used, assume the code has been annotated
13448 correspondingly for the symbols needed. */
13449 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13450 void fnord () __attribute__((visibility("default")));
13451 #endif
13453 void fnord () { int i=42; }
13454 int main ()
13456 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13457 int status = $lt_dlunknown;
13459 if (self)
13461 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13462 else
13464 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13465 else puts (dlerror ());
13467 /* dlclose (self); */
13469 else
13470 puts (dlerror ());
13472 return status;
13474 _LT_EOF
13475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13476 (eval $ac_link) 2>&5
13477 ac_status=$?
13478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13479 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13480 (./conftest; exit; ) >&5 2>/dev/null
13481 lt_status=$?
13482 case x$lt_status in
13483 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13484 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13485 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13486 esac
13487 else :
13488 # compilation failed
13489 lt_cv_dlopen_self=no
13492 rm -fr conftest*
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13497 $as_echo "$lt_cv_dlopen_self" >&6; }
13499 if test "x$lt_cv_dlopen_self" = xyes; then
13500 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13502 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13503 if test "${lt_cv_dlopen_self_static+set}" = set; then :
13504 $as_echo_n "(cached) " >&6
13505 else
13506 if test "$cross_compiling" = yes; then :
13507 lt_cv_dlopen_self_static=cross
13508 else
13509 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13510 lt_status=$lt_dlunknown
13511 cat > conftest.$ac_ext <<_LT_EOF
13512 #line 13497 "configure"
13513 #include "confdefs.h"
13515 #if HAVE_DLFCN_H
13516 #include <dlfcn.h>
13517 #endif
13519 #include <stdio.h>
13521 #ifdef RTLD_GLOBAL
13522 # define LT_DLGLOBAL RTLD_GLOBAL
13523 #else
13524 # ifdef DL_GLOBAL
13525 # define LT_DLGLOBAL DL_GLOBAL
13526 # else
13527 # define LT_DLGLOBAL 0
13528 # endif
13529 #endif
13531 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13532 find out it does not work in some platform. */
13533 #ifndef LT_DLLAZY_OR_NOW
13534 # ifdef RTLD_LAZY
13535 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13536 # else
13537 # ifdef DL_LAZY
13538 # define LT_DLLAZY_OR_NOW DL_LAZY
13539 # else
13540 # ifdef RTLD_NOW
13541 # define LT_DLLAZY_OR_NOW RTLD_NOW
13542 # else
13543 # ifdef DL_NOW
13544 # define LT_DLLAZY_OR_NOW DL_NOW
13545 # else
13546 # define LT_DLLAZY_OR_NOW 0
13547 # endif
13548 # endif
13549 # endif
13550 # endif
13551 #endif
13553 /* When -fvisbility=hidden is used, assume the code has been annotated
13554 correspondingly for the symbols needed. */
13555 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13556 void fnord () __attribute__((visibility("default")));
13557 #endif
13559 void fnord () { int i=42; }
13560 int main ()
13562 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13563 int status = $lt_dlunknown;
13565 if (self)
13567 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13568 else
13570 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13571 else puts (dlerror ());
13573 /* dlclose (self); */
13575 else
13576 puts (dlerror ());
13578 return status;
13580 _LT_EOF
13581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13582 (eval $ac_link) 2>&5
13583 ac_status=$?
13584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13585 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13586 (./conftest; exit; ) >&5 2>/dev/null
13587 lt_status=$?
13588 case x$lt_status in
13589 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13590 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13591 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13592 esac
13593 else :
13594 # compilation failed
13595 lt_cv_dlopen_self_static=no
13598 rm -fr conftest*
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13603 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13606 CPPFLAGS="$save_CPPFLAGS"
13607 LDFLAGS="$save_LDFLAGS"
13608 LIBS="$save_LIBS"
13610 esac
13612 case $lt_cv_dlopen_self in
13613 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13614 *) enable_dlopen_self=unknown ;;
13615 esac
13617 case $lt_cv_dlopen_self_static in
13618 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13619 *) enable_dlopen_self_static=unknown ;;
13620 esac
13639 striplib=
13640 old_striplib=
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13642 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13643 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13644 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13645 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13647 $as_echo "yes" >&6; }
13648 else
13649 # FIXME - insert some real tests, host_os isn't really good enough
13650 case $host_os in
13651 darwin*)
13652 if test -n "$STRIP" ; then
13653 striplib="$STRIP -x"
13654 old_striplib="$STRIP -S"
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13656 $as_echo "yes" >&6; }
13657 else
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13659 $as_echo "no" >&6; }
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13664 $as_echo "no" >&6; }
13666 esac
13680 # Report which library types will actually be built
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13682 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13684 $as_echo "$can_build_shared" >&6; }
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13687 $as_echo_n "checking whether to build shared libraries... " >&6; }
13688 test "$can_build_shared" = "no" && enable_shared=no
13690 # On AIX, shared libraries and static libraries use the same namespace, and
13691 # are all built from PIC.
13692 case $host_os in
13693 aix3*)
13694 test "$enable_shared" = yes && enable_static=no
13695 if test -n "$RANLIB"; then
13696 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13697 postinstall_cmds='$RANLIB $lib'
13701 aix[4-9]*)
13702 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13703 test "$enable_shared" = yes && enable_static=no
13706 esac
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13708 $as_echo "$enable_shared" >&6; }
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13711 $as_echo_n "checking whether to build static libraries... " >&6; }
13712 # Make sure either enable_shared or enable_static is yes.
13713 test "$enable_shared" = yes || enable_static=yes
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13715 $as_echo "$enable_static" >&6; }
13721 ac_ext=c
13722 ac_cpp='$CPP $CPPFLAGS'
13723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13727 CC="$lt_save_CC"
13729 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13730 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13731 (test "X$CXX" != "Xg++"))) ; then
13732 ac_ext=cpp
13733 ac_cpp='$CXXCPP $CPPFLAGS'
13734 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13735 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13736 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13738 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13739 if test -z "$CXXCPP"; then
13740 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13741 $as_echo_n "(cached) " >&6
13742 else
13743 # Double quotes because CXXCPP needs to be expanded
13744 for CXXCPP in "$CXX -E" "/lib/cpp"
13746 ac_preproc_ok=false
13747 for ac_cxx_preproc_warn_flag in '' yes
13749 # Use a header file that comes with gcc, so configuring glibc
13750 # with a fresh cross-compiler works.
13751 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13752 # <limits.h> exists even on freestanding compilers.
13753 # On the NeXT, cc -E runs the code through the compiler's parser,
13754 # not just through cpp. "Syntax error" is here to catch this case.
13755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13756 /* end confdefs.h. */
13757 #ifdef __STDC__
13758 # include <limits.h>
13759 #else
13760 # include <assert.h>
13761 #endif
13762 Syntax error
13763 _ACEOF
13764 if ac_fn_cxx_try_cpp "$LINENO"; then :
13766 else
13767 # Broken: fails on valid input.
13768 continue
13770 rm -f conftest.err conftest.$ac_ext
13772 # OK, works on sane cases. Now check whether nonexistent headers
13773 # can be detected and how.
13774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13775 /* end confdefs.h. */
13776 #include <ac_nonexistent.h>
13777 _ACEOF
13778 if ac_fn_cxx_try_cpp "$LINENO"; then :
13779 # Broken: success on invalid input.
13780 continue
13781 else
13782 # Passes both tests.
13783 ac_preproc_ok=:
13784 break
13786 rm -f conftest.err conftest.$ac_ext
13788 done
13789 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13790 rm -f conftest.err conftest.$ac_ext
13791 if $ac_preproc_ok; then :
13792 break
13795 done
13796 ac_cv_prog_CXXCPP=$CXXCPP
13799 CXXCPP=$ac_cv_prog_CXXCPP
13800 else
13801 ac_cv_prog_CXXCPP=$CXXCPP
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13804 $as_echo "$CXXCPP" >&6; }
13805 ac_preproc_ok=false
13806 for ac_cxx_preproc_warn_flag in '' yes
13808 # Use a header file that comes with gcc, so configuring glibc
13809 # with a fresh cross-compiler works.
13810 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13811 # <limits.h> exists even on freestanding compilers.
13812 # On the NeXT, cc -E runs the code through the compiler's parser,
13813 # not just through cpp. "Syntax error" is here to catch this case.
13814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13815 /* end confdefs.h. */
13816 #ifdef __STDC__
13817 # include <limits.h>
13818 #else
13819 # include <assert.h>
13820 #endif
13821 Syntax error
13822 _ACEOF
13823 if ac_fn_cxx_try_cpp "$LINENO"; then :
13825 else
13826 # Broken: fails on valid input.
13827 continue
13829 rm -f conftest.err conftest.$ac_ext
13831 # OK, works on sane cases. Now check whether nonexistent headers
13832 # can be detected and how.
13833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13834 /* end confdefs.h. */
13835 #include <ac_nonexistent.h>
13836 _ACEOF
13837 if ac_fn_cxx_try_cpp "$LINENO"; then :
13838 # Broken: success on invalid input.
13839 continue
13840 else
13841 # Passes both tests.
13842 ac_preproc_ok=:
13843 break
13845 rm -f conftest.err conftest.$ac_ext
13847 done
13848 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13849 rm -f conftest.err conftest.$ac_ext
13850 if $ac_preproc_ok; then :
13852 else
13853 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13855 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
13856 See \`config.log' for more details." "$LINENO" 5; }
13859 ac_ext=c
13860 ac_cpp='$CPP $CPPFLAGS'
13861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13865 else
13866 _lt_caught_CXX_error=yes
13869 ac_ext=cpp
13870 ac_cpp='$CXXCPP $CPPFLAGS'
13871 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13872 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13873 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13875 archive_cmds_need_lc_CXX=no
13876 allow_undefined_flag_CXX=
13877 always_export_symbols_CXX=no
13878 archive_expsym_cmds_CXX=
13879 compiler_needs_object_CXX=no
13880 export_dynamic_flag_spec_CXX=
13881 hardcode_direct_CXX=no
13882 hardcode_direct_absolute_CXX=no
13883 hardcode_libdir_flag_spec_CXX=
13884 hardcode_libdir_flag_spec_ld_CXX=
13885 hardcode_libdir_separator_CXX=
13886 hardcode_minus_L_CXX=no
13887 hardcode_shlibpath_var_CXX=unsupported
13888 hardcode_automatic_CXX=no
13889 inherit_rpath_CXX=no
13890 module_cmds_CXX=
13891 module_expsym_cmds_CXX=
13892 link_all_deplibs_CXX=unknown
13893 old_archive_cmds_CXX=$old_archive_cmds
13894 reload_flag_CXX=$reload_flag
13895 reload_cmds_CXX=$reload_cmds
13896 no_undefined_flag_CXX=
13897 whole_archive_flag_spec_CXX=
13898 enable_shared_with_static_runtimes_CXX=no
13900 # Source file extension for C++ test sources.
13901 ac_ext=cpp
13903 # Object file extension for compiled C++ test sources.
13904 objext=o
13905 objext_CXX=$objext
13907 # No sense in running all these tests if we already determined that
13908 # the CXX compiler isn't working. Some variables (like enable_shared)
13909 # are currently assumed to apply to all compilers on this platform,
13910 # and will be corrupted by setting them based on a non-working compiler.
13911 if test "$_lt_caught_CXX_error" != yes; then
13912 # Code to be used in simple compile tests
13913 lt_simple_compile_test_code="int some_variable = 0;"
13915 # Code to be used in simple link tests
13916 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13918 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13925 # If no C compiler was specified, use CC.
13926 LTCC=${LTCC-"$CC"}
13928 # If no C compiler flags were specified, use CFLAGS.
13929 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13931 # Allow CC to be a program name with arguments.
13932 compiler=$CC
13935 # save warnings/boilerplate of simple test code
13936 ac_outfile=conftest.$ac_objext
13937 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13938 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13939 _lt_compiler_boilerplate=`cat conftest.err`
13940 $RM conftest*
13942 ac_outfile=conftest.$ac_objext
13943 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13944 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13945 _lt_linker_boilerplate=`cat conftest.err`
13946 $RM -r conftest*
13949 # Allow CC to be a program name with arguments.
13950 lt_save_CC=$CC
13951 lt_save_LD=$LD
13952 lt_save_GCC=$GCC
13953 GCC=$GXX
13954 lt_save_with_gnu_ld=$with_gnu_ld
13955 lt_save_path_LD=$lt_cv_path_LD
13956 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13957 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13958 else
13959 $as_unset lt_cv_prog_gnu_ld
13961 if test -n "${lt_cv_path_LDCXX+set}"; then
13962 lt_cv_path_LD=$lt_cv_path_LDCXX
13963 else
13964 $as_unset lt_cv_path_LD
13966 test -z "${LDCXX+set}" || LD=$LDCXX
13967 CC=${CXX-"c++"}
13968 compiler=$CC
13969 compiler_CXX=$CC
13970 for cc_temp in $compiler""; do
13971 case $cc_temp in
13972 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13973 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13974 \-*) ;;
13975 *) break;;
13976 esac
13977 done
13978 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13981 if test -n "$compiler"; then
13982 # We don't want -fno-exception when compiling C++ code, so set the
13983 # no_builtin_flag separately
13984 if test "$GXX" = yes; then
13985 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13986 else
13987 lt_prog_compiler_no_builtin_flag_CXX=
13990 if test "$GXX" = yes; then
13991 # Set up default GNU C++ configuration
13995 # Check whether --with-gnu-ld was given.
13996 if test "${with_gnu_ld+set}" = set; then :
13997 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13998 else
13999 with_gnu_ld=no
14002 ac_prog=ld
14003 if test "$GCC" = yes; then
14004 # Check if gcc -print-prog-name=ld gives a path.
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14006 $as_echo_n "checking for ld used by $CC... " >&6; }
14007 case $host in
14008 *-*-mingw*)
14009 # gcc leaves a trailing carriage return which upsets mingw
14010 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14012 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14013 esac
14014 case $ac_prog in
14015 # Accept absolute paths.
14016 [\\/]* | ?:[\\/]*)
14017 re_direlt='/[^/][^/]*/\.\./'
14018 # Canonicalize the pathname of ld
14019 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14020 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14021 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14022 done
14023 test -z "$LD" && LD="$ac_prog"
14026 # If it fails, then pretend we aren't using GCC.
14027 ac_prog=ld
14030 # If it is relative, then search for the first ld in PATH.
14031 with_gnu_ld=unknown
14033 esac
14034 elif test "$with_gnu_ld" = yes; then
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14036 $as_echo_n "checking for GNU ld... " >&6; }
14037 else
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14039 $as_echo_n "checking for non-GNU ld... " >&6; }
14041 if test "${lt_cv_path_LD+set}" = set; then :
14042 $as_echo_n "(cached) " >&6
14043 else
14044 if test -z "$LD"; then
14045 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14046 for ac_dir in $PATH; do
14047 IFS="$lt_save_ifs"
14048 test -z "$ac_dir" && ac_dir=.
14049 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14050 lt_cv_path_LD="$ac_dir/$ac_prog"
14051 # Check to see if the program is GNU ld. I'd rather use --version,
14052 # but apparently some variants of GNU ld only accept -v.
14053 # Break only if it was the GNU/non-GNU ld that we prefer.
14054 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14055 *GNU* | *'with BFD'*)
14056 test "$with_gnu_ld" != no && break
14059 test "$with_gnu_ld" != yes && break
14061 esac
14063 done
14064 IFS="$lt_save_ifs"
14065 else
14066 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14070 LD="$lt_cv_path_LD"
14071 if test -n "$LD"; then
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14073 $as_echo "$LD" >&6; }
14074 else
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14076 $as_echo "no" >&6; }
14078 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14080 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14081 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14082 $as_echo_n "(cached) " >&6
14083 else
14084 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14085 case `$LD -v 2>&1 </dev/null` in
14086 *GNU* | *'with BFD'*)
14087 lt_cv_prog_gnu_ld=yes
14090 lt_cv_prog_gnu_ld=no
14092 esac
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14095 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14096 with_gnu_ld=$lt_cv_prog_gnu_ld
14104 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14105 # archiving commands below assume that GNU ld is being used.
14106 if test "$with_gnu_ld" = yes; then
14107 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14108 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14110 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14111 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14113 # If archive_cmds runs LD, not CC, wlarc should be empty
14114 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14115 # investigate it a little bit more. (MM)
14116 wlarc='${wl}'
14118 # ancient GNU ld didn't support --whole-archive et. al.
14119 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14120 $GREP 'no-whole-archive' > /dev/null; then
14121 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14122 else
14123 whole_archive_flag_spec_CXX=
14125 else
14126 with_gnu_ld=no
14127 wlarc=
14129 # A generic and very simple default shared library creation
14130 # command for GNU C++ for the case where it uses the native
14131 # linker, instead of GNU ld. If possible, this setting should
14132 # overridden to take advantage of the native linker features on
14133 # the platform it is being used on.
14134 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14137 # Commands to make compiler produce verbose output that lists
14138 # what "hidden" libraries, object files and flags are used when
14139 # linking a shared library.
14140 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14142 else
14143 GXX=no
14144 with_gnu_ld=no
14145 wlarc=
14148 # PORTME: fill in a description of your system's C++ link characteristics
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14150 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14151 ld_shlibs_CXX=yes
14152 case $host_os in
14153 aix3*)
14154 # FIXME: insert proper C++ library support
14155 ld_shlibs_CXX=no
14157 aix[4-9]*)
14158 if test "$host_cpu" = ia64; then
14159 # On IA64, the linker does run time linking by default, so we don't
14160 # have to do anything special.
14161 aix_use_runtimelinking=no
14162 exp_sym_flag='-Bexport'
14163 no_entry_flag=""
14164 else
14165 aix_use_runtimelinking=no
14167 # Test if we are trying to use run time linking or normal
14168 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14169 # need to do runtime linking.
14170 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14171 for ld_flag in $LDFLAGS; do
14172 case $ld_flag in
14173 *-brtl*)
14174 aix_use_runtimelinking=yes
14175 break
14177 esac
14178 done
14180 esac
14182 exp_sym_flag='-bexport'
14183 no_entry_flag='-bnoentry'
14186 # When large executables or shared objects are built, AIX ld can
14187 # have problems creating the table of contents. If linking a library
14188 # or program results in "error TOC overflow" add -mminimal-toc to
14189 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14190 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14192 archive_cmds_CXX=''
14193 hardcode_direct_CXX=yes
14194 hardcode_direct_absolute_CXX=yes
14195 hardcode_libdir_separator_CXX=':'
14196 link_all_deplibs_CXX=yes
14197 file_list_spec_CXX='${wl}-f,'
14199 if test "$GXX" = yes; then
14200 case $host_os in aix4.[012]|aix4.[012].*)
14201 # We only want to do this on AIX 4.2 and lower, the check
14202 # below for broken collect2 doesn't work under 4.3+
14203 collect2name=`${CC} -print-prog-name=collect2`
14204 if test -f "$collect2name" &&
14205 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14206 then
14207 # We have reworked collect2
14209 else
14210 # We have old collect2
14211 hardcode_direct_CXX=unsupported
14212 # It fails to find uninstalled libraries when the uninstalled
14213 # path is not listed in the libpath. Setting hardcode_minus_L
14214 # to unsupported forces relinking
14215 hardcode_minus_L_CXX=yes
14216 hardcode_libdir_flag_spec_CXX='-L$libdir'
14217 hardcode_libdir_separator_CXX=
14219 esac
14220 shared_flag='-shared'
14221 if test "$aix_use_runtimelinking" = yes; then
14222 shared_flag="$shared_flag "'${wl}-G'
14224 else
14225 # not using gcc
14226 if test "$host_cpu" = ia64; then
14227 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14228 # chokes on -Wl,-G. The following line is correct:
14229 shared_flag='-G'
14230 else
14231 if test "$aix_use_runtimelinking" = yes; then
14232 shared_flag='${wl}-G'
14233 else
14234 shared_flag='${wl}-bM:SRE'
14239 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14240 # It seems that -bexpall does not export symbols beginning with
14241 # underscore (_), so it is better to generate a list of symbols to
14242 # export.
14243 always_export_symbols_CXX=yes
14244 if test "$aix_use_runtimelinking" = yes; then
14245 # Warning - without using the other runtime loading flags (-brtl),
14246 # -berok will link without error, but may produce a broken library.
14247 allow_undefined_flag_CXX='-berok'
14248 # Determine the default libpath from the value encoded in an empty
14249 # executable.
14250 if test x$gcc_no_link = xyes; then
14251 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14254 /* end confdefs.h. */
14257 main ()
14261 return 0;
14263 _ACEOF
14264 if ac_fn_cxx_try_link "$LINENO"; then :
14266 lt_aix_libpath_sed='
14267 /Import File Strings/,/^$/ {
14268 /^0/ {
14269 s/^0 *\(.*\)$/\1/
14273 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14274 # Check for a 64-bit object if we didn't find anything.
14275 if test -z "$aix_libpath"; then
14276 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14279 rm -f core conftest.err conftest.$ac_objext \
14280 conftest$ac_exeext conftest.$ac_ext
14281 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14283 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14285 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"
14286 else
14287 if test "$host_cpu" = ia64; then
14288 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14289 allow_undefined_flag_CXX="-z nodefs"
14290 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"
14291 else
14292 # Determine the default libpath from the value encoded in an
14293 # empty executable.
14294 if test x$gcc_no_link = xyes; then
14295 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14298 /* end confdefs.h. */
14301 main ()
14305 return 0;
14307 _ACEOF
14308 if ac_fn_cxx_try_link "$LINENO"; then :
14310 lt_aix_libpath_sed='
14311 /Import File Strings/,/^$/ {
14312 /^0/ {
14313 s/^0 *\(.*\)$/\1/
14317 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14318 # Check for a 64-bit object if we didn't find anything.
14319 if test -z "$aix_libpath"; then
14320 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14323 rm -f core conftest.err conftest.$ac_objext \
14324 conftest$ac_exeext conftest.$ac_ext
14325 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14327 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14328 # Warning - without using the other run time loading flags,
14329 # -berok will link without error, but may produce a broken library.
14330 no_undefined_flag_CXX=' ${wl}-bernotok'
14331 allow_undefined_flag_CXX=' ${wl}-berok'
14332 if test "$with_gnu_ld" = yes; then
14333 # We only use this code for GNU lds that support --whole-archive.
14334 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14335 else
14336 # Exported symbols can be pulled into shared objects from archives
14337 whole_archive_flag_spec_CXX='$convenience'
14339 archive_cmds_need_lc_CXX=yes
14340 # This is similar to how AIX traditionally builds its shared
14341 # libraries.
14342 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'
14347 beos*)
14348 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14349 allow_undefined_flag_CXX=unsupported
14350 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14351 # support --undefined. This deserves some investigation. FIXME
14352 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14353 else
14354 ld_shlibs_CXX=no
14358 chorus*)
14359 case $cc_basename in
14361 # FIXME: insert proper C++ library support
14362 ld_shlibs_CXX=no
14364 esac
14367 cygwin* | mingw* | pw32* | cegcc*)
14368 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14369 # as there is no search path for DLLs.
14370 hardcode_libdir_flag_spec_CXX='-L$libdir'
14371 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14372 allow_undefined_flag_CXX=unsupported
14373 always_export_symbols_CXX=no
14374 enable_shared_with_static_runtimes_CXX=yes
14376 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14377 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'
14378 # If the export-symbols file already is a .def file (1st line
14379 # is EXPORTS), use it as is; otherwise, prepend...
14380 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14381 cp $export_symbols $output_objdir/$soname.def;
14382 else
14383 echo EXPORTS > $output_objdir/$soname.def;
14384 cat $export_symbols >> $output_objdir/$soname.def;
14386 $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'
14387 else
14388 ld_shlibs_CXX=no
14391 darwin* | rhapsody*)
14394 archive_cmds_need_lc_CXX=no
14395 hardcode_direct_CXX=no
14396 hardcode_automatic_CXX=yes
14397 hardcode_shlibpath_var_CXX=unsupported
14398 if test "$lt_cv_ld_force_load" = "yes"; then
14399 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\"`'
14400 else
14401 whole_archive_flag_spec_CXX=''
14403 link_all_deplibs_CXX=yes
14404 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14405 case $cc_basename in
14406 ifort*) _lt_dar_can_shared=yes ;;
14407 *) _lt_dar_can_shared=$GCC ;;
14408 esac
14409 if test "$_lt_dar_can_shared" = "yes"; then
14410 output_verbose_link_cmd=func_echo_all
14411 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}"
14412 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14413 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}"
14414 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}"
14415 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14416 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}"
14417 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}"
14420 else
14421 ld_shlibs_CXX=no
14426 dgux*)
14427 case $cc_basename in
14428 ec++*)
14429 # FIXME: insert proper C++ library support
14430 ld_shlibs_CXX=no
14432 ghcx*)
14433 # Green Hills C++ Compiler
14434 # FIXME: insert proper C++ library support
14435 ld_shlibs_CXX=no
14438 # FIXME: insert proper C++ library support
14439 ld_shlibs_CXX=no
14441 esac
14444 freebsd2.*)
14445 # C++ shared libraries reported to be fairly broken before
14446 # switch to ELF
14447 ld_shlibs_CXX=no
14450 freebsd-elf*)
14451 archive_cmds_need_lc_CXX=no
14454 freebsd* | dragonfly*)
14455 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14456 # conventions
14457 ld_shlibs_CXX=yes
14460 gnu*)
14463 haiku*)
14464 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14465 link_all_deplibs_CXX=yes
14468 hpux9*)
14469 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14470 hardcode_libdir_separator_CXX=:
14471 export_dynamic_flag_spec_CXX='${wl}-E'
14472 hardcode_direct_CXX=yes
14473 hardcode_minus_L_CXX=yes # Not in the search PATH,
14474 # but as the default
14475 # location of the library.
14477 case $cc_basename in
14478 CC*)
14479 # FIXME: insert proper C++ library support
14480 ld_shlibs_CXX=no
14482 aCC*)
14483 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'
14484 # Commands to make compiler produce verbose output that lists
14485 # what "hidden" libraries, object files and flags are used when
14486 # linking a shared library.
14488 # There doesn't appear to be a way to prevent this compiler from
14489 # explicitly linking system object files so we need to strip them
14490 # from the output so that they don't get included in the library
14491 # dependencies.
14492 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"'
14495 if test "$GXX" = yes; then
14496 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'
14497 else
14498 # FIXME: insert proper C++ library support
14499 ld_shlibs_CXX=no
14502 esac
14505 hpux10*|hpux11*)
14506 if test $with_gnu_ld = no; then
14507 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14508 hardcode_libdir_separator_CXX=:
14510 case $host_cpu in
14511 hppa*64*|ia64*)
14514 export_dynamic_flag_spec_CXX='${wl}-E'
14516 esac
14518 case $host_cpu in
14519 hppa*64*|ia64*)
14520 hardcode_direct_CXX=no
14521 hardcode_shlibpath_var_CXX=no
14524 hardcode_direct_CXX=yes
14525 hardcode_direct_absolute_CXX=yes
14526 hardcode_minus_L_CXX=yes # Not in the search PATH,
14527 # but as the default
14528 # location of the library.
14530 esac
14532 case $cc_basename in
14533 CC*)
14534 # FIXME: insert proper C++ library support
14535 ld_shlibs_CXX=no
14537 aCC*)
14538 case $host_cpu in
14539 hppa*64*)
14540 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14542 ia64*)
14543 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14546 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14548 esac
14549 # Commands to make compiler produce verbose output that lists
14550 # what "hidden" libraries, object files and flags are used when
14551 # linking a shared library.
14553 # There doesn't appear to be a way to prevent this compiler from
14554 # explicitly linking system object files so we need to strip them
14555 # from the output so that they don't get included in the library
14556 # dependencies.
14557 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"'
14560 if test "$GXX" = yes; then
14561 if test $with_gnu_ld = no; then
14562 case $host_cpu in
14563 hppa*64*)
14564 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14566 ia64*)
14567 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14570 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'
14572 esac
14574 else
14575 # FIXME: insert proper C++ library support
14576 ld_shlibs_CXX=no
14579 esac
14582 interix[3-9]*)
14583 hardcode_direct_CXX=no
14584 hardcode_shlibpath_var_CXX=no
14585 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14586 export_dynamic_flag_spec_CXX='${wl}-E'
14587 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14588 # Instead, shared libraries are loaded at an image base (0x10000000 by
14589 # default) and relocated if they conflict, which is a slow very memory
14590 # consuming and fragmenting process. To avoid this, we pick a random,
14591 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14592 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14593 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'
14594 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'
14596 irix5* | irix6*)
14597 case $cc_basename in
14598 CC*)
14599 # SGI C++
14600 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'
14602 # Archives containing C++ object files must be created using
14603 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14604 # necessary to make sure instantiated templates are included
14605 # in the archive.
14606 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14609 if test "$GXX" = yes; then
14610 if test "$with_gnu_ld" = no; then
14611 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'
14612 else
14613 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'
14616 link_all_deplibs_CXX=yes
14618 esac
14619 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14620 hardcode_libdir_separator_CXX=:
14621 inherit_rpath_CXX=yes
14624 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14625 case $cc_basename in
14626 KCC*)
14627 # Kuck and Associates, Inc. (KAI) C++ Compiler
14629 # KCC will only create a shared library if the output file
14630 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14631 # to its proper name (with version) after linking.
14632 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'
14633 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'
14634 # Commands to make compiler produce verbose output that lists
14635 # what "hidden" libraries, object files and flags are used when
14636 # linking a shared library.
14638 # There doesn't appear to be a way to prevent this compiler from
14639 # explicitly linking system object files so we need to strip them
14640 # from the output so that they don't get included in the library
14641 # dependencies.
14642 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"'
14644 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14645 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14647 # Archives containing C++ object files must be created using
14648 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14649 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14651 icpc* | ecpc* )
14652 # Intel C++
14653 with_gnu_ld=yes
14654 # version 8.0 and above of icpc choke on multiply defined symbols
14655 # if we add $predep_objects and $postdep_objects, however 7.1 and
14656 # earlier do not add the objects themselves.
14657 case `$CC -V 2>&1` in
14658 *"Version 7."*)
14659 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14660 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'
14662 *) # Version 8.0 or newer
14663 tmp_idyn=
14664 case $host_cpu in
14665 ia64*) tmp_idyn=' -i_dynamic';;
14666 esac
14667 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14668 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'
14670 esac
14671 archive_cmds_need_lc_CXX=no
14672 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14673 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14674 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14676 pgCC* | pgcpp*)
14677 # Portland Group C++ compiler
14678 case `$CC -V` in
14679 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14680 prelink_cmds_CXX='tpldir=Template.dir~
14681 rm -rf $tpldir~
14682 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14683 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14684 old_archive_cmds_CXX='tpldir=Template.dir~
14685 rm -rf $tpldir~
14686 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14687 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14688 $RANLIB $oldlib'
14689 archive_cmds_CXX='tpldir=Template.dir~
14690 rm -rf $tpldir~
14691 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14692 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14693 archive_expsym_cmds_CXX='tpldir=Template.dir~
14694 rm -rf $tpldir~
14695 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14696 $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'
14698 *) # Version 6 and above use weak symbols
14699 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14700 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'
14702 esac
14704 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14705 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14706 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'
14708 cxx*)
14709 # Compaq C++
14710 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14711 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'
14713 runpath_var=LD_RUN_PATH
14714 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14715 hardcode_libdir_separator_CXX=:
14717 # Commands to make compiler produce verbose output that lists
14718 # what "hidden" libraries, object files and flags are used when
14719 # linking a shared library.
14721 # There doesn't appear to be a way to prevent this compiler from
14722 # explicitly linking system object files so we need to strip them
14723 # from the output so that they don't get included in the library
14724 # dependencies.
14725 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'
14727 xl* | mpixl* | bgxl*)
14728 # IBM XL 8.0 on PPC, with GNU ld
14729 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14730 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14731 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14732 if test "x$supports_anon_versioning" = xyes; then
14733 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14734 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14735 echo "local: *; };" >> $output_objdir/$libname.ver~
14736 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14740 case `$CC -V 2>&1 | sed 5q` in
14741 *Sun\ C*)
14742 # Sun C++ 5.9
14743 no_undefined_flag_CXX=' -zdefs'
14744 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14745 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'
14746 hardcode_libdir_flag_spec_CXX='-R$libdir'
14747 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'
14748 compiler_needs_object_CXX=yes
14750 # Not sure whether something based on
14751 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14752 # would be better.
14753 output_verbose_link_cmd='func_echo_all'
14755 # Archives containing C++ object files must be created using
14756 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14757 # necessary to make sure instantiated templates are included
14758 # in the archive.
14759 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14761 esac
14763 esac
14766 lynxos*)
14767 # FIXME: insert proper C++ library support
14768 ld_shlibs_CXX=no
14771 m88k*)
14772 # FIXME: insert proper C++ library support
14773 ld_shlibs_CXX=no
14776 mvs*)
14777 case $cc_basename in
14778 cxx*)
14779 # FIXME: insert proper C++ library support
14780 ld_shlibs_CXX=no
14783 # FIXME: insert proper C++ library support
14784 ld_shlibs_CXX=no
14786 esac
14789 netbsd*)
14790 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14791 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14792 wlarc=
14793 hardcode_libdir_flag_spec_CXX='-R$libdir'
14794 hardcode_direct_CXX=yes
14795 hardcode_shlibpath_var_CXX=no
14797 # Workaround some broken pre-1.5 toolchains
14798 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14801 *nto* | *qnx*)
14802 ld_shlibs_CXX=yes
14805 openbsd2*)
14806 # C++ shared libraries are fairly broken
14807 ld_shlibs_CXX=no
14810 openbsd*)
14811 if test -f /usr/libexec/ld.so; then
14812 hardcode_direct_CXX=yes
14813 hardcode_shlibpath_var_CXX=no
14814 hardcode_direct_absolute_CXX=yes
14815 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14816 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14817 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14818 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14819 export_dynamic_flag_spec_CXX='${wl}-E'
14820 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14822 output_verbose_link_cmd=func_echo_all
14823 else
14824 ld_shlibs_CXX=no
14828 osf3* | osf4* | osf5*)
14829 case $cc_basename in
14830 KCC*)
14831 # Kuck and Associates, Inc. (KAI) C++ Compiler
14833 # KCC will only create a shared library if the output file
14834 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14835 # to its proper name (with version) after linking.
14836 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'
14838 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14839 hardcode_libdir_separator_CXX=:
14841 # Archives containing C++ object files must be created using
14842 # the KAI C++ compiler.
14843 case $host in
14844 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14845 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14846 esac
14848 RCC*)
14849 # Rational C++ 2.4.1
14850 # FIXME: insert proper C++ library support
14851 ld_shlibs_CXX=no
14853 cxx*)
14854 case $host in
14855 osf3*)
14856 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14857 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'
14858 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14861 allow_undefined_flag_CXX=' -expect_unresolved \*'
14862 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'
14863 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14864 echo "-hidden">> $lib.exp~
14865 $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~
14866 $RM $lib.exp'
14867 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14869 esac
14871 hardcode_libdir_separator_CXX=:
14873 # Commands to make compiler produce verbose output that lists
14874 # what "hidden" libraries, object files and flags are used when
14875 # linking a shared library.
14877 # There doesn't appear to be a way to prevent this compiler from
14878 # explicitly linking system object files so we need to strip them
14879 # from the output so that they don't get included in the library
14880 # dependencies.
14881 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"'
14884 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14885 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14886 case $host in
14887 osf3*)
14888 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'
14891 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'
14893 esac
14895 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14896 hardcode_libdir_separator_CXX=:
14898 # Commands to make compiler produce verbose output that lists
14899 # what "hidden" libraries, object files and flags are used when
14900 # linking a shared library.
14901 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14903 else
14904 # FIXME: insert proper C++ library support
14905 ld_shlibs_CXX=no
14908 esac
14911 psos*)
14912 # FIXME: insert proper C++ library support
14913 ld_shlibs_CXX=no
14916 sunos4*)
14917 case $cc_basename in
14918 CC*)
14919 # Sun C++ 4.x
14920 # FIXME: insert proper C++ library support
14921 ld_shlibs_CXX=no
14923 lcc*)
14924 # Lucid
14925 # FIXME: insert proper C++ library support
14926 ld_shlibs_CXX=no
14929 # FIXME: insert proper C++ library support
14930 ld_shlibs_CXX=no
14932 esac
14935 solaris*)
14936 case $cc_basename in
14937 CC*)
14938 # Sun C++ 4.2, 5.x and Centerline C++
14939 archive_cmds_need_lc_CXX=yes
14940 no_undefined_flag_CXX=' -zdefs'
14941 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14942 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14943 $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'
14945 hardcode_libdir_flag_spec_CXX='-R$libdir'
14946 hardcode_shlibpath_var_CXX=no
14947 case $host_os in
14948 solaris2.[0-5] | solaris2.[0-5].*) ;;
14950 # The compiler driver will combine and reorder linker options,
14951 # but understands `-z linker_flag'.
14952 # Supported since Solaris 2.6 (maybe 2.5.1?)
14953 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14955 esac
14956 link_all_deplibs_CXX=yes
14958 output_verbose_link_cmd='func_echo_all'
14960 # Archives containing C++ object files must be created using
14961 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14962 # necessary to make sure instantiated templates are included
14963 # in the archive.
14964 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14966 gcx*)
14967 # Green Hills C++ Compiler
14968 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14970 # The C++ compiler must be used to create the archive.
14971 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14974 # GNU C++ compiler with Solaris linker
14975 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14976 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14977 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14978 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14979 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14980 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14982 # Commands to make compiler produce verbose output that lists
14983 # what "hidden" libraries, object files and flags are used when
14984 # linking a shared library.
14985 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14986 else
14987 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14988 # platform.
14989 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14990 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14991 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14993 # Commands to make compiler produce verbose output that lists
14994 # what "hidden" libraries, object files and flags are used when
14995 # linking a shared library.
14996 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14999 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15000 case $host_os in
15001 solaris2.[0-5] | solaris2.[0-5].*) ;;
15003 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15005 esac
15008 esac
15011 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15012 no_undefined_flag_CXX='${wl}-z,text'
15013 archive_cmds_need_lc_CXX=no
15014 hardcode_shlibpath_var_CXX=no
15015 runpath_var='LD_RUN_PATH'
15017 case $cc_basename in
15018 CC*)
15019 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15020 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15023 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15024 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15026 esac
15029 sysv5* | sco3.2v5* | sco5v6*)
15030 # Note: We can NOT use -z defs as we might desire, because we do not
15031 # link with -lc, and that would cause any symbols used from libc to
15032 # always be unresolved, which means just about no library would
15033 # ever link correctly. If we're not using GNU ld we use -z text
15034 # though, which does catch some bad symbols but isn't as heavy-handed
15035 # as -z defs.
15036 no_undefined_flag_CXX='${wl}-z,text'
15037 allow_undefined_flag_CXX='${wl}-z,nodefs'
15038 archive_cmds_need_lc_CXX=no
15039 hardcode_shlibpath_var_CXX=no
15040 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15041 hardcode_libdir_separator_CXX=':'
15042 link_all_deplibs_CXX=yes
15043 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15044 runpath_var='LD_RUN_PATH'
15046 case $cc_basename in
15047 CC*)
15048 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15049 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15050 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15051 '"$old_archive_cmds_CXX"
15052 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15053 '"$reload_cmds_CXX"
15056 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15057 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15059 esac
15062 tandem*)
15063 case $cc_basename in
15064 NCC*)
15065 # NonStop-UX NCC 3.20
15066 # FIXME: insert proper C++ library support
15067 ld_shlibs_CXX=no
15070 # FIXME: insert proper C++ library support
15071 ld_shlibs_CXX=no
15073 esac
15076 vxworks*)
15077 # FIXME: insert proper C++ library support
15078 ld_shlibs_CXX=no
15082 # FIXME: insert proper C++ library support
15083 ld_shlibs_CXX=no
15085 esac
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15088 $as_echo "$ld_shlibs_CXX" >&6; }
15089 test "$ld_shlibs_CXX" = no && can_build_shared=no
15091 GCC_CXX="$GXX"
15092 LD_CXX="$LD"
15094 ## CAVEAT EMPTOR:
15095 ## There is no encapsulation within the following macros, do not change
15096 ## the running order or otherwise move them around unless you know exactly
15097 ## what you are doing...
15098 # Dependencies to place before and after the object being linked:
15099 predep_objects_CXX=
15100 postdep_objects_CXX=
15101 predeps_CXX=
15102 postdeps_CXX=
15103 compiler_lib_search_path_CXX=
15105 cat > conftest.$ac_ext <<_LT_EOF
15106 class Foo
15108 public:
15109 Foo (void) { a = 0; }
15110 private:
15111 int a;
15113 _LT_EOF
15115 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15116 (eval $ac_compile) 2>&5
15117 ac_status=$?
15118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15119 test $ac_status = 0; }; then
15120 # Parse the compiler output and extract the necessary
15121 # objects, libraries and library flags.
15123 # Sentinel used to keep track of whether or not we are before
15124 # the conftest object file.
15125 pre_test_object_deps_done=no
15127 for p in `eval "$output_verbose_link_cmd"`; do
15128 case $p in
15130 -L* | -R* | -l*)
15131 # Some compilers place space between "-{L,R}" and the path.
15132 # Remove the space.
15133 if test $p = "-L" ||
15134 test $p = "-R"; then
15135 prev=$p
15136 continue
15137 else
15138 prev=
15141 if test "$pre_test_object_deps_done" = no; then
15142 case $p in
15143 -L* | -R*)
15144 # Internal compiler library paths should come after those
15145 # provided the user. The postdeps already come after the
15146 # user supplied libs so there is no need to process them.
15147 if test -z "$compiler_lib_search_path_CXX"; then
15148 compiler_lib_search_path_CXX="${prev}${p}"
15149 else
15150 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15153 # The "-l" case would never come before the object being
15154 # linked, so don't bother handling this case.
15155 esac
15156 else
15157 if test -z "$postdeps_CXX"; then
15158 postdeps_CXX="${prev}${p}"
15159 else
15160 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15165 *.$objext)
15166 # This assumes that the test object file only shows up
15167 # once in the compiler output.
15168 if test "$p" = "conftest.$objext"; then
15169 pre_test_object_deps_done=yes
15170 continue
15173 if test "$pre_test_object_deps_done" = no; then
15174 if test -z "$predep_objects_CXX"; then
15175 predep_objects_CXX="$p"
15176 else
15177 predep_objects_CXX="$predep_objects_CXX $p"
15179 else
15180 if test -z "$postdep_objects_CXX"; then
15181 postdep_objects_CXX="$p"
15182 else
15183 postdep_objects_CXX="$postdep_objects_CXX $p"
15188 *) ;; # Ignore the rest.
15190 esac
15191 done
15193 # Clean up.
15194 rm -f a.out a.exe
15195 else
15196 echo "libtool.m4: error: problem compiling CXX test program"
15199 $RM -f confest.$objext
15201 # PORTME: override above test on systems where it is broken
15202 case $host_os in
15203 interix[3-9]*)
15204 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15205 # hack all around it, let's just trust "g++" to DTRT.
15206 predep_objects_CXX=
15207 postdep_objects_CXX=
15208 postdeps_CXX=
15211 linux*)
15212 case `$CC -V 2>&1 | sed 5q` in
15213 *Sun\ C*)
15214 # Sun C++ 5.9
15216 # The more standards-conforming stlport4 library is
15217 # incompatible with the Cstd library. Avoid specifying
15218 # it if it's in CXXFLAGS. Ignore libCrun as
15219 # -library=stlport4 depends on it.
15220 case " $CXX $CXXFLAGS " in
15221 *" -library=stlport4 "*)
15222 solaris_use_stlport4=yes
15224 esac
15226 if test "$solaris_use_stlport4" != yes; then
15227 postdeps_CXX='-library=Cstd -library=Crun'
15230 esac
15233 solaris*)
15234 case $cc_basename in
15235 CC*)
15236 # The more standards-conforming stlport4 library is
15237 # incompatible with the Cstd library. Avoid specifying
15238 # it if it's in CXXFLAGS. Ignore libCrun as
15239 # -library=stlport4 depends on it.
15240 case " $CXX $CXXFLAGS " in
15241 *" -library=stlport4 "*)
15242 solaris_use_stlport4=yes
15244 esac
15246 # Adding this requires a known-good setup of shared libraries for
15247 # Sun compiler versions before 5.6, else PIC objects from an old
15248 # archive will be linked into the output, leading to subtle bugs.
15249 if test "$solaris_use_stlport4" != yes; then
15250 postdeps_CXX='-library=Cstd -library=Crun'
15253 esac
15255 esac
15258 case " $postdeps_CXX " in
15259 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15260 esac
15261 compiler_lib_search_dirs_CXX=
15262 if test -n "${compiler_lib_search_path_CXX}"; then
15263 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15296 lt_prog_compiler_wl_CXX=
15297 lt_prog_compiler_pic_CXX=
15298 lt_prog_compiler_static_CXX=
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15301 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15303 # C++ specific cases for pic, static, wl, etc.
15304 if test "$GXX" = yes; then
15305 lt_prog_compiler_wl_CXX='-Wl,'
15306 lt_prog_compiler_static_CXX='-static'
15308 case $host_os in
15309 aix*)
15310 # All AIX code is PIC.
15311 if test "$host_cpu" = ia64; then
15312 # AIX 5 now supports IA64 processor
15313 lt_prog_compiler_static_CXX='-Bstatic'
15315 lt_prog_compiler_pic_CXX='-fPIC'
15318 amigaos*)
15319 case $host_cpu in
15320 powerpc)
15321 # see comment about AmigaOS4 .so support
15322 lt_prog_compiler_pic_CXX='-fPIC'
15324 m68k)
15325 # FIXME: we need at least 68020 code to build shared libraries, but
15326 # adding the `-m68020' flag to GCC prevents building anything better,
15327 # like `-m68040'.
15328 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15330 esac
15333 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15334 # PIC is the default for these OSes.
15336 mingw* | cygwin* | os2* | pw32* | cegcc*)
15337 # This hack is so that the source file can tell whether it is being
15338 # built for inclusion in a dll (and should export symbols for example).
15339 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15340 # (--disable-auto-import) libraries
15341 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15343 darwin* | rhapsody*)
15344 # PIC is the default on this platform
15345 # Common symbols not allowed in MH_DYLIB files
15346 lt_prog_compiler_pic_CXX='-fno-common'
15348 *djgpp*)
15349 # DJGPP does not support shared libraries at all
15350 lt_prog_compiler_pic_CXX=
15352 haiku*)
15353 # PIC is the default for Haiku.
15354 # The "-static" flag exists, but is broken.
15355 lt_prog_compiler_static_CXX=
15357 interix[3-9]*)
15358 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15359 # Instead, we relocate shared libraries at runtime.
15361 sysv4*MP*)
15362 if test -d /usr/nec; then
15363 lt_prog_compiler_pic_CXX=-Kconform_pic
15366 hpux*)
15367 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15368 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15369 # sets the default TLS model and affects inlining.
15370 case $host_cpu in
15371 hppa*64*)
15374 lt_prog_compiler_pic_CXX='-fPIC'
15376 esac
15378 *qnx* | *nto*)
15379 # QNX uses GNU C++, but need to define -shared option too, otherwise
15380 # it will coredump.
15381 lt_prog_compiler_pic_CXX='-fPIC -shared'
15384 lt_prog_compiler_pic_CXX='-fPIC'
15386 esac
15387 else
15388 case $host_os in
15389 aix[4-9]*)
15390 # All AIX code is PIC.
15391 if test "$host_cpu" = ia64; then
15392 # AIX 5 now supports IA64 processor
15393 lt_prog_compiler_static_CXX='-Bstatic'
15394 else
15395 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15398 chorus*)
15399 case $cc_basename in
15400 cxch68*)
15401 # Green Hills C++ Compiler
15402 # _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"
15404 esac
15406 dgux*)
15407 case $cc_basename in
15408 ec++*)
15409 lt_prog_compiler_pic_CXX='-KPIC'
15411 ghcx*)
15412 # Green Hills C++ Compiler
15413 lt_prog_compiler_pic_CXX='-pic'
15417 esac
15419 freebsd* | dragonfly*)
15420 # FreeBSD uses GNU C++
15422 hpux9* | hpux10* | hpux11*)
15423 case $cc_basename in
15424 CC*)
15425 lt_prog_compiler_wl_CXX='-Wl,'
15426 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15427 if test "$host_cpu" != ia64; then
15428 lt_prog_compiler_pic_CXX='+Z'
15431 aCC*)
15432 lt_prog_compiler_wl_CXX='-Wl,'
15433 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15434 case $host_cpu in
15435 hppa*64*|ia64*)
15436 # +Z the default
15439 lt_prog_compiler_pic_CXX='+Z'
15441 esac
15445 esac
15447 interix*)
15448 # This is c89, which is MS Visual C++ (no shared libs)
15449 # Anyone wants to do a port?
15451 irix5* | irix6* | nonstopux*)
15452 case $cc_basename in
15453 CC*)
15454 lt_prog_compiler_wl_CXX='-Wl,'
15455 lt_prog_compiler_static_CXX='-non_shared'
15456 # CC pic flag -KPIC is the default.
15460 esac
15462 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15463 case $cc_basename in
15464 KCC*)
15465 # KAI C++ Compiler
15466 lt_prog_compiler_wl_CXX='--backend -Wl,'
15467 lt_prog_compiler_pic_CXX='-fPIC'
15469 ecpc* )
15470 # old Intel C++ for x86_64 which still supported -KPIC.
15471 lt_prog_compiler_wl_CXX='-Wl,'
15472 lt_prog_compiler_pic_CXX='-KPIC'
15473 lt_prog_compiler_static_CXX='-static'
15475 icpc* )
15476 # Intel C++, used to be incompatible with GCC.
15477 # ICC 10 doesn't accept -KPIC any more.
15478 lt_prog_compiler_wl_CXX='-Wl,'
15479 lt_prog_compiler_pic_CXX='-fPIC'
15480 lt_prog_compiler_static_CXX='-static'
15482 pgCC* | pgcpp*)
15483 # Portland Group C++ compiler
15484 lt_prog_compiler_wl_CXX='-Wl,'
15485 lt_prog_compiler_pic_CXX='-fpic'
15486 lt_prog_compiler_static_CXX='-Bstatic'
15488 cxx*)
15489 # Compaq C++
15490 # Make sure the PIC flag is empty. It appears that all Alpha
15491 # Linux and Compaq Tru64 Unix objects are PIC.
15492 lt_prog_compiler_pic_CXX=
15493 lt_prog_compiler_static_CXX='-non_shared'
15495 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15496 # IBM XL 8.0, 9.0 on PPC and BlueGene
15497 lt_prog_compiler_wl_CXX='-Wl,'
15498 lt_prog_compiler_pic_CXX='-qpic'
15499 lt_prog_compiler_static_CXX='-qstaticlink'
15502 case `$CC -V 2>&1 | sed 5q` in
15503 *Sun\ C*)
15504 # Sun C++ 5.9
15505 lt_prog_compiler_pic_CXX='-KPIC'
15506 lt_prog_compiler_static_CXX='-Bstatic'
15507 lt_prog_compiler_wl_CXX='-Qoption ld '
15509 esac
15511 esac
15513 lynxos*)
15515 m88k*)
15517 mvs*)
15518 case $cc_basename in
15519 cxx*)
15520 lt_prog_compiler_pic_CXX='-W c,exportall'
15524 esac
15526 netbsd*)
15528 *qnx* | *nto*)
15529 # QNX uses GNU C++, but need to define -shared option too, otherwise
15530 # it will coredump.
15531 lt_prog_compiler_pic_CXX='-fPIC -shared'
15533 osf3* | osf4* | osf5*)
15534 case $cc_basename in
15535 KCC*)
15536 lt_prog_compiler_wl_CXX='--backend -Wl,'
15538 RCC*)
15539 # Rational C++ 2.4.1
15540 lt_prog_compiler_pic_CXX='-pic'
15542 cxx*)
15543 # Digital/Compaq C++
15544 lt_prog_compiler_wl_CXX='-Wl,'
15545 # Make sure the PIC flag is empty. It appears that all Alpha
15546 # Linux and Compaq Tru64 Unix objects are PIC.
15547 lt_prog_compiler_pic_CXX=
15548 lt_prog_compiler_static_CXX='-non_shared'
15552 esac
15554 psos*)
15556 solaris*)
15557 case $cc_basename in
15558 CC*)
15559 # Sun C++ 4.2, 5.x and Centerline C++
15560 lt_prog_compiler_pic_CXX='-KPIC'
15561 lt_prog_compiler_static_CXX='-Bstatic'
15562 lt_prog_compiler_wl_CXX='-Qoption ld '
15564 gcx*)
15565 # Green Hills C++ Compiler
15566 lt_prog_compiler_pic_CXX='-PIC'
15570 esac
15572 sunos4*)
15573 case $cc_basename in
15574 CC*)
15575 # Sun C++ 4.x
15576 lt_prog_compiler_pic_CXX='-pic'
15577 lt_prog_compiler_static_CXX='-Bstatic'
15579 lcc*)
15580 # Lucid
15581 lt_prog_compiler_pic_CXX='-pic'
15585 esac
15587 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15588 case $cc_basename in
15589 CC*)
15590 lt_prog_compiler_wl_CXX='-Wl,'
15591 lt_prog_compiler_pic_CXX='-KPIC'
15592 lt_prog_compiler_static_CXX='-Bstatic'
15594 esac
15596 tandem*)
15597 case $cc_basename in
15598 NCC*)
15599 # NonStop-UX NCC 3.20
15600 lt_prog_compiler_pic_CXX='-KPIC'
15604 esac
15606 vxworks*)
15609 lt_prog_compiler_can_build_shared_CXX=no
15611 esac
15614 case $host_os in
15615 # For platforms which do not support PIC, -DPIC is meaningless:
15616 *djgpp*)
15617 lt_prog_compiler_pic_CXX=
15620 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15622 esac
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15624 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15629 # Check to make sure the PIC flag actually works.
15631 if test -n "$lt_prog_compiler_pic_CXX"; then
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15633 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15634 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15635 $as_echo_n "(cached) " >&6
15636 else
15637 lt_cv_prog_compiler_pic_works_CXX=no
15638 ac_outfile=conftest.$ac_objext
15639 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15640 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15641 # Insert the option either (1) after the last *FLAGS variable, or
15642 # (2) before a word containing "conftest.", or (3) at the end.
15643 # Note that $ac_compile itself does not contain backslashes and begins
15644 # with a dollar sign (not a hyphen), so the echo should work correctly.
15645 # The option is referenced via a variable to avoid confusing sed.
15646 lt_compile=`echo "$ac_compile" | $SED \
15647 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15648 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15649 -e 's:$: $lt_compiler_flag:'`
15650 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15651 (eval "$lt_compile" 2>conftest.err)
15652 ac_status=$?
15653 cat conftest.err >&5
15654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 if (exit $ac_status) && test -s "$ac_outfile"; then
15656 # The compiler can only warn and ignore the option if not recognized
15657 # So say no if there are warnings other than the usual output.
15658 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15659 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15660 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15661 lt_cv_prog_compiler_pic_works_CXX=yes
15664 $RM conftest*
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15668 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15670 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15671 case $lt_prog_compiler_pic_CXX in
15672 "" | " "*) ;;
15673 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15674 esac
15675 else
15676 lt_prog_compiler_pic_CXX=
15677 lt_prog_compiler_can_build_shared_CXX=no
15685 # Check to make sure the static flag actually works.
15687 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15689 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15690 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15691 $as_echo_n "(cached) " >&6
15692 else
15693 lt_cv_prog_compiler_static_works_CXX=no
15694 save_LDFLAGS="$LDFLAGS"
15695 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15696 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15697 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15698 # The linker can only warn and ignore the option if not recognized
15699 # So say no if there are warnings
15700 if test -s conftest.err; then
15701 # Append any errors to the config.log.
15702 cat conftest.err 1>&5
15703 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15704 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15705 if diff conftest.exp conftest.er2 >/dev/null; then
15706 lt_cv_prog_compiler_static_works_CXX=yes
15708 else
15709 lt_cv_prog_compiler_static_works_CXX=yes
15712 $RM -r conftest*
15713 LDFLAGS="$save_LDFLAGS"
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15717 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15719 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15721 else
15722 lt_prog_compiler_static_CXX=
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15729 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15730 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15731 $as_echo_n "(cached) " >&6
15732 else
15733 lt_cv_prog_compiler_c_o_CXX=no
15734 $RM -r conftest 2>/dev/null
15735 mkdir conftest
15736 cd conftest
15737 mkdir out
15738 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15740 lt_compiler_flag="-o out/conftest2.$ac_objext"
15741 # Insert the option either (1) after the last *FLAGS variable, or
15742 # (2) before a word containing "conftest.", or (3) at the end.
15743 # Note that $ac_compile itself does not contain backslashes and begins
15744 # with a dollar sign (not a hyphen), so the echo should work correctly.
15745 lt_compile=`echo "$ac_compile" | $SED \
15746 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15747 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15748 -e 's:$: $lt_compiler_flag:'`
15749 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15750 (eval "$lt_compile" 2>out/conftest.err)
15751 ac_status=$?
15752 cat out/conftest.err >&5
15753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15755 then
15756 # The compiler can only warn and ignore the option if not recognized
15757 # So say no if there are warnings
15758 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15759 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15760 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15761 lt_cv_prog_compiler_c_o_CXX=yes
15764 chmod u+w . 2>&5
15765 $RM conftest*
15766 # SGI C++ compiler will create directory out/ii_files/ for
15767 # template instantiation
15768 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15769 $RM out/* && rmdir out
15770 cd ..
15771 $RM -r conftest
15772 $RM conftest*
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15776 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15781 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15782 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15783 $as_echo_n "(cached) " >&6
15784 else
15785 lt_cv_prog_compiler_c_o_CXX=no
15786 $RM -r conftest 2>/dev/null
15787 mkdir conftest
15788 cd conftest
15789 mkdir out
15790 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15792 lt_compiler_flag="-o out/conftest2.$ac_objext"
15793 # Insert the option either (1) after the last *FLAGS variable, or
15794 # (2) before a word containing "conftest.", or (3) at the end.
15795 # Note that $ac_compile itself does not contain backslashes and begins
15796 # with a dollar sign (not a hyphen), so the echo should work correctly.
15797 lt_compile=`echo "$ac_compile" | $SED \
15798 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15799 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15800 -e 's:$: $lt_compiler_flag:'`
15801 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15802 (eval "$lt_compile" 2>out/conftest.err)
15803 ac_status=$?
15804 cat out/conftest.err >&5
15805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15807 then
15808 # The compiler can only warn and ignore the option if not recognized
15809 # So say no if there are warnings
15810 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15811 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15812 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15813 lt_cv_prog_compiler_c_o_CXX=yes
15816 chmod u+w . 2>&5
15817 $RM conftest*
15818 # SGI C++ compiler will create directory out/ii_files/ for
15819 # template instantiation
15820 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15821 $RM out/* && rmdir out
15822 cd ..
15823 $RM -r conftest
15824 $RM conftest*
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15828 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15833 hard_links="nottested"
15834 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15835 # do not overwrite the value of need_locks provided by the user
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15837 $as_echo_n "checking if we can lock with hard links... " >&6; }
15838 hard_links=yes
15839 $RM conftest*
15840 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15841 touch conftest.a
15842 ln conftest.a conftest.b 2>&5 || hard_links=no
15843 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15845 $as_echo "$hard_links" >&6; }
15846 if test "$hard_links" = no; then
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15848 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15849 need_locks=warn
15851 else
15852 need_locks=no
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15858 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15860 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15861 case $host_os in
15862 aix[4-9]*)
15863 # If we're using GNU nm, then we don't want the "-C" option.
15864 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15865 # Also, AIX nm treats weak defined symbols like other global defined
15866 # symbols, whereas GNU nm marks them as "W".
15867 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15868 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'
15869 else
15870 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'
15873 pw32*)
15874 export_symbols_cmds_CXX="$ltdll_cmds"
15876 cygwin* | mingw* | cegcc*)
15877 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'
15880 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15882 esac
15883 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15886 $as_echo "$ld_shlibs_CXX" >&6; }
15887 test "$ld_shlibs_CXX" = no && can_build_shared=no
15889 with_gnu_ld_CXX=$with_gnu_ld
15897 # Do we need to explicitly link libc?
15899 case "x$archive_cmds_need_lc_CXX" in
15900 x|xyes)
15901 # Assume -lc should be added
15902 archive_cmds_need_lc_CXX=yes
15904 if test "$enable_shared" = yes && test "$GCC" = yes; then
15905 case $archive_cmds_CXX in
15906 *'~'*)
15907 # FIXME: we may have to deal with multi-command sequences.
15909 '$CC '*)
15910 # Test whether the compiler implicitly links with -lc since on some
15911 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15912 # to ld, don't add -lc before -lgcc.
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15914 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15915 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15916 $as_echo_n "(cached) " >&6
15917 else
15918 $RM conftest*
15919 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15921 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15922 (eval $ac_compile) 2>&5
15923 ac_status=$?
15924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15925 test $ac_status = 0; } 2>conftest.err; then
15926 soname=conftest
15927 lib=conftest
15928 libobjs=conftest.$ac_objext
15929 deplibs=
15930 wl=$lt_prog_compiler_wl_CXX
15931 pic_flag=$lt_prog_compiler_pic_CXX
15932 compiler_flags=-v
15933 linker_flags=-v
15934 verstring=
15935 output_objdir=.
15936 libname=conftest
15937 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15938 allow_undefined_flag_CXX=
15939 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15940 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15941 ac_status=$?
15942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15943 test $ac_status = 0; }
15944 then
15945 lt_cv_archive_cmds_need_lc_CXX=no
15946 else
15947 lt_cv_archive_cmds_need_lc_CXX=yes
15949 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15950 else
15951 cat conftest.err 1>&5
15953 $RM conftest*
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15957 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15958 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15960 esac
15963 esac
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16029 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16031 library_names_spec=
16032 libname_spec='lib$name'
16033 soname_spec=
16034 shrext_cmds=".so"
16035 postinstall_cmds=
16036 postuninstall_cmds=
16037 finish_cmds=
16038 finish_eval=
16039 shlibpath_var=
16040 shlibpath_overrides_runpath=unknown
16041 version_type=none
16042 dynamic_linker="$host_os ld.so"
16043 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16044 need_lib_prefix=unknown
16045 hardcode_into_libs=no
16047 # when you set need_version to no, make sure it does not cause -set_version
16048 # flags to be left without arguments
16049 need_version=unknown
16051 case $host_os in
16052 aix3*)
16053 version_type=linux
16054 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16055 shlibpath_var=LIBPATH
16057 # AIX 3 has no versioning support, so we append a major version to the name.
16058 soname_spec='${libname}${release}${shared_ext}$major'
16061 aix[4-9]*)
16062 version_type=linux
16063 need_lib_prefix=no
16064 need_version=no
16065 hardcode_into_libs=yes
16066 if test "$host_cpu" = ia64; then
16067 # AIX 5 supports IA64
16068 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16069 shlibpath_var=LD_LIBRARY_PATH
16070 else
16071 # With GCC up to 2.95.x, collect2 would create an import file
16072 # for dependence libraries. The import file would start with
16073 # the line `#! .'. This would cause the generated library to
16074 # depend on `.', always an invalid library. This was fixed in
16075 # development snapshots of GCC prior to 3.0.
16076 case $host_os in
16077 aix4 | aix4.[01] | aix4.[01].*)
16078 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16079 echo ' yes '
16080 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16082 else
16083 can_build_shared=no
16086 esac
16087 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16088 # soname into executable. Probably we can add versioning support to
16089 # collect2, so additional links can be useful in future.
16090 if test "$aix_use_runtimelinking" = yes; then
16091 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16092 # instead of lib<name>.a to let people know that these are not
16093 # typical AIX shared libraries.
16094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16095 else
16096 # We preserve .a as extension for shared libraries through AIX4.2
16097 # and later when we are not doing run time linking.
16098 library_names_spec='${libname}${release}.a $libname.a'
16099 soname_spec='${libname}${release}${shared_ext}$major'
16101 shlibpath_var=LIBPATH
16105 amigaos*)
16106 case $host_cpu in
16107 powerpc)
16108 # Since July 2007 AmigaOS4 officially supports .so libraries.
16109 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16112 m68k)
16113 library_names_spec='$libname.ixlibrary $libname.a'
16114 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16115 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'
16117 esac
16120 beos*)
16121 library_names_spec='${libname}${shared_ext}'
16122 dynamic_linker="$host_os ld.so"
16123 shlibpath_var=LIBRARY_PATH
16126 bsdi[45]*)
16127 version_type=linux
16128 need_version=no
16129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16130 soname_spec='${libname}${release}${shared_ext}$major'
16131 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16132 shlibpath_var=LD_LIBRARY_PATH
16133 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16134 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16135 # the default ld.so.conf also contains /usr/contrib/lib and
16136 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16137 # libtool to hard-code these into programs
16140 cygwin* | mingw* | pw32* | cegcc*)
16141 version_type=windows
16142 shrext_cmds=".dll"
16143 need_version=no
16144 need_lib_prefix=no
16146 case $GCC,$host_os in
16147 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16148 library_names_spec='$libname.dll.a'
16149 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16150 postinstall_cmds='base_file=`basename \${file}`~
16151 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16152 dldir=$destdir/`dirname \$dlpath`~
16153 test -d \$dldir || mkdir -p \$dldir~
16154 $install_prog $dir/$dlname \$dldir/$dlname~
16155 chmod a+x \$dldir/$dlname~
16156 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16157 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16159 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16160 dlpath=$dir/\$dldll~
16161 $RM \$dlpath'
16162 shlibpath_overrides_runpath=yes
16164 case $host_os in
16165 cygwin*)
16166 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16167 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16170 mingw* | cegcc*)
16171 # MinGW DLLs use traditional 'lib' prefix
16172 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16174 pw32*)
16175 # pw32 DLLs use 'pw' prefix rather than 'lib'
16176 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16178 esac
16182 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16184 esac
16185 dynamic_linker='Win32 ld.exe'
16186 # FIXME: first we should search . and the directory the executable is in
16187 shlibpath_var=PATH
16190 darwin* | rhapsody*)
16191 dynamic_linker="$host_os dyld"
16192 version_type=darwin
16193 need_lib_prefix=no
16194 need_version=no
16195 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16196 soname_spec='${libname}${release}${major}$shared_ext'
16197 shlibpath_overrides_runpath=yes
16198 shlibpath_var=DYLD_LIBRARY_PATH
16199 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16201 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16204 dgux*)
16205 version_type=linux
16206 need_lib_prefix=no
16207 need_version=no
16208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16209 soname_spec='${libname}${release}${shared_ext}$major'
16210 shlibpath_var=LD_LIBRARY_PATH
16213 freebsd* | dragonfly*)
16214 # DragonFly does not have aout. When/if they implement a new
16215 # versioning mechanism, adjust this.
16216 if test -x /usr/bin/objformat; then
16217 objformat=`/usr/bin/objformat`
16218 else
16219 case $host_os in
16220 freebsd[23].*) objformat=aout ;;
16221 *) objformat=elf ;;
16222 esac
16224 version_type=freebsd-$objformat
16225 case $version_type in
16226 freebsd-elf*)
16227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16228 need_version=no
16229 need_lib_prefix=no
16231 freebsd-*)
16232 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16233 need_version=yes
16235 esac
16236 shlibpath_var=LD_LIBRARY_PATH
16237 case $host_os in
16238 freebsd2.*)
16239 shlibpath_overrides_runpath=yes
16241 freebsd3.[01]* | freebsdelf3.[01]*)
16242 shlibpath_overrides_runpath=yes
16243 hardcode_into_libs=yes
16245 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16246 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16247 shlibpath_overrides_runpath=no
16248 hardcode_into_libs=yes
16250 *) # from 4.6 on, and DragonFly
16251 shlibpath_overrides_runpath=yes
16252 hardcode_into_libs=yes
16254 esac
16257 gnu*)
16258 version_type=linux
16259 need_lib_prefix=no
16260 need_version=no
16261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16262 soname_spec='${libname}${release}${shared_ext}$major'
16263 shlibpath_var=LD_LIBRARY_PATH
16264 hardcode_into_libs=yes
16267 haiku*)
16268 version_type=linux
16269 need_lib_prefix=no
16270 need_version=no
16271 dynamic_linker="$host_os runtime_loader"
16272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16273 soname_spec='${libname}${release}${shared_ext}$major'
16274 shlibpath_var=LIBRARY_PATH
16275 shlibpath_overrides_runpath=yes
16276 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16277 hardcode_into_libs=yes
16280 hpux9* | hpux10* | hpux11*)
16281 # Give a soname corresponding to the major version so that dld.sl refuses to
16282 # link against other versions.
16283 version_type=sunos
16284 need_lib_prefix=no
16285 need_version=no
16286 case $host_cpu in
16287 ia64*)
16288 shrext_cmds='.so'
16289 hardcode_into_libs=yes
16290 dynamic_linker="$host_os dld.so"
16291 shlibpath_var=LD_LIBRARY_PATH
16292 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16294 soname_spec='${libname}${release}${shared_ext}$major'
16295 if test "X$HPUX_IA64_MODE" = X32; then
16296 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16297 else
16298 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16300 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16302 hppa*64*)
16303 shrext_cmds='.sl'
16304 hardcode_into_libs=yes
16305 dynamic_linker="$host_os dld.sl"
16306 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16307 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16309 soname_spec='${libname}${release}${shared_ext}$major'
16310 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16311 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16314 shrext_cmds='.sl'
16315 dynamic_linker="$host_os dld.sl"
16316 shlibpath_var=SHLIB_PATH
16317 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
16321 esac
16322 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16323 postinstall_cmds='chmod 555 $lib'
16324 # or fails outright, so override atomically:
16325 install_override_mode=555
16328 interix[3-9]*)
16329 version_type=linux
16330 need_lib_prefix=no
16331 need_version=no
16332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16333 soname_spec='${libname}${release}${shared_ext}$major'
16334 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16335 shlibpath_var=LD_LIBRARY_PATH
16336 shlibpath_overrides_runpath=no
16337 hardcode_into_libs=yes
16340 irix5* | irix6* | nonstopux*)
16341 case $host_os in
16342 nonstopux*) version_type=nonstopux ;;
16344 if test "$lt_cv_prog_gnu_ld" = yes; then
16345 version_type=linux
16346 else
16347 version_type=irix
16348 fi ;;
16349 esac
16350 need_lib_prefix=no
16351 need_version=no
16352 soname_spec='${libname}${release}${shared_ext}$major'
16353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16354 case $host_os in
16355 irix5* | nonstopux*)
16356 libsuff= shlibsuff=
16359 case $LD in # libtool.m4 will add one of these switches to LD
16360 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16361 libsuff= shlibsuff= libmagic=32-bit;;
16362 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16363 libsuff=32 shlibsuff=N32 libmagic=N32;;
16364 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16365 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16366 *) libsuff= shlibsuff= libmagic=never-match;;
16367 esac
16369 esac
16370 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16371 shlibpath_overrides_runpath=no
16372 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16373 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16374 hardcode_into_libs=yes
16377 # No shared lib support for Linux oldld, aout, or coff.
16378 linux*oldld* | linux*aout* | linux*coff*)
16379 dynamic_linker=no
16382 # This must be Linux ELF.
16383 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16384 version_type=linux
16385 need_lib_prefix=no
16386 need_version=no
16387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16388 soname_spec='${libname}${release}${shared_ext}$major'
16389 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16390 shlibpath_var=LD_LIBRARY_PATH
16391 shlibpath_overrides_runpath=no
16393 # Some binutils ld are patched to set DT_RUNPATH
16394 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16395 $as_echo_n "(cached) " >&6
16396 else
16397 lt_cv_shlibpath_overrides_runpath=no
16398 save_LDFLAGS=$LDFLAGS
16399 save_libdir=$libdir
16400 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16401 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16402 if test x$gcc_no_link = xyes; then
16403 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16406 /* end confdefs.h. */
16409 main ()
16413 return 0;
16415 _ACEOF
16416 if ac_fn_cxx_try_link "$LINENO"; then :
16417 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16418 lt_cv_shlibpath_overrides_runpath=yes
16421 rm -f core conftest.err conftest.$ac_objext \
16422 conftest$ac_exeext conftest.$ac_ext
16423 LDFLAGS=$save_LDFLAGS
16424 libdir=$save_libdir
16428 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16430 # This implies no fast_install, which is unacceptable.
16431 # Some rework will be needed to allow for fast_install
16432 # before this can be enabled.
16433 hardcode_into_libs=yes
16435 # Append ld.so.conf contents to the search path
16436 if test -f /etc/ld.so.conf; then
16437 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' ' '`
16438 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16441 # We used to test for /lib/ld.so.1 and disable shared libraries on
16442 # powerpc, because MkLinux only supported shared libraries with the
16443 # GNU dynamic linker. Since this was broken with cross compilers,
16444 # most powerpc-linux boxes support dynamic linking these days and
16445 # people can always --disable-shared, the test was removed, and we
16446 # assume the GNU/Linux dynamic linker is in use.
16447 dynamic_linker='GNU/Linux ld.so'
16450 netbsd*)
16451 version_type=sunos
16452 need_lib_prefix=no
16453 need_version=no
16454 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16456 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16457 dynamic_linker='NetBSD (a.out) ld.so'
16458 else
16459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16460 soname_spec='${libname}${release}${shared_ext}$major'
16461 dynamic_linker='NetBSD ld.elf_so'
16463 shlibpath_var=LD_LIBRARY_PATH
16464 shlibpath_overrides_runpath=yes
16465 hardcode_into_libs=yes
16468 newsos6)
16469 version_type=linux
16470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16471 shlibpath_var=LD_LIBRARY_PATH
16472 shlibpath_overrides_runpath=yes
16475 *nto* | *qnx*)
16476 version_type=qnx
16477 need_lib_prefix=no
16478 need_version=no
16479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16480 soname_spec='${libname}${release}${shared_ext}$major'
16481 shlibpath_var=LD_LIBRARY_PATH
16482 shlibpath_overrides_runpath=no
16483 hardcode_into_libs=yes
16484 dynamic_linker='ldqnx.so'
16487 openbsd*)
16488 version_type=sunos
16489 sys_lib_dlsearch_path_spec="/usr/lib"
16490 need_lib_prefix=no
16491 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16492 case $host_os in
16493 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16494 *) need_version=no ;;
16495 esac
16496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16497 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16498 shlibpath_var=LD_LIBRARY_PATH
16499 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16500 case $host_os in
16501 openbsd2.[89] | openbsd2.[89].*)
16502 shlibpath_overrides_runpath=no
16505 shlibpath_overrides_runpath=yes
16507 esac
16508 else
16509 shlibpath_overrides_runpath=yes
16513 os2*)
16514 libname_spec='$name'
16515 shrext_cmds=".dll"
16516 need_lib_prefix=no
16517 library_names_spec='$libname${shared_ext} $libname.a'
16518 dynamic_linker='OS/2 ld.exe'
16519 shlibpath_var=LIBPATH
16522 osf3* | osf4* | osf5*)
16523 version_type=osf
16524 need_lib_prefix=no
16525 need_version=no
16526 soname_spec='${libname}${release}${shared_ext}$major'
16527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16528 shlibpath_var=LD_LIBRARY_PATH
16529 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16530 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16533 rdos*)
16534 dynamic_linker=no
16537 solaris*)
16538 version_type=linux
16539 need_lib_prefix=no
16540 need_version=no
16541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16542 soname_spec='${libname}${release}${shared_ext}$major'
16543 shlibpath_var=LD_LIBRARY_PATH
16544 shlibpath_overrides_runpath=yes
16545 hardcode_into_libs=yes
16546 # ldd complains unless libraries are executable
16547 postinstall_cmds='chmod +x $lib'
16550 sunos4*)
16551 version_type=sunos
16552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16553 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16554 shlibpath_var=LD_LIBRARY_PATH
16555 shlibpath_overrides_runpath=yes
16556 if test "$with_gnu_ld" = yes; then
16557 need_lib_prefix=no
16559 need_version=yes
16562 sysv4 | sysv4.3*)
16563 version_type=linux
16564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16565 soname_spec='${libname}${release}${shared_ext}$major'
16566 shlibpath_var=LD_LIBRARY_PATH
16567 case $host_vendor in
16568 sni)
16569 shlibpath_overrides_runpath=no
16570 need_lib_prefix=no
16571 runpath_var=LD_RUN_PATH
16573 siemens)
16574 need_lib_prefix=no
16576 motorola)
16577 need_lib_prefix=no
16578 need_version=no
16579 shlibpath_overrides_runpath=no
16580 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16582 esac
16585 sysv4*MP*)
16586 if test -d /usr/nec ;then
16587 version_type=linux
16588 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16589 soname_spec='$libname${shared_ext}.$major'
16590 shlibpath_var=LD_LIBRARY_PATH
16594 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16595 version_type=freebsd-elf
16596 need_lib_prefix=no
16597 need_version=no
16598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16599 soname_spec='${libname}${release}${shared_ext}$major'
16600 shlibpath_var=LD_LIBRARY_PATH
16601 shlibpath_overrides_runpath=yes
16602 hardcode_into_libs=yes
16603 if test "$with_gnu_ld" = yes; then
16604 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16605 else
16606 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16607 case $host_os in
16608 sco3.2v5*)
16609 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16611 esac
16613 sys_lib_dlsearch_path_spec='/usr/lib'
16616 tpf*)
16617 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16618 version_type=linux
16619 need_lib_prefix=no
16620 need_version=no
16621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16622 shlibpath_var=LD_LIBRARY_PATH
16623 shlibpath_overrides_runpath=no
16624 hardcode_into_libs=yes
16627 uts4*)
16628 version_type=linux
16629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16630 soname_spec='${libname}${release}${shared_ext}$major'
16631 shlibpath_var=LD_LIBRARY_PATH
16635 dynamic_linker=no
16637 esac
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16639 $as_echo "$dynamic_linker" >&6; }
16640 test "$dynamic_linker" = no && can_build_shared=no
16642 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16643 if test "$GCC" = yes; then
16644 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16647 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16648 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16650 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16651 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16692 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16693 hardcode_action_CXX=
16694 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16695 test -n "$runpath_var_CXX" ||
16696 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16698 # We can hardcode non-existent directories.
16699 if test "$hardcode_direct_CXX" != no &&
16700 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16701 # have to relink, otherwise we might link with an installed library
16702 # when we should be linking with a yet-to-be-installed one
16703 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16704 test "$hardcode_minus_L_CXX" != no; then
16705 # Linking always hardcodes the temporary library directory.
16706 hardcode_action_CXX=relink
16707 else
16708 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16709 hardcode_action_CXX=immediate
16711 else
16712 # We cannot hardcode anything, or else we can only hardcode existing
16713 # directories.
16714 hardcode_action_CXX=unsupported
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16717 $as_echo "$hardcode_action_CXX" >&6; }
16719 if test "$hardcode_action_CXX" = relink ||
16720 test "$inherit_rpath_CXX" = yes; then
16721 # Fast installation is not supported
16722 enable_fast_install=no
16723 elif test "$shlibpath_overrides_runpath" = yes ||
16724 test "$enable_shared" = no; then
16725 # Fast installation is not necessary
16726 enable_fast_install=needless
16735 fi # test -n "$compiler"
16737 CC=$lt_save_CC
16738 LDCXX=$LD
16739 LD=$lt_save_LD
16740 GCC=$lt_save_GCC
16741 with_gnu_ld=$lt_save_with_gnu_ld
16742 lt_cv_path_LDCXX=$lt_cv_path_LD
16743 lt_cv_path_LD=$lt_save_path_LD
16744 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16745 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16746 fi # test "$_lt_caught_CXX_error" != yes
16748 ac_ext=c
16749 ac_cpp='$CPP $CPPFLAGS'
16750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16766 ac_config_commands="$ac_config_commands libtool"
16771 # Only expand once:
16777 case $host in
16778 *-cygwin* | *-mingw*)
16779 # 'host' will be top-level target in the case of a target lib,
16780 # we must compare to with_cross_host to decide if this is a native
16781 # or cross-compiler and select where to install dlls appropriately.
16782 if test -n "$with_cross_host" &&
16783 test x"$with_cross_host" != x"no"; then
16784 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
16785 else
16786 lt_host_flags='-no-undefined -bindir "$(bindir)"';
16790 lt_host_flags=
16792 esac
16797 if test -n "$ac_tool_prefix"; then
16798 for ac_prog in gcj
16800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16801 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16803 $as_echo_n "checking for $ac_word... " >&6; }
16804 if test "${ac_cv_prog_GCJ+set}" = set; then :
16805 $as_echo_n "(cached) " >&6
16806 else
16807 if test -n "$GCJ"; then
16808 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16809 else
16810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16811 for as_dir in $PATH
16813 IFS=$as_save_IFS
16814 test -z "$as_dir" && as_dir=.
16815 for ac_exec_ext in '' $ac_executable_extensions; do
16816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16817 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
16818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16819 break 2
16821 done
16822 done
16823 IFS=$as_save_IFS
16827 GCJ=$ac_cv_prog_GCJ
16828 if test -n "$GCJ"; then
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16830 $as_echo "$GCJ" >&6; }
16831 else
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16833 $as_echo "no" >&6; }
16837 test -n "$GCJ" && break
16838 done
16840 if test -z "$GCJ"; then
16841 ac_ct_GCJ=$GCJ
16842 for ac_prog in gcj
16844 # Extract the first word of "$ac_prog", so it can be a program name with args.
16845 set dummy $ac_prog; ac_word=$2
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16847 $as_echo_n "checking for $ac_word... " >&6; }
16848 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
16849 $as_echo_n "(cached) " >&6
16850 else
16851 if test -n "$ac_ct_GCJ"; then
16852 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
16853 else
16854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16855 for as_dir in $PATH
16857 IFS=$as_save_IFS
16858 test -z "$as_dir" && as_dir=.
16859 for ac_exec_ext in '' $ac_executable_extensions; do
16860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16861 ac_cv_prog_ac_ct_GCJ="$ac_prog"
16862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16863 break 2
16865 done
16866 done
16867 IFS=$as_save_IFS
16871 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
16872 if test -n "$ac_ct_GCJ"; then
16873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
16874 $as_echo "$ac_ct_GCJ" >&6; }
16875 else
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16877 $as_echo "no" >&6; }
16881 test -n "$ac_ct_GCJ" && break
16882 done
16884 if test "x$ac_ct_GCJ" = x; then
16885 GCJ="gcj"
16886 else
16887 case $cross_compiling:$ac_tool_warned in
16888 yes:)
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16891 ac_tool_warned=yes ;;
16892 esac
16893 GCJ=$ac_ct_GCJ
16897 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
16898 if test "x${GCJFLAGS-unset}" = xunset; then
16899 GCJFLAGS="-g -O2"
16903 depcc="$GCJ" am_compiler_list='gcc3 gcc'
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16906 $as_echo_n "checking dependency style of $depcc... " >&6; }
16907 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16908 $as_echo_n "(cached) " >&6
16909 else
16910 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16911 # We make a subdir and do the tests there. Otherwise we can end up
16912 # making bogus files that we don't know about and never remove. For
16913 # instance it was reported that on HP-UX the gcc test will end up
16914 # making a dummy file named `D' -- because `-MD' means `put the output
16915 # in D'.
16916 mkdir conftest.dir
16917 # Copy depcomp to subdir because otherwise we won't find it if we're
16918 # using a relative directory.
16919 cp "$am_depcomp" conftest.dir
16920 cd conftest.dir
16921 # We will build objects and dependencies in a subdirectory because
16922 # it helps to detect inapplicable dependency modes. For instance
16923 # both Tru64's cc and ICC support -MD to output dependencies as a
16924 # side effect of compilation, but ICC will put the dependencies in
16925 # the current directory while Tru64 will put them in the object
16926 # directory.
16927 mkdir sub
16929 am_cv_GCJ_dependencies_compiler_type=none
16930 if test "$am_compiler_list" = ""; then
16931 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16933 am__universal=false
16936 for depmode in $am_compiler_list; do
16937 # Setup a source with many dependencies, because some compilers
16938 # like to wrap large dependency lists on column 80 (with \), and
16939 # we should not choose a depcomp mode which is confused by this.
16941 # We need to recreate these files for each test, as the compiler may
16942 # overwrite some of them when testing with obscure command lines.
16943 # This happens at least with the AIX C compiler.
16944 : > sub/conftest.c
16945 for i in 1 2 3 4 5 6; do
16946 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16947 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16948 # Solaris 8's {/usr,}/bin/sh.
16949 touch sub/conftst$i.h
16950 done
16951 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16953 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16954 # mode. It turns out that the SunPro C++ compiler does not properly
16955 # handle `-M -o', and we need to detect this. Also, some Intel
16956 # versions had trouble with output in subdirs
16957 am__obj=sub/conftest.${OBJEXT-o}
16958 am__minus_obj="-o $am__obj"
16959 case $depmode in
16960 gcc)
16961 # This depmode causes a compiler race in universal mode.
16962 test "$am__universal" = false || continue
16964 nosideeffect)
16965 # after this tag, mechanisms are not by side-effect, so they'll
16966 # only be used when explicitly requested
16967 if test "x$enable_dependency_tracking" = xyes; then
16968 continue
16969 else
16970 break
16973 msvisualcpp | msvcmsys)
16974 # This compiler won't grok `-c -o', but also, the minuso test has
16975 # not run yet. These depmodes are late enough in the game, and
16976 # so weak that their functioning should not be impacted.
16977 am__obj=conftest.${OBJEXT-o}
16978 am__minus_obj=
16980 none) break ;;
16981 esac
16982 if depmode=$depmode \
16983 source=sub/conftest.c object=$am__obj \
16984 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16985 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16986 >/dev/null 2>conftest.err &&
16987 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16988 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16989 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16990 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16991 # icc doesn't choke on unknown options, it will just issue warnings
16992 # or remarks (even with -Werror). So we grep stderr for any message
16993 # that says an option was ignored or not supported.
16994 # When given -MP, icc 7.0 and 7.1 complain thusly:
16995 # icc: Command line warning: ignoring option '-M'; no argument required
16996 # The diagnosis changed in icc 8.0:
16997 # icc: Command line remark: option '-MP' not supported
16998 if (grep 'ignoring option' conftest.err ||
16999 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17000 am_cv_GCJ_dependencies_compiler_type=$depmode
17001 break
17004 done
17006 cd ..
17007 rm -rf conftest.dir
17008 else
17009 am_cv_GCJ_dependencies_compiler_type=none
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
17014 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
17015 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
17018 test "x$enable_dependency_tracking" != xno \
17019 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
17020 am__fastdepGCJ_TRUE=
17021 am__fastdepGCJ_FALSE='#'
17022 else
17023 am__fastdepGCJ_TRUE='#'
17024 am__fastdepGCJ_FALSE=
17029 if test -n "$ac_tool_prefix"; then
17030 for ac_prog in gcj
17032 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17033 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17035 $as_echo_n "checking for $ac_word... " >&6; }
17036 if test "${ac_cv_prog_GCJ+set}" = set; then :
17037 $as_echo_n "(cached) " >&6
17038 else
17039 if test -n "$GCJ"; then
17040 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
17041 else
17042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17043 for as_dir in $PATH
17045 IFS=$as_save_IFS
17046 test -z "$as_dir" && as_dir=.
17047 for ac_exec_ext in '' $ac_executable_extensions; do
17048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17049 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
17050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17051 break 2
17053 done
17054 done
17055 IFS=$as_save_IFS
17059 GCJ=$ac_cv_prog_GCJ
17060 if test -n "$GCJ"; then
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
17062 $as_echo "$GCJ" >&6; }
17063 else
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17065 $as_echo "no" >&6; }
17069 test -n "$GCJ" && break
17070 done
17072 if test -z "$GCJ"; then
17073 ac_ct_GCJ=$GCJ
17074 for ac_prog in gcj
17076 # Extract the first word of "$ac_prog", so it can be a program name with args.
17077 set dummy $ac_prog; ac_word=$2
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17079 $as_echo_n "checking for $ac_word... " >&6; }
17080 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
17081 $as_echo_n "(cached) " >&6
17082 else
17083 if test -n "$ac_ct_GCJ"; then
17084 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
17085 else
17086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17087 for as_dir in $PATH
17089 IFS=$as_save_IFS
17090 test -z "$as_dir" && as_dir=.
17091 for ac_exec_ext in '' $ac_executable_extensions; do
17092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17093 ac_cv_prog_ac_ct_GCJ="$ac_prog"
17094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17095 break 2
17097 done
17098 done
17099 IFS=$as_save_IFS
17103 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
17104 if test -n "$ac_ct_GCJ"; then
17105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
17106 $as_echo "$ac_ct_GCJ" >&6; }
17107 else
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17109 $as_echo "no" >&6; }
17113 test -n "$ac_ct_GCJ" && break
17114 done
17116 if test "x$ac_ct_GCJ" = x; then
17117 GCJ="gcj"
17118 else
17119 case $cross_compiling:$ac_tool_warned in
17120 yes:)
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17123 ac_tool_warned=yes ;;
17124 esac
17125 GCJ=$ac_ct_GCJ
17129 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
17130 if test "x${GCJFLAGS-unset}" = xunset; then
17131 GCJFLAGS="-g -O2"
17135 depcc="$GCJ" am_compiler_list='gcc3 gcc'
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17138 $as_echo_n "checking dependency style of $depcc... " >&6; }
17139 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
17140 $as_echo_n "(cached) " >&6
17141 else
17142 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17143 # We make a subdir and do the tests there. Otherwise we can end up
17144 # making bogus files that we don't know about and never remove. For
17145 # instance it was reported that on HP-UX the gcc test will end up
17146 # making a dummy file named `D' -- because `-MD' means `put the output
17147 # in D'.
17148 mkdir conftest.dir
17149 # Copy depcomp to subdir because otherwise we won't find it if we're
17150 # using a relative directory.
17151 cp "$am_depcomp" conftest.dir
17152 cd conftest.dir
17153 # We will build objects and dependencies in a subdirectory because
17154 # it helps to detect inapplicable dependency modes. For instance
17155 # both Tru64's cc and ICC support -MD to output dependencies as a
17156 # side effect of compilation, but ICC will put the dependencies in
17157 # the current directory while Tru64 will put them in the object
17158 # directory.
17159 mkdir sub
17161 am_cv_GCJ_dependencies_compiler_type=none
17162 if test "$am_compiler_list" = ""; then
17163 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17165 am__universal=false
17168 for depmode in $am_compiler_list; do
17169 # Setup a source with many dependencies, because some compilers
17170 # like to wrap large dependency lists on column 80 (with \), and
17171 # we should not choose a depcomp mode which is confused by this.
17173 # We need to recreate these files for each test, as the compiler may
17174 # overwrite some of them when testing with obscure command lines.
17175 # This happens at least with the AIX C compiler.
17176 : > sub/conftest.c
17177 for i in 1 2 3 4 5 6; do
17178 echo '#include "conftst'$i'.h"' >> sub/conftest.c
17179 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17180 # Solaris 8's {/usr,}/bin/sh.
17181 touch sub/conftst$i.h
17182 done
17183 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17185 # We check with `-c' and `-o' for the sake of the "dashmstdout"
17186 # mode. It turns out that the SunPro C++ compiler does not properly
17187 # handle `-M -o', and we need to detect this. Also, some Intel
17188 # versions had trouble with output in subdirs
17189 am__obj=sub/conftest.${OBJEXT-o}
17190 am__minus_obj="-o $am__obj"
17191 case $depmode in
17192 gcc)
17193 # This depmode causes a compiler race in universal mode.
17194 test "$am__universal" = false || continue
17196 nosideeffect)
17197 # after this tag, mechanisms are not by side-effect, so they'll
17198 # only be used when explicitly requested
17199 if test "x$enable_dependency_tracking" = xyes; then
17200 continue
17201 else
17202 break
17205 msvisualcpp | msvcmsys)
17206 # This compiler won't grok `-c -o', but also, the minuso test has
17207 # not run yet. These depmodes are late enough in the game, and
17208 # so weak that their functioning should not be impacted.
17209 am__obj=conftest.${OBJEXT-o}
17210 am__minus_obj=
17212 none) break ;;
17213 esac
17214 if depmode=$depmode \
17215 source=sub/conftest.c object=$am__obj \
17216 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17217 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17218 >/dev/null 2>conftest.err &&
17219 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17220 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17221 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17222 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17223 # icc doesn't choke on unknown options, it will just issue warnings
17224 # or remarks (even with -Werror). So we grep stderr for any message
17225 # that says an option was ignored or not supported.
17226 # When given -MP, icc 7.0 and 7.1 complain thusly:
17227 # icc: Command line warning: ignoring option '-M'; no argument required
17228 # The diagnosis changed in icc 8.0:
17229 # icc: Command line remark: option '-MP' not supported
17230 if (grep 'ignoring option' conftest.err ||
17231 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17232 am_cv_GCJ_dependencies_compiler_type=$depmode
17233 break
17236 done
17238 cd ..
17239 rm -rf conftest.dir
17240 else
17241 am_cv_GCJ_dependencies_compiler_type=none
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
17246 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
17247 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
17250 test "x$enable_dependency_tracking" != xno \
17251 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
17252 am__fastdepGCJ_TRUE=
17253 am__fastdepGCJ_FALSE='#'
17254 else
17255 am__fastdepGCJ_TRUE='#'
17256 am__fastdepGCJ_FALSE=
17263 # Source file extension for Java test sources.
17264 ac_ext=c
17266 # Object file extension for compiled Java test sources.
17267 objext=o
17268 objext_GCJ=$objext
17270 # Code to be used in simple compile tests
17271 lt_simple_compile_test_code="int some_variable = 0;"
17273 # Code to be used in simple link tests
17274 lt_simple_link_test_code='int main(){return(0);}'
17276 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17283 # If no C compiler was specified, use CC.
17284 LTCC=${LTCC-"$CC"}
17286 # If no C compiler flags were specified, use CFLAGS.
17287 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17289 # Allow CC to be a program name with arguments.
17290 compiler=$CC
17293 # save warnings/boilerplate of simple test code
17294 ac_outfile=conftest.$ac_objext
17295 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17296 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17297 _lt_compiler_boilerplate=`cat conftest.err`
17298 $RM conftest*
17300 ac_outfile=conftest.$ac_objext
17301 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17302 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17303 _lt_linker_boilerplate=`cat conftest.err`
17304 $RM -r conftest*
17307 # Allow CC to be a program name with arguments.
17308 GCC=yes
17309 compiler=$CC
17310 compiler_GCJ=$CC
17311 for cc_temp in $compiler""; do
17312 case $cc_temp in
17313 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17314 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17315 \-*) ;;
17316 *) break;;
17317 esac
17318 done
17319 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17322 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17323 archive_cmds_need_lc_GCJ=no
17325 old_archive_cmds_GCJ=$old_archive_cmds
17327 ## CAVEAT EMPTOR:
17328 ## There is no encapsulation within the following macros, do not change
17329 ## the running order or otherwise move them around unless you know exactly
17330 ## what you are doing...
17331 if test -n "$compiler"; then
17333 lt_prog_compiler_no_builtin_flag_GCJ=
17335 if test "$GCC" = yes; then
17336 case $cc_basename in
17337 nvcc*)
17338 lt_prog_compiler_no_builtin_flag_GCJ=' -Xcompiler -fno-builtin' ;;
17340 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' ;;
17341 esac
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17344 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17345 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
17346 $as_echo_n "(cached) " >&6
17347 else
17348 lt_cv_prog_compiler_rtti_exceptions=no
17349 ac_outfile=conftest.$ac_objext
17350 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17351 lt_compiler_flag="-fno-rtti -fno-exceptions"
17352 # Insert the option either (1) after the last *FLAGS variable, or
17353 # (2) before a word containing "conftest.", or (3) at the end.
17354 # Note that $ac_compile itself does not contain backslashes and begins
17355 # with a dollar sign (not a hyphen), so the echo should work correctly.
17356 # The option is referenced via a variable to avoid confusing sed.
17357 lt_compile=`echo "$ac_compile" | $SED \
17358 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17359 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17360 -e 's:$: $lt_compiler_flag:'`
17361 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17362 (eval "$lt_compile" 2>conftest.err)
17363 ac_status=$?
17364 cat conftest.err >&5
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 if (exit $ac_status) && test -s "$ac_outfile"; then
17367 # The compiler can only warn and ignore the option if not recognized
17368 # So say no if there are warnings other than the usual output.
17369 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17370 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17371 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17372 lt_cv_prog_compiler_rtti_exceptions=yes
17375 $RM conftest*
17378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17379 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17381 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17382 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17383 else
17391 lt_prog_compiler_wl_GCJ=
17392 lt_prog_compiler_pic_GCJ=
17393 lt_prog_compiler_static_GCJ=
17395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17396 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17398 if test "$GCC" = yes; then
17399 lt_prog_compiler_wl_GCJ='-Wl,'
17400 lt_prog_compiler_static_GCJ='-static'
17402 case $host_os in
17403 aix*)
17404 # All AIX code is PIC.
17405 if test "$host_cpu" = ia64; then
17406 # AIX 5 now supports IA64 processor
17407 lt_prog_compiler_static_GCJ='-Bstatic'
17409 lt_prog_compiler_pic_GCJ='-fPIC'
17412 amigaos*)
17413 case $host_cpu in
17414 powerpc)
17415 # see comment about AmigaOS4 .so support
17416 lt_prog_compiler_pic_GCJ='-fPIC'
17418 m68k)
17419 # FIXME: we need at least 68020 code to build shared libraries, but
17420 # adding the `-m68020' flag to GCC prevents building anything better,
17421 # like `-m68040'.
17422 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17424 esac
17427 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17428 # PIC is the default for these OSes.
17431 mingw* | cygwin* | pw32* | os2* | cegcc*)
17432 # This hack is so that the source file can tell whether it is being
17433 # built for inclusion in a dll (and should export symbols for example).
17434 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17435 # (--disable-auto-import) libraries
17439 darwin* | rhapsody*)
17440 # PIC is the default on this platform
17441 # Common symbols not allowed in MH_DYLIB files
17442 lt_prog_compiler_pic_GCJ='-fno-common'
17445 haiku*)
17446 # PIC is the default for Haiku.
17447 # The "-static" flag exists, but is broken.
17448 lt_prog_compiler_static_GCJ=
17451 hpux*)
17452 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17453 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17454 # sets the default TLS model and affects inlining.
17455 case $host_cpu in
17456 hppa*64*)
17457 # +Z the default
17460 lt_prog_compiler_pic_GCJ='-fPIC'
17462 esac
17465 interix[3-9]*)
17466 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17467 # Instead, we relocate shared libraries at runtime.
17470 msdosdjgpp*)
17471 # Just because we use GCC doesn't mean we suddenly get shared libraries
17472 # on systems that don't support them.
17473 lt_prog_compiler_can_build_shared_GCJ=no
17474 enable_shared=no
17477 *nto* | *qnx*)
17478 # QNX uses GNU C++, but need to define -shared option too, otherwise
17479 # it will coredump.
17480 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17483 sysv4*MP*)
17484 if test -d /usr/nec; then
17485 lt_prog_compiler_pic_GCJ=-Kconform_pic
17490 lt_prog_compiler_pic_GCJ='-fPIC'
17492 esac
17494 case $cc_basename in
17495 nvcc*) # Cuda Compiler Driver 2.2
17496 lt_prog_compiler_wl_GCJ='-Xlinker '
17497 lt_prog_compiler_pic_GCJ='-Xcompiler -fPIC'
17499 esac
17500 else
17501 # PORTME Check for flag to pass linker flags through the system compiler.
17502 case $host_os in
17503 aix*)
17504 lt_prog_compiler_wl_GCJ='-Wl,'
17505 if test "$host_cpu" = ia64; then
17506 # AIX 5 now supports IA64 processor
17507 lt_prog_compiler_static_GCJ='-Bstatic'
17508 else
17509 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17513 mingw* | cygwin* | pw32* | os2* | cegcc*)
17514 # This hack is so that the source file can tell whether it is being
17515 # built for inclusion in a dll (and should export symbols for example).
17519 hpux9* | hpux10* | hpux11*)
17520 lt_prog_compiler_wl_GCJ='-Wl,'
17521 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17522 # not for PA HP-UX.
17523 case $host_cpu in
17524 hppa*64*|ia64*)
17525 # +Z the default
17528 lt_prog_compiler_pic_GCJ='+Z'
17530 esac
17531 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17532 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17535 irix5* | irix6* | nonstopux*)
17536 lt_prog_compiler_wl_GCJ='-Wl,'
17537 # PIC (with -KPIC) is the default.
17538 lt_prog_compiler_static_GCJ='-non_shared'
17541 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17542 case $cc_basename in
17543 # old Intel for x86_64 which still supported -KPIC.
17544 ecc*)
17545 lt_prog_compiler_wl_GCJ='-Wl,'
17546 lt_prog_compiler_pic_GCJ='-KPIC'
17547 lt_prog_compiler_static_GCJ='-static'
17549 # icc used to be incompatible with GCC.
17550 # ICC 10 doesn't accept -KPIC any more.
17551 icc* | ifort*)
17552 lt_prog_compiler_wl_GCJ='-Wl,'
17553 lt_prog_compiler_pic_GCJ='-fPIC'
17554 lt_prog_compiler_static_GCJ='-static'
17556 # Lahey Fortran 8.1.
17557 lf95*)
17558 lt_prog_compiler_wl_GCJ='-Wl,'
17559 lt_prog_compiler_pic_GCJ='--shared'
17560 lt_prog_compiler_static_GCJ='--static'
17562 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17563 # Portland Group compilers (*not* the Pentium gcc compiler,
17564 # which looks to be a dead project)
17565 lt_prog_compiler_wl_GCJ='-Wl,'
17566 lt_prog_compiler_pic_GCJ='-fpic'
17567 lt_prog_compiler_static_GCJ='-Bstatic'
17569 ccc*)
17570 lt_prog_compiler_wl_GCJ='-Wl,'
17571 # All Alpha code is PIC.
17572 lt_prog_compiler_static_GCJ='-non_shared'
17574 xl* | bgxl* | bgf* | mpixl*)
17575 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17576 lt_prog_compiler_wl_GCJ='-Wl,'
17577 lt_prog_compiler_pic_GCJ='-qpic'
17578 lt_prog_compiler_static_GCJ='-qstaticlink'
17581 case `$CC -V 2>&1 | sed 5q` in
17582 *Sun\ F* | *Sun*Fortran*)
17583 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17584 lt_prog_compiler_pic_GCJ='-KPIC'
17585 lt_prog_compiler_static_GCJ='-Bstatic'
17586 lt_prog_compiler_wl_GCJ=''
17588 *Sun\ C*)
17589 # Sun C 5.9
17590 lt_prog_compiler_pic_GCJ='-KPIC'
17591 lt_prog_compiler_static_GCJ='-Bstatic'
17592 lt_prog_compiler_wl_GCJ='-Wl,'
17594 esac
17596 esac
17599 newsos6)
17600 lt_prog_compiler_pic_GCJ='-KPIC'
17601 lt_prog_compiler_static_GCJ='-Bstatic'
17604 *nto* | *qnx*)
17605 # QNX uses GNU C++, but need to define -shared option too, otherwise
17606 # it will coredump.
17607 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17610 osf3* | osf4* | osf5*)
17611 lt_prog_compiler_wl_GCJ='-Wl,'
17612 # All OSF/1 code is PIC.
17613 lt_prog_compiler_static_GCJ='-non_shared'
17616 rdos*)
17617 lt_prog_compiler_static_GCJ='-non_shared'
17620 solaris*)
17621 lt_prog_compiler_pic_GCJ='-KPIC'
17622 lt_prog_compiler_static_GCJ='-Bstatic'
17623 case $cc_basename in
17624 f77* | f90* | f95*)
17625 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17627 lt_prog_compiler_wl_GCJ='-Wl,';;
17628 esac
17631 sunos4*)
17632 lt_prog_compiler_wl_GCJ='-Qoption ld '
17633 lt_prog_compiler_pic_GCJ='-PIC'
17634 lt_prog_compiler_static_GCJ='-Bstatic'
17637 sysv4 | sysv4.2uw2* | sysv4.3*)
17638 lt_prog_compiler_wl_GCJ='-Wl,'
17639 lt_prog_compiler_pic_GCJ='-KPIC'
17640 lt_prog_compiler_static_GCJ='-Bstatic'
17643 sysv4*MP*)
17644 if test -d /usr/nec ;then
17645 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17646 lt_prog_compiler_static_GCJ='-Bstatic'
17650 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17651 lt_prog_compiler_wl_GCJ='-Wl,'
17652 lt_prog_compiler_pic_GCJ='-KPIC'
17653 lt_prog_compiler_static_GCJ='-Bstatic'
17656 unicos*)
17657 lt_prog_compiler_wl_GCJ='-Wl,'
17658 lt_prog_compiler_can_build_shared_GCJ=no
17661 uts4*)
17662 lt_prog_compiler_pic_GCJ='-pic'
17663 lt_prog_compiler_static_GCJ='-Bstatic'
17667 lt_prog_compiler_can_build_shared_GCJ=no
17669 esac
17672 case $host_os in
17673 # For platforms which do not support PIC, -DPIC is meaningless:
17674 *djgpp*)
17675 lt_prog_compiler_pic_GCJ=
17678 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17680 esac
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
17682 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17687 # Check to make sure the PIC flag actually works.
17689 if test -n "$lt_prog_compiler_pic_GCJ"; then
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17691 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17692 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
17693 $as_echo_n "(cached) " >&6
17694 else
17695 lt_cv_prog_compiler_pic_works_GCJ=no
17696 ac_outfile=conftest.$ac_objext
17697 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17698 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17699 # Insert the option either (1) after the last *FLAGS variable, or
17700 # (2) before a word containing "conftest.", or (3) at the end.
17701 # Note that $ac_compile itself does not contain backslashes and begins
17702 # with a dollar sign (not a hyphen), so the echo should work correctly.
17703 # The option is referenced via a variable to avoid confusing sed.
17704 lt_compile=`echo "$ac_compile" | $SED \
17705 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17706 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17707 -e 's:$: $lt_compiler_flag:'`
17708 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17709 (eval "$lt_compile" 2>conftest.err)
17710 ac_status=$?
17711 cat conftest.err >&5
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 if (exit $ac_status) && test -s "$ac_outfile"; then
17714 # The compiler can only warn and ignore the option if not recognized
17715 # So say no if there are warnings other than the usual output.
17716 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17717 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17718 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17719 lt_cv_prog_compiler_pic_works_GCJ=yes
17722 $RM conftest*
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17726 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17728 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17729 case $lt_prog_compiler_pic_GCJ in
17730 "" | " "*) ;;
17731 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17732 esac
17733 else
17734 lt_prog_compiler_pic_GCJ=
17735 lt_prog_compiler_can_build_shared_GCJ=no
17743 # Check to make sure the static flag actually works.
17745 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17747 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17748 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
17749 $as_echo_n "(cached) " >&6
17750 else
17751 lt_cv_prog_compiler_static_works_GCJ=no
17752 save_LDFLAGS="$LDFLAGS"
17753 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17754 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17755 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17756 # The linker can only warn and ignore the option if not recognized
17757 # So say no if there are warnings
17758 if test -s conftest.err; then
17759 # Append any errors to the config.log.
17760 cat conftest.err 1>&5
17761 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17762 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17763 if diff conftest.exp conftest.er2 >/dev/null; then
17764 lt_cv_prog_compiler_static_works_GCJ=yes
17766 else
17767 lt_cv_prog_compiler_static_works_GCJ=yes
17770 $RM -r conftest*
17771 LDFLAGS="$save_LDFLAGS"
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17775 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17777 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17779 else
17780 lt_prog_compiler_static_GCJ=
17786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17787 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17788 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17789 $as_echo_n "(cached) " >&6
17790 else
17791 lt_cv_prog_compiler_c_o_GCJ=no
17792 $RM -r conftest 2>/dev/null
17793 mkdir conftest
17794 cd conftest
17795 mkdir out
17796 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17798 lt_compiler_flag="-o out/conftest2.$ac_objext"
17799 # Insert the option either (1) after the last *FLAGS variable, or
17800 # (2) before a word containing "conftest.", or (3) at the end.
17801 # Note that $ac_compile itself does not contain backslashes and begins
17802 # with a dollar sign (not a hyphen), so the echo should work correctly.
17803 lt_compile=`echo "$ac_compile" | $SED \
17804 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17806 -e 's:$: $lt_compiler_flag:'`
17807 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17808 (eval "$lt_compile" 2>out/conftest.err)
17809 ac_status=$?
17810 cat out/conftest.err >&5
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17813 then
17814 # The compiler can only warn and ignore the option if not recognized
17815 # So say no if there are warnings
17816 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17817 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17818 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17819 lt_cv_prog_compiler_c_o_GCJ=yes
17822 chmod u+w . 2>&5
17823 $RM conftest*
17824 # SGI C++ compiler will create directory out/ii_files/ for
17825 # template instantiation
17826 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17827 $RM out/* && rmdir out
17828 cd ..
17829 $RM -r conftest
17830 $RM conftest*
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17834 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17839 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17840 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17841 $as_echo_n "(cached) " >&6
17842 else
17843 lt_cv_prog_compiler_c_o_GCJ=no
17844 $RM -r conftest 2>/dev/null
17845 mkdir conftest
17846 cd conftest
17847 mkdir out
17848 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17850 lt_compiler_flag="-o out/conftest2.$ac_objext"
17851 # Insert the option either (1) after the last *FLAGS variable, or
17852 # (2) before a word containing "conftest.", or (3) at the end.
17853 # Note that $ac_compile itself does not contain backslashes and begins
17854 # with a dollar sign (not a hyphen), so the echo should work correctly.
17855 lt_compile=`echo "$ac_compile" | $SED \
17856 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17857 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17858 -e 's:$: $lt_compiler_flag:'`
17859 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17860 (eval "$lt_compile" 2>out/conftest.err)
17861 ac_status=$?
17862 cat out/conftest.err >&5
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17865 then
17866 # The compiler can only warn and ignore the option if not recognized
17867 # So say no if there are warnings
17868 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17869 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17870 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17871 lt_cv_prog_compiler_c_o_GCJ=yes
17874 chmod u+w . 2>&5
17875 $RM conftest*
17876 # SGI C++ compiler will create directory out/ii_files/ for
17877 # template instantiation
17878 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17879 $RM out/* && rmdir out
17880 cd ..
17881 $RM -r conftest
17882 $RM conftest*
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17886 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17891 hard_links="nottested"
17892 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17893 # do not overwrite the value of need_locks provided by the user
17894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17895 $as_echo_n "checking if we can lock with hard links... " >&6; }
17896 hard_links=yes
17897 $RM conftest*
17898 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17899 touch conftest.a
17900 ln conftest.a conftest.b 2>&5 || hard_links=no
17901 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17903 $as_echo "$hard_links" >&6; }
17904 if test "$hard_links" = no; then
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17906 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17907 need_locks=warn
17909 else
17910 need_locks=no
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17916 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17918 runpath_var=
17919 allow_undefined_flag_GCJ=
17920 always_export_symbols_GCJ=no
17921 archive_cmds_GCJ=
17922 archive_expsym_cmds_GCJ=
17923 compiler_needs_object_GCJ=no
17924 enable_shared_with_static_runtimes_GCJ=no
17925 export_dynamic_flag_spec_GCJ=
17926 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17927 hardcode_automatic_GCJ=no
17928 hardcode_direct_GCJ=no
17929 hardcode_direct_absolute_GCJ=no
17930 hardcode_libdir_flag_spec_GCJ=
17931 hardcode_libdir_flag_spec_ld_GCJ=
17932 hardcode_libdir_separator_GCJ=
17933 hardcode_minus_L_GCJ=no
17934 hardcode_shlibpath_var_GCJ=unsupported
17935 inherit_rpath_GCJ=no
17936 link_all_deplibs_GCJ=unknown
17937 module_cmds_GCJ=
17938 module_expsym_cmds_GCJ=
17939 old_archive_from_new_cmds_GCJ=
17940 old_archive_from_expsyms_cmds_GCJ=
17941 thread_safe_flag_spec_GCJ=
17942 whole_archive_flag_spec_GCJ=
17943 # include_expsyms should be a list of space-separated symbols to be *always*
17944 # included in the symbol list
17945 include_expsyms_GCJ=
17946 # exclude_expsyms can be an extended regexp of symbols to exclude
17947 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17948 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17949 # as well as any symbol that contains `d'.
17950 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17951 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17952 # platforms (ab)use it in PIC code, but their linkers get confused if
17953 # the symbol is explicitly referenced. Since portable code cannot
17954 # rely on this symbol name, it's probably fine to never include it in
17955 # preloaded symbol tables.
17956 # Exclude shared library initialization/finalization symbols.
17957 extract_expsyms_cmds=
17959 case $host_os in
17960 cygwin* | mingw* | pw32* | cegcc*)
17961 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17962 # When not using gcc, we currently assume that we are using
17963 # Microsoft Visual C++.
17964 if test "$GCC" != yes; then
17965 with_gnu_ld=no
17968 interix*)
17969 # we just hope/assume this is gcc and not c89 (= MSVC++)
17970 with_gnu_ld=yes
17972 openbsd*)
17973 with_gnu_ld=no
17975 esac
17977 ld_shlibs_GCJ=yes
17979 # On some targets, GNU ld is compatible enough with the native linker
17980 # that we're better off using the native interface for both.
17981 lt_use_gnu_ld_interface=no
17982 if test "$with_gnu_ld" = yes; then
17983 case $host_os in
17984 aix*)
17985 # The AIX port of GNU ld has always aspired to compatibility
17986 # with the native linker. However, as the warning in the GNU ld
17987 # block says, versions before 2.19.5* couldn't really create working
17988 # shared libraries, regardless of the interface used.
17989 case `$LD -v 2>&1` in
17990 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17991 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17992 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17994 lt_use_gnu_ld_interface=yes
17996 esac
17999 lt_use_gnu_ld_interface=yes
18001 esac
18004 if test "$lt_use_gnu_ld_interface" = yes; then
18005 # If archive_cmds runs LD, not CC, wlarc should be empty
18006 wlarc='${wl}'
18008 # Set some defaults for GNU ld with shared library support. These
18009 # are reset later if shared libraries are not supported. Putting them
18010 # here allows them to be overridden if necessary.
18011 runpath_var=LD_RUN_PATH
18012 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18013 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18014 # ancient GNU ld didn't support --whole-archive et. al.
18015 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
18016 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18017 else
18018 whole_archive_flag_spec_GCJ=
18020 supports_anon_versioning=no
18021 case `$LD -v 2>&1` in
18022 *GNU\ gold*) supports_anon_versioning=yes ;;
18023 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18024 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18025 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18026 *\ 2.11.*) ;; # other 2.11 versions
18027 *) supports_anon_versioning=yes ;;
18028 esac
18030 # See if GNU ld supports shared libraries.
18031 case $host_os in
18032 aix[3-9]*)
18033 # On AIX/PPC, the GNU linker is very broken
18034 if test "$host_cpu" != ia64; then
18035 ld_shlibs_GCJ=no
18036 cat <<_LT_EOF 1>&2
18038 *** Warning: the GNU linker, at least up to release 2.19, is reported
18039 *** to be unable to reliably create shared libraries on AIX.
18040 *** Therefore, libtool is disabling shared libraries support. If you
18041 *** really care for shared libraries, you may want to install binutils
18042 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
18043 *** You will then need to restart the configuration process.
18045 _LT_EOF
18049 amigaos*)
18050 case $host_cpu in
18051 powerpc)
18052 # see comment about AmigaOS4 .so support
18053 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18054 archive_expsym_cmds_GCJ=''
18056 m68k)
18057 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)'
18058 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18059 hardcode_minus_L_GCJ=yes
18061 esac
18064 beos*)
18065 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18066 allow_undefined_flag_GCJ=unsupported
18067 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18068 # support --undefined. This deserves some investigation. FIXME
18069 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18070 else
18071 ld_shlibs_GCJ=no
18075 cygwin* | mingw* | pw32* | cegcc*)
18076 # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18077 # as there is no search path for DLLs.
18078 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18079 export_dynamic_flag_spec_GCJ='${wl}--export-all-symbols'
18080 allow_undefined_flag_GCJ=unsupported
18081 always_export_symbols_GCJ=no
18082 enable_shared_with_static_runtimes_GCJ=yes
18083 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18085 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18086 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18087 # If the export-symbols file already is a .def file (1st line
18088 # is EXPORTS), use it as is; otherwise, prepend...
18089 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18090 cp $export_symbols $output_objdir/$soname.def;
18091 else
18092 echo EXPORTS > $output_objdir/$soname.def;
18093 cat $export_symbols >> $output_objdir/$soname.def;
18095 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18096 else
18097 ld_shlibs_GCJ=no
18101 haiku*)
18102 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18103 link_all_deplibs_GCJ=yes
18106 interix[3-9]*)
18107 hardcode_direct_GCJ=no
18108 hardcode_shlibpath_var_GCJ=no
18109 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18110 export_dynamic_flag_spec_GCJ='${wl}-E'
18111 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18112 # Instead, shared libraries are loaded at an image base (0x10000000 by
18113 # default) and relocated if they conflict, which is a slow very memory
18114 # consuming and fragmenting process. To avoid this, we pick a random,
18115 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18116 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18117 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'
18118 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'
18121 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
18122 tmp_diet=no
18123 if test "$host_os" = linux-dietlibc; then
18124 case $cc_basename in
18125 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
18126 esac
18128 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
18129 && test "$tmp_diet" = no
18130 then
18131 tmp_addflag=
18132 tmp_sharedflag='-shared'
18133 case $cc_basename,$host_cpu in
18134 pgcc*) # Portland Group C compiler
18135 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'
18136 tmp_addflag=' $pic_flag'
18138 pgf77* | pgf90* | pgf95* | pgfortran*)
18139 # Portland Group f77 and f90 compilers
18140 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'
18141 tmp_addflag=' $pic_flag -Mnomain' ;;
18142 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18143 tmp_addflag=' -i_dynamic' ;;
18144 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18145 tmp_addflag=' -i_dynamic -nofor_main' ;;
18146 ifc* | ifort*) # Intel Fortran compiler
18147 tmp_addflag=' -nofor_main' ;;
18148 lf95*) # Lahey Fortran 8.1
18149 whole_archive_flag_spec_GCJ=
18150 tmp_sharedflag='--shared' ;;
18151 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
18152 tmp_sharedflag='-qmkshrobj'
18153 tmp_addflag= ;;
18154 nvcc*) # Cuda Compiler Driver 2.2
18155 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'
18156 compiler_needs_object_GCJ=yes
18158 esac
18159 case `$CC -V 2>&1 | sed 5q` in
18160 *Sun\ C*) # Sun C 5.9
18161 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'
18162 compiler_needs_object_GCJ=yes
18163 tmp_sharedflag='-G' ;;
18164 *Sun\ F*) # Sun Fortran 8.3
18165 tmp_sharedflag='-G' ;;
18166 esac
18167 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18169 if test "x$supports_anon_versioning" = xyes; then
18170 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18171 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18172 echo "local: *; };" >> $output_objdir/$libname.ver~
18173 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18176 case $cc_basename in
18177 xlf* | bgf* | bgxlf* | mpixlf*)
18178 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
18179 whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
18180 hardcode_libdir_flag_spec_GCJ=
18181 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18182 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
18183 if test "x$supports_anon_versioning" = xyes; then
18184 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18185 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18186 echo "local: *; };" >> $output_objdir/$libname.ver~
18187 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
18190 esac
18191 else
18192 ld_shlibs_GCJ=no
18196 netbsd*)
18197 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18198 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18199 wlarc=
18200 else
18201 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18202 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18206 solaris*)
18207 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
18208 ld_shlibs_GCJ=no
18209 cat <<_LT_EOF 1>&2
18211 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18212 *** create shared libraries on Solaris systems. Therefore, libtool
18213 *** is disabling shared libraries support. We urge you to upgrade GNU
18214 *** binutils to release 2.9.1 or newer. Another option is to modify
18215 *** your PATH or compiler configuration so that the native linker is
18216 *** used, and then restart.
18218 _LT_EOF
18219 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18220 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18221 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18222 else
18223 ld_shlibs_GCJ=no
18227 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18228 case `$LD -v 2>&1` in
18229 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18230 ld_shlibs_GCJ=no
18231 cat <<_LT_EOF 1>&2
18233 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18234 *** reliably create shared libraries on SCO systems. Therefore, libtool
18235 *** is disabling shared libraries support. We urge you to upgrade GNU
18236 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18237 *** your PATH or compiler configuration so that the native linker is
18238 *** used, and then restart.
18240 _LT_EOF
18243 # For security reasons, it is highly recommended that you always
18244 # use absolute paths for naming shared libraries, and exclude the
18245 # DT_RUNPATH tag from executables and libraries. But doing so
18246 # requires that you compile everything twice, which is a pain.
18247 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18248 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18249 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18250 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18251 else
18252 ld_shlibs_GCJ=no
18255 esac
18258 sunos4*)
18259 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18260 wlarc=
18261 hardcode_direct_GCJ=yes
18262 hardcode_shlibpath_var_GCJ=no
18266 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18267 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18268 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18269 else
18270 ld_shlibs_GCJ=no
18273 esac
18275 if test "$ld_shlibs_GCJ" = no; then
18276 runpath_var=
18277 hardcode_libdir_flag_spec_GCJ=
18278 export_dynamic_flag_spec_GCJ=
18279 whole_archive_flag_spec_GCJ=
18281 else
18282 # PORTME fill in a description of your system's linker (not GNU ld)
18283 case $host_os in
18284 aix3*)
18285 allow_undefined_flag_GCJ=unsupported
18286 always_export_symbols_GCJ=yes
18287 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'
18288 # Note: this linker hardcodes the directories in LIBPATH if there
18289 # are no directories specified by -L.
18290 hardcode_minus_L_GCJ=yes
18291 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18292 # Neither direct hardcoding nor static linking is supported with a
18293 # broken collect2.
18294 hardcode_direct_GCJ=unsupported
18298 aix[4-9]*)
18299 if test "$host_cpu" = ia64; then
18300 # On IA64, the linker does run time linking by default, so we don't
18301 # have to do anything special.
18302 aix_use_runtimelinking=no
18303 exp_sym_flag='-Bexport'
18304 no_entry_flag=""
18305 else
18306 # If we're using GNU nm, then we don't want the "-C" option.
18307 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18308 # Also, AIX nm treats weak defined symbols like other global
18309 # defined symbols, whereas GNU nm marks them as "W".
18310 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18311 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'
18312 else
18313 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'
18315 aix_use_runtimelinking=no
18317 # Test if we are trying to use run time linking or normal
18318 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18319 # need to do runtime linking.
18320 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18321 for ld_flag in $LDFLAGS; do
18322 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18323 aix_use_runtimelinking=yes
18324 break
18326 done
18328 esac
18330 exp_sym_flag='-bexport'
18331 no_entry_flag='-bnoentry'
18334 # When large executables or shared objects are built, AIX ld can
18335 # have problems creating the table of contents. If linking a library
18336 # or program results in "error TOC overflow" add -mminimal-toc to
18337 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18338 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18340 archive_cmds_GCJ=''
18341 hardcode_direct_GCJ=yes
18342 hardcode_direct_absolute_GCJ=yes
18343 hardcode_libdir_separator_GCJ=':'
18344 link_all_deplibs_GCJ=yes
18345 file_list_spec_GCJ='${wl}-f,'
18347 if test "$GCC" = yes; then
18348 case $host_os in aix4.[012]|aix4.[012].*)
18349 # We only want to do this on AIX 4.2 and lower, the check
18350 # below for broken collect2 doesn't work under 4.3+
18351 collect2name=`${CC} -print-prog-name=collect2`
18352 if test -f "$collect2name" &&
18353 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18354 then
18355 # We have reworked collect2
18357 else
18358 # We have old collect2
18359 hardcode_direct_GCJ=unsupported
18360 # It fails to find uninstalled libraries when the uninstalled
18361 # path is not listed in the libpath. Setting hardcode_minus_L
18362 # to unsupported forces relinking
18363 hardcode_minus_L_GCJ=yes
18364 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18365 hardcode_libdir_separator_GCJ=
18368 esac
18369 shared_flag='-shared'
18370 if test "$aix_use_runtimelinking" = yes; then
18371 shared_flag="$shared_flag "'${wl}-G'
18373 else
18374 # not using gcc
18375 if test "$host_cpu" = ia64; then
18376 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18377 # chokes on -Wl,-G. The following line is correct:
18378 shared_flag='-G'
18379 else
18380 if test "$aix_use_runtimelinking" = yes; then
18381 shared_flag='${wl}-G'
18382 else
18383 shared_flag='${wl}-bM:SRE'
18388 export_dynamic_flag_spec_GCJ='${wl}-bexpall'
18389 # It seems that -bexpall does not export symbols beginning with
18390 # underscore (_), so it is better to generate a list of symbols to export.
18391 always_export_symbols_GCJ=yes
18392 if test "$aix_use_runtimelinking" = yes; then
18393 # Warning - without using the other runtime loading flags (-brtl),
18394 # -berok will link without error, but may produce a broken library.
18395 allow_undefined_flag_GCJ='-berok'
18396 # Determine the default libpath from the value encoded in an
18397 # empty executable.
18398 if test x$gcc_no_link = xyes; then
18399 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18402 /* end confdefs.h. */
18405 main ()
18409 return 0;
18411 _ACEOF
18412 if ac_fn_c_try_link "$LINENO"; then :
18414 lt_aix_libpath_sed='
18415 /Import File Strings/,/^$/ {
18416 /^0/ {
18417 s/^0 *\(.*\)$/\1/
18421 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18422 # Check for a 64-bit object if we didn't find anything.
18423 if test -z "$aix_libpath"; then
18424 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18427 rm -f core conftest.err conftest.$ac_objext \
18428 conftest$ac_exeext conftest.$ac_ext
18429 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18431 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18432 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"
18433 else
18434 if test "$host_cpu" = ia64; then
18435 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18436 allow_undefined_flag_GCJ="-z nodefs"
18437 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"
18438 else
18439 # Determine the default libpath from the value encoded in an
18440 # empty executable.
18441 if test x$gcc_no_link = xyes; then
18442 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18445 /* end confdefs.h. */
18448 main ()
18452 return 0;
18454 _ACEOF
18455 if ac_fn_c_try_link "$LINENO"; then :
18457 lt_aix_libpath_sed='
18458 /Import File Strings/,/^$/ {
18459 /^0/ {
18460 s/^0 *\(.*\)$/\1/
18464 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18465 # Check for a 64-bit object if we didn't find anything.
18466 if test -z "$aix_libpath"; then
18467 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18470 rm -f core conftest.err conftest.$ac_objext \
18471 conftest$ac_exeext conftest.$ac_ext
18472 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18474 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18475 # Warning - without using the other run time loading flags,
18476 # -berok will link without error, but may produce a broken library.
18477 no_undefined_flag_GCJ=' ${wl}-bernotok'
18478 allow_undefined_flag_GCJ=' ${wl}-berok'
18479 if test "$with_gnu_ld" = yes; then
18480 # We only use this code for GNU lds that support --whole-archive.
18481 whole_archive_flag_spec_GCJ='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18482 else
18483 # Exported symbols can be pulled into shared objects from archives
18484 whole_archive_flag_spec_GCJ='$convenience'
18486 archive_cmds_need_lc_GCJ=yes
18487 # This is similar to how AIX traditionally builds its shared libraries.
18488 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'
18493 amigaos*)
18494 case $host_cpu in
18495 powerpc)
18496 # see comment about AmigaOS4 .so support
18497 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18498 archive_expsym_cmds_GCJ=''
18500 m68k)
18501 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)'
18502 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18503 hardcode_minus_L_GCJ=yes
18505 esac
18508 bsdi[45]*)
18509 export_dynamic_flag_spec_GCJ=-rdynamic
18512 cygwin* | mingw* | pw32* | cegcc*)
18513 # When not using gcc, we currently assume that we are using
18514 # Microsoft Visual C++.
18515 # hardcode_libdir_flag_spec is actually meaningless, as there is
18516 # no search path for DLLs.
18517 hardcode_libdir_flag_spec_GCJ=' '
18518 allow_undefined_flag_GCJ=unsupported
18519 # Tell ltmain to make .lib files, not .a files.
18520 libext=lib
18521 # Tell ltmain to make .dll files, not .so files.
18522 shrext_cmds=".dll"
18523 # FIXME: Setting linknames here is a bad hack.
18524 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18525 # The linker will automatically build a .lib file if we build a DLL.
18526 old_archive_from_new_cmds_GCJ='true'
18527 # FIXME: Should let the user specify the lib program.
18528 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18529 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18530 enable_shared_with_static_runtimes_GCJ=yes
18533 darwin* | rhapsody*)
18536 archive_cmds_need_lc_GCJ=no
18537 hardcode_direct_GCJ=no
18538 hardcode_automatic_GCJ=yes
18539 hardcode_shlibpath_var_GCJ=unsupported
18540 if test "$lt_cv_ld_force_load" = "yes"; then
18541 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\"`'
18542 else
18543 whole_archive_flag_spec_GCJ=''
18545 link_all_deplibs_GCJ=yes
18546 allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
18547 case $cc_basename in
18548 ifort*) _lt_dar_can_shared=yes ;;
18549 *) _lt_dar_can_shared=$GCC ;;
18550 esac
18551 if test "$_lt_dar_can_shared" = "yes"; then
18552 output_verbose_link_cmd=func_echo_all
18553 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}"
18554 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18555 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}"
18556 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}"
18558 else
18559 ld_shlibs_GCJ=no
18564 dgux*)
18565 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18566 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18567 hardcode_shlibpath_var_GCJ=no
18570 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18571 # support. Future versions do this automatically, but an explicit c++rt0.o
18572 # does not break anything, and helps significantly (at the cost of a little
18573 # extra space).
18574 freebsd2.2*)
18575 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18576 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18577 hardcode_direct_GCJ=yes
18578 hardcode_shlibpath_var_GCJ=no
18581 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18582 freebsd2.*)
18583 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18584 hardcode_direct_GCJ=yes
18585 hardcode_minus_L_GCJ=yes
18586 hardcode_shlibpath_var_GCJ=no
18589 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18590 freebsd* | dragonfly*)
18591 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18592 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18593 hardcode_direct_GCJ=yes
18594 hardcode_shlibpath_var_GCJ=no
18597 hpux9*)
18598 if test "$GCC" = yes; then
18599 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'
18600 else
18601 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'
18603 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18604 hardcode_libdir_separator_GCJ=:
18605 hardcode_direct_GCJ=yes
18607 # hardcode_minus_L: Not really in the search PATH,
18608 # but as the default location of the library.
18609 hardcode_minus_L_GCJ=yes
18610 export_dynamic_flag_spec_GCJ='${wl}-E'
18613 hpux10*)
18614 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18615 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18616 else
18617 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18619 if test "$with_gnu_ld" = no; then
18620 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18621 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18622 hardcode_libdir_separator_GCJ=:
18623 hardcode_direct_GCJ=yes
18624 hardcode_direct_absolute_GCJ=yes
18625 export_dynamic_flag_spec_GCJ='${wl}-E'
18626 # hardcode_minus_L: Not really in the search PATH,
18627 # but as the default location of the library.
18628 hardcode_minus_L_GCJ=yes
18632 hpux11*)
18633 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18634 case $host_cpu in
18635 hppa*64*)
18636 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18638 ia64*)
18639 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18642 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18644 esac
18645 else
18646 case $host_cpu in
18647 hppa*64*)
18648 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18650 ia64*)
18651 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18654 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18656 esac
18658 if test "$with_gnu_ld" = no; then
18659 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18660 hardcode_libdir_separator_GCJ=:
18662 case $host_cpu in
18663 hppa*64*|ia64*)
18664 hardcode_direct_GCJ=no
18665 hardcode_shlibpath_var_GCJ=no
18668 hardcode_direct_GCJ=yes
18669 hardcode_direct_absolute_GCJ=yes
18670 export_dynamic_flag_spec_GCJ='${wl}-E'
18672 # hardcode_minus_L: Not really in the search PATH,
18673 # but as the default location of the library.
18674 hardcode_minus_L_GCJ=yes
18676 esac
18680 irix5* | irix6* | nonstopux*)
18681 if test "$GCC" = yes; then
18682 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'
18683 # Try to use the -exported_symbol ld option, if it does not
18684 # work, assume that -exports_file does not work either and
18685 # implicitly export all symbols.
18686 save_LDFLAGS="$LDFLAGS"
18687 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18688 if test x$gcc_no_link = xyes; then
18689 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18692 /* end confdefs.h. */
18693 int foo(void) {}
18694 _ACEOF
18695 if ac_fn_c_try_link "$LINENO"; then :
18696 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'
18699 rm -f core conftest.err conftest.$ac_objext \
18700 conftest$ac_exeext conftest.$ac_ext
18701 LDFLAGS="$save_LDFLAGS"
18702 else
18703 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'
18704 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'
18706 archive_cmds_need_lc_GCJ='no'
18707 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18708 hardcode_libdir_separator_GCJ=:
18709 inherit_rpath_GCJ=yes
18710 link_all_deplibs_GCJ=yes
18713 netbsd*)
18714 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18715 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18716 else
18717 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18719 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18720 hardcode_direct_GCJ=yes
18721 hardcode_shlibpath_var_GCJ=no
18724 newsos6)
18725 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18726 hardcode_direct_GCJ=yes
18727 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18728 hardcode_libdir_separator_GCJ=:
18729 hardcode_shlibpath_var_GCJ=no
18732 *nto* | *qnx*)
18735 openbsd*)
18736 if test -f /usr/libexec/ld.so; then
18737 hardcode_direct_GCJ=yes
18738 hardcode_shlibpath_var_GCJ=no
18739 hardcode_direct_absolute_GCJ=yes
18740 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18741 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18742 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18743 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18744 export_dynamic_flag_spec_GCJ='${wl}-E'
18745 else
18746 case $host_os in
18747 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18748 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18749 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18752 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18753 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18755 esac
18757 else
18758 ld_shlibs_GCJ=no
18762 os2*)
18763 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18764 hardcode_minus_L_GCJ=yes
18765 allow_undefined_flag_GCJ=unsupported
18766 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'
18767 old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18770 osf3*)
18771 if test "$GCC" = yes; then
18772 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18773 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'
18774 else
18775 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18776 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'
18778 archive_cmds_need_lc_GCJ='no'
18779 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18780 hardcode_libdir_separator_GCJ=:
18783 osf4* | osf5*) # as osf3* with the addition of -msym flag
18784 if test "$GCC" = yes; then
18785 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18786 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'
18787 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18788 else
18789 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18790 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'
18791 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~
18792 $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'
18794 # Both c and cxx compiler support -rpath directly
18795 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18797 archive_cmds_need_lc_GCJ='no'
18798 hardcode_libdir_separator_GCJ=:
18801 solaris*)
18802 no_undefined_flag_GCJ=' -z defs'
18803 if test "$GCC" = yes; then
18804 wlarc='${wl}'
18805 archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18806 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18807 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18808 else
18809 case `$CC -V 2>&1` in
18810 *"Compilers 5.0"*)
18811 wlarc=''
18812 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18813 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18814 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18817 wlarc='${wl}'
18818 archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18819 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18820 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18822 esac
18824 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18825 hardcode_shlibpath_var_GCJ=no
18826 case $host_os in
18827 solaris2.[0-5] | solaris2.[0-5].*) ;;
18829 # The compiler driver will combine and reorder linker options,
18830 # but understands `-z linker_flag'. GCC discards it without `$wl',
18831 # but is careful enough not to reorder.
18832 # Supported since Solaris 2.6 (maybe 2.5.1?)
18833 if test "$GCC" = yes; then
18834 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18835 else
18836 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18839 esac
18840 link_all_deplibs_GCJ=yes
18843 sunos4*)
18844 if test "x$host_vendor" = xsequent; then
18845 # Use $CC to link under sequent, because it throws in some extra .o
18846 # files that make .init and .fini sections work.
18847 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18848 else
18849 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18851 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18852 hardcode_direct_GCJ=yes
18853 hardcode_minus_L_GCJ=yes
18854 hardcode_shlibpath_var_GCJ=no
18857 sysv4)
18858 case $host_vendor in
18859 sni)
18860 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18861 hardcode_direct_GCJ=yes # is this really true???
18863 siemens)
18864 ## LD is ld it makes a PLAMLIB
18865 ## CC just makes a GrossModule.
18866 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18867 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18868 hardcode_direct_GCJ=no
18870 motorola)
18871 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18872 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18874 esac
18875 runpath_var='LD_RUN_PATH'
18876 hardcode_shlibpath_var_GCJ=no
18879 sysv4.3*)
18880 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18881 hardcode_shlibpath_var_GCJ=no
18882 export_dynamic_flag_spec_GCJ='-Bexport'
18885 sysv4*MP*)
18886 if test -d /usr/nec; then
18887 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18888 hardcode_shlibpath_var_GCJ=no
18889 runpath_var=LD_RUN_PATH
18890 hardcode_runpath_var=yes
18891 ld_shlibs_GCJ=yes
18895 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18896 no_undefined_flag_GCJ='${wl}-z,text'
18897 archive_cmds_need_lc_GCJ=no
18898 hardcode_shlibpath_var_GCJ=no
18899 runpath_var='LD_RUN_PATH'
18901 if test "$GCC" = yes; then
18902 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18903 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18904 else
18905 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18906 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18910 sysv5* | sco3.2v5* | sco5v6*)
18911 # Note: We can NOT use -z defs as we might desire, because we do not
18912 # link with -lc, and that would cause any symbols used from libc to
18913 # always be unresolved, which means just about no library would
18914 # ever link correctly. If we're not using GNU ld we use -z text
18915 # though, which does catch some bad symbols but isn't as heavy-handed
18916 # as -z defs.
18917 no_undefined_flag_GCJ='${wl}-z,text'
18918 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18919 archive_cmds_need_lc_GCJ=no
18920 hardcode_shlibpath_var_GCJ=no
18921 hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
18922 hardcode_libdir_separator_GCJ=':'
18923 link_all_deplibs_GCJ=yes
18924 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18925 runpath_var='LD_RUN_PATH'
18927 if test "$GCC" = yes; then
18928 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18929 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18930 else
18931 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18932 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18936 uts4*)
18937 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18938 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18939 hardcode_shlibpath_var_GCJ=no
18943 ld_shlibs_GCJ=no
18945 esac
18947 if test x$host_vendor = xsni; then
18948 case $host in
18949 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18950 export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
18952 esac
18956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
18957 $as_echo "$ld_shlibs_GCJ" >&6; }
18958 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18960 with_gnu_ld_GCJ=$with_gnu_ld
18968 # Do we need to explicitly link libc?
18970 case "x$archive_cmds_need_lc_GCJ" in
18971 x|xyes)
18972 # Assume -lc should be added
18973 archive_cmds_need_lc_GCJ=yes
18975 if test "$enable_shared" = yes && test "$GCC" = yes; then
18976 case $archive_cmds_GCJ in
18977 *'~'*)
18978 # FIXME: we may have to deal with multi-command sequences.
18980 '$CC '*)
18981 # Test whether the compiler implicitly links with -lc since on some
18982 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18983 # to ld, don't add -lc before -lgcc.
18984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18985 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18986 if test "${lt_cv_archive_cmds_need_lc_GCJ+set}" = set; then :
18987 $as_echo_n "(cached) " >&6
18988 else
18989 $RM conftest*
18990 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18993 (eval $ac_compile) 2>&5
18994 ac_status=$?
18995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18996 test $ac_status = 0; } 2>conftest.err; then
18997 soname=conftest
18998 lib=conftest
18999 libobjs=conftest.$ac_objext
19000 deplibs=
19001 wl=$lt_prog_compiler_wl_GCJ
19002 pic_flag=$lt_prog_compiler_pic_GCJ
19003 compiler_flags=-v
19004 linker_flags=-v
19005 verstring=
19006 output_objdir=.
19007 libname=conftest
19008 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19009 allow_undefined_flag_GCJ=
19010 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19011 (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19012 ac_status=$?
19013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19014 test $ac_status = 0; }
19015 then
19016 lt_cv_archive_cmds_need_lc_GCJ=no
19017 else
19018 lt_cv_archive_cmds_need_lc_GCJ=yes
19020 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19021 else
19022 cat conftest.err 1>&5
19024 $RM conftest*
19027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GCJ" >&5
19028 $as_echo "$lt_cv_archive_cmds_need_lc_GCJ" >&6; }
19029 archive_cmds_need_lc_GCJ=$lt_cv_archive_cmds_need_lc_GCJ
19031 esac
19034 esac
19099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19100 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19101 hardcode_action_GCJ=
19102 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
19103 test -n "$runpath_var_GCJ" ||
19104 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19106 # We can hardcode non-existent directories.
19107 if test "$hardcode_direct_GCJ" != no &&
19108 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19109 # have to relink, otherwise we might link with an installed library
19110 # when we should be linking with a yet-to-be-installed one
19111 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19112 test "$hardcode_minus_L_GCJ" != no; then
19113 # Linking always hardcodes the temporary library directory.
19114 hardcode_action_GCJ=relink
19115 else
19116 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19117 hardcode_action_GCJ=immediate
19119 else
19120 # We cannot hardcode anything, or else we can only hardcode existing
19121 # directories.
19122 hardcode_action_GCJ=unsupported
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
19125 $as_echo "$hardcode_action_GCJ" >&6; }
19127 if test "$hardcode_action_GCJ" = relink ||
19128 test "$inherit_rpath_GCJ" = yes; then
19129 # Fast installation is not supported
19130 enable_fast_install=no
19131 elif test "$shlibpath_overrides_runpath" = yes ||
19132 test "$enable_shared" = no; then
19133 # Fast installation is not necessary
19134 enable_fast_install=needless
19145 compiler_GCJ=${GCJ-gcj}
19146 ac_ext=c
19147 ac_cpp='$CPP $CPPFLAGS'
19148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19153 if test "x$CC" != xcc; then
19154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
19155 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
19156 else
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
19158 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
19160 set dummy $CC; ac_cc=`$as_echo "$2" |
19161 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19162 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
19163 $as_echo_n "(cached) " >&6
19164 else
19165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19166 /* end confdefs.h. */
19169 main ()
19173 return 0;
19175 _ACEOF
19176 # Make sure it works both with $CC and with simple cc.
19177 # We do the test twice because some compilers refuse to overwrite an
19178 # existing .o file with -o, though they will create one.
19179 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19180 rm -f conftest2.*
19181 if { { case "(($ac_try" in
19182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19183 *) ac_try_echo=$ac_try;;
19184 esac
19185 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19186 $as_echo "$ac_try_echo"; } >&5
19187 (eval "$ac_try") 2>&5
19188 ac_status=$?
19189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19190 test $ac_status = 0; } &&
19191 test -f conftest2.$ac_objext && { { case "(($ac_try" in
19192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19193 *) ac_try_echo=$ac_try;;
19194 esac
19195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19196 $as_echo "$ac_try_echo"; } >&5
19197 (eval "$ac_try") 2>&5
19198 ac_status=$?
19199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19200 test $ac_status = 0; };
19201 then
19202 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
19203 if test "x$CC" != xcc; then
19204 # Test first that cc exists at all.
19205 if { ac_try='cc -c conftest.$ac_ext >&5'
19206 { { 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; }; }; then
19216 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19217 rm -f conftest2.*
19218 if { { case "(($ac_try" in
19219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19220 *) ac_try_echo=$ac_try;;
19221 esac
19222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19223 $as_echo "$ac_try_echo"; } >&5
19224 (eval "$ac_try") 2>&5
19225 ac_status=$?
19226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19227 test $ac_status = 0; } &&
19228 test -f conftest2.$ac_objext && { { case "(($ac_try" in
19229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19230 *) ac_try_echo=$ac_try;;
19231 esac
19232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19233 $as_echo "$ac_try_echo"; } >&5
19234 (eval "$ac_try") 2>&5
19235 ac_status=$?
19236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19237 test $ac_status = 0; };
19238 then
19239 # cc works too.
19241 else
19242 # cc exists but doesn't like -o.
19243 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19247 else
19248 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19250 rm -f core conftest*
19253 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
19254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19255 $as_echo "yes" >&6; }
19256 else
19257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19258 $as_echo "no" >&6; }
19260 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
19264 # FIXME: we rely on the cache variable name because
19265 # there is no other way.
19266 set dummy $CC
19267 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19268 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
19269 if test "$am_t" != yes; then
19270 # Losing compiler, so override with the script.
19271 # FIXME: It is wrong to rewrite CC.
19272 # But if we don't then we get into trouble of one sort or another.
19273 # A longer-term fix would be to have automake use am__CC in this case,
19274 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19275 CC="$am_aux_dir/compile $CC"
19282 subdirs="$subdirs classpath libltdl"
19285 # The -no-testsuite modules omit the test subdir.
19286 if test -d $srcdir/testsuite; then
19287 TESTSUBDIR_TRUE=
19288 TESTSUBDIR_FALSE='#'
19289 else
19290 TESTSUBDIR_TRUE='#'
19291 TESTSUBDIR_FALSE=
19295 # Should the runtime set system properties by examining the
19296 # environment variable GCJ_PROPERTIES?
19297 # Check whether --enable-getenv-properties was given.
19298 if test "${enable_getenv_properties+set}" = set; then :
19299 enableval=$enable_getenv_properties;
19303 # Whether GCJ_PROPERTIES is used depends on the target.
19304 if test -z "$enable_getenv_properties"; then
19305 enable_getenv_properties=${enable_getenv_properties_default-yes}
19307 if test "$enable_getenv_properties" = no; then
19309 $as_echo "#define DISABLE_GETENV_PROPERTIES 1" >>confdefs.h
19313 # Whether we should use arguments to main()
19314 if test -z "$enable_main_args"; then
19315 enable_main_args=${enable_main_args_default-yes}
19317 if test "$enable_main_args" = no; then
19319 $as_echo "#define DISABLE_MAIN_ARGS 1" >>confdefs.h
19324 # Should we use hashtable-based synchronization?
19325 # Currently works only for Linux X86/ia64
19326 # Typically faster and more space-efficient
19327 # Check whether --enable-hash-synchronization was given.
19328 if test "${enable_hash_synchronization+set}" = set; then :
19329 enableval=$enable_hash_synchronization;
19333 if test -z "$enable_hash_synchronization"; then
19334 enable_hash_synchronization=$enable_hash_synchronization_default
19338 install_ecj_jar=no
19339 ECJ_BUILD_JAR=
19340 ECJ_JAR=
19342 # Check whether --with-ecj-jar was given.
19343 if test "${with_ecj_jar+set}" = set; then :
19344 withval=$with_ecj_jar; ECJ_JAR=$withval
19345 else
19346 if test -f $multi_basedir/ecj.jar; then
19347 ECJ_BUILD_JAR=$multi_basedir/ecj.jar
19348 ECJ_JAR='$(jardir)/ecj.jar'
19349 install_ecj_jar=yes
19355 if test "$ECJ_JAR" != ""; then
19356 BUILD_ECJ1_TRUE=
19357 BUILD_ECJ1_FALSE='#'
19358 else
19359 BUILD_ECJ1_TRUE='#'
19360 BUILD_ECJ1_FALSE=
19363 if test $install_ecj_jar = yes; then
19364 INSTALL_ECJ_JAR_TRUE=
19365 INSTALL_ECJ_JAR_FALSE='#'
19366 else
19367 INSTALL_ECJ_JAR_TRUE='#'
19368 INSTALL_ECJ_JAR_FALSE=
19373 # Check whether --with-java-home was given.
19374 if test "${with_java_home+set}" = set; then :
19375 withval=$with_java_home; JAVA_HOME="${withval}"
19376 else
19377 JAVA_HOME=""
19380 if test ! -z "$JAVA_HOME"; then
19381 JAVA_HOME_SET_TRUE=
19382 JAVA_HOME_SET_FALSE='#'
19383 else
19384 JAVA_HOME_SET_TRUE='#'
19385 JAVA_HOME_SET_FALSE=
19390 suppress_libgcj_bc=no
19391 # Check whether --enable-libgcj-bc was given.
19392 if test "${enable_libgcj_bc+set}" = set; then :
19393 enableval=$enable_libgcj_bc; if test "$enable_libgcj_bc" = "no"; then
19394 suppress_libgcj_bc=yes
19398 if test "$suppress_libgcj_bc" = "yes"; then
19399 SUPPRESS_LIBGCJ_BC_TRUE=
19400 SUPPRESS_LIBGCJ_BC_FALSE='#'
19401 else
19402 SUPPRESS_LIBGCJ_BC_TRUE='#'
19403 SUPPRESS_LIBGCJ_BC_FALSE=
19407 build_libgcj_reduced_reflection=no
19408 # Check whether --enable-reduced-reflection was given.
19409 if test "${enable_reduced_reflection+set}" = set; then :
19410 enableval=$enable_reduced_reflection; if test "$enable_reduced_reflection" = "yes"; then
19411 build_libgcj_reduced_reflection=yes
19415 if test "$build_libgcj_reduced_reflection" = "yes"; then
19416 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE=
19417 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE='#'
19418 else
19419 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE='#'
19420 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE=
19424 # What is the native OS API for MinGW?
19426 # Check whether --with-win32-nlsapi was given.
19427 if test "${with_win32_nlsapi+set}" = set; then :
19428 withval=$with_win32_nlsapi; case "${withval}" in
19429 ansi) with_win32_nlsapi=ansi ;;
19430 unicows) with_win32_nlsapi=unicows ;;
19431 unicode) with_win32_nlsapi=unicode ;;
19432 *) as_fn_error "Bad value ${withval} for --with-win32-nlsapi." "$LINENO" 5 ;;
19433 esac
19434 else
19435 with_win32_nlsapi=ansi
19439 case "${with_win32_nlsapi}" in
19440 unicows | unicode)
19442 $as_echo "#define MINGW_LIBGCJ_UNICODE 1" >>confdefs.h
19445 esac
19447 # configure.host sets slow_pthread_self if the synchronization code should
19448 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
19449 if test "${slow_pthread_self}" = "yes"; then
19451 $as_echo "#define SLOW_PTHREAD_SELF 1" >>confdefs.h
19455 # Check for gc debugging. This option is handled both here and in the GC.
19456 # Check whether --enable-gc-debug was given.
19457 if test "${enable_gc_debug+set}" = set; then :
19458 enableval=$enable_gc_debug; if test "$enable_gc_debug" = "yes"; then
19460 $as_echo "#define LIBGCJ_GC_DEBUG 1" >>confdefs.h
19466 # See if the user has the interpreter included.
19467 # Check whether --enable-interpreter was given.
19468 if test "${enable_interpreter+set}" = set; then :
19469 enableval=$enable_interpreter; if test "$enable_interpreter" = yes; then
19470 # This can also be set in configure.host.
19471 libgcj_interpreter=yes
19472 elif test "$enable_interpreter" = no; then
19473 libgcj_interpreter=no
19478 if test "$libgcj_interpreter" = yes; then
19480 $as_echo "#define INTERPRETER 1" >>confdefs.h
19483 INTERPRETER="$libgcj_interpreter"
19485 if test "$libgcj_interpreter" = yes; then
19486 INTERPRETER_TRUE=
19487 INTERPRETER_FALSE='#'
19488 else
19489 INTERPRETER_TRUE='#'
19490 INTERPRETER_FALSE=
19494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception model to use" >&5
19495 $as_echo_n "checking for exception model to use... " >&6; }
19496 ac_ext=cpp
19497 ac_cpp='$CXXCPP $CPPFLAGS'
19498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19502 # Check whether --enable-sjlj-exceptions was given.
19503 if test "${enable_sjlj_exceptions+set}" = set; then :
19504 enableval=$enable_sjlj_exceptions; :
19505 else
19506 cat > conftest.$ac_ext << EOF
19507 #line 19492 "configure"
19508 struct S { ~S(); };
19509 void bar();
19510 void foo()
19512 S s;
19513 bar();
19516 old_CXXFLAGS="$CXXFLAGS"
19517 CXXFLAGS=-S
19518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19519 (eval $ac_compile) 2>&5
19520 ac_status=$?
19521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19522 test $ac_status = 0; }; then
19523 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
19524 enable_sjlj_exceptions=yes
19525 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
19526 enable_sjlj_exceptions=no
19527 elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then
19528 # ARM EH ABI.
19529 enable_sjlj_exceptions=no
19532 CXXFLAGS="$old_CXXFLAGS"
19533 rm -f conftest*
19536 if test x$enable_sjlj_exceptions = xyes; then
19538 $as_echo "#define SJLJ_EXCEPTIONS 1" >>confdefs.h
19540 ac_exception_model_name=sjlj
19541 elif test x$enable_sjlj_exceptions = xno; then
19542 ac_exception_model_name="call frame"
19543 else
19544 as_fn_error "unable to detect exception model" "$LINENO" 5
19546 ac_ext=c
19547 ac_cpp='$CPP $CPPFLAGS'
19548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_exception_model_name" >&5
19553 $as_echo "$ac_exception_model_name" >&6; }
19555 # If we are non using SJLJ exceptions, and this host does not have support
19556 # for unwinding from a signal handler, enable checked dereferences and divides.
19557 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
19558 CHECKREFSPEC=-fcheck-references
19559 DIVIDESPEC=-fuse-divide-subroutine
19560 EXCEPTIONSPEC=
19563 # See if the user wants to disable java.net. This is the mildly
19564 # ugly way that we admit that target-side configuration sucks.
19565 # Check whether --enable-java-net was given.
19566 if test "${enable_java_net+set}" = set; then :
19567 enableval=$enable_java_net;
19571 # Whether java.net is built by default can depend on the target.
19572 if test -z "$enable_java_net"; then
19573 enable_java_net=${enable_java_net_default-yes}
19575 if test "$enable_java_net" = no; then
19577 $as_echo "#define DISABLE_JAVA_NET 1" >>confdefs.h
19581 # See if the user wants to configure without libffi. Some
19582 # architectures don't support it, and default values are set in
19583 # configure.host.
19585 # Check whether --with-libffi was given.
19586 if test "${with_libffi+set}" = set; then :
19587 withval=$with_libffi; :
19588 else
19589 with_libffi=${with_libffi_default-yes}
19593 LIBFFI=
19594 LIBFFIINCS=
19595 if test "$with_libffi" != no; then
19597 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
19599 LIBFFI=../libffi/libffi_convenience.la
19600 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
19605 # See if the user wants to disable JVMPI support.
19606 # Check whether --enable-jvmpi was given.
19607 if test "${enable_jvmpi+set}" = set; then :
19608 enableval=$enable_jvmpi;
19612 if test "$enable_jvmpi" != no; then
19614 $as_echo "#define ENABLE_JVMPI 1" >>confdefs.h
19618 # If the target is an eCos system, use the appropriate eCos
19619 # I/O routines.
19620 # FIXME: this should not be a local option but a global target
19621 # system; at present there is no eCos target.
19622 TARGET_ECOS=${PROCESS-"no"}
19624 # Check whether --with-ecos was given.
19625 if test "${with_ecos+set}" = set; then :
19626 withval=$with_ecos; TARGET_ECOS="$with_ecos"
19631 case "$TARGET_ECOS" in
19632 no) case "$host" in
19633 *mingw*)
19634 PLATFORM=Win32
19635 PLATFORMNET=Win32
19636 PLATFORMH=win32.h
19638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'ld' is at least 2.13" >&5
19639 $as_echo_n "checking whether 'ld' is at least 2.13... " >&6; }
19640 LD_PROG=`$CC --print-prog-name=ld`
19641 LD_VERSION=`$LD_PROG --version`
19642 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
19643 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
19644 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
19645 LD_OK="ok"
19646 else
19647 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
19648 LD_OK="ok"
19651 if test "x$LD_OK" != x; then
19652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19653 $as_echo "yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19654 else
19655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19656 $as_echo "no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
19658 $as_echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
19660 $as_echo "#define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1" >>confdefs.h
19665 PLATFORM=Posix
19666 PLATFORMNET=Posix
19667 PLATFORMH=posix.h
19669 esac
19672 PLATFORM=Ecos
19673 PLATFORMNET=NoNet
19675 $as_echo "#define ECOS 1" >>confdefs.h
19677 PLATFORMH=posix.h
19679 esac
19681 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
19684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19685 /* end confdefs.h. */
19686 #include <stdint.h>
19688 _ACEOF
19689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19690 $EGREP "uint32_t" >/dev/null 2>&1; then :
19692 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19695 rm -f conftest*
19697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19698 /* end confdefs.h. */
19699 #include <inttypes.h>
19701 _ACEOF
19702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19703 $EGREP "uint32_t" >/dev/null 2>&1; then :
19705 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19708 rm -f conftest*
19710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19711 /* end confdefs.h. */
19712 #include <sys/types.h>
19714 _ACEOF
19715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19716 $EGREP "u_int32_t" >/dev/null 2>&1; then :
19718 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19721 rm -f conftest*
19723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19724 /* end confdefs.h. */
19725 #include <sys/config.h>
19727 _ACEOF
19728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19729 $EGREP "u_int32_t" >/dev/null 2>&1; then :
19731 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19734 rm -f conftest*
19737 if test "$PLATFORM" = Win32; then
19738 USING_WIN32_PLATFORM_TRUE=
19739 USING_WIN32_PLATFORM_FALSE='#'
19740 else
19741 USING_WIN32_PLATFORM_TRUE='#'
19742 USING_WIN32_PLATFORM_FALSE=
19745 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
19746 USING_POSIX_PLATFORM_TRUE=
19747 USING_POSIX_PLATFORM_FALSE='#'
19748 else
19749 USING_POSIX_PLATFORM_TRUE='#'
19750 USING_POSIX_PLATFORM_FALSE=
19754 case "$host" in
19755 *-darwin*) DARWIN_CRT=true ;;
19756 *) DARWIN_CRT=false ;;
19757 esac
19758 if $DARWIN_CRT; then
19759 USING_DARWIN_CRT_TRUE=
19760 USING_DARWIN_CRT_FALSE='#'
19761 else
19762 USING_DARWIN_CRT_TRUE='#'
19763 USING_DARWIN_CRT_FALSE=
19767 # This may not be defined in a non-ANS conformant embedded system.
19768 # FIXME: Should these case a runtime exception in that case?
19769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19770 /* end confdefs.h. */
19771 #include <time.h>
19773 _ACEOF
19774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19775 $EGREP "localtime" >/dev/null 2>&1; then :
19777 $as_echo "#define HAVE_LOCALTIME 1" >>confdefs.h
19780 rm -f conftest*
19783 # Create the subdirectory for natFile.cc, or the attempt
19784 # to create the link will fail.
19785 test -d java || mkdir java
19786 test -d java/io || mkdir java/io
19787 test -d gnu || mkdir gnu
19788 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
19791 # Likewise for natConcreteProcess.cc.
19792 test -d java/lang || mkdir java/lang
19793 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
19796 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
19797 test -d java/net || mkdir java/net
19798 ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
19800 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
19803 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
19804 test -d gnu/java || mkdir gnu/java
19805 test -d gnu/java/net || mkdir gnu/java/net
19806 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
19808 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
19811 # Likewise for natVMPipe.cc and natVMSelector.cc.
19812 test -d gnu/java/nio || mkdir gnu/java/nio
19813 ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
19815 ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
19818 # Likewise for natFileChannelImpl.cc
19819 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
19820 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
19823 # Likewise for natVMSecureRandom.cc
19824 test -d gnu/java/security || mkdir gnu/java/security
19825 test -d gnu/java/security/jce || mkdir gnu/java/security/jce
19826 test -d gnu/java/security/jce/prng || mkdir gnu/java/security/jce/prng
19827 ac_config_links="$ac_config_links gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc"
19830 case "${host}" in
19831 *mingw*)
19832 SYSTEMSPEC="-lgdi32 -lws2_32"
19833 if test "${with_win32_nlsapi}" = "unicows"; then
19834 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
19837 *-*-darwin[912]*)
19838 SYSTEMSPEC="%{!Zdynamiclib:%{!Zbundle:-allow_stack_execute}}"
19841 SYSTEMSPEC=
19843 esac
19847 # Check whether --with-system-zlib was given.
19848 if test "${with_system_zlib+set}" = set; then :
19849 withval=$with_system_zlib;
19852 ZLIBSPEC=
19854 ZLIBTESTSPEC=
19857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19858 $as_echo_n "checking for X... " >&6; }
19861 # Check whether --with-x was given.
19862 if test "${with_x+set}" = set; then :
19863 withval=$with_x;
19866 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19867 if test "x$with_x" = xno; then
19868 # The user explicitly disabled X.
19869 have_x=disabled
19870 else
19871 case $x_includes,$x_libraries in #(
19872 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
19873 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
19874 $as_echo_n "(cached) " >&6
19875 else
19876 # One or both of the vars are not set, and there is no cached value.
19877 ac_x_includes=no ac_x_libraries=no
19878 rm -f -r conftest.dir
19879 if mkdir conftest.dir; then
19880 cd conftest.dir
19881 cat >Imakefile <<'_ACEOF'
19882 incroot:
19883 @echo incroot='${INCROOT}'
19884 usrlibdir:
19885 @echo usrlibdir='${USRLIBDIR}'
19886 libdir:
19887 @echo libdir='${LIBDIR}'
19888 _ACEOF
19889 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19890 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19891 for ac_var in incroot usrlibdir libdir; do
19892 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19893 done
19894 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19895 for ac_extension in a so sl dylib la dll; do
19896 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19897 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19898 ac_im_usrlibdir=$ac_im_libdir; break
19900 done
19901 # Screen out bogus values from the imake configuration. They are
19902 # bogus both because they are the default anyway, and because
19903 # using them would break gcc on systems where it needs fixed includes.
19904 case $ac_im_incroot in
19905 /usr/include) ac_x_includes= ;;
19906 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19907 esac
19908 case $ac_im_usrlibdir in
19909 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19910 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19911 esac
19913 cd ..
19914 rm -f -r conftest.dir
19917 # Standard set of common directories for X headers.
19918 # Check X11 before X11Rn because it is often a symlink to the current release.
19919 ac_x_header_dirs='
19920 /usr/X11/include
19921 /usr/X11R7/include
19922 /usr/X11R6/include
19923 /usr/X11R5/include
19924 /usr/X11R4/include
19926 /usr/include/X11
19927 /usr/include/X11R7
19928 /usr/include/X11R6
19929 /usr/include/X11R5
19930 /usr/include/X11R4
19932 /usr/local/X11/include
19933 /usr/local/X11R7/include
19934 /usr/local/X11R6/include
19935 /usr/local/X11R5/include
19936 /usr/local/X11R4/include
19938 /usr/local/include/X11
19939 /usr/local/include/X11R7
19940 /usr/local/include/X11R6
19941 /usr/local/include/X11R5
19942 /usr/local/include/X11R4
19944 /usr/X386/include
19945 /usr/x386/include
19946 /usr/XFree86/include/X11
19948 /usr/include
19949 /usr/local/include
19950 /usr/unsupported/include
19951 /usr/athena/include
19952 /usr/local/x11r5/include
19953 /usr/lpp/Xamples/include
19955 /usr/openwin/include
19956 /usr/openwin/share/include'
19958 if test "$ac_x_includes" = no; then
19959 # Guess where to find include files, by looking for Xlib.h.
19960 # First, try using that file with no special directory specified.
19961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19962 /* end confdefs.h. */
19963 #include <X11/Xlib.h>
19964 _ACEOF
19965 if ac_fn_c_try_cpp "$LINENO"; then :
19966 # We can compile using X headers with no special include directory.
19967 ac_x_includes=
19968 else
19969 for ac_dir in $ac_x_header_dirs; do
19970 if test -r "$ac_dir/X11/Xlib.h"; then
19971 ac_x_includes=$ac_dir
19972 break
19974 done
19976 rm -f conftest.err conftest.$ac_ext
19977 fi # $ac_x_includes = no
19979 if test "$ac_x_libraries" = no; then
19980 # Check for the libraries.
19981 # See if we find them without any special options.
19982 # Don't add to $LIBS permanently.
19983 ac_save_LIBS=$LIBS
19984 LIBS="-lX11 $LIBS"
19985 if test x$gcc_no_link = xyes; then
19986 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19989 /* end confdefs.h. */
19990 #include <X11/Xlib.h>
19992 main ()
19994 XrmInitialize ()
19996 return 0;
19998 _ACEOF
19999 if ac_fn_c_try_link "$LINENO"; then :
20000 LIBS=$ac_save_LIBS
20001 # We can link X programs with no special library path.
20002 ac_x_libraries=
20003 else
20004 LIBS=$ac_save_LIBS
20005 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20007 # Don't even attempt the hair of trying to link an X program!
20008 for ac_extension in a so sl dylib la dll; do
20009 if test -r "$ac_dir/libX11.$ac_extension"; then
20010 ac_x_libraries=$ac_dir
20011 break 2
20013 done
20014 done
20016 rm -f core conftest.err conftest.$ac_objext \
20017 conftest$ac_exeext conftest.$ac_ext
20018 fi # $ac_x_libraries = no
20020 case $ac_x_includes,$ac_x_libraries in #(
20021 no,* | *,no | *\'*)
20022 # Didn't find X, or a directory has "'" in its name.
20023 ac_cv_have_x="have_x=no";; #(
20025 # Record where we found X for the cache.
20026 ac_cv_have_x="have_x=yes\
20027 ac_x_includes='$ac_x_includes'\
20028 ac_x_libraries='$ac_x_libraries'"
20029 esac
20031 ;; #(
20032 *) have_x=yes;;
20033 esac
20034 eval "$ac_cv_have_x"
20035 fi # $with_x != no
20037 if test "$have_x" != yes; then
20038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
20039 $as_echo "$have_x" >&6; }
20040 no_x=yes
20041 else
20042 # If each of the values was on the command line, it overrides each guess.
20043 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20044 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20045 # Update the cache value to reflect the command line values.
20046 ac_cv_have_x="have_x=yes\
20047 ac_x_includes='$x_includes'\
20048 ac_x_libraries='$x_libraries'"
20049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
20050 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
20053 if test "$no_x" = yes; then
20054 # Not all programs may use this symbol, but it does not hurt to define it.
20056 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
20058 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
20059 else
20060 if test -n "$x_includes"; then
20061 X_CFLAGS="$X_CFLAGS -I$x_includes"
20064 # It would also be nice to do this for all -L options, not just this one.
20065 if test -n "$x_libraries"; then
20066 X_LIBS="$X_LIBS -L$x_libraries"
20067 # For Solaris; some versions of Sun CC require a space after -R and
20068 # others require no space. Words are not sufficient . . . .
20069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
20070 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
20071 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20072 ac_xsave_c_werror_flag=$ac_c_werror_flag
20073 ac_c_werror_flag=yes
20074 if test x$gcc_no_link = xyes; then
20075 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20078 /* end confdefs.h. */
20081 main ()
20085 return 0;
20087 _ACEOF
20088 if ac_fn_c_try_link "$LINENO"; then :
20089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20090 $as_echo "no" >&6; }
20091 X_LIBS="$X_LIBS -R$x_libraries"
20092 else
20093 LIBS="$ac_xsave_LIBS -R $x_libraries"
20094 if test x$gcc_no_link = xyes; then
20095 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20098 /* end confdefs.h. */
20101 main ()
20105 return 0;
20107 _ACEOF
20108 if ac_fn_c_try_link "$LINENO"; then :
20109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20110 $as_echo "yes" >&6; }
20111 X_LIBS="$X_LIBS -R $x_libraries"
20112 else
20113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
20114 $as_echo "neither works" >&6; }
20116 rm -f core conftest.err conftest.$ac_objext \
20117 conftest$ac_exeext conftest.$ac_ext
20119 rm -f core conftest.err conftest.$ac_objext \
20120 conftest$ac_exeext conftest.$ac_ext
20121 ac_c_werror_flag=$ac_xsave_c_werror_flag
20122 LIBS=$ac_xsave_LIBS
20125 # Check for system-dependent libraries X programs must link with.
20126 # Do this before checking for the system-independent R6 libraries
20127 # (-lICE), since we may need -lsocket or whatever for X linking.
20129 if test "$ISC" = yes; then
20130 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20131 else
20132 # Martyn Johnson says this is needed for Ultrix, if the X
20133 # libraries were built with DECnet support. And Karl Berry says
20134 # the Alpha needs dnet_stub (dnet does not exist).
20135 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20136 if test x$gcc_no_link = xyes; then
20137 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20140 /* end confdefs.h. */
20142 /* Override any GCC internal prototype to avoid an error.
20143 Use char because int might match the return type of a GCC
20144 builtin and then its argument prototype would still apply. */
20145 #ifdef __cplusplus
20146 extern "C"
20147 #endif
20148 char XOpenDisplay ();
20150 main ()
20152 return XOpenDisplay ();
20154 return 0;
20156 _ACEOF
20157 if ac_fn_c_try_link "$LINENO"; then :
20159 else
20160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
20161 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
20162 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
20163 $as_echo_n "(cached) " >&6
20164 else
20165 ac_check_lib_save_LIBS=$LIBS
20166 LIBS="-ldnet $LIBS"
20167 if test x$gcc_no_link = xyes; then
20168 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20171 /* end confdefs.h. */
20173 /* Override any GCC internal prototype to avoid an error.
20174 Use char because int might match the return type of a GCC
20175 builtin and then its argument prototype would still apply. */
20176 #ifdef __cplusplus
20177 extern "C"
20178 #endif
20179 char dnet_ntoa ();
20181 main ()
20183 return dnet_ntoa ();
20185 return 0;
20187 _ACEOF
20188 if ac_fn_c_try_link "$LINENO"; then :
20189 ac_cv_lib_dnet_dnet_ntoa=yes
20190 else
20191 ac_cv_lib_dnet_dnet_ntoa=no
20193 rm -f core conftest.err conftest.$ac_objext \
20194 conftest$ac_exeext conftest.$ac_ext
20195 LIBS=$ac_check_lib_save_LIBS
20197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20198 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20199 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
20200 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20203 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
20205 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
20206 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
20207 $as_echo_n "(cached) " >&6
20208 else
20209 ac_check_lib_save_LIBS=$LIBS
20210 LIBS="-ldnet_stub $LIBS"
20211 if test x$gcc_no_link = xyes; then
20212 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20215 /* end confdefs.h. */
20217 /* Override any GCC internal prototype to avoid an error.
20218 Use char because int might match the return type of a GCC
20219 builtin and then its argument prototype would still apply. */
20220 #ifdef __cplusplus
20221 extern "C"
20222 #endif
20223 char dnet_ntoa ();
20225 main ()
20227 return dnet_ntoa ();
20229 return 0;
20231 _ACEOF
20232 if ac_fn_c_try_link "$LINENO"; then :
20233 ac_cv_lib_dnet_stub_dnet_ntoa=yes
20234 else
20235 ac_cv_lib_dnet_stub_dnet_ntoa=no
20237 rm -f core conftest.err conftest.$ac_objext \
20238 conftest$ac_exeext conftest.$ac_ext
20239 LIBS=$ac_check_lib_save_LIBS
20241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20242 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20243 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
20244 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20249 rm -f core conftest.err conftest.$ac_objext \
20250 conftest$ac_exeext conftest.$ac_ext
20251 LIBS="$ac_xsave_LIBS"
20253 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20254 # to get the SysV transport functions.
20255 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20256 # needs -lnsl.
20257 # The nsl library prevents programs from opening the X display
20258 # on Irix 5.2, according to T.E. Dickey.
20259 # The functions gethostbyname, getservbyname, and inet_addr are
20260 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20261 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
20262 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
20266 if test $ac_cv_func_gethostbyname = no; then
20267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20268 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20269 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
20270 $as_echo_n "(cached) " >&6
20271 else
20272 ac_check_lib_save_LIBS=$LIBS
20273 LIBS="-lnsl $LIBS"
20274 if test x$gcc_no_link = xyes; then
20275 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20278 /* end confdefs.h. */
20280 /* Override any GCC internal prototype to avoid an error.
20281 Use char because int might match the return type of a GCC
20282 builtin and then its argument prototype would still apply. */
20283 #ifdef __cplusplus
20284 extern "C"
20285 #endif
20286 char gethostbyname ();
20288 main ()
20290 return gethostbyname ();
20292 return 0;
20294 _ACEOF
20295 if ac_fn_c_try_link "$LINENO"; then :
20296 ac_cv_lib_nsl_gethostbyname=yes
20297 else
20298 ac_cv_lib_nsl_gethostbyname=no
20300 rm -f core conftest.err conftest.$ac_objext \
20301 conftest$ac_exeext conftest.$ac_ext
20302 LIBS=$ac_check_lib_save_LIBS
20304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20305 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20306 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
20307 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20310 if test $ac_cv_lib_nsl_gethostbyname = no; then
20311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20312 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20313 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
20314 $as_echo_n "(cached) " >&6
20315 else
20316 ac_check_lib_save_LIBS=$LIBS
20317 LIBS="-lbsd $LIBS"
20318 if test x$gcc_no_link = xyes; then
20319 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20322 /* end confdefs.h. */
20324 /* Override any GCC internal prototype to avoid an error.
20325 Use char because int might match the return type of a GCC
20326 builtin and then its argument prototype would still apply. */
20327 #ifdef __cplusplus
20328 extern "C"
20329 #endif
20330 char gethostbyname ();
20332 main ()
20334 return gethostbyname ();
20336 return 0;
20338 _ACEOF
20339 if ac_fn_c_try_link "$LINENO"; then :
20340 ac_cv_lib_bsd_gethostbyname=yes
20341 else
20342 ac_cv_lib_bsd_gethostbyname=no
20344 rm -f core conftest.err conftest.$ac_objext \
20345 conftest$ac_exeext conftest.$ac_ext
20346 LIBS=$ac_check_lib_save_LIBS
20348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
20349 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
20350 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
20351 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20357 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20358 # socket/setsockopt and other routines are undefined under SCO ODT
20359 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20360 # on later versions), says Simon Leinen: it contains gethostby*
20361 # variants that don't use the name server (or something). -lsocket
20362 # must be given before -lnsl if both are needed. We assume that
20363 # if connect needs -lnsl, so does gethostbyname.
20364 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
20365 if test "x$ac_cv_func_connect" = x""yes; then :
20369 if test $ac_cv_func_connect = no; then
20370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
20371 $as_echo_n "checking for connect in -lsocket... " >&6; }
20372 if test "${ac_cv_lib_socket_connect+set}" = set; then :
20373 $as_echo_n "(cached) " >&6
20374 else
20375 ac_check_lib_save_LIBS=$LIBS
20376 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20377 if test x$gcc_no_link = xyes; then
20378 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20381 /* end confdefs.h. */
20383 /* Override any GCC internal prototype to avoid an error.
20384 Use char because int might match the return type of a GCC
20385 builtin and then its argument prototype would still apply. */
20386 #ifdef __cplusplus
20387 extern "C"
20388 #endif
20389 char connect ();
20391 main ()
20393 return connect ();
20395 return 0;
20397 _ACEOF
20398 if ac_fn_c_try_link "$LINENO"; then :
20399 ac_cv_lib_socket_connect=yes
20400 else
20401 ac_cv_lib_socket_connect=no
20403 rm -f core conftest.err conftest.$ac_objext \
20404 conftest$ac_exeext conftest.$ac_ext
20405 LIBS=$ac_check_lib_save_LIBS
20407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
20408 $as_echo "$ac_cv_lib_socket_connect" >&6; }
20409 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
20410 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20415 # Guillermo Gomez says -lposix is necessary on A/UX.
20416 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
20417 if test "x$ac_cv_func_remove" = x""yes; then :
20421 if test $ac_cv_func_remove = no; then
20422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
20423 $as_echo_n "checking for remove in -lposix... " >&6; }
20424 if test "${ac_cv_lib_posix_remove+set}" = set; then :
20425 $as_echo_n "(cached) " >&6
20426 else
20427 ac_check_lib_save_LIBS=$LIBS
20428 LIBS="-lposix $LIBS"
20429 if test x$gcc_no_link = xyes; then
20430 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20433 /* end confdefs.h. */
20435 /* Override any GCC internal prototype to avoid an error.
20436 Use char because int might match the return type of a GCC
20437 builtin and then its argument prototype would still apply. */
20438 #ifdef __cplusplus
20439 extern "C"
20440 #endif
20441 char remove ();
20443 main ()
20445 return remove ();
20447 return 0;
20449 _ACEOF
20450 if ac_fn_c_try_link "$LINENO"; then :
20451 ac_cv_lib_posix_remove=yes
20452 else
20453 ac_cv_lib_posix_remove=no
20455 rm -f core conftest.err conftest.$ac_objext \
20456 conftest$ac_exeext conftest.$ac_ext
20457 LIBS=$ac_check_lib_save_LIBS
20459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
20460 $as_echo "$ac_cv_lib_posix_remove" >&6; }
20461 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
20462 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20467 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20468 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20469 if test "x$ac_cv_func_shmat" = x""yes; then :
20473 if test $ac_cv_func_shmat = no; then
20474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
20475 $as_echo_n "checking for shmat in -lipc... " >&6; }
20476 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
20477 $as_echo_n "(cached) " >&6
20478 else
20479 ac_check_lib_save_LIBS=$LIBS
20480 LIBS="-lipc $LIBS"
20481 if test x$gcc_no_link = xyes; then
20482 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20485 /* end confdefs.h. */
20487 /* Override any GCC internal prototype to avoid an error.
20488 Use char because int might match the return type of a GCC
20489 builtin and then its argument prototype would still apply. */
20490 #ifdef __cplusplus
20491 extern "C"
20492 #endif
20493 char shmat ();
20495 main ()
20497 return shmat ();
20499 return 0;
20501 _ACEOF
20502 if ac_fn_c_try_link "$LINENO"; then :
20503 ac_cv_lib_ipc_shmat=yes
20504 else
20505 ac_cv_lib_ipc_shmat=no
20507 rm -f core conftest.err conftest.$ac_objext \
20508 conftest$ac_exeext conftest.$ac_ext
20509 LIBS=$ac_check_lib_save_LIBS
20511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
20512 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20513 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
20514 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20520 # Check for libraries that X11R6 Xt/Xaw programs need.
20521 ac_save_LDFLAGS=$LDFLAGS
20522 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20523 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20524 # check for ICE first), but we must link in the order -lSM -lICE or
20525 # we get undefined symbols. So assume we have SM if we have ICE.
20526 # These have to be linked with before -lX11, unlike the other
20527 # libraries we check for below, so use a different variable.
20528 # John Interrante, Karl Berry
20529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
20530 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20531 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
20532 $as_echo_n "(cached) " >&6
20533 else
20534 ac_check_lib_save_LIBS=$LIBS
20535 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20536 if test x$gcc_no_link = xyes; then
20537 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20540 /* end confdefs.h. */
20542 /* Override any GCC internal prototype to avoid an error.
20543 Use char because int might match the return type of a GCC
20544 builtin and then its argument prototype would still apply. */
20545 #ifdef __cplusplus
20546 extern "C"
20547 #endif
20548 char IceConnectionNumber ();
20550 main ()
20552 return IceConnectionNumber ();
20554 return 0;
20556 _ACEOF
20557 if ac_fn_c_try_link "$LINENO"; then :
20558 ac_cv_lib_ICE_IceConnectionNumber=yes
20559 else
20560 ac_cv_lib_ICE_IceConnectionNumber=no
20562 rm -f core conftest.err conftest.$ac_objext \
20563 conftest$ac_exeext conftest.$ac_ext
20564 LIBS=$ac_check_lib_save_LIBS
20566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20567 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20568 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
20569 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20572 LDFLAGS=$ac_save_LDFLAGS
20577 # FIXME: this should be _libs on some hosts.
20578 libsubdir=.libs
20580 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20582 LIBSTDCXXSPEC=
20583 # extra LD Flags which are required for targets
20584 case "${host}" in
20585 *-*-darwin[0-7].*)
20586 # For now we have to disable it on darwin[8-9] because it slows down
20587 # the linking phase. A possible bug in ld?
20588 # on Darwin -single_module speeds up loading of the dynamic libraries.
20589 extra_ldflags_libjava=-Wl,-single_module
20591 arm*-*-linux-*)
20592 # Some of the ARM unwinder code is actually in libstdc++. We
20593 # could in principle replicate it in libgcj, but it's better to
20594 # have a dependency on libstdc++.
20595 extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20596 LIBSTDCXXSPEC=-lstdc++
20597 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20599 *-*-cygwin)
20600 extra_ldflags_libjava=-liconv
20602 *-*-mingw*)
20603 extra_ldflags_libjava=-lws2_32
20605 esac
20607 LIBMATHSPEC=
20608 # extra LD Flags which are required for targets
20609 case "${host}" in
20610 *-*-darwin*)
20613 LIBMATHSPEC=-lm
20615 esac
20617 # Check for --no-merge-exidx-entries, an ARM-specific linker option.
20618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --no-merge-exidx-entries" >&5
20619 $as_echo_n "checking for --no-merge-exidx-entries... " >&6; }
20620 if test "${libgcj_cv_exidx+set}" = set; then :
20621 $as_echo_n "(cached) " >&6
20622 else
20623 saved_ldflags="$LDFLAGS"
20624 LDFLAGS="${LDFLAGS} -Wl,--no-merge-exidx-entries"
20625 if test x$gcc_no_link = xyes; then
20626 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20629 /* end confdefs.h. */
20630 int main(void){ return 0;}
20631 _ACEOF
20632 if ac_fn_c_try_link "$LINENO"; then :
20633 eval "libgcj_cv_exidx=yes"
20634 else
20635 eval "libgcj_cv_exidx=no"
20637 rm -f core conftest.err conftest.$ac_objext \
20638 conftest$ac_exeext conftest.$ac_ext
20639 LDFLAGS="${saved_ldflags}"
20642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcj_cv_exidx" >&5
20643 $as_echo "$libgcj_cv_exidx" >&6; }
20644 if test "${libgcj_cv_exidx}" = "yes"; then
20645 SYSTEMSPEC="${SYSTEMSPEC} --no-merge-exidx-entries"
20646 extra_ldflags="${extra_ldflags} -Wl,--no-merge-exidx-entries"
20656 # Allow the GC to be disabled. Can be useful when debugging.
20657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for garbage collector to use" >&5
20658 $as_echo_n "checking for garbage collector to use... " >&6; }
20659 # Check whether --enable-java-gc was given.
20660 if test "${enable_java_gc+set}" = set; then :
20661 enableval=$enable_java_gc; GC=$enableval
20662 else
20663 GC=boehm
20666 GCLIBS=
20667 GCINCS=
20668 GCDEPS=
20669 GCSPEC=
20670 JC1GCSPEC=
20671 GCTESTSPEC=
20672 case "$GC" in
20673 boehm)
20674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: boehm" >&5
20675 $as_echo "boehm" >&6; }
20676 GCLIBS=../boehm-gc/libgcjgc_convenience.la
20677 JC1GCSPEC='-fuse-boehm-gc'
20678 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20679 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20680 GCOBJS=boehm.lo
20681 GCHDR=boehm-gc.h
20682 # The POSIX thread support needs to know this.
20684 $as_echo "#define HAVE_BOEHM_GC 1" >>confdefs.h
20688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
20689 $as_echo "none" >&6; }
20690 GCHDR=no-gc.h
20693 as_fn_error "unrecognized collector \"$GC\"" "$LINENO" 5
20695 esac
20702 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20704 if test "$GC" = boehm; then
20705 USING_BOEHMGC_TRUE=
20706 USING_BOEHMGC_FALSE='#'
20707 else
20708 USING_BOEHMGC_TRUE='#'
20709 USING_BOEHMGC_FALSE=
20712 if test "$GC" = no; then
20713 USING_NOGC_TRUE=
20714 USING_NOGC_FALSE='#'
20715 else
20716 USING_NOGC_TRUE='#'
20717 USING_NOGC_FALSE=
20722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
20723 $as_echo_n "checking for thread model used by GCC... " >&6; }
20724 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
20726 $as_echo "$THREADS" >&6; }
20728 case "$THREADS" in
20729 no | none | single)
20730 THREADS=none
20732 aix | posix | pthreads)
20733 THREADS=posix
20734 case "$host" in
20735 *-*-linux*)
20737 $as_echo "#define LINUX_THREADS 1" >>confdefs.h
20740 esac
20742 win32)
20744 dce | vxworks)
20745 as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
20748 as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
20750 esac
20752 THREADCXXFLAGS=
20753 THREADLDFLAGS=
20754 THREADLIBS=
20755 THREADINCS=
20756 THREADDEPS=
20757 THREADH=
20758 THREADSPEC=
20759 THREADSTARTFILESPEC=
20760 case "$THREADS" in
20761 posix)
20762 case "$host" in
20763 *-*-cygwin*)
20764 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
20766 *-*-freebsd[34].*)
20767 # Before FreeBSD 5, it didn't have -lpthread (or any library which
20768 # merely adds pthread_* functions) but it does have a -pthread switch
20769 # which is required at link-time to select -lc_r *instead* of -lc.
20770 THREADLDFLAGS=-pthread
20771 # Don't set THREADSPEC here as might be expected since -pthread is
20772 # not processed when found within a spec file, it must come from
20773 # the command line. For now, the user must provide the -pthread
20774 # switch to link code compiled with gcj. In future, consider adding
20775 # support for weak references to pthread_* functions ala gthr.h API.
20776 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20778 *-*-freebsd*)
20779 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20780 # systems which support threads and -lpthread.
20781 THREADLDFLAGS=-pthread
20782 THREADSPEC=-lpthread
20784 hppa*-hp-hpux*)
20785 THREADCXXFLAGS=-pthread
20786 # boehm-gc needs some functions from librt, so link that too.
20787 THREADLIBS='-lpthread -lrt'
20788 THREADSPEC='-lpthread -lrt'
20790 *-*-solaris2.9)
20791 # Need libthread for TLS support.
20792 THREADLIBS='-lpthread -lthread'
20793 THREADSPEC='-lpthread -lthread'
20795 *-*-darwin*)
20796 # Don't set THREADLIBS or THREADSPEC as Darwin already
20797 # provides pthread via libSystem.
20800 THREADLIBS=-lpthread
20801 THREADSPEC=-lpthread
20803 esac
20804 THREADH=posix-threads.h
20805 # MIT pthreads doesn't seem to have the mutexattr functions.
20806 # But for now we don't check for it. We just assume you aren't
20807 # using MIT pthreads.
20809 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20812 # If we're using the Boehm GC, then we happen to know that it
20813 # defines _REENTRANT, so we don't bother. Eww.
20814 if test "$GC" != boehm; then
20816 $as_echo "#define _REENTRANT 1" >>confdefs.h
20820 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
20824 win32)
20825 THREADH=win32-threads.h
20826 THREADCXXFLAGS=-mthreads
20827 # We need thread-safe exception handling so _CRT_MT should be set to 1.
20828 # But we do not want the executables created to be dependent on
20829 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20830 # exception handling contexts. The following kludge achieves this effect
20831 # and causes a dummy __mingwthr_key_dtor() to be linked in from
20832 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
20833 # A workaround is to explicitly use -mthreads while linking Java programs.
20834 # See PR libgcj/28263.
20836 # FIXME: In Java we are able to detect thread death at the end of
20837 # Thread.run() so we should be able to clean up the exception handling
20838 # contexts ourselves.
20839 case "$host" in
20840 *-w64-mingw*)
20843 THREADSTARTFILESPEC='crtmt%O%s'
20845 esac
20847 none)
20848 THREADH=no-threads.h
20850 esac
20851 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20860 if test "$THREADS" = posix; then
20861 USING_POSIX_THREADS_TRUE=
20862 USING_POSIX_THREADS_FALSE='#'
20863 else
20864 USING_POSIX_THREADS_TRUE='#'
20865 USING_POSIX_THREADS_FALSE=
20868 if test "$THREADS" = win32; then
20869 USING_WIN32_THREADS_TRUE=
20870 USING_WIN32_THREADS_FALSE='#'
20871 else
20872 USING_WIN32_THREADS_TRUE='#'
20873 USING_WIN32_THREADS_FALSE=
20876 if test "$THREADS" = none; then
20877 USING_NO_THREADS_TRUE=
20878 USING_NO_THREADS_FALSE='#'
20879 else
20880 USING_NO_THREADS_TRUE='#'
20881 USING_NO_THREADS_FALSE=
20884 if test "$enable_shared" != yes; then
20885 use_libgcj_bc=no
20887 if test "$use_libgcj_bc" = yes; then
20888 USE_LIBGCJ_BC_TRUE=
20889 USE_LIBGCJ_BC_FALSE='#'
20890 else
20891 USE_LIBGCJ_BC_TRUE='#'
20892 USE_LIBGCJ_BC_FALSE=
20896 if test -d sysdep; then true; else mkdir sysdep; fi
20897 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20899 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20901 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20904 LIBGCJ_SPEC_LGCJ=-lgcj
20905 LIBGCJ_SPEC_LGCJ_BC=-lgcj_bc
20906 if test x"$libgcj_spec_lgcj_override" != x ; then
20907 LIBGCJ_SPEC_LGCJ=$libgcj_spec_lgcj_override
20909 if test x"$libgcj_spec_lgcj_bc_override" != x ; then
20910 LIBGCJ_SPEC_LGCJ_BC=$libgcj_spec_lgcj_bc_override
20912 LIBGCJ_SPEC="%{s-bc-abi:} $LIBGCJ_SPEC_LGCJ"
20913 if test "$use_libgcj_bc" = yes; then
20914 LIBGCJ_SPEC="%{static|static-libgcj|!s-bc-abi:$LIBGCJ_SPEC_LGCJ;:$LIBGCJ_SPEC_LGCJ_BC}"
20915 LIBGCJ_BC_SPEC="%{findirect-dispatch:-fPIC}"
20920 HASH_SYNC_SPEC=
20921 # Hash synchronization is only useful with posix threads right now.
20922 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20923 HASH_SYNC_SPEC=-fhash-synchronization
20925 $as_echo "#define JV_HASH_SYNCHRONIZATION 1" >>confdefs.h
20930 if test "$GCC" = yes; then
20931 USING_GCC_TRUE=
20932 USING_GCC_FALSE='#'
20933 else
20934 USING_GCC_TRUE='#'
20935 USING_GCC_FALSE=
20939 # We're in the tree with libgcc, and need to include some of its headers.
20940 LIBGCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../libgcc'
20942 if test "x${with_newlib}" = "xyes"; then
20943 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
20944 # may not work correctly, because the compiler may not be able to
20945 # link executables.
20947 # We assume newlib. This lets us hard-code the functions we know
20948 # we'll have.
20950 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20953 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
20956 $as_echo "#define HAVE_TIME 1" >>confdefs.h
20959 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20962 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
20965 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
20967 # This is only for POSIX threads.
20969 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20972 # Assume we do not have getuid and friends.
20974 $as_echo "#define NO_GETUID 1" >>confdefs.h
20976 PLATFORMNET=NoNet
20977 else
20978 for ac_func in strerror_r select fstat open fsync sleep opendir \
20979 localtime_r getpwuid_r getcwd \
20980 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20981 nl_langinfo setlocale \
20982 inet_pton uname inet_ntoa \
20983 getrlimit sigaction ftruncate mmap \
20984 getifaddrs
20985 do :
20986 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20987 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20988 eval as_val=\$$as_ac_var
20989 if test "x$as_val" = x""yes; then :
20990 cat >>confdefs.h <<_ACEOF
20991 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20992 _ACEOF
20995 done
20997 for ac_func in inet_aton inet_addr
20998 do :
20999 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21000 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21001 eval as_val=\$$as_ac_var
21002 if test "x$as_val" = x""yes; then :
21003 cat >>confdefs.h <<_ACEOF
21004 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21005 _ACEOF
21006 break
21008 done
21010 for ac_header in unistd.h dlfcn.h sys/resource.h
21011 do :
21012 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21013 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21014 eval as_val=\$$as_ac_Header
21015 if test "x$as_val" = x""yes; then :
21016 cat >>confdefs.h <<_ACEOF
21017 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21018 _ACEOF
21022 done
21024 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
21025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5
21026 $as_echo_n "checking for dladdr in -ldl... " >&6; }
21027 if test "${ac_cv_lib_dl_dladdr+set}" = set; then :
21028 $as_echo_n "(cached) " >&6
21029 else
21030 ac_check_lib_save_LIBS=$LIBS
21031 LIBS="-ldl $LIBS"
21032 if test x$gcc_no_link = xyes; then
21033 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21036 /* end confdefs.h. */
21038 /* Override any GCC internal prototype to avoid an error.
21039 Use char because int might match the return type of a GCC
21040 builtin and then its argument prototype would still apply. */
21041 #ifdef __cplusplus
21042 extern "C"
21043 #endif
21044 char dladdr ();
21046 main ()
21048 return dladdr ();
21050 return 0;
21052 _ACEOF
21053 if ac_fn_c_try_link "$LINENO"; then :
21054 ac_cv_lib_dl_dladdr=yes
21055 else
21056 ac_cv_lib_dl_dladdr=no
21058 rm -f core conftest.err conftest.$ac_objext \
21059 conftest$ac_exeext conftest.$ac_ext
21060 LIBS=$ac_check_lib_save_LIBS
21062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
21063 $as_echo "$ac_cv_lib_dl_dladdr" >&6; }
21064 if test "x$ac_cv_lib_dl_dladdr" = x""yes; then :
21067 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
21069 else
21071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldld" >&5
21072 $as_echo_n "checking for dladdr in -ldld... " >&6; }
21073 if test "${ac_cv_lib_dld_dladdr+set}" = set; then :
21074 $as_echo_n "(cached) " >&6
21075 else
21076 ac_check_lib_save_LIBS=$LIBS
21077 LIBS="-ldld $LIBS"
21078 if test x$gcc_no_link = xyes; then
21079 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21082 /* end confdefs.h. */
21084 /* Override any GCC internal prototype to avoid an error.
21085 Use char because int might match the return type of a GCC
21086 builtin and then its argument prototype would still apply. */
21087 #ifdef __cplusplus
21088 extern "C"
21089 #endif
21090 char dladdr ();
21092 main ()
21094 return dladdr ();
21096 return 0;
21098 _ACEOF
21099 if ac_fn_c_try_link "$LINENO"; then :
21100 ac_cv_lib_dld_dladdr=yes
21101 else
21102 ac_cv_lib_dld_dladdr=no
21104 rm -f core conftest.err conftest.$ac_objext \
21105 conftest$ac_exeext conftest.$ac_ext
21106 LIBS=$ac_check_lib_save_LIBS
21108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dladdr" >&5
21109 $as_echo "$ac_cv_lib_dld_dladdr" >&6; }
21110 if test "x$ac_cv_lib_dld_dladdr" = x""yes; then :
21113 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
21120 if test x"$cross_compiling" = x"no"; then
21121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/exe" >&5
21122 $as_echo_n "checking for /proc/self/exe... " >&6; }
21123 if test "${ac_cv_file__proc_self_exe+set}" = set; then :
21124 $as_echo_n "(cached) " >&6
21125 else
21126 test "$cross_compiling" = yes &&
21127 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
21128 if test -r "/proc/self/exe"; then
21129 ac_cv_file__proc_self_exe=yes
21130 else
21131 ac_cv_file__proc_self_exe=no
21134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_exe" >&5
21135 $as_echo "$ac_cv_file__proc_self_exe" >&6; }
21136 if test "x$ac_cv_file__proc_self_exe" = x""yes; then :
21138 cat >>confdefs.h <<_ACEOF
21139 #define HAVE__PROC_SELF_EXE 1
21140 _ACEOF
21143 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
21147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/maps" >&5
21148 $as_echo_n "checking for /proc/self/maps... " >&6; }
21149 if test "${ac_cv_file__proc_self_maps+set}" = set; then :
21150 $as_echo_n "(cached) " >&6
21151 else
21152 test "$cross_compiling" = yes &&
21153 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
21154 if test -r "/proc/self/maps"; then
21155 ac_cv_file__proc_self_maps=yes
21156 else
21157 ac_cv_file__proc_self_maps=no
21160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_maps" >&5
21161 $as_echo "$ac_cv_file__proc_self_maps" >&6; }
21162 if test "x$ac_cv_file__proc_self_maps" = x""yes; then :
21164 cat >>confdefs.h <<_ACEOF
21165 #define HAVE__PROC_SELF_MAPS 1
21166 _ACEOF
21169 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
21173 else
21174 case $host in
21175 *-linux*)
21177 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
21180 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
21183 esac
21187 if test "X$prefix" = "XNONE"; then
21188 acl_final_prefix="$ac_default_prefix"
21189 else
21190 acl_final_prefix="$prefix"
21192 if test "X$exec_prefix" = "XNONE"; then
21193 acl_final_exec_prefix='${prefix}'
21194 else
21195 acl_final_exec_prefix="$exec_prefix"
21197 acl_save_prefix="$prefix"
21198 prefix="$acl_final_prefix"
21199 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21200 prefix="$acl_save_prefix"
21203 # Check whether --with-gnu-ld was given.
21204 if test "${with_gnu_ld+set}" = set; then :
21205 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
21206 else
21207 with_gnu_ld=no
21210 # Prepare PATH_SEPARATOR.
21211 # The user is always right.
21212 if test "${PATH_SEPARATOR+set}" != set; then
21213 echo "#! /bin/sh" >conf$$.sh
21214 echo "exit 0" >>conf$$.sh
21215 chmod +x conf$$.sh
21216 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21217 PATH_SEPARATOR=';'
21218 else
21219 PATH_SEPARATOR=:
21221 rm -f conf$$.sh
21223 ac_prog=ld
21224 if test "$GCC" = yes; then
21225 # Check if gcc -print-prog-name=ld gives a path.
21226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
21227 $as_echo_n "checking for ld used by GCC... " >&6; }
21228 case $host in
21229 *-*-mingw*)
21230 # gcc leaves a trailing carriage return which upsets mingw
21231 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21233 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21234 esac
21235 case $ac_prog in
21236 # Accept absolute paths.
21237 [\\/]* | [A-Za-z]:[\\/]*)
21238 re_direlt='/[^/][^/]*/\.\./'
21239 # Canonicalize the path of ld
21240 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21241 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21242 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21243 done
21244 test -z "$LD" && LD="$ac_prog"
21247 # If it fails, then pretend we aren't using GCC.
21248 ac_prog=ld
21251 # If it is relative, then search for the first ld in PATH.
21252 with_gnu_ld=unknown
21254 esac
21255 elif test "$with_gnu_ld" = yes; then
21256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
21257 $as_echo_n "checking for GNU ld... " >&6; }
21258 else
21259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
21260 $as_echo_n "checking for non-GNU ld... " >&6; }
21262 if test "${acl_cv_path_LD+set}" = set; then :
21263 $as_echo_n "(cached) " >&6
21264 else
21265 if test -z "$LD"; then
21266 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21267 for ac_dir in $PATH; do
21268 test -z "$ac_dir" && ac_dir=.
21269 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21270 acl_cv_path_LD="$ac_dir/$ac_prog"
21271 # Check to see if the program is GNU ld. I'd rather use --version,
21272 # but apparently some GNU ld's only accept -v.
21273 # Break only if it was the GNU/non-GNU ld that we prefer.
21274 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
21275 test "$with_gnu_ld" != no && break
21276 else
21277 test "$with_gnu_ld" != yes && break
21280 done
21281 IFS="$ac_save_ifs"
21282 else
21283 acl_cv_path_LD="$LD" # Let the user override the test with a path.
21287 LD="$acl_cv_path_LD"
21288 if test -n "$LD"; then
21289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
21290 $as_echo "$LD" >&6; }
21291 else
21292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21293 $as_echo "no" >&6; }
21295 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
21296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
21297 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
21298 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
21299 $as_echo_n "(cached) " >&6
21300 else
21301 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21302 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
21303 acl_cv_prog_gnu_ld=yes
21304 else
21305 acl_cv_prog_gnu_ld=no
21308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
21309 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
21310 with_gnu_ld=$acl_cv_prog_gnu_ld
21314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
21315 $as_echo_n "checking for shared library run path origin... " >&6; }
21316 if test "${acl_cv_rpath+set}" = set; then :
21317 $as_echo_n "(cached) " >&6
21318 else
21320 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21321 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21322 . ./conftest.sh
21323 rm -f ./conftest.sh
21324 acl_cv_rpath=done
21327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
21328 $as_echo "$acl_cv_rpath" >&6; }
21329 wl="$acl_cv_wl"
21330 libext="$acl_cv_libext"
21331 shlibext="$acl_cv_shlibext"
21332 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21333 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21334 hardcode_direct="$acl_cv_hardcode_direct"
21335 hardcode_minus_L="$acl_cv_hardcode_minus_L"
21336 # Check whether --enable-rpath was given.
21337 if test "${enable_rpath+set}" = set; then :
21338 enableval=$enable_rpath; :
21339 else
21340 enable_rpath=yes
21350 use_additional=yes
21352 acl_save_prefix="$prefix"
21353 prefix="$acl_final_prefix"
21354 acl_save_exec_prefix="$exec_prefix"
21355 exec_prefix="$acl_final_exec_prefix"
21357 eval additional_includedir=\"$includedir\"
21358 eval additional_libdir=\"$libdir\"
21360 exec_prefix="$acl_save_exec_prefix"
21361 prefix="$acl_save_prefix"
21364 # Check whether --with-libiconv-prefix was given.
21365 if test "${with_libiconv_prefix+set}" = set; then :
21366 withval=$with_libiconv_prefix;
21367 if test "X$withval" = "Xno"; then
21368 use_additional=no
21369 else
21370 if test "X$withval" = "X"; then
21372 acl_save_prefix="$prefix"
21373 prefix="$acl_final_prefix"
21374 acl_save_exec_prefix="$exec_prefix"
21375 exec_prefix="$acl_final_exec_prefix"
21377 eval additional_includedir=\"$includedir\"
21378 eval additional_libdir=\"$libdir\"
21380 exec_prefix="$acl_save_exec_prefix"
21381 prefix="$acl_save_prefix"
21383 else
21384 additional_includedir="$withval/include"
21385 additional_libdir="$withval/lib"
21391 LIBICONV=
21392 LTLIBICONV=
21393 INCICONV=
21394 rpathdirs=
21395 ltrpathdirs=
21396 names_already_handled=
21397 names_next_round='iconv '
21398 while test -n "$names_next_round"; do
21399 names_this_round="$names_next_round"
21400 names_next_round=
21401 for name in $names_this_round; do
21402 already_handled=
21403 for n in $names_already_handled; do
21404 if test "$n" = "$name"; then
21405 already_handled=yes
21406 break
21408 done
21409 if test -z "$already_handled"; then
21410 names_already_handled="$names_already_handled $name"
21411 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21412 eval value=\"\$HAVE_LIB$uppername\"
21413 if test -n "$value"; then
21414 if test "$value" = yes; then
21415 eval value=\"\$LIB$uppername\"
21416 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21417 eval value=\"\$LTLIB$uppername\"
21418 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21419 else
21422 else
21423 found_dir=
21424 found_la=
21425 found_so=
21426 found_a=
21427 if test $use_additional = yes; then
21428 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21429 found_dir="$additional_libdir"
21430 found_so="$additional_libdir/lib$name.$shlibext"
21431 if test -f "$additional_libdir/lib$name.la"; then
21432 found_la="$additional_libdir/lib$name.la"
21434 else
21435 if test -f "$additional_libdir/lib$name.$libext"; then
21436 found_dir="$additional_libdir"
21437 found_a="$additional_libdir/lib$name.$libext"
21438 if test -f "$additional_libdir/lib$name.la"; then
21439 found_la="$additional_libdir/lib$name.la"
21444 if test "X$found_dir" = "X"; then
21445 for x in $LDFLAGS $LTLIBICONV; do
21447 acl_save_prefix="$prefix"
21448 prefix="$acl_final_prefix"
21449 acl_save_exec_prefix="$exec_prefix"
21450 exec_prefix="$acl_final_exec_prefix"
21451 eval x=\"$x\"
21452 exec_prefix="$acl_save_exec_prefix"
21453 prefix="$acl_save_prefix"
21455 case "$x" in
21456 -L*)
21457 dir=`echo "X$x" | sed -e 's/^X-L//'`
21458 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21459 found_dir="$dir"
21460 found_so="$dir/lib$name.$shlibext"
21461 if test -f "$dir/lib$name.la"; then
21462 found_la="$dir/lib$name.la"
21464 else
21465 if test -f "$dir/lib$name.$libext"; then
21466 found_dir="$dir"
21467 found_a="$dir/lib$name.$libext"
21468 if test -f "$dir/lib$name.la"; then
21469 found_la="$dir/lib$name.la"
21474 esac
21475 if test "X$found_dir" != "X"; then
21476 break
21478 done
21480 if test "X$found_dir" != "X"; then
21481 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21482 if test "X$found_so" != "X"; then
21483 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21484 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21485 else
21486 haveit=
21487 for x in $ltrpathdirs; do
21488 if test "X$x" = "X$found_dir"; then
21489 haveit=yes
21490 break
21492 done
21493 if test -z "$haveit"; then
21494 ltrpathdirs="$ltrpathdirs $found_dir"
21496 if test "$hardcode_direct" = yes; then
21497 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21498 else
21499 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21500 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21501 haveit=
21502 for x in $rpathdirs; do
21503 if test "X$x" = "X$found_dir"; then
21504 haveit=yes
21505 break
21507 done
21508 if test -z "$haveit"; then
21509 rpathdirs="$rpathdirs $found_dir"
21511 else
21512 haveit=
21513 for x in $LDFLAGS $LIBICONV; 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-L$found_dir"; then
21524 haveit=yes
21525 break
21527 done
21528 if test -z "$haveit"; then
21529 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21531 if test "$hardcode_minus_L" != no; then
21532 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21533 else
21534 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21539 else
21540 if test "X$found_a" != "X"; then
21541 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21542 else
21543 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21546 additional_includedir=
21547 case "$found_dir" in
21548 */lib | */lib/)
21549 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21550 additional_includedir="$basedir/include"
21552 esac
21553 if test "X$additional_includedir" != "X"; then
21554 if test "X$additional_includedir" != "X/usr/include"; then
21555 haveit=
21556 if test "X$additional_includedir" = "X/usr/local/include"; then
21557 if test -n "$GCC"; then
21558 case $host_os in
21559 linux*) haveit=yes;;
21560 esac
21563 if test -z "$haveit"; then
21564 for x in $CPPFLAGS $INCICONV; do
21566 acl_save_prefix="$prefix"
21567 prefix="$acl_final_prefix"
21568 acl_save_exec_prefix="$exec_prefix"
21569 exec_prefix="$acl_final_exec_prefix"
21570 eval x=\"$x\"
21571 exec_prefix="$acl_save_exec_prefix"
21572 prefix="$acl_save_prefix"
21574 if test "X$x" = "X-I$additional_includedir"; then
21575 haveit=yes
21576 break
21578 done
21579 if test -z "$haveit"; then
21580 if test -d "$additional_includedir"; then
21581 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21587 if test -n "$found_la"; then
21588 save_libdir="$libdir"
21589 case "$found_la" in
21590 */* | *\\*) . "$found_la" ;;
21591 *) . "./$found_la" ;;
21592 esac
21593 libdir="$save_libdir"
21594 for dep in $dependency_libs; do
21595 case "$dep" in
21596 -L*)
21597 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21598 if test "X$additional_libdir" != "X/usr/lib"; then
21599 haveit=
21600 if test "X$additional_libdir" = "X/usr/local/lib"; then
21601 if test -n "$GCC"; then
21602 case $host_os in
21603 linux*) haveit=yes;;
21604 esac
21607 if test -z "$haveit"; then
21608 haveit=
21609 for x in $LDFLAGS $LIBICONV; do
21611 acl_save_prefix="$prefix"
21612 prefix="$acl_final_prefix"
21613 acl_save_exec_prefix="$exec_prefix"
21614 exec_prefix="$acl_final_exec_prefix"
21615 eval x=\"$x\"
21616 exec_prefix="$acl_save_exec_prefix"
21617 prefix="$acl_save_prefix"
21619 if test "X$x" = "X-L$additional_libdir"; then
21620 haveit=yes
21621 break
21623 done
21624 if test -z "$haveit"; then
21625 if test -d "$additional_libdir"; then
21626 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21629 haveit=
21630 for x in $LDFLAGS $LTLIBICONV; do
21632 acl_save_prefix="$prefix"
21633 prefix="$acl_final_prefix"
21634 acl_save_exec_prefix="$exec_prefix"
21635 exec_prefix="$acl_final_exec_prefix"
21636 eval x=\"$x\"
21637 exec_prefix="$acl_save_exec_prefix"
21638 prefix="$acl_save_prefix"
21640 if test "X$x" = "X-L$additional_libdir"; then
21641 haveit=yes
21642 break
21644 done
21645 if test -z "$haveit"; then
21646 if test -d "$additional_libdir"; then
21647 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21653 -R*)
21654 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21655 if test "$enable_rpath" != no; then
21656 haveit=
21657 for x in $rpathdirs; do
21658 if test "X$x" = "X$dir"; then
21659 haveit=yes
21660 break
21662 done
21663 if test -z "$haveit"; then
21664 rpathdirs="$rpathdirs $dir"
21666 haveit=
21667 for x in $ltrpathdirs; do
21668 if test "X$x" = "X$dir"; then
21669 haveit=yes
21670 break
21672 done
21673 if test -z "$haveit"; then
21674 ltrpathdirs="$ltrpathdirs $dir"
21678 -l*)
21679 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21681 *.la)
21682 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21685 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21686 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21688 esac
21689 done
21691 else
21692 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21693 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21697 done
21698 done
21699 if test "X$rpathdirs" != "X"; then
21700 if test -n "$hardcode_libdir_separator"; then
21701 alldirs=
21702 for found_dir in $rpathdirs; do
21703 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21704 done
21705 acl_save_libdir="$libdir"
21706 libdir="$alldirs"
21707 eval flag=\"$hardcode_libdir_flag_spec\"
21708 libdir="$acl_save_libdir"
21709 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21710 else
21711 for found_dir in $rpathdirs; do
21712 acl_save_libdir="$libdir"
21713 libdir="$found_dir"
21714 eval flag=\"$hardcode_libdir_flag_spec\"
21715 libdir="$acl_save_libdir"
21716 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21717 done
21720 if test "X$ltrpathdirs" != "X"; then
21721 for found_dir in $ltrpathdirs; do
21722 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21723 done
21732 am_save_CPPFLAGS="$CPPFLAGS"
21734 for element in $INCICONV; do
21735 haveit=
21736 for x in $CPPFLAGS; do
21738 acl_save_prefix="$prefix"
21739 prefix="$acl_final_prefix"
21740 acl_save_exec_prefix="$exec_prefix"
21741 exec_prefix="$acl_final_exec_prefix"
21742 eval x=\"$x\"
21743 exec_prefix="$acl_save_exec_prefix"
21744 prefix="$acl_save_prefix"
21746 if test "X$x" = "X$element"; then
21747 haveit=yes
21748 break
21750 done
21751 if test -z "$haveit"; then
21752 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21754 done
21757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
21758 $as_echo_n "checking for iconv... " >&6; }
21759 if test "${am_cv_func_iconv+set}" = set; then :
21760 $as_echo_n "(cached) " >&6
21761 else
21763 am_cv_func_iconv="no, consider installing GNU libiconv"
21764 am_cv_lib_iconv=no
21765 if test x$gcc_no_link = xyes; then
21766 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21769 /* end confdefs.h. */
21770 #include <stdlib.h>
21771 #include <iconv.h>
21773 main ()
21775 iconv_t cd = iconv_open("","");
21776 iconv(cd,NULL,NULL,NULL,NULL);
21777 iconv_close(cd);
21779 return 0;
21781 _ACEOF
21782 if ac_fn_c_try_link "$LINENO"; then :
21783 am_cv_func_iconv=yes
21785 rm -f core conftest.err conftest.$ac_objext \
21786 conftest$ac_exeext conftest.$ac_ext
21787 if test "$am_cv_func_iconv" != yes; then
21788 am_save_LIBS="$LIBS"
21789 LIBS="$LIBS $LIBICONV"
21790 if test x$gcc_no_link = xyes; then
21791 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21794 /* end confdefs.h. */
21795 #include <stdlib.h>
21796 #include <iconv.h>
21798 main ()
21800 iconv_t cd = iconv_open("","");
21801 iconv(cd,NULL,NULL,NULL,NULL);
21802 iconv_close(cd);
21804 return 0;
21806 _ACEOF
21807 if ac_fn_c_try_link "$LINENO"; then :
21808 am_cv_lib_iconv=yes
21809 am_cv_func_iconv=yes
21811 rm -f core conftest.err conftest.$ac_objext \
21812 conftest$ac_exeext conftest.$ac_ext
21813 LIBS="$am_save_LIBS"
21817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
21818 $as_echo "$am_cv_func_iconv" >&6; }
21819 if test "$am_cv_func_iconv" = yes; then
21821 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
21824 if test "$am_cv_lib_iconv" = yes; then
21825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
21826 $as_echo_n "checking how to link with libiconv... " >&6; }
21827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
21828 $as_echo "$LIBICONV" >&6; }
21829 else
21830 CPPFLAGS="$am_save_CPPFLAGS"
21831 LIBICONV=
21832 LTLIBICONV=
21837 if test "$am_cv_func_iconv" = yes; then
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
21839 $as_echo_n "checking for iconv declaration... " >&6; }
21840 if test "${am_cv_proto_iconv+set}" = set; then :
21841 $as_echo_n "(cached) " >&6
21842 else
21844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21845 /* end confdefs.h. */
21847 #include <stdlib.h>
21848 #include <iconv.h>
21849 extern
21850 #ifdef __cplusplus
21852 #endif
21853 #if defined(__STDC__) || defined(__cplusplus)
21854 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21855 #else
21856 size_t iconv();
21857 #endif
21860 main ()
21864 return 0;
21866 _ACEOF
21867 if ac_fn_c_try_compile "$LINENO"; then :
21868 am_cv_proto_iconv_arg1=""
21869 else
21870 am_cv_proto_iconv_arg1="const"
21872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21873 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);"
21876 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
21878 }$am_cv_proto_iconv" >&5
21879 $as_echo "${ac_t:-
21880 }$am_cv_proto_iconv" >&6; }
21882 cat >>confdefs.h <<_ACEOF
21883 #define ICONV_CONST $am_cv_proto_iconv_arg1
21884 _ACEOF
21889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
21890 $as_echo_n "checking for LC_MESSAGES... " >&6; }
21891 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
21892 $as_echo_n "(cached) " >&6
21893 else
21894 if test x$gcc_no_link = xyes; then
21895 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21898 /* end confdefs.h. */
21899 #include <locale.h>
21901 main ()
21903 return LC_MESSAGES
21905 return 0;
21907 _ACEOF
21908 if ac_fn_c_try_link "$LINENO"; then :
21909 am_cv_val_LC_MESSAGES=yes
21910 else
21911 am_cv_val_LC_MESSAGES=no
21913 rm -f core conftest.err conftest.$ac_objext \
21914 conftest$ac_exeext conftest.$ac_ext
21916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
21917 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
21918 if test $am_cv_val_LC_MESSAGES = yes; then
21920 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
21924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21925 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21926 if test "${ac_cv_struct_tm+set}" = set; then :
21927 $as_echo_n "(cached) " >&6
21928 else
21929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21930 /* end confdefs.h. */
21931 #include <sys/types.h>
21932 #include <time.h>
21935 main ()
21937 struct tm tm;
21938 int *p = &tm.tm_sec;
21939 return !p;
21941 return 0;
21943 _ACEOF
21944 if ac_fn_c_try_compile "$LINENO"; then :
21945 ac_cv_struct_tm=time.h
21946 else
21947 ac_cv_struct_tm=sys/time.h
21949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21952 $as_echo "$ac_cv_struct_tm" >&6; }
21953 if test $ac_cv_struct_tm = sys/time.h; then
21955 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21959 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21960 #include <$ac_cv_struct_tm>
21963 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21965 cat >>confdefs.h <<_ACEOF
21966 #define HAVE_STRUCT_TM_TM_ZONE 1
21967 _ACEOF
21972 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21974 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21976 else
21977 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21979 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21980 ac_have_decl=1
21981 else
21982 ac_have_decl=0
21985 cat >>confdefs.h <<_ACEOF
21986 #define HAVE_DECL_TZNAME $ac_have_decl
21987 _ACEOF
21989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21990 $as_echo_n "checking for tzname... " >&6; }
21991 if test "${ac_cv_var_tzname+set}" = set; then :
21992 $as_echo_n "(cached) " >&6
21993 else
21994 if test x$gcc_no_link = xyes; then
21995 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21998 /* end confdefs.h. */
21999 #include <time.h>
22000 #if !HAVE_DECL_TZNAME
22001 extern char *tzname[];
22002 #endif
22005 main ()
22007 return tzname[0][0];
22009 return 0;
22011 _ACEOF
22012 if ac_fn_c_try_link "$LINENO"; then :
22013 ac_cv_var_tzname=yes
22014 else
22015 ac_cv_var_tzname=no
22017 rm -f core conftest.err conftest.$ac_objext \
22018 conftest$ac_exeext conftest.$ac_ext
22020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22021 $as_echo "$ac_cv_var_tzname" >&6; }
22022 if test $ac_cv_var_tzname = yes; then
22024 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22029 LDLIBICONV=`echo " $LIBICONV " | sed "s/${acl_cv_wl--Wl,}/ /g; s/,/ /g"`
22032 for ac_func in gethostbyname_r
22033 do :
22034 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
22035 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
22036 cat >>confdefs.h <<_ACEOF
22037 #define HAVE_GETHOSTBYNAME_R 1
22038 _ACEOF
22041 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
22043 # There are two different kinds of gethostbyname_r.
22044 # We look for the one that returns `int'.
22045 # Hopefully this check is robust enough.
22046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22047 /* end confdefs.h. */
22048 #include <netdb.h>
22050 _ACEOF
22051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22052 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then :
22055 $as_echo "#define GETHOSTBYNAME_R_RETURNS_INT 1" >>confdefs.h
22058 rm -f conftest*
22061 case " $GCINCS " in
22062 *" -D_REENTRANT "*) ;;
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
22065 $as_echo_n "checking whether gethostbyname_r declaration requires -D_REENTRANT... " >&6; }
22066 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then :
22067 $as_echo_n "(cached) " >&6
22068 else
22069 ac_ext=cpp
22070 ac_cpp='$CXXCPP $CPPFLAGS'
22071 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22072 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22073 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22076 /* end confdefs.h. */
22077 #include <netdb.h>
22079 main ()
22081 gethostbyname_r("", 0, 0);
22083 return 0;
22085 _ACEOF
22086 if ac_fn_cxx_try_compile "$LINENO"; then :
22087 libjava_cv_gethostbyname_r_needs_reentrant=no
22088 else
22089 CPPFLAGS_SAVE="$CPPFLAGS"
22090 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
22091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22092 /* end confdefs.h. */
22093 #include <netdb.h>
22095 main ()
22097 gethostbyname_r("", 0, 0);
22099 return 0;
22101 _ACEOF
22102 if ac_fn_cxx_try_compile "$LINENO"; then :
22103 libjava_cv_gethostbyname_r_needs_reentrant=yes
22104 else
22105 libjava_cv_gethostbyname_r_needs_reentrant=fail
22107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22108 CPPFLAGS="$CPPFLAGS_SAVE"
22111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22112 ac_ext=c
22113 ac_cpp='$CPP $CPPFLAGS'
22114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
22121 $as_echo "$libjava_cv_gethostbyname_r_needs_reentrant" >&6; }
22122 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
22124 $as_echo "#define _REENTRANT 1" >>confdefs.h
22128 esac
22130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct hostent_data" >&5
22131 $as_echo_n "checking for struct hostent_data... " >&6; }
22132 if test "${libjava_cv_struct_hostent_data+set}" = set; then :
22133 $as_echo_n "(cached) " >&6
22134 else
22135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22136 /* end confdefs.h. */
22138 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
22139 # define _REENTRANT 1
22140 #endif
22141 #include <netdb.h>
22143 main ()
22145 struct hostent_data data;
22147 return 0;
22149 _ACEOF
22150 if ac_fn_c_try_compile "$LINENO"; then :
22151 libjava_cv_struct_hostent_data=yes
22152 else
22153 libjava_cv_struct_hostent_data=no
22155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_struct_hostent_data" >&5
22158 $as_echo "$libjava_cv_struct_hostent_data" >&6; }
22159 if test "x$libjava_cv_struct_hostent_data" = xyes; then
22161 $as_echo "#define HAVE_STRUCT_HOSTENT_DATA 1" >>confdefs.h
22166 done
22169 # FIXME: libjava source code expects to find a prototype for
22170 # gethostbyaddr_r in netdb.h. The outer check ensures that
22171 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
22172 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
22173 # linkage check is enough, yet C++ code requires proper prototypes.)
22174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22175 /* end confdefs.h. */
22176 #include <netdb.h>
22178 _ACEOF
22179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22180 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
22182 for ac_func in gethostbyaddr_r
22183 do :
22184 ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
22185 if test "x$ac_cv_func_gethostbyaddr_r" = x""yes; then :
22186 cat >>confdefs.h <<_ACEOF
22187 #define HAVE_GETHOSTBYADDR_R 1
22188 _ACEOF
22191 $as_echo "#define HAVE_GETHOSTBYADDR_R 1" >>confdefs.h
22193 # There are two different kinds of gethostbyaddr_r.
22194 # We look for the one that returns `int'.
22195 # Hopefully this check is robust enough.
22196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22197 /* end confdefs.h. */
22198 #include <netdb.h>
22200 _ACEOF
22201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22202 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then :
22205 $as_echo "#define GETHOSTBYADDR_R_RETURNS_INT 1" >>confdefs.h
22208 rm -f conftest*
22211 done
22214 rm -f conftest*
22217 for ac_func in gethostname
22218 do :
22219 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
22220 if test "x$ac_cv_func_gethostname" = x""yes; then :
22221 cat >>confdefs.h <<_ACEOF
22222 #define HAVE_GETHOSTNAME 1
22223 _ACEOF
22226 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
22228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22229 /* end confdefs.h. */
22230 #include <unistd.h>
22232 _ACEOF
22233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22234 $EGREP "gethostname" >/dev/null 2>&1; then :
22237 $as_echo "#define HAVE_GETHOSTNAME_DECL 1" >>confdefs.h
22240 rm -f conftest*
22243 done
22246 for ac_func in usleep
22247 do :
22248 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
22249 if test "x$ac_cv_func_usleep" = x""yes; then :
22250 cat >>confdefs.h <<_ACEOF
22251 #define HAVE_USLEEP 1
22252 _ACEOF
22254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22255 /* end confdefs.h. */
22256 #include <unistd.h>
22258 _ACEOF
22259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22260 $EGREP "usleep" >/dev/null 2>&1; then :
22263 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
22266 rm -f conftest*
22269 done
22272 # Look for these functions in the thread library, but only bother
22273 # if using POSIX threads.
22274 if test "$THREADS" = posix; then
22275 save_LIBS="$LIBS"
22276 LIBS="$LIBS $THREADLIBS"
22278 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
22279 # Solaris 7 the name librt is preferred.
22280 for ac_func in sched_yield
22281 do :
22282 ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
22283 if test "x$ac_cv_func_sched_yield" = x""yes; then :
22284 cat >>confdefs.h <<_ACEOF
22285 #define HAVE_SCHED_YIELD 1
22286 _ACEOF
22288 else
22290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
22291 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
22292 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
22293 $as_echo_n "(cached) " >&6
22294 else
22295 ac_check_lib_save_LIBS=$LIBS
22296 LIBS="-lrt $LIBS"
22297 if test x$gcc_no_link = xyes; then
22298 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22301 /* end confdefs.h. */
22303 /* Override any GCC internal prototype to avoid an error.
22304 Use char because int might match the return type of a GCC
22305 builtin and then its argument prototype would still apply. */
22306 #ifdef __cplusplus
22307 extern "C"
22308 #endif
22309 char sched_yield ();
22311 main ()
22313 return sched_yield ();
22315 return 0;
22317 _ACEOF
22318 if ac_fn_c_try_link "$LINENO"; then :
22319 ac_cv_lib_rt_sched_yield=yes
22320 else
22321 ac_cv_lib_rt_sched_yield=no
22323 rm -f core conftest.err conftest.$ac_objext \
22324 conftest$ac_exeext conftest.$ac_ext
22325 LIBS=$ac_check_lib_save_LIBS
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
22328 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
22329 if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
22331 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22333 THREADLIBS="$THREADLIBS -lrt"
22334 THREADSPEC="$THREADSPEC -lrt"
22335 else
22337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
22338 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
22339 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then :
22340 $as_echo_n "(cached) " >&6
22341 else
22342 ac_check_lib_save_LIBS=$LIBS
22343 LIBS="-lposix4 $LIBS"
22344 if test x$gcc_no_link = xyes; then
22345 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22348 /* end confdefs.h. */
22350 /* Override any GCC internal prototype to avoid an error.
22351 Use char because int might match the return type of a GCC
22352 builtin and then its argument prototype would still apply. */
22353 #ifdef __cplusplus
22354 extern "C"
22355 #endif
22356 char sched_yield ();
22358 main ()
22360 return sched_yield ();
22362 return 0;
22364 _ACEOF
22365 if ac_fn_c_try_link "$LINENO"; then :
22366 ac_cv_lib_posix4_sched_yield=yes
22367 else
22368 ac_cv_lib_posix4_sched_yield=no
22370 rm -f core conftest.err conftest.$ac_objext \
22371 conftest$ac_exeext conftest.$ac_ext
22372 LIBS=$ac_check_lib_save_LIBS
22374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
22375 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
22376 if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then :
22378 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22380 THREADLIBS="$THREADLIBS -lposix4"
22381 THREADSPEC="$THREADSPEC -lposix4"
22387 done
22390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22391 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22392 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
22393 $as_echo_n "(cached) " >&6
22394 else
22395 ac_check_lib_save_LIBS=$LIBS
22396 LIBS="-lrt $LIBS"
22397 if test x$gcc_no_link = xyes; then
22398 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22401 /* end confdefs.h. */
22403 /* Override any GCC internal prototype to avoid an error.
22404 Use char because int might match the return type of a GCC
22405 builtin and then its argument prototype would still apply. */
22406 #ifdef __cplusplus
22407 extern "C"
22408 #endif
22409 char clock_gettime ();
22411 main ()
22413 return clock_gettime ();
22415 return 0;
22417 _ACEOF
22418 if ac_fn_c_try_link "$LINENO"; then :
22419 ac_cv_lib_rt_clock_gettime=yes
22420 else
22421 ac_cv_lib_rt_clock_gettime=no
22423 rm -f core conftest.err conftest.$ac_objext \
22424 conftest$ac_exeext conftest.$ac_ext
22425 LIBS=$ac_check_lib_save_LIBS
22427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22428 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22429 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
22432 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22434 case "$THREADSPEC" in
22435 *-lrt*) ;;
22437 THREADSPEC="$THREADSPEC -lrt"
22438 THREADLIBS="$THREADLIBS -lrt"
22440 esac
22444 LIBS="$save_LIBS"
22446 # We can save a little space at runtime if the mutex has m_count
22447 # or __m_count. This is a nice hack for Linux.
22448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22449 /* end confdefs.h. */
22450 #include <pthread.h>
22452 main ()
22455 extern pthread_mutex_t *mutex; int q = mutex->m_count;
22458 return 0;
22460 _ACEOF
22461 if ac_fn_c_try_compile "$LINENO"; then :
22463 $as_echo "#define PTHREAD_MUTEX_HAVE_M_COUNT 1" >>confdefs.h
22465 else
22467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22468 /* end confdefs.h. */
22469 #include <pthread.h>
22471 main ()
22474 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
22477 return 0;
22479 _ACEOF
22480 if ac_fn_c_try_compile "$LINENO"; then :
22482 $as_echo "#define PTHREAD_MUTEX_HAVE___M_COUNT 1" >>confdefs.h
22485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22490 # We require a way to get the time.
22491 time_found=no
22492 for ac_func in gettimeofday time ftime
22493 do :
22494 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22495 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22496 eval as_val=\$$as_ac_var
22497 if test "x$as_val" = x""yes; then :
22498 cat >>confdefs.h <<_ACEOF
22499 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22500 _ACEOF
22501 time_found=yes
22503 done
22505 if test "$time_found" = no; then
22506 as_fn_error "no function found to get the time" "$LINENO" 5
22509 for ac_func in memmove
22510 do :
22511 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22512 if test "x$ac_cv_func_memmove" = x""yes; then :
22513 cat >>confdefs.h <<_ACEOF
22514 #define HAVE_MEMMOVE 1
22515 _ACEOF
22518 done
22521 # We require memcpy.
22522 memcpy_found=no
22523 for ac_func in memcpy
22524 do :
22525 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
22526 if test "x$ac_cv_func_memcpy" = x""yes; then :
22527 cat >>confdefs.h <<_ACEOF
22528 #define HAVE_MEMCPY 1
22529 _ACEOF
22530 memcpy_found=yes
22532 done
22534 if test "$memcpy_found" = no; then
22535 as_fn_error "memcpy is required" "$LINENO" 5
22537 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
22538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22539 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22540 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
22541 $as_echo_n "(cached) " >&6
22542 else
22543 ac_check_lib_save_LIBS=$LIBS
22544 LIBS="-ldl $LIBS"
22545 if test x$gcc_no_link = xyes; then
22546 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22549 /* end confdefs.h. */
22551 /* Override any GCC internal prototype to avoid an error.
22552 Use char because int might match the return type of a GCC
22553 builtin and then its argument prototype would still apply. */
22554 #ifdef __cplusplus
22555 extern "C"
22556 #endif
22557 char dlopen ();
22559 main ()
22561 return dlopen ();
22563 return 0;
22565 _ACEOF
22566 if ac_fn_c_try_link "$LINENO"; then :
22567 ac_cv_lib_dl_dlopen=yes
22568 else
22569 ac_cv_lib_dl_dlopen=no
22571 rm -f core conftest.err conftest.$ac_objext \
22572 conftest$ac_exeext conftest.$ac_ext
22573 LIBS=$ac_check_lib_save_LIBS
22575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22576 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22577 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
22580 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22582 else
22584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldld" >&5
22585 $as_echo_n "checking for dlopen in -ldld... " >&6; }
22586 if test "${ac_cv_lib_dld_dlopen+set}" = set; then :
22587 $as_echo_n "(cached) " >&6
22588 else
22589 ac_check_lib_save_LIBS=$LIBS
22590 LIBS="-ldld $LIBS"
22591 if test x$gcc_no_link = xyes; then
22592 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22595 /* end confdefs.h. */
22597 /* Override any GCC internal prototype to avoid an error.
22598 Use char because int might match the return type of a GCC
22599 builtin and then its argument prototype would still apply. */
22600 #ifdef __cplusplus
22601 extern "C"
22602 #endif
22603 char dlopen ();
22605 main ()
22607 return dlopen ();
22609 return 0;
22611 _ACEOF
22612 if ac_fn_c_try_link "$LINENO"; then :
22613 ac_cv_lib_dld_dlopen=yes
22614 else
22615 ac_cv_lib_dld_dlopen=no
22617 rm -f core conftest.err conftest.$ac_objext \
22618 conftest$ac_exeext conftest.$ac_ext
22619 LIBS=$ac_check_lib_save_LIBS
22621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dlopen" >&5
22622 $as_echo "$ac_cv_lib_dld_dlopen" >&6; }
22623 if test "x$ac_cv_lib_dld_dlopen" = x""yes; then :
22626 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22633 # Some library-finding code we stole from Tcl.
22634 #--------------------------------------------------------------------
22635 # Check for the existence of the -lsocket and -lnsl libraries.
22636 # The order here is important, so that they end up in the right
22637 # order in the command line generated by make. Here are some
22638 # special considerations:
22639 # 1. Use "connect" and "accept" to check for -lsocket, and
22640 # "gethostbyname" to check for -lnsl.
22641 # 2. Use each function name only once: can't redo a check because
22642 # autoconf caches the results of the last check and won't redo it.
22643 # 3. Use -lnsl and -lsocket only if they supply procedures that
22644 # aren't already present in the normal libraries. This is because
22645 # IRIX 5.2 has libraries, but they aren't needed and they're
22646 # bogus: they goof up name resolution if used.
22647 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
22648 # To get around this problem, check for both libraries together
22649 # if -lsocket doesn't work by itself.
22650 #--------------------------------------------------------------------
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
22653 $as_echo_n "checking for socket libraries... " >&6; }
22654 if test "${gcj_cv_lib_sockets+set}" = set; then :
22655 $as_echo_n "(cached) " >&6
22656 else
22657 gcj_cv_lib_sockets=
22658 gcj_checkBoth=0
22659 unset ac_cv_func_connect
22660 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
22661 if test "x$ac_cv_func_connect" = x""yes; then :
22662 gcj_checkSocket=0
22663 else
22664 gcj_checkSocket=1
22667 if test "$gcj_checkSocket" = 1; then
22668 unset ac_cv_func_connect
22669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
22670 $as_echo_n "checking for main in -lsocket... " >&6; }
22671 if test "${ac_cv_lib_socket_main+set}" = set; then :
22672 $as_echo_n "(cached) " >&6
22673 else
22674 ac_check_lib_save_LIBS=$LIBS
22675 LIBS="-lsocket $LIBS"
22676 if test x$gcc_no_link = xyes; then
22677 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22680 /* end confdefs.h. */
22684 main ()
22686 return main ();
22688 return 0;
22690 _ACEOF
22691 if ac_fn_c_try_link "$LINENO"; then :
22692 ac_cv_lib_socket_main=yes
22693 else
22694 ac_cv_lib_socket_main=no
22696 rm -f core conftest.err conftest.$ac_objext \
22697 conftest$ac_exeext conftest.$ac_ext
22698 LIBS=$ac_check_lib_save_LIBS
22700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
22701 $as_echo "$ac_cv_lib_socket_main" >&6; }
22702 if test "x$ac_cv_lib_socket_main" = x""yes; then :
22703 gcj_cv_lib_sockets="-lsocket"
22704 else
22705 gcj_checkBoth=1
22709 if test "$gcj_checkBoth" = 1; then
22710 gcj_oldLibs=$LIBS
22711 LIBS="$LIBS -lsocket -lnsl"
22712 unset ac_cv_func_accept
22713 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
22714 if test "x$ac_cv_func_accept" = x""yes; then :
22715 gcj_checkNsl=0
22716 gcj_cv_lib_sockets="-lsocket -lnsl"
22719 unset ac_cv_func_accept
22720 LIBS=$gcj_oldLibs
22722 unset ac_cv_func_gethostbyname
22723 gcj_oldLibs=$LIBS
22724 LIBS="$LIBS $gcj_cv_lib_sockets"
22725 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22726 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
22728 else
22729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
22730 $as_echo_n "checking for main in -lnsl... " >&6; }
22731 if test "${ac_cv_lib_nsl_main+set}" = set; then :
22732 $as_echo_n "(cached) " >&6
22733 else
22734 ac_check_lib_save_LIBS=$LIBS
22735 LIBS="-lnsl $LIBS"
22736 if test x$gcc_no_link = xyes; then
22737 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22740 /* end confdefs.h. */
22744 main ()
22746 return main ();
22748 return 0;
22750 _ACEOF
22751 if ac_fn_c_try_link "$LINENO"; then :
22752 ac_cv_lib_nsl_main=yes
22753 else
22754 ac_cv_lib_nsl_main=no
22756 rm -f core conftest.err conftest.$ac_objext \
22757 conftest$ac_exeext conftest.$ac_ext
22758 LIBS=$ac_check_lib_save_LIBS
22760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
22761 $as_echo "$ac_cv_lib_nsl_main" >&6; }
22762 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
22763 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
22768 unset ac_cv_func_gethostbyname
22769 LIBS=$gcj_oldLIBS
22772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcj_cv_lib_sockets" >&5
22773 $as_echo "$gcj_cv_lib_sockets" >&6; }
22774 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
22776 if test "$with_system_zlib" = yes; then
22777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
22778 $as_echo_n "checking for deflate in -lz... " >&6; }
22779 if test "${ac_cv_lib_z_deflate+set}" = set; then :
22780 $as_echo_n "(cached) " >&6
22781 else
22782 ac_check_lib_save_LIBS=$LIBS
22783 LIBS="-lz $LIBS"
22784 if test x$gcc_no_link = xyes; then
22785 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22788 /* end confdefs.h. */
22790 /* Override any GCC internal prototype to avoid an error.
22791 Use char because int might match the return type of a GCC
22792 builtin and then its argument prototype would still apply. */
22793 #ifdef __cplusplus
22794 extern "C"
22795 #endif
22796 char deflate ();
22798 main ()
22800 return deflate ();
22802 return 0;
22804 _ACEOF
22805 if ac_fn_c_try_link "$LINENO"; then :
22806 ac_cv_lib_z_deflate=yes
22807 else
22808 ac_cv_lib_z_deflate=no
22810 rm -f core conftest.err conftest.$ac_objext \
22811 conftest$ac_exeext conftest.$ac_ext
22812 LIBS=$ac_check_lib_save_LIBS
22814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
22815 $as_echo "$ac_cv_lib_z_deflate" >&6; }
22816 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
22817 ZLIBSPEC=-lz
22818 else
22819 ZLIBSPEC=
22824 # Test for Gtk stuff, if asked for.
22825 if test "$use_gtk_awt" = yes; then
22827 succeeded=no
22829 if test -z "$PKG_CONFIG"; then
22830 if test -n "$ac_tool_prefix"; then
22831 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22832 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22834 $as_echo_n "checking for $ac_word... " >&6; }
22835 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22836 $as_echo_n "(cached) " >&6
22837 else
22838 case $PKG_CONFIG in
22839 [\\/]* | ?:[\\/]*)
22840 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22844 for as_dir in $PATH
22846 IFS=$as_save_IFS
22847 test -z "$as_dir" && as_dir=.
22848 for ac_exec_ext in '' $ac_executable_extensions; do
22849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22850 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22852 break 2
22854 done
22855 done
22856 IFS=$as_save_IFS
22859 esac
22861 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22862 if test -n "$PKG_CONFIG"; then
22863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22864 $as_echo "$PKG_CONFIG" >&6; }
22865 else
22866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22867 $as_echo "no" >&6; }
22872 if test -z "$ac_cv_path_PKG_CONFIG"; then
22873 ac_pt_PKG_CONFIG=$PKG_CONFIG
22874 # Extract the first word of "pkg-config", so it can be a program name with args.
22875 set dummy pkg-config; ac_word=$2
22876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22877 $as_echo_n "checking for $ac_word... " >&6; }
22878 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
22879 $as_echo_n "(cached) " >&6
22880 else
22881 case $ac_pt_PKG_CONFIG in
22882 [\\/]* | ?:[\\/]*)
22883 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22887 for as_dir in $PATH
22889 IFS=$as_save_IFS
22890 test -z "$as_dir" && as_dir=.
22891 for ac_exec_ext in '' $ac_executable_extensions; do
22892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22893 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22895 break 2
22897 done
22898 done
22899 IFS=$as_save_IFS
22902 esac
22904 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22905 if test -n "$ac_pt_PKG_CONFIG"; then
22906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
22907 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
22908 else
22909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22910 $as_echo "no" >&6; }
22913 if test "x$ac_pt_PKG_CONFIG" = x; then
22914 PKG_CONFIG="no"
22915 else
22916 case $cross_compiling:$ac_tool_warned in
22917 yes:)
22918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22920 ac_tool_warned=yes ;;
22921 esac
22922 PKG_CONFIG=$ac_pt_PKG_CONFIG
22924 else
22925 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22930 if test "$PKG_CONFIG" = "no" ; then
22931 echo "*** The pkg-config script could not be found. Make sure it is"
22932 echo "*** in your path, or set the PKG_CONFIG environment variable"
22933 echo "*** to the full path to pkg-config."
22934 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22935 else
22936 PKG_CONFIG_MIN_VERSION=0.9.0
22937 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.4" >&5
22939 $as_echo_n "checking for gtk+-2.0 >= 2.4... " >&6; }
22941 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
22942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22943 $as_echo "yes" >&6; }
22944 succeeded=yes
22946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
22947 $as_echo_n "checking GTK_CFLAGS... " >&6; }
22948 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
22949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
22950 $as_echo "$GTK_CFLAGS" >&6; }
22952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
22953 $as_echo_n "checking GTK_LIBS... " >&6; }
22954 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
22955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
22956 $as_echo "$GTK_LIBS" >&6; }
22957 else
22958 GTK_CFLAGS=""
22959 GTK_LIBS=""
22960 ## If we have a custom action on failure, don't print errors, but
22961 ## do set a variable so people can do so.
22962 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
22963 echo $GTK_PKG_ERRORS
22968 else
22969 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22970 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22974 if test $succeeded = yes; then
22976 else
22977 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
22984 succeeded=no
22986 if test -z "$PKG_CONFIG"; then
22987 if test -n "$ac_tool_prefix"; then
22988 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22989 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22991 $as_echo_n "checking for $ac_word... " >&6; }
22992 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22993 $as_echo_n "(cached) " >&6
22994 else
22995 case $PKG_CONFIG in
22996 [\\/]* | ?:[\\/]*)
22997 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23001 for as_dir in $PATH
23003 IFS=$as_save_IFS
23004 test -z "$as_dir" && as_dir=.
23005 for ac_exec_ext in '' $ac_executable_extensions; do
23006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23007 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23009 break 2
23011 done
23012 done
23013 IFS=$as_save_IFS
23016 esac
23018 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23019 if test -n "$PKG_CONFIG"; then
23020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
23021 $as_echo "$PKG_CONFIG" >&6; }
23022 else
23023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23024 $as_echo "no" >&6; }
23029 if test -z "$ac_cv_path_PKG_CONFIG"; then
23030 ac_pt_PKG_CONFIG=$PKG_CONFIG
23031 # Extract the first word of "pkg-config", so it can be a program name with args.
23032 set dummy pkg-config; ac_word=$2
23033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23034 $as_echo_n "checking for $ac_word... " >&6; }
23035 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
23036 $as_echo_n "(cached) " >&6
23037 else
23038 case $ac_pt_PKG_CONFIG in
23039 [\\/]* | ?:[\\/]*)
23040 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
23043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23044 for as_dir in $PATH
23046 IFS=$as_save_IFS
23047 test -z "$as_dir" && as_dir=.
23048 for ac_exec_ext in '' $ac_executable_extensions; do
23049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23050 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23052 break 2
23054 done
23055 done
23056 IFS=$as_save_IFS
23059 esac
23061 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
23062 if test -n "$ac_pt_PKG_CONFIG"; then
23063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
23064 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
23065 else
23066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23067 $as_echo "no" >&6; }
23070 if test "x$ac_pt_PKG_CONFIG" = x; then
23071 PKG_CONFIG="no"
23072 else
23073 case $cross_compiling:$ac_tool_warned in
23074 yes:)
23075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23077 ac_tool_warned=yes ;;
23078 esac
23079 PKG_CONFIG=$ac_pt_PKG_CONFIG
23081 else
23082 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
23087 if test "$PKG_CONFIG" = "no" ; then
23088 echo "*** The pkg-config script could not be found. Make sure it is"
23089 echo "*** in your path, or set the PKG_CONFIG environment variable"
23090 echo "*** to the full path to pkg-config."
23091 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23092 else
23093 PKG_CONFIG_MIN_VERSION=0.9.0
23094 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
23096 $as_echo_n "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... " >&6; }
23098 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
23099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23100 $as_echo "yes" >&6; }
23101 succeeded=yes
23103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
23104 $as_echo_n "checking GLIB_CFLAGS... " >&6; }
23105 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
23106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
23107 $as_echo "$GLIB_CFLAGS" >&6; }
23109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
23110 $as_echo_n "checking GLIB_LIBS... " >&6; }
23111 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
23112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
23113 $as_echo "$GLIB_LIBS" >&6; }
23114 else
23115 GLIB_CFLAGS=""
23116 GLIB_LIBS=""
23117 ## If we have a custom action on failure, don't print errors, but
23118 ## do set a variable so people can do so.
23119 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
23120 echo $GLIB_PKG_ERRORS
23125 else
23126 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23127 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23131 if test $succeeded = yes; then
23133 else
23134 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
23141 succeeded=no
23143 if test -z "$PKG_CONFIG"; then
23144 if test -n "$ac_tool_prefix"; then
23145 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23146 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23148 $as_echo_n "checking for $ac_word... " >&6; }
23149 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
23150 $as_echo_n "(cached) " >&6
23151 else
23152 case $PKG_CONFIG in
23153 [\\/]* | ?:[\\/]*)
23154 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23158 for as_dir in $PATH
23160 IFS=$as_save_IFS
23161 test -z "$as_dir" && as_dir=.
23162 for ac_exec_ext in '' $ac_executable_extensions; do
23163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23164 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23166 break 2
23168 done
23169 done
23170 IFS=$as_save_IFS
23173 esac
23175 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23176 if test -n "$PKG_CONFIG"; then
23177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
23178 $as_echo "$PKG_CONFIG" >&6; }
23179 else
23180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23181 $as_echo "no" >&6; }
23186 if test -z "$ac_cv_path_PKG_CONFIG"; then
23187 ac_pt_PKG_CONFIG=$PKG_CONFIG
23188 # Extract the first word of "pkg-config", so it can be a program name with args.
23189 set dummy pkg-config; ac_word=$2
23190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23191 $as_echo_n "checking for $ac_word... " >&6; }
23192 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
23193 $as_echo_n "(cached) " >&6
23194 else
23195 case $ac_pt_PKG_CONFIG in
23196 [\\/]* | ?:[\\/]*)
23197 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
23200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23201 for as_dir in $PATH
23203 IFS=$as_save_IFS
23204 test -z "$as_dir" && as_dir=.
23205 for ac_exec_ext in '' $ac_executable_extensions; do
23206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23207 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23209 break 2
23211 done
23212 done
23213 IFS=$as_save_IFS
23216 esac
23218 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
23219 if test -n "$ac_pt_PKG_CONFIG"; then
23220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
23221 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
23222 else
23223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23224 $as_echo "no" >&6; }
23227 if test "x$ac_pt_PKG_CONFIG" = x; then
23228 PKG_CONFIG="no"
23229 else
23230 case $cross_compiling:$ac_tool_warned in
23231 yes:)
23232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23234 ac_tool_warned=yes ;;
23235 esac
23236 PKG_CONFIG=$ac_pt_PKG_CONFIG
23238 else
23239 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
23244 if test "$PKG_CONFIG" = "no" ; then
23245 echo "*** The pkg-config script could not be found. Make sure it is"
23246 echo "*** in your path, or set the PKG_CONFIG environment variable"
23247 echo "*** to the full path to pkg-config."
23248 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23249 else
23250 PKG_CONFIG_MIN_VERSION=0.9.0
23251 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libart-2.0 >= 2.1" >&5
23253 $as_echo_n "checking for libart-2.0 >= 2.1... " >&6; }
23255 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
23256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23257 $as_echo "yes" >&6; }
23258 succeeded=yes
23260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_CFLAGS" >&5
23261 $as_echo_n "checking LIBART_CFLAGS... " >&6; }
23262 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
23263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_CFLAGS" >&5
23264 $as_echo "$LIBART_CFLAGS" >&6; }
23266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_LIBS" >&5
23267 $as_echo_n "checking LIBART_LIBS... " >&6; }
23268 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
23269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_LIBS" >&5
23270 $as_echo "$LIBART_LIBS" >&6; }
23271 else
23272 LIBART_CFLAGS=""
23273 LIBART_LIBS=""
23274 ## If we have a custom action on failure, don't print errors, but
23275 ## do set a variable so people can do so.
23276 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
23277 echo $LIBART_PKG_ERRORS
23282 else
23283 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23284 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23288 if test $succeeded = yes; then
23290 else
23291 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
23297 # We require the XTest Extension to support java.awt.Robot.
23298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
23299 $as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
23300 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
23301 $as_echo_n "(cached) " >&6
23302 else
23303 ac_check_lib_save_LIBS=$LIBS
23304 LIBS="-lXtst ${X_LIBS} $LIBS"
23305 if test x$gcc_no_link = xyes; then
23306 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23309 /* end confdefs.h. */
23311 /* Override any GCC internal prototype to avoid an error.
23312 Use char because int might match the return type of a GCC
23313 builtin and then its argument prototype would still apply. */
23314 #ifdef __cplusplus
23315 extern "C"
23316 #endif
23317 char XTestQueryExtension ();
23319 main ()
23321 return XTestQueryExtension ();
23323 return 0;
23325 _ACEOF
23326 if ac_fn_c_try_link "$LINENO"; then :
23327 ac_cv_lib_Xtst_XTestQueryExtension=yes
23328 else
23329 ac_cv_lib_Xtst_XTestQueryExtension=no
23331 rm -f core conftest.err conftest.$ac_objext \
23332 conftest$ac_exeext conftest.$ac_ext
23333 LIBS=$ac_check_lib_save_LIBS
23335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
23336 $as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
23337 if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
23338 true
23339 else
23340 as_fn_error "libXtst not found, required by java.awt.Robot" "$LINENO" 5
23345 # On Solaris, and maybe other architectures, the Boehm collector
23346 # requires -ldl.
23347 if test "$GC" = boehm; then
23348 case "${host}" in
23349 *-*-darwin*)
23352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
23353 $as_echo_n "checking for main in -ldl... " >&6; }
23354 if test "${ac_cv_lib_dl_main+set}" = set; then :
23355 $as_echo_n "(cached) " >&6
23356 else
23357 ac_check_lib_save_LIBS=$LIBS
23358 LIBS="-ldl $LIBS"
23359 if test x$gcc_no_link = xyes; then
23360 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23363 /* end confdefs.h. */
23367 main ()
23369 return main ();
23371 return 0;
23373 _ACEOF
23374 if ac_fn_c_try_link "$LINENO"; then :
23375 ac_cv_lib_dl_main=yes
23376 else
23377 ac_cv_lib_dl_main=no
23379 rm -f core conftest.err conftest.$ac_objext \
23380 conftest$ac_exeext conftest.$ac_ext
23381 LIBS=$ac_check_lib_save_LIBS
23383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
23384 $as_echo "$ac_cv_lib_dl_main" >&6; }
23385 if test "x$ac_cv_lib_dl_main" = x""yes; then :
23386 SYSTEMSPEC="$SYSTEMSPEC -ldl"
23390 esac
23394 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
23395 case $build in
23396 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
23397 *) CLASSPATH_SEPARATOR=':' ;;
23398 esac
23401 # We must search the source tree for java.lang, since we still don't
23402 # have libgcj.jar nor java/lang/*.class
23403 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
23404 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
23406 # Since some classes depend on this one, we need its source available
23407 # before we can do any GCJ compilation test :-(
23408 if test ! -f gnu/classpath/Configuration.java; then
23409 test -d gnu || mkdir gnu
23410 test -d gnu/classpath || mkdir gnu/classpath
23411 # Note that it is not crucial that all the values here be correct.
23412 sed -e "s,@prefix@,$expanded_prefix," \
23413 -e "s,@VERSION@,$VERSION," \
23414 -e "s,@LIBDEBUG@,false," \
23415 -e "s,@INIT_LOAD_LIBRARY@,false," \
23416 -e "s,@@,$LIBGCJDEBUG," \
23417 -e "s,@default_toolkit@,$TOOLKIT," \
23418 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
23419 -e "s,@GTK_CAIRO_ENABLED@,false," \
23420 -e "s,@ECJ_JAR@,," \
23421 -e "s,@WANT_NATIVE_BIG_INTEGER@,false," \
23422 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
23423 > gnu/classpath/Configuration.java
23424 # We do not want to redirect the output of the grep below to /dev/null,
23425 # but we add /dev/null to the input list so that grep will print the
23426 # filename of Configuration.java in case it finds any matches.
23427 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
23428 as_fn_error "configure.ac is missing the substitutions above" "$LINENO" 5
23433 if test -n "$ac_tool_prefix"; then
23434 for ac_prog in gcj
23436 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23437 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23439 $as_echo_n "checking for $ac_word... " >&6; }
23440 if test "${ac_cv_prog_GCJ+set}" = set; then :
23441 $as_echo_n "(cached) " >&6
23442 else
23443 if test -n "$GCJ"; then
23444 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
23445 else
23446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23447 for as_dir in $PATH
23449 IFS=$as_save_IFS
23450 test -z "$as_dir" && as_dir=.
23451 for ac_exec_ext in '' $ac_executable_extensions; do
23452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23453 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
23454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23455 break 2
23457 done
23458 done
23459 IFS=$as_save_IFS
23463 GCJ=$ac_cv_prog_GCJ
23464 if test -n "$GCJ"; then
23465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
23466 $as_echo "$GCJ" >&6; }
23467 else
23468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23469 $as_echo "no" >&6; }
23473 test -n "$GCJ" && break
23474 done
23476 if test -z "$GCJ"; then
23477 ac_ct_GCJ=$GCJ
23478 for ac_prog in gcj
23480 # Extract the first word of "$ac_prog", so it can be a program name with args.
23481 set dummy $ac_prog; ac_word=$2
23482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23483 $as_echo_n "checking for $ac_word... " >&6; }
23484 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
23485 $as_echo_n "(cached) " >&6
23486 else
23487 if test -n "$ac_ct_GCJ"; then
23488 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
23489 else
23490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23491 for as_dir in $PATH
23493 IFS=$as_save_IFS
23494 test -z "$as_dir" && as_dir=.
23495 for ac_exec_ext in '' $ac_executable_extensions; do
23496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23497 ac_cv_prog_ac_ct_GCJ="$ac_prog"
23498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23499 break 2
23501 done
23502 done
23503 IFS=$as_save_IFS
23507 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
23508 if test -n "$ac_ct_GCJ"; then
23509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
23510 $as_echo "$ac_ct_GCJ" >&6; }
23511 else
23512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23513 $as_echo "no" >&6; }
23517 test -n "$ac_ct_GCJ" && break
23518 done
23520 if test "x$ac_ct_GCJ" = x; then
23521 GCJ="gcj"
23522 else
23523 case $cross_compiling:$ac_tool_warned in
23524 yes:)
23525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23527 ac_tool_warned=yes ;;
23528 esac
23529 GCJ=$ac_ct_GCJ
23533 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
23534 if test "x${GCJFLAGS-unset}" = xunset; then
23535 GCJFLAGS="-g -O2"
23539 depcc="$GCJ" am_compiler_list='gcc3 gcc'
23541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23542 $as_echo_n "checking dependency style of $depcc... " >&6; }
23543 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
23544 $as_echo_n "(cached) " >&6
23545 else
23546 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23547 # We make a subdir and do the tests there. Otherwise we can end up
23548 # making bogus files that we don't know about and never remove. For
23549 # instance it was reported that on HP-UX the gcc test will end up
23550 # making a dummy file named `D' -- because `-MD' means `put the output
23551 # in D'.
23552 mkdir conftest.dir
23553 # Copy depcomp to subdir because otherwise we won't find it if we're
23554 # using a relative directory.
23555 cp "$am_depcomp" conftest.dir
23556 cd conftest.dir
23557 # We will build objects and dependencies in a subdirectory because
23558 # it helps to detect inapplicable dependency modes. For instance
23559 # both Tru64's cc and ICC support -MD to output dependencies as a
23560 # side effect of compilation, but ICC will put the dependencies in
23561 # the current directory while Tru64 will put them in the object
23562 # directory.
23563 mkdir sub
23565 am_cv_GCJ_dependencies_compiler_type=none
23566 if test "$am_compiler_list" = ""; then
23567 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23569 am__universal=false
23572 for depmode in $am_compiler_list; do
23573 # Setup a source with many dependencies, because some compilers
23574 # like to wrap large dependency lists on column 80 (with \), and
23575 # we should not choose a depcomp mode which is confused by this.
23577 # We need to recreate these files for each test, as the compiler may
23578 # overwrite some of them when testing with obscure command lines.
23579 # This happens at least with the AIX C compiler.
23580 : > sub/conftest.c
23581 for i in 1 2 3 4 5 6; do
23582 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23583 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23584 # Solaris 8's {/usr,}/bin/sh.
23585 touch sub/conftst$i.h
23586 done
23587 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23589 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23590 # mode. It turns out that the SunPro C++ compiler does not properly
23591 # handle `-M -o', and we need to detect this. Also, some Intel
23592 # versions had trouble with output in subdirs
23593 am__obj=sub/conftest.${OBJEXT-o}
23594 am__minus_obj="-o $am__obj"
23595 case $depmode in
23596 gcc)
23597 # This depmode causes a compiler race in universal mode.
23598 test "$am__universal" = false || continue
23600 nosideeffect)
23601 # after this tag, mechanisms are not by side-effect, so they'll
23602 # only be used when explicitly requested
23603 if test "x$enable_dependency_tracking" = xyes; then
23604 continue
23605 else
23606 break
23609 msvisualcpp | msvcmsys)
23610 # This compiler won't grok `-c -o', but also, the minuso test has
23611 # not run yet. These depmodes are late enough in the game, and
23612 # so weak that their functioning should not be impacted.
23613 am__obj=conftest.${OBJEXT-o}
23614 am__minus_obj=
23616 none) break ;;
23617 esac
23618 if depmode=$depmode \
23619 source=sub/conftest.c object=$am__obj \
23620 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23621 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23622 >/dev/null 2>conftest.err &&
23623 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23624 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23625 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23626 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23627 # icc doesn't choke on unknown options, it will just issue warnings
23628 # or remarks (even with -Werror). So we grep stderr for any message
23629 # that says an option was ignored or not supported.
23630 # When given -MP, icc 7.0 and 7.1 complain thusly:
23631 # icc: Command line warning: ignoring option '-M'; no argument required
23632 # The diagnosis changed in icc 8.0:
23633 # icc: Command line remark: option '-MP' not supported
23634 if (grep 'ignoring option' conftest.err ||
23635 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23636 am_cv_GCJ_dependencies_compiler_type=$depmode
23637 break
23640 done
23642 cd ..
23643 rm -rf conftest.dir
23644 else
23645 am_cv_GCJ_dependencies_compiler_type=none
23649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
23650 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
23651 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
23654 test "x$enable_dependency_tracking" != xno \
23655 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
23656 am__fastdepGCJ_TRUE=
23657 am__fastdepGCJ_FALSE='#'
23658 else
23659 am__fastdepGCJ_TRUE='#'
23660 am__fastdepGCJ_FALSE=
23666 # Now remove it.
23667 rm -f gnu/classpath/Configuration.java
23669 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
23671 # The cast to long int works around a bug in the HP C Compiler
23672 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23673 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23674 # This bug is HP SR number 8606223364.
23675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
23676 $as_echo_n "checking size of void *... " >&6; }
23677 if test "${ac_cv_sizeof_void_p+set}" = set; then :
23678 $as_echo_n "(cached) " >&6
23679 else
23680 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
23682 else
23683 if test "$ac_cv_type_void_p" = yes; then
23684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23686 { as_fn_set_status 77
23687 as_fn_error "cannot compute sizeof (void *)
23688 See \`config.log' for more details." "$LINENO" 5; }; }
23689 else
23690 ac_cv_sizeof_void_p=0
23695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
23696 $as_echo "$ac_cv_sizeof_void_p" >&6; }
23700 cat >>confdefs.h <<_ACEOF
23701 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23702 _ACEOF
23706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23707 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23708 if test "${ac_cv_c_bigendian+set}" = set; then :
23709 $as_echo_n "(cached) " >&6
23710 else
23711 ac_cv_c_bigendian=unknown
23712 # See if we're dealing with a universal compiler.
23713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23714 /* end confdefs.h. */
23715 #ifndef __APPLE_CC__
23716 not a universal capable compiler
23717 #endif
23718 typedef int dummy;
23720 _ACEOF
23721 if ac_fn_c_try_compile "$LINENO"; then :
23723 # Check for potential -arch flags. It is not universal unless
23724 # there are at least two -arch flags with different values.
23725 ac_arch=
23726 ac_prev=
23727 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23728 if test -n "$ac_prev"; then
23729 case $ac_word in
23730 i?86 | x86_64 | ppc | ppc64)
23731 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23732 ac_arch=$ac_word
23733 else
23734 ac_cv_c_bigendian=universal
23735 break
23738 esac
23739 ac_prev=
23740 elif test "x$ac_word" = "x-arch"; then
23741 ac_prev=arch
23743 done
23745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23746 if test $ac_cv_c_bigendian = unknown; then
23747 # See if sys/param.h defines the BYTE_ORDER macro.
23748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23749 /* end confdefs.h. */
23750 #include <sys/types.h>
23751 #include <sys/param.h>
23754 main ()
23756 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23757 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23758 && LITTLE_ENDIAN)
23759 bogus endian macros
23760 #endif
23763 return 0;
23765 _ACEOF
23766 if ac_fn_c_try_compile "$LINENO"; then :
23767 # It does; now see whether it defined to BIG_ENDIAN or not.
23768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23769 /* end confdefs.h. */
23770 #include <sys/types.h>
23771 #include <sys/param.h>
23774 main ()
23776 #if BYTE_ORDER != BIG_ENDIAN
23777 not big endian
23778 #endif
23781 return 0;
23783 _ACEOF
23784 if ac_fn_c_try_compile "$LINENO"; then :
23785 ac_cv_c_bigendian=yes
23786 else
23787 ac_cv_c_bigendian=no
23789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23793 if test $ac_cv_c_bigendian = unknown; then
23794 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23796 /* end confdefs.h. */
23797 #include <limits.h>
23800 main ()
23802 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23803 bogus endian macros
23804 #endif
23807 return 0;
23809 _ACEOF
23810 if ac_fn_c_try_compile "$LINENO"; then :
23811 # It does; now see whether it defined to _BIG_ENDIAN or not.
23812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23813 /* end confdefs.h. */
23814 #include <limits.h>
23817 main ()
23819 #ifndef _BIG_ENDIAN
23820 not big endian
23821 #endif
23824 return 0;
23826 _ACEOF
23827 if ac_fn_c_try_compile "$LINENO"; then :
23828 ac_cv_c_bigendian=yes
23829 else
23830 ac_cv_c_bigendian=no
23832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23836 if test $ac_cv_c_bigendian = unknown; then
23837 # Compile a test program.
23838 if test "$cross_compiling" = yes; then :
23839 # Try to guess by grepping values from an object file.
23840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23841 /* end confdefs.h. */
23842 short int ascii_mm[] =
23843 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23844 short int ascii_ii[] =
23845 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23846 int use_ascii (int i) {
23847 return ascii_mm[i] + ascii_ii[i];
23849 short int ebcdic_ii[] =
23850 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23851 short int ebcdic_mm[] =
23852 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23853 int use_ebcdic (int i) {
23854 return ebcdic_mm[i] + ebcdic_ii[i];
23856 extern int foo;
23859 main ()
23861 return use_ascii (foo) == use_ebcdic (foo);
23863 return 0;
23865 _ACEOF
23866 if ac_fn_c_try_compile "$LINENO"; then :
23867 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23868 ac_cv_c_bigendian=yes
23870 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23871 if test "$ac_cv_c_bigendian" = unknown; then
23872 ac_cv_c_bigendian=no
23873 else
23874 # finding both strings is unlikely to happen, but who knows?
23875 ac_cv_c_bigendian=unknown
23879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23880 else
23881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23882 /* end confdefs.h. */
23883 $ac_includes_default
23885 main ()
23888 /* Are we little or big endian? From Harbison&Steele. */
23889 union
23891 long int l;
23892 char c[sizeof (long int)];
23893 } u;
23894 u.l = 1;
23895 return u.c[sizeof (long int) - 1] == 1;
23898 return 0;
23900 _ACEOF
23901 if ac_fn_c_try_run "$LINENO"; then :
23902 ac_cv_c_bigendian=no
23903 else
23904 ac_cv_c_bigendian=yes
23906 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23907 conftest.$ac_objext conftest.beam conftest.$ac_ext
23912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23913 $as_echo "$ac_cv_c_bigendian" >&6; }
23914 case $ac_cv_c_bigendian in #(
23915 yes)
23916 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23917 ;; #(
23919 ;; #(
23920 universal)
23922 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23924 ;; #(
23926 as_fn_error "unknown endianness
23927 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23928 esac
23931 ZLIBS=
23932 SYS_ZLIBS=
23933 ZINCS=
23935 if test -z "$ZLIBSPEC"; then
23936 # Use zlib from the GCC tree.
23937 ZINCS='-I$(top_srcdir)/../zlib'
23938 ZLIBS=../zlib/libzgcj_convenience.la
23939 else
23940 # System's zlib.
23941 SYS_ZLIBS="$ZLIBSPEC"
23953 if test "$NATIVE" = yes; then
23954 NATIVE_TRUE=
23955 NATIVE_FALSE='#'
23956 else
23957 NATIVE_TRUE='#'
23958 NATIVE_FALSE=
23961 if test "$enable_shared" = yes; then
23962 ENABLE_SHARED_TRUE=
23963 ENABLE_SHARED_FALSE='#'
23964 else
23965 ENABLE_SHARED_TRUE='#'
23966 ENABLE_SHARED_FALSE=
23969 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
23970 NEEDS_DATA_START_TRUE=
23971 NEEDS_DATA_START_FALSE='#'
23972 else
23973 NEEDS_DATA_START_TRUE='#'
23974 NEEDS_DATA_START_FALSE=
23977 if test -z "${with_multisubdir}"; then
23978 INSTALL_BINARIES_TRUE=
23979 INSTALL_BINARIES_FALSE='#'
23980 else
23981 INSTALL_BINARIES_TRUE='#'
23982 INSTALL_BINARIES_FALSE=
23987 # Process the option "--enable-version-specific-runtime-libs"
23988 # Calculate toolexeclibdir
23989 case ${version_specific_libs} in
23990 yes)
23991 # Need the gcc compiler version to know where to install libraries
23992 # and header files if --enable-version-specific-runtime-libs option
23993 # is selected.
23994 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
23995 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
23996 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
23997 toolexeclibdir=$toolexecmainlibdir
24000 if test -n "$with_cross_host" &&
24001 test x"$with_cross_host" != x"no"; then
24002 # Install a library built with a cross compiler in tooldir, not libdir.
24003 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
24004 toolexecmainlibdir='$(toolexecdir)/lib'
24005 else
24006 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
24007 toolexecmainlibdir='$(libdir)'
24009 multi_os_directory=`$CC -print-multi-os-directory`
24010 case $multi_os_directory in
24011 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
24012 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
24013 esac
24015 esac
24020 # Determine gcj and libgcj version number.
24021 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
24022 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
24023 GCJVERSION=$gcjversion
24026 cat >>confdefs.h <<_ACEOF
24027 #define GCJVERSION "$GCJVERSION"
24028 _ACEOF
24031 # Determine where the standard .db file and GNU Classpath JNI
24032 # libraries are found.
24033 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
24034 dbexecdir='$(toolexeclibdir)/'$gcjsubdir
24039 $as_echo "#define JV_VERSION \"1.5.0\"" >>confdefs.h
24042 $as_echo "#define JV_API_VERSION \"1.5\"" >>confdefs.h
24046 case "${with_gxx_include_dir}" in
24047 yes)
24048 as_fn_error "--with-gxx-include-dir=[dir] requires a directory" "$LINENO" 5
24050 no | "")
24051 case "${enable_version_specific_runtime_libs}" in
24052 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
24054 libstdcxx_incdir='c++/$(gcc_version)'
24055 gxx_include_dir='include/$(libstdcxx_incdir)'
24056 if test -n "$with_cross_host" &&
24057 test x"$with_cross_host" != x"no"; then
24058 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
24059 else
24060 gxx_include_dir='${prefix}/'"$gxx_include_dir"
24061 fi;;
24062 esac ;;
24063 *) gxx_include_dir=${with_gxx_include_dir} ;;
24064 esac
24069 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
24070 # On that system, sys/ioctl.h will not include sys/filio.h unless
24071 # BSD_COMP is defined; just including sys/filio.h is simpler.
24072 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
24073 # for now. If you change this, you also must update natFile.cc.
24074 for ac_header in unistd.h sys/time.h sys/types.h fcntl.h \
24075 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
24076 sys/socket.h netinet/in.h arpa/inet.h netdb.h \
24077 pwd.h sys/config.h stdint.h langinfo.h locale.h \
24078 dirent.h sys/rw_lock.h magic.h ifaddrs.h
24079 do :
24080 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24081 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24082 eval as_val=\$$as_ac_Header
24083 if test "x$as_val" = x""yes; then :
24084 cat >>confdefs.h <<_ACEOF
24085 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24086 _ACEOF
24090 done
24093 # sys/socket.h is a prerequisite for net/if.h on Solaris.
24094 for ac_header in net/if.h
24095 do :
24096 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
24097 #ifdef HAVE_SYS_SOCKET_H
24098 #include <sys/socket.h>
24099 #endif
24102 if test "x$ac_cv_header_net_if_h" = x""yes; then :
24103 cat >>confdefs.h <<_ACEOF
24104 #define HAVE_NET_IF_H 1
24105 _ACEOF
24109 done
24112 for ac_header in inttypes.h
24113 do :
24114 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
24115 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
24116 cat >>confdefs.h <<_ACEOF
24117 #define HAVE_INTTYPES_H 1
24118 _ACEOF
24121 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
24124 $as_echo "#define JV_HAVE_INTTYPES_H 1" >>confdefs.h
24129 done
24132 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
24133 if test "x$ac_cv_type_ssize_t" = x""yes; then :
24135 else
24137 cat >>confdefs.h <<_ACEOF
24138 #define ssize_t int
24139 _ACEOF
24143 ac_fn_c_check_type "$LINENO" "magic_t" "ac_cv_type_magic_t" "
24144 #ifdef HAVE_MAGIC_H
24145 #include <magic.h>
24146 #endif
24148 if test "x$ac_cv_type_magic_t" = x""yes; then :
24151 $as_echo "#define HAVE_MAGIC_T 1" >>confdefs.h
24156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5
24157 $as_echo_n "checking for in_addr_t... " >&6; }
24158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24159 /* end confdefs.h. */
24160 #include <sys/types.h>
24161 #if STDC_HEADERS
24162 #include <stdlib.h>
24163 #include <stddef.h>
24164 #endif
24165 #if HAVE_NETINET_IN_H
24166 #include <netinet/in.h>
24167 #endif
24169 main ()
24171 in_addr_t foo;
24173 return 0;
24175 _ACEOF
24176 if ac_fn_c_try_compile "$LINENO"; then :
24178 $as_echo "#define HAVE_IN_ADDR_T 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 ip_mreq is in netinet/in.h" >&5
24189 $as_echo_n "checking whether struct ip_mreq 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 ip_mreq mreq;
24198 return 0;
24200 _ACEOF
24201 if ac_fn_c_try_compile "$LINENO"; then :
24203 $as_echo "#define HAVE_STRUCT_IP_MREQ 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 whether struct ipv6_mreq is in netinet/in.h" >&5
24214 $as_echo_n "checking whether struct ipv6_mreq is in netinet/in.h... " >&6; }
24215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24216 /* end confdefs.h. */
24217 #include <netinet/in.h>
24219 main ()
24221 struct ipv6_mreq mreq6;
24223 return 0;
24225 _ACEOF
24226 if ac_fn_c_try_compile "$LINENO"; then :
24228 $as_echo "#define HAVE_STRUCT_IPV6_MREQ 1" >>confdefs.h
24230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24231 $as_echo "yes" >&6; }
24232 else
24233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24234 $as_echo "no" >&6; }
24236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
24239 $as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
24240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24241 /* end confdefs.h. */
24242 #include <netinet/in.h>
24244 main ()
24246 struct sockaddr_in6 addr6;
24248 return 0;
24250 _ACEOF
24251 if ac_fn_c_try_compile "$LINENO"; then :
24253 $as_echo "#define HAVE_INET6 1" >>confdefs.h
24255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24256 $as_echo "yes" >&6; }
24257 else
24258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24259 $as_echo "no" >&6; }
24261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
24264 $as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
24265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24266 /* end confdefs.h. */
24267 #define _POSIX_PII_SOCKET
24268 #include <sys/types.h>
24269 #include <sys/socket.h>
24271 main ()
24273 socklen_t x = 5;
24275 return 0;
24277 _ACEOF
24278 if ac_fn_c_try_compile "$LINENO"; then :
24280 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
24282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24283 $as_echo "yes" >&6; }
24284 else
24285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24286 $as_echo "no" >&6; }
24288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
24291 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
24292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24293 /* end confdefs.h. */
24294 #include <time.h>
24296 main ()
24298 struct tm tim; tim.tm_gmtoff = 0;
24300 return 0;
24302 _ACEOF
24303 if ac_fn_c_try_compile "$LINENO"; then :
24305 $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
24307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24308 $as_echo "yes" >&6; }
24309 else
24310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24311 $as_echo "no" >&6; }
24312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
24313 $as_echo_n "checking for global timezone variable... " >&6; }
24314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24315 /* end confdefs.h. */
24316 #include <time.h>
24318 main ()
24320 void i(){long z2 = 2*timezone;}
24322 return 0;
24324 _ACEOF
24325 if ac_fn_c_try_compile "$LINENO"; then :
24327 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
24329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24330 $as_echo "yes" >&6; }
24331 else
24332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24333 $as_echo "no" >&6; }
24334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
24335 $as_echo_n "checking for global _timezone variable... " >&6; }
24336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24337 /* end confdefs.h. */
24338 #include <time.h>
24340 main ()
24342 long z2 = _timezone;
24344 return 0;
24346 _ACEOF
24347 if ac_fn_c_try_compile "$LINENO"; then :
24349 $as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24352 $as_echo "yes" >&6; }
24353 else
24354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24355 $as_echo "no" >&6; }
24357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24363 for ac_prog in perl
24365 # Extract the first word of "$ac_prog", so it can be a program name with args.
24366 set dummy $ac_prog; ac_word=$2
24367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24368 $as_echo_n "checking for $ac_word... " >&6; }
24369 if test "${ac_cv_prog_PERL+set}" = set; then :
24370 $as_echo_n "(cached) " >&6
24371 else
24372 if test -n "$PERL"; then
24373 ac_cv_prog_PERL="$PERL" # Let the user override the test.
24374 else
24375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24376 for as_dir in $PATH
24378 IFS=$as_save_IFS
24379 test -z "$as_dir" && as_dir=.
24380 for ac_exec_ext in '' $ac_executable_extensions; do
24381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24382 ac_cv_prog_PERL="$ac_prog"
24383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24384 break 2
24386 done
24387 done
24388 IFS=$as_save_IFS
24392 PERL=$ac_cv_prog_PERL
24393 if test -n "$PERL"; then
24394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
24395 $as_echo "$PERL" >&6; }
24396 else
24397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24398 $as_echo "no" >&6; }
24402 test -n "$PERL" && break
24403 done
24404 test -n "$PERL" || PERL="false"
24407 SYSDEP_SOURCES=
24408 SIGNAL_HANDLER_AUX=
24410 case "${host}" in
24411 *-*-solaris2*)
24412 SIGNAL_HANDLER=include/posix-signal.h
24414 i?86-*-linux*)
24415 SIGNAL_HANDLER=include/i386-signal.h
24416 SIGNAL_HANDLER_AUX=include/x86_64-signal.h
24418 # ia64-*)
24419 # SYSDEP_SOURCES=sysdep/ia64.c
24420 # test -d sysdep || mkdir sysdep
24421 # ;;
24422 hppa*-*-linux*)
24423 SIGNAL_HANDLER=include/pa-signal.h
24425 hppa*-hp-hpux*)
24426 SIGNAL_HANDLER=include/hppa-signal.h
24428 ia64-*-linux*)
24429 SIGNAL_HANDLER=include/dwarf2-signal.h
24431 powerpc*-*-linux*)
24432 SIGNAL_HANDLER=include/powerpc-signal.h
24434 alpha*-*-linux*)
24435 SIGNAL_HANDLER=include/dwarf2-signal.h
24437 s390*-*-linux*)
24438 SIGNAL_HANDLER=include/s390-signal.h
24440 x86_64*-*-linux*)
24441 SIGNAL_HANDLER=include/x86_64-signal.h
24442 SIGNAL_HANDLER_AUX=include/i386-signal.h
24444 sparc*-*-linux*)
24445 SIGNAL_HANDLER=include/dwarf2-signal.h
24447 sh*-*-linux*)
24448 SIGNAL_HANDLER=include/sh-signal.h
24450 *mingw*)
24451 SIGNAL_HANDLER=include/win32-signal.h
24453 mips*-*-linux*)
24454 SIGNAL_HANDLER=include/mips-signal.h
24456 m68*-*-linux*)
24457 SIGNAL_HANDLER=include/dwarf2-signal.h
24459 powerpc*-*-darwin* | i?86-*-darwin[912]* | x86_64-*-darwin[912]*)
24460 SIGNAL_HANDLER=include/darwin-signal.h
24462 powerpc*-*-aix*)
24463 SIGNAL_HANDLER=include/aix-signal.h
24466 SIGNAL_HANDLER=include/default-signal.h
24468 esac
24470 # If we're using sjlj exceptions, forget what we just learned.
24471 if test "$enable_sjlj_exceptions" = yes; then
24472 SIGNAL_HANDLER=include/default-signal.h
24473 SIGNAL_HANDLER_AUX=
24478 if test -z "$SIGNAL_HANDLER_AUX"; then
24479 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
24482 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
24485 if test "${multilib}" = "yes"; then
24486 multilib_arg="--enable-multilib"
24487 else
24488 multilib_arg=
24491 # See if we support thread-local storage.
24494 # Check whether --enable-tls was given.
24495 if test "${enable_tls+set}" = set; then :
24496 enableval=$enable_tls;
24497 case "$enableval" in
24498 yes|no) ;;
24499 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
24500 esac
24502 else
24503 enable_tls=yes
24507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
24508 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
24509 if test "${gcc_cv_have_tls+set}" = set; then :
24510 $as_echo_n "(cached) " >&6
24511 else
24513 if test "$cross_compiling" = yes; then :
24514 if test x$gcc_no_link = xyes; then
24515 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24518 /* end confdefs.h. */
24519 __thread int a; int b; int main() { return a = b; }
24520 _ACEOF
24521 if ac_fn_c_try_link "$LINENO"; then :
24522 chktls_save_LDFLAGS="$LDFLAGS"
24523 case $host in
24524 *-*-linux*)
24525 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
24527 esac
24528 chktls_save_CFLAGS="$CFLAGS"
24529 CFLAGS="-fPIC $CFLAGS"
24530 if test x$gcc_no_link = xyes; then
24531 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24534 /* end confdefs.h. */
24535 int f() { return 0; }
24536 _ACEOF
24537 if ac_fn_c_try_link "$LINENO"; then :
24538 if test x$gcc_no_link = xyes; then
24539 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24542 /* end confdefs.h. */
24543 __thread int a; int b; int f() { return a = b; }
24544 _ACEOF
24545 if ac_fn_c_try_link "$LINENO"; then :
24546 gcc_cv_have_tls=yes
24547 else
24548 gcc_cv_have_tls=no
24550 rm -f core conftest.err conftest.$ac_objext \
24551 conftest$ac_exeext conftest.$ac_ext
24552 else
24553 gcc_cv_have_tls=yes
24555 rm -f core conftest.err conftest.$ac_objext \
24556 conftest$ac_exeext conftest.$ac_ext
24557 CFLAGS="$chktls_save_CFLAGS"
24558 LDFLAGS="$chktls_save_LDFLAGS"
24559 else
24560 gcc_cv_have_tls=no
24562 rm -f core conftest.err conftest.$ac_objext \
24563 conftest$ac_exeext conftest.$ac_ext
24566 else
24567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24568 /* end confdefs.h. */
24569 __thread int a; int b; int main() { return a = b; }
24570 _ACEOF
24571 if ac_fn_c_try_run "$LINENO"; then :
24572 chktls_save_LDFLAGS="$LDFLAGS"
24573 LDFLAGS="-static $LDFLAGS"
24574 if test x$gcc_no_link = xyes; then
24575 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24578 /* end confdefs.h. */
24579 int main() { return 0; }
24580 _ACEOF
24581 if ac_fn_c_try_link "$LINENO"; then :
24582 if test "$cross_compiling" = yes; then :
24583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24585 as_fn_error "cannot run test program while cross compiling
24586 See \`config.log' for more details." "$LINENO" 5; }
24587 else
24588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24589 /* end confdefs.h. */
24590 __thread int a; int b; int main() { return a = b; }
24591 _ACEOF
24592 if ac_fn_c_try_run "$LINENO"; then :
24593 gcc_cv_have_tls=yes
24594 else
24595 gcc_cv_have_tls=no
24597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24598 conftest.$ac_objext conftest.beam conftest.$ac_ext
24601 else
24602 gcc_cv_have_tls=yes
24604 rm -f core conftest.err conftest.$ac_objext \
24605 conftest$ac_exeext conftest.$ac_ext
24606 LDFLAGS="$chktls_save_LDFLAGS"
24607 if test $gcc_cv_have_tls = yes; then
24608 chktls_save_CFLAGS="$CFLAGS"
24609 thread_CFLAGS=failed
24610 for flag in '' '-pthread' '-lpthread'; do
24611 CFLAGS="$flag $chktls_save_CFLAGS"
24612 if test x$gcc_no_link = xyes; then
24613 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24616 /* end confdefs.h. */
24617 #include <pthread.h>
24618 void *g(void *d) { return NULL; }
24620 main ()
24622 pthread_t t; pthread_create(&t,NULL,g,NULL);
24624 return 0;
24626 _ACEOF
24627 if ac_fn_c_try_link "$LINENO"; then :
24628 thread_CFLAGS="$flag"
24630 rm -f core conftest.err conftest.$ac_objext \
24631 conftest$ac_exeext conftest.$ac_ext
24632 if test "X$thread_CFLAGS" != Xfailed; then
24633 break
24635 done
24636 CFLAGS="$chktls_save_CFLAGS"
24637 if test "X$thread_CFLAGS" != Xfailed; then
24638 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
24639 if test "$cross_compiling" = yes; then :
24640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24642 as_fn_error "cannot run test program while cross compiling
24643 See \`config.log' for more details." "$LINENO" 5; }
24644 else
24645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24646 /* end confdefs.h. */
24647 #include <pthread.h>
24648 __thread int a;
24649 static int *volatile a_in_other_thread;
24650 static void *
24651 thread_func (void *arg)
24653 a_in_other_thread = &a;
24654 return (void *)0;
24657 main ()
24659 pthread_t thread;
24660 void *thread_retval;
24661 int *volatile a_in_main_thread;
24662 a_in_main_thread = &a;
24663 if (pthread_create (&thread, (pthread_attr_t *)0,
24664 thread_func, (void *)0))
24665 return 0;
24666 if (pthread_join (thread, &thread_retval))
24667 return 0;
24668 return (a_in_other_thread == a_in_main_thread);
24670 return 0;
24672 _ACEOF
24673 if ac_fn_c_try_run "$LINENO"; then :
24674 gcc_cv_have_tls=yes
24675 else
24676 gcc_cv_have_tls=no
24678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24679 conftest.$ac_objext conftest.beam conftest.$ac_ext
24682 CFLAGS="$chktls_save_CFLAGS"
24685 else
24686 gcc_cv_have_tls=no
24688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24689 conftest.$ac_objext conftest.beam conftest.$ac_ext
24693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
24694 $as_echo "$gcc_cv_have_tls" >&6; }
24695 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
24697 $as_echo "#define HAVE_TLS 1" >>confdefs.h
24701 # For _Unwind_GetIPInfo.
24704 # Check whether --with-system-libunwind was given.
24705 if test "${with_system_libunwind+set}" = set; then :
24706 withval=$with_system_libunwind;
24709 # If system-libunwind was not specifically set, pick a default setting.
24710 if test x$with_system_libunwind = x; then
24711 case ${target} in
24712 ia64-*-hpux*) with_system_libunwind=yes ;;
24713 *) with_system_libunwind=no ;;
24714 esac
24716 # Based on system-libunwind and target, do we have ipinfo?
24717 if test x$with_system_libunwind = xyes; then
24718 case ${target} in
24719 ia64-*-*) have_unwind_getipinfo=no ;;
24720 *) have_unwind_getipinfo=yes ;;
24721 esac
24722 else
24723 # Darwin before version 9 does not have _Unwind_GetIPInfo.
24725 case ${target} in
24726 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
24727 *) have_unwind_getipinfo=yes ;;
24728 esac
24732 if test x$have_unwind_getipinfo = xyes; then
24734 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
24739 # See if linker supports anonymous version scripts.
24740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous version scripts" >&5
24741 $as_echo_n "checking whether ld supports anonymous version scripts... " >&6; }
24742 if test "${libjava_cv_anon_version_script+set}" = set; then :
24743 $as_echo_n "(cached) " >&6
24744 else
24745 # Check whether --enable-symvers was given.
24746 if test "${enable_symvers+set}" = set; then :
24747 enableval=$enable_symvers; case "$enableval" in
24748 yes|gnu*) libjava_cv_anon_version_script=yes ;;
24749 no) libjava_cv_anon_version_script=no ;;
24750 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5;;
24751 esac
24752 else
24753 libjava_cv_anon_version_script=yes
24757 if test x$libjava_cv_anon_version_script = xyes; then
24758 save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
24759 CFLAGS="$CFLAGS -fPIC";
24760 LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
24761 echo '{ global: globalsymb*; local: *; };' > conftest.map
24762 if test x$gcc_no_link = xyes; then
24763 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24766 /* end confdefs.h. */
24767 void globalsymbol (void) {} void localsymbol (void) {}
24769 main ()
24773 return 0;
24775 _ACEOF
24776 if ac_fn_c_try_link "$LINENO"; then :
24777 libjava_cv_anon_version_script=gnu
24778 else
24779 libjava_cv_anon_version_script=no
24781 rm -f core conftest.err conftest.$ac_objext \
24782 conftest$ac_exeext conftest.$ac_ext
24783 if test x$libjava_cv_anon_version_script = xno; then
24784 case "$target_os" in
24785 solaris2*)
24786 LDFLAGS="$save_LDFLAGS"
24787 LDFLAGS="$LDFLAGS -shared -Wl,-M,conftest.map"
24788 # Sun ld doesn't understand wildcards here.
24789 echo '{ global: globalsymbol; local: *; };' > conftest.map
24790 if test x$gcc_no_link = xyes; then
24791 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24794 /* end confdefs.h. */
24795 void globalsymbol (void) {} void localsymbol (void) {}
24797 main ()
24801 return 0;
24803 _ACEOF
24804 if ac_fn_c_try_link "$LINENO"; then :
24805 libjava_cv_anon_version_script=sun
24807 rm -f core conftest.err conftest.$ac_objext \
24808 conftest$ac_exeext conftest.$ac_ext
24810 esac
24812 CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
24816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_anon_version_script" >&5
24817 $as_echo "$libjava_cv_anon_version_script" >&6; }
24818 if test "$libjava_cv_anon_version_script" != no; then
24819 ANONVERSCRIPT_TRUE=
24820 ANONVERSCRIPT_FALSE='#'
24821 else
24822 ANONVERSCRIPT_TRUE='#'
24823 ANONVERSCRIPT_FALSE=
24826 if test "$libjava_cv_anon_version_script" = gnu; then
24827 ANONVERSCRIPT_GNU_TRUE=
24828 ANONVERSCRIPT_GNU_FALSE='#'
24829 else
24830 ANONVERSCRIPT_GNU_TRUE='#'
24831 ANONVERSCRIPT_GNU_FALSE=
24834 if test "$libjava_cv_anon_version_script" = sun; then
24835 ANONVERSCRIPT_SUN_TRUE=
24836 ANONVERSCRIPT_SUN_FALSE='#'
24837 else
24838 ANONVERSCRIPT_SUN_TRUE='#'
24839 ANONVERSCRIPT_SUN_FALSE=
24843 # Check if linker supports static linking on a per library basis
24844 LD_START_STATIC_SPEC=
24845 LD_FINISH_STATIC_SPEC=
24846 if $LD --help 2>&1 | grep -- -call_shared >/dev/null 2>&1; then
24847 if $LD --help 2>&1 | grep -- -non_shared >/dev/null 2>&1; then
24848 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
24849 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
24855 here=`${PWDCMD-pwd}`
24858 # We get this from the environment.
24861 default_python_dir="/share/gcc-`cat ${srcdir}/../gcc/BASE-VER`/python/libjava"
24863 # Check whether --with-python-dir was given.
24864 if test "${with_python_dir+set}" = set; then :
24865 withval=$with_python_dir; with_python_dir=$withval
24866 else
24867 with_python_dir="${default_python_dir}"
24871 # Needed for installing Python modules during make install.
24872 python_mod_dir="\${prefix}${with_python_dir}"
24874 # Needed for substituting into aot-compile*
24875 python_mod_dir_expanded="${expanded_prefix}${with_python_dir}"
24877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Python modules dir: ${python_mod_dir_expanded}" >&5
24878 $as_echo "Python modules dir: ${python_mod_dir_expanded}" >&6; };
24882 # needed for aot-compile-rpm
24883 MAKE=`which make`
24886 # Check whether --enable-aot-compile-rpm was given.
24887 if test "${enable_aot_compile_rpm+set}" = set; then :
24888 enableval=$enable_aot_compile_rpm; case "${enableval}" in
24889 yes) AOT_RPM_ENABLED=yes ;;
24890 no) AOT_RPM_ENABLED=no ;;
24891 *) as_fn_error "Unknown argument to enable/disable aot-compile-rpm" "$LINENO" 5 ;;
24892 esac
24893 else
24894 AOT_RPM_ENABLED=no
24898 if test "x${AOT_RPM_ENABLED}" = xyes; then
24899 INSTALL_AOT_RPM_TRUE=
24900 INSTALL_AOT_RPM_FALSE='#'
24901 else
24902 INSTALL_AOT_RPM_TRUE='#'
24903 INSTALL_AOT_RPM_FALSE=
24907 # Check whether --enable-java-home was given.
24908 if test "${enable_java_home+set}" = set; then :
24909 enableval=$enable_java_home; case "${enableval}" in
24910 yes) JAVA_HOME_ENABLED=yes ;;
24911 no) JAVA_HOME_ENABLED=no ;;
24912 *) as_fn_error "Unknown argument to enable/disable java-home" "$LINENO" 5 ;;
24913 esac
24914 else
24915 JAVA_HOME_ENABLED=no
24919 if test "x${JAVA_HOME_ENABLED}" = xyes; then
24920 CREATE_JAVA_HOME_TRUE=
24921 CREATE_JAVA_HOME_FALSE='#'
24922 else
24923 CREATE_JAVA_HOME_TRUE='#'
24924 CREATE_JAVA_HOME_FALSE=
24928 # Only do these checks if java-home above is enabled.
24929 if test "x${JAVA_HOME_ENABLED}" = xyes
24930 then
24933 # Check whether --with-gcc-suffix was given.
24934 if test "${with_gcc_suffix+set}" = set; then :
24935 withval=$with_gcc_suffix; gcc_suffix=$withval
24936 else
24937 gcc_suffix=""
24940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCC suffix: ${gcc_suffix}" >&5
24941 $as_echo "GCC suffix: ${gcc_suffix}" >&6; }
24945 # Check whether --with-arch-directory was given.
24946 if test "${with_arch_directory+set}" = set; then :
24947 withval=$with_arch_directory; host_cpu=$withval
24948 else
24949 host_cpu=""
24954 # Check whether --with-os-directory was given.
24955 if test "${with_os_directory+set}" = set; then :
24956 withval=$with_os_directory; host_os=$withval
24957 else
24958 host_os=""
24963 # Check whether --with-origin-name was given.
24964 if test "${with_origin_name+set}" = set; then :
24965 withval=$with_origin_name; origin_name=$withval
24966 else
24967 origin_name=gcj${gcc_suffix}
24970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JPackage origin name: ${origin_name}" >&5
24971 $as_echo "JPackage origin name: ${origin_name}" >&6; }
24974 # Check whether --with-arch-suffix was given.
24975 if test "${with_arch_suffix+set}" = set; then :
24976 withval=$with_arch_suffix; arch_suffix=$withval
24977 else
24978 arch_suffix=""
24981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch suffix: ${arch_suffix}" >&5
24982 $as_echo "arch suffix: ${arch_suffix}" >&6; }
24985 # Check whether --with-jvm-root-dir was given.
24986 if test "${with_jvm_root_dir+set}" = set; then :
24987 withval=$with_jvm_root_dir; jvm_root_dir=$withval
24988 else
24989 jvm_root_dir="\${prefix}/lib/jvm"
24992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM root installation directory: ${jvm_root_dir}" >&5
24993 $as_echo "JVM root installation directory: ${jvm_root_dir}" >&6; }
24996 # Check whether --with-jvm-jar-dir was given.
24997 if test "${with_jvm_jar_dir+set}" = set; then :
24998 withval=$with_jvm_jar_dir; jvm_jar_dir=$withval
24999 else
25000 jvm_jar_dir=\${prefix}/lib/jvm-exports
25003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JAR root installation directory: ${jvm_jar_dir}" >&5
25004 $as_echo "JAR root installation directory: ${jvm_jar_dir}" >&6; }
25006 JAVA_VERSION=1.5.0
25007 BUILD_VERSION=0
25010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Java version: ${JAVA_VERSION}" >&5
25011 $as_echo "Java version: ${JAVA_VERSION}" >&6; }
25013 jre_dir=jre
25014 jre_lnk=jre-${JAVA_VERSION}-${origin_name}
25015 sdk_lnk=java-${JAVA_VERSION}-${origin_name}
25017 JVM_ROOT_DIR=${jvm_root_dir}
25019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5
25020 $as_echo "JVM ROOT directory: ${JVM_ROOT_DIR}" >&6; }
25022 JVM_JAR_ROOT_DIR=${jvm_jar_dir}
25024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5
25025 $as_echo "JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6; }
25027 JVM_JAR_DIR=${jvm_jar_dir}
25029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5
25030 $as_echo "JVM JAR directory: ${JVM_JAR_DIR}" >&6; }
25032 JRE_DIR=${jre_dir}
25035 JRE_LNK=${jre_lnk}
25038 SDK_LNK=${sdk_lnk}
25041 SDK_BIN_DIR=${jvm_root_dir}/bin
25043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK tools directory: ${SDK_BIN_DIR}" >&5
25044 $as_echo "SDK tools directory: ${SDK_BIN_DIR}" >&6; }
25046 SDK_LIB_DIR=${jvm_root_dir}/lib
25048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK jar directory: ${SDK_LIB_DIR}" >&5
25049 $as_echo "SDK jar directory: ${SDK_LIB_DIR}" >&6; }
25051 SDK_INCLUDE_DIR=${jvm_root_dir}/include
25053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5
25054 $as_echo "SDK include directory: ${SDK_INCLUDE_DIR}" >&6; }
25056 JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin
25058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE tools directory: ${JRE_BIN_DIR}" >&5
25059 $as_echo "JRE tools directory: ${JRE_BIN_DIR}" >&6; }
25061 JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib
25063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE lib directory: ${JRE_LIB_DIR}" >&5
25064 $as_echo "JRE lib directory: ${JRE_LIB_DIR}" >&6; }
25066 # Find gcj prefix using gcj found in PATH.
25067 gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"`
25069 # Where do the gcj binaries live?
25070 # For jhbuild based builds, they all live in a sibling of bin called
25071 # gcj-bin. Check for gcj-bin first, and use bin otherwise.
25072 GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi`
25074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5
25075 $as_echo "GCJ tools directory: ${GCJ_BIN_DIR}" >&6; }
25077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host is ${host}" >&5
25078 $as_echo "host is ${host}" >&6; }
25079 if test "x${host_cpu}" = "x"
25080 then
25081 case ${host} in
25082 *-mingw* | *-cygwin*)
25083 host_cpu=x86;;
25084 i486-* | i586-* | i686-*)
25085 host_cpu=i386;;
25086 x86_64-*)
25087 host_cpu=amd64;;
25089 host_cpu=${host_cpu};;
25090 esac
25092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch directory: ${host_cpu}" >&5
25093 $as_echo "arch directory: ${host_cpu}" >&6; }
25094 CPU=${host_cpu}
25097 if test "x${host_os}" = "x"
25098 then
25099 case ${host} in
25100 *-mingw* | *-cygwin*)
25101 host_os=win32;;
25102 *-linux*)
25103 host_os=linux;;
25105 host_os=${host_os};;
25106 esac
25108 echo os directory: ${host_os}
25109 OS=${host_os}
25112 # make an expanded $libdir, for substituting into
25113 # scripts (and other non-Makefile things).
25114 LIBDIR=$libdir
25115 if test "x${exec_prefix}" = "xNONE"
25116 then
25117 lib_exec_prefix=$expanded_prefix
25118 else
25119 lib_exec_prefix=$exec_prefix
25121 LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"`
25125 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"
25128 if test ${multilib} = yes; then
25129 multilib_arg="--enable-multilib"
25130 else
25131 multilib_arg=
25134 ac_config_files="$ac_config_files scripts/jar"
25136 cat >confcache <<\_ACEOF
25137 # This file is a shell script that caches the results of configure
25138 # tests run on this system so they can be shared between configure
25139 # scripts and configure runs, see configure's option --config-cache.
25140 # It is not useful on other systems. If it contains results you don't
25141 # want to keep, you may remove or edit it.
25143 # config.status only pays attention to the cache file if you give it
25144 # the --recheck option to rerun configure.
25146 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25147 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25148 # following values.
25150 _ACEOF
25152 # The following way of writing the cache mishandles newlines in values,
25153 # but we know of no workaround that is simple, portable, and efficient.
25154 # So, we kill variables containing newlines.
25155 # Ultrix sh set writes to stderr and can't be redirected directly,
25156 # and sets the high bit in the cache file unless we assign to the vars.
25158 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25159 eval ac_val=\$$ac_var
25160 case $ac_val in #(
25161 *${as_nl}*)
25162 case $ac_var in #(
25163 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25164 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25165 esac
25166 case $ac_var in #(
25167 _ | IFS | as_nl) ;; #(
25168 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25169 *) { eval $ac_var=; unset $ac_var;} ;;
25170 esac ;;
25171 esac
25172 done
25174 (set) 2>&1 |
25175 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25176 *${as_nl}ac_space=\ *)
25177 # `set' does not quote correctly, so add quotes: double-quote
25178 # substitution turns \\\\ into \\, and sed turns \\ into \.
25179 sed -n \
25180 "s/'/'\\\\''/g;
25181 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25182 ;; #(
25184 # `set' quotes correctly as required by POSIX, so do not add quotes.
25185 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25187 esac |
25188 sort
25190 sed '
25191 /^ac_cv_env_/b end
25192 t clear
25193 :clear
25194 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25195 t end
25196 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25197 :end' >>confcache
25198 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25199 if test -w "$cache_file"; then
25200 test "x$cache_file" != "x/dev/null" &&
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25202 $as_echo "$as_me: updating cache $cache_file" >&6;}
25203 cat confcache >$cache_file
25204 else
25205 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25206 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25209 rm -f confcache
25211 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25212 # Let make expand exec_prefix.
25213 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25215 DEFS=-DHAVE_CONFIG_H
25217 ac_libobjs=
25218 ac_ltlibobjs=
25219 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25220 # 1. Remove the extension, and $U if already installed.
25221 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25222 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25223 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25224 # will be set to the directory where LIBOBJS objects are built.
25225 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25226 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25227 done
25228 LIBOBJS=$ac_libobjs
25230 LTLIBOBJS=$ac_ltlibobjs
25233 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
25234 as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
25235 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25237 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
25238 as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
25239 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25241 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25242 as_fn_error "conditional \"AMDEP\" was never defined.
25243 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25245 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25246 as_fn_error "conditional \"am__fastdepCC\" was never defined.
25247 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25249 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25250 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
25251 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25253 if test -n "$EXEEXT"; then
25254 am__EXEEXT_TRUE=
25255 am__EXEEXT_FALSE='#'
25256 else
25257 am__EXEEXT_TRUE='#'
25258 am__EXEEXT_FALSE=
25261 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25262 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
25263 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25265 if test -z "${BUILD_SUBLIBS_TRUE}" && test -z "${BUILD_SUBLIBS_FALSE}"; then
25266 as_fn_error "conditional \"BUILD_SUBLIBS\" was never defined.
25267 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25269 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
25270 as_fn_error "conditional \"XLIB_AWT\" was never defined.
25271 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25273 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
25274 as_fn_error "conditional \"X_AWT\" was never defined.
25275 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25277 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25278 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25279 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25281 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25282 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25283 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25285 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
25286 as_fn_error "conditional \"TESTSUBDIR\" was never defined.
25287 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25289 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
25290 as_fn_error "conditional \"BUILD_ECJ1\" was never defined.
25291 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25293 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
25294 as_fn_error "conditional \"INSTALL_ECJ_JAR\" was never defined.
25295 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25297 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
25298 as_fn_error "conditional \"JAVA_HOME_SET\" was never defined.
25299 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25301 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
25302 as_fn_error "conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
25303 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25305 if test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE}" && test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE}"; then
25306 as_fn_error "conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
25307 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25309 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
25310 as_fn_error "conditional \"INTERPRETER\" was never defined.
25311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25313 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
25314 as_fn_error "conditional \"USING_WIN32_PLATFORM\" was never defined.
25315 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25317 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
25318 as_fn_error "conditional \"USING_POSIX_PLATFORM\" was never defined.
25319 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25321 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
25322 as_fn_error "conditional \"USING_DARWIN_CRT\" was never defined.
25323 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25325 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
25326 as_fn_error "conditional \"USING_BOEHMGC\" was never defined.
25327 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25329 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
25330 as_fn_error "conditional \"USING_NOGC\" was never defined.
25331 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25333 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
25334 as_fn_error "conditional \"USING_POSIX_THREADS\" was never defined.
25335 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25337 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
25338 as_fn_error "conditional \"USING_WIN32_THREADS\" was never defined.
25339 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25341 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
25342 as_fn_error "conditional \"USING_NO_THREADS\" was never defined.
25343 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25345 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
25346 as_fn_error "conditional \"USE_LIBGCJ_BC\" was never defined.
25347 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25349 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
25350 as_fn_error "conditional \"USING_GCC\" was never defined.
25351 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25353 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25354 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25355 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25358 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
25359 as_fn_error "conditional \"NATIVE\" was never defined.
25360 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25362 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
25363 as_fn_error "conditional \"ENABLE_SHARED\" was never defined.
25364 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25366 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
25367 as_fn_error "conditional \"NEEDS_DATA_START\" was never defined.
25368 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25370 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
25371 as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
25372 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25374 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
25375 as_fn_error "conditional \"ANONVERSCRIPT\" was never defined.
25376 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25378 if test -z "${ANONVERSCRIPT_GNU_TRUE}" && test -z "${ANONVERSCRIPT_GNU_FALSE}"; then
25379 as_fn_error "conditional \"ANONVERSCRIPT_GNU\" was never defined.
25380 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25382 if test -z "${ANONVERSCRIPT_SUN_TRUE}" && test -z "${ANONVERSCRIPT_SUN_FALSE}"; then
25383 as_fn_error "conditional \"ANONVERSCRIPT_SUN\" was never defined.
25384 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25386 if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then
25387 as_fn_error "conditional \"INSTALL_AOT_RPM\" was never defined.
25388 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25390 if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then
25391 as_fn_error "conditional \"CREATE_JAVA_HOME\" was never defined.
25392 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25395 : ${CONFIG_STATUS=./config.status}
25396 ac_write_fail=0
25397 ac_clean_files_save=$ac_clean_files
25398 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25399 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25400 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25401 as_write_fail=0
25402 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25403 #! $SHELL
25404 # Generated by $as_me.
25405 # Run this file to recreate the current configuration.
25406 # Compiler output produced by configure, useful for debugging
25407 # configure, is in config.log if it exists.
25409 debug=false
25410 ac_cs_recheck=false
25411 ac_cs_silent=false
25413 SHELL=\${CONFIG_SHELL-$SHELL}
25414 export SHELL
25415 _ASEOF
25416 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25417 ## -------------------- ##
25418 ## M4sh Initialization. ##
25419 ## -------------------- ##
25421 # Be more Bourne compatible
25422 DUALCASE=1; export DUALCASE # for MKS sh
25423 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25424 emulate sh
25425 NULLCMD=:
25426 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25427 # is contrary to our usage. Disable this feature.
25428 alias -g '${1+"$@"}'='"$@"'
25429 setopt NO_GLOB_SUBST
25430 else
25431 case `(set -o) 2>/dev/null` in #(
25432 *posix*) :
25433 set -o posix ;; #(
25434 *) :
25436 esac
25440 as_nl='
25442 export as_nl
25443 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25444 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25445 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25446 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25447 # Prefer a ksh shell builtin over an external printf program on Solaris,
25448 # but without wasting forks for bash or zsh.
25449 if test -z "$BASH_VERSION$ZSH_VERSION" \
25450 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25451 as_echo='print -r --'
25452 as_echo_n='print -rn --'
25453 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25454 as_echo='printf %s\n'
25455 as_echo_n='printf %s'
25456 else
25457 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25458 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25459 as_echo_n='/usr/ucb/echo -n'
25460 else
25461 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25462 as_echo_n_body='eval
25463 arg=$1;
25464 case $arg in #(
25465 *"$as_nl"*)
25466 expr "X$arg" : "X\\(.*\\)$as_nl";
25467 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25468 esac;
25469 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25471 export as_echo_n_body
25472 as_echo_n='sh -c $as_echo_n_body as_echo'
25474 export as_echo_body
25475 as_echo='sh -c $as_echo_body as_echo'
25478 # The user is always right.
25479 if test "${PATH_SEPARATOR+set}" != set; then
25480 PATH_SEPARATOR=:
25481 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25482 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25483 PATH_SEPARATOR=';'
25488 # IFS
25489 # We need space, tab and new line, in precisely that order. Quoting is
25490 # there to prevent editors from complaining about space-tab.
25491 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25492 # splitting by setting IFS to empty value.)
25493 IFS=" "" $as_nl"
25495 # Find who we are. Look in the path if we contain no directory separator.
25496 case $0 in #((
25497 *[\\/]* ) as_myself=$0 ;;
25498 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25499 for as_dir in $PATH
25501 IFS=$as_save_IFS
25502 test -z "$as_dir" && as_dir=.
25503 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25504 done
25505 IFS=$as_save_IFS
25508 esac
25509 # We did not find ourselves, most probably we were run as `sh COMMAND'
25510 # in which case we are not to be found in the path.
25511 if test "x$as_myself" = x; then
25512 as_myself=$0
25514 if test ! -f "$as_myself"; then
25515 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25516 exit 1
25519 # Unset variables that we do not need and which cause bugs (e.g. in
25520 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25521 # suppresses any "Segmentation fault" message there. '((' could
25522 # trigger a bug in pdksh 5.2.14.
25523 for as_var in BASH_ENV ENV MAIL MAILPATH
25524 do eval test x\${$as_var+set} = xset \
25525 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25526 done
25527 PS1='$ '
25528 PS2='> '
25529 PS4='+ '
25531 # NLS nuisances.
25532 LC_ALL=C
25533 export LC_ALL
25534 LANGUAGE=C
25535 export LANGUAGE
25537 # CDPATH.
25538 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25541 # as_fn_error ERROR [LINENO LOG_FD]
25542 # ---------------------------------
25543 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25544 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25545 # script with status $?, using 1 if that was 0.
25546 as_fn_error ()
25548 as_status=$?; test $as_status -eq 0 && as_status=1
25549 if test "$3"; then
25550 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25551 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25553 $as_echo "$as_me: error: $1" >&2
25554 as_fn_exit $as_status
25555 } # as_fn_error
25558 # as_fn_set_status STATUS
25559 # -----------------------
25560 # Set $? to STATUS, without forking.
25561 as_fn_set_status ()
25563 return $1
25564 } # as_fn_set_status
25566 # as_fn_exit STATUS
25567 # -----------------
25568 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25569 as_fn_exit ()
25571 set +e
25572 as_fn_set_status $1
25573 exit $1
25574 } # as_fn_exit
25576 # as_fn_unset VAR
25577 # ---------------
25578 # Portably unset VAR.
25579 as_fn_unset ()
25581 { eval $1=; unset $1;}
25583 as_unset=as_fn_unset
25584 # as_fn_append VAR VALUE
25585 # ----------------------
25586 # Append the text in VALUE to the end of the definition contained in VAR. Take
25587 # advantage of any shell optimizations that allow amortized linear growth over
25588 # repeated appends, instead of the typical quadratic growth present in naive
25589 # implementations.
25590 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25591 eval 'as_fn_append ()
25593 eval $1+=\$2
25595 else
25596 as_fn_append ()
25598 eval $1=\$$1\$2
25600 fi # as_fn_append
25602 # as_fn_arith ARG...
25603 # ------------------
25604 # Perform arithmetic evaluation on the ARGs, and store the result in the
25605 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25606 # must be portable across $(()) and expr.
25607 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25608 eval 'as_fn_arith ()
25610 as_val=$(( $* ))
25612 else
25613 as_fn_arith ()
25615 as_val=`expr "$@" || test $? -eq 1`
25617 fi # as_fn_arith
25620 if expr a : '\(a\)' >/dev/null 2>&1 &&
25621 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25622 as_expr=expr
25623 else
25624 as_expr=false
25627 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25628 as_basename=basename
25629 else
25630 as_basename=false
25633 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25634 as_dirname=dirname
25635 else
25636 as_dirname=false
25639 as_me=`$as_basename -- "$0" ||
25640 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25641 X"$0" : 'X\(//\)$' \| \
25642 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25643 $as_echo X/"$0" |
25644 sed '/^.*\/\([^/][^/]*\)\/*$/{
25645 s//\1/
25648 /^X\/\(\/\/\)$/{
25649 s//\1/
25652 /^X\/\(\/\).*/{
25653 s//\1/
25656 s/.*/./; q'`
25658 # Avoid depending upon Character Ranges.
25659 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25660 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25661 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25662 as_cr_digits='0123456789'
25663 as_cr_alnum=$as_cr_Letters$as_cr_digits
25665 ECHO_C= ECHO_N= ECHO_T=
25666 case `echo -n x` in #(((((
25667 -n*)
25668 case `echo 'xy\c'` in
25669 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25670 xy) ECHO_C='\c';;
25671 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25672 ECHO_T=' ';;
25673 esac;;
25675 ECHO_N='-n';;
25676 esac
25678 rm -f conf$$ conf$$.exe conf$$.file
25679 if test -d conf$$.dir; then
25680 rm -f conf$$.dir/conf$$.file
25681 else
25682 rm -f conf$$.dir
25683 mkdir conf$$.dir 2>/dev/null
25685 if (echo >conf$$.file) 2>/dev/null; then
25686 if ln -s conf$$.file conf$$ 2>/dev/null; then
25687 as_ln_s='ln -s'
25688 # ... but there are two gotchas:
25689 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25690 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25691 # In both cases, we have to default to `cp -p'.
25692 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25693 as_ln_s='cp -p'
25694 elif ln conf$$.file conf$$ 2>/dev/null; then
25695 as_ln_s=ln
25696 else
25697 as_ln_s='cp -p'
25699 else
25700 as_ln_s='cp -p'
25702 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25703 rmdir conf$$.dir 2>/dev/null
25706 # as_fn_mkdir_p
25707 # -------------
25708 # Create "$as_dir" as a directory, including parents if necessary.
25709 as_fn_mkdir_p ()
25712 case $as_dir in #(
25713 -*) as_dir=./$as_dir;;
25714 esac
25715 test -d "$as_dir" || eval $as_mkdir_p || {
25716 as_dirs=
25717 while :; do
25718 case $as_dir in #(
25719 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25720 *) as_qdir=$as_dir;;
25721 esac
25722 as_dirs="'$as_qdir' $as_dirs"
25723 as_dir=`$as_dirname -- "$as_dir" ||
25724 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25725 X"$as_dir" : 'X\(//\)[^/]' \| \
25726 X"$as_dir" : 'X\(//\)$' \| \
25727 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25728 $as_echo X"$as_dir" |
25729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25730 s//\1/
25733 /^X\(\/\/\)[^/].*/{
25734 s//\1/
25737 /^X\(\/\/\)$/{
25738 s//\1/
25741 /^X\(\/\).*/{
25742 s//\1/
25745 s/.*/./; q'`
25746 test -d "$as_dir" && break
25747 done
25748 test -z "$as_dirs" || eval "mkdir $as_dirs"
25749 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25752 } # as_fn_mkdir_p
25753 if mkdir -p . 2>/dev/null; then
25754 as_mkdir_p='mkdir -p "$as_dir"'
25755 else
25756 test -d ./-p && rmdir ./-p
25757 as_mkdir_p=false
25760 if test -x / >/dev/null 2>&1; then
25761 as_test_x='test -x'
25762 else
25763 if ls -dL / >/dev/null 2>&1; then
25764 as_ls_L_option=L
25765 else
25766 as_ls_L_option=
25768 as_test_x='
25769 eval sh -c '\''
25770 if test -d "$1"; then
25771 test -d "$1/.";
25772 else
25773 case $1 in #(
25774 -*)set "./$1";;
25775 esac;
25776 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25777 ???[sx]*):;;*)false;;esac;fi
25778 '\'' sh
25781 as_executable_p=$as_test_x
25783 # Sed expression to map a string onto a valid CPP name.
25784 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25786 # Sed expression to map a string onto a valid variable name.
25787 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25790 exec 6>&1
25791 ## ----------------------------------- ##
25792 ## Main body of $CONFIG_STATUS script. ##
25793 ## ----------------------------------- ##
25794 _ASEOF
25795 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25797 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25798 # Save the log message, to keep $0 and so on meaningful, and to
25799 # report actual input values of CONFIG_FILES etc. instead of their
25800 # values after options handling.
25801 ac_log="
25802 This file was extended by libjava $as_me version-unused, which was
25803 generated by GNU Autoconf 2.64. Invocation command line was
25805 CONFIG_FILES = $CONFIG_FILES
25806 CONFIG_HEADERS = $CONFIG_HEADERS
25807 CONFIG_LINKS = $CONFIG_LINKS
25808 CONFIG_COMMANDS = $CONFIG_COMMANDS
25809 $ $0 $@
25811 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25814 _ACEOF
25816 case $ac_config_files in *"
25817 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25818 esac
25820 case $ac_config_headers in *"
25821 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25822 esac
25825 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25826 # Files that config.status was made for.
25827 config_files="$ac_config_files"
25828 config_headers="$ac_config_headers"
25829 config_links="$ac_config_links"
25830 config_commands="$ac_config_commands"
25832 _ACEOF
25834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25835 ac_cs_usage="\
25836 \`$as_me' instantiates files and other configuration actions
25837 from templates according to the current configuration. Unless the files
25838 and actions are specified as TAGs, all are instantiated by default.
25840 Usage: $0 [OPTION]... [TAG]...
25842 -h, --help print this help, then exit
25843 -V, --version print version number and configuration settings, then exit
25844 -q, --quiet, --silent
25845 do not print progress messages
25846 -d, --debug don't remove temporary files
25847 --recheck update $as_me by reconfiguring in the same conditions
25848 --file=FILE[:TEMPLATE]
25849 instantiate the configuration file FILE
25850 --header=FILE[:TEMPLATE]
25851 instantiate the configuration header FILE
25853 Configuration files:
25854 $config_files
25856 Configuration headers:
25857 $config_headers
25859 Configuration links:
25860 $config_links
25862 Configuration commands:
25863 $config_commands
25865 Report bugs to the package provider."
25867 _ACEOF
25868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25869 ac_cs_version="\\
25870 libjava config.status version-unused
25871 configured by $0, generated by GNU Autoconf 2.64,
25872 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25874 Copyright (C) 2009 Free Software Foundation, Inc.
25875 This config.status script is free software; the Free Software Foundation
25876 gives unlimited permission to copy, distribute and modify it."
25878 ac_pwd='$ac_pwd'
25879 srcdir='$srcdir'
25880 INSTALL='$INSTALL'
25881 MKDIR_P='$MKDIR_P'
25882 AWK='$AWK'
25883 test -n "\$AWK" || AWK=awk
25884 _ACEOF
25886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25887 # The default lists apply if the user does not specify any file.
25888 ac_need_defaults=:
25889 while test $# != 0
25891 case $1 in
25892 --*=*)
25893 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25894 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25895 ac_shift=:
25898 ac_option=$1
25899 ac_optarg=$2
25900 ac_shift=shift
25902 esac
25904 case $ac_option in
25905 # Handling of the options.
25906 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25907 ac_cs_recheck=: ;;
25908 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25909 $as_echo "$ac_cs_version"; exit ;;
25910 --debug | --debu | --deb | --de | --d | -d )
25911 debug=: ;;
25912 --file | --fil | --fi | --f )
25913 $ac_shift
25914 case $ac_optarg in
25915 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25916 esac
25917 as_fn_append CONFIG_FILES " '$ac_optarg'"
25918 ac_need_defaults=false;;
25919 --header | --heade | --head | --hea )
25920 $ac_shift
25921 case $ac_optarg in
25922 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25923 esac
25924 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25925 ac_need_defaults=false;;
25926 --he | --h)
25927 # Conflict between --help and --header
25928 as_fn_error "ambiguous option: \`$1'
25929 Try \`$0 --help' for more information.";;
25930 --help | --hel | -h )
25931 $as_echo "$ac_cs_usage"; exit ;;
25932 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25933 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25934 ac_cs_silent=: ;;
25936 # This is an error.
25937 -*) as_fn_error "unrecognized option: \`$1'
25938 Try \`$0 --help' for more information." ;;
25940 *) as_fn_append ac_config_targets " $1"
25941 ac_need_defaults=false ;;
25943 esac
25944 shift
25945 done
25947 ac_configure_extra_args=
25949 if $ac_cs_silent; then
25950 exec 6>/dev/null
25951 ac_configure_extra_args="$ac_configure_extra_args --silent"
25954 _ACEOF
25955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25956 if \$ac_cs_recheck; then
25957 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25958 shift
25959 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25960 CONFIG_SHELL='$SHELL'
25961 export CONFIG_SHELL
25962 exec "\$@"
25965 _ACEOF
25966 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25967 exec 5>>config.log
25969 echo
25970 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25971 ## Running $as_me. ##
25972 _ASBOX
25973 $as_echo "$ac_log"
25974 } >&5
25976 _ACEOF
25977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25979 # INIT-COMMANDS
25982 srcdir="$srcdir"
25983 host="$host"
25984 target="$target"
25985 with_multisubdir="$with_multisubdir"
25986 with_multisrctop="$with_multisrctop"
25987 with_target_subdir="$with_target_subdir"
25988 ac_configure_args="${multilib_arg} ${ac_configure_args}"
25989 multi_basedir="$multi_basedir"
25990 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
25991 CC="$CC"
25992 CXX="$CXX"
25993 GFORTRAN="$GFORTRAN"
25994 GCJ="$GCJ"
25995 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25998 # The HP-UX ksh and POSIX shell print the target directory to stdout
25999 # if CDPATH is set.
26000 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26002 sed_quote_subst='$sed_quote_subst'
26003 double_quote_subst='$double_quote_subst'
26004 delay_variable_subst='$delay_variable_subst'
26005 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
26006 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
26007 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
26008 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
26009 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
26010 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
26011 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
26012 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
26013 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
26014 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
26015 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
26016 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
26017 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
26018 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
26019 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
26020 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
26021 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
26022 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
26023 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
26024 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
26025 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
26026 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
26027 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
26028 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
26029 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
26030 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
26031 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
26032 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
26033 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
26034 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
26035 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
26036 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
26037 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
26038 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
26039 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
26040 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
26041 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
26042 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26043 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26044 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
26045 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
26046 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
26047 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
26048 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
26049 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
26050 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
26051 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
26052 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
26053 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"`'
26054 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
26055 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
26056 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
26057 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
26058 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
26059 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
26060 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
26061 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
26062 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
26063 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
26064 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
26065 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
26066 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
26067 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
26068 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
26069 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26070 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
26071 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
26072 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
26073 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
26074 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
26075 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
26076 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26077 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
26078 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26079 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
26080 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26081 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
26082 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
26083 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
26084 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
26085 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
26086 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
26087 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
26088 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
26089 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
26090 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
26091 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
26092 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
26093 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
26094 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
26095 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
26096 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
26097 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
26098 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
26099 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
26100 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
26101 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
26102 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
26103 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
26104 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
26105 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
26106 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
26107 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
26108 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
26109 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
26110 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
26111 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
26112 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26113 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26114 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
26115 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
26116 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
26117 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
26118 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
26119 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
26120 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
26121 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
26122 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
26123 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
26124 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
26125 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
26126 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
26127 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
26128 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
26129 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
26130 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
26131 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
26132 LD_GCJ='`$ECHO "$LD_GCJ" | $SED "$delay_single_quote_subst"`'
26133 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
26134 reload_flag_GCJ='`$ECHO "$reload_flag_GCJ" | $SED "$delay_single_quote_subst"`'
26135 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26136 reload_cmds_GCJ='`$ECHO "$reload_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26137 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26138 old_archive_cmds_GCJ='`$ECHO "$old_archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26139 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
26140 compiler_GCJ='`$ECHO "$compiler_GCJ" | $SED "$delay_single_quote_subst"`'
26141 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
26142 GCC_GCJ='`$ECHO "$GCC_GCJ" | $SED "$delay_single_quote_subst"`'
26143 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
26144 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "$lt_prog_compiler_no_builtin_flag_GCJ" | $SED "$delay_single_quote_subst"`'
26145 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
26146 lt_prog_compiler_wl_GCJ='`$ECHO "$lt_prog_compiler_wl_GCJ" | $SED "$delay_single_quote_subst"`'
26147 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
26148 lt_prog_compiler_pic_GCJ='`$ECHO "$lt_prog_compiler_pic_GCJ" | $SED "$delay_single_quote_subst"`'
26149 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
26150 lt_prog_compiler_static_GCJ='`$ECHO "$lt_prog_compiler_static_GCJ" | $SED "$delay_single_quote_subst"`'
26151 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
26152 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "$lt_cv_prog_compiler_c_o_GCJ" | $SED "$delay_single_quote_subst"`'
26153 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
26154 archive_cmds_need_lc_GCJ='`$ECHO "$archive_cmds_need_lc_GCJ" | $SED "$delay_single_quote_subst"`'
26155 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
26156 enable_shared_with_static_runtimes_GCJ='`$ECHO "$enable_shared_with_static_runtimes_GCJ" | $SED "$delay_single_quote_subst"`'
26157 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26158 export_dynamic_flag_spec_GCJ='`$ECHO "$export_dynamic_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
26159 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26160 whole_archive_flag_spec_GCJ='`$ECHO "$whole_archive_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
26161 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
26162 compiler_needs_object_GCJ='`$ECHO "$compiler_needs_object_GCJ" | $SED "$delay_single_quote_subst"`'
26163 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26164 old_archive_from_new_cmds_GCJ='`$ECHO "$old_archive_from_new_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26165 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26166 old_archive_from_expsyms_cmds_GCJ='`$ECHO "$old_archive_from_expsyms_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26167 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26168 archive_cmds_GCJ='`$ECHO "$archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26169 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26170 archive_expsym_cmds_GCJ='`$ECHO "$archive_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26171 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26172 module_cmds_GCJ='`$ECHO "$module_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26173 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26174 module_expsym_cmds_GCJ='`$ECHO "$module_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26175 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
26176 with_gnu_ld_GCJ='`$ECHO "$with_gnu_ld_GCJ" | $SED "$delay_single_quote_subst"`'
26177 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26178 allow_undefined_flag_GCJ='`$ECHO "$allow_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
26179 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26180 no_undefined_flag_GCJ='`$ECHO "$no_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
26181 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26182 hardcode_libdir_flag_spec_GCJ='`$ECHO "$hardcode_libdir_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
26183 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
26184 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "$hardcode_libdir_flag_spec_ld_GCJ" | $SED "$delay_single_quote_subst"`'
26185 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
26186 hardcode_libdir_separator_GCJ='`$ECHO "$hardcode_libdir_separator_GCJ" | $SED "$delay_single_quote_subst"`'
26187 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
26188 hardcode_direct_GCJ='`$ECHO "$hardcode_direct_GCJ" | $SED "$delay_single_quote_subst"`'
26189 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
26190 hardcode_direct_absolute_GCJ='`$ECHO "$hardcode_direct_absolute_GCJ" | $SED "$delay_single_quote_subst"`'
26191 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
26192 hardcode_minus_L_GCJ='`$ECHO "$hardcode_minus_L_GCJ" | $SED "$delay_single_quote_subst"`'
26193 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
26194 hardcode_shlibpath_var_GCJ='`$ECHO "$hardcode_shlibpath_var_GCJ" | $SED "$delay_single_quote_subst"`'
26195 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
26196 hardcode_automatic_GCJ='`$ECHO "$hardcode_automatic_GCJ" | $SED "$delay_single_quote_subst"`'
26197 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
26198 inherit_rpath_GCJ='`$ECHO "$inherit_rpath_GCJ" | $SED "$delay_single_quote_subst"`'
26199 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
26200 link_all_deplibs_GCJ='`$ECHO "$link_all_deplibs_GCJ" | $SED "$delay_single_quote_subst"`'
26201 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
26202 fix_srcfile_path_GCJ='`$ECHO "$fix_srcfile_path_GCJ" | $SED "$delay_single_quote_subst"`'
26203 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
26204 always_export_symbols_GCJ='`$ECHO "$always_export_symbols_GCJ" | $SED "$delay_single_quote_subst"`'
26205 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26206 export_symbols_cmds_GCJ='`$ECHO "$export_symbols_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26207 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26208 exclude_expsyms_GCJ='`$ECHO "$exclude_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
26209 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26210 include_expsyms_GCJ='`$ECHO "$include_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
26211 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26212 prelink_cmds_GCJ='`$ECHO "$prelink_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26213 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
26214 file_list_spec_GCJ='`$ECHO "$file_list_spec_GCJ" | $SED "$delay_single_quote_subst"`'
26215 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
26216 hardcode_action_GCJ='`$ECHO "$hardcode_action_GCJ" | $SED "$delay_single_quote_subst"`'
26217 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
26218 compiler_lib_search_dirs_GCJ='`$ECHO "$compiler_lib_search_dirs_GCJ" | $SED "$delay_single_quote_subst"`'
26219 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26220 predep_objects_GCJ='`$ECHO "$predep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
26221 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26222 postdep_objects_GCJ='`$ECHO "$postdep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
26223 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
26224 predeps_GCJ='`$ECHO "$predeps_GCJ" | $SED "$delay_single_quote_subst"`'
26225 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
26226 postdeps_GCJ='`$ECHO "$postdeps_GCJ" | $SED "$delay_single_quote_subst"`'
26227 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
26228 compiler_lib_search_path_GCJ='`$ECHO "$compiler_lib_search_path_GCJ" | $SED "$delay_single_quote_subst"`'
26230 LTCC='$LTCC'
26231 LTCFLAGS='$LTCFLAGS'
26232 compiler='$compiler_DEFAULT'
26234 # A function that is used when there is no print builtin or printf.
26235 func_fallback_echo ()
26237 eval 'cat <<_LTECHO_EOF
26239 _LTECHO_EOF'
26242 # Quote evaled strings.
26243 for var in SHELL \
26244 ECHO \
26245 SED \
26246 GREP \
26247 EGREP \
26248 FGREP \
26249 LD \
26250 NM \
26251 LN_S \
26252 lt_SP2NL \
26253 lt_NL2SP \
26254 reload_flag \
26255 OBJDUMP \
26256 deplibs_check_method \
26257 file_magic_cmd \
26258 AR \
26259 AR_FLAGS \
26260 STRIP \
26261 RANLIB \
26262 CC \
26263 CFLAGS \
26264 compiler \
26265 lt_cv_sys_global_symbol_pipe \
26266 lt_cv_sys_global_symbol_to_cdecl \
26267 lt_cv_sys_global_symbol_to_c_name_address \
26268 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26269 lt_prog_compiler_no_builtin_flag \
26270 lt_prog_compiler_wl \
26271 lt_prog_compiler_pic \
26272 lt_prog_compiler_static \
26273 lt_cv_prog_compiler_c_o \
26274 need_locks \
26275 DSYMUTIL \
26276 NMEDIT \
26277 LIPO \
26278 OTOOL \
26279 OTOOL64 \
26280 shrext_cmds \
26281 export_dynamic_flag_spec \
26282 whole_archive_flag_spec \
26283 compiler_needs_object \
26284 with_gnu_ld \
26285 allow_undefined_flag \
26286 no_undefined_flag \
26287 hardcode_libdir_flag_spec \
26288 hardcode_libdir_flag_spec_ld \
26289 hardcode_libdir_separator \
26290 fix_srcfile_path \
26291 exclude_expsyms \
26292 include_expsyms \
26293 file_list_spec \
26294 variables_saved_for_relink \
26295 libname_spec \
26296 library_names_spec \
26297 soname_spec \
26298 install_override_mode \
26299 finish_eval \
26300 old_striplib \
26301 striplib \
26302 compiler_lib_search_dirs \
26303 predep_objects \
26304 postdep_objects \
26305 predeps \
26306 postdeps \
26307 compiler_lib_search_path \
26308 LD_CXX \
26309 LD_GCJ \
26310 reload_flag_CXX \
26311 reload_flag_GCJ \
26312 compiler_CXX \
26313 compiler_GCJ \
26314 lt_prog_compiler_no_builtin_flag_CXX \
26315 lt_prog_compiler_no_builtin_flag_GCJ \
26316 lt_prog_compiler_wl_CXX \
26317 lt_prog_compiler_wl_GCJ \
26318 lt_prog_compiler_pic_CXX \
26319 lt_prog_compiler_pic_GCJ \
26320 lt_prog_compiler_static_CXX \
26321 lt_prog_compiler_static_GCJ \
26322 lt_cv_prog_compiler_c_o_CXX \
26323 lt_cv_prog_compiler_c_o_GCJ \
26324 export_dynamic_flag_spec_CXX \
26325 export_dynamic_flag_spec_GCJ \
26326 whole_archive_flag_spec_CXX \
26327 whole_archive_flag_spec_GCJ \
26328 compiler_needs_object_CXX \
26329 compiler_needs_object_GCJ \
26330 with_gnu_ld_CXX \
26331 with_gnu_ld_GCJ \
26332 allow_undefined_flag_CXX \
26333 allow_undefined_flag_GCJ \
26334 no_undefined_flag_CXX \
26335 no_undefined_flag_GCJ \
26336 hardcode_libdir_flag_spec_CXX \
26337 hardcode_libdir_flag_spec_GCJ \
26338 hardcode_libdir_flag_spec_ld_CXX \
26339 hardcode_libdir_flag_spec_ld_GCJ \
26340 hardcode_libdir_separator_CXX \
26341 hardcode_libdir_separator_GCJ \
26342 fix_srcfile_path_CXX \
26343 fix_srcfile_path_GCJ \
26344 exclude_expsyms_CXX \
26345 exclude_expsyms_GCJ \
26346 include_expsyms_CXX \
26347 include_expsyms_GCJ \
26348 file_list_spec_CXX \
26349 file_list_spec_GCJ \
26350 compiler_lib_search_dirs_CXX \
26351 compiler_lib_search_dirs_GCJ \
26352 predep_objects_CXX \
26353 predep_objects_GCJ \
26354 postdep_objects_CXX \
26355 postdep_objects_GCJ \
26356 predeps_CXX \
26357 predeps_GCJ \
26358 postdeps_CXX \
26359 postdeps_GCJ \
26360 compiler_lib_search_path_CXX \
26361 compiler_lib_search_path_GCJ; do
26362 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26363 *[\\\\\\\`\\"\\\$]*)
26364 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26367 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26369 esac
26370 done
26372 # Double-quote double-evaled strings.
26373 for var in reload_cmds \
26374 old_postinstall_cmds \
26375 old_postuninstall_cmds \
26376 old_archive_cmds \
26377 extract_expsyms_cmds \
26378 old_archive_from_new_cmds \
26379 old_archive_from_expsyms_cmds \
26380 archive_cmds \
26381 archive_expsym_cmds \
26382 module_cmds \
26383 module_expsym_cmds \
26384 export_symbols_cmds \
26385 prelink_cmds \
26386 postinstall_cmds \
26387 postuninstall_cmds \
26388 finish_cmds \
26389 sys_lib_search_path_spec \
26390 sys_lib_dlsearch_path_spec \
26391 reload_cmds_CXX \
26392 reload_cmds_GCJ \
26393 old_archive_cmds_CXX \
26394 old_archive_cmds_GCJ \
26395 old_archive_from_new_cmds_CXX \
26396 old_archive_from_new_cmds_GCJ \
26397 old_archive_from_expsyms_cmds_CXX \
26398 old_archive_from_expsyms_cmds_GCJ \
26399 archive_cmds_CXX \
26400 archive_cmds_GCJ \
26401 archive_expsym_cmds_CXX \
26402 archive_expsym_cmds_GCJ \
26403 module_cmds_CXX \
26404 module_cmds_GCJ \
26405 module_expsym_cmds_CXX \
26406 module_expsym_cmds_GCJ \
26407 export_symbols_cmds_CXX \
26408 export_symbols_cmds_GCJ \
26409 prelink_cmds_CXX \
26410 prelink_cmds_GCJ; do
26411 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26412 *[\\\\\\\`\\"\\\$]*)
26413 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26416 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26418 esac
26419 done
26421 ac_aux_dir='$ac_aux_dir'
26422 xsi_shell='$xsi_shell'
26423 lt_shell_append='$lt_shell_append'
26425 # See if we are running on zsh, and set the options which allow our
26426 # commands through without removal of \ escapes INIT.
26427 if test -n "\${ZSH_VERSION+set}" ; then
26428 setopt NO_GLOB_SUBST
26432 PACKAGE='$PACKAGE'
26433 VERSION='$VERSION'
26434 TIMESTAMP='$TIMESTAMP'
26435 RM='$RM'
26436 ofile='$ofile'
26445 _ACEOF
26447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26449 # Handling of arguments.
26450 for ac_config_target in $ac_config_targets
26452 case $ac_config_target in
26453 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
26454 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26455 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
26456 "gcj/libgcj-config.h") CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
26457 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26458 "include/platform.h") CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
26459 "java/io/natFile.cc") CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
26460 "java/lang/natConcreteProcess.cc") CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
26461 "java/net/natVMInetAddress.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
26462 "java/net/natVMNetworkInterface.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
26463 "gnu/java/net/natPlainSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
26464 "gnu/java/net/natPlainDatagramSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
26465 "gnu/java/nio/natVMPipe.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
26466 "gnu/java/nio/natVMSelector.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
26467 "gnu/java/nio/channels/natFileChannelImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
26468 "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" ;;
26469 "include/java-gc.h") CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
26470 "include/java-threads.h") CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
26471 "sysdep/locks.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
26472 "sysdep/backtrace.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
26473 "sysdep/descriptor.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
26474 "include/java-signal.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
26475 "include/java-signal-aux.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
26476 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26477 "libgcj.pc") CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
26478 "libgcj.spec") CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
26479 "libgcj-test.spec") CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
26480 "gcj/Makefile") CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
26481 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26482 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
26483 "contrib/aotcompile.py") CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;;
26484 "contrib/aot-compile") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;;
26485 "contrib/aot-compile-rpm") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;;
26486 "contrib/generate-cacerts.pl") CONFIG_FILES="$CONFIG_FILES contrib/generate-cacerts.pl" ;;
26487 "contrib/rebuild-gcj-db") CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;;
26488 "scripts/jar") CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
26490 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26491 esac
26492 done
26495 # If the user did not use the arguments to specify the items to instantiate,
26496 # then the envvar interface is used. Set only those that are not.
26497 # We use the long form for the default assignment because of an extremely
26498 # bizarre bug on SunOS 4.1.3.
26499 if $ac_need_defaults; then
26500 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26501 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26502 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26503 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26506 # Have a temporary directory for convenience. Make it in the build tree
26507 # simply because there is no reason against having it here, and in addition,
26508 # creating and moving files from /tmp can sometimes cause problems.
26509 # Hook for its removal unless debugging.
26510 # Note that there is a small window in which the directory will not be cleaned:
26511 # after its creation but before its name has been assigned to `$tmp'.
26512 $debug ||
26514 tmp=
26515 trap 'exit_status=$?
26516 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26518 trap 'as_fn_exit 1' 1 2 13 15
26520 # Create a (secure) tmp directory for tmp files.
26523 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26524 test -n "$tmp" && test -d "$tmp"
26525 } ||
26527 tmp=./conf$$-$RANDOM
26528 (umask 077 && mkdir "$tmp")
26529 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26531 # Set up the scripts for CONFIG_FILES section.
26532 # No need to generate them if there are no CONFIG_FILES.
26533 # This happens for instance with `./config.status config.h'.
26534 if test -n "$CONFIG_FILES"; then
26537 ac_cr=`echo X | tr X '\015'`
26538 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26539 # But we know of no other shell where ac_cr would be empty at this
26540 # point, so we can use a bashism as a fallback.
26541 if test "x$ac_cr" = x; then
26542 eval ac_cr=\$\'\\r\'
26544 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26545 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26546 ac_cs_awk_cr='\r'
26547 else
26548 ac_cs_awk_cr=$ac_cr
26551 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26552 _ACEOF
26556 echo "cat >conf$$subs.awk <<_ACEOF" &&
26557 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26558 echo "_ACEOF"
26559 } >conf$$subs.sh ||
26560 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26561 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26562 ac_delim='%!_!# '
26563 for ac_last_try in false false false false false :; do
26564 . ./conf$$subs.sh ||
26565 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26567 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26568 if test $ac_delim_n = $ac_delim_num; then
26569 break
26570 elif $ac_last_try; then
26571 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26572 else
26573 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26575 done
26576 rm -f conf$$subs.sh
26578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26579 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26580 _ACEOF
26581 sed -n '
26583 s/^/S["/; s/!.*/"]=/
26586 s/^[^!]*!//
26587 :repl
26588 t repl
26589 s/'"$ac_delim"'$//
26590 t delim
26593 s/\(.\{148\}\).*/\1/
26594 t more1
26595 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26598 b repl
26599 :more1
26600 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26603 s/.\{148\}//
26604 t nl
26605 :delim
26607 s/\(.\{148\}\).*/\1/
26608 t more2
26609 s/["\\]/\\&/g; s/^/"/; s/$/"/
26612 :more2
26613 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26616 s/.\{148\}//
26617 t delim
26618 ' <conf$$subs.awk | sed '
26619 /^[^""]/{
26621 s/\n//
26623 ' >>$CONFIG_STATUS || ac_write_fail=1
26624 rm -f conf$$subs.awk
26625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26626 _ACAWK
26627 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26628 for (key in S) S_is_set[key] = 1
26629 FS = "\a"
26633 line = $ 0
26634 nfields = split(line, field, "@")
26635 substed = 0
26636 len = length(field[1])
26637 for (i = 2; i < nfields; i++) {
26638 key = field[i]
26639 keylen = length(key)
26640 if (S_is_set[key]) {
26641 value = S[key]
26642 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26643 len += length(value) + length(field[++i])
26644 substed = 1
26645 } else
26646 len += 1 + keylen
26649 print line
26652 _ACAWK
26653 _ACEOF
26654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26655 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26656 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26657 else
26659 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26660 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26661 _ACEOF
26663 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26664 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26665 # trailing colons and then remove the whole line if VPATH becomes empty
26666 # (actually we leave an empty line to preserve line numbers).
26667 if test "x$srcdir" = x.; then
26668 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26669 s/:*\$(srcdir):*/:/
26670 s/:*\${srcdir}:*/:/
26671 s/:*@srcdir@:*/:/
26672 s/^\([^=]*=[ ]*\):*/\1/
26673 s/:*$//
26674 s/^[^=]*=[ ]*$//
26678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26679 fi # test -n "$CONFIG_FILES"
26681 # Set up the scripts for CONFIG_HEADERS section.
26682 # No need to generate them if there are no CONFIG_HEADERS.
26683 # This happens for instance with `./config.status Makefile'.
26684 if test -n "$CONFIG_HEADERS"; then
26685 cat >"$tmp/defines.awk" <<\_ACAWK ||
26686 BEGIN {
26687 _ACEOF
26689 # Transform confdefs.h into an awk script `defines.awk', embedded as
26690 # here-document in config.status, that substitutes the proper values into
26691 # config.h.in to produce config.h.
26693 # Create a delimiter string that does not exist in confdefs.h, to ease
26694 # handling of long lines.
26695 ac_delim='%!_!# '
26696 for ac_last_try in false false :; do
26697 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26698 if test -z "$ac_t"; then
26699 break
26700 elif $ac_last_try; then
26701 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26702 else
26703 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26705 done
26707 # For the awk script, D is an array of macro values keyed by name,
26708 # likewise P contains macro parameters if any. Preserve backslash
26709 # newline sequences.
26711 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26712 sed -n '
26713 s/.\{148\}/&'"$ac_delim"'/g
26714 t rset
26715 :rset
26716 s/^[ ]*#[ ]*define[ ][ ]*/ /
26717 t def
26719 :def
26720 s/\\$//
26721 t bsnl
26722 s/["\\]/\\&/g
26723 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26724 D["\1"]=" \3"/p
26725 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26727 :bsnl
26728 s/["\\]/\\&/g
26729 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26730 D["\1"]=" \3\\\\\\n"\\/p
26731 t cont
26732 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26733 t cont
26735 :cont
26737 s/.\{148\}/&'"$ac_delim"'/g
26738 t clear
26739 :clear
26740 s/\\$//
26741 t bsnlc
26742 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26744 :bsnlc
26745 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26746 b cont
26747 ' <confdefs.h | sed '
26748 s/'"$ac_delim"'/"\\\
26749 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26752 for (key in D) D_is_set[key] = 1
26753 FS = "\a"
26755 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26756 line = \$ 0
26757 split(line, arg, " ")
26758 if (arg[1] == "#") {
26759 defundef = arg[2]
26760 mac1 = arg[3]
26761 } else {
26762 defundef = substr(arg[1], 2)
26763 mac1 = arg[2]
26765 split(mac1, mac2, "(") #)
26766 macro = mac2[1]
26767 prefix = substr(line, 1, index(line, defundef) - 1)
26768 if (D_is_set[macro]) {
26769 # Preserve the white space surrounding the "#".
26770 print prefix "define", macro P[macro] D[macro]
26771 next
26772 } else {
26773 # Replace #undef with comments. This is necessary, for example,
26774 # in the case of _POSIX_SOURCE, which is predefined and required
26775 # on some systems where configure will not decide to define it.
26776 if (defundef == "undef") {
26777 print "/*", prefix defundef, macro, "*/"
26778 next
26782 { print }
26783 _ACAWK
26784 _ACEOF
26785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26786 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26787 fi # test -n "$CONFIG_HEADERS"
26790 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
26791 shift
26792 for ac_tag
26794 case $ac_tag in
26795 :[FHLC]) ac_mode=$ac_tag; continue;;
26796 esac
26797 case $ac_mode$ac_tag in
26798 :[FHL]*:*);;
26799 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26800 :[FH]-) ac_tag=-:-;;
26801 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26802 esac
26803 ac_save_IFS=$IFS
26804 IFS=:
26805 set x $ac_tag
26806 IFS=$ac_save_IFS
26807 shift
26808 ac_file=$1
26809 shift
26811 case $ac_mode in
26812 :L) ac_source=$1;;
26813 :[FH])
26814 ac_file_inputs=
26815 for ac_f
26817 case $ac_f in
26818 -) ac_f="$tmp/stdin";;
26819 *) # Look for the file first in the build tree, then in the source tree
26820 # (if the path is not absolute). The absolute path cannot be DOS-style,
26821 # because $ac_f cannot contain `:'.
26822 test -f "$ac_f" ||
26823 case $ac_f in
26824 [\\/$]*) false;;
26825 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26826 esac ||
26827 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26828 esac
26829 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26830 as_fn_append ac_file_inputs " '$ac_f'"
26831 done
26833 # Let's still pretend it is `configure' which instantiates (i.e., don't
26834 # use $as_me), people would be surprised to read:
26835 # /* config.h. Generated by config.status. */
26836 configure_input='Generated from '`
26837 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26838 `' by configure.'
26839 if test x"$ac_file" != x-; then
26840 configure_input="$ac_file. $configure_input"
26841 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26842 $as_echo "$as_me: creating $ac_file" >&6;}
26844 # Neutralize special characters interpreted by sed in replacement strings.
26845 case $configure_input in #(
26846 *\&* | *\|* | *\\* )
26847 ac_sed_conf_input=`$as_echo "$configure_input" |
26848 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26849 *) ac_sed_conf_input=$configure_input;;
26850 esac
26852 case $ac_tag in
26853 *:-:* | *:-) cat >"$tmp/stdin" \
26854 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26855 esac
26857 esac
26859 ac_dir=`$as_dirname -- "$ac_file" ||
26860 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26861 X"$ac_file" : 'X\(//\)[^/]' \| \
26862 X"$ac_file" : 'X\(//\)$' \| \
26863 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26864 $as_echo X"$ac_file" |
26865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26866 s//\1/
26869 /^X\(\/\/\)[^/].*/{
26870 s//\1/
26873 /^X\(\/\/\)$/{
26874 s//\1/
26877 /^X\(\/\).*/{
26878 s//\1/
26881 s/.*/./; q'`
26882 as_dir="$ac_dir"; as_fn_mkdir_p
26883 ac_builddir=.
26885 case "$ac_dir" in
26886 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26888 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26889 # A ".." for each directory in $ac_dir_suffix.
26890 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26891 case $ac_top_builddir_sub in
26892 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26893 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26894 esac ;;
26895 esac
26896 ac_abs_top_builddir=$ac_pwd
26897 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26898 # for backward compatibility:
26899 ac_top_builddir=$ac_top_build_prefix
26901 case $srcdir in
26902 .) # We are building in place.
26903 ac_srcdir=.
26904 ac_top_srcdir=$ac_top_builddir_sub
26905 ac_abs_top_srcdir=$ac_pwd ;;
26906 [\\/]* | ?:[\\/]* ) # Absolute name.
26907 ac_srcdir=$srcdir$ac_dir_suffix;
26908 ac_top_srcdir=$srcdir
26909 ac_abs_top_srcdir=$srcdir ;;
26910 *) # Relative name.
26911 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26912 ac_top_srcdir=$ac_top_build_prefix$srcdir
26913 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26914 esac
26915 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26918 case $ac_mode in
26921 # CONFIG_FILE
26924 case $INSTALL in
26925 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26926 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26927 esac
26928 ac_MKDIR_P=$MKDIR_P
26929 case $MKDIR_P in
26930 [\\/$]* | ?:[\\/]* ) ;;
26931 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26932 esac
26933 _ACEOF
26935 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26936 # If the template does not know about datarootdir, expand it.
26937 # FIXME: This hack should be removed a few years after 2.60.
26938 ac_datarootdir_hack=; ac_datarootdir_seen=
26939 ac_sed_dataroot='
26940 /datarootdir/ {
26944 /@datadir@/p
26945 /@docdir@/p
26946 /@infodir@/p
26947 /@localedir@/p
26948 /@mandir@/p'
26949 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26950 *datarootdir*) ac_datarootdir_seen=yes;;
26951 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26953 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26954 _ACEOF
26955 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26956 ac_datarootdir_hack='
26957 s&@datadir@&$datadir&g
26958 s&@docdir@&$docdir&g
26959 s&@infodir@&$infodir&g
26960 s&@localedir@&$localedir&g
26961 s&@mandir@&$mandir&g
26962 s&\\\${datarootdir}&$datarootdir&g' ;;
26963 esac
26964 _ACEOF
26966 # Neutralize VPATH when `$srcdir' = `.'.
26967 # Shell code in configure.ac might set extrasub.
26968 # FIXME: do we really want to maintain this feature?
26969 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26970 ac_sed_extra="$ac_vpsub
26971 $extrasub
26972 _ACEOF
26973 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26975 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26976 s|@configure_input@|$ac_sed_conf_input|;t t
26977 s&@top_builddir@&$ac_top_builddir_sub&;t t
26978 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26979 s&@srcdir@&$ac_srcdir&;t t
26980 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26981 s&@top_srcdir@&$ac_top_srcdir&;t t
26982 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26983 s&@builddir@&$ac_builddir&;t t
26984 s&@abs_builddir@&$ac_abs_builddir&;t t
26985 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26986 s&@INSTALL@&$ac_INSTALL&;t t
26987 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26988 $ac_datarootdir_hack
26990 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26991 || as_fn_error "could not create $ac_file" "$LINENO" 5
26993 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26994 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26995 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26997 which seems to be undefined. Please make sure it is defined." >&5
26998 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26999 which seems to be undefined. Please make sure it is defined." >&2;}
27001 rm -f "$tmp/stdin"
27002 case $ac_file in
27003 -) cat "$tmp/out" && rm -f "$tmp/out";;
27004 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27005 esac \
27006 || as_fn_error "could not create $ac_file" "$LINENO" 5
27010 # CONFIG_HEADER
27012 if test x"$ac_file" != x-; then
27014 $as_echo "/* $configure_input */" \
27015 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27016 } >"$tmp/config.h" \
27017 || as_fn_error "could not create $ac_file" "$LINENO" 5
27018 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27019 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27020 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27021 else
27022 rm -f "$ac_file"
27023 mv "$tmp/config.h" "$ac_file" \
27024 || as_fn_error "could not create $ac_file" "$LINENO" 5
27026 else
27027 $as_echo "/* $configure_input */" \
27028 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27029 || as_fn_error "could not create -" "$LINENO" 5
27031 # Compute "$ac_file"'s index in $config_headers.
27032 _am_arg="$ac_file"
27033 _am_stamp_count=1
27034 for _am_header in $config_headers :; do
27035 case $_am_header in
27036 $_am_arg | $_am_arg:* )
27037 break ;;
27039 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27040 esac
27041 done
27042 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27043 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27044 X"$_am_arg" : 'X\(//\)[^/]' \| \
27045 X"$_am_arg" : 'X\(//\)$' \| \
27046 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27047 $as_echo X"$_am_arg" |
27048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27049 s//\1/
27052 /^X\(\/\/\)[^/].*/{
27053 s//\1/
27056 /^X\(\/\/\)$/{
27057 s//\1/
27060 /^X\(\/\).*/{
27061 s//\1/
27064 s/.*/./; q'`/stamp-h$_am_stamp_count
27068 # CONFIG_LINK
27071 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
27073 else
27074 # Prefer the file from the source tree if names are identical.
27075 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
27076 ac_source=$srcdir/$ac_source
27079 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
27080 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
27082 if test ! -r "$ac_source"; then
27083 as_fn_error "$ac_source: file not found" "$LINENO" 5
27085 rm -f "$ac_file"
27087 # Try a relative symlink, then a hard link, then a copy.
27088 case $srcdir in
27089 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
27090 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
27091 esac
27092 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
27093 ln "$ac_source" "$ac_file" 2>/dev/null ||
27094 cp -p "$ac_source" "$ac_file" ||
27095 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
27098 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27099 $as_echo "$as_me: executing $ac_file commands" >&6;}
27101 esac
27104 case $ac_file$ac_mode in
27105 "default-1":C)
27106 # Only add multilib support code if we just rebuilt the top-level
27107 # Makefile.
27108 case " $CONFIG_FILES " in
27109 *" Makefile "*)
27110 ac_file=Makefile . ${multi_basedir}/config-ml.in
27112 esac ;;
27113 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27114 # Autoconf 2.62 quotes --file arguments for eval, but not when files
27115 # are listed without --file. Let's play safe and only enable the eval
27116 # if we detect the quoting.
27117 case $CONFIG_FILES in
27118 *\'*) eval set x "$CONFIG_FILES" ;;
27119 *) set x $CONFIG_FILES ;;
27120 esac
27121 shift
27122 for mf
27124 # Strip MF so we end up with the name of the file.
27125 mf=`echo "$mf" | sed -e 's/:.*$//'`
27126 # Check whether this is an Automake generated Makefile or not.
27127 # We used to match only the files named `Makefile.in', but
27128 # some people rename them; so instead we look at the file content.
27129 # Grep'ing the first line is not enough: some people post-process
27130 # each Makefile.in and add a new line on top of each file to say so.
27131 # Grep'ing the whole file is not good either: AIX grep has a line
27132 # limit of 2048, but all sed's we know have understand at least 4000.
27133 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27134 dirpart=`$as_dirname -- "$mf" ||
27135 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27136 X"$mf" : 'X\(//\)[^/]' \| \
27137 X"$mf" : 'X\(//\)$' \| \
27138 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27139 $as_echo X"$mf" |
27140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27141 s//\1/
27144 /^X\(\/\/\)[^/].*/{
27145 s//\1/
27148 /^X\(\/\/\)$/{
27149 s//\1/
27152 /^X\(\/\).*/{
27153 s//\1/
27156 s/.*/./; q'`
27157 else
27158 continue
27160 # Extract the definition of DEPDIR, am__include, and am__quote
27161 # from the Makefile without running `make'.
27162 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27163 test -z "$DEPDIR" && continue
27164 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27165 test -z "am__include" && continue
27166 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27167 # When using ansi2knr, U may be empty or an underscore; expand it
27168 U=`sed -n 's/^U = //p' < "$mf"`
27169 # Find all dependency output files, they are included files with
27170 # $(DEPDIR) in their names. We invoke sed twice because it is the
27171 # simplest approach to changing $(DEPDIR) to its actual value in the
27172 # expansion.
27173 for file in `sed -n "
27174 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27175 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27176 # Make sure the directory exists.
27177 test -f "$dirpart/$file" && continue
27178 fdir=`$as_dirname -- "$file" ||
27179 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27180 X"$file" : 'X\(//\)[^/]' \| \
27181 X"$file" : 'X\(//\)$' \| \
27182 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27183 $as_echo X"$file" |
27184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27185 s//\1/
27188 /^X\(\/\/\)[^/].*/{
27189 s//\1/
27192 /^X\(\/\/\)$/{
27193 s//\1/
27196 /^X\(\/\).*/{
27197 s//\1/
27200 s/.*/./; q'`
27201 as_dir=$dirpart/$fdir; as_fn_mkdir_p
27202 # echo "creating $dirpart/$file"
27203 echo '# dummy' > "$dirpart/$file"
27204 done
27205 done
27208 "libtool":C)
27210 # See if we are running on zsh, and set the options which allow our
27211 # commands through without removal of \ escapes.
27212 if test -n "${ZSH_VERSION+set}" ; then
27213 setopt NO_GLOB_SUBST
27216 cfgfile="${ofile}T"
27217 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27218 $RM "$cfgfile"
27220 cat <<_LT_EOF >> "$cfgfile"
27221 #! $SHELL
27223 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
27224 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
27225 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27226 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
27228 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
27229 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
27230 # Written by Gordon Matzigkeit, 1996
27232 # This file is part of GNU Libtool.
27234 # GNU Libtool is free software; you can redistribute it and/or
27235 # modify it under the terms of the GNU General Public License as
27236 # published by the Free Software Foundation; either version 2 of
27237 # the License, or (at your option) any later version.
27239 # As a special exception to the GNU General Public License,
27240 # if you distribute this file as part of a program or library that
27241 # is built using GNU Libtool, you may include this file under the
27242 # same distribution terms that you use for the rest of that program.
27244 # GNU Libtool is distributed in the hope that it will be useful,
27245 # but WITHOUT ANY WARRANTY; without even the implied warranty of
27246 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27247 # GNU General Public License for more details.
27249 # You should have received a copy of the GNU General Public License
27250 # along with GNU Libtool; see the file COPYING. If not, a copy
27251 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27252 # obtained by writing to the Free Software Foundation, Inc.,
27253 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27256 # The names of the tagged configurations supported by this script.
27257 available_tags="CXX GCJ "
27259 # ### BEGIN LIBTOOL CONFIG
27261 # Which release of libtool.m4 was used?
27262 macro_version=$macro_version
27263 macro_revision=$macro_revision
27265 # Whether or not to build shared libraries.
27266 build_libtool_libs=$enable_shared
27268 # Whether or not to build static libraries.
27269 build_old_libs=$enable_static
27271 # What type of objects to build.
27272 pic_mode=$pic_mode
27274 # Whether or not to optimize for fast installation.
27275 fast_install=$enable_fast_install
27277 # Shell to use when invoking shell scripts.
27278 SHELL=$lt_SHELL
27280 # An echo program that protects backslashes.
27281 ECHO=$lt_ECHO
27283 # The host system.
27284 host_alias=$host_alias
27285 host=$host
27286 host_os=$host_os
27288 # The build system.
27289 build_alias=$build_alias
27290 build=$build
27291 build_os=$build_os
27293 # A sed program that does not truncate output.
27294 SED=$lt_SED
27296 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27297 Xsed="\$SED -e 1s/^X//"
27299 # A grep program that handles long lines.
27300 GREP=$lt_GREP
27302 # An ERE matcher.
27303 EGREP=$lt_EGREP
27305 # A literal string matcher.
27306 FGREP=$lt_FGREP
27308 # A BSD- or MS-compatible name lister.
27309 NM=$lt_NM
27311 # Whether we need soft or hard links.
27312 LN_S=$lt_LN_S
27314 # What is the maximum length of a command?
27315 max_cmd_len=$max_cmd_len
27317 # Object file suffix (normally "o").
27318 objext=$ac_objext
27320 # Executable file suffix (normally "").
27321 exeext=$exeext
27323 # whether the shell understands "unset".
27324 lt_unset=$lt_unset
27326 # turn spaces into newlines.
27327 SP2NL=$lt_lt_SP2NL
27329 # turn newlines into spaces.
27330 NL2SP=$lt_lt_NL2SP
27332 # An object symbol dumper.
27333 OBJDUMP=$lt_OBJDUMP
27335 # Method to check whether dependent libraries are shared objects.
27336 deplibs_check_method=$lt_deplibs_check_method
27338 # Command to use when deplibs_check_method == "file_magic".
27339 file_magic_cmd=$lt_file_magic_cmd
27341 # The archiver.
27342 AR=$lt_AR
27343 AR_FLAGS=$lt_AR_FLAGS
27345 # A symbol stripping program.
27346 STRIP=$lt_STRIP
27348 # Commands used to install an old-style archive.
27349 RANLIB=$lt_RANLIB
27350 old_postinstall_cmds=$lt_old_postinstall_cmds
27351 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27353 # Whether to use a lock for old archive extraction.
27354 lock_old_archive_extraction=$lock_old_archive_extraction
27356 # A C compiler.
27357 LTCC=$lt_CC
27359 # LTCC compiler flags.
27360 LTCFLAGS=$lt_CFLAGS
27362 # Take the output of nm and produce a listing of raw symbols and C names.
27363 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27365 # Transform the output of nm in a proper C declaration.
27366 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27368 # Transform the output of nm in a C name address pair.
27369 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27371 # Transform the output of nm in a C name address pair when lib prefix is needed.
27372 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27374 # The name of the directory that contains temporary libtool files.
27375 objdir=$objdir
27377 # Used to examine libraries when file_magic_cmd begins with "file".
27378 MAGIC_CMD=$MAGIC_CMD
27380 # Must we lock files when doing compilation?
27381 need_locks=$lt_need_locks
27383 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27384 DSYMUTIL=$lt_DSYMUTIL
27386 # Tool to change global to local symbols on Mac OS X.
27387 NMEDIT=$lt_NMEDIT
27389 # Tool to manipulate fat objects and archives on Mac OS X.
27390 LIPO=$lt_LIPO
27392 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27393 OTOOL=$lt_OTOOL
27395 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27396 OTOOL64=$lt_OTOOL64
27398 # Old archive suffix (normally "a").
27399 libext=$libext
27401 # Shared library suffix (normally ".so").
27402 shrext_cmds=$lt_shrext_cmds
27404 # The commands to extract the exported symbol list from a shared archive.
27405 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27407 # Variables whose values should be saved in libtool wrapper scripts and
27408 # restored at link time.
27409 variables_saved_for_relink=$lt_variables_saved_for_relink
27411 # Do we need the "lib" prefix for modules?
27412 need_lib_prefix=$need_lib_prefix
27414 # Do we need a version for libraries?
27415 need_version=$need_version
27417 # Library versioning type.
27418 version_type=$version_type
27420 # Shared library runtime path variable.
27421 runpath_var=$runpath_var
27423 # Shared library path variable.
27424 shlibpath_var=$shlibpath_var
27426 # Is shlibpath searched before the hard-coded library search path?
27427 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27429 # Format of library name prefix.
27430 libname_spec=$lt_libname_spec
27432 # List of archive names. First name is the real one, the rest are links.
27433 # The last name is the one that the linker finds with -lNAME
27434 library_names_spec=$lt_library_names_spec
27436 # The coded name of the library, if different from the real name.
27437 soname_spec=$lt_soname_spec
27439 # Permission mode override for installation of shared libraries.
27440 install_override_mode=$lt_install_override_mode
27442 # Command to use after installation of a shared archive.
27443 postinstall_cmds=$lt_postinstall_cmds
27445 # Command to use after uninstallation of a shared archive.
27446 postuninstall_cmds=$lt_postuninstall_cmds
27448 # Commands used to finish a libtool library installation in a directory.
27449 finish_cmds=$lt_finish_cmds
27451 # As "finish_cmds", except a single script fragment to be evaled but
27452 # not shown.
27453 finish_eval=$lt_finish_eval
27455 # Whether we should hardcode library paths into libraries.
27456 hardcode_into_libs=$hardcode_into_libs
27458 # Compile-time system search path for libraries.
27459 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27461 # Run-time system search path for libraries.
27462 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27464 # Whether dlopen is supported.
27465 dlopen_support=$enable_dlopen
27467 # Whether dlopen of programs is supported.
27468 dlopen_self=$enable_dlopen_self
27470 # Whether dlopen of statically linked programs is supported.
27471 dlopen_self_static=$enable_dlopen_self_static
27473 # Commands to strip libraries.
27474 old_striplib=$lt_old_striplib
27475 striplib=$lt_striplib
27478 # The linker used to build libraries.
27479 LD=$lt_LD
27481 # How to create reloadable object files.
27482 reload_flag=$lt_reload_flag
27483 reload_cmds=$lt_reload_cmds
27485 # Commands used to build an old-style archive.
27486 old_archive_cmds=$lt_old_archive_cmds
27488 # A language specific compiler.
27489 CC=$lt_compiler
27491 # Is the compiler the GNU compiler?
27492 with_gcc=$GCC
27494 # Compiler flag to turn off builtin functions.
27495 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27497 # How to pass a linker flag through the compiler.
27498 wl=$lt_lt_prog_compiler_wl
27500 # Additional compiler flags for building library objects.
27501 pic_flag=$lt_lt_prog_compiler_pic
27503 # Compiler flag to prevent dynamic linking.
27504 link_static_flag=$lt_lt_prog_compiler_static
27506 # Does compiler simultaneously support -c and -o options?
27507 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27509 # Whether or not to add -lc for building shared libraries.
27510 build_libtool_need_lc=$archive_cmds_need_lc
27512 # Whether or not to disallow shared libs when runtime libs are static.
27513 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27515 # Compiler flag to allow reflexive dlopens.
27516 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27518 # Compiler flag to generate shared objects directly from archives.
27519 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27521 # Whether the compiler copes with passing no objects directly.
27522 compiler_needs_object=$lt_compiler_needs_object
27524 # Create an old-style archive from a shared archive.
27525 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27527 # Create a temporary old-style archive to link instead of a shared archive.
27528 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27530 # Commands used to build a shared archive.
27531 archive_cmds=$lt_archive_cmds
27532 archive_expsym_cmds=$lt_archive_expsym_cmds
27534 # Commands used to build a loadable module if different from building
27535 # a shared archive.
27536 module_cmds=$lt_module_cmds
27537 module_expsym_cmds=$lt_module_expsym_cmds
27539 # Whether we are building with GNU ld or not.
27540 with_gnu_ld=$lt_with_gnu_ld
27542 # Flag that allows shared libraries with undefined symbols to be built.
27543 allow_undefined_flag=$lt_allow_undefined_flag
27545 # Flag that enforces no undefined symbols.
27546 no_undefined_flag=$lt_no_undefined_flag
27548 # Flag to hardcode \$libdir into a binary during linking.
27549 # This must work even if \$libdir does not exist
27550 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27552 # If ld is used when linking, flag to hardcode \$libdir into a binary
27553 # during linking. This must work even if \$libdir does not exist.
27554 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
27556 # Whether we need a single "-rpath" flag with a separated argument.
27557 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27559 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27560 # DIR into the resulting binary.
27561 hardcode_direct=$hardcode_direct
27563 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27564 # DIR into the resulting binary and the resulting library dependency is
27565 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27566 # library is relocated.
27567 hardcode_direct_absolute=$hardcode_direct_absolute
27569 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27570 # into the resulting binary.
27571 hardcode_minus_L=$hardcode_minus_L
27573 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27574 # into the resulting binary.
27575 hardcode_shlibpath_var=$hardcode_shlibpath_var
27577 # Set to "yes" if building a shared library automatically hardcodes DIR
27578 # into the library and all subsequent libraries and executables linked
27579 # against it.
27580 hardcode_automatic=$hardcode_automatic
27582 # Set to yes if linker adds runtime paths of dependent libraries
27583 # to runtime path list.
27584 inherit_rpath=$inherit_rpath
27586 # Whether libtool must link a program against all its dependency libraries.
27587 link_all_deplibs=$link_all_deplibs
27589 # Fix the shell variable \$srcfile for the compiler.
27590 fix_srcfile_path=$lt_fix_srcfile_path
27592 # Set to "yes" if exported symbols are required.
27593 always_export_symbols=$always_export_symbols
27595 # The commands to list exported symbols.
27596 export_symbols_cmds=$lt_export_symbols_cmds
27598 # Symbols that should not be listed in the preloaded symbols.
27599 exclude_expsyms=$lt_exclude_expsyms
27601 # Symbols that must always be exported.
27602 include_expsyms=$lt_include_expsyms
27604 # Commands necessary for linking programs (against libraries) with templates.
27605 prelink_cmds=$lt_prelink_cmds
27607 # Specify filename containing input files.
27608 file_list_spec=$lt_file_list_spec
27610 # How to hardcode a shared library path into an executable.
27611 hardcode_action=$hardcode_action
27613 # The directories searched by this compiler when creating a shared library.
27614 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27616 # Dependencies to place before and after the objects being linked to
27617 # create a shared library.
27618 predep_objects=$lt_predep_objects
27619 postdep_objects=$lt_postdep_objects
27620 predeps=$lt_predeps
27621 postdeps=$lt_postdeps
27623 # The library search path used internally by the compiler when linking
27624 # a shared library.
27625 compiler_lib_search_path=$lt_compiler_lib_search_path
27627 # ### END LIBTOOL CONFIG
27629 _LT_EOF
27631 case $host_os in
27632 aix3*)
27633 cat <<\_LT_EOF >> "$cfgfile"
27634 # AIX sometimes has problems with the GCC collect2 program. For some
27635 # reason, if we set the COLLECT_NAMES environment variable, the problems
27636 # vanish in a puff of smoke.
27637 if test "X${COLLECT_NAMES+set}" != Xset; then
27638 COLLECT_NAMES=
27639 export COLLECT_NAMES
27641 _LT_EOF
27643 esac
27646 ltmain="$ac_aux_dir/ltmain.sh"
27649 # We use sed instead of cat because bash on DJGPP gets confused if
27650 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27651 # text mode, it properly converts lines to CR/LF. This bash problem
27652 # is reportedly fixed, but why not run on old versions too?
27653 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27654 || (rm -f "$cfgfile"; exit 1)
27656 case $xsi_shell in
27657 yes)
27658 cat << \_LT_EOF >> "$cfgfile"
27660 # func_dirname file append nondir_replacement
27661 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27662 # otherwise set result to NONDIR_REPLACEMENT.
27663 func_dirname ()
27665 case ${1} in
27666 */*) func_dirname_result="${1%/*}${2}" ;;
27667 * ) func_dirname_result="${3}" ;;
27668 esac
27671 # func_basename file
27672 func_basename ()
27674 func_basename_result="${1##*/}"
27677 # func_dirname_and_basename file append nondir_replacement
27678 # perform func_basename and func_dirname in a single function
27679 # call:
27680 # dirname: Compute the dirname of FILE. If nonempty,
27681 # add APPEND to the result, otherwise set result
27682 # to NONDIR_REPLACEMENT.
27683 # value returned in "$func_dirname_result"
27684 # basename: Compute filename of FILE.
27685 # value retuned in "$func_basename_result"
27686 # Implementation must be kept synchronized with func_dirname
27687 # and func_basename. For efficiency, we do not delegate to
27688 # those functions but instead duplicate the functionality here.
27689 func_dirname_and_basename ()
27691 case ${1} in
27692 */*) func_dirname_result="${1%/*}${2}" ;;
27693 * ) func_dirname_result="${3}" ;;
27694 esac
27695 func_basename_result="${1##*/}"
27698 # func_stripname prefix suffix name
27699 # strip PREFIX and SUFFIX off of NAME.
27700 # PREFIX and SUFFIX must not contain globbing or regex special
27701 # characters, hashes, percent signs, but SUFFIX may contain a leading
27702 # dot (in which case that matches only a dot).
27703 func_stripname ()
27705 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27706 # positional parameters, so assign one to ordinary parameter first.
27707 func_stripname_result=${3}
27708 func_stripname_result=${func_stripname_result#"${1}"}
27709 func_stripname_result=${func_stripname_result%"${2}"}
27712 # func_opt_split
27713 func_opt_split ()
27715 func_opt_split_opt=${1%%=*}
27716 func_opt_split_arg=${1#*=}
27719 # func_lo2o object
27720 func_lo2o ()
27722 case ${1} in
27723 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27724 *) func_lo2o_result=${1} ;;
27725 esac
27728 # func_xform libobj-or-source
27729 func_xform ()
27731 func_xform_result=${1%.*}.lo
27734 # func_arith arithmetic-term...
27735 func_arith ()
27737 func_arith_result=$(( $* ))
27740 # func_len string
27741 # STRING may not start with a hyphen.
27742 func_len ()
27744 func_len_result=${#1}
27747 _LT_EOF
27749 *) # Bourne compatible functions.
27750 cat << \_LT_EOF >> "$cfgfile"
27752 # func_dirname file append nondir_replacement
27753 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27754 # otherwise set result to NONDIR_REPLACEMENT.
27755 func_dirname ()
27757 # Extract subdirectory from the argument.
27758 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
27759 if test "X$func_dirname_result" = "X${1}"; then
27760 func_dirname_result="${3}"
27761 else
27762 func_dirname_result="$func_dirname_result${2}"
27766 # func_basename file
27767 func_basename ()
27769 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
27773 # func_stripname prefix suffix name
27774 # strip PREFIX and SUFFIX off of NAME.
27775 # PREFIX and SUFFIX must not contain globbing or regex special
27776 # characters, hashes, percent signs, but SUFFIX may contain a leading
27777 # dot (in which case that matches only a dot).
27778 # func_strip_suffix prefix name
27779 func_stripname ()
27781 case ${2} in
27782 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
27783 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
27784 esac
27787 # sed scripts:
27788 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27789 my_sed_long_arg='1s/^-[^=]*=//'
27791 # func_opt_split
27792 func_opt_split ()
27794 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
27795 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
27798 # func_lo2o object
27799 func_lo2o ()
27801 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
27804 # func_xform libobj-or-source
27805 func_xform ()
27807 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
27810 # func_arith arithmetic-term...
27811 func_arith ()
27813 func_arith_result=`expr "$@"`
27816 # func_len string
27817 # STRING may not start with a hyphen.
27818 func_len ()
27820 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27823 _LT_EOF
27824 esac
27826 case $lt_shell_append in
27827 yes)
27828 cat << \_LT_EOF >> "$cfgfile"
27830 # func_append var value
27831 # Append VALUE to the end of shell variable VAR.
27832 func_append ()
27834 eval "$1+=\$2"
27836 _LT_EOF
27839 cat << \_LT_EOF >> "$cfgfile"
27841 # func_append var value
27842 # Append VALUE to the end of shell variable VAR.
27843 func_append ()
27845 eval "$1=\$$1\$2"
27848 _LT_EOF
27850 esac
27853 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27854 || (rm -f "$cfgfile"; exit 1)
27856 mv -f "$cfgfile" "$ofile" ||
27857 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27858 chmod +x "$ofile"
27861 cat <<_LT_EOF >> "$ofile"
27863 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27865 # The linker used to build libraries.
27866 LD=$lt_LD_CXX
27868 # How to create reloadable object files.
27869 reload_flag=$lt_reload_flag_CXX
27870 reload_cmds=$lt_reload_cmds_CXX
27872 # Commands used to build an old-style archive.
27873 old_archive_cmds=$lt_old_archive_cmds_CXX
27875 # A language specific compiler.
27876 CC=$lt_compiler_CXX
27878 # Is the compiler the GNU compiler?
27879 with_gcc=$GCC_CXX
27881 # Compiler flag to turn off builtin functions.
27882 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27884 # How to pass a linker flag through the compiler.
27885 wl=$lt_lt_prog_compiler_wl_CXX
27887 # Additional compiler flags for building library objects.
27888 pic_flag=$lt_lt_prog_compiler_pic_CXX
27890 # Compiler flag to prevent dynamic linking.
27891 link_static_flag=$lt_lt_prog_compiler_static_CXX
27893 # Does compiler simultaneously support -c and -o options?
27894 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27896 # Whether or not to add -lc for building shared libraries.
27897 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27899 # Whether or not to disallow shared libs when runtime libs are static.
27900 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27902 # Compiler flag to allow reflexive dlopens.
27903 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27905 # Compiler flag to generate shared objects directly from archives.
27906 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27908 # Whether the compiler copes with passing no objects directly.
27909 compiler_needs_object=$lt_compiler_needs_object_CXX
27911 # Create an old-style archive from a shared archive.
27912 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27914 # Create a temporary old-style archive to link instead of a shared archive.
27915 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27917 # Commands used to build a shared archive.
27918 archive_cmds=$lt_archive_cmds_CXX
27919 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27921 # Commands used to build a loadable module if different from building
27922 # a shared archive.
27923 module_cmds=$lt_module_cmds_CXX
27924 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27926 # Whether we are building with GNU ld or not.
27927 with_gnu_ld=$lt_with_gnu_ld_CXX
27929 # Flag that allows shared libraries with undefined symbols to be built.
27930 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27932 # Flag that enforces no undefined symbols.
27933 no_undefined_flag=$lt_no_undefined_flag_CXX
27935 # Flag to hardcode \$libdir into a binary during linking.
27936 # This must work even if \$libdir does not exist
27937 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27939 # If ld is used when linking, flag to hardcode \$libdir into a binary
27940 # during linking. This must work even if \$libdir does not exist.
27941 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27943 # Whether we need a single "-rpath" flag with a separated argument.
27944 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27946 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27947 # DIR into the resulting binary.
27948 hardcode_direct=$hardcode_direct_CXX
27950 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27951 # DIR into the resulting binary and the resulting library dependency is
27952 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27953 # library is relocated.
27954 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27956 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27957 # into the resulting binary.
27958 hardcode_minus_L=$hardcode_minus_L_CXX
27960 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27961 # into the resulting binary.
27962 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27964 # Set to "yes" if building a shared library automatically hardcodes DIR
27965 # into the library and all subsequent libraries and executables linked
27966 # against it.
27967 hardcode_automatic=$hardcode_automatic_CXX
27969 # Set to yes if linker adds runtime paths of dependent libraries
27970 # to runtime path list.
27971 inherit_rpath=$inherit_rpath_CXX
27973 # Whether libtool must link a program against all its dependency libraries.
27974 link_all_deplibs=$link_all_deplibs_CXX
27976 # Fix the shell variable \$srcfile for the compiler.
27977 fix_srcfile_path=$lt_fix_srcfile_path_CXX
27979 # Set to "yes" if exported symbols are required.
27980 always_export_symbols=$always_export_symbols_CXX
27982 # The commands to list exported symbols.
27983 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27985 # Symbols that should not be listed in the preloaded symbols.
27986 exclude_expsyms=$lt_exclude_expsyms_CXX
27988 # Symbols that must always be exported.
27989 include_expsyms=$lt_include_expsyms_CXX
27991 # Commands necessary for linking programs (against libraries) with templates.
27992 prelink_cmds=$lt_prelink_cmds_CXX
27994 # Specify filename containing input files.
27995 file_list_spec=$lt_file_list_spec_CXX
27997 # How to hardcode a shared library path into an executable.
27998 hardcode_action=$hardcode_action_CXX
28000 # The directories searched by this compiler when creating a shared library.
28001 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
28003 # Dependencies to place before and after the objects being linked to
28004 # create a shared library.
28005 predep_objects=$lt_predep_objects_CXX
28006 postdep_objects=$lt_postdep_objects_CXX
28007 predeps=$lt_predeps_CXX
28008 postdeps=$lt_postdeps_CXX
28010 # The library search path used internally by the compiler when linking
28011 # a shared library.
28012 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
28014 # ### END LIBTOOL TAG CONFIG: CXX
28015 _LT_EOF
28018 cat <<_LT_EOF >> "$ofile"
28020 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
28022 # The linker used to build libraries.
28023 LD=$lt_LD_GCJ
28025 # How to create reloadable object files.
28026 reload_flag=$lt_reload_flag_GCJ
28027 reload_cmds=$lt_reload_cmds_GCJ
28029 # Commands used to build an old-style archive.
28030 old_archive_cmds=$lt_old_archive_cmds_GCJ
28032 # A language specific compiler.
28033 CC=$lt_compiler_GCJ
28035 # Is the compiler the GNU compiler?
28036 with_gcc=$GCC_GCJ
28038 # Compiler flag to turn off builtin functions.
28039 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
28041 # How to pass a linker flag through the compiler.
28042 wl=$lt_lt_prog_compiler_wl_GCJ
28044 # Additional compiler flags for building library objects.
28045 pic_flag=$lt_lt_prog_compiler_pic_GCJ
28047 # Compiler flag to prevent dynamic linking.
28048 link_static_flag=$lt_lt_prog_compiler_static_GCJ
28050 # Does compiler simultaneously support -c and -o options?
28051 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
28053 # Whether or not to add -lc for building shared libraries.
28054 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
28056 # Whether or not to disallow shared libs when runtime libs are static.
28057 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
28059 # Compiler flag to allow reflexive dlopens.
28060 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
28062 # Compiler flag to generate shared objects directly from archives.
28063 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
28065 # Whether the compiler copes with passing no objects directly.
28066 compiler_needs_object=$lt_compiler_needs_object_GCJ
28068 # Create an old-style archive from a shared archive.
28069 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
28071 # Create a temporary old-style archive to link instead of a shared archive.
28072 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
28074 # Commands used to build a shared archive.
28075 archive_cmds=$lt_archive_cmds_GCJ
28076 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
28078 # Commands used to build a loadable module if different from building
28079 # a shared archive.
28080 module_cmds=$lt_module_cmds_GCJ
28081 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
28083 # Whether we are building with GNU ld or not.
28084 with_gnu_ld=$lt_with_gnu_ld_GCJ
28086 # Flag that allows shared libraries with undefined symbols to be built.
28087 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
28089 # Flag that enforces no undefined symbols.
28090 no_undefined_flag=$lt_no_undefined_flag_GCJ
28092 # Flag to hardcode \$libdir into a binary during linking.
28093 # This must work even if \$libdir does not exist
28094 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
28096 # If ld is used when linking, flag to hardcode \$libdir into a binary
28097 # during linking. This must work even if \$libdir does not exist.
28098 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
28100 # Whether we need a single "-rpath" flag with a separated argument.
28101 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
28103 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28104 # DIR into the resulting binary.
28105 hardcode_direct=$hardcode_direct_GCJ
28107 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28108 # DIR into the resulting binary and the resulting library dependency is
28109 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28110 # library is relocated.
28111 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
28113 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28114 # into the resulting binary.
28115 hardcode_minus_L=$hardcode_minus_L_GCJ
28117 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28118 # into the resulting binary.
28119 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
28121 # Set to "yes" if building a shared library automatically hardcodes DIR
28122 # into the library and all subsequent libraries and executables linked
28123 # against it.
28124 hardcode_automatic=$hardcode_automatic_GCJ
28126 # Set to yes if linker adds runtime paths of dependent libraries
28127 # to runtime path list.
28128 inherit_rpath=$inherit_rpath_GCJ
28130 # Whether libtool must link a program against all its dependency libraries.
28131 link_all_deplibs=$link_all_deplibs_GCJ
28133 # Fix the shell variable \$srcfile for the compiler.
28134 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
28136 # Set to "yes" if exported symbols are required.
28137 always_export_symbols=$always_export_symbols_GCJ
28139 # The commands to list exported symbols.
28140 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
28142 # Symbols that should not be listed in the preloaded symbols.
28143 exclude_expsyms=$lt_exclude_expsyms_GCJ
28145 # Symbols that must always be exported.
28146 include_expsyms=$lt_include_expsyms_GCJ
28148 # Commands necessary for linking programs (against libraries) with templates.
28149 prelink_cmds=$lt_prelink_cmds_GCJ
28151 # Specify filename containing input files.
28152 file_list_spec=$lt_file_list_spec_GCJ
28154 # How to hardcode a shared library path into an executable.
28155 hardcode_action=$hardcode_action_GCJ
28157 # The directories searched by this compiler when creating a shared library.
28158 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
28160 # Dependencies to place before and after the objects being linked to
28161 # create a shared library.
28162 predep_objects=$lt_predep_objects_GCJ
28163 postdep_objects=$lt_postdep_objects_GCJ
28164 predeps=$lt_predeps_GCJ
28165 postdeps=$lt_postdeps_GCJ
28167 # The library search path used internally by the compiler when linking
28168 # a shared library.
28169 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
28171 # ### END LIBTOOL TAG CONFIG: GCJ
28172 _LT_EOF
28175 "scripts/jar":F) chmod +x scripts/jar ;;
28177 esac
28178 done # for ac_tag
28181 as_fn_exit 0
28182 _ACEOF
28183 ac_clean_files=$ac_clean_files_save
28185 test $ac_write_fail = 0 ||
28186 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28189 # configure is writing to config.log, and then calls config.status.
28190 # config.status does its own redirection, appending to config.log.
28191 # Unfortunately, on DOS this fails, as config.log is still kept open
28192 # by configure, so config.status won't be able to write to it; its
28193 # output is simply discarded. So we exec the FD to /dev/null,
28194 # effectively closing config.log, so it can be properly (re)opened and
28195 # appended to by config.status. When coming back to configure, we
28196 # need to make the FD available again.
28197 if test "$no_create" != yes; then
28198 ac_cs_success=:
28199 ac_config_status_args=
28200 test "$silent" = yes &&
28201 ac_config_status_args="$ac_config_status_args --quiet"
28202 exec 5>/dev/null
28203 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28204 exec 5>>config.log
28205 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28206 # would make configure fail if this is the last instruction.
28207 $ac_cs_success || as_fn_exit $?
28211 # CONFIG_SUBDIRS section.
28213 if test "$no_recursion" != yes; then
28215 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
28216 # so they do not pile up.
28217 ac_sub_configure_args=
28218 ac_prev=
28219 eval "set x $ac_configure_args"
28220 shift
28221 for ac_arg
28223 if test -n "$ac_prev"; then
28224 ac_prev=
28225 continue
28227 case $ac_arg in
28228 -cache-file | --cache-file | --cache-fil | --cache-fi \
28229 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
28230 ac_prev=cache_file ;;
28231 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
28232 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
28233 | --c=*)
28235 --config-cache | -C)
28237 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
28238 ac_prev=srcdir ;;
28239 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
28241 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
28242 ac_prev=prefix ;;
28243 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
28245 --disable-option-checking)
28248 case $ac_arg in
28249 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28250 esac
28251 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
28252 esac
28253 done
28255 # Always prepend --prefix to ensure using the same prefix
28256 # in subdir configurations.
28257 ac_arg="--prefix=$prefix"
28258 case $ac_arg in
28259 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28260 esac
28261 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
28263 # Pass --silent
28264 if test "$silent" = yes; then
28265 ac_sub_configure_args="--silent $ac_sub_configure_args"
28268 # Always prepend --disable-option-checking to silence warnings, since
28269 # different subdirs can have different --enable and --with options.
28270 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
28272 ac_popdir=`pwd`
28273 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
28275 # Do not complain, so a configure script can configure whichever
28276 # parts of a large source tree are present.
28277 test -d "$srcdir/$ac_dir" || continue
28279 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
28280 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
28281 $as_echo "$ac_msg" >&6
28282 as_dir="$ac_dir"; as_fn_mkdir_p
28283 ac_builddir=.
28285 case "$ac_dir" in
28286 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28288 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28289 # A ".." for each directory in $ac_dir_suffix.
28290 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28291 case $ac_top_builddir_sub in
28292 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28293 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28294 esac ;;
28295 esac
28296 ac_abs_top_builddir=$ac_pwd
28297 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28298 # for backward compatibility:
28299 ac_top_builddir=$ac_top_build_prefix
28301 case $srcdir in
28302 .) # We are building in place.
28303 ac_srcdir=.
28304 ac_top_srcdir=$ac_top_builddir_sub
28305 ac_abs_top_srcdir=$ac_pwd ;;
28306 [\\/]* | ?:[\\/]* ) # Absolute name.
28307 ac_srcdir=$srcdir$ac_dir_suffix;
28308 ac_top_srcdir=$srcdir
28309 ac_abs_top_srcdir=$srcdir ;;
28310 *) # Relative name.
28311 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28312 ac_top_srcdir=$ac_top_build_prefix$srcdir
28313 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28314 esac
28315 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28318 cd "$ac_dir"
28320 # Check for guested configure; otherwise get Cygnus style configure.
28321 if test -f "$ac_srcdir/configure.gnu"; then
28322 ac_sub_configure=$ac_srcdir/configure.gnu
28323 elif test -f "$ac_srcdir/configure"; then
28324 ac_sub_configure=$ac_srcdir/configure
28325 elif test -f "$ac_srcdir/configure.in"; then
28326 # This should be Cygnus configure.
28327 ac_sub_configure=$ac_aux_dir/configure
28328 else
28329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
28330 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
28331 ac_sub_configure=
28334 # The recursion is here.
28335 if test -n "$ac_sub_configure"; then
28336 # Make the cache file name correct relative to the subdirectory.
28337 case $cache_file in
28338 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
28339 *) # Relative name.
28340 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
28341 esac
28343 { $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
28344 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
28345 # The eval makes quoting arguments work.
28346 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
28347 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
28348 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
28351 cd "$ac_popdir"
28352 done
28354 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28356 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}