c++config (_GLIBCXX_SYNCHRONIZATION_HAPPENS_BEFORE, [...]): Add.
[official-gcc.git] / libjava / configure
blob8ccfa24cc126c92f0eb1ace3c80edca993d761bc
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for libjava version-unused.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='libjava'
558 PACKAGE_TARNAME='libjava'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='libjava version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
564 ac_unique_file="java/lang/System.java"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 enable_option_checking=no
602 ac_c_werror_flag=
603 ac_subst_vars='am__EXEEXT_FALSE
604 am__EXEEXT_TRUE
605 LTLIBOBJS
606 LIBOBJS
607 LIBDIR
610 GCJ_BIN_DIR
611 JRE_LIB_DIR
612 JRE_BIN_DIR
613 SDK_INCLUDE_DIR
614 SDK_LIB_DIR
615 SDK_BIN_DIR
616 SDK_LNK
617 JRE_LNK
618 JRE_DIR
619 JVM_JAR_DIR
620 JVM_JAR_ROOT_DIR
621 JVM_ROOT_DIR
622 BUILD_VERSION
623 JAVA_VERSION
624 gcc_suffix
625 CREATE_JAVA_HOME_FALSE
626 CREATE_JAVA_HOME_TRUE
627 INSTALL_AOT_RPM_FALSE
628 INSTALL_AOT_RPM_TRUE
629 MAKE
630 python_mod_dir_expanded
631 python_mod_dir
632 here
633 LD_FINISH_STATIC_SPEC
634 LD_START_STATIC_SPEC
635 ANONVERSCRIPT_SUN_FALSE
636 ANONVERSCRIPT_SUN_TRUE
637 ANONVERSCRIPT_GNU_FALSE
638 ANONVERSCRIPT_GNU_TRUE
639 ANONVERSCRIPT_FALSE
640 ANONVERSCRIPT_TRUE
641 SYSDEP_SOURCES
642 PERL
643 libstdcxx_incdir
644 gxx_include_dir
645 gcjsubdir
646 dbexecdir
647 GCJVERSION
648 toolexeclibdir
649 toolexecmainlibdir
650 toolexecdir
651 GCC_UNWIND_INCLUDE
652 INSTALL_BINARIES_FALSE
653 INSTALL_BINARIES_TRUE
654 NEEDS_DATA_START_FALSE
655 NEEDS_DATA_START_TRUE
656 ENABLE_SHARED_FALSE
657 ENABLE_SHARED_TRUE
658 NATIVE_FALSE
659 NATIVE_TRUE
660 ATOMICSPEC
661 IEEESPEC
662 BACKTRACESPEC
663 EXCEPTIONSPEC
664 CHECKREFSPEC
665 DIVIDESPEC
666 ZINCS
667 SYS_ZLIBS
668 ZLIBS
669 CLASSPATH_SEPARATOR
670 LIBART_LIBS
671 LIBART_CFLAGS
672 GLIB_LIBS
673 GLIB_CFLAGS
674 GTK_LIBS
675 GTK_CFLAGS
676 PKG_CONFIG
677 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 LIBSTDCXXSPEC
711 extra_ldflags
712 extra_ldflags_libjava
713 X_EXTRA_LIBS
714 X_LIBS
715 X_PRE_LIBS
716 X_CFLAGS
717 XMKMF
718 ZLIBTESTSPEC
719 ZLIBSPEC
720 SYSTEMSPEC
721 USING_DARWIN_CRT_FALSE
722 USING_DARWIN_CRT_TRUE
723 USING_POSIX_PLATFORM_FALSE
724 USING_POSIX_PLATFORM_TRUE
725 USING_WIN32_PLATFORM_FALSE
726 USING_WIN32_PLATFORM_TRUE
727 PLATFORM
728 LIBFFIINCS
729 LIBFFI
730 INTERPRETER_FALSE
731 INTERPRETER_TRUE
732 INTERPRETER
733 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE
734 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE
735 SUPPRESS_LIBGCJ_BC_FALSE
736 SUPPRESS_LIBGCJ_BC_TRUE
737 JAVA_HOME
738 JAVA_HOME_SET_FALSE
739 JAVA_HOME_SET_TRUE
740 INSTALL_ECJ_JAR_FALSE
741 INSTALL_ECJ_JAR_TRUE
742 BUILD_ECJ1_FALSE
743 BUILD_ECJ1_TRUE
744 ECJ_JAR
745 ECJ_BUILD_JAR
746 TESTSUBDIR_FALSE
747 TESTSUBDIR_TRUE
748 subdirs
749 am__fastdepGCJ_FALSE
750 am__fastdepGCJ_TRUE
751 GCJDEPMODE
752 GCJFLAGS
753 ac_ct_GCJ
755 CXXCPP
757 OTOOL64
758 OTOOL
759 LIPO
760 NMEDIT
761 DSYMUTIL
762 OBJDUMP
764 ac_ct_DUMPBIN
765 DUMPBIN
766 FGREP
767 EGREP
768 GREP
770 LIBTOOL
771 DIRLTDL
772 LIBLTDL
773 INCLTDL
774 host_exeext
775 GCJH
776 GCJ_FOR_ECJX
777 X_AWT_FALSE
778 X_AWT_TRUE
779 XLIB_AWT_FALSE
780 XLIB_AWT_TRUE
781 TOOLKIT
782 LIBGCJDEBUG
783 BUILD_SUBLIBS_FALSE
784 BUILD_SUBLIBS_TRUE
785 LIBGCJ_LD_SYMBOLIC_FUNCTIONS
786 LIBGCJ_LD_SYMBOLIC
787 LIBGCJ_SUBLIB_CORE_EXTRA_DEPS
788 LIBGCJ_SUBLIB_LTFLAGS
789 LIBGCJ_JAVAFLAGS
790 LIBGCJ_CXXFLAGS
791 LIBGCJ_CFLAGS
792 MAINT
793 MAINTAINER_MODE_FALSE
794 MAINTAINER_MODE_TRUE
795 UNZIP
798 DLLTOOL
799 RANLIB
803 am__fastdepCXX_FALSE
804 am__fastdepCXX_TRUE
805 CXXDEPMODE
806 am__fastdepCC_FALSE
807 am__fastdepCC_TRUE
808 CCDEPMODE
809 AMDEPBACKSLASH
810 AMDEP_FALSE
811 AMDEP_TRUE
812 am__quote
813 am__include
814 DEPDIR
815 am__untar
816 am__tar
817 AMTAR
818 am__leading_dot
819 SET_MAKE
821 mkdir_p
822 MKDIR_P
823 INSTALL_STRIP_PROGRAM
824 STRIP
825 install_sh
826 MAKEINFO
827 AUTOHEADER
828 AUTOMAKE
829 AUTOCONF
830 ACLOCAL
831 VERSION
832 PACKAGE
833 CYGPATH_W
834 am__isrc
835 INSTALL_DATA
836 INSTALL_SCRIPT
837 INSTALL_PROGRAM
838 ac_ct_CXX
839 CXXFLAGS
841 OBJEXT
842 EXEEXT
843 ac_ct_CC
844 CPPFLAGS
845 LDFLAGS
846 CFLAGS
848 JAVA_MAINTAINER_MODE_FALSE
849 JAVA_MAINTAINER_MODE_TRUE
850 CREATE_GJDOC_FALSE
851 CREATE_GJDOC_TRUE
852 ANTLR_JAR
853 mkinstalldirs
854 LN_S
855 target_noncanonical
856 target_os
857 target_vendor
858 target_cpu
859 target
860 host_os
861 host_vendor
862 host_cpu
863 host
864 multi_basedir
865 target_subdir
866 host_subdir
867 build_subdir
868 build_libsubdir
869 build_os
870 build_vendor
871 build_cpu
872 build
873 target_alias
874 host_alias
875 build_alias
876 LIBS
877 ECHO_T
878 ECHO_N
879 ECHO_C
880 DEFS
881 mandir
882 localedir
883 libdir
884 psdir
885 pdfdir
886 dvidir
887 htmldir
888 infodir
889 docdir
890 oldincludedir
891 includedir
892 localstatedir
893 sharedstatedir
894 sysconfdir
895 datadir
896 datarootdir
897 libexecdir
898 sbindir
899 bindir
900 program_transform_name
901 prefix
902 exec_prefix
903 PACKAGE_URL
904 PACKAGE_BUGREPORT
905 PACKAGE_STRING
906 PACKAGE_VERSION
907 PACKAGE_TARNAME
908 PACKAGE_NAME
909 PATH_SEPARATOR
910 SHELL'
911 ac_subst_files=''
912 ac_user_opts='
913 enable_option_checking
914 with_build_libsubdir
915 with_target_subdir
916 enable_multilib
917 with_cross_host
918 with_newlib
919 enable_version_specific_runtime_libs
920 enable_browser_plugin
921 enable_gconf_peer
922 with_antlr_jar
923 enable_gjdoc
924 enable_java_maintainer_mode
925 enable_dependency_tracking
926 enable_maintainer_mode
927 enable_libgcj_sublibs
928 enable_libgcj_debug
929 with_escher
930 enable_java_awt
931 enable_shared
932 enable_static
933 with_pic
934 enable_fast_install
935 with_gnu_ld
936 enable_libtool_lock
937 enable_getenv_properties
938 enable_hash_synchronization
939 with_ecj_jar
940 with_java_home
941 enable_libgcj_bc
942 enable_reduced_reflection
943 with_win32_nlsapi
944 enable_gc_debug
945 enable_interpreter
946 enable_sjlj_exceptions
947 enable_java_net
948 with_libffi
949 enable_jvmpi
950 with_ecos
951 with_system_zlib
952 with_x
953 enable_java_gc
954 enable_rpath
955 with_libiconv_prefix
956 enable_tls
957 with_system_libunwind
958 with_python_dir
959 enable_aot_compile_rpm
960 enable_java_home
961 with_gcc_suffix
962 with_arch_directory
963 with_os_directory
964 with_origin_name
965 with_arch_suffix
966 with_jvm_root_dir
967 with_jvm_jar_dir
969 ac_precious_vars='build_alias
970 host_alias
971 target_alias
973 CFLAGS
974 LDFLAGS
975 LIBS
976 CPPFLAGS
978 CXXFLAGS
981 CXXCPP
982 XMKMF'
983 ac_subdirs_all='classpath libltdl'
985 # Initialize some variables set by options.
986 ac_init_help=
987 ac_init_version=false
988 ac_unrecognized_opts=
989 ac_unrecognized_sep=
990 # The variables have the same names as the options, with
991 # dashes changed to underlines.
992 cache_file=/dev/null
993 exec_prefix=NONE
994 no_create=
995 no_recursion=
996 prefix=NONE
997 program_prefix=NONE
998 program_suffix=NONE
999 program_transform_name=s,x,x,
1000 silent=
1001 site=
1002 srcdir=
1003 verbose=
1004 x_includes=NONE
1005 x_libraries=NONE
1007 # Installation directory options.
1008 # These are left unexpanded so users can "make install exec_prefix=/foo"
1009 # and all the variables that are supposed to be based on exec_prefix
1010 # by default will actually change.
1011 # Use braces instead of parens because sh, perl, etc. also accept them.
1012 # (The list follows the same order as the GNU Coding Standards.)
1013 bindir='${exec_prefix}/bin'
1014 sbindir='${exec_prefix}/sbin'
1015 libexecdir='${exec_prefix}/libexec'
1016 datarootdir='${prefix}/share'
1017 datadir='${datarootdir}'
1018 sysconfdir='${prefix}/etc'
1019 sharedstatedir='${prefix}/com'
1020 localstatedir='${prefix}/var'
1021 includedir='${prefix}/include'
1022 oldincludedir='/usr/include'
1023 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1024 infodir='${datarootdir}/info'
1025 htmldir='${docdir}'
1026 dvidir='${docdir}'
1027 pdfdir='${docdir}'
1028 psdir='${docdir}'
1029 libdir='${exec_prefix}/lib'
1030 localedir='${datarootdir}/locale'
1031 mandir='${datarootdir}/man'
1033 ac_prev=
1034 ac_dashdash=
1035 for ac_option
1037 # If the previous option needs an argument, assign it.
1038 if test -n "$ac_prev"; then
1039 eval $ac_prev=\$ac_option
1040 ac_prev=
1041 continue
1044 case $ac_option in
1045 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1046 *) ac_optarg=yes ;;
1047 esac
1049 # Accept the important Cygnus configure options, so we can diagnose typos.
1051 case $ac_dashdash$ac_option in
1053 ac_dashdash=yes ;;
1055 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1056 ac_prev=bindir ;;
1057 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1058 bindir=$ac_optarg ;;
1060 -build | --build | --buil | --bui | --bu)
1061 ac_prev=build_alias ;;
1062 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1063 build_alias=$ac_optarg ;;
1065 -cache-file | --cache-file | --cache-fil | --cache-fi \
1066 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1067 ac_prev=cache_file ;;
1068 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1069 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1070 cache_file=$ac_optarg ;;
1072 --config-cache | -C)
1073 cache_file=config.cache ;;
1075 -datadir | --datadir | --datadi | --datad)
1076 ac_prev=datadir ;;
1077 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1078 datadir=$ac_optarg ;;
1080 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1081 | --dataroo | --dataro | --datar)
1082 ac_prev=datarootdir ;;
1083 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1084 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1085 datarootdir=$ac_optarg ;;
1087 -disable-* | --disable-*)
1088 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1089 # Reject names that are not valid shell variable names.
1090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1091 as_fn_error "invalid feature name: $ac_useropt"
1092 ac_useropt_orig=$ac_useropt
1093 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094 case $ac_user_opts in
1096 "enable_$ac_useropt"
1097 "*) ;;
1098 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1099 ac_unrecognized_sep=', ';;
1100 esac
1101 eval enable_$ac_useropt=no ;;
1103 -docdir | --docdir | --docdi | --doc | --do)
1104 ac_prev=docdir ;;
1105 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1106 docdir=$ac_optarg ;;
1108 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1109 ac_prev=dvidir ;;
1110 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1111 dvidir=$ac_optarg ;;
1113 -enable-* | --enable-*)
1114 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 as_fn_error "invalid feature name: $ac_useropt"
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1122 "enable_$ac_useropt"
1123 "*) ;;
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1126 esac
1127 eval enable_$ac_useropt=\$ac_optarg ;;
1129 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1130 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1131 | --exec | --exe | --ex)
1132 ac_prev=exec_prefix ;;
1133 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1134 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1135 | --exec=* | --exe=* | --ex=*)
1136 exec_prefix=$ac_optarg ;;
1138 -gas | --gas | --ga | --g)
1139 # Obsolete; use --with-gas.
1140 with_gas=yes ;;
1142 -help | --help | --hel | --he | -h)
1143 ac_init_help=long ;;
1144 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1145 ac_init_help=recursive ;;
1146 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1147 ac_init_help=short ;;
1149 -host | --host | --hos | --ho)
1150 ac_prev=host_alias ;;
1151 -host=* | --host=* | --hos=* | --ho=*)
1152 host_alias=$ac_optarg ;;
1154 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1155 ac_prev=htmldir ;;
1156 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1157 | --ht=*)
1158 htmldir=$ac_optarg ;;
1160 -includedir | --includedir | --includedi | --included | --include \
1161 | --includ | --inclu | --incl | --inc)
1162 ac_prev=includedir ;;
1163 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1164 | --includ=* | --inclu=* | --incl=* | --inc=*)
1165 includedir=$ac_optarg ;;
1167 -infodir | --infodir | --infodi | --infod | --info | --inf)
1168 ac_prev=infodir ;;
1169 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1170 infodir=$ac_optarg ;;
1172 -libdir | --libdir | --libdi | --libd)
1173 ac_prev=libdir ;;
1174 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1175 libdir=$ac_optarg ;;
1177 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1178 | --libexe | --libex | --libe)
1179 ac_prev=libexecdir ;;
1180 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1181 | --libexe=* | --libex=* | --libe=*)
1182 libexecdir=$ac_optarg ;;
1184 -localedir | --localedir | --localedi | --localed | --locale)
1185 ac_prev=localedir ;;
1186 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1187 localedir=$ac_optarg ;;
1189 -localstatedir | --localstatedir | --localstatedi | --localstated \
1190 | --localstate | --localstat | --localsta | --localst | --locals)
1191 ac_prev=localstatedir ;;
1192 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1193 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1194 localstatedir=$ac_optarg ;;
1196 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1197 ac_prev=mandir ;;
1198 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1199 mandir=$ac_optarg ;;
1201 -nfp | --nfp | --nf)
1202 # Obsolete; use --without-fp.
1203 with_fp=no ;;
1205 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1206 | --no-cr | --no-c | -n)
1207 no_create=yes ;;
1209 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1210 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1211 no_recursion=yes ;;
1213 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1214 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1215 | --oldin | --oldi | --old | --ol | --o)
1216 ac_prev=oldincludedir ;;
1217 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1218 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1219 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1220 oldincludedir=$ac_optarg ;;
1222 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1223 ac_prev=prefix ;;
1224 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1225 prefix=$ac_optarg ;;
1227 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1228 | --program-pre | --program-pr | --program-p)
1229 ac_prev=program_prefix ;;
1230 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1231 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1232 program_prefix=$ac_optarg ;;
1234 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1235 | --program-suf | --program-su | --program-s)
1236 ac_prev=program_suffix ;;
1237 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1238 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1239 program_suffix=$ac_optarg ;;
1241 -program-transform-name | --program-transform-name \
1242 | --program-transform-nam | --program-transform-na \
1243 | --program-transform-n | --program-transform- \
1244 | --program-transform | --program-transfor \
1245 | --program-transfo | --program-transf \
1246 | --program-trans | --program-tran \
1247 | --progr-tra | --program-tr | --program-t)
1248 ac_prev=program_transform_name ;;
1249 -program-transform-name=* | --program-transform-name=* \
1250 | --program-transform-nam=* | --program-transform-na=* \
1251 | --program-transform-n=* | --program-transform-=* \
1252 | --program-transform=* | --program-transfor=* \
1253 | --program-transfo=* | --program-transf=* \
1254 | --program-trans=* | --program-tran=* \
1255 | --progr-tra=* | --program-tr=* | --program-t=*)
1256 program_transform_name=$ac_optarg ;;
1258 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1259 ac_prev=pdfdir ;;
1260 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1261 pdfdir=$ac_optarg ;;
1263 -psdir | --psdir | --psdi | --psd | --ps)
1264 ac_prev=psdir ;;
1265 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1266 psdir=$ac_optarg ;;
1268 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1269 | -silent | --silent | --silen | --sile | --sil)
1270 silent=yes ;;
1272 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1273 ac_prev=sbindir ;;
1274 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1275 | --sbi=* | --sb=*)
1276 sbindir=$ac_optarg ;;
1278 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1279 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1280 | --sharedst | --shareds | --shared | --share | --shar \
1281 | --sha | --sh)
1282 ac_prev=sharedstatedir ;;
1283 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1284 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1285 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1286 | --sha=* | --sh=*)
1287 sharedstatedir=$ac_optarg ;;
1289 -site | --site | --sit)
1290 ac_prev=site ;;
1291 -site=* | --site=* | --sit=*)
1292 site=$ac_optarg ;;
1294 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1295 ac_prev=srcdir ;;
1296 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1297 srcdir=$ac_optarg ;;
1299 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1300 | --syscon | --sysco | --sysc | --sys | --sy)
1301 ac_prev=sysconfdir ;;
1302 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1303 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1304 sysconfdir=$ac_optarg ;;
1306 -target | --target | --targe | --targ | --tar | --ta | --t)
1307 ac_prev=target_alias ;;
1308 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1309 target_alias=$ac_optarg ;;
1311 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1312 verbose=yes ;;
1314 -version | --version | --versio | --versi | --vers | -V)
1315 ac_init_version=: ;;
1317 -with-* | --with-*)
1318 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1319 # Reject names that are not valid shell variable names.
1320 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1321 as_fn_error "invalid package name: $ac_useropt"
1322 ac_useropt_orig=$ac_useropt
1323 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1324 case $ac_user_opts in
1326 "with_$ac_useropt"
1327 "*) ;;
1328 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1329 ac_unrecognized_sep=', ';;
1330 esac
1331 eval with_$ac_useropt=\$ac_optarg ;;
1333 -without-* | --without-*)
1334 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1335 # Reject names that are not valid shell variable names.
1336 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1337 as_fn_error "invalid package name: $ac_useropt"
1338 ac_useropt_orig=$ac_useropt
1339 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1340 case $ac_user_opts in
1342 "with_$ac_useropt"
1343 "*) ;;
1344 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1345 ac_unrecognized_sep=', ';;
1346 esac
1347 eval with_$ac_useropt=no ;;
1349 --x)
1350 # Obsolete; use --with-x.
1351 with_x=yes ;;
1353 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1354 | --x-incl | --x-inc | --x-in | --x-i)
1355 ac_prev=x_includes ;;
1356 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1357 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1358 x_includes=$ac_optarg ;;
1360 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1361 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1362 ac_prev=x_libraries ;;
1363 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1364 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1365 x_libraries=$ac_optarg ;;
1367 -*) as_fn_error "unrecognized option: \`$ac_option'
1368 Try \`$0 --help' for more information."
1371 *=*)
1372 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1373 # Reject names that are not valid shell variable names.
1374 case $ac_envvar in #(
1375 '' | [0-9]* | *[!_$as_cr_alnum]* )
1376 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1377 esac
1378 eval $ac_envvar=\$ac_optarg
1379 export $ac_envvar ;;
1382 # FIXME: should be removed in autoconf 3.0.
1383 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1384 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1385 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1386 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1389 esac
1390 done
1392 if test -n "$ac_prev"; then
1393 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1394 as_fn_error "missing argument to $ac_option"
1397 if test -n "$ac_unrecognized_opts"; then
1398 case $enable_option_checking in
1399 no) ;;
1400 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1401 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1402 esac
1405 # Check all directory arguments for consistency.
1406 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1407 datadir sysconfdir sharedstatedir localstatedir includedir \
1408 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1409 libdir localedir mandir
1411 eval ac_val=\$$ac_var
1412 # Remove trailing slashes.
1413 case $ac_val in
1414 */ )
1415 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1416 eval $ac_var=\$ac_val;;
1417 esac
1418 # Be sure to have absolute directory names.
1419 case $ac_val in
1420 [\\/$]* | ?:[\\/]* ) continue;;
1421 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1422 esac
1423 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1424 done
1426 # There might be people who depend on the old broken behavior: `$host'
1427 # used to hold the argument of --host etc.
1428 # FIXME: To remove some day.
1429 build=$build_alias
1430 host=$host_alias
1431 target=$target_alias
1433 # FIXME: To remove some day.
1434 if test "x$host_alias" != x; then
1435 if test "x$build_alias" = x; then
1436 cross_compiling=maybe
1437 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1438 If a cross compiler is detected then cross compile mode will be used." >&2
1439 elif test "x$build_alias" != "x$host_alias"; then
1440 cross_compiling=yes
1444 ac_tool_prefix=
1445 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1447 test "$silent" = yes && exec 6>/dev/null
1450 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1451 ac_ls_di=`ls -di .` &&
1452 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1453 as_fn_error "working directory cannot be determined"
1454 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1455 as_fn_error "pwd does not report name of working directory"
1458 # Find the source files, if location was not specified.
1459 if test -z "$srcdir"; then
1460 ac_srcdir_defaulted=yes
1461 # Try the directory containing this script, then the parent directory.
1462 ac_confdir=`$as_dirname -- "$as_myself" ||
1463 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1464 X"$as_myself" : 'X\(//\)[^/]' \| \
1465 X"$as_myself" : 'X\(//\)$' \| \
1466 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1467 $as_echo X"$as_myself" |
1468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1469 s//\1/
1472 /^X\(\/\/\)[^/].*/{
1473 s//\1/
1476 /^X\(\/\/\)$/{
1477 s//\1/
1480 /^X\(\/\).*/{
1481 s//\1/
1484 s/.*/./; q'`
1485 srcdir=$ac_confdir
1486 if test ! -r "$srcdir/$ac_unique_file"; then
1487 srcdir=..
1489 else
1490 ac_srcdir_defaulted=no
1492 if test ! -r "$srcdir/$ac_unique_file"; then
1493 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1494 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1496 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1497 ac_abs_confdir=`(
1498 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1499 pwd)`
1500 # When building in place, set srcdir=.
1501 if test "$ac_abs_confdir" = "$ac_pwd"; then
1502 srcdir=.
1504 # Remove unnecessary trailing slashes from srcdir.
1505 # Double slashes in file names in object file debugging info
1506 # mess up M-x gdb in Emacs.
1507 case $srcdir in
1508 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1509 esac
1510 for ac_var in $ac_precious_vars; do
1511 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1512 eval ac_env_${ac_var}_value=\$${ac_var}
1513 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1514 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1515 done
1518 # Report the --help message.
1520 if test "$ac_init_help" = "long"; then
1521 # Omit some internal or obsolete options to make the list less imposing.
1522 # This message is too long to be a string in the A/UX 3.1 sh.
1523 cat <<_ACEOF
1524 \`configure' configures libjava version-unused to adapt to many kinds of systems.
1526 Usage: $0 [OPTION]... [VAR=VALUE]...
1528 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1529 VAR=VALUE. See below for descriptions of some of the useful variables.
1531 Defaults for the options are specified in brackets.
1533 Configuration:
1534 -h, --help display this help and exit
1535 --help=short display options specific to this package
1536 --help=recursive display the short help of all the included packages
1537 -V, --version display version information and exit
1538 -q, --quiet, --silent do not print \`checking...' messages
1539 --cache-file=FILE cache test results in FILE [disabled]
1540 -C, --config-cache alias for \`--cache-file=config.cache'
1541 -n, --no-create do not create output files
1542 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1544 Installation directories:
1545 --prefix=PREFIX install architecture-independent files in PREFIX
1546 [$ac_default_prefix]
1547 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1548 [PREFIX]
1550 By default, \`make install' will install all the files in
1551 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1552 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1553 for instance \`--prefix=\$HOME'.
1555 For better control, use the options below.
1557 Fine tuning of the installation directories:
1558 --bindir=DIR user executables [EPREFIX/bin]
1559 --sbindir=DIR system admin executables [EPREFIX/sbin]
1560 --libexecdir=DIR program executables [EPREFIX/libexec]
1561 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1562 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1563 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1564 --libdir=DIR object code libraries [EPREFIX/lib]
1565 --includedir=DIR C header files [PREFIX/include]
1566 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1567 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1568 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1569 --infodir=DIR info documentation [DATAROOTDIR/info]
1570 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1571 --mandir=DIR man documentation [DATAROOTDIR/man]
1572 --docdir=DIR documentation root [DATAROOTDIR/doc/libjava]
1573 --htmldir=DIR html documentation [DOCDIR]
1574 --dvidir=DIR dvi documentation [DOCDIR]
1575 --pdfdir=DIR pdf documentation [DOCDIR]
1576 --psdir=DIR ps documentation [DOCDIR]
1577 _ACEOF
1579 cat <<\_ACEOF
1581 Program names:
1582 --program-prefix=PREFIX prepend PREFIX to installed program names
1583 --program-suffix=SUFFIX append SUFFIX to installed program names
1584 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1586 X features:
1587 --x-includes=DIR X include files are in DIR
1588 --x-libraries=DIR X library files are in DIR
1590 System types:
1591 --build=BUILD configure for building on BUILD [guessed]
1592 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1593 --target=TARGET configure for building compilers for TARGET [HOST]
1594 _ACEOF
1597 if test -n "$ac_init_help"; then
1598 case $ac_init_help in
1599 short | recursive ) echo "Configuration of libjava version-unused:";;
1600 esac
1601 cat <<\_ACEOF
1603 Optional Features:
1604 --disable-option-checking ignore unrecognized --enable/--with options
1605 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1606 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1607 --enable-multilib build many library versions (default)
1608 --enable-version-specific-runtime-libs
1609 specify that runtime libraries should be installed
1610 in a compiler-specific directory
1611 --enable-browser-plugin build gcjwebplugin web browser plugin
1612 --enable-gconf-peer compile GConf native peers for util.preferences
1613 --disable-gjdoc compile GJDoc (disabled by --disable-gjdoc)
1614 default=yes
1615 --enable-java-maintainer-mode
1616 allow rebuilding of .class and .h files
1617 --disable-dependency-tracking speeds up one-time build
1618 --enable-dependency-tracking do not reject slow dependency extractors
1619 --enable-maintainer-mode enable make rules and dependencies not useful
1620 (and sometimes confusing) to the casual installer
1621 --enable-libgcj-sublibs build libgcj as many sub-libraries
1622 --enable-libgcj-debug enable runtime debugging code
1623 --enable-java-awt list of AWT peer implementations to be built
1624 --enable-shared[=PKGS] build shared libraries [default=yes]
1625 --enable-static[=PKGS] build static libraries [default=yes]
1626 --enable-fast-install[=PKGS]
1627 optimize for fast installation [default=yes]
1628 --disable-libtool-lock avoid locking (might break parallel builds)
1629 --disable-getenv-properties
1630 don't set system properties from GCJ_PROPERTIES
1631 --enable-hash-synchronization
1632 use global hash table for monitor locks
1633 --enable-libgcj-bc enable(default) or disable BC ABI for portions of
1634 libgcj
1635 --enable-reduced-reflection
1636 enable or disable(default) -freduced-reflection when
1637 building portions of libgcj
1638 --enable-gc-debug include full support for pointer backtracing etc.
1639 --enable-interpreter enable interpreter
1640 --enable-sjlj-exceptions
1641 force use of builtin_setjmp for exceptions
1642 --disable-java-net disable java.net
1643 --disable-jvmpi disable JVMPI support
1644 --enable-java-gc=TYPE choose garbage collector (default is boehm)
1645 --disable-rpath do not hardcode runtime library paths
1646 --enable-tls Use thread-local storage [default=yes]
1647 --enable-aot-compile-rpm
1648 enable installation of aot-compile-rpm [default=no]
1649 --enable-java-home create a standard JDK-style directory layout in the
1650 install tree [default=no]
1652 Optional Packages:
1653 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1654 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1655 --with-build-libsubdir=DIR Directory where to find libraries for build system
1656 --with-target-subdir=SUBDIR
1657 configure in a subdirectory
1658 --with-cross-host=HOST configure with a cross compiler from HOST
1659 --with-newlib configure with newlib
1660 --with-antlr-jar=file Use ANTLR from the specified jar file
1661 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
1662 --with-pic try to use only PIC/non-PIC objects [default=use
1663 both]
1664 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1665 --with-ecj-jar=FILE use preinstalled ecj jar
1666 --with-java-home=DIRECTORY
1667 value of java.home system property
1668 --with-win32-nlsapi=ansi or unicows or unicode
1669 native MinGW libgcj Win32 OS API (default is ansi)
1670 --without-libffi don't use libffi
1671 --with-ecos enable runtime eCos target support
1672 --with-system-zlib use installed libz
1673 --with-x use the X Window System
1674 --with-gnu-ld assume the C compiler uses GNU ld default=no
1675 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1676 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1677 --with-system-libunwind use installed libunwind
1678 --with-python-dir the location to install Python modules. This path
1679 should NOT include the prefix.
1680 --with-gcc-suffix the GCC tool suffix (defaults to empty string)
1681 --with-arch-directory the arch directory under jre/lib (defaults to
1682 auto-detect)
1683 --with-os-directory the os directory under include (defaults to
1684 auto-detect)
1685 --with-origin-name the JPackage origin name of this package (default is
1686 gcj${gcc_suffix}
1687 --with-arch-suffix the arch directory suffix (default is the empty
1688 string
1689 --with-jvm-root-dir where to install SDK (default is ${prefix}/lib/jvm)
1690 --with-jvm-jar-dir where to install jars (default is
1691 ${prefix}/lib/jvm-exports)
1693 Some influential environment variables:
1694 CC C compiler command
1695 CFLAGS C compiler flags
1696 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1697 nonstandard directory <lib dir>
1698 LIBS libraries to pass to the linker, e.g. -l<library>
1699 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1700 you have headers in a nonstandard directory <include dir>
1701 CXX C++ compiler command
1702 CXXFLAGS C++ compiler flags
1703 CPP C preprocessor
1704 CXXCPP C++ preprocessor
1705 XMKMF Path to xmkmf, Makefile generator for X Window System
1707 Use these variables to override the choices made by `configure' or to help
1708 it to find libraries and programs with nonstandard names/locations.
1710 Report bugs to the package provider.
1711 _ACEOF
1712 ac_status=$?
1715 if test "$ac_init_help" = "recursive"; then
1716 # If there are subdirs, report their specific --help.
1717 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1718 test -d "$ac_dir" ||
1719 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1720 continue
1721 ac_builddir=.
1723 case "$ac_dir" in
1724 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1726 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1727 # A ".." for each directory in $ac_dir_suffix.
1728 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1729 case $ac_top_builddir_sub in
1730 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1731 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1732 esac ;;
1733 esac
1734 ac_abs_top_builddir=$ac_pwd
1735 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1736 # for backward compatibility:
1737 ac_top_builddir=$ac_top_build_prefix
1739 case $srcdir in
1740 .) # We are building in place.
1741 ac_srcdir=.
1742 ac_top_srcdir=$ac_top_builddir_sub
1743 ac_abs_top_srcdir=$ac_pwd ;;
1744 [\\/]* | ?:[\\/]* ) # Absolute name.
1745 ac_srcdir=$srcdir$ac_dir_suffix;
1746 ac_top_srcdir=$srcdir
1747 ac_abs_top_srcdir=$srcdir ;;
1748 *) # Relative name.
1749 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1750 ac_top_srcdir=$ac_top_build_prefix$srcdir
1751 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1752 esac
1753 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1755 cd "$ac_dir" || { ac_status=$?; continue; }
1756 # Check for guested configure.
1757 if test -f "$ac_srcdir/configure.gnu"; then
1758 echo &&
1759 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1760 elif test -f "$ac_srcdir/configure"; then
1761 echo &&
1762 $SHELL "$ac_srcdir/configure" --help=recursive
1763 else
1764 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1765 fi || ac_status=$?
1766 cd "$ac_pwd" || { ac_status=$?; break; }
1767 done
1770 test -n "$ac_init_help" && exit $ac_status
1771 if $ac_init_version; then
1772 cat <<\_ACEOF
1773 libjava configure version-unused
1774 generated by GNU Autoconf 2.64
1776 Copyright (C) 2009 Free Software Foundation, Inc.
1777 This configure script is free software; the Free Software Foundation
1778 gives unlimited permission to copy, distribute and modify it.
1779 _ACEOF
1780 exit
1783 ## ------------------------ ##
1784 ## Autoconf initialization. ##
1785 ## ------------------------ ##
1787 # ac_fn_c_try_compile LINENO
1788 # --------------------------
1789 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1790 ac_fn_c_try_compile ()
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 rm -f conftest.$ac_objext
1794 if { { ac_try="$ac_compile"
1795 case "(($ac_try" in
1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797 *) ac_try_echo=$ac_try;;
1798 esac
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_compile") 2>conftest.err
1802 ac_status=$?
1803 if test -s conftest.err; then
1804 grep -v '^ *+' conftest.err >conftest.er1
1805 cat conftest.er1 >&5
1806 mv -f conftest.er1 conftest.err
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && {
1810 test -z "$ac_c_werror_flag" ||
1811 test ! -s conftest.err
1812 } && test -s conftest.$ac_objext; then :
1813 ac_retval=0
1814 else
1815 $as_echo "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.$ac_ext >&5
1818 ac_retval=1
1820 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1821 return $ac_retval
1823 } # ac_fn_c_try_compile
1825 # ac_fn_cxx_try_compile LINENO
1826 # ----------------------------
1827 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1828 ac_fn_cxx_try_compile ()
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 rm -f conftest.$ac_objext
1832 if { { ac_try="$ac_compile"
1833 case "(($ac_try" in
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1836 esac
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_compile") 2>conftest.err
1840 ac_status=$?
1841 if test -s conftest.err; then
1842 grep -v '^ *+' conftest.err >conftest.er1
1843 cat conftest.er1 >&5
1844 mv -f conftest.er1 conftest.err
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; } && {
1848 test -z "$ac_cxx_werror_flag" ||
1849 test ! -s conftest.err
1850 } && test -s conftest.$ac_objext; then :
1851 ac_retval=0
1852 else
1853 $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1856 ac_retval=1
1858 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1859 return $ac_retval
1861 } # ac_fn_cxx_try_compile
1863 # ac_fn_c_try_link LINENO
1864 # -----------------------
1865 # Try to link conftest.$ac_ext, and return whether this succeeded.
1866 ac_fn_c_try_link ()
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 rm -f conftest.$ac_objext conftest$ac_exeext
1870 if { { ac_try="$ac_link"
1871 case "(($ac_try" in
1872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873 *) ac_try_echo=$ac_try;;
1874 esac
1875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876 $as_echo "$ac_try_echo"; } >&5
1877 (eval "$ac_link") 2>conftest.err
1878 ac_status=$?
1879 if test -s conftest.err; then
1880 grep -v '^ *+' conftest.err >conftest.er1
1881 cat conftest.er1 >&5
1882 mv -f conftest.er1 conftest.err
1884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885 test $ac_status = 0; } && {
1886 test -z "$ac_c_werror_flag" ||
1887 test ! -s conftest.err
1888 } && test -s conftest$ac_exeext && {
1889 test "$cross_compiling" = yes ||
1890 $as_test_x conftest$ac_exeext
1891 }; then :
1892 ac_retval=0
1893 else
1894 $as_echo "$as_me: failed program was:" >&5
1895 sed 's/^/| /' conftest.$ac_ext >&5
1897 ac_retval=1
1899 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1900 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1901 # interfere with the next link command; also delete a directory that is
1902 # left behind by Apple's compiler. We do this before executing the actions.
1903 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1904 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1905 return $ac_retval
1907 } # ac_fn_c_try_link
1909 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1910 # -------------------------------------------------------
1911 # Tests whether HEADER exists and can be compiled using the include files in
1912 # INCLUDES, setting the cache variable VAR accordingly.
1913 ac_fn_c_check_header_compile ()
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917 $as_echo_n "checking for $2... " >&6; }
1918 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1919 $as_echo_n "(cached) " >&6
1920 else
1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h. */
1924 #include <$2>
1925 _ACEOF
1926 if ac_fn_c_try_compile "$LINENO"; then :
1927 eval "$3=yes"
1928 else
1929 eval "$3=no"
1931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1933 eval ac_res=\$$3
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1936 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1938 } # ac_fn_c_check_header_compile
1940 # ac_fn_c_try_cpp LINENO
1941 # ----------------------
1942 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1943 ac_fn_c_try_cpp ()
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 if { { ac_try="$ac_cpp conftest.$ac_ext"
1947 case "(($ac_try" in
1948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1949 *) ac_try_echo=$ac_try;;
1950 esac
1951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1952 $as_echo "$ac_try_echo"; } >&5
1953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1954 ac_status=$?
1955 if test -s conftest.err; then
1956 grep -v '^ *+' conftest.err >conftest.er1
1957 cat conftest.er1 >&5
1958 mv -f conftest.er1 conftest.err
1960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1961 test $ac_status = 0; } >/dev/null && {
1962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1963 test ! -s conftest.err
1964 }; then :
1965 ac_retval=0
1966 else
1967 $as_echo "$as_me: failed program was:" >&5
1968 sed 's/^/| /' conftest.$ac_ext >&5
1970 ac_retval=1
1972 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1973 return $ac_retval
1975 } # ac_fn_c_try_cpp
1977 # ac_fn_c_try_run LINENO
1978 # ----------------------
1979 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1980 # that executables *can* be run.
1981 ac_fn_c_try_run ()
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 if { { ac_try="$ac_link"
1985 case "(($ac_try" in
1986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1987 *) ac_try_echo=$ac_try;;
1988 esac
1989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1990 $as_echo "$ac_try_echo"; } >&5
1991 (eval "$ac_link") 2>&5
1992 ac_status=$?
1993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1994 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1995 { { case "(($ac_try" in
1996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1997 *) ac_try_echo=$ac_try;;
1998 esac
1999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000 $as_echo "$ac_try_echo"; } >&5
2001 (eval "$ac_try") 2>&5
2002 ac_status=$?
2003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2004 test $ac_status = 0; }; }; then :
2005 ac_retval=0
2006 else
2007 $as_echo "$as_me: program exited with status $ac_status" >&5
2008 $as_echo "$as_me: failed program was:" >&5
2009 sed 's/^/| /' conftest.$ac_ext >&5
2011 ac_retval=$ac_status
2013 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2014 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2015 return $ac_retval
2017 } # ac_fn_c_try_run
2019 # ac_fn_c_check_func LINENO FUNC VAR
2020 # ----------------------------------
2021 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2022 ac_fn_c_check_func ()
2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026 $as_echo_n "checking for $2... " >&6; }
2027 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2028 $as_echo_n "(cached) " >&6
2029 else
2030 if test x$gcc_no_link = xyes; then
2031 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2035 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2037 #define $2 innocuous_$2
2039 /* System header to define __stub macros and hopefully few prototypes,
2040 which can conflict with char $2 (); below.
2041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2042 <limits.h> exists even on freestanding compilers. */
2044 #ifdef __STDC__
2045 # include <limits.h>
2046 #else
2047 # include <assert.h>
2048 #endif
2050 #undef $2
2052 /* Override any GCC internal prototype to avoid an error.
2053 Use char because int might match the return type of a GCC
2054 builtin and then its argument prototype would still apply. */
2055 #ifdef __cplusplus
2056 extern "C"
2057 #endif
2058 char $2 ();
2059 /* The GNU C library defines this for functions which it implements
2060 to always fail with ENOSYS. Some functions are actually named
2061 something starting with __ and the normal name is an alias. */
2062 #if defined __stub_$2 || defined __stub___$2
2063 choke me
2064 #endif
2067 main ()
2069 return $2 ();
2071 return 0;
2073 _ACEOF
2074 if ac_fn_c_try_link "$LINENO"; then :
2075 eval "$3=yes"
2076 else
2077 eval "$3=no"
2079 rm -f core conftest.err conftest.$ac_objext \
2080 conftest$ac_exeext conftest.$ac_ext
2082 eval ac_res=\$$3
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2084 $as_echo "$ac_res" >&6; }
2085 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2087 } # ac_fn_c_check_func
2089 # ac_fn_cxx_try_cpp LINENO
2090 # ------------------------
2091 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2092 ac_fn_cxx_try_cpp ()
2094 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2095 if { { ac_try="$ac_cpp conftest.$ac_ext"
2096 case "(($ac_try" in
2097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2098 *) ac_try_echo=$ac_try;;
2099 esac
2100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2101 $as_echo "$ac_try_echo"; } >&5
2102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2103 ac_status=$?
2104 if test -s conftest.err; then
2105 grep -v '^ *+' conftest.err >conftest.er1
2106 cat conftest.er1 >&5
2107 mv -f conftest.er1 conftest.err
2109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2110 test $ac_status = 0; } >/dev/null && {
2111 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2112 test ! -s conftest.err
2113 }; then :
2114 ac_retval=0
2115 else
2116 $as_echo "$as_me: failed program was:" >&5
2117 sed 's/^/| /' conftest.$ac_ext >&5
2119 ac_retval=1
2121 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2122 return $ac_retval
2124 } # ac_fn_cxx_try_cpp
2126 # ac_fn_cxx_try_link LINENO
2127 # -------------------------
2128 # Try to link conftest.$ac_ext, and return whether this succeeded.
2129 ac_fn_cxx_try_link ()
2131 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2132 rm -f conftest.$ac_objext conftest$ac_exeext
2133 if { { ac_try="$ac_link"
2134 case "(($ac_try" in
2135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2136 *) ac_try_echo=$ac_try;;
2137 esac
2138 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2139 $as_echo "$ac_try_echo"; } >&5
2140 (eval "$ac_link") 2>conftest.err
2141 ac_status=$?
2142 if test -s conftest.err; then
2143 grep -v '^ *+' conftest.err >conftest.er1
2144 cat conftest.er1 >&5
2145 mv -f conftest.er1 conftest.err
2147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2148 test $ac_status = 0; } && {
2149 test -z "$ac_cxx_werror_flag" ||
2150 test ! -s conftest.err
2151 } && test -s conftest$ac_exeext && {
2152 test "$cross_compiling" = yes ||
2153 $as_test_x conftest$ac_exeext
2154 }; then :
2155 ac_retval=0
2156 else
2157 $as_echo "$as_me: failed program was:" >&5
2158 sed 's/^/| /' conftest.$ac_ext >&5
2160 ac_retval=1
2162 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2163 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2164 # interfere with the next link command; also delete a directory that is
2165 # left behind by Apple's compiler. We do this before executing the actions.
2166 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2167 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2168 return $ac_retval
2170 } # ac_fn_cxx_try_link
2172 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2173 # -------------------------------------------------------
2174 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2175 # the include files in INCLUDES and setting the cache variable VAR
2176 # accordingly.
2177 ac_fn_c_check_header_mongrel ()
2179 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2180 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2182 $as_echo_n "checking for $2... " >&6; }
2183 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2184 $as_echo_n "(cached) " >&6
2186 eval ac_res=\$$3
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2188 $as_echo "$ac_res" >&6; }
2189 else
2190 # Is the header compilable?
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2192 $as_echo_n "checking $2 usability... " >&6; }
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2196 #include <$2>
2197 _ACEOF
2198 if ac_fn_c_try_compile "$LINENO"; then :
2199 ac_header_compiler=yes
2200 else
2201 ac_header_compiler=no
2203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2205 $as_echo "$ac_header_compiler" >&6; }
2207 # Is the header present?
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2209 $as_echo_n "checking $2 presence... " >&6; }
2210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2211 /* end confdefs.h. */
2212 #include <$2>
2213 _ACEOF
2214 if ac_fn_c_try_cpp "$LINENO"; then :
2215 ac_header_preproc=yes
2216 else
2217 ac_header_preproc=no
2219 rm -f conftest.err conftest.$ac_ext
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2221 $as_echo "$ac_header_preproc" >&6; }
2223 # So? What about this header?
2224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2225 yes:no: )
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2227 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2229 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2231 no:yes:* )
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2233 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2235 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2237 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2239 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2241 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2243 esac
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2245 $as_echo_n "checking for $2... " >&6; }
2246 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2247 $as_echo_n "(cached) " >&6
2248 else
2249 eval "$3=\$ac_header_compiler"
2251 eval ac_res=\$$3
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2253 $as_echo "$ac_res" >&6; }
2255 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2257 } # ac_fn_c_check_header_mongrel
2259 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2260 # ----------------------------------------------------
2261 # Tries to find if the field MEMBER exists in type AGGR, after including
2262 # INCLUDES, setting cache variable VAR accordingly.
2263 ac_fn_c_check_member ()
2265 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2267 $as_echo_n "checking for $2.$3... " >&6; }
2268 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2269 $as_echo_n "(cached) " >&6
2270 else
2271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2272 /* end confdefs.h. */
2275 main ()
2277 static $2 ac_aggr;
2278 if (ac_aggr.$3)
2279 return 0;
2281 return 0;
2283 _ACEOF
2284 if ac_fn_c_try_compile "$LINENO"; then :
2285 eval "$4=yes"
2286 else
2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h. */
2291 main ()
2293 static $2 ac_aggr;
2294 if (sizeof ac_aggr.$3)
2295 return 0;
2297 return 0;
2299 _ACEOF
2300 if ac_fn_c_try_compile "$LINENO"; then :
2301 eval "$4=yes"
2302 else
2303 eval "$4=no"
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2309 eval ac_res=\$$4
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2311 $as_echo "$ac_res" >&6; }
2312 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2314 } # ac_fn_c_check_member
2316 # ac_fn_c_check_decl LINENO SYMBOL VAR
2317 # ------------------------------------
2318 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2319 ac_fn_c_check_decl ()
2321 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2322 as_decl_name=`echo $2|sed 's/ *(.*//'`
2323 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2325 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2326 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2327 $as_echo_n "(cached) " >&6
2328 else
2329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2330 /* end confdefs.h. */
2333 main ()
2335 #ifndef $as_decl_name
2336 #ifdef __cplusplus
2337 (void) $as_decl_use;
2338 #else
2339 (void) $as_decl_name;
2340 #endif
2341 #endif
2344 return 0;
2346 _ACEOF
2347 if ac_fn_c_try_compile "$LINENO"; then :
2348 eval "$3=yes"
2349 else
2350 eval "$3=no"
2352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2354 eval ac_res=\$$3
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2356 $as_echo "$ac_res" >&6; }
2357 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2359 } # ac_fn_c_check_decl
2361 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2362 # --------------------------------------------
2363 # Tries to find the compile-time value of EXPR in a program that includes
2364 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2365 # computed
2366 ac_fn_c_compute_int ()
2368 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2369 if test "$cross_compiling" = yes; then
2370 # Depending upon the size, compute the lo and hi bounds.
2371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2372 /* end confdefs.h. */
2375 main ()
2377 static int test_array [1 - 2 * !(($2) >= 0)];
2378 test_array [0] = 0
2381 return 0;
2383 _ACEOF
2384 if ac_fn_c_try_compile "$LINENO"; then :
2385 ac_lo=0 ac_mid=0
2386 while :; do
2387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2388 /* end confdefs.h. */
2391 main ()
2393 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2394 test_array [0] = 0
2397 return 0;
2399 _ACEOF
2400 if ac_fn_c_try_compile "$LINENO"; then :
2401 ac_hi=$ac_mid; break
2402 else
2403 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2404 if test $ac_lo -le $ac_mid; then
2405 ac_lo= ac_hi=
2406 break
2408 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2411 done
2412 else
2413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2414 /* end confdefs.h. */
2417 main ()
2419 static int test_array [1 - 2 * !(($2) < 0)];
2420 test_array [0] = 0
2423 return 0;
2425 _ACEOF
2426 if ac_fn_c_try_compile "$LINENO"; then :
2427 ac_hi=-1 ac_mid=-1
2428 while :; do
2429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2430 /* end confdefs.h. */
2433 main ()
2435 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2436 test_array [0] = 0
2439 return 0;
2441 _ACEOF
2442 if ac_fn_c_try_compile "$LINENO"; then :
2443 ac_lo=$ac_mid; break
2444 else
2445 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2446 if test $ac_mid -le $ac_hi; then
2447 ac_lo= ac_hi=
2448 break
2450 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2453 done
2454 else
2455 ac_lo= ac_hi=
2457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2460 # Binary search between lo and hi bounds.
2461 while test "x$ac_lo" != "x$ac_hi"; do
2462 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2464 /* end confdefs.h. */
2467 main ()
2469 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2470 test_array [0] = 0
2473 return 0;
2475 _ACEOF
2476 if ac_fn_c_try_compile "$LINENO"; then :
2477 ac_hi=$ac_mid
2478 else
2479 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2482 done
2483 case $ac_lo in #((
2484 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2485 '') ac_retval=1 ;;
2486 esac
2487 else
2488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2489 /* end confdefs.h. */
2491 static long int longval () { return $2; }
2492 static unsigned long int ulongval () { return $2; }
2493 #include <stdio.h>
2494 #include <stdlib.h>
2496 main ()
2499 FILE *f = fopen ("conftest.val", "w");
2500 if (! f)
2501 return 1;
2502 if (($2) < 0)
2504 long int i = longval ();
2505 if (i != ($2))
2506 return 1;
2507 fprintf (f, "%ld", i);
2509 else
2511 unsigned long int i = ulongval ();
2512 if (i != ($2))
2513 return 1;
2514 fprintf (f, "%lu", i);
2516 /* Do not output a trailing newline, as this causes \r\n confusion
2517 on some platforms. */
2518 return ferror (f) || fclose (f) != 0;
2521 return 0;
2523 _ACEOF
2524 if ac_fn_c_try_run "$LINENO"; then :
2525 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2526 else
2527 ac_retval=1
2529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2530 conftest.$ac_objext conftest.beam conftest.$ac_ext
2531 rm -f conftest.val
2534 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2535 return $ac_retval
2537 } # ac_fn_c_compute_int
2539 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2540 # -------------------------------------------
2541 # Tests whether TYPE exists after having included INCLUDES, setting cache
2542 # variable VAR accordingly.
2543 ac_fn_c_check_type ()
2545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2547 $as_echo_n "checking for $2... " >&6; }
2548 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2549 $as_echo_n "(cached) " >&6
2550 else
2551 eval "$3=no"
2552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2553 /* end confdefs.h. */
2556 main ()
2558 if (sizeof ($2))
2559 return 0;
2561 return 0;
2563 _ACEOF
2564 if ac_fn_c_try_compile "$LINENO"; then :
2565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2566 /* end confdefs.h. */
2569 main ()
2571 if (sizeof (($2)))
2572 return 0;
2574 return 0;
2576 _ACEOF
2577 if ac_fn_c_try_compile "$LINENO"; then :
2579 else
2580 eval "$3=yes"
2582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2586 eval ac_res=\$$3
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2588 $as_echo "$ac_res" >&6; }
2589 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2591 } # ac_fn_c_check_type
2592 cat >config.log <<_ACEOF
2593 This file contains any messages produced by compilers while
2594 running configure, to aid debugging if configure makes a mistake.
2596 It was created by libjava $as_me version-unused, which was
2597 generated by GNU Autoconf 2.64. Invocation command line was
2599 $ $0 $@
2601 _ACEOF
2602 exec 5>>config.log
2604 cat <<_ASUNAME
2605 ## --------- ##
2606 ## Platform. ##
2607 ## --------- ##
2609 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2610 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2611 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2612 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2613 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2615 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2616 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2618 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2619 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2620 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2621 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2622 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2623 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2624 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2626 _ASUNAME
2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 for as_dir in $PATH
2631 IFS=$as_save_IFS
2632 test -z "$as_dir" && as_dir=.
2633 $as_echo "PATH: $as_dir"
2634 done
2635 IFS=$as_save_IFS
2637 } >&5
2639 cat >&5 <<_ACEOF
2642 ## ----------- ##
2643 ## Core tests. ##
2644 ## ----------- ##
2646 _ACEOF
2649 # Keep a trace of the command line.
2650 # Strip out --no-create and --no-recursion so they do not pile up.
2651 # Strip out --silent because we don't want to record it for future runs.
2652 # Also quote any args containing shell meta-characters.
2653 # Make two passes to allow for proper duplicate-argument suppression.
2654 ac_configure_args=
2655 ac_configure_args0=
2656 ac_configure_args1=
2657 ac_must_keep_next=false
2658 for ac_pass in 1 2
2660 for ac_arg
2662 case $ac_arg in
2663 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2664 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2665 | -silent | --silent | --silen | --sile | --sil)
2666 continue ;;
2667 *\'*)
2668 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2669 esac
2670 case $ac_pass in
2671 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2673 as_fn_append ac_configure_args1 " '$ac_arg'"
2674 if test $ac_must_keep_next = true; then
2675 ac_must_keep_next=false # Got value, back to normal.
2676 else
2677 case $ac_arg in
2678 *=* | --config-cache | -C | -disable-* | --disable-* \
2679 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2680 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2681 | -with-* | --with-* | -without-* | --without-* | --x)
2682 case "$ac_configure_args0 " in
2683 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2684 esac
2686 -* ) ac_must_keep_next=true ;;
2687 esac
2689 as_fn_append ac_configure_args " '$ac_arg'"
2691 esac
2692 done
2693 done
2694 { ac_configure_args0=; unset ac_configure_args0;}
2695 { ac_configure_args1=; unset ac_configure_args1;}
2697 # When interrupted or exit'd, cleanup temporary files, and complete
2698 # config.log. We remove comments because anyway the quotes in there
2699 # would cause problems or look ugly.
2700 # WARNING: Use '\'' to represent an apostrophe within the trap.
2701 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2702 trap 'exit_status=$?
2703 # Save into config.log some information that might help in debugging.
2705 echo
2707 cat <<\_ASBOX
2708 ## ---------------- ##
2709 ## Cache variables. ##
2710 ## ---------------- ##
2711 _ASBOX
2712 echo
2713 # The following way of writing the cache mishandles newlines in values,
2715 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2716 eval ac_val=\$$ac_var
2717 case $ac_val in #(
2718 *${as_nl}*)
2719 case $ac_var in #(
2720 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2721 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2722 esac
2723 case $ac_var in #(
2724 _ | IFS | as_nl) ;; #(
2725 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2726 *) { eval $ac_var=; unset $ac_var;} ;;
2727 esac ;;
2728 esac
2729 done
2730 (set) 2>&1 |
2731 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2732 *${as_nl}ac_space=\ *)
2733 sed -n \
2734 "s/'\''/'\''\\\\'\'''\''/g;
2735 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2736 ;; #(
2738 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2740 esac |
2741 sort
2743 echo
2745 cat <<\_ASBOX
2746 ## ----------------- ##
2747 ## Output variables. ##
2748 ## ----------------- ##
2749 _ASBOX
2750 echo
2751 for ac_var in $ac_subst_vars
2753 eval ac_val=\$$ac_var
2754 case $ac_val in
2755 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2756 esac
2757 $as_echo "$ac_var='\''$ac_val'\''"
2758 done | sort
2759 echo
2761 if test -n "$ac_subst_files"; then
2762 cat <<\_ASBOX
2763 ## ------------------- ##
2764 ## File substitutions. ##
2765 ## ------------------- ##
2766 _ASBOX
2767 echo
2768 for ac_var in $ac_subst_files
2770 eval ac_val=\$$ac_var
2771 case $ac_val in
2772 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2773 esac
2774 $as_echo "$ac_var='\''$ac_val'\''"
2775 done | sort
2776 echo
2779 if test -s confdefs.h; then
2780 cat <<\_ASBOX
2781 ## ----------- ##
2782 ## confdefs.h. ##
2783 ## ----------- ##
2784 _ASBOX
2785 echo
2786 cat confdefs.h
2787 echo
2789 test "$ac_signal" != 0 &&
2790 $as_echo "$as_me: caught signal $ac_signal"
2791 $as_echo "$as_me: exit $exit_status"
2792 } >&5
2793 rm -f core *.core core.conftest.* &&
2794 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2795 exit $exit_status
2797 for ac_signal in 1 2 13 15; do
2798 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2799 done
2800 ac_signal=0
2802 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2803 rm -f -r conftest* confdefs.h
2805 $as_echo "/* confdefs.h */" > confdefs.h
2807 # Predefined preprocessor variables.
2809 cat >>confdefs.h <<_ACEOF
2810 #define PACKAGE_NAME "$PACKAGE_NAME"
2811 _ACEOF
2813 cat >>confdefs.h <<_ACEOF
2814 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2815 _ACEOF
2817 cat >>confdefs.h <<_ACEOF
2818 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2819 _ACEOF
2821 cat >>confdefs.h <<_ACEOF
2822 #define PACKAGE_STRING "$PACKAGE_STRING"
2823 _ACEOF
2825 cat >>confdefs.h <<_ACEOF
2826 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2827 _ACEOF
2829 cat >>confdefs.h <<_ACEOF
2830 #define PACKAGE_URL "$PACKAGE_URL"
2831 _ACEOF
2834 # Let the site file select an alternate cache file if it wants to.
2835 # Prefer an explicitly selected file to automatically selected ones.
2836 ac_site_file1=NONE
2837 ac_site_file2=NONE
2838 if test -n "$CONFIG_SITE"; then
2839 ac_site_file1=$CONFIG_SITE
2840 elif test "x$prefix" != xNONE; then
2841 ac_site_file1=$prefix/share/config.site
2842 ac_site_file2=$prefix/etc/config.site
2843 else
2844 ac_site_file1=$ac_default_prefix/share/config.site
2845 ac_site_file2=$ac_default_prefix/etc/config.site
2847 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2849 test "x$ac_site_file" = xNONE && continue
2850 if test -r "$ac_site_file"; then
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2852 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2853 sed 's/^/| /' "$ac_site_file" >&5
2854 . "$ac_site_file"
2856 done
2858 if test -r "$cache_file"; then
2859 # Some versions of bash will fail to source /dev/null (special
2860 # files actually), so we avoid doing that.
2861 if test -f "$cache_file"; then
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2863 $as_echo "$as_me: loading cache $cache_file" >&6;}
2864 case $cache_file in
2865 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2866 *) . "./$cache_file";;
2867 esac
2869 else
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2871 $as_echo "$as_me: creating cache $cache_file" >&6;}
2872 >$cache_file
2875 # Check that the precious variables saved in the cache have kept the same
2876 # value.
2877 ac_cache_corrupted=false
2878 for ac_var in $ac_precious_vars; do
2879 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2880 eval ac_new_set=\$ac_env_${ac_var}_set
2881 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2882 eval ac_new_val=\$ac_env_${ac_var}_value
2883 case $ac_old_set,$ac_new_set in
2884 set,)
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2886 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2887 ac_cache_corrupted=: ;;
2888 ,set)
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2890 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2891 ac_cache_corrupted=: ;;
2892 ,);;
2894 if test "x$ac_old_val" != "x$ac_new_val"; then
2895 # differences in whitespace do not lead to failure.
2896 ac_old_val_w=`echo x $ac_old_val`
2897 ac_new_val_w=`echo x $ac_new_val`
2898 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2900 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2901 ac_cache_corrupted=:
2902 else
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2904 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2905 eval $ac_var=\$ac_old_val
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2908 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2910 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2911 fi;;
2912 esac
2913 # Pass precious variables to config.status.
2914 if test "$ac_new_set" = set; then
2915 case $ac_new_val in
2916 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2917 *) ac_arg=$ac_var=$ac_new_val ;;
2918 esac
2919 case " $ac_configure_args " in
2920 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2921 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2922 esac
2924 done
2925 if $ac_cache_corrupted; then
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2927 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2929 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2930 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2932 ## -------------------- ##
2933 ## Main body of script. ##
2934 ## -------------------- ##
2936 ac_ext=c
2937 ac_cpp='$CPP $CPPFLAGS'
2938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2949 ac_aux_dir=
2950 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2951 for ac_t in install-sh install.sh shtool; do
2952 if test -f "$ac_dir/$ac_t"; then
2953 ac_aux_dir=$ac_dir
2954 ac_install_sh="$ac_aux_dir/$ac_t -c"
2955 break 2
2957 done
2958 done
2959 if test -z "$ac_aux_dir"; then
2960 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2963 # These three variables are undocumented and unsupported,
2964 # and are intended to be withdrawn in a future Autoconf release.
2965 # They can cause serious problems if a builder's source tree is in a directory
2966 # whose full name contains unusual characters.
2967 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2968 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2969 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2972 # Make sure we can run config.sub.
2973 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2974 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2977 $as_echo_n "checking build system type... " >&6; }
2978 if test "${ac_cv_build+set}" = set; then :
2979 $as_echo_n "(cached) " >&6
2980 else
2981 ac_build_alias=$build_alias
2982 test "x$ac_build_alias" = x &&
2983 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2984 test "x$ac_build_alias" = x &&
2985 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2986 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2987 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2991 $as_echo "$ac_cv_build" >&6; }
2992 case $ac_cv_build in
2993 *-*-*) ;;
2994 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2995 esac
2996 build=$ac_cv_build
2997 ac_save_IFS=$IFS; IFS='-'
2998 set x $ac_cv_build
2999 shift
3000 build_cpu=$1
3001 build_vendor=$2
3002 shift; shift
3003 # Remember, the first character of IFS is used to create $*,
3004 # except with old shells:
3005 build_os=$*
3006 IFS=$ac_save_IFS
3007 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3010 case ${build_alias} in
3011 "") build_noncanonical=${build} ;;
3012 *) build_noncanonical=${build_alias} ;;
3013 esac
3015 case ${host_alias} in
3016 "") host_noncanonical=${build_noncanonical} ;;
3017 *) host_noncanonical=${host_alias} ;;
3018 esac
3020 case ${target_alias} in
3021 "") target_noncanonical=${host_noncanonical} ;;
3022 *) target_noncanonical=${target_alias} ;;
3023 esac
3026 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3027 # have matching libraries, they should use host libraries: Makefile.tpl
3028 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3029 # However, they still use the build modules, because the corresponding
3030 # host modules (e.g. bison) are only built for the host when bootstrap
3031 # finishes. So:
3032 # - build_subdir is where we find build modules, and never changes.
3033 # - build_libsubdir is where we find build libraries, and can be overridden.
3035 # Prefix 'build-' so this never conflicts with target_subdir.
3036 build_subdir="build-${build_noncanonical}"
3038 # Check whether --with-build-libsubdir was given.
3039 if test "${with_build_libsubdir+set}" = set; then :
3040 withval=$with_build_libsubdir; build_libsubdir="$withval"
3041 else
3042 build_libsubdir="$build_subdir"
3045 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3046 if ( test $srcdir = . && test -d gcc ) \
3047 || test -d $srcdir/../host-${host_noncanonical}; then
3048 host_subdir="host-${host_noncanonical}"
3049 else
3050 host_subdir=.
3052 # No prefix.
3053 target_subdir=${target_noncanonical}
3056 # We use these options to decide which functions to include.
3058 # Check whether --with-target-subdir was given.
3059 if test "${with_target_subdir+set}" = set; then :
3060 withval=$with_target_subdir;
3064 # We may get other options which we don't document:
3065 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3067 # Find the rest of the source tree framework.
3068 # Default to --enable-multilib
3069 # Check whether --enable-multilib was given.
3070 if test "${enable_multilib+set}" = set; then :
3071 enableval=$enable_multilib; case "$enableval" in
3072 yes) multilib=yes ;;
3073 no) multilib=no ;;
3074 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3075 esac
3076 else
3077 multilib=yes
3081 # We may get other options which we leave undocumented:
3082 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3083 # See config-ml.in if you want the gory details.
3085 if test "$srcdir" = "."; then
3086 if test "$with_target_subdir" != "."; then
3087 multi_basedir="$srcdir/$with_multisrctop../.."
3088 else
3089 multi_basedir="$srcdir/$with_multisrctop.."
3091 else
3092 multi_basedir="$srcdir/.."
3096 # Even if the default multilib is not a cross compilation,
3097 # it may be that some of the other multilibs are.
3098 if test $cross_compiling = no && test $multilib = yes \
3099 && test "x${with_multisubdir}" != x ; then
3100 cross_compiling=maybe
3103 ac_config_commands="$ac_config_commands default-1"
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3107 $as_echo_n "checking host system type... " >&6; }
3108 if test "${ac_cv_host+set}" = set; then :
3109 $as_echo_n "(cached) " >&6
3110 else
3111 if test "x$host_alias" = x; then
3112 ac_cv_host=$ac_cv_build
3113 else
3114 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3115 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3120 $as_echo "$ac_cv_host" >&6; }
3121 case $ac_cv_host in
3122 *-*-*) ;;
3123 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3124 esac
3125 host=$ac_cv_host
3126 ac_save_IFS=$IFS; IFS='-'
3127 set x $ac_cv_host
3128 shift
3129 host_cpu=$1
3130 host_vendor=$2
3131 shift; shift
3132 # Remember, the first character of IFS is used to create $*,
3133 # except with old shells:
3134 host_os=$*
3135 IFS=$ac_save_IFS
3136 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3140 $as_echo_n "checking target system type... " >&6; }
3141 if test "${ac_cv_target+set}" = set; then :
3142 $as_echo_n "(cached) " >&6
3143 else
3144 if test "x$target_alias" = x; then
3145 ac_cv_target=$ac_cv_host
3146 else
3147 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3148 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3153 $as_echo "$ac_cv_target" >&6; }
3154 case $ac_cv_target in
3155 *-*-*) ;;
3156 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3157 esac
3158 target=$ac_cv_target
3159 ac_save_IFS=$IFS; IFS='-'
3160 set x $ac_cv_target
3161 shift
3162 target_cpu=$1
3163 target_vendor=$2
3164 shift; shift
3165 # Remember, the first character of IFS is used to create $*,
3166 # except with old shells:
3167 target_os=$*
3168 IFS=$ac_save_IFS
3169 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3172 # The aliases save the names the user supplied, while $host etc.
3173 # will get canonicalized.
3174 test -n "$target_alias" &&
3175 test "$program_prefix$program_suffix$program_transform_name" = \
3176 NONENONEs,x,x, &&
3177 program_prefix=${target_alias}-
3179 case ${build_alias} in
3180 "") build_noncanonical=${build} ;;
3181 *) build_noncanonical=${build_alias} ;;
3182 esac
3184 case ${target_alias} in
3185 "") target_noncanonical=${host_noncanonical} ;;
3186 *) target_noncanonical=${target_alias} ;;
3187 esac
3192 # This works around the fact that libtool configuration may change LD
3193 # for this particular configuration, but some shells, instead of
3194 # keeping the changes in LD private, export them just because LD is
3195 # exported.
3196 ORIGINAL_LD_FOR_MULTILIBS=$LD
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3199 $as_echo_n "checking whether ln -s works... " >&6; }
3200 LN_S=$as_ln_s
3201 if test "$LN_S" = "ln -s"; then
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3203 $as_echo "yes" >&6; }
3204 else
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3206 $as_echo "no, using $LN_S" >&6; }
3210 # This works around an automake problem.
3211 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
3215 # Check whether --with-cross-host was given.
3216 if test "${with_cross_host+set}" = set; then :
3217 withval=$with_cross_host;
3222 # Check whether --with-newlib was given.
3223 if test "${with_newlib+set}" = set; then :
3224 withval=$with_newlib;
3228 # Check whether --enable-version-specific-runtime-libs was given.
3229 if test "${enable_version_specific_runtime_libs+set}" = set; then :
3230 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
3231 yes) version_specific_libs=yes ;;
3232 no) version_specific_libs=no ;;
3233 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3234 esac
3235 else
3236 version_specific_libs=no
3241 # Check whether --enable-browser-plugin was given.
3242 if test "${enable_browser_plugin+set}" = set; then :
3243 enableval=$enable_browser_plugin; case "$enableval" in
3244 yes) browser_plugin_enabled=yes ;;
3245 no) browser_plugin_enabled=no ;;
3246 *) as_fn_error "Unknown argument to enable/disable browser plugin" "$LINENO" 5;;
3247 esac
3248 else
3249 browser_plugin_enabled=no
3254 # Check whether --enable-gconf-peer was given.
3255 if test "${enable_gconf_peer+set}" = set; then :
3256 enableval=$enable_gconf_peer; case "$enableval" in
3257 yes) gconf_enabled=yes ;;
3258 no) gconf_enabled=no ;;
3259 *) as_fn_error "Unknown argument to enable/disable gconf-peer" "$LINENO" 5;;
3260 esac
3261 else
3262 gconf_enabled=no
3268 # Check whether --with-antlr-jar was given.
3269 if test "${with_antlr_jar+set}" = set; then :
3270 withval=$with_antlr_jar;
3271 ANTLR_JAR=$withval
3273 else
3275 ANTLR_JAR=
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr.jar" >&5
3281 $as_echo_n "checking for antlr.jar... " >&6; }
3282 if test "x$ANTLR_JAR" = x; then
3283 for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
3284 /usr/share/antlr/lib /usr/share/java /usr/lib;
3286 if test -f "$antlr_lib_home/antlr.jar"; then
3287 # FIXME: version check for antlr needed without using a VM
3288 ANTLR_JAR="$antlr_lib_home/antlr.jar"
3289 break
3291 done
3292 if test "x$ANTLR_JAR" = x; then
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
3294 $as_echo "not found" >&6; }
3295 else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3297 $as_echo "$ANTLR_JAR" >&6; }
3299 else
3300 if test -f "${ANTLR_JAR}"; then
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3302 $as_echo "$ANTLR_JAR" >&6; }
3303 else
3304 as_fn_error "antlr jar file not found: $ANTLR_JAR" "$LINENO" 5
3309 # Check whether --enable-gjdoc was given.
3310 if test "${enable_gjdoc+set}" = set; then :
3311 enableval=$enable_gjdoc; case "${enableval}" in
3312 yes) BUILD_GJDOC=yes ;;
3313 no) BUILD_GJDOC=no ;;
3314 *) BUILD_GJDOC=yes ;;
3315 esac
3316 else
3317 BUILD_GJDOC=maybe
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gjdoc" >&5
3322 $as_echo_n "checking whether to build gjdoc... " >&6; }
3323 if test "x$BUILD_GJDOC" = xmaybe; then
3324 if test -f "${ANTLR_JAR}"; then
3325 BUILD_GJDOC=yes
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3327 $as_echo "yes" >&6; }
3328 else
3329 BUILD_GJDOC=no
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, antlr.jar not found" >&5
3331 $as_echo "no, antlr.jar not found" >&6; }
3333 else
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_GJDOC" >&5
3335 $as_echo "$BUILD_GJDOC" >&6; }
3337 if test "x${BUILD_GJDOC}" = xyes; then
3338 CREATE_GJDOC_TRUE=
3339 CREATE_GJDOC_FALSE='#'
3340 else
3341 CREATE_GJDOC_TRUE='#'
3342 CREATE_GJDOC_FALSE=
3346 # Check whether --enable-java-maintainer-mode was given.
3347 if test "${enable_java_maintainer_mode+set}" = set; then :
3348 enableval=$enable_java_maintainer_mode;
3351 if test "$enable_java_maintainer_mode" = yes; then
3352 JAVA_MAINTAINER_MODE_TRUE=
3353 JAVA_MAINTAINER_MODE_FALSE='#'
3354 else
3355 JAVA_MAINTAINER_MODE_TRUE='#'
3356 JAVA_MAINTAINER_MODE_FALSE=
3360 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
3363 # For libstdc++-v3, -fno-builtin must be present here so that a
3364 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
3365 # used in later tests. This may not be necessary in libjava; I don't know.
3366 save_CXXFLAGS="$CXXFLAGS"
3367 CXXFLAGS="$CXXFLAGS -fno-builtin"
3368 ac_ext=c
3369 ac_cpp='$CPP $CPPFLAGS'
3370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3373 if test -n "$ac_tool_prefix"; then
3374 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3375 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3377 $as_echo_n "checking for $ac_word... " >&6; }
3378 if test "${ac_cv_prog_CC+set}" = set; then :
3379 $as_echo_n "(cached) " >&6
3380 else
3381 if test -n "$CC"; then
3382 ac_cv_prog_CC="$CC" # Let the user override the test.
3383 else
3384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385 for as_dir in $PATH
3387 IFS=$as_save_IFS
3388 test -z "$as_dir" && as_dir=.
3389 for ac_exec_ext in '' $ac_executable_extensions; do
3390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3391 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3393 break 2
3395 done
3396 done
3397 IFS=$as_save_IFS
3401 CC=$ac_cv_prog_CC
3402 if test -n "$CC"; then
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3404 $as_echo "$CC" >&6; }
3405 else
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3412 if test -z "$ac_cv_prog_CC"; then
3413 ac_ct_CC=$CC
3414 # Extract the first word of "gcc", so it can be a program name with args.
3415 set dummy gcc; ac_word=$2
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3417 $as_echo_n "checking for $ac_word... " >&6; }
3418 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3419 $as_echo_n "(cached) " >&6
3420 else
3421 if test -n "$ac_ct_CC"; then
3422 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3423 else
3424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425 for as_dir in $PATH
3427 IFS=$as_save_IFS
3428 test -z "$as_dir" && as_dir=.
3429 for ac_exec_ext in '' $ac_executable_extensions; do
3430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3431 ac_cv_prog_ac_ct_CC="gcc"
3432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3433 break 2
3435 done
3436 done
3437 IFS=$as_save_IFS
3441 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3442 if test -n "$ac_ct_CC"; then
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3444 $as_echo "$ac_ct_CC" >&6; }
3445 else
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447 $as_echo "no" >&6; }
3450 if test "x$ac_ct_CC" = x; then
3451 CC=""
3452 else
3453 case $cross_compiling:$ac_tool_warned in
3454 yes:)
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3456 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3457 ac_tool_warned=yes ;;
3458 esac
3459 CC=$ac_ct_CC
3461 else
3462 CC="$ac_cv_prog_CC"
3465 if test -z "$CC"; then
3466 if test -n "$ac_tool_prefix"; then
3467 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3468 set dummy ${ac_tool_prefix}cc; ac_word=$2
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3470 $as_echo_n "checking for $ac_word... " >&6; }
3471 if test "${ac_cv_prog_CC+set}" = set; then :
3472 $as_echo_n "(cached) " >&6
3473 else
3474 if test -n "$CC"; then
3475 ac_cv_prog_CC="$CC" # Let the user override the test.
3476 else
3477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478 for as_dir in $PATH
3480 IFS=$as_save_IFS
3481 test -z "$as_dir" && as_dir=.
3482 for ac_exec_ext in '' $ac_executable_extensions; do
3483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3484 ac_cv_prog_CC="${ac_tool_prefix}cc"
3485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3486 break 2
3488 done
3489 done
3490 IFS=$as_save_IFS
3494 CC=$ac_cv_prog_CC
3495 if test -n "$CC"; then
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3497 $as_echo "$CC" >&6; }
3498 else
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3500 $as_echo "no" >&6; }
3506 if test -z "$CC"; then
3507 # Extract the first word of "cc", so it can be a program name with args.
3508 set dummy cc; ac_word=$2
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510 $as_echo_n "checking for $ac_word... " >&6; }
3511 if test "${ac_cv_prog_CC+set}" = set; then :
3512 $as_echo_n "(cached) " >&6
3513 else
3514 if test -n "$CC"; then
3515 ac_cv_prog_CC="$CC" # Let the user override the test.
3516 else
3517 ac_prog_rejected=no
3518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519 for as_dir in $PATH
3521 IFS=$as_save_IFS
3522 test -z "$as_dir" && as_dir=.
3523 for ac_exec_ext in '' $ac_executable_extensions; do
3524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3525 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3526 ac_prog_rejected=yes
3527 continue
3529 ac_cv_prog_CC="cc"
3530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 break 2
3533 done
3534 done
3535 IFS=$as_save_IFS
3537 if test $ac_prog_rejected = yes; then
3538 # We found a bogon in the path, so make sure we never use it.
3539 set dummy $ac_cv_prog_CC
3540 shift
3541 if test $# != 0; then
3542 # We chose a different compiler from the bogus one.
3543 # However, it has the same basename, so the bogon will be chosen
3544 # first if we set CC to just the basename; use the full file name.
3545 shift
3546 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3551 CC=$ac_cv_prog_CC
3552 if test -n "$CC"; then
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3554 $as_echo "$CC" >&6; }
3555 else
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3557 $as_echo "no" >&6; }
3562 if test -z "$CC"; then
3563 if test -n "$ac_tool_prefix"; then
3564 for ac_prog in cl.exe
3566 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3567 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3569 $as_echo_n "checking for $ac_word... " >&6; }
3570 if test "${ac_cv_prog_CC+set}" = set; then :
3571 $as_echo_n "(cached) " >&6
3572 else
3573 if test -n "$CC"; then
3574 ac_cv_prog_CC="$CC" # Let the user override the test.
3575 else
3576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577 for as_dir in $PATH
3579 IFS=$as_save_IFS
3580 test -z "$as_dir" && as_dir=.
3581 for ac_exec_ext in '' $ac_executable_extensions; do
3582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3583 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3585 break 2
3587 done
3588 done
3589 IFS=$as_save_IFS
3593 CC=$ac_cv_prog_CC
3594 if test -n "$CC"; then
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3596 $as_echo "$CC" >&6; }
3597 else
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3599 $as_echo "no" >&6; }
3603 test -n "$CC" && break
3604 done
3606 if test -z "$CC"; then
3607 ac_ct_CC=$CC
3608 for ac_prog in cl.exe
3610 # Extract the first word of "$ac_prog", so it can be a program name with args.
3611 set dummy $ac_prog; ac_word=$2
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3613 $as_echo_n "checking for $ac_word... " >&6; }
3614 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3615 $as_echo_n "(cached) " >&6
3616 else
3617 if test -n "$ac_ct_CC"; then
3618 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3619 else
3620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3621 for as_dir in $PATH
3623 IFS=$as_save_IFS
3624 test -z "$as_dir" && as_dir=.
3625 for ac_exec_ext in '' $ac_executable_extensions; do
3626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3627 ac_cv_prog_ac_ct_CC="$ac_prog"
3628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3629 break 2
3631 done
3632 done
3633 IFS=$as_save_IFS
3637 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3638 if test -n "$ac_ct_CC"; then
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3640 $as_echo "$ac_ct_CC" >&6; }
3641 else
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3643 $as_echo "no" >&6; }
3647 test -n "$ac_ct_CC" && break
3648 done
3650 if test "x$ac_ct_CC" = x; then
3651 CC=""
3652 else
3653 case $cross_compiling:$ac_tool_warned in
3654 yes:)
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3657 ac_tool_warned=yes ;;
3658 esac
3659 CC=$ac_ct_CC
3666 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3668 as_fn_error "no acceptable C compiler found in \$PATH
3669 See \`config.log' for more details." "$LINENO" 5; }
3671 # Provide some information about the compiler.
3672 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3673 set X $ac_compile
3674 ac_compiler=$2
3675 for ac_option in --version -v -V -qversion; do
3676 { { ac_try="$ac_compiler $ac_option >&5"
3677 case "(($ac_try" in
3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3680 esac
3681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3682 $as_echo "$ac_try_echo"; } >&5
3683 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3684 ac_status=$?
3685 if test -s conftest.err; then
3686 sed '10a\
3687 ... rest of stderr output deleted ...
3688 10q' conftest.err >conftest.er1
3689 cat conftest.er1 >&5
3690 rm -f conftest.er1 conftest.err
3692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3693 test $ac_status = 0; }
3694 done
3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h. */
3700 main ()
3704 return 0;
3706 _ACEOF
3707 # FIXME: Cleanup?
3708 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3709 (eval $ac_link) 2>&5
3710 ac_status=$?
3711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3712 test $ac_status = 0; }; then :
3713 gcc_no_link=no
3714 else
3715 gcc_no_link=yes
3717 if test x$gcc_no_link = xyes; then
3718 # Setting cross_compile will disable run tests; it will
3719 # also disable AC_CHECK_FILE but that's generally
3720 # correct if we can't link.
3721 cross_compiling=yes
3722 EXEEXT=
3723 else
3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h. */
3728 main ()
3732 return 0;
3734 _ACEOF
3735 ac_clean_files_save=$ac_clean_files
3736 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3737 # Try to create an executable without -o first, disregard a.out.
3738 # It will help us diagnose broken compilers, and finding out an intuition
3739 # of exeext.
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3741 $as_echo_n "checking for C compiler default output file name... " >&6; }
3742 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3744 # The possible output files:
3745 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3747 ac_rmfiles=
3748 for ac_file in $ac_files
3750 case $ac_file in
3751 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3752 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3753 esac
3754 done
3755 rm -f $ac_rmfiles
3757 if { { ac_try="$ac_link_default"
3758 case "(($ac_try" in
3759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3760 *) ac_try_echo=$ac_try;;
3761 esac
3762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3763 $as_echo "$ac_try_echo"; } >&5
3764 (eval "$ac_link_default") 2>&5
3765 ac_status=$?
3766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3767 test $ac_status = 0; }; then :
3768 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3769 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3770 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3771 # so that the user can short-circuit this test for compilers unknown to
3772 # Autoconf.
3773 for ac_file in $ac_files ''
3775 test -f "$ac_file" || continue
3776 case $ac_file in
3777 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3779 [ab].out )
3780 # We found the default executable, but exeext='' is most
3781 # certainly right.
3782 break;;
3783 *.* )
3784 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3785 then :; else
3786 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3788 # We set ac_cv_exeext here because the later test for it is not
3789 # safe: cross compilers may not add the suffix if given an `-o'
3790 # argument, so we may need to know it at that point already.
3791 # Even if this section looks crufty: it has the advantage of
3792 # actually working.
3793 break;;
3795 break;;
3796 esac
3797 done
3798 test "$ac_cv_exeext" = no && ac_cv_exeext=
3800 else
3801 ac_file=''
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3804 $as_echo "$ac_file" >&6; }
3805 if test -z "$ac_file"; then :
3806 $as_echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.$ac_ext >&5
3809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3811 { as_fn_set_status 77
3812 as_fn_error "C compiler cannot create executables
3813 See \`config.log' for more details." "$LINENO" 5; }; }
3815 ac_exeext=$ac_cv_exeext
3817 # Check that the compiler produces executables we can run. If not, either
3818 # the compiler is broken, or we cross compile.
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3820 $as_echo_n "checking whether the C compiler works... " >&6; }
3821 # If not cross compiling, check that we can run a simple program.
3822 if test "$cross_compiling" != yes; then
3823 if { ac_try='./$ac_file'
3824 { { case "(($ac_try" in
3825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826 *) ac_try_echo=$ac_try;;
3827 esac
3828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3829 $as_echo "$ac_try_echo"; } >&5
3830 (eval "$ac_try") 2>&5
3831 ac_status=$?
3832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3833 test $ac_status = 0; }; }; then
3834 cross_compiling=no
3835 else
3836 if test "$cross_compiling" = maybe; then
3837 cross_compiling=yes
3838 else
3839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3841 as_fn_error "cannot run C compiled programs.
3842 If you meant to cross compile, use \`--host'.
3843 See \`config.log' for more details." "$LINENO" 5; }
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3848 $as_echo "yes" >&6; }
3850 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3851 ac_clean_files=$ac_clean_files_save
3852 # Check that the compiler produces executables we can run. If not, either
3853 # the compiler is broken, or we cross compile.
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3855 $as_echo_n "checking whether we are cross compiling... " >&6; }
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3857 $as_echo "$cross_compiling" >&6; }
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3860 $as_echo_n "checking for suffix of executables... " >&6; }
3861 if { { ac_try="$ac_link"
3862 case "(($ac_try" in
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3865 esac
3866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3867 $as_echo "$ac_try_echo"; } >&5
3868 (eval "$ac_link") 2>&5
3869 ac_status=$?
3870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3871 test $ac_status = 0; }; then :
3872 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3873 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3874 # work properly (i.e., refer to `conftest.exe'), while it won't with
3875 # `rm'.
3876 for ac_file in conftest.exe conftest conftest.*; do
3877 test -f "$ac_file" || continue
3878 case $ac_file in
3879 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3880 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3881 break;;
3882 * ) break;;
3883 esac
3884 done
3885 else
3886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3888 as_fn_error "cannot compute suffix of executables: cannot compile and link
3889 See \`config.log' for more details." "$LINENO" 5; }
3891 rm -f conftest$ac_cv_exeext
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3893 $as_echo "$ac_cv_exeext" >&6; }
3895 rm -f conftest.$ac_ext
3896 EXEEXT=$ac_cv_exeext
3897 ac_exeext=$EXEEXT
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3900 $as_echo_n "checking for suffix of object files... " >&6; }
3901 if test "${ac_cv_objext+set}" = set; then :
3902 $as_echo_n "(cached) " >&6
3903 else
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h. */
3908 main ()
3912 return 0;
3914 _ACEOF
3915 rm -f conftest.o conftest.obj
3916 if { { ac_try="$ac_compile"
3917 case "(($ac_try" in
3918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919 *) ac_try_echo=$ac_try;;
3920 esac
3921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3922 $as_echo "$ac_try_echo"; } >&5
3923 (eval "$ac_compile") 2>&5
3924 ac_status=$?
3925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3926 test $ac_status = 0; }; then :
3927 for ac_file in conftest.o conftest.obj conftest.*; do
3928 test -f "$ac_file" || continue;
3929 case $ac_file in
3930 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3931 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3932 break;;
3933 esac
3934 done
3935 else
3936 $as_echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3939 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3941 as_fn_error "cannot compute suffix of object files: cannot compile
3942 See \`config.log' for more details." "$LINENO" 5; }
3944 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3947 $as_echo "$ac_cv_objext" >&6; }
3948 OBJEXT=$ac_cv_objext
3949 ac_objext=$OBJEXT
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3951 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3952 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3953 $as_echo_n "(cached) " >&6
3954 else
3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h. */
3959 main ()
3961 #ifndef __GNUC__
3962 choke me
3963 #endif
3966 return 0;
3968 _ACEOF
3969 if ac_fn_c_try_compile "$LINENO"; then :
3970 ac_compiler_gnu=yes
3971 else
3972 ac_compiler_gnu=no
3974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3975 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3979 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3980 if test $ac_compiler_gnu = yes; then
3981 GCC=yes
3982 else
3983 GCC=
3985 ac_test_CFLAGS=${CFLAGS+set}
3986 ac_save_CFLAGS=$CFLAGS
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3988 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3989 if test "${ac_cv_prog_cc_g+set}" = set; then :
3990 $as_echo_n "(cached) " >&6
3991 else
3992 ac_save_c_werror_flag=$ac_c_werror_flag
3993 ac_c_werror_flag=yes
3994 ac_cv_prog_cc_g=no
3995 CFLAGS="-g"
3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h. */
4000 main ()
4004 return 0;
4006 _ACEOF
4007 if ac_fn_c_try_compile "$LINENO"; then :
4008 ac_cv_prog_cc_g=yes
4009 else
4010 CFLAGS=""
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h. */
4015 main ()
4019 return 0;
4021 _ACEOF
4022 if ac_fn_c_try_compile "$LINENO"; then :
4024 else
4025 ac_c_werror_flag=$ac_save_c_werror_flag
4026 CFLAGS="-g"
4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h. */
4031 main ()
4035 return 0;
4037 _ACEOF
4038 if ac_fn_c_try_compile "$LINENO"; then :
4039 ac_cv_prog_cc_g=yes
4041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4046 ac_c_werror_flag=$ac_save_c_werror_flag
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4049 $as_echo "$ac_cv_prog_cc_g" >&6; }
4050 if test "$ac_test_CFLAGS" = set; then
4051 CFLAGS=$ac_save_CFLAGS
4052 elif test $ac_cv_prog_cc_g = yes; then
4053 if test "$GCC" = yes; then
4054 CFLAGS="-g -O2"
4055 else
4056 CFLAGS="-g"
4058 else
4059 if test "$GCC" = yes; then
4060 CFLAGS="-O2"
4061 else
4062 CFLAGS=
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4066 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4067 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4068 $as_echo_n "(cached) " >&6
4069 else
4070 ac_cv_prog_cc_c89=no
4071 ac_save_CC=$CC
4072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4073 /* end confdefs.h. */
4074 #include <stdarg.h>
4075 #include <stdio.h>
4076 #include <sys/types.h>
4077 #include <sys/stat.h>
4078 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4079 struct buf { int x; };
4080 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4081 static char *e (p, i)
4082 char **p;
4083 int i;
4085 return p[i];
4087 static char *f (char * (*g) (char **, int), char **p, ...)
4089 char *s;
4090 va_list v;
4091 va_start (v,p);
4092 s = g (p, va_arg (v,int));
4093 va_end (v);
4094 return s;
4097 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4098 function prototypes and stuff, but not '\xHH' hex character constants.
4099 These don't provoke an error unfortunately, instead are silently treated
4100 as 'x'. The following induces an error, until -std is added to get
4101 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4102 array size at least. It's necessary to write '\x00'==0 to get something
4103 that's true only with -std. */
4104 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4106 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4107 inside strings and character constants. */
4108 #define FOO(x) 'x'
4109 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4111 int test (int i, double x);
4112 struct s1 {int (*f) (int a);};
4113 struct s2 {int (*f) (double a);};
4114 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4115 int argc;
4116 char **argv;
4118 main ()
4120 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4122 return 0;
4124 _ACEOF
4125 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4126 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4128 CC="$ac_save_CC $ac_arg"
4129 if ac_fn_c_try_compile "$LINENO"; then :
4130 ac_cv_prog_cc_c89=$ac_arg
4132 rm -f core conftest.err conftest.$ac_objext
4133 test "x$ac_cv_prog_cc_c89" != "xno" && break
4134 done
4135 rm -f conftest.$ac_ext
4136 CC=$ac_save_CC
4139 # AC_CACHE_VAL
4140 case "x$ac_cv_prog_cc_c89" in
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4143 $as_echo "none needed" >&6; } ;;
4144 xno)
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4146 $as_echo "unsupported" >&6; } ;;
4148 CC="$CC $ac_cv_prog_cc_c89"
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4150 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4151 esac
4152 if test "x$ac_cv_prog_cc_c89" != xno; then :
4156 ac_ext=c
4157 ac_cpp='$CPP $CPPFLAGS'
4158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4162 ac_ext=cpp
4163 ac_cpp='$CXXCPP $CPPFLAGS'
4164 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4165 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4166 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4167 if test -z "$CXX"; then
4168 if test -n "$CCC"; then
4169 CXX=$CCC
4170 else
4171 if test -n "$ac_tool_prefix"; then
4172 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4174 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4175 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4177 $as_echo_n "checking for $ac_word... " >&6; }
4178 if test "${ac_cv_prog_CXX+set}" = set; then :
4179 $as_echo_n "(cached) " >&6
4180 else
4181 if test -n "$CXX"; then
4182 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4183 else
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185 for as_dir in $PATH
4187 IFS=$as_save_IFS
4188 test -z "$as_dir" && as_dir=.
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4191 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4193 break 2
4195 done
4196 done
4197 IFS=$as_save_IFS
4201 CXX=$ac_cv_prog_CXX
4202 if test -n "$CXX"; then
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4204 $as_echo "$CXX" >&6; }
4205 else
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4207 $as_echo "no" >&6; }
4211 test -n "$CXX" && break
4212 done
4214 if test -z "$CXX"; then
4215 ac_ct_CXX=$CXX
4216 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4218 # Extract the first word of "$ac_prog", so it can be a program name with args.
4219 set dummy $ac_prog; ac_word=$2
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4221 $as_echo_n "checking for $ac_word... " >&6; }
4222 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4223 $as_echo_n "(cached) " >&6
4224 else
4225 if test -n "$ac_ct_CXX"; then
4226 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4227 else
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 for as_dir in $PATH
4231 IFS=$as_save_IFS
4232 test -z "$as_dir" && as_dir=.
4233 for ac_exec_ext in '' $ac_executable_extensions; do
4234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4235 ac_cv_prog_ac_ct_CXX="$ac_prog"
4236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4237 break 2
4239 done
4240 done
4241 IFS=$as_save_IFS
4245 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4246 if test -n "$ac_ct_CXX"; then
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4248 $as_echo "$ac_ct_CXX" >&6; }
4249 else
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4251 $as_echo "no" >&6; }
4255 test -n "$ac_ct_CXX" && break
4256 done
4258 if test "x$ac_ct_CXX" = x; then
4259 CXX="g++"
4260 else
4261 case $cross_compiling:$ac_tool_warned in
4262 yes:)
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4265 ac_tool_warned=yes ;;
4266 esac
4267 CXX=$ac_ct_CXX
4273 # Provide some information about the compiler.
4274 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4275 set X $ac_compile
4276 ac_compiler=$2
4277 for ac_option in --version -v -V -qversion; do
4278 { { ac_try="$ac_compiler $ac_option >&5"
4279 case "(($ac_try" in
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4282 esac
4283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4284 $as_echo "$ac_try_echo"; } >&5
4285 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4286 ac_status=$?
4287 if test -s conftest.err; then
4288 sed '10a\
4289 ... rest of stderr output deleted ...
4290 10q' conftest.err >conftest.er1
4291 cat conftest.er1 >&5
4292 rm -f conftest.er1 conftest.err
4294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4295 test $ac_status = 0; }
4296 done
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4299 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4300 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4301 $as_echo_n "(cached) " >&6
4302 else
4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304 /* end confdefs.h. */
4307 main ()
4309 #ifndef __GNUC__
4310 choke me
4311 #endif
4314 return 0;
4316 _ACEOF
4317 if ac_fn_cxx_try_compile "$LINENO"; then :
4318 ac_compiler_gnu=yes
4319 else
4320 ac_compiler_gnu=no
4322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4323 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4327 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4328 if test $ac_compiler_gnu = yes; then
4329 GXX=yes
4330 else
4331 GXX=
4333 ac_test_CXXFLAGS=${CXXFLAGS+set}
4334 ac_save_CXXFLAGS=$CXXFLAGS
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4336 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4337 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4338 $as_echo_n "(cached) " >&6
4339 else
4340 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4341 ac_cxx_werror_flag=yes
4342 ac_cv_prog_cxx_g=no
4343 CXXFLAGS="-g"
4344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345 /* end confdefs.h. */
4348 main ()
4352 return 0;
4354 _ACEOF
4355 if ac_fn_cxx_try_compile "$LINENO"; then :
4356 ac_cv_prog_cxx_g=yes
4357 else
4358 CXXFLAGS=""
4359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h. */
4363 main ()
4367 return 0;
4369 _ACEOF
4370 if ac_fn_cxx_try_compile "$LINENO"; then :
4372 else
4373 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4374 CXXFLAGS="-g"
4375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h. */
4379 main ()
4383 return 0;
4385 _ACEOF
4386 if ac_fn_cxx_try_compile "$LINENO"; then :
4387 ac_cv_prog_cxx_g=yes
4389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4394 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4397 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4398 if test "$ac_test_CXXFLAGS" = set; then
4399 CXXFLAGS=$ac_save_CXXFLAGS
4400 elif test $ac_cv_prog_cxx_g = yes; then
4401 if test "$GXX" = yes; then
4402 CXXFLAGS="-g -O2"
4403 else
4404 CXXFLAGS="-g"
4406 else
4407 if test "$GXX" = yes; then
4408 CXXFLAGS="-O2"
4409 else
4410 CXXFLAGS=
4413 ac_ext=c
4414 ac_cpp='$CPP $CPPFLAGS'
4415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4419 CXXFLAGS="$save_CXXFLAGS"
4421 am__api_version='1.11'
4423 # Find a good install program. We prefer a C program (faster),
4424 # so one script is as good as another. But avoid the broken or
4425 # incompatible versions:
4426 # SysV /etc/install, /usr/sbin/install
4427 # SunOS /usr/etc/install
4428 # IRIX /sbin/install
4429 # AIX /bin/install
4430 # AmigaOS /C/install, which installs bootblocks on floppy discs
4431 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4432 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4433 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4434 # OS/2's system install, which has a completely different semantic
4435 # ./install, which can be erroneously created by make from ./install.sh.
4436 # Reject install programs that cannot install multiple files.
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4438 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4439 if test -z "$INSTALL"; then
4440 if test "${ac_cv_path_install+set}" = set; then :
4441 $as_echo_n "(cached) " >&6
4442 else
4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 for as_dir in $PATH
4446 IFS=$as_save_IFS
4447 test -z "$as_dir" && as_dir=.
4448 # Account for people who put trailing slashes in PATH elements.
4449 case $as_dir/ in #((
4450 ./ | .// | /[cC]/* | \
4451 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4452 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4453 /usr/ucb/* ) ;;
4455 # OSF1 and SCO ODT 3.0 have their own names for install.
4456 # Don't use installbsd from OSF since it installs stuff as root
4457 # by default.
4458 for ac_prog in ginstall scoinst install; do
4459 for ac_exec_ext in '' $ac_executable_extensions; do
4460 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4461 if test $ac_prog = install &&
4462 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4463 # AIX install. It has an incompatible calling convention.
4465 elif test $ac_prog = install &&
4466 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4467 # program-specific install script used by HP pwplus--don't use.
4469 else
4470 rm -rf conftest.one conftest.two conftest.dir
4471 echo one > conftest.one
4472 echo two > conftest.two
4473 mkdir conftest.dir
4474 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4475 test -s conftest.one && test -s conftest.two &&
4476 test -s conftest.dir/conftest.one &&
4477 test -s conftest.dir/conftest.two
4478 then
4479 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4480 break 3
4484 done
4485 done
4487 esac
4489 done
4490 IFS=$as_save_IFS
4492 rm -rf conftest.one conftest.two conftest.dir
4495 if test "${ac_cv_path_install+set}" = set; then
4496 INSTALL=$ac_cv_path_install
4497 else
4498 # As a last resort, use the slow shell script. Don't cache a
4499 # value for INSTALL within a source directory, because that will
4500 # break other packages using the cache if that directory is
4501 # removed, or if the value is a relative name.
4502 INSTALL=$ac_install_sh
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4506 $as_echo "$INSTALL" >&6; }
4508 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4509 # It thinks the first close brace ends the variable substitution.
4510 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4512 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4514 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4517 $as_echo_n "checking whether build environment is sane... " >&6; }
4518 # Just in case
4519 sleep 1
4520 echo timestamp > conftest.file
4521 # Reject unsafe characters in $srcdir or the absolute working directory
4522 # name. Accept space and tab only in the latter.
4523 am_lf='
4525 case `pwd` in
4526 *[\\\"\#\$\&\'\`$am_lf]*)
4527 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4528 esac
4529 case $srcdir in
4530 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4531 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4532 esac
4534 # Do `set' in a subshell so we don't clobber the current shell's
4535 # arguments. Must try -L first in case configure is actually a
4536 # symlink; some systems play weird games with the mod time of symlinks
4537 # (eg FreeBSD returns the mod time of the symlink's containing
4538 # directory).
4539 if (
4540 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4541 if test "$*" = "X"; then
4542 # -L didn't work.
4543 set X `ls -t "$srcdir/configure" conftest.file`
4545 rm -f conftest.file
4546 if test "$*" != "X $srcdir/configure conftest.file" \
4547 && test "$*" != "X conftest.file $srcdir/configure"; then
4549 # If neither matched, then we have a broken ls. This can happen
4550 # if, for instance, CONFIG_SHELL is bash and it inherits a
4551 # broken ls alias from the environment. This has actually
4552 # happened. Such a system could not be considered "sane".
4553 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4554 alias in your environment" "$LINENO" 5
4557 test "$2" = conftest.file
4559 then
4560 # Ok.
4562 else
4563 as_fn_error "newly created file is older than distributed files!
4564 Check your system clock" "$LINENO" 5
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4567 $as_echo "yes" >&6; }
4568 test "$program_prefix" != NONE &&
4569 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4570 # Use a double $ so make ignores it.
4571 test "$program_suffix" != NONE &&
4572 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4573 # Double any \ or $.
4574 # By default was `s,x,x', remove it if useless.
4575 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4576 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4578 # expand $ac_aux_dir to an absolute path
4579 am_aux_dir=`cd $ac_aux_dir && pwd`
4581 if test x"${MISSING+set}" != xset; then
4582 case $am_aux_dir in
4583 *\ * | *\ *)
4584 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4586 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4587 esac
4589 # Use eval to expand $SHELL
4590 if eval "$MISSING --run true"; then
4591 am_missing_run="$MISSING --run "
4592 else
4593 am_missing_run=
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4595 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4598 if test x"${install_sh}" != xset; then
4599 case $am_aux_dir in
4600 *\ * | *\ *)
4601 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4603 install_sh="\${SHELL} $am_aux_dir/install-sh"
4604 esac
4607 # Installed binaries are usually stripped using `strip' when the user
4608 # run `make install-strip'. However `strip' might not be the right
4609 # tool to use in cross-compilation environments, therefore Automake
4610 # will honor the `STRIP' environment variable to overrule this program.
4611 if test "$cross_compiling" != no; then
4612 if test -n "$ac_tool_prefix"; then
4613 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4614 set dummy ${ac_tool_prefix}strip; ac_word=$2
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4616 $as_echo_n "checking for $ac_word... " >&6; }
4617 if test "${ac_cv_prog_STRIP+set}" = set; then :
4618 $as_echo_n "(cached) " >&6
4619 else
4620 if test -n "$STRIP"; then
4621 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4622 else
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 for as_dir in $PATH
4626 IFS=$as_save_IFS
4627 test -z "$as_dir" && as_dir=.
4628 for ac_exec_ext in '' $ac_executable_extensions; do
4629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4630 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4632 break 2
4634 done
4635 done
4636 IFS=$as_save_IFS
4640 STRIP=$ac_cv_prog_STRIP
4641 if test -n "$STRIP"; then
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4643 $as_echo "$STRIP" >&6; }
4644 else
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646 $as_echo "no" >&6; }
4651 if test -z "$ac_cv_prog_STRIP"; then
4652 ac_ct_STRIP=$STRIP
4653 # Extract the first word of "strip", so it can be a program name with args.
4654 set dummy strip; ac_word=$2
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4656 $as_echo_n "checking for $ac_word... " >&6; }
4657 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4658 $as_echo_n "(cached) " >&6
4659 else
4660 if test -n "$ac_ct_STRIP"; then
4661 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4662 else
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 for as_dir in $PATH
4666 IFS=$as_save_IFS
4667 test -z "$as_dir" && as_dir=.
4668 for ac_exec_ext in '' $ac_executable_extensions; do
4669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4670 ac_cv_prog_ac_ct_STRIP="strip"
4671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4672 break 2
4674 done
4675 done
4676 IFS=$as_save_IFS
4680 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4681 if test -n "$ac_ct_STRIP"; then
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4683 $as_echo "$ac_ct_STRIP" >&6; }
4684 else
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4686 $as_echo "no" >&6; }
4689 if test "x$ac_ct_STRIP" = x; then
4690 STRIP=":"
4691 else
4692 case $cross_compiling:$ac_tool_warned in
4693 yes:)
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4696 ac_tool_warned=yes ;;
4697 esac
4698 STRIP=$ac_ct_STRIP
4700 else
4701 STRIP="$ac_cv_prog_STRIP"
4705 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4708 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4709 if test -z "$MKDIR_P"; then
4710 if test "${ac_cv_path_mkdir+set}" = set; then :
4711 $as_echo_n "(cached) " >&6
4712 else
4713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4716 IFS=$as_save_IFS
4717 test -z "$as_dir" && as_dir=.
4718 for ac_prog in mkdir gmkdir; do
4719 for ac_exec_ext in '' $ac_executable_extensions; do
4720 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4721 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4722 'mkdir (GNU coreutils) '* | \
4723 'mkdir (coreutils) '* | \
4724 'mkdir (fileutils) '4.1*)
4725 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4726 break 3;;
4727 esac
4728 done
4729 done
4730 done
4731 IFS=$as_save_IFS
4735 if test "${ac_cv_path_mkdir+set}" = set; then
4736 MKDIR_P="$ac_cv_path_mkdir -p"
4737 else
4738 # As a last resort, use the slow shell script. Don't cache a
4739 # value for MKDIR_P within a source directory, because that will
4740 # break other packages using the cache if that directory is
4741 # removed, or if the value is a relative name.
4742 test -d ./--version && rmdir ./--version
4743 MKDIR_P="$ac_install_sh -d"
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4747 $as_echo "$MKDIR_P" >&6; }
4749 mkdir_p="$MKDIR_P"
4750 case $mkdir_p in
4751 [\\/$]* | ?:[\\/]*) ;;
4752 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4753 esac
4755 for ac_prog in gawk mawk nawk awk
4757 # Extract the first word of "$ac_prog", so it can be a program name with args.
4758 set dummy $ac_prog; ac_word=$2
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4760 $as_echo_n "checking for $ac_word... " >&6; }
4761 if test "${ac_cv_prog_AWK+set}" = set; then :
4762 $as_echo_n "(cached) " >&6
4763 else
4764 if test -n "$AWK"; then
4765 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4766 else
4767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768 for as_dir in $PATH
4770 IFS=$as_save_IFS
4771 test -z "$as_dir" && as_dir=.
4772 for ac_exec_ext in '' $ac_executable_extensions; do
4773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4774 ac_cv_prog_AWK="$ac_prog"
4775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4776 break 2
4778 done
4779 done
4780 IFS=$as_save_IFS
4784 AWK=$ac_cv_prog_AWK
4785 if test -n "$AWK"; then
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4787 $as_echo "$AWK" >&6; }
4788 else
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4790 $as_echo "no" >&6; }
4794 test -n "$AWK" && break
4795 done
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4798 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4799 set x ${MAKE-make}
4800 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4801 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4802 $as_echo_n "(cached) " >&6
4803 else
4804 cat >conftest.make <<\_ACEOF
4805 SHELL = /bin/sh
4806 all:
4807 @echo '@@@%%%=$(MAKE)=@@@%%%'
4808 _ACEOF
4809 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4810 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4811 *@@@%%%=?*=@@@%%%*)
4812 eval ac_cv_prog_make_${ac_make}_set=yes;;
4814 eval ac_cv_prog_make_${ac_make}_set=no;;
4815 esac
4816 rm -f conftest.make
4818 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4820 $as_echo "yes" >&6; }
4821 SET_MAKE=
4822 else
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4824 $as_echo "no" >&6; }
4825 SET_MAKE="MAKE=${MAKE-make}"
4828 rm -rf .tst 2>/dev/null
4829 mkdir .tst 2>/dev/null
4830 if test -d .tst; then
4831 am__leading_dot=.
4832 else
4833 am__leading_dot=_
4835 rmdir .tst 2>/dev/null
4837 DEPDIR="${am__leading_dot}deps"
4839 ac_config_commands="$ac_config_commands depfiles"
4842 am_make=${MAKE-make}
4843 cat > confinc << 'END'
4844 am__doit:
4845 @echo this is the am__doit target
4846 .PHONY: am__doit
4848 # If we don't find an include directive, just comment out the code.
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4850 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4851 am__include="#"
4852 am__quote=
4853 _am_result=none
4854 # First try GNU make style include.
4855 echo "include confinc" > confmf
4856 # Ignore all kinds of additional output from `make'.
4857 case `$am_make -s -f confmf 2> /dev/null` in #(
4858 *the\ am__doit\ target*)
4859 am__include=include
4860 am__quote=
4861 _am_result=GNU
4863 esac
4864 # Now try BSD make style include.
4865 if test "$am__include" = "#"; then
4866 echo '.include "confinc"' > confmf
4867 case `$am_make -s -f confmf 2> /dev/null` in #(
4868 *the\ am__doit\ target*)
4869 am__include=.include
4870 am__quote="\""
4871 _am_result=BSD
4873 esac
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4878 $as_echo "$_am_result" >&6; }
4879 rm -f confinc confmf
4881 # Check whether --enable-dependency-tracking was given.
4882 if test "${enable_dependency_tracking+set}" = set; then :
4883 enableval=$enable_dependency_tracking;
4886 if test "x$enable_dependency_tracking" != xno; then
4887 am_depcomp="$ac_aux_dir/depcomp"
4888 AMDEPBACKSLASH='\'
4890 if test "x$enable_dependency_tracking" != xno; then
4891 AMDEP_TRUE=
4892 AMDEP_FALSE='#'
4893 else
4894 AMDEP_TRUE='#'
4895 AMDEP_FALSE=
4899 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4900 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4901 # is not polluted with repeated "-I."
4902 am__isrc=' -I$(srcdir)'
4903 # test to see if srcdir already configured
4904 if test -f $srcdir/config.status; then
4905 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4909 # test whether we have cygpath
4910 if test -z "$CYGPATH_W"; then
4911 if (cygpath --version) >/dev/null 2>/dev/null; then
4912 CYGPATH_W='cygpath -w'
4913 else
4914 CYGPATH_W=echo
4919 # Define the identity of the package.
4920 PACKAGE='libjava'
4921 VERSION='version-unused'
4924 cat >>confdefs.h <<_ACEOF
4925 #define PACKAGE "$PACKAGE"
4926 _ACEOF
4929 cat >>confdefs.h <<_ACEOF
4930 #define VERSION "$VERSION"
4931 _ACEOF
4933 # Some tools Automake needs.
4935 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4938 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4941 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4944 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4947 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4949 # We need awk for the "check" target. The system "awk" is bad on
4950 # some platforms.
4951 # Always define AMTAR for backward compatibility.
4953 AMTAR=${AMTAR-"${am_missing_run}tar"}
4955 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4960 depcc="$CC" am_compiler_list=
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4963 $as_echo_n "checking dependency style of $depcc... " >&6; }
4964 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4965 $as_echo_n "(cached) " >&6
4966 else
4967 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4968 # We make a subdir and do the tests there. Otherwise we can end up
4969 # making bogus files that we don't know about and never remove. For
4970 # instance it was reported that on HP-UX the gcc test will end up
4971 # making a dummy file named `D' -- because `-MD' means `put the output
4972 # in D'.
4973 mkdir conftest.dir
4974 # Copy depcomp to subdir because otherwise we won't find it if we're
4975 # using a relative directory.
4976 cp "$am_depcomp" conftest.dir
4977 cd conftest.dir
4978 # We will build objects and dependencies in a subdirectory because
4979 # it helps to detect inapplicable dependency modes. For instance
4980 # both Tru64's cc and ICC support -MD to output dependencies as a
4981 # side effect of compilation, but ICC will put the dependencies in
4982 # the current directory while Tru64 will put them in the object
4983 # directory.
4984 mkdir sub
4986 am_cv_CC_dependencies_compiler_type=none
4987 if test "$am_compiler_list" = ""; then
4988 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4990 am__universal=false
4991 case " $depcc " in #(
4992 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4993 esac
4995 for depmode in $am_compiler_list; do
4996 # Setup a source with many dependencies, because some compilers
4997 # like to wrap large dependency lists on column 80 (with \), and
4998 # we should not choose a depcomp mode which is confused by this.
5000 # We need to recreate these files for each test, as the compiler may
5001 # overwrite some of them when testing with obscure command lines.
5002 # This happens at least with the AIX C compiler.
5003 : > sub/conftest.c
5004 for i in 1 2 3 4 5 6; do
5005 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5006 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5007 # Solaris 8's {/usr,}/bin/sh.
5008 touch sub/conftst$i.h
5009 done
5010 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5012 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5013 # mode. It turns out that the SunPro C++ compiler does not properly
5014 # handle `-M -o', and we need to detect this. Also, some Intel
5015 # versions had trouble with output in subdirs
5016 am__obj=sub/conftest.${OBJEXT-o}
5017 am__minus_obj="-o $am__obj"
5018 case $depmode in
5019 gcc)
5020 # This depmode causes a compiler race in universal mode.
5021 test "$am__universal" = false || continue
5023 nosideeffect)
5024 # after this tag, mechanisms are not by side-effect, so they'll
5025 # only be used when explicitly requested
5026 if test "x$enable_dependency_tracking" = xyes; then
5027 continue
5028 else
5029 break
5032 msvisualcpp | msvcmsys)
5033 # This compiler won't grok `-c -o', but also, the minuso test has
5034 # not run yet. These depmodes are late enough in the game, and
5035 # so weak that their functioning should not be impacted.
5036 am__obj=conftest.${OBJEXT-o}
5037 am__minus_obj=
5039 none) break ;;
5040 esac
5041 if depmode=$depmode \
5042 source=sub/conftest.c object=$am__obj \
5043 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5044 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5045 >/dev/null 2>conftest.err &&
5046 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5047 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5048 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5049 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5050 # icc doesn't choke on unknown options, it will just issue warnings
5051 # or remarks (even with -Werror). So we grep stderr for any message
5052 # that says an option was ignored or not supported.
5053 # When given -MP, icc 7.0 and 7.1 complain thusly:
5054 # icc: Command line warning: ignoring option '-M'; no argument required
5055 # The diagnosis changed in icc 8.0:
5056 # icc: Command line remark: option '-MP' not supported
5057 if (grep 'ignoring option' conftest.err ||
5058 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5059 am_cv_CC_dependencies_compiler_type=$depmode
5060 break
5063 done
5065 cd ..
5066 rm -rf conftest.dir
5067 else
5068 am_cv_CC_dependencies_compiler_type=none
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5073 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5074 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5077 test "x$enable_dependency_tracking" != xno \
5078 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5079 am__fastdepCC_TRUE=
5080 am__fastdepCC_FALSE='#'
5081 else
5082 am__fastdepCC_TRUE='#'
5083 am__fastdepCC_FALSE=
5087 depcc="$CXX" am_compiler_list=
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5090 $as_echo_n "checking dependency style of $depcc... " >&6; }
5091 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5092 $as_echo_n "(cached) " >&6
5093 else
5094 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5095 # We make a subdir and do the tests there. Otherwise we can end up
5096 # making bogus files that we don't know about and never remove. For
5097 # instance it was reported that on HP-UX the gcc test will end up
5098 # making a dummy file named `D' -- because `-MD' means `put the output
5099 # in D'.
5100 mkdir conftest.dir
5101 # Copy depcomp to subdir because otherwise we won't find it if we're
5102 # using a relative directory.
5103 cp "$am_depcomp" conftest.dir
5104 cd conftest.dir
5105 # We will build objects and dependencies in a subdirectory because
5106 # it helps to detect inapplicable dependency modes. For instance
5107 # both Tru64's cc and ICC support -MD to output dependencies as a
5108 # side effect of compilation, but ICC will put the dependencies in
5109 # the current directory while Tru64 will put them in the object
5110 # directory.
5111 mkdir sub
5113 am_cv_CXX_dependencies_compiler_type=none
5114 if test "$am_compiler_list" = ""; then
5115 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5117 am__universal=false
5118 case " $depcc " in #(
5119 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5120 esac
5122 for depmode in $am_compiler_list; do
5123 # Setup a source with many dependencies, because some compilers
5124 # like to wrap large dependency lists on column 80 (with \), and
5125 # we should not choose a depcomp mode which is confused by this.
5127 # We need to recreate these files for each test, as the compiler may
5128 # overwrite some of them when testing with obscure command lines.
5129 # This happens at least with the AIX C compiler.
5130 : > sub/conftest.c
5131 for i in 1 2 3 4 5 6; do
5132 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5133 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5134 # Solaris 8's {/usr,}/bin/sh.
5135 touch sub/conftst$i.h
5136 done
5137 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5139 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5140 # mode. It turns out that the SunPro C++ compiler does not properly
5141 # handle `-M -o', and we need to detect this. Also, some Intel
5142 # versions had trouble with output in subdirs
5143 am__obj=sub/conftest.${OBJEXT-o}
5144 am__minus_obj="-o $am__obj"
5145 case $depmode in
5146 gcc)
5147 # This depmode causes a compiler race in universal mode.
5148 test "$am__universal" = false || continue
5150 nosideeffect)
5151 # after this tag, mechanisms are not by side-effect, so they'll
5152 # only be used when explicitly requested
5153 if test "x$enable_dependency_tracking" = xyes; then
5154 continue
5155 else
5156 break
5159 msvisualcpp | msvcmsys)
5160 # This compiler won't grok `-c -o', but also, the minuso test has
5161 # not run yet. These depmodes are late enough in the game, and
5162 # so weak that their functioning should not be impacted.
5163 am__obj=conftest.${OBJEXT-o}
5164 am__minus_obj=
5166 none) break ;;
5167 esac
5168 if depmode=$depmode \
5169 source=sub/conftest.c object=$am__obj \
5170 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5171 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5172 >/dev/null 2>conftest.err &&
5173 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5174 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5175 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5176 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5177 # icc doesn't choke on unknown options, it will just issue warnings
5178 # or remarks (even with -Werror). So we grep stderr for any message
5179 # that says an option was ignored or not supported.
5180 # When given -MP, icc 7.0 and 7.1 complain thusly:
5181 # icc: Command line warning: ignoring option '-M'; no argument required
5182 # The diagnosis changed in icc 8.0:
5183 # icc: Command line remark: option '-MP' not supported
5184 if (grep 'ignoring option' conftest.err ||
5185 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5186 am_cv_CXX_dependencies_compiler_type=$depmode
5187 break
5190 done
5192 cd ..
5193 rm -rf conftest.dir
5194 else
5195 am_cv_CXX_dependencies_compiler_type=none
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5200 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5201 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5204 test "x$enable_dependency_tracking" != xno \
5205 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5206 am__fastdepCXX_TRUE=
5207 am__fastdepCXX_FALSE='#'
5208 else
5209 am__fastdepCXX_TRUE='#'
5210 am__fastdepCXX_FALSE=
5216 if test -n "$ac_tool_prefix"; then
5217 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5218 set dummy ${ac_tool_prefix}as; ac_word=$2
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5220 $as_echo_n "checking for $ac_word... " >&6; }
5221 if test "${ac_cv_prog_AS+set}" = set; then :
5222 $as_echo_n "(cached) " >&6
5223 else
5224 if test -n "$AS"; then
5225 ac_cv_prog_AS="$AS" # Let the user override the test.
5226 else
5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 for as_dir in $PATH
5230 IFS=$as_save_IFS
5231 test -z "$as_dir" && as_dir=.
5232 for ac_exec_ext in '' $ac_executable_extensions; do
5233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5234 ac_cv_prog_AS="${ac_tool_prefix}as"
5235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5236 break 2
5238 done
5239 done
5240 IFS=$as_save_IFS
5244 AS=$ac_cv_prog_AS
5245 if test -n "$AS"; then
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5247 $as_echo "$AS" >&6; }
5248 else
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5250 $as_echo "no" >&6; }
5255 if test -z "$ac_cv_prog_AS"; then
5256 ac_ct_AS=$AS
5257 # Extract the first word of "as", so it can be a program name with args.
5258 set dummy as; ac_word=$2
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5260 $as_echo_n "checking for $ac_word... " >&6; }
5261 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5262 $as_echo_n "(cached) " >&6
5263 else
5264 if test -n "$ac_ct_AS"; then
5265 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5266 else
5267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268 for as_dir in $PATH
5270 IFS=$as_save_IFS
5271 test -z "$as_dir" && as_dir=.
5272 for ac_exec_ext in '' $ac_executable_extensions; do
5273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5274 ac_cv_prog_ac_ct_AS="as"
5275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5276 break 2
5278 done
5279 done
5280 IFS=$as_save_IFS
5284 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5285 if test -n "$ac_ct_AS"; then
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5287 $as_echo "$ac_ct_AS" >&6; }
5288 else
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5290 $as_echo "no" >&6; }
5293 if test "x$ac_ct_AS" = x; then
5294 AS=""
5295 else
5296 case $cross_compiling:$ac_tool_warned in
5297 yes:)
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5300 ac_tool_warned=yes ;;
5301 esac
5302 AS=$ac_ct_AS
5304 else
5305 AS="$ac_cv_prog_AS"
5308 if test -n "$ac_tool_prefix"; then
5309 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5310 set dummy ${ac_tool_prefix}ld; ac_word=$2
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5312 $as_echo_n "checking for $ac_word... " >&6; }
5313 if test "${ac_cv_prog_LD+set}" = set; then :
5314 $as_echo_n "(cached) " >&6
5315 else
5316 if test -n "$LD"; then
5317 ac_cv_prog_LD="$LD" # Let the user override the test.
5318 else
5319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320 for as_dir in $PATH
5322 IFS=$as_save_IFS
5323 test -z "$as_dir" && as_dir=.
5324 for ac_exec_ext in '' $ac_executable_extensions; do
5325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5326 ac_cv_prog_LD="${ac_tool_prefix}ld"
5327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5328 break 2
5330 done
5331 done
5332 IFS=$as_save_IFS
5336 LD=$ac_cv_prog_LD
5337 if test -n "$LD"; then
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5339 $as_echo "$LD" >&6; }
5340 else
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5342 $as_echo "no" >&6; }
5347 if test -z "$ac_cv_prog_LD"; then
5348 ac_ct_LD=$LD
5349 # Extract the first word of "ld", so it can be a program name with args.
5350 set dummy ld; ac_word=$2
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5352 $as_echo_n "checking for $ac_word... " >&6; }
5353 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
5354 $as_echo_n "(cached) " >&6
5355 else
5356 if test -n "$ac_ct_LD"; then
5357 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5358 else
5359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 for as_dir in $PATH
5362 IFS=$as_save_IFS
5363 test -z "$as_dir" && as_dir=.
5364 for ac_exec_ext in '' $ac_executable_extensions; do
5365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5366 ac_cv_prog_ac_ct_LD="ld"
5367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 break 2
5370 done
5371 done
5372 IFS=$as_save_IFS
5376 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5377 if test -n "$ac_ct_LD"; then
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
5379 $as_echo "$ac_ct_LD" >&6; }
5380 else
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382 $as_echo "no" >&6; }
5385 if test "x$ac_ct_LD" = x; then
5386 LD=""
5387 else
5388 case $cross_compiling:$ac_tool_warned in
5389 yes:)
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5392 ac_tool_warned=yes ;;
5393 esac
5394 LD=$ac_ct_LD
5396 else
5397 LD="$ac_cv_prog_LD"
5400 if test -n "$ac_tool_prefix"; then
5401 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5402 set dummy ${ac_tool_prefix}ar; ac_word=$2
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5404 $as_echo_n "checking for $ac_word... " >&6; }
5405 if test "${ac_cv_prog_AR+set}" = set; then :
5406 $as_echo_n "(cached) " >&6
5407 else
5408 if test -n "$AR"; then
5409 ac_cv_prog_AR="$AR" # Let the user override the test.
5410 else
5411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412 for as_dir in $PATH
5414 IFS=$as_save_IFS
5415 test -z "$as_dir" && as_dir=.
5416 for ac_exec_ext in '' $ac_executable_extensions; do
5417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5418 ac_cv_prog_AR="${ac_tool_prefix}ar"
5419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5420 break 2
5422 done
5423 done
5424 IFS=$as_save_IFS
5428 AR=$ac_cv_prog_AR
5429 if test -n "$AR"; then
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5431 $as_echo "$AR" >&6; }
5432 else
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5434 $as_echo "no" >&6; }
5439 if test -z "$ac_cv_prog_AR"; then
5440 ac_ct_AR=$AR
5441 # Extract the first word of "ar", so it can be a program name with args.
5442 set dummy ar; ac_word=$2
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5444 $as_echo_n "checking for $ac_word... " >&6; }
5445 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5446 $as_echo_n "(cached) " >&6
5447 else
5448 if test -n "$ac_ct_AR"; then
5449 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5450 else
5451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452 for as_dir in $PATH
5454 IFS=$as_save_IFS
5455 test -z "$as_dir" && as_dir=.
5456 for ac_exec_ext in '' $ac_executable_extensions; do
5457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5458 ac_cv_prog_ac_ct_AR="ar"
5459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5460 break 2
5462 done
5463 done
5464 IFS=$as_save_IFS
5468 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5469 if test -n "$ac_ct_AR"; then
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5471 $as_echo "$ac_ct_AR" >&6; }
5472 else
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474 $as_echo "no" >&6; }
5477 if test "x$ac_ct_AR" = x; then
5478 AR=""
5479 else
5480 case $cross_compiling:$ac_tool_warned in
5481 yes:)
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5484 ac_tool_warned=yes ;;
5485 esac
5486 AR=$ac_ct_AR
5488 else
5489 AR="$ac_cv_prog_AR"
5492 if test -n "$ac_tool_prefix"; then
5493 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5494 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5496 $as_echo_n "checking for $ac_word... " >&6; }
5497 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5498 $as_echo_n "(cached) " >&6
5499 else
5500 if test -n "$RANLIB"; then
5501 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5502 else
5503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504 for as_dir in $PATH
5506 IFS=$as_save_IFS
5507 test -z "$as_dir" && as_dir=.
5508 for ac_exec_ext in '' $ac_executable_extensions; do
5509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5510 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5512 break 2
5514 done
5515 done
5516 IFS=$as_save_IFS
5520 RANLIB=$ac_cv_prog_RANLIB
5521 if test -n "$RANLIB"; then
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5523 $as_echo "$RANLIB" >&6; }
5524 else
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526 $as_echo "no" >&6; }
5531 if test -z "$ac_cv_prog_RANLIB"; then
5532 ac_ct_RANLIB=$RANLIB
5533 # Extract the first word of "ranlib", so it can be a program name with args.
5534 set dummy ranlib; ac_word=$2
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5536 $as_echo_n "checking for $ac_word... " >&6; }
5537 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5538 $as_echo_n "(cached) " >&6
5539 else
5540 if test -n "$ac_ct_RANLIB"; then
5541 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5542 else
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544 for as_dir in $PATH
5546 IFS=$as_save_IFS
5547 test -z "$as_dir" && as_dir=.
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5550 ac_cv_prog_ac_ct_RANLIB="ranlib"
5551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5552 break 2
5554 done
5555 done
5556 IFS=$as_save_IFS
5560 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5561 if test -n "$ac_ct_RANLIB"; then
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5563 $as_echo "$ac_ct_RANLIB" >&6; }
5564 else
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5566 $as_echo "no" >&6; }
5569 if test "x$ac_ct_RANLIB" = x; then
5570 RANLIB=":"
5571 else
5572 case $cross_compiling:$ac_tool_warned in
5573 yes:)
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5576 ac_tool_warned=yes ;;
5577 esac
5578 RANLIB=$ac_ct_RANLIB
5580 else
5581 RANLIB="$ac_cv_prog_RANLIB"
5584 if test -n "$ac_tool_prefix"; then
5585 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5586 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5588 $as_echo_n "checking for $ac_word... " >&6; }
5589 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5590 $as_echo_n "(cached) " >&6
5591 else
5592 if test -n "$DLLTOOL"; then
5593 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5594 else
5595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596 for as_dir in $PATH
5598 IFS=$as_save_IFS
5599 test -z "$as_dir" && as_dir=.
5600 for ac_exec_ext in '' $ac_executable_extensions; do
5601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5602 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5604 break 2
5606 done
5607 done
5608 IFS=$as_save_IFS
5612 DLLTOOL=$ac_cv_prog_DLLTOOL
5613 if test -n "$DLLTOOL"; then
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5615 $as_echo "$DLLTOOL" >&6; }
5616 else
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5618 $as_echo "no" >&6; }
5623 if test -z "$ac_cv_prog_DLLTOOL"; then
5624 ac_ct_DLLTOOL=$DLLTOOL
5625 # Extract the first word of "dlltool", so it can be a program name with args.
5626 set dummy dlltool; ac_word=$2
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5628 $as_echo_n "checking for $ac_word... " >&6; }
5629 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5630 $as_echo_n "(cached) " >&6
5631 else
5632 if test -n "$ac_ct_DLLTOOL"; then
5633 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5634 else
5635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636 for as_dir in $PATH
5638 IFS=$as_save_IFS
5639 test -z "$as_dir" && as_dir=.
5640 for ac_exec_ext in '' $ac_executable_extensions; do
5641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5642 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5644 break 2
5646 done
5647 done
5648 IFS=$as_save_IFS
5652 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5653 if test -n "$ac_ct_DLLTOOL"; then
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5655 $as_echo "$ac_ct_DLLTOOL" >&6; }
5656 else
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5658 $as_echo "no" >&6; }
5661 if test "x$ac_ct_DLLTOOL" = x; then
5662 DLLTOOL=":"
5663 else
5664 case $cross_compiling:$ac_tool_warned in
5665 yes:)
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5668 ac_tool_warned=yes ;;
5669 esac
5670 DLLTOOL=$ac_ct_DLLTOOL
5672 else
5673 DLLTOOL="$ac_cv_prog_DLLTOOL"
5676 for ac_prog in gawk mawk nawk awk
5678 # Extract the first word of "$ac_prog", so it can be a program name with args.
5679 set dummy $ac_prog; ac_word=$2
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5681 $as_echo_n "checking for $ac_word... " >&6; }
5682 if test "${ac_cv_prog_AWK+set}" = set; then :
5683 $as_echo_n "(cached) " >&6
5684 else
5685 if test -n "$AWK"; then
5686 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5687 else
5688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5689 for as_dir in $PATH
5691 IFS=$as_save_IFS
5692 test -z "$as_dir" && as_dir=.
5693 for ac_exec_ext in '' $ac_executable_extensions; do
5694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5695 ac_cv_prog_AWK="$ac_prog"
5696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5697 break 2
5699 done
5700 done
5701 IFS=$as_save_IFS
5705 AWK=$ac_cv_prog_AWK
5706 if test -n "$AWK"; then
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5708 $as_echo "$AWK" >&6; }
5709 else
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5711 $as_echo "no" >&6; }
5715 test -n "$AWK" && break
5716 done
5718 for ac_prog in jar fastjar gjar
5720 # Extract the first word of "$ac_prog", so it can be a program name with args.
5721 set dummy $ac_prog; ac_word=$2
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5723 $as_echo_n "checking for $ac_word... " >&6; }
5724 if test "${ac_cv_prog_JAR+set}" = set; then :
5725 $as_echo_n "(cached) " >&6
5726 else
5727 if test -n "$JAR"; then
5728 ac_cv_prog_JAR="$JAR" # Let the user override the test.
5729 else
5730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5731 for as_dir in $PATH
5733 IFS=$as_save_IFS
5734 test -z "$as_dir" && as_dir=.
5735 for ac_exec_ext in '' $ac_executable_extensions; do
5736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5737 ac_cv_prog_JAR="$ac_prog"
5738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5739 break 2
5741 done
5742 done
5743 IFS=$as_save_IFS
5747 JAR=$ac_cv_prog_JAR
5748 if test -n "$JAR"; then
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
5750 $as_echo "$JAR" >&6; }
5751 else
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5753 $as_echo "no" >&6; }
5757 test -n "$JAR" && break
5758 done
5759 test -n "$JAR" || JAR="no"
5761 # Extract the first word of "zip", so it can be a program name with args.
5762 set dummy zip; ac_word=$2
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5764 $as_echo_n "checking for $ac_word... " >&6; }
5765 if test "${ac_cv_path_ZIP+set}" = set; then :
5766 $as_echo_n "(cached) " >&6
5767 else
5768 case $ZIP in
5769 [\\/]* | ?:[\\/]*)
5770 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 for as_dir in $PATH
5776 IFS=$as_save_IFS
5777 test -z "$as_dir" && as_dir=.
5778 for ac_exec_ext in '' $ac_executable_extensions; do
5779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5780 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5782 break 2
5784 done
5785 done
5786 IFS=$as_save_IFS
5788 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
5790 esac
5792 ZIP=$ac_cv_path_ZIP
5793 if test -n "$ZIP"; then
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
5795 $as_echo "$ZIP" >&6; }
5796 else
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5798 $as_echo "no" >&6; }
5802 # Extract the first word of "unzip", so it can be a program name with args.
5803 set dummy unzip; ac_word=$2
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5805 $as_echo_n "checking for $ac_word... " >&6; }
5806 if test "${ac_cv_path_UNZIP+set}" = set; then :
5807 $as_echo_n "(cached) " >&6
5808 else
5809 case $UNZIP in
5810 [\\/]* | ?:[\\/]*)
5811 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
5814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 for as_dir in $PATH
5817 IFS=$as_save_IFS
5818 test -z "$as_dir" && as_dir=.
5819 for ac_exec_ext in '' $ac_executable_extensions; do
5820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5821 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
5822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5823 break 2
5825 done
5826 done
5827 IFS=$as_save_IFS
5829 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
5831 esac
5833 UNZIP=$ac_cv_path_UNZIP
5834 if test -n "$UNZIP"; then
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
5836 $as_echo "$UNZIP" >&6; }
5837 else
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5839 $as_echo "no" >&6; }
5844 # We need a jar that supports -@. This is a GNU extension.
5845 if test "$JAR" != no; then
5846 rm -f config-test.jar
5847 echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
5848 if test -f config-test.jar; then
5849 rm -f config-test.jar
5850 else
5851 JAR=no
5855 # Prefer the jar we found, but fall back to our jar script.
5856 if test "$JAR" = no; then
5857 if test "$ZIP" = no; then
5858 as_fn_error "cannot find neither zip nor jar, cannot continue" "$LINENO" 5
5859 else
5860 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
5861 JAR=`pwd`/scripts/jar
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5869 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5870 # Check whether --enable-maintainer-mode was given.
5871 if test "${enable_maintainer_mode+set}" = set; then :
5872 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5873 else
5874 USE_MAINTAINER_MODE=no
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5878 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5879 if test $USE_MAINTAINER_MODE = yes; then
5880 MAINTAINER_MODE_TRUE=
5881 MAINTAINER_MODE_FALSE='#'
5882 else
5883 MAINTAINER_MODE_TRUE='#'
5884 MAINTAINER_MODE_FALSE=
5887 MAINT=$MAINTAINER_MODE_TRUE
5893 # configure.host sets the following important variables
5894 # libgcj_cflags - host specific C compiler flags
5895 # libgcj_cxxflags - host specific C++ compiler flags
5896 # libgcj_javaflags - host specific Java compiler flags
5897 # libgcj_sublib_ltflags - host specific Libtool flags
5898 # libgcj_sublib_core_extra_deps - host specific extra
5899 # dependencies for core sublib
5900 # (these last two only used when building sublibs)
5901 # and a number of others; see the list at the start of the file.
5903 libgcj_cflags=
5904 libgcj_cxxflags=
5905 libgcj_javaflags=
5906 libgcj_sublib_ltflags=
5907 libgcj_sublib_core_extra_deps=
5909 . ${srcdir}/configure.host
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5912 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5913 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5914 $as_echo_n "(cached) " >&6
5915 else
5916 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5917 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5918 acl_cv_prog_gnu_ld=yes
5919 else
5920 acl_cv_prog_gnu_ld=no
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5924 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5925 with_gnu_ld=$acl_cv_prog_gnu_ld
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
5928 $as_echo_n "checking if the GNU linker ($LD) supports -Bsymbolic-functions... " >&6; }
5929 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then :
5930 $as_echo_n "(cached) " >&6
5931 else
5933 acl_cv_prog_gnu_ld_symbolic=no
5935 if test x"$with_gnu_ld" = x"yes"; then
5936 if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
5937 acl_cv_prog_gnu_ld_symbolic=yes
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld_symbolic" >&5
5942 $as_echo "$acl_cv_prog_gnu_ld_symbolic" >&6; }
5943 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
5944 SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
5945 else
5946 SYMBOLIC_LDFLAGS=''
5949 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
5950 if test -z "$libgcj_ld_symbolic"; then
5951 libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
5954 LIBGCJ_CFLAGS="${libgcj_cflags}"
5955 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
5956 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
5957 LIBGCJ_SUBLIB_LTFLAGS="${libgcj_sublib_ltflags}"
5958 LIBGCJ_SUBLIB_CORE_EXTRA_DEPS="${libgcj_sublib_core_extra_deps}"
5959 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
5960 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
5969 # Only use libltdl for non-newlib builds.
5970 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
5972 $as_echo_n "checking dynamic linker characteristics... " >&6; }
5973 library_names_spec=
5974 libname_spec='lib$name'
5975 soname_spec=
5976 shrext=".so"
5977 postinstall_cmds=
5978 postuninstall_cmds=
5979 finish_cmds=
5980 finish_eval=
5981 shlibpath_var=
5982 shlibpath_overrides_runpath=unknown
5983 version_type=none
5984 dynamic_linker="$host_os ld.so"
5985 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5986 if test "$GCC" = yes; then
5987 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
5988 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
5989 # if the path contains ";" then we assume it to be the separator
5990 # otherwise default to the standard path separator (i.e. ":") - it is
5991 # assumed that no part of a normal pathname contains ";" but that should
5992 # okay in the real world where ";" in dirpaths is itself problematic.
5993 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
5994 else
5995 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
5997 else
5998 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6000 need_lib_prefix=unknown
6001 hardcode_into_libs=no
6003 # when you set need_version to no, make sure it does not cause -set_version
6004 # flags to be left without arguments
6005 need_version=unknown
6007 case $host_os in
6008 aix3*)
6009 version_type=linux
6010 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6011 shlibpath_var=LIBPATH
6013 # AIX 3 has no versioning support, so we append a major version to the name.
6014 soname_spec='${libname}${release}${shared_ext}$major'
6017 aix[4-9]*)
6018 version_type=linux
6019 need_lib_prefix=no
6020 need_version=no
6021 hardcode_into_libs=yes
6022 if test "$host_cpu" = ia64; then
6023 # AIX 5 supports IA64
6024 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6025 shlibpath_var=LD_LIBRARY_PATH
6026 else
6027 # With GCC up to 2.95.x, collect2 would create an import file
6028 # for dependence libraries. The import file would start with
6029 # the line `#! .'. This would cause the generated library to
6030 # depend on `.', always an invalid library. This was fixed in
6031 # development snapshots of GCC prior to 3.0.
6032 case $host_os in
6033 aix4 | aix4.[01] | aix4.[01].*)
6034 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6035 echo ' yes '
6036 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6038 else
6039 can_build_shared=no
6042 esac
6043 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6044 # soname into executable. Probably we can add versioning support to
6045 # collect2, so additional links can be useful in future.
6046 if test "$aix_use_runtimelinking" = yes; then
6047 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6048 # instead of lib<name>.a to let people know that these are not
6049 # typical AIX shared libraries.
6050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6051 else
6052 # We preserve .a as extension for shared libraries through AIX4.2
6053 # and later when we are not doing run time linking.
6054 library_names_spec='${libname}${release}.a $libname.a'
6055 soname_spec='${libname}${release}${shared_ext}$major'
6057 shlibpath_var=LIBPATH
6061 amigaos*)
6062 library_names_spec='$libname.ixlibrary $libname.a'
6063 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6064 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'
6067 beos*)
6068 library_names_spec='${libname}${shared_ext}'
6069 dynamic_linker="$host_os ld.so"
6070 shlibpath_var=LIBRARY_PATH
6073 bsdi4*)
6074 version_type=linux
6075 need_version=no
6076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6077 soname_spec='${libname}${release}${shared_ext}$major'
6078 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6079 shlibpath_var=LD_LIBRARY_PATH
6080 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6081 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6082 # the default ld.so.conf also contains /usr/contrib/lib and
6083 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6084 # libtool to hard-code these into programs
6087 cygwin* | mingw* | pw32*)
6088 version_type=windows
6089 shrext=".dll"
6090 need_version=no
6091 need_lib_prefix=no
6093 case $GCC,$host_os in
6094 yes,cygwin* | yes,mingw* | yes,pw32*)
6095 library_names_spec='$libname.dll.a'
6096 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6097 postinstall_cmds='base_file=`basename \${file}`~
6098 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6099 dldir=$destdir/`dirname \$dlpath`~
6100 test -d \$dldir || mkdir -p \$dldir~
6101 $install_prog $dir/$dlname \$dldir/$dlname'
6102 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6103 dlpath=$dir/\$dldll~
6104 $rm \$dlpath'
6105 shlibpath_overrides_runpath=yes
6107 case $host_os in
6108 cygwin*)
6109 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6110 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6111 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
6113 mingw*)
6114 # MinGW DLLs use traditional 'lib' prefix
6115 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6116 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
6117 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6118 # It is most probably a Windows format PATH printed by
6119 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6120 # path with ; separators, and with drive letters. We can handle the
6121 # drive letters (cygwin fileutils understands them), so leave them,
6122 # especially as we might pass files found there to a mingw objdump,
6123 # which wouldn't understand a cygwinified path. Ahh.
6124 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6125 else
6126 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6129 pw32*)
6130 # pw32 DLLs use 'pw' prefix rather than 'lib'
6131 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
6133 esac
6137 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6139 esac
6140 dynamic_linker='Win32 ld.exe'
6141 # FIXME: first we should search . and the directory the executable is in
6142 shlibpath_var=PATH
6145 darwin* | rhapsody*)
6146 dynamic_linker="$host_os dyld"
6147 version_type=darwin
6148 need_lib_prefix=no
6149 need_version=no
6150 # FIXME: Relying on posixy $() will cause problems for
6151 # cross-compilation, but unfortunately the echo tests do not
6152 # yet detect zsh echo's removal of \ escapes.
6153 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6154 soname_spec='${libname}${release}${major}$shared_ext'
6155 shlibpath_overrides_runpath=yes
6156 shlibpath_var=DYLD_LIBRARY_PATH
6157 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
6158 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6159 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6160 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"`
6162 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6165 dgux*)
6166 version_type=linux
6167 need_lib_prefix=no
6168 need_version=no
6169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6170 soname_spec='${libname}${release}${shared_ext}$major'
6171 shlibpath_var=LD_LIBRARY_PATH
6174 freebsd1*)
6175 dynamic_linker=no
6178 freebsd*)
6179 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6180 version_type=freebsd-$objformat
6181 case $version_type in
6182 freebsd-elf*)
6183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6184 need_version=no
6185 need_lib_prefix=no
6187 freebsd-*)
6188 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6189 need_version=yes
6191 esac
6192 shlibpath_var=LD_LIBRARY_PATH
6193 case $host_os in
6194 freebsd2*)
6195 shlibpath_overrides_runpath=yes
6197 freebsd3.01* | freebsdelf3.01*)
6198 shlibpath_overrides_runpath=yes
6199 hardcode_into_libs=yes
6201 *) # from 3.2 on
6202 shlibpath_overrides_runpath=no
6203 hardcode_into_libs=yes
6205 esac
6208 gnu*)
6209 version_type=linux
6210 need_lib_prefix=no
6211 need_version=no
6212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6213 soname_spec='${libname}${release}${shared_ext}$major'
6214 shlibpath_var=LD_LIBRARY_PATH
6215 hardcode_into_libs=yes
6218 hpux9* | hpux10* | hpux11*)
6219 # Give a soname corresponding to the major version so that dld.sl refuses to
6220 # link against other versions.
6221 version_type=sunos
6222 need_lib_prefix=no
6223 need_version=no
6224 case "$host_cpu" in
6225 ia64*)
6226 shrext='.so'
6227 hardcode_into_libs=yes
6228 dynamic_linker="$host_os dld.so"
6229 shlibpath_var=LD_LIBRARY_PATH
6230 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6232 soname_spec='${libname}${release}${shared_ext}$major'
6233 if test "X$HPUX_IA64_MODE" = X32; then
6234 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6235 else
6236 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6238 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6240 hppa*64*)
6241 shrext='.sl'
6242 hardcode_into_libs=yes
6243 dynamic_linker="$host_os dld.sl"
6244 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6245 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6247 soname_spec='${libname}${release}${shared_ext}$major'
6248 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6249 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6252 shrext='.sl'
6253 dynamic_linker="$host_os dld.sl"
6254 shlibpath_var=SHLIB_PATH
6255 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6257 soname_spec='${libname}${release}${shared_ext}$major'
6259 esac
6260 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6261 postinstall_cmds='chmod 555 $lib'
6264 irix5* | irix6* | nonstopux*)
6265 case $host_os in
6266 nonstopux*) version_type=nonstopux ;;
6268 if test "$lt_cv_prog_gnu_ld" = yes; then
6269 version_type=linux
6270 else
6271 version_type=irix
6272 fi ;;
6273 esac
6274 need_lib_prefix=no
6275 need_version=no
6276 soname_spec='${libname}${release}${shared_ext}$major'
6277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6278 case $host_os in
6279 irix5* | nonstopux*)
6280 libsuff= shlibsuff=
6283 case $LD in # libtool.m4 will add one of these switches to LD
6284 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6285 libsuff= shlibsuff= libmagic=32-bit;;
6286 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6287 libsuff=32 shlibsuff=N32 libmagic=N32;;
6288 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6289 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6290 *) libsuff= shlibsuff= libmagic=never-match;;
6291 esac
6293 esac
6294 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6295 shlibpath_overrides_runpath=no
6296 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6297 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6298 hardcode_into_libs=yes
6301 # No shared lib support for Linux oldld, aout, or coff.
6302 linux*oldld* | linux*aout* | linux*coff*)
6303 dynamic_linker=no
6306 # This must be Linux ELF.
6307 linux*|k*bsd*-gnu)
6308 version_type=linux
6309 need_lib_prefix=no
6310 need_version=no
6311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6312 soname_spec='${libname}${release}${shared_ext}$major'
6313 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6314 shlibpath_var=LD_LIBRARY_PATH
6315 shlibpath_overrides_runpath=no
6316 # This implies no fast_install, which is unacceptable.
6317 # Some rework will be needed to allow for fast_install
6318 # before this can be enabled.
6319 hardcode_into_libs=yes
6321 # We used to test for /lib/ld.so.1 and disable shared libraries on
6322 # powerpc, because MkLinux only supported shared libraries with the
6323 # GNU dynamic linker. Since this was broken with cross compilers,
6324 # most powerpc-linux boxes support dynamic linking these days and
6325 # people can always --disable-shared, the test was removed, and we
6326 # assume the GNU/Linux dynamic linker is in use.
6327 dynamic_linker='GNU/Linux ld.so'
6330 netbsd*)
6331 version_type=sunos
6332 need_lib_prefix=no
6333 need_version=no
6334 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6336 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6337 dynamic_linker='NetBSD (a.out) ld.so'
6338 else
6339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
6340 soname_spec='${libname}${release}${shared_ext}$major'
6341 dynamic_linker='NetBSD ld.elf_so'
6343 shlibpath_var=LD_LIBRARY_PATH
6344 shlibpath_overrides_runpath=yes
6345 hardcode_into_libs=yes
6348 newsos6)
6349 version_type=linux
6350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6351 shlibpath_var=LD_LIBRARY_PATH
6352 shlibpath_overrides_runpath=yes
6355 nto-qnx)
6356 version_type=linux
6357 need_lib_prefix=no
6358 need_version=no
6359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6360 soname_spec='${libname}${release}${shared_ext}$major'
6361 shlibpath_var=LD_LIBRARY_PATH
6362 shlibpath_overrides_runpath=yes
6365 openbsd*)
6366 version_type=sunos
6367 need_lib_prefix=no
6368 need_version=no
6369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6370 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6371 shlibpath_var=LD_LIBRARY_PATH
6372 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6373 case $host_os in
6374 openbsd2.[89] | openbsd2.[89].*)
6375 shlibpath_overrides_runpath=no
6378 shlibpath_overrides_runpath=yes
6380 esac
6381 else
6382 shlibpath_overrides_runpath=yes
6386 os2*)
6387 libname_spec='$name'
6388 shrext=".dll"
6389 need_lib_prefix=no
6390 library_names_spec='$libname${shared_ext} $libname.a'
6391 dynamic_linker='OS/2 ld.exe'
6392 shlibpath_var=LIBPATH
6395 osf3* | osf4* | osf5*)
6396 version_type=osf
6397 need_lib_prefix=no
6398 need_version=no
6399 soname_spec='${libname}${release}${shared_ext}$major'
6400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6401 shlibpath_var=LD_LIBRARY_PATH
6402 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6403 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6406 sco3.2v5*)
6407 version_type=osf
6408 soname_spec='${libname}${release}${shared_ext}$major'
6409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6410 shlibpath_var=LD_LIBRARY_PATH
6413 solaris*)
6414 version_type=linux
6415 need_lib_prefix=no
6416 need_version=no
6417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6418 soname_spec='${libname}${release}${shared_ext}$major'
6419 shlibpath_var=LD_LIBRARY_PATH
6420 shlibpath_overrides_runpath=yes
6421 hardcode_into_libs=yes
6422 # ldd complains unless libraries are executable
6423 postinstall_cmds='chmod +x $lib'
6426 sunos4*)
6427 version_type=sunos
6428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6429 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6430 shlibpath_var=LD_LIBRARY_PATH
6431 shlibpath_overrides_runpath=yes
6432 if test "$with_gnu_ld" = yes; then
6433 need_lib_prefix=no
6435 need_version=yes
6438 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6439 version_type=linux
6440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6441 soname_spec='${libname}${release}${shared_ext}$major'
6442 shlibpath_var=LD_LIBRARY_PATH
6443 case $host_vendor in
6444 sni)
6445 shlibpath_overrides_runpath=no
6446 need_lib_prefix=no
6447 export_dynamic_flag_spec='${wl}-Blargedynsym'
6448 runpath_var=LD_RUN_PATH
6450 siemens)
6451 need_lib_prefix=no
6453 motorola)
6454 need_lib_prefix=no
6455 need_version=no
6456 shlibpath_overrides_runpath=no
6457 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6459 esac
6462 sysv4*MP*)
6463 if test -d /usr/nec ;then
6464 version_type=linux
6465 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
6466 soname_spec='$libname${shared_ext}.$major'
6467 shlibpath_var=LD_LIBRARY_PATH
6471 uts4*)
6472 version_type=linux
6473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6474 soname_spec='${libname}${release}${shared_ext}$major'
6475 shlibpath_var=LD_LIBRARY_PATH
6479 dynamic_linker=no
6481 esac
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
6483 $as_echo "$dynamic_linker" >&6; }
6484 test "$dynamic_linker" = no && can_build_shared=no
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
6488 $as_echo_n "checking which variable specifies run-time library path... " >&6; }
6489 if test "${libltdl_cv_shlibpath_var+set}" = set; then :
6490 $as_echo_n "(cached) " >&6
6491 else
6492 libltdl_cv_shlibpath_var="$shlibpath_var"
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
6495 $as_echo "$libltdl_cv_shlibpath_var" >&6; }
6496 if test -n "$libltdl_cv_shlibpath_var"; then
6498 cat >>confdefs.h <<_ACEOF
6499 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
6500 _ACEOF
6506 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
6509 # Possibly build libgcj as many sub-libraries.
6510 # Check whether --enable-libgcj-sublibs was given.
6511 if test "${enable_libgcj_sublibs+set}" = set; then :
6512 enableval=$enable_libgcj_sublibs;
6516 if test -z "$enable_libgcj_sublibs"; then
6517 enable_libgcj_sublibs=$enable_libgcj_sublibs_default
6519 if test "$enable_libgcj_sublibs" = yes; then
6520 BUILD_SUBLIBS_TRUE=
6521 BUILD_SUBLIBS_FALSE='#'
6522 else
6523 BUILD_SUBLIBS_TRUE='#'
6524 BUILD_SUBLIBS_FALSE=
6527 if test "$enable_libgcj_sublibs" = yes ; then
6528 # In theory we could make do with only one override and simply
6529 # tag "_bc" onto the end of it when we use it to generate the
6530 # spec, but that's an ugly thing to do when there are multiple
6531 # words in the string and you're relying on the ordering to
6532 # append the correct one.
6533 libgcj_spec_lgcj_override="-lgcj-noncore -lgcj"
6534 libgcj_spec_lgcj_bc_override="-lgcj-noncore -lgcj_bc"
6538 # See if the user has requested runtime debugging.
6539 LIBGCJDEBUG="disable"
6541 # Check whether --enable-libgcj-debug was given.
6542 if test "${enable_libgcj_debug+set}" = set; then :
6543 enableval=$enable_libgcj_debug; if test "$enable_libgcj_debug" = yes; then
6545 $as_echo "#define __GCJ_DEBUG 1" >>confdefs.h
6547 LIBGCJDEBUG="enable"
6553 # Check whether --with-escher was given.
6554 if test "${with_escher+set}" = set; then :
6555 withval=$with_escher;
6558 case "$with_escher" in
6560 use_escher=false
6562 "no")
6563 use_escher=false
6565 "yes")
6566 as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
6569 use_escher=true
6571 esac
6573 # Determine which AWT peer libraries to build
6574 # Check whether --enable-java-awt was given.
6575 if test "${enable_java_awt+set}" = set; then :
6576 enableval=$enable_java_awt;
6580 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6581 use_xlib_awt=""
6582 use_gtk_awt=""
6583 use_qt_awt=""
6584 use_x_awt=""
6585 # The default toolkit to use is the first one specified.
6586 TOOLKIT=
6589 for peer in $peerlibs ; do
6590 case $peer in
6591 xlib)
6592 if test "$no_x" = yes; then
6593 echo "*** xlib peers requested but no X library available" 1>&2
6594 exit 1
6595 else
6596 use_xlib_awt="yes"
6597 if test -z "$TOOLKIT"; then
6598 TOOLKIT=gnu.awt.xlib.XToolkit
6602 gtk)
6603 if test "$no_x" = yes; then
6604 echo "*** gtk peers requested but no X library available" 1>&2
6605 exit 1
6606 else
6607 use_gtk_awt=yes
6608 if test -z "$TOOLKIT"; then
6609 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
6614 if test "$no_x" = yes; then
6615 # Perhaps we should admit the possibility of embedded Qt.
6616 echo "*** Qt peers requested but no X library available" 1>&2
6617 exit 1
6618 else
6619 use_qt_awt=yes
6620 if test -z "$TOOLKIT"; then
6621 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
6626 use_x_awt=yes
6627 if test -z "$TOOLKIT"; then
6628 TOOLKIT=gnu.java.awt.peer.x.XToolkit
6632 use_xlib_awt=
6633 use_gtk_awt=
6634 use_qt_awt=
6635 use_x_awt=
6636 break
6639 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
6640 exit 1
6641 esac
6642 done
6644 if test "$use_xlib_awt" = yes; then
6645 XLIB_AWT_TRUE=
6646 XLIB_AWT_FALSE='#'
6647 else
6648 XLIB_AWT_TRUE='#'
6649 XLIB_AWT_FALSE=
6652 if test "$use_x_awt" = yes; then
6653 X_AWT_TRUE=
6654 X_AWT_FALSE='#'
6655 else
6656 X_AWT_TRUE='#'
6657 X_AWT_FALSE=
6662 cat >>confdefs.h <<_ACEOF
6663 #define AWT_TOOLKIT "$TOOLKIT"
6664 _ACEOF
6667 expanded_prefix=$prefix
6668 if test "X$prefix" = XNONE; then
6669 expanded_prefix=${ac_default_prefix}
6673 cat >>confdefs.h <<_ACEOF
6674 #define LIBGCJ_PREFIX "$expanded_prefix"
6675 _ACEOF
6678 # Create standard.omit based on decisions we just made.
6679 cp $srcdir/standard.omit.in standard.omit
6680 if test "$use_xlib_awt" != yes; then
6681 echo gnu/awt/xlib >> standard.omit
6682 echo gnu/gcj/xlib >> standard.omit
6684 if test "$use_x_awt" != yes; then
6685 echo gnu/java/awt/peer/x >> standard.omit
6688 # Tools that need to be compiled against classpath's tools classes
6689 : > vm-tools-packages
6690 for package in gnu/gcj/tools/gc_analyze ; do
6691 echo $package >> standard.omit
6692 echo $package >> vm-tools-packages
6693 done
6695 if test -z "${with_multisubdir}"; then
6696 builddotdot=.
6697 else
6698 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
6701 NATIVE=yes
6703 # Which gcj and host gcj (for ecjx) do we use?
6704 which_gcj=default
6705 host_exeext=${ac_exeext}
6706 GCJ_FOR_ECJX=
6707 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
6708 if test -n "${with_cross_host}"; then
6709 # We are being configured with a cross compiler. We can't
6710 # use ac_exeext, because that is for the target platform.
6711 NATIVE=no
6712 cross_host_exeext=
6713 GCJ_FOR_ECJX="${with_cross_host}-gcj"
6714 case "${with_cross_host}" in
6715 *mingw* | *cygwin*)
6716 cross_host_exeext=.exe
6718 esac
6719 host_exeext=${cross_host_exeext}
6720 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
6721 if test x"$build_noncanonical" = x"$with_cross_host"; then
6722 # Ordinary cross (host!=target and host=build)
6723 which_gcj=built
6724 else
6725 # Canadian cross (host!=target and host!=build)
6726 which_gcj=cross
6728 else
6729 which_gcj=cross
6731 else
6732 # We are being configured with a native or crossed-native compiler
6733 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
6734 if test x"$build" = x"$host"; then
6735 # True native build (host=target and host=build)
6736 which_gcj=built
6737 else
6738 # Crossed-native build (host=target and host!=build)
6739 which_gcj=cross
6741 else
6742 which_gcj=path
6745 libgcjdir=`${PWDCMD-pwd}`
6746 case $GCJ in
6747 *" -B"*)
6748 # Just in case there is a comma in the build dir, quote it for the
6749 # sed command below.
6750 case $libgcjdir in
6751 *[,\\]*) qlibgcjdir=`echo "$libgcjdir" | sed 's:[,\\]:\\&:g'`;;
6752 *) qlibgcjdir=$libgcjdir;;
6753 esac
6754 GCJ=`echo "$GCJ" | sed "s, -B, -B$qlibgcjdir/&,"`
6757 GCJ=$GCJ" -B$libgcjdir/"
6759 esac
6760 case "${which_gcj}" in
6761 built)
6762 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
6764 cross)
6765 if test "x${with_newlib}" = "xyes"; then
6766 # FIXME (comment): Why is this needed?
6767 GCC_UNWIND_INCLUDE=
6769 GCJH='$(target_noncanonical)-gcjh'
6771 path)
6772 GCJH=gcjh
6774 esac
6775 JAVAC="$GCJ -C"
6776 export JAVAC
6782 # Create it, so that compile/link tests don't fail
6783 test -f libgcj.spec || touch libgcj.spec
6787 # Set up to configure Classpath.
6788 # FIXME: no supported way to pass args in autoconf.
6789 # Disable tool wrappers to avoid ltdl.h configure check.
6790 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
6791 ac_configure_args="$ac_configure_args --disable-load-library"
6792 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
6793 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
6794 dir1=`cd $srcdir && pwd`
6795 dir2=`pwd`
6796 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
6797 ac_configure_args="$ac_configure_args --disable-core-jni"
6798 ac_configure_args="$ac_configure_args --disable-examples"
6799 ac_configure_args="$ac_configure_args --with-glibj=build"
6800 if test "$browser_plugin_enabled" != yes; then
6801 ac_configure_args="$ac_configure_args --disable-plugin"
6802 else
6803 ac_configure_args="$ac_configure_args --enable-plugin"
6805 if test "$gconf_enabled" != yes; then
6806 ac_configure_args="$ac_configure_args --disable-gconf-peer"
6807 ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
6809 if test "$use_gtk_awt" != yes; then
6810 ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
6812 if test "$use_qt_awt" != yes; then
6813 ac_configure_args="$ac_configure_args --disable-qt-peer"
6814 else
6815 # We need this as qt is disabled by default in classpath.
6816 ac_configure_args="$ac_configure_args --enable-qt-peer"
6818 if test "$use_x_awt" != yes; then
6819 ac_configure_args="$ac_configure_args --without-escher"
6820 else
6821 # We need this as escher is disabled by default in classpath.
6822 if test "$use_escher" != true; then
6823 as_fn_error "Please supply an absolute path to the Escher library" "$LINENO" 5
6824 else
6825 ac_configure_args="$ac_configure_args --with-escher=$with_escher"
6828 if test "x$BUILD_GJDOC" = xno; then
6829 ac_configure_args="$ac_configure_args --disable-gjdoc"
6831 # -Werror causes unavoidable problems in code using alsa.
6832 ac_configure_args="$ac_configure_args --disable-regen-headers"
6833 ac_configure_args="$ac_configure_args --disable-Werror"
6835 # Only use libltdl for non-newlib builds.
6836 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
6837 case $enable_ltdl_convenience in
6838 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
6839 "") enable_ltdl_convenience=yes
6840 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
6841 esac
6842 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
6843 LTDLINCL='-I${top_srcdir}/''libltdl'
6844 # For backwards non-gettext consistent compatibility...
6845 INCLTDL="$LTDLINCL"
6847 enable_dlopen=yes
6851 DIRLTDL=libltdl
6853 $as_echo "#define USE_LTDL 1" >>confdefs.h
6855 # Sigh. Libtool's macro doesn't do the right thing.
6856 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
6857 # FIXME: this is a hack.
6858 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
6859 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
6864 case `pwd` in
6865 *\ * | *\ *)
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6867 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6868 esac
6872 macro_version='2.2.7a'
6873 macro_revision='1.3134'
6887 ltmain="$ac_aux_dir/ltmain.sh"
6889 # Backslashify metacharacters that are still active within
6890 # double-quoted strings.
6891 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6893 # Same as above, but do not quote variable references.
6894 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6896 # Sed substitution to delay expansion of an escaped shell variable in a
6897 # double_quote_subst'ed string.
6898 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6900 # Sed substitution to delay expansion of an escaped single quote.
6901 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6903 # Sed substitution to avoid accidental globbing in evaled expressions
6904 no_glob_subst='s/\*/\\\*/g'
6906 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6907 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6908 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6911 $as_echo_n "checking how to print strings... " >&6; }
6912 # Test print first, because it will be a builtin if present.
6913 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6914 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6915 ECHO='print -r --'
6916 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6917 ECHO='printf %s\n'
6918 else
6919 # Use this function as a fallback that always works.
6920 func_fallback_echo ()
6922 eval 'cat <<_LTECHO_EOF
6924 _LTECHO_EOF'
6926 ECHO='func_fallback_echo'
6929 # func_echo_all arg...
6930 # Invoke $ECHO with all args, space-separated.
6931 func_echo_all ()
6933 $ECHO ""
6936 case "$ECHO" in
6937 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6938 $as_echo "printf" >&6; } ;;
6939 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6940 $as_echo "print -r" >&6; } ;;
6941 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6942 $as_echo "cat" >&6; } ;;
6943 esac
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6959 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6960 if test "${ac_cv_path_SED+set}" = set; then :
6961 $as_echo_n "(cached) " >&6
6962 else
6963 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6964 for ac_i in 1 2 3 4 5 6 7; do
6965 ac_script="$ac_script$as_nl$ac_script"
6966 done
6967 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6968 { ac_script=; unset ac_script;}
6969 if test -z "$SED"; then
6970 ac_path_SED_found=false
6971 # Loop through the user's path and test for each of PROGNAME-LIST
6972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973 for as_dir in $PATH
6975 IFS=$as_save_IFS
6976 test -z "$as_dir" && as_dir=.
6977 for ac_prog in sed gsed; do
6978 for ac_exec_ext in '' $ac_executable_extensions; do
6979 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6980 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6981 # Check for GNU ac_path_SED and select it if it is found.
6982 # Check for GNU $ac_path_SED
6983 case `"$ac_path_SED" --version 2>&1` in
6984 *GNU*)
6985 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6987 ac_count=0
6988 $as_echo_n 0123456789 >"conftest.in"
6989 while :
6991 cat "conftest.in" "conftest.in" >"conftest.tmp"
6992 mv "conftest.tmp" "conftest.in"
6993 cp "conftest.in" "conftest.nl"
6994 $as_echo '' >> "conftest.nl"
6995 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6996 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6997 as_fn_arith $ac_count + 1 && ac_count=$as_val
6998 if test $ac_count -gt ${ac_path_SED_max-0}; then
6999 # Best one so far, save it but keep looking for a better one
7000 ac_cv_path_SED="$ac_path_SED"
7001 ac_path_SED_max=$ac_count
7003 # 10*(2^10) chars as input seems more than enough
7004 test $ac_count -gt 10 && break
7005 done
7006 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7007 esac
7009 $ac_path_SED_found && break 3
7010 done
7011 done
7012 done
7013 IFS=$as_save_IFS
7014 if test -z "$ac_cv_path_SED"; then
7015 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7017 else
7018 ac_cv_path_SED=$SED
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7023 $as_echo "$ac_cv_path_SED" >&6; }
7024 SED="$ac_cv_path_SED"
7025 rm -f conftest.sed
7027 test -z "$SED" && SED=sed
7028 Xsed="$SED -e 1s/^X//"
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7041 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7042 if test "${ac_cv_path_GREP+set}" = set; then :
7043 $as_echo_n "(cached) " >&6
7044 else
7045 if test -z "$GREP"; then
7046 ac_path_GREP_found=false
7047 # Loop through the user's path and test for each of PROGNAME-LIST
7048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7051 IFS=$as_save_IFS
7052 test -z "$as_dir" && as_dir=.
7053 for ac_prog in grep ggrep; do
7054 for ac_exec_ext in '' $ac_executable_extensions; do
7055 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7056 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7057 # Check for GNU ac_path_GREP and select it if it is found.
7058 # Check for GNU $ac_path_GREP
7059 case `"$ac_path_GREP" --version 2>&1` in
7060 *GNU*)
7061 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7063 ac_count=0
7064 $as_echo_n 0123456789 >"conftest.in"
7065 while :
7067 cat "conftest.in" "conftest.in" >"conftest.tmp"
7068 mv "conftest.tmp" "conftest.in"
7069 cp "conftest.in" "conftest.nl"
7070 $as_echo 'GREP' >> "conftest.nl"
7071 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7072 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7073 as_fn_arith $ac_count + 1 && ac_count=$as_val
7074 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7075 # Best one so far, save it but keep looking for a better one
7076 ac_cv_path_GREP="$ac_path_GREP"
7077 ac_path_GREP_max=$ac_count
7079 # 10*(2^10) chars as input seems more than enough
7080 test $ac_count -gt 10 && break
7081 done
7082 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7083 esac
7085 $ac_path_GREP_found && break 3
7086 done
7087 done
7088 done
7089 IFS=$as_save_IFS
7090 if test -z "$ac_cv_path_GREP"; then
7091 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7093 else
7094 ac_cv_path_GREP=$GREP
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7099 $as_echo "$ac_cv_path_GREP" >&6; }
7100 GREP="$ac_cv_path_GREP"
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7104 $as_echo_n "checking for egrep... " >&6; }
7105 if test "${ac_cv_path_EGREP+set}" = set; then :
7106 $as_echo_n "(cached) " >&6
7107 else
7108 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7109 then ac_cv_path_EGREP="$GREP -E"
7110 else
7111 if test -z "$EGREP"; then
7112 ac_path_EGREP_found=false
7113 # Loop through the user's path and test for each of PROGNAME-LIST
7114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7117 IFS=$as_save_IFS
7118 test -z "$as_dir" && as_dir=.
7119 for ac_prog in egrep; do
7120 for ac_exec_ext in '' $ac_executable_extensions; do
7121 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7122 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7123 # Check for GNU ac_path_EGREP and select it if it is found.
7124 # Check for GNU $ac_path_EGREP
7125 case `"$ac_path_EGREP" --version 2>&1` in
7126 *GNU*)
7127 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7129 ac_count=0
7130 $as_echo_n 0123456789 >"conftest.in"
7131 while :
7133 cat "conftest.in" "conftest.in" >"conftest.tmp"
7134 mv "conftest.tmp" "conftest.in"
7135 cp "conftest.in" "conftest.nl"
7136 $as_echo 'EGREP' >> "conftest.nl"
7137 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7138 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7139 as_fn_arith $ac_count + 1 && ac_count=$as_val
7140 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7141 # Best one so far, save it but keep looking for a better one
7142 ac_cv_path_EGREP="$ac_path_EGREP"
7143 ac_path_EGREP_max=$ac_count
7145 # 10*(2^10) chars as input seems more than enough
7146 test $ac_count -gt 10 && break
7147 done
7148 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7149 esac
7151 $ac_path_EGREP_found && break 3
7152 done
7153 done
7154 done
7155 IFS=$as_save_IFS
7156 if test -z "$ac_cv_path_EGREP"; then
7157 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7159 else
7160 ac_cv_path_EGREP=$EGREP
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7166 $as_echo "$ac_cv_path_EGREP" >&6; }
7167 EGREP="$ac_cv_path_EGREP"
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7171 $as_echo_n "checking for fgrep... " >&6; }
7172 if test "${ac_cv_path_FGREP+set}" = set; then :
7173 $as_echo_n "(cached) " >&6
7174 else
7175 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7176 then ac_cv_path_FGREP="$GREP -F"
7177 else
7178 if test -z "$FGREP"; then
7179 ac_path_FGREP_found=false
7180 # Loop through the user's path and test for each of PROGNAME-LIST
7181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7184 IFS=$as_save_IFS
7185 test -z "$as_dir" && as_dir=.
7186 for ac_prog in fgrep; do
7187 for ac_exec_ext in '' $ac_executable_extensions; do
7188 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7189 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7190 # Check for GNU ac_path_FGREP and select it if it is found.
7191 # Check for GNU $ac_path_FGREP
7192 case `"$ac_path_FGREP" --version 2>&1` in
7193 *GNU*)
7194 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7196 ac_count=0
7197 $as_echo_n 0123456789 >"conftest.in"
7198 while :
7200 cat "conftest.in" "conftest.in" >"conftest.tmp"
7201 mv "conftest.tmp" "conftest.in"
7202 cp "conftest.in" "conftest.nl"
7203 $as_echo 'FGREP' >> "conftest.nl"
7204 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7205 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7206 as_fn_arith $ac_count + 1 && ac_count=$as_val
7207 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7208 # Best one so far, save it but keep looking for a better one
7209 ac_cv_path_FGREP="$ac_path_FGREP"
7210 ac_path_FGREP_max=$ac_count
7212 # 10*(2^10) chars as input seems more than enough
7213 test $ac_count -gt 10 && break
7214 done
7215 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7216 esac
7218 $ac_path_FGREP_found && break 3
7219 done
7220 done
7221 done
7222 IFS=$as_save_IFS
7223 if test -z "$ac_cv_path_FGREP"; then
7224 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7226 else
7227 ac_cv_path_FGREP=$FGREP
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7233 $as_echo "$ac_cv_path_FGREP" >&6; }
7234 FGREP="$ac_cv_path_FGREP"
7237 test -z "$GREP" && GREP=grep
7257 # Check whether --with-gnu-ld was given.
7258 if test "${with_gnu_ld+set}" = set; then :
7259 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7260 else
7261 with_gnu_ld=no
7264 ac_prog=ld
7265 if test "$GCC" = yes; then
7266 # Check if gcc -print-prog-name=ld gives a path.
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7268 $as_echo_n "checking for ld used by $CC... " >&6; }
7269 case $host in
7270 *-*-mingw*)
7271 # gcc leaves a trailing carriage return which upsets mingw
7272 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7274 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7275 esac
7276 case $ac_prog in
7277 # Accept absolute paths.
7278 [\\/]* | ?:[\\/]*)
7279 re_direlt='/[^/][^/]*/\.\./'
7280 # Canonicalize the pathname of ld
7281 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7282 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7283 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7284 done
7285 test -z "$LD" && LD="$ac_prog"
7288 # If it fails, then pretend we aren't using GCC.
7289 ac_prog=ld
7292 # If it is relative, then search for the first ld in PATH.
7293 with_gnu_ld=unknown
7295 esac
7296 elif test "$with_gnu_ld" = yes; then
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7298 $as_echo_n "checking for GNU ld... " >&6; }
7299 else
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7301 $as_echo_n "checking for non-GNU ld... " >&6; }
7303 if test "${lt_cv_path_LD+set}" = set; then :
7304 $as_echo_n "(cached) " >&6
7305 else
7306 if test -z "$LD"; then
7307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7308 for ac_dir in $PATH; do
7309 IFS="$lt_save_ifs"
7310 test -z "$ac_dir" && ac_dir=.
7311 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7312 lt_cv_path_LD="$ac_dir/$ac_prog"
7313 # Check to see if the program is GNU ld. I'd rather use --version,
7314 # but apparently some variants of GNU ld only accept -v.
7315 # Break only if it was the GNU/non-GNU ld that we prefer.
7316 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7317 *GNU* | *'with BFD'*)
7318 test "$with_gnu_ld" != no && break
7321 test "$with_gnu_ld" != yes && break
7323 esac
7325 done
7326 IFS="$lt_save_ifs"
7327 else
7328 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7332 LD="$lt_cv_path_LD"
7333 if test -n "$LD"; then
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7335 $as_echo "$LD" >&6; }
7336 else
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7338 $as_echo "no" >&6; }
7340 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7342 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7343 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7344 $as_echo_n "(cached) " >&6
7345 else
7346 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7347 case `$LD -v 2>&1 </dev/null` in
7348 *GNU* | *'with BFD'*)
7349 lt_cv_prog_gnu_ld=yes
7352 lt_cv_prog_gnu_ld=no
7354 esac
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7357 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7358 with_gnu_ld=$lt_cv_prog_gnu_ld
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7369 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7370 if test "${lt_cv_path_NM+set}" = set; then :
7371 $as_echo_n "(cached) " >&6
7372 else
7373 if test -n "$NM"; then
7374 # Let the user override the test.
7375 lt_cv_path_NM="$NM"
7376 else
7377 lt_nm_to_check="${ac_tool_prefix}nm"
7378 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7379 lt_nm_to_check="$lt_nm_to_check nm"
7381 for lt_tmp_nm in $lt_nm_to_check; do
7382 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7383 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7384 IFS="$lt_save_ifs"
7385 test -z "$ac_dir" && ac_dir=.
7386 tmp_nm="$ac_dir/$lt_tmp_nm"
7387 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7388 # Check to see if the nm accepts a BSD-compat flag.
7389 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7390 # nm: unknown option "B" ignored
7391 # Tru64's nm complains that /dev/null is an invalid object file
7392 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7393 */dev/null* | *'Invalid file or object type'*)
7394 lt_cv_path_NM="$tmp_nm -B"
7395 break
7398 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7399 */dev/null*)
7400 lt_cv_path_NM="$tmp_nm -p"
7401 break
7404 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7405 continue # so that we can try to find one that supports BSD flags
7407 esac
7409 esac
7411 done
7412 IFS="$lt_save_ifs"
7413 done
7414 : ${lt_cv_path_NM=no}
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7418 $as_echo "$lt_cv_path_NM" >&6; }
7419 if test "$lt_cv_path_NM" != "no"; then
7420 NM="$lt_cv_path_NM"
7421 else
7422 # Didn't find any BSD compatible name lister, look for dumpbin.
7423 if test -n "$DUMPBIN"; then :
7424 # Let the user override the test.
7425 else
7426 if test -n "$ac_tool_prefix"; then
7427 for ac_prog in dumpbin "link -dump"
7429 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7430 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7432 $as_echo_n "checking for $ac_word... " >&6; }
7433 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7434 $as_echo_n "(cached) " >&6
7435 else
7436 if test -n "$DUMPBIN"; then
7437 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7438 else
7439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440 for as_dir in $PATH
7442 IFS=$as_save_IFS
7443 test -z "$as_dir" && as_dir=.
7444 for ac_exec_ext in '' $ac_executable_extensions; do
7445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7446 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7448 break 2
7450 done
7451 done
7452 IFS=$as_save_IFS
7456 DUMPBIN=$ac_cv_prog_DUMPBIN
7457 if test -n "$DUMPBIN"; then
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7459 $as_echo "$DUMPBIN" >&6; }
7460 else
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462 $as_echo "no" >&6; }
7466 test -n "$DUMPBIN" && break
7467 done
7469 if test -z "$DUMPBIN"; then
7470 ac_ct_DUMPBIN=$DUMPBIN
7471 for ac_prog in dumpbin "link -dump"
7473 # Extract the first word of "$ac_prog", so it can be a program name with args.
7474 set dummy $ac_prog; ac_word=$2
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7476 $as_echo_n "checking for $ac_word... " >&6; }
7477 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7478 $as_echo_n "(cached) " >&6
7479 else
7480 if test -n "$ac_ct_DUMPBIN"; then
7481 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7482 else
7483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484 for as_dir in $PATH
7486 IFS=$as_save_IFS
7487 test -z "$as_dir" && as_dir=.
7488 for ac_exec_ext in '' $ac_executable_extensions; do
7489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7490 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7492 break 2
7494 done
7495 done
7496 IFS=$as_save_IFS
7500 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7501 if test -n "$ac_ct_DUMPBIN"; then
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7503 $as_echo "$ac_ct_DUMPBIN" >&6; }
7504 else
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7506 $as_echo "no" >&6; }
7510 test -n "$ac_ct_DUMPBIN" && break
7511 done
7513 if test "x$ac_ct_DUMPBIN" = x; then
7514 DUMPBIN=":"
7515 else
7516 case $cross_compiling:$ac_tool_warned in
7517 yes:)
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7519 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7520 ac_tool_warned=yes ;;
7521 esac
7522 DUMPBIN=$ac_ct_DUMPBIN
7526 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7527 *COFF*)
7528 DUMPBIN="$DUMPBIN -symbols"
7531 DUMPBIN=:
7533 esac
7536 if test "$DUMPBIN" != ":"; then
7537 NM="$DUMPBIN"
7540 test -z "$NM" && NM=nm
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7548 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7549 if test "${lt_cv_nm_interface+set}" = set; then :
7550 $as_echo_n "(cached) " >&6
7551 else
7552 lt_cv_nm_interface="BSD nm"
7553 echo "int some_variable = 0;" > conftest.$ac_ext
7554 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7555 (eval "$ac_compile" 2>conftest.err)
7556 cat conftest.err >&5
7557 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7558 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7559 cat conftest.err >&5
7560 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7561 cat conftest.out >&5
7562 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7563 lt_cv_nm_interface="MS dumpbin"
7565 rm -f conftest*
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7568 $as_echo "$lt_cv_nm_interface" >&6; }
7570 # find the maximum length of command line arguments
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7572 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7573 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7574 $as_echo_n "(cached) " >&6
7575 else
7577 teststring="ABCD"
7579 case $build_os in
7580 msdosdjgpp*)
7581 # On DJGPP, this test can blow up pretty badly due to problems in libc
7582 # (any single argument exceeding 2000 bytes causes a buffer overrun
7583 # during glob expansion). Even if it were fixed, the result of this
7584 # check would be larger than it should be.
7585 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7588 gnu*)
7589 # Under GNU Hurd, this test is not required because there is
7590 # no limit to the length of command line arguments.
7591 # Libtool will interpret -1 as no limit whatsoever
7592 lt_cv_sys_max_cmd_len=-1;
7595 cygwin* | mingw* | cegcc*)
7596 # On Win9x/ME, this test blows up -- it succeeds, but takes
7597 # about 5 minutes as the teststring grows exponentially.
7598 # Worse, since 9x/ME are not pre-emptively multitasking,
7599 # you end up with a "frozen" computer, even though with patience
7600 # the test eventually succeeds (with a max line length of 256k).
7601 # Instead, let's just punt: use the minimum linelength reported by
7602 # all of the supported platforms: 8192 (on NT/2K/XP).
7603 lt_cv_sys_max_cmd_len=8192;
7606 mint*)
7607 # On MiNT this can take a long time and run out of memory.
7608 lt_cv_sys_max_cmd_len=8192;
7611 amigaos*)
7612 # On AmigaOS with pdksh, this test takes hours, literally.
7613 # So we just punt and use a minimum line length of 8192.
7614 lt_cv_sys_max_cmd_len=8192;
7617 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7618 # This has been around since 386BSD, at least. Likely further.
7619 if test -x /sbin/sysctl; then
7620 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7621 elif test -x /usr/sbin/sysctl; then
7622 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7623 else
7624 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7626 # And add a safety zone
7627 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7628 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7631 interix*)
7632 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7633 lt_cv_sys_max_cmd_len=196608
7636 osf*)
7637 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7638 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7639 # nice to cause kernel panics so lets avoid the loop below.
7640 # First set a reasonable default.
7641 lt_cv_sys_max_cmd_len=16384
7643 if test -x /sbin/sysconfig; then
7644 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7645 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7646 esac
7649 sco3.2v5*)
7650 lt_cv_sys_max_cmd_len=102400
7652 sysv5* | sco5v6* | sysv4.2uw2*)
7653 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7654 if test -n "$kargmax"; then
7655 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7656 else
7657 lt_cv_sys_max_cmd_len=32768
7661 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7662 if test -n "$lt_cv_sys_max_cmd_len"; then
7663 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7664 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7665 else
7666 # Make teststring a little bigger before we do anything with it.
7667 # a 1K string should be a reasonable start.
7668 for i in 1 2 3 4 5 6 7 8 ; do
7669 teststring=$teststring$teststring
7670 done
7671 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7672 # If test is not a shell built-in, we'll probably end up computing a
7673 # maximum length that is only half of the actual maximum length, but
7674 # we can't tell.
7675 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7676 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7677 test $i != 17 # 1/2 MB should be enough
7679 i=`expr $i + 1`
7680 teststring=$teststring$teststring
7681 done
7682 # Only check the string length outside the loop.
7683 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7684 teststring=
7685 # Add a significant safety factor because C++ compilers can tack on
7686 # massive amounts of additional arguments before passing them to the
7687 # linker. It appears as though 1/2 is a usable value.
7688 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7691 esac
7695 if test -n $lt_cv_sys_max_cmd_len ; then
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7697 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7698 else
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7700 $as_echo "none" >&6; }
7702 max_cmd_len=$lt_cv_sys_max_cmd_len
7709 : ${CP="cp -f"}
7710 : ${MV="mv -f"}
7711 : ${RM="rm -f"}
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7714 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7715 # Try some XSI features
7716 xsi_shell=no
7717 ( _lt_dummy="a/b/c"
7718 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7719 = c,a/b,, \
7720 && eval 'test $(( 1 + 1 )) -eq 2 \
7721 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7722 && xsi_shell=yes
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7724 $as_echo "$xsi_shell" >&6; }
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7728 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7729 lt_shell_append=no
7730 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7731 >/dev/null 2>&1 \
7732 && lt_shell_append=yes
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7734 $as_echo "$lt_shell_append" >&6; }
7737 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7738 lt_unset=unset
7739 else
7740 lt_unset=false
7747 # test EBCDIC or ASCII
7748 case `echo X|tr X '\101'` in
7749 A) # ASCII based system
7750 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7751 lt_SP2NL='tr \040 \012'
7752 lt_NL2SP='tr \015\012 \040\040'
7754 *) # EBCDIC based system
7755 lt_SP2NL='tr \100 \n'
7756 lt_NL2SP='tr \r\n \100\100'
7758 esac
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7769 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7770 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7771 $as_echo_n "(cached) " >&6
7772 else
7773 lt_cv_ld_reload_flag='-r'
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7776 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7777 reload_flag=$lt_cv_ld_reload_flag
7778 case $reload_flag in
7779 "" | " "*) ;;
7780 *) reload_flag=" $reload_flag" ;;
7781 esac
7782 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7783 case $host_os in
7784 darwin*)
7785 if test "$GCC" = yes; then
7786 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7787 else
7788 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7791 esac
7801 if test -n "$ac_tool_prefix"; then
7802 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7803 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7805 $as_echo_n "checking for $ac_word... " >&6; }
7806 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7807 $as_echo_n "(cached) " >&6
7808 else
7809 if test -n "$OBJDUMP"; then
7810 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7811 else
7812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813 for as_dir in $PATH
7815 IFS=$as_save_IFS
7816 test -z "$as_dir" && as_dir=.
7817 for ac_exec_ext in '' $ac_executable_extensions; do
7818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7819 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7821 break 2
7823 done
7824 done
7825 IFS=$as_save_IFS
7829 OBJDUMP=$ac_cv_prog_OBJDUMP
7830 if test -n "$OBJDUMP"; then
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7832 $as_echo "$OBJDUMP" >&6; }
7833 else
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7835 $as_echo "no" >&6; }
7840 if test -z "$ac_cv_prog_OBJDUMP"; then
7841 ac_ct_OBJDUMP=$OBJDUMP
7842 # Extract the first word of "objdump", so it can be a program name with args.
7843 set dummy objdump; ac_word=$2
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7845 $as_echo_n "checking for $ac_word... " >&6; }
7846 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7847 $as_echo_n "(cached) " >&6
7848 else
7849 if test -n "$ac_ct_OBJDUMP"; then
7850 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7851 else
7852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7853 for as_dir in $PATH
7855 IFS=$as_save_IFS
7856 test -z "$as_dir" && as_dir=.
7857 for ac_exec_ext in '' $ac_executable_extensions; do
7858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7859 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7861 break 2
7863 done
7864 done
7865 IFS=$as_save_IFS
7869 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7870 if test -n "$ac_ct_OBJDUMP"; then
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7872 $as_echo "$ac_ct_OBJDUMP" >&6; }
7873 else
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7875 $as_echo "no" >&6; }
7878 if test "x$ac_ct_OBJDUMP" = x; then
7879 OBJDUMP="false"
7880 else
7881 case $cross_compiling:$ac_tool_warned in
7882 yes:)
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7885 ac_tool_warned=yes ;;
7886 esac
7887 OBJDUMP=$ac_ct_OBJDUMP
7889 else
7890 OBJDUMP="$ac_cv_prog_OBJDUMP"
7893 test -z "$OBJDUMP" && OBJDUMP=objdump
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7904 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7905 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7906 $as_echo_n "(cached) " >&6
7907 else
7908 lt_cv_file_magic_cmd='$MAGIC_CMD'
7909 lt_cv_file_magic_test_file=
7910 lt_cv_deplibs_check_method='unknown'
7911 # Need to set the preceding variable on all platforms that support
7912 # interlibrary dependencies.
7913 # 'none' -- dependencies not supported.
7914 # `unknown' -- same as none, but documents that we really don't know.
7915 # 'pass_all' -- all dependencies passed with no checks.
7916 # 'test_compile' -- check by making test program.
7917 # 'file_magic [[regex]]' -- check by looking for files in library path
7918 # which responds to the $file_magic_cmd with a given extended regex.
7919 # If you have `file' or equivalent on your system and you're not sure
7920 # whether `pass_all' will *always* work, you probably want this one.
7922 case $host_os in
7923 aix[4-9]*)
7924 lt_cv_deplibs_check_method=pass_all
7927 beos*)
7928 lt_cv_deplibs_check_method=pass_all
7931 bsdi[45]*)
7932 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7933 lt_cv_file_magic_cmd='/usr/bin/file -L'
7934 lt_cv_file_magic_test_file=/shlib/libc.so
7937 cygwin*)
7938 # func_win32_libid is a shell function defined in ltmain.sh
7939 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7940 lt_cv_file_magic_cmd='func_win32_libid'
7943 mingw* | pw32*)
7944 # Base MSYS/MinGW do not provide the 'file' command needed by
7945 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7946 # unless we find 'file', for example because we are cross-compiling.
7947 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7948 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7949 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7950 lt_cv_file_magic_cmd='func_win32_libid'
7951 else
7952 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7953 lt_cv_file_magic_cmd='$OBJDUMP -f'
7957 cegcc*)
7958 # use the weaker test based on 'objdump'. See mingw*.
7959 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7960 lt_cv_file_magic_cmd='$OBJDUMP -f'
7963 darwin* | rhapsody*)
7964 lt_cv_deplibs_check_method=pass_all
7967 freebsd* | dragonfly*)
7968 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7969 case $host_cpu in
7970 i*86 )
7971 # Not sure whether the presence of OpenBSD here was a mistake.
7972 # Let's accept both of them until this is cleared up.
7973 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7974 lt_cv_file_magic_cmd=/usr/bin/file
7975 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7977 esac
7978 else
7979 lt_cv_deplibs_check_method=pass_all
7983 gnu*)
7984 lt_cv_deplibs_check_method=pass_all
7987 haiku*)
7988 lt_cv_deplibs_check_method=pass_all
7991 hpux10.20* | hpux11*)
7992 lt_cv_file_magic_cmd=/usr/bin/file
7993 case $host_cpu in
7994 ia64*)
7995 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7996 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7998 hppa*64*)
7999 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]'
8000 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8003 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8004 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8006 esac
8009 interix[3-9]*)
8010 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8011 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8014 irix5* | irix6* | nonstopux*)
8015 case $LD in
8016 *-32|*"-32 ") libmagic=32-bit;;
8017 *-n32|*"-n32 ") libmagic=N32;;
8018 *-64|*"-64 ") libmagic=64-bit;;
8019 *) libmagic=never-match;;
8020 esac
8021 lt_cv_deplibs_check_method=pass_all
8024 # This must be Linux ELF.
8025 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8026 lt_cv_deplibs_check_method=pass_all
8029 netbsd*)
8030 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8031 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8032 else
8033 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8037 newos6*)
8038 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8039 lt_cv_file_magic_cmd=/usr/bin/file
8040 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8043 *nto* | *qnx*)
8044 lt_cv_deplibs_check_method=pass_all
8047 openbsd*)
8048 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8049 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8050 else
8051 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8055 osf3* | osf4* | osf5*)
8056 lt_cv_deplibs_check_method=pass_all
8059 rdos*)
8060 lt_cv_deplibs_check_method=pass_all
8063 solaris*)
8064 lt_cv_deplibs_check_method=pass_all
8067 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8068 lt_cv_deplibs_check_method=pass_all
8071 sysv4 | sysv4.3*)
8072 case $host_vendor in
8073 motorola)
8074 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]'
8075 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8077 ncr)
8078 lt_cv_deplibs_check_method=pass_all
8080 sequent)
8081 lt_cv_file_magic_cmd='/bin/file'
8082 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8084 sni)
8085 lt_cv_file_magic_cmd='/bin/file'
8086 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8087 lt_cv_file_magic_test_file=/lib/libc.so
8089 siemens)
8090 lt_cv_deplibs_check_method=pass_all
8093 lt_cv_deplibs_check_method=pass_all
8095 esac
8098 tpf*)
8099 lt_cv_deplibs_check_method=pass_all
8101 esac
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8105 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8106 file_magic_cmd=$lt_cv_file_magic_cmd
8107 deplibs_check_method=$lt_cv_deplibs_check_method
8108 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8121 if test -n "$ac_tool_prefix"; then
8122 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8123 set dummy ${ac_tool_prefix}ar; ac_word=$2
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8125 $as_echo_n "checking for $ac_word... " >&6; }
8126 if test "${ac_cv_prog_AR+set}" = set; then :
8127 $as_echo_n "(cached) " >&6
8128 else
8129 if test -n "$AR"; then
8130 ac_cv_prog_AR="$AR" # Let the user override the test.
8131 else
8132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8133 for as_dir in $PATH
8135 IFS=$as_save_IFS
8136 test -z "$as_dir" && as_dir=.
8137 for ac_exec_ext in '' $ac_executable_extensions; do
8138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8139 ac_cv_prog_AR="${ac_tool_prefix}ar"
8140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8141 break 2
8143 done
8144 done
8145 IFS=$as_save_IFS
8149 AR=$ac_cv_prog_AR
8150 if test -n "$AR"; then
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8152 $as_echo "$AR" >&6; }
8153 else
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8155 $as_echo "no" >&6; }
8160 if test -z "$ac_cv_prog_AR"; then
8161 ac_ct_AR=$AR
8162 # Extract the first word of "ar", so it can be a program name with args.
8163 set dummy ar; ac_word=$2
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8165 $as_echo_n "checking for $ac_word... " >&6; }
8166 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8167 $as_echo_n "(cached) " >&6
8168 else
8169 if test -n "$ac_ct_AR"; then
8170 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8171 else
8172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8173 for as_dir in $PATH
8175 IFS=$as_save_IFS
8176 test -z "$as_dir" && as_dir=.
8177 for ac_exec_ext in '' $ac_executable_extensions; do
8178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8179 ac_cv_prog_ac_ct_AR="ar"
8180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8181 break 2
8183 done
8184 done
8185 IFS=$as_save_IFS
8189 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8190 if test -n "$ac_ct_AR"; then
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8192 $as_echo "$ac_ct_AR" >&6; }
8193 else
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8195 $as_echo "no" >&6; }
8198 if test "x$ac_ct_AR" = x; then
8199 AR="false"
8200 else
8201 case $cross_compiling:$ac_tool_warned in
8202 yes:)
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8205 ac_tool_warned=yes ;;
8206 esac
8207 AR=$ac_ct_AR
8209 else
8210 AR="$ac_cv_prog_AR"
8213 test -z "$AR" && AR=ar
8214 test -z "$AR_FLAGS" && AR_FLAGS=cru
8226 if test -n "$ac_tool_prefix"; then
8227 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8228 set dummy ${ac_tool_prefix}strip; ac_word=$2
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8230 $as_echo_n "checking for $ac_word... " >&6; }
8231 if test "${ac_cv_prog_STRIP+set}" = set; then :
8232 $as_echo_n "(cached) " >&6
8233 else
8234 if test -n "$STRIP"; then
8235 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8236 else
8237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8238 for as_dir in $PATH
8240 IFS=$as_save_IFS
8241 test -z "$as_dir" && as_dir=.
8242 for ac_exec_ext in '' $ac_executable_extensions; do
8243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8244 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8246 break 2
8248 done
8249 done
8250 IFS=$as_save_IFS
8254 STRIP=$ac_cv_prog_STRIP
8255 if test -n "$STRIP"; then
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8257 $as_echo "$STRIP" >&6; }
8258 else
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8260 $as_echo "no" >&6; }
8265 if test -z "$ac_cv_prog_STRIP"; then
8266 ac_ct_STRIP=$STRIP
8267 # Extract the first word of "strip", so it can be a program name with args.
8268 set dummy strip; ac_word=$2
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8270 $as_echo_n "checking for $ac_word... " >&6; }
8271 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8272 $as_echo_n "(cached) " >&6
8273 else
8274 if test -n "$ac_ct_STRIP"; then
8275 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8276 else
8277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278 for as_dir in $PATH
8280 IFS=$as_save_IFS
8281 test -z "$as_dir" && as_dir=.
8282 for ac_exec_ext in '' $ac_executable_extensions; do
8283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8284 ac_cv_prog_ac_ct_STRIP="strip"
8285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8286 break 2
8288 done
8289 done
8290 IFS=$as_save_IFS
8294 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8295 if test -n "$ac_ct_STRIP"; then
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8297 $as_echo "$ac_ct_STRIP" >&6; }
8298 else
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8300 $as_echo "no" >&6; }
8303 if test "x$ac_ct_STRIP" = x; then
8304 STRIP=":"
8305 else
8306 case $cross_compiling:$ac_tool_warned in
8307 yes:)
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8310 ac_tool_warned=yes ;;
8311 esac
8312 STRIP=$ac_ct_STRIP
8314 else
8315 STRIP="$ac_cv_prog_STRIP"
8318 test -z "$STRIP" && STRIP=:
8325 if test -n "$ac_tool_prefix"; then
8326 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8327 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8329 $as_echo_n "checking for $ac_word... " >&6; }
8330 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8331 $as_echo_n "(cached) " >&6
8332 else
8333 if test -n "$RANLIB"; then
8334 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8335 else
8336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8337 for as_dir in $PATH
8339 IFS=$as_save_IFS
8340 test -z "$as_dir" && as_dir=.
8341 for ac_exec_ext in '' $ac_executable_extensions; do
8342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8343 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8345 break 2
8347 done
8348 done
8349 IFS=$as_save_IFS
8353 RANLIB=$ac_cv_prog_RANLIB
8354 if test -n "$RANLIB"; then
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8356 $as_echo "$RANLIB" >&6; }
8357 else
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8359 $as_echo "no" >&6; }
8364 if test -z "$ac_cv_prog_RANLIB"; then
8365 ac_ct_RANLIB=$RANLIB
8366 # Extract the first word of "ranlib", so it can be a program name with args.
8367 set dummy ranlib; ac_word=$2
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8369 $as_echo_n "checking for $ac_word... " >&6; }
8370 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8371 $as_echo_n "(cached) " >&6
8372 else
8373 if test -n "$ac_ct_RANLIB"; then
8374 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8375 else
8376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8377 for as_dir in $PATH
8379 IFS=$as_save_IFS
8380 test -z "$as_dir" && as_dir=.
8381 for ac_exec_ext in '' $ac_executable_extensions; do
8382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8383 ac_cv_prog_ac_ct_RANLIB="ranlib"
8384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8385 break 2
8387 done
8388 done
8389 IFS=$as_save_IFS
8393 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8394 if test -n "$ac_ct_RANLIB"; then
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8396 $as_echo "$ac_ct_RANLIB" >&6; }
8397 else
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399 $as_echo "no" >&6; }
8402 if test "x$ac_ct_RANLIB" = x; then
8403 RANLIB=":"
8404 else
8405 case $cross_compiling:$ac_tool_warned in
8406 yes:)
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8409 ac_tool_warned=yes ;;
8410 esac
8411 RANLIB=$ac_ct_RANLIB
8413 else
8414 RANLIB="$ac_cv_prog_RANLIB"
8417 test -z "$RANLIB" && RANLIB=:
8424 # Determine commands to create old-style static archives.
8425 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8426 old_postinstall_cmds='chmod 644 $oldlib'
8427 old_postuninstall_cmds=
8429 if test -n "$RANLIB"; then
8430 case $host_os in
8431 openbsd*)
8432 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8435 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8437 esac
8438 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8441 case $host_os in
8442 darwin*)
8443 lock_old_archive_extraction=yes ;;
8445 lock_old_archive_extraction=no ;;
8446 esac
8486 # If no C compiler was specified, use CC.
8487 LTCC=${LTCC-"$CC"}
8489 # If no C compiler flags were specified, use CFLAGS.
8490 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8492 # Allow CC to be a program name with arguments.
8493 compiler=$CC
8496 # Check for command to grab the raw symbol name followed by C symbol from nm.
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8498 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8499 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8500 $as_echo_n "(cached) " >&6
8501 else
8503 # These are sane defaults that work on at least a few old systems.
8504 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8506 # Character class describing NM global symbol codes.
8507 symcode='[BCDEGRST]'
8509 # Regexp to match symbols that can be accessed directly from C.
8510 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8512 # Define system-specific variables.
8513 case $host_os in
8514 aix*)
8515 symcode='[BCDT]'
8517 cygwin* | mingw* | pw32* | cegcc*)
8518 symcode='[ABCDGISTW]'
8520 hpux*)
8521 if test "$host_cpu" = ia64; then
8522 symcode='[ABCDEGRST]'
8525 irix* | nonstopux*)
8526 symcode='[BCDEGRST]'
8528 osf*)
8529 symcode='[BCDEGQRST]'
8531 solaris*)
8532 symcode='[BDRT]'
8534 sco3.2v5*)
8535 symcode='[DT]'
8537 sysv4.2uw2*)
8538 symcode='[DT]'
8540 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8541 symcode='[ABDT]'
8543 sysv4)
8544 symcode='[DFNSTU]'
8546 esac
8548 # If we're using GNU nm, then use its standard symbol codes.
8549 case `$NM -V 2>&1` in
8550 *GNU* | *'with BFD'*)
8551 symcode='[ABCDGIRSTW]' ;;
8552 esac
8554 # Transform an extracted symbol line into a proper C declaration.
8555 # Some systems (esp. on ia64) link data and code symbols differently,
8556 # so use this general approach.
8557 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8559 # Transform an extracted symbol line into symbol name and symbol address
8560 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8561 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'"
8563 # Handle CRLF in mingw tool chain
8564 opt_cr=
8565 case $build_os in
8566 mingw*)
8567 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8569 esac
8571 # Try without a prefix underscore, then with it.
8572 for ac_symprfx in "" "_"; do
8574 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8575 symxfrm="\\1 $ac_symprfx\\2 \\2"
8577 # Write the raw and C identifiers.
8578 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8579 # Fake it for dumpbin and say T for any non-static function
8580 # and D for any global variable.
8581 # Also find C++ and __fastcall symbols from MSVC++,
8582 # which start with @ or ?.
8583 lt_cv_sys_global_symbol_pipe="$AWK '"\
8584 " {last_section=section; section=\$ 3};"\
8585 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8586 " \$ 0!~/External *\|/{next};"\
8587 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8588 " {if(hide[section]) next};"\
8589 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8590 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8591 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8592 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8593 " ' prfx=^$ac_symprfx"
8594 else
8595 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8598 # Check to see that the pipe works correctly.
8599 pipe_works=no
8601 rm -f conftest*
8602 cat > conftest.$ac_ext <<_LT_EOF
8603 #ifdef __cplusplus
8604 extern "C" {
8605 #endif
8606 char nm_test_var;
8607 void nm_test_func(void);
8608 void nm_test_func(void){}
8609 #ifdef __cplusplus
8611 #endif
8612 int main(){nm_test_var='a';nm_test_func();return(0);}
8613 _LT_EOF
8615 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8616 (eval $ac_compile) 2>&5
8617 ac_status=$?
8618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8619 test $ac_status = 0; }; then
8620 # Now try to grab the symbols.
8621 nlist=conftest.nm
8622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8623 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8624 ac_status=$?
8625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8626 test $ac_status = 0; } && test -s "$nlist"; then
8627 # Try sorting and uniquifying the output.
8628 if sort "$nlist" | uniq > "$nlist"T; then
8629 mv -f "$nlist"T "$nlist"
8630 else
8631 rm -f "$nlist"T
8634 # Make sure that we snagged all the symbols we need.
8635 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8636 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8637 cat <<_LT_EOF > conftest.$ac_ext
8638 #ifdef __cplusplus
8639 extern "C" {
8640 #endif
8642 _LT_EOF
8643 # Now generate the symbol file.
8644 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8646 cat <<_LT_EOF >> conftest.$ac_ext
8648 /* The mapping between symbol names and symbols. */
8649 const struct {
8650 const char *name;
8651 void *address;
8653 lt__PROGRAM__LTX_preloaded_symbols[] =
8655 { "@PROGRAM@", (void *) 0 },
8656 _LT_EOF
8657 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8658 cat <<\_LT_EOF >> conftest.$ac_ext
8659 {0, (void *) 0}
8662 /* This works around a problem in FreeBSD linker */
8663 #ifdef FREEBSD_WORKAROUND
8664 static const void *lt_preloaded_setup() {
8665 return lt__PROGRAM__LTX_preloaded_symbols;
8667 #endif
8669 #ifdef __cplusplus
8671 #endif
8672 _LT_EOF
8673 # Now try linking the two files.
8674 mv conftest.$ac_objext conftstm.$ac_objext
8675 lt_save_LIBS="$LIBS"
8676 lt_save_CFLAGS="$CFLAGS"
8677 LIBS="conftstm.$ac_objext"
8678 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8679 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8680 (eval $ac_link) 2>&5
8681 ac_status=$?
8682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8683 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8684 pipe_works=yes
8686 LIBS="$lt_save_LIBS"
8687 CFLAGS="$lt_save_CFLAGS"
8688 else
8689 echo "cannot find nm_test_func in $nlist" >&5
8691 else
8692 echo "cannot find nm_test_var in $nlist" >&5
8694 else
8695 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8697 else
8698 echo "$progname: failed program was:" >&5
8699 cat conftest.$ac_ext >&5
8701 rm -rf conftest* conftst*
8703 # Do not use the global_symbol_pipe unless it works.
8704 if test "$pipe_works" = yes; then
8705 break
8706 else
8707 lt_cv_sys_global_symbol_pipe=
8709 done
8713 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8714 lt_cv_sys_global_symbol_to_cdecl=
8716 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8718 $as_echo "failed" >&6; }
8719 else
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8721 $as_echo "ok" >&6; }
8746 # Check whether --enable-libtool-lock was given.
8747 if test "${enable_libtool_lock+set}" = set; then :
8748 enableval=$enable_libtool_lock;
8751 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8753 # Some flags need to be propagated to the compiler or linker for good
8754 # libtool support.
8755 case $host in
8756 ia64-*-hpux*)
8757 # Find out which ABI we are using.
8758 echo 'int i;' > conftest.$ac_ext
8759 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8760 (eval $ac_compile) 2>&5
8761 ac_status=$?
8762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8763 test $ac_status = 0; }; then
8764 case `/usr/bin/file conftest.$ac_objext` in
8765 *ELF-32*)
8766 HPUX_IA64_MODE="32"
8768 *ELF-64*)
8769 HPUX_IA64_MODE="64"
8771 esac
8773 rm -rf conftest*
8775 *-*-irix6*)
8776 # Find out which ABI we are using.
8777 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8778 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8779 (eval $ac_compile) 2>&5
8780 ac_status=$?
8781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8782 test $ac_status = 0; }; then
8783 if test "$lt_cv_prog_gnu_ld" = yes; then
8784 case `/usr/bin/file conftest.$ac_objext` in
8785 *32-bit*)
8786 LD="${LD-ld} -melf32bsmip"
8788 *N32*)
8789 LD="${LD-ld} -melf32bmipn32"
8791 *64-bit*)
8792 LD="${LD-ld} -melf64bmip"
8794 esac
8795 else
8796 case `/usr/bin/file conftest.$ac_objext` in
8797 *32-bit*)
8798 LD="${LD-ld} -32"
8800 *N32*)
8801 LD="${LD-ld} -n32"
8803 *64-bit*)
8804 LD="${LD-ld} -64"
8806 esac
8809 rm -rf conftest*
8812 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8813 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8814 # Find out which ABI we are using.
8815 echo 'int i;' > conftest.$ac_ext
8816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8817 (eval $ac_compile) 2>&5
8818 ac_status=$?
8819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8820 test $ac_status = 0; }; then
8821 case `/usr/bin/file conftest.o` in
8822 *32-bit*)
8823 case $host in
8824 x86_64-*kfreebsd*-gnu)
8825 LD="${LD-ld} -m elf_i386_fbsd"
8827 x86_64-*linux*)
8828 LD="${LD-ld} -m elf_i386"
8830 ppc64-*linux*|powerpc64-*linux*)
8831 LD="${LD-ld} -m elf32ppclinux"
8833 s390x-*linux*)
8834 LD="${LD-ld} -m elf_s390"
8836 sparc64-*linux*)
8837 LD="${LD-ld} -m elf32_sparc"
8839 esac
8841 *64-bit*)
8842 case $host in
8843 x86_64-*kfreebsd*-gnu)
8844 LD="${LD-ld} -m elf_x86_64_fbsd"
8846 x86_64-*linux*)
8847 LD="${LD-ld} -m elf_x86_64"
8849 ppc*-*linux*|powerpc*-*linux*)
8850 LD="${LD-ld} -m elf64ppc"
8852 s390*-*linux*|s390*-*tpf*)
8853 LD="${LD-ld} -m elf64_s390"
8855 sparc*-*linux*)
8856 LD="${LD-ld} -m elf64_sparc"
8858 esac
8860 esac
8862 rm -rf conftest*
8865 *-*-sco3.2v5*)
8866 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8867 SAVE_CFLAGS="$CFLAGS"
8868 CFLAGS="$CFLAGS -belf"
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8870 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8871 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8872 $as_echo_n "(cached) " >&6
8873 else
8874 ac_ext=c
8875 ac_cpp='$CPP $CPPFLAGS'
8876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8880 if test x$gcc_no_link = xyes; then
8881 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8884 /* end confdefs.h. */
8887 main ()
8891 return 0;
8893 _ACEOF
8894 if ac_fn_c_try_link "$LINENO"; then :
8895 lt_cv_cc_needs_belf=yes
8896 else
8897 lt_cv_cc_needs_belf=no
8899 rm -f core conftest.err conftest.$ac_objext \
8900 conftest$ac_exeext conftest.$ac_ext
8901 ac_ext=c
8902 ac_cpp='$CPP $CPPFLAGS'
8903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8909 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8910 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8911 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8912 CFLAGS="$SAVE_CFLAGS"
8915 sparc*-*solaris*)
8916 # Find out which ABI we are using.
8917 echo 'int i;' > conftest.$ac_ext
8918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8919 (eval $ac_compile) 2>&5
8920 ac_status=$?
8921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8922 test $ac_status = 0; }; then
8923 case `/usr/bin/file conftest.o` in
8924 *64-bit*)
8925 case $lt_cv_prog_gnu_ld in
8926 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8928 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8929 LD="${LD-ld} -64"
8932 esac
8934 esac
8936 rm -rf conftest*
8938 esac
8940 need_locks="$enable_libtool_lock"
8943 case $host_os in
8944 rhapsody* | darwin*)
8945 if test -n "$ac_tool_prefix"; then
8946 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8947 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8949 $as_echo_n "checking for $ac_word... " >&6; }
8950 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8951 $as_echo_n "(cached) " >&6
8952 else
8953 if test -n "$DSYMUTIL"; then
8954 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8955 else
8956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8957 for as_dir in $PATH
8959 IFS=$as_save_IFS
8960 test -z "$as_dir" && as_dir=.
8961 for ac_exec_ext in '' $ac_executable_extensions; do
8962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8963 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8965 break 2
8967 done
8968 done
8969 IFS=$as_save_IFS
8973 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8974 if test -n "$DSYMUTIL"; then
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8976 $as_echo "$DSYMUTIL" >&6; }
8977 else
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8979 $as_echo "no" >&6; }
8984 if test -z "$ac_cv_prog_DSYMUTIL"; then
8985 ac_ct_DSYMUTIL=$DSYMUTIL
8986 # Extract the first word of "dsymutil", so it can be a program name with args.
8987 set dummy dsymutil; ac_word=$2
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8989 $as_echo_n "checking for $ac_word... " >&6; }
8990 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8991 $as_echo_n "(cached) " >&6
8992 else
8993 if test -n "$ac_ct_DSYMUTIL"; then
8994 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8995 else
8996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8997 for as_dir in $PATH
8999 IFS=$as_save_IFS
9000 test -z "$as_dir" && as_dir=.
9001 for ac_exec_ext in '' $ac_executable_extensions; do
9002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9003 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9005 break 2
9007 done
9008 done
9009 IFS=$as_save_IFS
9013 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9014 if test -n "$ac_ct_DSYMUTIL"; then
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9016 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9017 else
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9019 $as_echo "no" >&6; }
9022 if test "x$ac_ct_DSYMUTIL" = x; then
9023 DSYMUTIL=":"
9024 else
9025 case $cross_compiling:$ac_tool_warned in
9026 yes:)
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9029 ac_tool_warned=yes ;;
9030 esac
9031 DSYMUTIL=$ac_ct_DSYMUTIL
9033 else
9034 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9037 if test -n "$ac_tool_prefix"; then
9038 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9039 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9041 $as_echo_n "checking for $ac_word... " >&6; }
9042 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
9043 $as_echo_n "(cached) " >&6
9044 else
9045 if test -n "$NMEDIT"; then
9046 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9047 else
9048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9049 for as_dir in $PATH
9051 IFS=$as_save_IFS
9052 test -z "$as_dir" && as_dir=.
9053 for ac_exec_ext in '' $ac_executable_extensions; do
9054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9055 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9057 break 2
9059 done
9060 done
9061 IFS=$as_save_IFS
9065 NMEDIT=$ac_cv_prog_NMEDIT
9066 if test -n "$NMEDIT"; then
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9068 $as_echo "$NMEDIT" >&6; }
9069 else
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9071 $as_echo "no" >&6; }
9076 if test -z "$ac_cv_prog_NMEDIT"; then
9077 ac_ct_NMEDIT=$NMEDIT
9078 # Extract the first word of "nmedit", so it can be a program name with args.
9079 set dummy nmedit; ac_word=$2
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9081 $as_echo_n "checking for $ac_word... " >&6; }
9082 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9083 $as_echo_n "(cached) " >&6
9084 else
9085 if test -n "$ac_ct_NMEDIT"; then
9086 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9087 else
9088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9089 for as_dir in $PATH
9091 IFS=$as_save_IFS
9092 test -z "$as_dir" && as_dir=.
9093 for ac_exec_ext in '' $ac_executable_extensions; do
9094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9095 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9097 break 2
9099 done
9100 done
9101 IFS=$as_save_IFS
9105 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9106 if test -n "$ac_ct_NMEDIT"; then
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9108 $as_echo "$ac_ct_NMEDIT" >&6; }
9109 else
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9111 $as_echo "no" >&6; }
9114 if test "x$ac_ct_NMEDIT" = x; then
9115 NMEDIT=":"
9116 else
9117 case $cross_compiling:$ac_tool_warned in
9118 yes:)
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9121 ac_tool_warned=yes ;;
9122 esac
9123 NMEDIT=$ac_ct_NMEDIT
9125 else
9126 NMEDIT="$ac_cv_prog_NMEDIT"
9129 if test -n "$ac_tool_prefix"; then
9130 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9131 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9133 $as_echo_n "checking for $ac_word... " >&6; }
9134 if test "${ac_cv_prog_LIPO+set}" = set; then :
9135 $as_echo_n "(cached) " >&6
9136 else
9137 if test -n "$LIPO"; then
9138 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9139 else
9140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9141 for as_dir in $PATH
9143 IFS=$as_save_IFS
9144 test -z "$as_dir" && as_dir=.
9145 for ac_exec_ext in '' $ac_executable_extensions; do
9146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9147 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9149 break 2
9151 done
9152 done
9153 IFS=$as_save_IFS
9157 LIPO=$ac_cv_prog_LIPO
9158 if test -n "$LIPO"; then
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9160 $as_echo "$LIPO" >&6; }
9161 else
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9163 $as_echo "no" >&6; }
9168 if test -z "$ac_cv_prog_LIPO"; then
9169 ac_ct_LIPO=$LIPO
9170 # Extract the first word of "lipo", so it can be a program name with args.
9171 set dummy lipo; ac_word=$2
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9173 $as_echo_n "checking for $ac_word... " >&6; }
9174 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9175 $as_echo_n "(cached) " >&6
9176 else
9177 if test -n "$ac_ct_LIPO"; then
9178 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9179 else
9180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9181 for as_dir in $PATH
9183 IFS=$as_save_IFS
9184 test -z "$as_dir" && as_dir=.
9185 for ac_exec_ext in '' $ac_executable_extensions; do
9186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9187 ac_cv_prog_ac_ct_LIPO="lipo"
9188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9189 break 2
9191 done
9192 done
9193 IFS=$as_save_IFS
9197 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9198 if test -n "$ac_ct_LIPO"; then
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9200 $as_echo "$ac_ct_LIPO" >&6; }
9201 else
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9203 $as_echo "no" >&6; }
9206 if test "x$ac_ct_LIPO" = x; then
9207 LIPO=":"
9208 else
9209 case $cross_compiling:$ac_tool_warned in
9210 yes:)
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9213 ac_tool_warned=yes ;;
9214 esac
9215 LIPO=$ac_ct_LIPO
9217 else
9218 LIPO="$ac_cv_prog_LIPO"
9221 if test -n "$ac_tool_prefix"; then
9222 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9223 set dummy ${ac_tool_prefix}otool; ac_word=$2
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9225 $as_echo_n "checking for $ac_word... " >&6; }
9226 if test "${ac_cv_prog_OTOOL+set}" = set; then :
9227 $as_echo_n "(cached) " >&6
9228 else
9229 if test -n "$OTOOL"; then
9230 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9231 else
9232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9233 for as_dir in $PATH
9235 IFS=$as_save_IFS
9236 test -z "$as_dir" && as_dir=.
9237 for ac_exec_ext in '' $ac_executable_extensions; do
9238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9239 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9241 break 2
9243 done
9244 done
9245 IFS=$as_save_IFS
9249 OTOOL=$ac_cv_prog_OTOOL
9250 if test -n "$OTOOL"; then
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9252 $as_echo "$OTOOL" >&6; }
9253 else
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9255 $as_echo "no" >&6; }
9260 if test -z "$ac_cv_prog_OTOOL"; then
9261 ac_ct_OTOOL=$OTOOL
9262 # Extract the first word of "otool", so it can be a program name with args.
9263 set dummy otool; ac_word=$2
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9265 $as_echo_n "checking for $ac_word... " >&6; }
9266 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9267 $as_echo_n "(cached) " >&6
9268 else
9269 if test -n "$ac_ct_OTOOL"; then
9270 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9271 else
9272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9273 for as_dir in $PATH
9275 IFS=$as_save_IFS
9276 test -z "$as_dir" && as_dir=.
9277 for ac_exec_ext in '' $ac_executable_extensions; do
9278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9279 ac_cv_prog_ac_ct_OTOOL="otool"
9280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9281 break 2
9283 done
9284 done
9285 IFS=$as_save_IFS
9289 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9290 if test -n "$ac_ct_OTOOL"; then
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9292 $as_echo "$ac_ct_OTOOL" >&6; }
9293 else
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9295 $as_echo "no" >&6; }
9298 if test "x$ac_ct_OTOOL" = x; then
9299 OTOOL=":"
9300 else
9301 case $cross_compiling:$ac_tool_warned in
9302 yes:)
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9305 ac_tool_warned=yes ;;
9306 esac
9307 OTOOL=$ac_ct_OTOOL
9309 else
9310 OTOOL="$ac_cv_prog_OTOOL"
9313 if test -n "$ac_tool_prefix"; then
9314 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9315 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9317 $as_echo_n "checking for $ac_word... " >&6; }
9318 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9319 $as_echo_n "(cached) " >&6
9320 else
9321 if test -n "$OTOOL64"; then
9322 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9323 else
9324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9325 for as_dir in $PATH
9327 IFS=$as_save_IFS
9328 test -z "$as_dir" && as_dir=.
9329 for ac_exec_ext in '' $ac_executable_extensions; do
9330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9331 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9333 break 2
9335 done
9336 done
9337 IFS=$as_save_IFS
9341 OTOOL64=$ac_cv_prog_OTOOL64
9342 if test -n "$OTOOL64"; then
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9344 $as_echo "$OTOOL64" >&6; }
9345 else
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9347 $as_echo "no" >&6; }
9352 if test -z "$ac_cv_prog_OTOOL64"; then
9353 ac_ct_OTOOL64=$OTOOL64
9354 # Extract the first word of "otool64", so it can be a program name with args.
9355 set dummy otool64; ac_word=$2
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9357 $as_echo_n "checking for $ac_word... " >&6; }
9358 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9359 $as_echo_n "(cached) " >&6
9360 else
9361 if test -n "$ac_ct_OTOOL64"; then
9362 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9363 else
9364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9365 for as_dir in $PATH
9367 IFS=$as_save_IFS
9368 test -z "$as_dir" && as_dir=.
9369 for ac_exec_ext in '' $ac_executable_extensions; do
9370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9371 ac_cv_prog_ac_ct_OTOOL64="otool64"
9372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9373 break 2
9375 done
9376 done
9377 IFS=$as_save_IFS
9381 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9382 if test -n "$ac_ct_OTOOL64"; then
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9384 $as_echo "$ac_ct_OTOOL64" >&6; }
9385 else
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9387 $as_echo "no" >&6; }
9390 if test "x$ac_ct_OTOOL64" = x; then
9391 OTOOL64=":"
9392 else
9393 case $cross_compiling:$ac_tool_warned in
9394 yes:)
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9397 ac_tool_warned=yes ;;
9398 esac
9399 OTOOL64=$ac_ct_OTOOL64
9401 else
9402 OTOOL64="$ac_cv_prog_OTOOL64"
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9432 $as_echo_n "checking for -single_module linker flag... " >&6; }
9433 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9434 $as_echo_n "(cached) " >&6
9435 else
9436 lt_cv_apple_cc_single_mod=no
9437 if test -z "${LT_MULTI_MODULE}"; then
9438 # By default we will add the -single_module flag. You can override
9439 # by either setting the environment variable LT_MULTI_MODULE
9440 # non-empty at configure time, or by adding -multi_module to the
9441 # link flags.
9442 rm -rf libconftest.dylib*
9443 echo "int foo(void){return 1;}" > conftest.c
9444 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9445 -dynamiclib -Wl,-single_module conftest.c" >&5
9446 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9447 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9448 _lt_result=$?
9449 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9450 lt_cv_apple_cc_single_mod=yes
9451 else
9452 cat conftest.err >&5
9454 rm -rf libconftest.dylib*
9455 rm -f conftest.*
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9459 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9461 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9462 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9463 $as_echo_n "(cached) " >&6
9464 else
9465 lt_cv_ld_exported_symbols_list=no
9466 save_LDFLAGS=$LDFLAGS
9467 echo "_main" > conftest.sym
9468 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9469 if test x$gcc_no_link = xyes; then
9470 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9473 /* end confdefs.h. */
9476 main ()
9480 return 0;
9482 _ACEOF
9483 if ac_fn_c_try_link "$LINENO"; then :
9484 lt_cv_ld_exported_symbols_list=yes
9485 else
9486 lt_cv_ld_exported_symbols_list=no
9488 rm -f core conftest.err conftest.$ac_objext \
9489 conftest$ac_exeext conftest.$ac_ext
9490 LDFLAGS="$save_LDFLAGS"
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9494 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9496 $as_echo_n "checking for -force_load linker flag... " >&6; }
9497 if test "${lt_cv_ld_force_load+set}" = set; then :
9498 $as_echo_n "(cached) " >&6
9499 else
9500 lt_cv_ld_force_load=no
9501 cat > conftest.c << _LT_EOF
9502 int forced_loaded() { return 2;}
9503 _LT_EOF
9504 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9505 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9506 echo "$AR cru libconftest.a conftest.o" >&5
9507 $AR cru libconftest.a conftest.o 2>&5
9508 cat > conftest.c << _LT_EOF
9509 int main() { return 0;}
9510 _LT_EOF
9511 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9512 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9513 _lt_result=$?
9514 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9515 lt_cv_ld_force_load=yes
9516 else
9517 cat conftest.err >&5
9519 rm -f conftest.err libconftest.a conftest conftest.c
9520 rm -rf conftest.dSYM
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9524 $as_echo "$lt_cv_ld_force_load" >&6; }
9525 case $host_os in
9526 rhapsody* | darwin1.[012])
9527 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9528 darwin1.*)
9529 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9530 darwin*) # darwin 5.x on
9531 # if running on 10.5 or later, the deployment target defaults
9532 # to the OS version, if on x86, and 10.4, the deployment
9533 # target defaults to 10.4. Don't you love it?
9534 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9535 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9536 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9537 10.[012]*)
9538 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9539 10.*)
9540 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9541 esac
9543 esac
9544 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9545 _lt_dar_single_mod='$single_module'
9547 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9548 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9549 else
9550 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9552 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9553 _lt_dsymutil='~$DSYMUTIL $lib || :'
9554 else
9555 _lt_dsymutil=
9558 esac
9560 ac_ext=c
9561 ac_cpp='$CPP $CPPFLAGS'
9562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9566 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9567 # On Suns, sometimes $CPP names a directory.
9568 if test -n "$CPP" && test -d "$CPP"; then
9569 CPP=
9571 if test -z "$CPP"; then
9572 if test "${ac_cv_prog_CPP+set}" = set; then :
9573 $as_echo_n "(cached) " >&6
9574 else
9575 # Double quotes because CPP needs to be expanded
9576 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9578 ac_preproc_ok=false
9579 for ac_c_preproc_warn_flag in '' yes
9581 # Use a header file that comes with gcc, so configuring glibc
9582 # with a fresh cross-compiler works.
9583 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9584 # <limits.h> exists even on freestanding compilers.
9585 # On the NeXT, cc -E runs the code through the compiler's parser,
9586 # not just through cpp. "Syntax error" is here to catch this case.
9587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9588 /* end confdefs.h. */
9589 #ifdef __STDC__
9590 # include <limits.h>
9591 #else
9592 # include <assert.h>
9593 #endif
9594 Syntax error
9595 _ACEOF
9596 if ac_fn_c_try_cpp "$LINENO"; then :
9598 else
9599 # Broken: fails on valid input.
9600 continue
9602 rm -f conftest.err conftest.$ac_ext
9604 # OK, works on sane cases. Now check whether nonexistent headers
9605 # can be detected and how.
9606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9607 /* end confdefs.h. */
9608 #include <ac_nonexistent.h>
9609 _ACEOF
9610 if ac_fn_c_try_cpp "$LINENO"; then :
9611 # Broken: success on invalid input.
9612 continue
9613 else
9614 # Passes both tests.
9615 ac_preproc_ok=:
9616 break
9618 rm -f conftest.err conftest.$ac_ext
9620 done
9621 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9622 rm -f conftest.err conftest.$ac_ext
9623 if $ac_preproc_ok; then :
9624 break
9627 done
9628 ac_cv_prog_CPP=$CPP
9631 CPP=$ac_cv_prog_CPP
9632 else
9633 ac_cv_prog_CPP=$CPP
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9636 $as_echo "$CPP" >&6; }
9637 ac_preproc_ok=false
9638 for ac_c_preproc_warn_flag in '' yes
9640 # Use a header file that comes with gcc, so configuring glibc
9641 # with a fresh cross-compiler works.
9642 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9643 # <limits.h> exists even on freestanding compilers.
9644 # On the NeXT, cc -E runs the code through the compiler's parser,
9645 # not just through cpp. "Syntax error" is here to catch this case.
9646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9647 /* end confdefs.h. */
9648 #ifdef __STDC__
9649 # include <limits.h>
9650 #else
9651 # include <assert.h>
9652 #endif
9653 Syntax error
9654 _ACEOF
9655 if ac_fn_c_try_cpp "$LINENO"; then :
9657 else
9658 # Broken: fails on valid input.
9659 continue
9661 rm -f conftest.err conftest.$ac_ext
9663 # OK, works on sane cases. Now check whether nonexistent headers
9664 # can be detected and how.
9665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9666 /* end confdefs.h. */
9667 #include <ac_nonexistent.h>
9668 _ACEOF
9669 if ac_fn_c_try_cpp "$LINENO"; then :
9670 # Broken: success on invalid input.
9671 continue
9672 else
9673 # Passes both tests.
9674 ac_preproc_ok=:
9675 break
9677 rm -f conftest.err conftest.$ac_ext
9679 done
9680 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9681 rm -f conftest.err conftest.$ac_ext
9682 if $ac_preproc_ok; then :
9684 else
9685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9687 as_fn_error "C preprocessor \"$CPP\" fails sanity check
9688 See \`config.log' for more details." "$LINENO" 5; }
9691 ac_ext=c
9692 ac_cpp='$CPP $CPPFLAGS'
9693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9699 $as_echo_n "checking for ANSI C header files... " >&6; }
9700 if test "${ac_cv_header_stdc+set}" = set; then :
9701 $as_echo_n "(cached) " >&6
9702 else
9703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9704 /* end confdefs.h. */
9705 #include <stdlib.h>
9706 #include <stdarg.h>
9707 #include <string.h>
9708 #include <float.h>
9711 main ()
9715 return 0;
9717 _ACEOF
9718 if ac_fn_c_try_compile "$LINENO"; then :
9719 ac_cv_header_stdc=yes
9720 else
9721 ac_cv_header_stdc=no
9723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9725 if test $ac_cv_header_stdc = yes; then
9726 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728 /* end confdefs.h. */
9729 #include <string.h>
9731 _ACEOF
9732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9733 $EGREP "memchr" >/dev/null 2>&1; then :
9735 else
9736 ac_cv_header_stdc=no
9738 rm -f conftest*
9742 if test $ac_cv_header_stdc = yes; then
9743 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9745 /* end confdefs.h. */
9746 #include <stdlib.h>
9748 _ACEOF
9749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9750 $EGREP "free" >/dev/null 2>&1; then :
9752 else
9753 ac_cv_header_stdc=no
9755 rm -f conftest*
9759 if test $ac_cv_header_stdc = yes; then
9760 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9761 if test "$cross_compiling" = yes; then :
9763 else
9764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9765 /* end confdefs.h. */
9766 #include <ctype.h>
9767 #include <stdlib.h>
9768 #if ((' ' & 0x0FF) == 0x020)
9769 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9770 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9771 #else
9772 # define ISLOWER(c) \
9773 (('a' <= (c) && (c) <= 'i') \
9774 || ('j' <= (c) && (c) <= 'r') \
9775 || ('s' <= (c) && (c) <= 'z'))
9776 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9777 #endif
9779 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9781 main ()
9783 int i;
9784 for (i = 0; i < 256; i++)
9785 if (XOR (islower (i), ISLOWER (i))
9786 || toupper (i) != TOUPPER (i))
9787 return 2;
9788 return 0;
9790 _ACEOF
9791 if ac_fn_c_try_run "$LINENO"; then :
9793 else
9794 ac_cv_header_stdc=no
9796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9797 conftest.$ac_objext conftest.beam conftest.$ac_ext
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9803 $as_echo "$ac_cv_header_stdc" >&6; }
9804 if test $ac_cv_header_stdc = yes; then
9806 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9810 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9811 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9812 inttypes.h stdint.h unistd.h
9813 do :
9814 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9815 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9817 eval as_val=\$$as_ac_Header
9818 if test "x$as_val" = x""yes; then :
9819 cat >>confdefs.h <<_ACEOF
9820 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9821 _ACEOF
9825 done
9828 for ac_header in dlfcn.h
9829 do :
9830 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9832 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9833 cat >>confdefs.h <<_ACEOF
9834 #define HAVE_DLFCN_H 1
9835 _ACEOF
9839 done
9846 # Set options
9851 enable_win32_dll=no
9854 # Check whether --enable-shared was given.
9855 if test "${enable_shared+set}" = set; then :
9856 enableval=$enable_shared; p=${PACKAGE-default}
9857 case $enableval in
9858 yes) enable_shared=yes ;;
9859 no) enable_shared=no ;;
9861 enable_shared=no
9862 # Look at the argument we got. We use all the common list separators.
9863 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9864 for pkg in $enableval; do
9865 IFS="$lt_save_ifs"
9866 if test "X$pkg" = "X$p"; then
9867 enable_shared=yes
9869 done
9870 IFS="$lt_save_ifs"
9872 esac
9873 else
9874 enable_shared=yes
9885 # Check whether --enable-static was given.
9886 if test "${enable_static+set}" = set; then :
9887 enableval=$enable_static; p=${PACKAGE-default}
9888 case $enableval in
9889 yes) enable_static=yes ;;
9890 no) enable_static=no ;;
9892 enable_static=no
9893 # Look at the argument we got. We use all the common list separators.
9894 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9895 for pkg in $enableval; do
9896 IFS="$lt_save_ifs"
9897 if test "X$pkg" = "X$p"; then
9898 enable_static=yes
9900 done
9901 IFS="$lt_save_ifs"
9903 esac
9904 else
9905 enable_static=yes
9917 # Check whether --with-pic was given.
9918 if test "${with_pic+set}" = set; then :
9919 withval=$with_pic; pic_mode="$withval"
9920 else
9921 pic_mode=default
9925 test -z "$pic_mode" && pic_mode=default
9933 # Check whether --enable-fast-install was given.
9934 if test "${enable_fast_install+set}" = set; then :
9935 enableval=$enable_fast_install; p=${PACKAGE-default}
9936 case $enableval in
9937 yes) enable_fast_install=yes ;;
9938 no) enable_fast_install=no ;;
9940 enable_fast_install=no
9941 # Look at the argument we got. We use all the common list separators.
9942 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9943 for pkg in $enableval; do
9944 IFS="$lt_save_ifs"
9945 if test "X$pkg" = "X$p"; then
9946 enable_fast_install=yes
9948 done
9949 IFS="$lt_save_ifs"
9951 esac
9952 else
9953 enable_fast_install=yes
9966 # This can be used to rebuild libtool when needed
9967 LIBTOOL_DEPS="$ltmain"
9969 # Always use our own libtool.
9970 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9997 test -z "$LN_S" && LN_S="ln -s"
10012 if test -n "${ZSH_VERSION+set}" ; then
10013 setopt NO_GLOB_SUBST
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10017 $as_echo_n "checking for objdir... " >&6; }
10018 if test "${lt_cv_objdir+set}" = set; then :
10019 $as_echo_n "(cached) " >&6
10020 else
10021 rm -f .libs 2>/dev/null
10022 mkdir .libs 2>/dev/null
10023 if test -d .libs; then
10024 lt_cv_objdir=.libs
10025 else
10026 # MS-DOS does not allow filenames that begin with a dot.
10027 lt_cv_objdir=_libs
10029 rmdir .libs 2>/dev/null
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10032 $as_echo "$lt_cv_objdir" >&6; }
10033 objdir=$lt_cv_objdir
10039 cat >>confdefs.h <<_ACEOF
10040 #define LT_OBJDIR "$lt_cv_objdir/"
10041 _ACEOF
10046 case $host_os in
10047 aix3*)
10048 # AIX sometimes has problems with the GCC collect2 program. For some
10049 # reason, if we set the COLLECT_NAMES environment variable, the problems
10050 # vanish in a puff of smoke.
10051 if test "X${COLLECT_NAMES+set}" != Xset; then
10052 COLLECT_NAMES=
10053 export COLLECT_NAMES
10056 esac
10058 # Global variables:
10059 ofile=libtool
10060 can_build_shared=yes
10062 # All known linkers require a `.a' archive for static linking (except MSVC,
10063 # which needs '.lib').
10064 libext=a
10066 with_gnu_ld="$lt_cv_prog_gnu_ld"
10068 old_CC="$CC"
10069 old_CFLAGS="$CFLAGS"
10071 # Set sane defaults for various variables
10072 test -z "$CC" && CC=cc
10073 test -z "$LTCC" && LTCC=$CC
10074 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10075 test -z "$LD" && LD=ld
10076 test -z "$ac_objext" && ac_objext=o
10078 for cc_temp in $compiler""; do
10079 case $cc_temp in
10080 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10081 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10082 \-*) ;;
10083 *) break;;
10084 esac
10085 done
10086 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10089 # Only perform the check for file, if the check method requires it
10090 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10091 case $deplibs_check_method in
10092 file_magic*)
10093 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10095 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10096 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10097 $as_echo_n "(cached) " >&6
10098 else
10099 case $MAGIC_CMD in
10100 [\\/*] | ?:[\\/]*)
10101 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10104 lt_save_MAGIC_CMD="$MAGIC_CMD"
10105 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10106 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10107 for ac_dir in $ac_dummy; do
10108 IFS="$lt_save_ifs"
10109 test -z "$ac_dir" && ac_dir=.
10110 if test -f $ac_dir/${ac_tool_prefix}file; then
10111 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10112 if test -n "$file_magic_test_file"; then
10113 case $deplibs_check_method in
10114 "file_magic "*)
10115 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10116 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10117 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10118 $EGREP "$file_magic_regex" > /dev/null; then
10120 else
10121 cat <<_LT_EOF 1>&2
10123 *** Warning: the command libtool uses to detect shared libraries,
10124 *** $file_magic_cmd, produces output that libtool cannot recognize.
10125 *** The result is that libtool may fail to recognize shared libraries
10126 *** as such. This will affect the creation of libtool libraries that
10127 *** depend on shared libraries, but programs linked with such libtool
10128 *** libraries will work regardless of this problem. Nevertheless, you
10129 *** may want to report the problem to your system manager and/or to
10130 *** bug-libtool@gnu.org
10132 _LT_EOF
10133 fi ;;
10134 esac
10136 break
10138 done
10139 IFS="$lt_save_ifs"
10140 MAGIC_CMD="$lt_save_MAGIC_CMD"
10142 esac
10145 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10146 if test -n "$MAGIC_CMD"; then
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10148 $as_echo "$MAGIC_CMD" >&6; }
10149 else
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10151 $as_echo "no" >&6; }
10158 if test -z "$lt_cv_path_MAGIC_CMD"; then
10159 if test -n "$ac_tool_prefix"; then
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10161 $as_echo_n "checking for file... " >&6; }
10162 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10163 $as_echo_n "(cached) " >&6
10164 else
10165 case $MAGIC_CMD in
10166 [\\/*] | ?:[\\/]*)
10167 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10170 lt_save_MAGIC_CMD="$MAGIC_CMD"
10171 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10172 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10173 for ac_dir in $ac_dummy; do
10174 IFS="$lt_save_ifs"
10175 test -z "$ac_dir" && ac_dir=.
10176 if test -f $ac_dir/file; then
10177 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10178 if test -n "$file_magic_test_file"; then
10179 case $deplibs_check_method in
10180 "file_magic "*)
10181 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10182 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10183 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10184 $EGREP "$file_magic_regex" > /dev/null; then
10186 else
10187 cat <<_LT_EOF 1>&2
10189 *** Warning: the command libtool uses to detect shared libraries,
10190 *** $file_magic_cmd, produces output that libtool cannot recognize.
10191 *** The result is that libtool may fail to recognize shared libraries
10192 *** as such. This will affect the creation of libtool libraries that
10193 *** depend on shared libraries, but programs linked with such libtool
10194 *** libraries will work regardless of this problem. Nevertheless, you
10195 *** may want to report the problem to your system manager and/or to
10196 *** bug-libtool@gnu.org
10198 _LT_EOF
10199 fi ;;
10200 esac
10202 break
10204 done
10205 IFS="$lt_save_ifs"
10206 MAGIC_CMD="$lt_save_MAGIC_CMD"
10208 esac
10211 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10212 if test -n "$MAGIC_CMD"; then
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10214 $as_echo "$MAGIC_CMD" >&6; }
10215 else
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10217 $as_echo "no" >&6; }
10221 else
10222 MAGIC_CMD=:
10228 esac
10230 # Use C for the default configuration in the libtool script
10232 lt_save_CC="$CC"
10233 ac_ext=c
10234 ac_cpp='$CPP $CPPFLAGS'
10235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10240 # Source file extension for C test sources.
10241 ac_ext=c
10243 # Object file extension for compiled C test sources.
10244 objext=o
10245 objext=$objext
10247 # Code to be used in simple compile tests
10248 lt_simple_compile_test_code="int some_variable = 0;"
10250 # Code to be used in simple link tests
10251 lt_simple_link_test_code='int main(){return(0);}'
10259 # If no C compiler was specified, use CC.
10260 LTCC=${LTCC-"$CC"}
10262 # If no C compiler flags were specified, use CFLAGS.
10263 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10265 # Allow CC to be a program name with arguments.
10266 compiler=$CC
10268 # Save the default compiler, since it gets overwritten when the other
10269 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10270 compiler_DEFAULT=$CC
10272 # save warnings/boilerplate of simple test code
10273 ac_outfile=conftest.$ac_objext
10274 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10275 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10276 _lt_compiler_boilerplate=`cat conftest.err`
10277 $RM conftest*
10279 ac_outfile=conftest.$ac_objext
10280 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10281 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10282 _lt_linker_boilerplate=`cat conftest.err`
10283 $RM -r conftest*
10286 ## CAVEAT EMPTOR:
10287 ## There is no encapsulation within the following macros, do not change
10288 ## the running order or otherwise move them around unless you know exactly
10289 ## what you are doing...
10290 if test -n "$compiler"; then
10292 lt_prog_compiler_no_builtin_flag=
10294 if test "$GCC" = yes; then
10295 case $cc_basename in
10296 nvcc*)
10297 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10299 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10300 esac
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10303 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10304 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10305 $as_echo_n "(cached) " >&6
10306 else
10307 lt_cv_prog_compiler_rtti_exceptions=no
10308 ac_outfile=conftest.$ac_objext
10309 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10310 lt_compiler_flag="-fno-rtti -fno-exceptions"
10311 # Insert the option either (1) after the last *FLAGS variable, or
10312 # (2) before a word containing "conftest.", or (3) at the end.
10313 # Note that $ac_compile itself does not contain backslashes and begins
10314 # with a dollar sign (not a hyphen), so the echo should work correctly.
10315 # The option is referenced via a variable to avoid confusing sed.
10316 lt_compile=`echo "$ac_compile" | $SED \
10317 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10318 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10319 -e 's:$: $lt_compiler_flag:'`
10320 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10321 (eval "$lt_compile" 2>conftest.err)
10322 ac_status=$?
10323 cat conftest.err >&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 if (exit $ac_status) && test -s "$ac_outfile"; then
10326 # The compiler can only warn and ignore the option if not recognized
10327 # So say no if there are warnings other than the usual output.
10328 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10329 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10330 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10331 lt_cv_prog_compiler_rtti_exceptions=yes
10334 $RM conftest*
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10338 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10340 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10341 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10342 else
10353 lt_prog_compiler_wl=
10354 lt_prog_compiler_pic=
10355 lt_prog_compiler_static=
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10358 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10360 if test "$GCC" = yes; then
10361 lt_prog_compiler_wl='-Wl,'
10362 lt_prog_compiler_static='-static'
10364 case $host_os in
10365 aix*)
10366 # All AIX code is PIC.
10367 if test "$host_cpu" = ia64; then
10368 # AIX 5 now supports IA64 processor
10369 lt_prog_compiler_static='-Bstatic'
10373 amigaos*)
10374 case $host_cpu in
10375 powerpc)
10376 # see comment about AmigaOS4 .so support
10377 lt_prog_compiler_pic='-fPIC'
10379 m68k)
10380 # FIXME: we need at least 68020 code to build shared libraries, but
10381 # adding the `-m68020' flag to GCC prevents building anything better,
10382 # like `-m68040'.
10383 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10385 esac
10388 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10389 # PIC is the default for these OSes.
10392 mingw* | cygwin* | pw32* | os2* | cegcc*)
10393 # This hack is so that the source file can tell whether it is being
10394 # built for inclusion in a dll (and should export symbols for example).
10395 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10396 # (--disable-auto-import) libraries
10397 lt_prog_compiler_pic='-DDLL_EXPORT'
10400 darwin* | rhapsody*)
10401 # PIC is the default on this platform
10402 # Common symbols not allowed in MH_DYLIB files
10403 lt_prog_compiler_pic='-fno-common'
10406 haiku*)
10407 # PIC is the default for Haiku.
10408 # The "-static" flag exists, but is broken.
10409 lt_prog_compiler_static=
10412 hpux*)
10413 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10414 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10415 # sets the default TLS model and affects inlining.
10416 case $host_cpu in
10417 hppa*64*)
10418 # +Z the default
10421 lt_prog_compiler_pic='-fPIC'
10423 esac
10426 interix[3-9]*)
10427 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10428 # Instead, we relocate shared libraries at runtime.
10431 msdosdjgpp*)
10432 # Just because we use GCC doesn't mean we suddenly get shared libraries
10433 # on systems that don't support them.
10434 lt_prog_compiler_can_build_shared=no
10435 enable_shared=no
10438 *nto* | *qnx*)
10439 # QNX uses GNU C++, but need to define -shared option too, otherwise
10440 # it will coredump.
10441 lt_prog_compiler_pic='-fPIC -shared'
10444 sysv4*MP*)
10445 if test -d /usr/nec; then
10446 lt_prog_compiler_pic=-Kconform_pic
10451 lt_prog_compiler_pic='-fPIC'
10453 esac
10455 case $cc_basename in
10456 nvcc*) # Cuda Compiler Driver 2.2
10457 lt_prog_compiler_wl='-Xlinker '
10458 lt_prog_compiler_pic='-Xcompiler -fPIC'
10460 esac
10461 else
10462 # PORTME Check for flag to pass linker flags through the system compiler.
10463 case $host_os in
10464 aix*)
10465 lt_prog_compiler_wl='-Wl,'
10466 if test "$host_cpu" = ia64; then
10467 # AIX 5 now supports IA64 processor
10468 lt_prog_compiler_static='-Bstatic'
10469 else
10470 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10474 mingw* | cygwin* | pw32* | os2* | cegcc*)
10475 # This hack is so that the source file can tell whether it is being
10476 # built for inclusion in a dll (and should export symbols for example).
10477 lt_prog_compiler_pic='-DDLL_EXPORT'
10480 hpux9* | hpux10* | hpux11*)
10481 lt_prog_compiler_wl='-Wl,'
10482 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10483 # not for PA HP-UX.
10484 case $host_cpu in
10485 hppa*64*|ia64*)
10486 # +Z the default
10489 lt_prog_compiler_pic='+Z'
10491 esac
10492 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10493 lt_prog_compiler_static='${wl}-a ${wl}archive'
10496 irix5* | irix6* | nonstopux*)
10497 lt_prog_compiler_wl='-Wl,'
10498 # PIC (with -KPIC) is the default.
10499 lt_prog_compiler_static='-non_shared'
10502 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10503 case $cc_basename in
10504 # old Intel for x86_64 which still supported -KPIC.
10505 ecc*)
10506 lt_prog_compiler_wl='-Wl,'
10507 lt_prog_compiler_pic='-KPIC'
10508 lt_prog_compiler_static='-static'
10510 # icc used to be incompatible with GCC.
10511 # ICC 10 doesn't accept -KPIC any more.
10512 icc* | ifort*)
10513 lt_prog_compiler_wl='-Wl,'
10514 lt_prog_compiler_pic='-fPIC'
10515 lt_prog_compiler_static='-static'
10517 # Lahey Fortran 8.1.
10518 lf95*)
10519 lt_prog_compiler_wl='-Wl,'
10520 lt_prog_compiler_pic='--shared'
10521 lt_prog_compiler_static='--static'
10523 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10524 # Portland Group compilers (*not* the Pentium gcc compiler,
10525 # which looks to be a dead project)
10526 lt_prog_compiler_wl='-Wl,'
10527 lt_prog_compiler_pic='-fpic'
10528 lt_prog_compiler_static='-Bstatic'
10530 ccc*)
10531 lt_prog_compiler_wl='-Wl,'
10532 # All Alpha code is PIC.
10533 lt_prog_compiler_static='-non_shared'
10535 xl* | bgxl* | bgf* | mpixl*)
10536 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10537 lt_prog_compiler_wl='-Wl,'
10538 lt_prog_compiler_pic='-qpic'
10539 lt_prog_compiler_static='-qstaticlink'
10542 case `$CC -V 2>&1 | sed 5q` in
10543 *Sun\ F* | *Sun*Fortran*)
10544 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10545 lt_prog_compiler_pic='-KPIC'
10546 lt_prog_compiler_static='-Bstatic'
10547 lt_prog_compiler_wl=''
10549 *Sun\ C*)
10550 # Sun C 5.9
10551 lt_prog_compiler_pic='-KPIC'
10552 lt_prog_compiler_static='-Bstatic'
10553 lt_prog_compiler_wl='-Wl,'
10555 esac
10557 esac
10560 newsos6)
10561 lt_prog_compiler_pic='-KPIC'
10562 lt_prog_compiler_static='-Bstatic'
10565 *nto* | *qnx*)
10566 # QNX uses GNU C++, but need to define -shared option too, otherwise
10567 # it will coredump.
10568 lt_prog_compiler_pic='-fPIC -shared'
10571 osf3* | osf4* | osf5*)
10572 lt_prog_compiler_wl='-Wl,'
10573 # All OSF/1 code is PIC.
10574 lt_prog_compiler_static='-non_shared'
10577 rdos*)
10578 lt_prog_compiler_static='-non_shared'
10581 solaris*)
10582 lt_prog_compiler_pic='-KPIC'
10583 lt_prog_compiler_static='-Bstatic'
10584 case $cc_basename in
10585 f77* | f90* | f95*)
10586 lt_prog_compiler_wl='-Qoption ld ';;
10588 lt_prog_compiler_wl='-Wl,';;
10589 esac
10592 sunos4*)
10593 lt_prog_compiler_wl='-Qoption ld '
10594 lt_prog_compiler_pic='-PIC'
10595 lt_prog_compiler_static='-Bstatic'
10598 sysv4 | sysv4.2uw2* | sysv4.3*)
10599 lt_prog_compiler_wl='-Wl,'
10600 lt_prog_compiler_pic='-KPIC'
10601 lt_prog_compiler_static='-Bstatic'
10604 sysv4*MP*)
10605 if test -d /usr/nec ;then
10606 lt_prog_compiler_pic='-Kconform_pic'
10607 lt_prog_compiler_static='-Bstatic'
10611 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10612 lt_prog_compiler_wl='-Wl,'
10613 lt_prog_compiler_pic='-KPIC'
10614 lt_prog_compiler_static='-Bstatic'
10617 unicos*)
10618 lt_prog_compiler_wl='-Wl,'
10619 lt_prog_compiler_can_build_shared=no
10622 uts4*)
10623 lt_prog_compiler_pic='-pic'
10624 lt_prog_compiler_static='-Bstatic'
10628 lt_prog_compiler_can_build_shared=no
10630 esac
10633 case $host_os in
10634 # For platforms which do not support PIC, -DPIC is meaningless:
10635 *djgpp*)
10636 lt_prog_compiler_pic=
10639 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10641 esac
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10643 $as_echo "$lt_prog_compiler_pic" >&6; }
10651 # Check to make sure the PIC flag actually works.
10653 if test -n "$lt_prog_compiler_pic"; then
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10655 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10656 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10657 $as_echo_n "(cached) " >&6
10658 else
10659 lt_cv_prog_compiler_pic_works=no
10660 ac_outfile=conftest.$ac_objext
10661 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10662 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10663 # Insert the option either (1) after the last *FLAGS variable, or
10664 # (2) before a word containing "conftest.", or (3) at the end.
10665 # Note that $ac_compile itself does not contain backslashes and begins
10666 # with a dollar sign (not a hyphen), so the echo should work correctly.
10667 # The option is referenced via a variable to avoid confusing sed.
10668 lt_compile=`echo "$ac_compile" | $SED \
10669 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10670 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10671 -e 's:$: $lt_compiler_flag:'`
10672 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10673 (eval "$lt_compile" 2>conftest.err)
10674 ac_status=$?
10675 cat conftest.err >&5
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 if (exit $ac_status) && test -s "$ac_outfile"; then
10678 # The compiler can only warn and ignore the option if not recognized
10679 # So say no if there are warnings other than the usual output.
10680 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10681 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10682 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10683 lt_cv_prog_compiler_pic_works=yes
10686 $RM conftest*
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10690 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10692 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10693 case $lt_prog_compiler_pic in
10694 "" | " "*) ;;
10695 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10696 esac
10697 else
10698 lt_prog_compiler_pic=
10699 lt_prog_compiler_can_build_shared=no
10710 # Check to make sure the static flag actually works.
10712 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10714 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10715 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10716 $as_echo_n "(cached) " >&6
10717 else
10718 lt_cv_prog_compiler_static_works=no
10719 save_LDFLAGS="$LDFLAGS"
10720 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10721 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10722 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10723 # The linker can only warn and ignore the option if not recognized
10724 # So say no if there are warnings
10725 if test -s conftest.err; then
10726 # Append any errors to the config.log.
10727 cat conftest.err 1>&5
10728 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10729 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10730 if diff conftest.exp conftest.er2 >/dev/null; then
10731 lt_cv_prog_compiler_static_works=yes
10733 else
10734 lt_cv_prog_compiler_static_works=yes
10737 $RM -r conftest*
10738 LDFLAGS="$save_LDFLAGS"
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10742 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10744 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10746 else
10747 lt_prog_compiler_static=
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10757 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10758 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10759 $as_echo_n "(cached) " >&6
10760 else
10761 lt_cv_prog_compiler_c_o=no
10762 $RM -r conftest 2>/dev/null
10763 mkdir conftest
10764 cd conftest
10765 mkdir out
10766 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10768 lt_compiler_flag="-o out/conftest2.$ac_objext"
10769 # Insert the option either (1) after the last *FLAGS variable, or
10770 # (2) before a word containing "conftest.", or (3) at the end.
10771 # Note that $ac_compile itself does not contain backslashes and begins
10772 # with a dollar sign (not a hyphen), so the echo should work correctly.
10773 lt_compile=`echo "$ac_compile" | $SED \
10774 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10775 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10776 -e 's:$: $lt_compiler_flag:'`
10777 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10778 (eval "$lt_compile" 2>out/conftest.err)
10779 ac_status=$?
10780 cat out/conftest.err >&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10783 then
10784 # The compiler can only warn and ignore the option if not recognized
10785 # So say no if there are warnings
10786 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10787 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10788 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10789 lt_cv_prog_compiler_c_o=yes
10792 chmod u+w . 2>&5
10793 $RM conftest*
10794 # SGI C++ compiler will create directory out/ii_files/ for
10795 # template instantiation
10796 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10797 $RM out/* && rmdir out
10798 cd ..
10799 $RM -r conftest
10800 $RM conftest*
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10804 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10812 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10813 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10814 $as_echo_n "(cached) " >&6
10815 else
10816 lt_cv_prog_compiler_c_o=no
10817 $RM -r conftest 2>/dev/null
10818 mkdir conftest
10819 cd conftest
10820 mkdir out
10821 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10823 lt_compiler_flag="-o out/conftest2.$ac_objext"
10824 # Insert the option either (1) after the last *FLAGS variable, or
10825 # (2) before a word containing "conftest.", or (3) at the end.
10826 # Note that $ac_compile itself does not contain backslashes and begins
10827 # with a dollar sign (not a hyphen), so the echo should work correctly.
10828 lt_compile=`echo "$ac_compile" | $SED \
10829 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10830 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10831 -e 's:$: $lt_compiler_flag:'`
10832 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10833 (eval "$lt_compile" 2>out/conftest.err)
10834 ac_status=$?
10835 cat out/conftest.err >&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10838 then
10839 # The compiler can only warn and ignore the option if not recognized
10840 # So say no if there are warnings
10841 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10842 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10843 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10844 lt_cv_prog_compiler_c_o=yes
10847 chmod u+w . 2>&5
10848 $RM conftest*
10849 # SGI C++ compiler will create directory out/ii_files/ for
10850 # template instantiation
10851 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10852 $RM out/* && rmdir out
10853 cd ..
10854 $RM -r conftest
10855 $RM conftest*
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10859 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10864 hard_links="nottested"
10865 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10866 # do not overwrite the value of need_locks provided by the user
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10868 $as_echo_n "checking if we can lock with hard links... " >&6; }
10869 hard_links=yes
10870 $RM conftest*
10871 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10872 touch conftest.a
10873 ln conftest.a conftest.b 2>&5 || hard_links=no
10874 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10876 $as_echo "$hard_links" >&6; }
10877 if test "$hard_links" = no; then
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10879 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10880 need_locks=warn
10882 else
10883 need_locks=no
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10892 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10894 runpath_var=
10895 allow_undefined_flag=
10896 always_export_symbols=no
10897 archive_cmds=
10898 archive_expsym_cmds=
10899 compiler_needs_object=no
10900 enable_shared_with_static_runtimes=no
10901 export_dynamic_flag_spec=
10902 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10903 hardcode_automatic=no
10904 hardcode_direct=no
10905 hardcode_direct_absolute=no
10906 hardcode_libdir_flag_spec=
10907 hardcode_libdir_flag_spec_ld=
10908 hardcode_libdir_separator=
10909 hardcode_minus_L=no
10910 hardcode_shlibpath_var=unsupported
10911 inherit_rpath=no
10912 link_all_deplibs=unknown
10913 module_cmds=
10914 module_expsym_cmds=
10915 old_archive_from_new_cmds=
10916 old_archive_from_expsyms_cmds=
10917 thread_safe_flag_spec=
10918 whole_archive_flag_spec=
10919 # include_expsyms should be a list of space-separated symbols to be *always*
10920 # included in the symbol list
10921 include_expsyms=
10922 # exclude_expsyms can be an extended regexp of symbols to exclude
10923 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10924 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10925 # as well as any symbol that contains `d'.
10926 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10927 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10928 # platforms (ab)use it in PIC code, but their linkers get confused if
10929 # the symbol is explicitly referenced. Since portable code cannot
10930 # rely on this symbol name, it's probably fine to never include it in
10931 # preloaded symbol tables.
10932 # Exclude shared library initialization/finalization symbols.
10933 extract_expsyms_cmds=
10935 case $host_os in
10936 cygwin* | mingw* | pw32* | cegcc*)
10937 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10938 # When not using gcc, we currently assume that we are using
10939 # Microsoft Visual C++.
10940 if test "$GCC" != yes; then
10941 with_gnu_ld=no
10944 interix*)
10945 # we just hope/assume this is gcc and not c89 (= MSVC++)
10946 with_gnu_ld=yes
10948 openbsd*)
10949 with_gnu_ld=no
10951 esac
10953 ld_shlibs=yes
10955 # On some targets, GNU ld is compatible enough with the native linker
10956 # that we're better off using the native interface for both.
10957 lt_use_gnu_ld_interface=no
10958 if test "$with_gnu_ld" = yes; then
10959 case $host_os in
10960 aix*)
10961 # The AIX port of GNU ld has always aspired to compatibility
10962 # with the native linker. However, as the warning in the GNU ld
10963 # block says, versions before 2.19.5* couldn't really create working
10964 # shared libraries, regardless of the interface used.
10965 case `$LD -v 2>&1` in
10966 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10967 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10968 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10970 lt_use_gnu_ld_interface=yes
10972 esac
10975 lt_use_gnu_ld_interface=yes
10977 esac
10980 if test "$lt_use_gnu_ld_interface" = yes; then
10981 # If archive_cmds runs LD, not CC, wlarc should be empty
10982 wlarc='${wl}'
10984 # Set some defaults for GNU ld with shared library support. These
10985 # are reset later if shared libraries are not supported. Putting them
10986 # here allows them to be overridden if necessary.
10987 runpath_var=LD_RUN_PATH
10988 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10989 export_dynamic_flag_spec='${wl}--export-dynamic'
10990 # ancient GNU ld didn't support --whole-archive et. al.
10991 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10992 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10993 else
10994 whole_archive_flag_spec=
10996 supports_anon_versioning=no
10997 case `$LD -v 2>&1` in
10998 *GNU\ gold*) supports_anon_versioning=yes ;;
10999 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11000 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11001 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11002 *\ 2.11.*) ;; # other 2.11 versions
11003 *) supports_anon_versioning=yes ;;
11004 esac
11006 # See if GNU ld supports shared libraries.
11007 case $host_os in
11008 aix[3-9]*)
11009 # On AIX/PPC, the GNU linker is very broken
11010 if test "$host_cpu" != ia64; then
11011 ld_shlibs=no
11012 cat <<_LT_EOF 1>&2
11014 *** Warning: the GNU linker, at least up to release 2.19, is reported
11015 *** to be unable to reliably create shared libraries on AIX.
11016 *** Therefore, libtool is disabling shared libraries support. If you
11017 *** really care for shared libraries, you may want to install binutils
11018 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11019 *** You will then need to restart the configuration process.
11021 _LT_EOF
11025 amigaos*)
11026 case $host_cpu in
11027 powerpc)
11028 # see comment about AmigaOS4 .so support
11029 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11030 archive_expsym_cmds=''
11032 m68k)
11033 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)'
11034 hardcode_libdir_flag_spec='-L$libdir'
11035 hardcode_minus_L=yes
11037 esac
11040 beos*)
11041 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11042 allow_undefined_flag=unsupported
11043 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11044 # support --undefined. This deserves some investigation. FIXME
11045 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11046 else
11047 ld_shlibs=no
11051 cygwin* | mingw* | pw32* | cegcc*)
11052 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11053 # as there is no search path for DLLs.
11054 hardcode_libdir_flag_spec='-L$libdir'
11055 export_dynamic_flag_spec='${wl}--export-all-symbols'
11056 allow_undefined_flag=unsupported
11057 always_export_symbols=no
11058 enable_shared_with_static_runtimes=yes
11059 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11061 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11062 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11063 # If the export-symbols file already is a .def file (1st line
11064 # is EXPORTS), use it as is; otherwise, prepend...
11065 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11066 cp $export_symbols $output_objdir/$soname.def;
11067 else
11068 echo EXPORTS > $output_objdir/$soname.def;
11069 cat $export_symbols >> $output_objdir/$soname.def;
11071 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11072 else
11073 ld_shlibs=no
11077 haiku*)
11078 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11079 link_all_deplibs=yes
11082 interix[3-9]*)
11083 hardcode_direct=no
11084 hardcode_shlibpath_var=no
11085 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11086 export_dynamic_flag_spec='${wl}-E'
11087 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11088 # Instead, shared libraries are loaded at an image base (0x10000000 by
11089 # default) and relocated if they conflict, which is a slow very memory
11090 # consuming and fragmenting process. To avoid this, we pick a random,
11091 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11092 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11093 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11094 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'
11097 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11098 tmp_diet=no
11099 if test "$host_os" = linux-dietlibc; then
11100 case $cc_basename in
11101 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11102 esac
11104 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11105 && test "$tmp_diet" = no
11106 then
11107 tmp_addflag=
11108 tmp_sharedflag='-shared'
11109 case $cc_basename,$host_cpu in
11110 pgcc*) # Portland Group C compiler
11111 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'
11112 tmp_addflag=' $pic_flag'
11114 pgf77* | pgf90* | pgf95* | pgfortran*)
11115 # Portland Group f77 and f90 compilers
11116 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'
11117 tmp_addflag=' $pic_flag -Mnomain' ;;
11118 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11119 tmp_addflag=' -i_dynamic' ;;
11120 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11121 tmp_addflag=' -i_dynamic -nofor_main' ;;
11122 ifc* | ifort*) # Intel Fortran compiler
11123 tmp_addflag=' -nofor_main' ;;
11124 lf95*) # Lahey Fortran 8.1
11125 whole_archive_flag_spec=
11126 tmp_sharedflag='--shared' ;;
11127 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11128 tmp_sharedflag='-qmkshrobj'
11129 tmp_addflag= ;;
11130 nvcc*) # Cuda Compiler Driver 2.2
11131 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'
11132 compiler_needs_object=yes
11134 esac
11135 case `$CC -V 2>&1 | sed 5q` in
11136 *Sun\ C*) # Sun C 5.9
11137 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'
11138 compiler_needs_object=yes
11139 tmp_sharedflag='-G' ;;
11140 *Sun\ F*) # Sun Fortran 8.3
11141 tmp_sharedflag='-G' ;;
11142 esac
11143 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11145 if test "x$supports_anon_versioning" = xyes; then
11146 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11147 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11148 echo "local: *; };" >> $output_objdir/$libname.ver~
11149 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11152 case $cc_basename in
11153 xlf* | bgf* | bgxlf* | mpixlf*)
11154 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11155 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11156 hardcode_libdir_flag_spec=
11157 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11158 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11159 if test "x$supports_anon_versioning" = xyes; then
11160 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11161 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11162 echo "local: *; };" >> $output_objdir/$libname.ver~
11163 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11166 esac
11167 else
11168 ld_shlibs=no
11172 netbsd*)
11173 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11174 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11175 wlarc=
11176 else
11177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11178 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11182 solaris*)
11183 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11184 ld_shlibs=no
11185 cat <<_LT_EOF 1>&2
11187 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11188 *** create shared libraries on Solaris systems. Therefore, libtool
11189 *** is disabling shared libraries support. We urge you to upgrade GNU
11190 *** binutils to release 2.9.1 or newer. Another option is to modify
11191 *** your PATH or compiler configuration so that the native linker is
11192 *** used, and then restart.
11194 _LT_EOF
11195 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11196 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11197 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11198 else
11199 ld_shlibs=no
11203 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11204 case `$LD -v 2>&1` in
11205 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11206 ld_shlibs=no
11207 cat <<_LT_EOF 1>&2
11209 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11210 *** reliably create shared libraries on SCO systems. Therefore, libtool
11211 *** is disabling shared libraries support. We urge you to upgrade GNU
11212 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11213 *** your PATH or compiler configuration so that the native linker is
11214 *** used, and then restart.
11216 _LT_EOF
11219 # For security reasons, it is highly recommended that you always
11220 # use absolute paths for naming shared libraries, and exclude the
11221 # DT_RUNPATH tag from executables and libraries. But doing so
11222 # requires that you compile everything twice, which is a pain.
11223 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11224 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11225 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11226 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11227 else
11228 ld_shlibs=no
11231 esac
11234 sunos4*)
11235 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11236 wlarc=
11237 hardcode_direct=yes
11238 hardcode_shlibpath_var=no
11242 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11243 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11244 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11245 else
11246 ld_shlibs=no
11249 esac
11251 if test "$ld_shlibs" = no; then
11252 runpath_var=
11253 hardcode_libdir_flag_spec=
11254 export_dynamic_flag_spec=
11255 whole_archive_flag_spec=
11257 else
11258 # PORTME fill in a description of your system's linker (not GNU ld)
11259 case $host_os in
11260 aix3*)
11261 allow_undefined_flag=unsupported
11262 always_export_symbols=yes
11263 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'
11264 # Note: this linker hardcodes the directories in LIBPATH if there
11265 # are no directories specified by -L.
11266 hardcode_minus_L=yes
11267 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11268 # Neither direct hardcoding nor static linking is supported with a
11269 # broken collect2.
11270 hardcode_direct=unsupported
11274 aix[4-9]*)
11275 if test "$host_cpu" = ia64; then
11276 # On IA64, the linker does run time linking by default, so we don't
11277 # have to do anything special.
11278 aix_use_runtimelinking=no
11279 exp_sym_flag='-Bexport'
11280 no_entry_flag=""
11281 else
11282 # If we're using GNU nm, then we don't want the "-C" option.
11283 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11284 # Also, AIX nm treats weak defined symbols like other global
11285 # defined symbols, whereas GNU nm marks them as "W".
11286 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11287 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'
11288 else
11289 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'
11291 aix_use_runtimelinking=no
11293 # Test if we are trying to use run time linking or normal
11294 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11295 # need to do runtime linking.
11296 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11297 for ld_flag in $LDFLAGS; do
11298 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11299 aix_use_runtimelinking=yes
11300 break
11302 done
11304 esac
11306 exp_sym_flag='-bexport'
11307 no_entry_flag='-bnoentry'
11310 # When large executables or shared objects are built, AIX ld can
11311 # have problems creating the table of contents. If linking a library
11312 # or program results in "error TOC overflow" add -mminimal-toc to
11313 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11314 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11316 archive_cmds=''
11317 hardcode_direct=yes
11318 hardcode_direct_absolute=yes
11319 hardcode_libdir_separator=':'
11320 link_all_deplibs=yes
11321 file_list_spec='${wl}-f,'
11323 if test "$GCC" = yes; then
11324 case $host_os in aix4.[012]|aix4.[012].*)
11325 # We only want to do this on AIX 4.2 and lower, the check
11326 # below for broken collect2 doesn't work under 4.3+
11327 collect2name=`${CC} -print-prog-name=collect2`
11328 if test -f "$collect2name" &&
11329 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11330 then
11331 # We have reworked collect2
11333 else
11334 # We have old collect2
11335 hardcode_direct=unsupported
11336 # It fails to find uninstalled libraries when the uninstalled
11337 # path is not listed in the libpath. Setting hardcode_minus_L
11338 # to unsupported forces relinking
11339 hardcode_minus_L=yes
11340 hardcode_libdir_flag_spec='-L$libdir'
11341 hardcode_libdir_separator=
11344 esac
11345 shared_flag='-shared'
11346 if test "$aix_use_runtimelinking" = yes; then
11347 shared_flag="$shared_flag "'${wl}-G'
11349 else
11350 # not using gcc
11351 if test "$host_cpu" = ia64; then
11352 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11353 # chokes on -Wl,-G. The following line is correct:
11354 shared_flag='-G'
11355 else
11356 if test "$aix_use_runtimelinking" = yes; then
11357 shared_flag='${wl}-G'
11358 else
11359 shared_flag='${wl}-bM:SRE'
11364 export_dynamic_flag_spec='${wl}-bexpall'
11365 # It seems that -bexpall does not export symbols beginning with
11366 # underscore (_), so it is better to generate a list of symbols to export.
11367 always_export_symbols=yes
11368 if test "$aix_use_runtimelinking" = yes; then
11369 # Warning - without using the other runtime loading flags (-brtl),
11370 # -berok will link without error, but may produce a broken library.
11371 allow_undefined_flag='-berok'
11372 # Determine the default libpath from the value encoded in an
11373 # empty executable.
11374 if test x$gcc_no_link = xyes; then
11375 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11378 /* end confdefs.h. */
11381 main ()
11385 return 0;
11387 _ACEOF
11388 if ac_fn_c_try_link "$LINENO"; then :
11390 lt_aix_libpath_sed='
11391 /Import File Strings/,/^$/ {
11392 /^0/ {
11393 s/^0 *\(.*\)$/\1/
11397 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11398 # Check for a 64-bit object if we didn't find anything.
11399 if test -z "$aix_libpath"; then
11400 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11403 rm -f core conftest.err conftest.$ac_objext \
11404 conftest$ac_exeext conftest.$ac_ext
11405 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11407 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11408 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"
11409 else
11410 if test "$host_cpu" = ia64; then
11411 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11412 allow_undefined_flag="-z nodefs"
11413 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"
11414 else
11415 # Determine the default libpath from the value encoded in an
11416 # empty executable.
11417 if test x$gcc_no_link = xyes; then
11418 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11421 /* end confdefs.h. */
11424 main ()
11428 return 0;
11430 _ACEOF
11431 if ac_fn_c_try_link "$LINENO"; then :
11433 lt_aix_libpath_sed='
11434 /Import File Strings/,/^$/ {
11435 /^0/ {
11436 s/^0 *\(.*\)$/\1/
11440 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11441 # Check for a 64-bit object if we didn't find anything.
11442 if test -z "$aix_libpath"; then
11443 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11446 rm -f core conftest.err conftest.$ac_objext \
11447 conftest$ac_exeext conftest.$ac_ext
11448 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11450 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11451 # Warning - without using the other run time loading flags,
11452 # -berok will link without error, but may produce a broken library.
11453 no_undefined_flag=' ${wl}-bernotok'
11454 allow_undefined_flag=' ${wl}-berok'
11455 if test "$with_gnu_ld" = yes; then
11456 # We only use this code for GNU lds that support --whole-archive.
11457 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11458 else
11459 # Exported symbols can be pulled into shared objects from archives
11460 whole_archive_flag_spec='$convenience'
11462 archive_cmds_need_lc=yes
11463 # This is similar to how AIX traditionally builds its shared libraries.
11464 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'
11469 amigaos*)
11470 case $host_cpu in
11471 powerpc)
11472 # see comment about AmigaOS4 .so support
11473 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11474 archive_expsym_cmds=''
11476 m68k)
11477 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)'
11478 hardcode_libdir_flag_spec='-L$libdir'
11479 hardcode_minus_L=yes
11481 esac
11484 bsdi[45]*)
11485 export_dynamic_flag_spec=-rdynamic
11488 cygwin* | mingw* | pw32* | cegcc*)
11489 # When not using gcc, we currently assume that we are using
11490 # Microsoft Visual C++.
11491 # hardcode_libdir_flag_spec is actually meaningless, as there is
11492 # no search path for DLLs.
11493 hardcode_libdir_flag_spec=' '
11494 allow_undefined_flag=unsupported
11495 # Tell ltmain to make .lib files, not .a files.
11496 libext=lib
11497 # Tell ltmain to make .dll files, not .so files.
11498 shrext_cmds=".dll"
11499 # FIXME: Setting linknames here is a bad hack.
11500 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11501 # The linker will automatically build a .lib file if we build a DLL.
11502 old_archive_from_new_cmds='true'
11503 # FIXME: Should let the user specify the lib program.
11504 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11505 fix_srcfile_path='`cygpath -w "$srcfile"`'
11506 enable_shared_with_static_runtimes=yes
11509 darwin* | rhapsody*)
11512 archive_cmds_need_lc=no
11513 hardcode_direct=no
11514 hardcode_automatic=yes
11515 hardcode_shlibpath_var=unsupported
11516 if test "$lt_cv_ld_force_load" = "yes"; then
11517 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\"`'
11518 else
11519 whole_archive_flag_spec=''
11521 link_all_deplibs=yes
11522 allow_undefined_flag="$_lt_dar_allow_undefined"
11523 case $cc_basename in
11524 ifort*) _lt_dar_can_shared=yes ;;
11525 *) _lt_dar_can_shared=$GCC ;;
11526 esac
11527 if test "$_lt_dar_can_shared" = "yes"; then
11528 output_verbose_link_cmd=func_echo_all
11529 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11530 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11531 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}"
11532 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}"
11534 else
11535 ld_shlibs=no
11540 dgux*)
11541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11542 hardcode_libdir_flag_spec='-L$libdir'
11543 hardcode_shlibpath_var=no
11546 freebsd1*)
11547 ld_shlibs=no
11550 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11551 # support. Future versions do this automatically, but an explicit c++rt0.o
11552 # does not break anything, and helps significantly (at the cost of a little
11553 # extra space).
11554 freebsd2.2*)
11555 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11556 hardcode_libdir_flag_spec='-R$libdir'
11557 hardcode_direct=yes
11558 hardcode_shlibpath_var=no
11561 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11562 freebsd2*)
11563 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11564 hardcode_direct=yes
11565 hardcode_minus_L=yes
11566 hardcode_shlibpath_var=no
11569 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11570 freebsd* | dragonfly*)
11571 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11572 hardcode_libdir_flag_spec='-R$libdir'
11573 hardcode_direct=yes
11574 hardcode_shlibpath_var=no
11577 hpux9*)
11578 if test "$GCC" = yes; then
11579 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'
11580 else
11581 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'
11583 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11584 hardcode_libdir_separator=:
11585 hardcode_direct=yes
11587 # hardcode_minus_L: Not really in the search PATH,
11588 # but as the default location of the library.
11589 hardcode_minus_L=yes
11590 export_dynamic_flag_spec='${wl}-E'
11593 hpux10*)
11594 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11595 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11596 else
11597 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11599 if test "$with_gnu_ld" = no; then
11600 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11601 hardcode_libdir_flag_spec_ld='+b $libdir'
11602 hardcode_libdir_separator=:
11603 hardcode_direct=yes
11604 hardcode_direct_absolute=yes
11605 export_dynamic_flag_spec='${wl}-E'
11606 # hardcode_minus_L: Not really in the search PATH,
11607 # but as the default location of the library.
11608 hardcode_minus_L=yes
11612 hpux11*)
11613 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11614 case $host_cpu in
11615 hppa*64*)
11616 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11618 ia64*)
11619 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11622 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11624 esac
11625 else
11626 case $host_cpu in
11627 hppa*64*)
11628 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11630 ia64*)
11631 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11635 # Older versions of the 11.00 compiler do not understand -b yet
11636 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11638 $as_echo_n "checking if $CC understands -b... " >&6; }
11639 if test "${lt_cv_prog_compiler__b+set}" = set; then :
11640 $as_echo_n "(cached) " >&6
11641 else
11642 lt_cv_prog_compiler__b=no
11643 save_LDFLAGS="$LDFLAGS"
11644 LDFLAGS="$LDFLAGS -b"
11645 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11646 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11647 # The linker can only warn and ignore the option if not recognized
11648 # So say no if there are warnings
11649 if test -s conftest.err; then
11650 # Append any errors to the config.log.
11651 cat conftest.err 1>&5
11652 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11653 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11654 if diff conftest.exp conftest.er2 >/dev/null; then
11655 lt_cv_prog_compiler__b=yes
11657 else
11658 lt_cv_prog_compiler__b=yes
11661 $RM -r conftest*
11662 LDFLAGS="$save_LDFLAGS"
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11666 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11668 if test x"$lt_cv_prog_compiler__b" = xyes; then
11669 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11670 else
11671 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11675 esac
11677 if test "$with_gnu_ld" = no; then
11678 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11679 hardcode_libdir_separator=:
11681 case $host_cpu in
11682 hppa*64*|ia64*)
11683 hardcode_direct=no
11684 hardcode_shlibpath_var=no
11687 hardcode_direct=yes
11688 hardcode_direct_absolute=yes
11689 export_dynamic_flag_spec='${wl}-E'
11691 # hardcode_minus_L: Not really in the search PATH,
11692 # but as the default location of the library.
11693 hardcode_minus_L=yes
11695 esac
11699 irix5* | irix6* | nonstopux*)
11700 if test "$GCC" = yes; then
11701 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'
11702 # Try to use the -exported_symbol ld option, if it does not
11703 # work, assume that -exports_file does not work either and
11704 # implicitly export all symbols.
11705 save_LDFLAGS="$LDFLAGS"
11706 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11707 if test x$gcc_no_link = xyes; then
11708 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11711 /* end confdefs.h. */
11712 int foo(void) {}
11713 _ACEOF
11714 if ac_fn_c_try_link "$LINENO"; then :
11715 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'
11718 rm -f core conftest.err conftest.$ac_objext \
11719 conftest$ac_exeext conftest.$ac_ext
11720 LDFLAGS="$save_LDFLAGS"
11721 else
11722 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'
11723 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'
11725 archive_cmds_need_lc='no'
11726 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11727 hardcode_libdir_separator=:
11728 inherit_rpath=yes
11729 link_all_deplibs=yes
11732 netbsd*)
11733 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11734 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11735 else
11736 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11738 hardcode_libdir_flag_spec='-R$libdir'
11739 hardcode_direct=yes
11740 hardcode_shlibpath_var=no
11743 newsos6)
11744 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11745 hardcode_direct=yes
11746 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11747 hardcode_libdir_separator=:
11748 hardcode_shlibpath_var=no
11751 *nto* | *qnx*)
11754 openbsd*)
11755 if test -f /usr/libexec/ld.so; then
11756 hardcode_direct=yes
11757 hardcode_shlibpath_var=no
11758 hardcode_direct_absolute=yes
11759 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11760 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11761 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11762 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11763 export_dynamic_flag_spec='${wl}-E'
11764 else
11765 case $host_os in
11766 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11767 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11768 hardcode_libdir_flag_spec='-R$libdir'
11771 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11772 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11774 esac
11776 else
11777 ld_shlibs=no
11781 os2*)
11782 hardcode_libdir_flag_spec='-L$libdir'
11783 hardcode_minus_L=yes
11784 allow_undefined_flag=unsupported
11785 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'
11786 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11789 osf3*)
11790 if test "$GCC" = yes; then
11791 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11792 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'
11793 else
11794 allow_undefined_flag=' -expect_unresolved \*'
11795 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'
11797 archive_cmds_need_lc='no'
11798 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11799 hardcode_libdir_separator=:
11802 osf4* | osf5*) # as osf3* with the addition of -msym flag
11803 if test "$GCC" = yes; then
11804 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11805 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'
11806 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11807 else
11808 allow_undefined_flag=' -expect_unresolved \*'
11809 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'
11810 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~
11811 $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'
11813 # Both c and cxx compiler support -rpath directly
11814 hardcode_libdir_flag_spec='-rpath $libdir'
11816 archive_cmds_need_lc='no'
11817 hardcode_libdir_separator=:
11820 solaris*)
11821 no_undefined_flag=' -z defs'
11822 if test "$GCC" = yes; then
11823 wlarc='${wl}'
11824 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11825 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11826 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11827 else
11828 case `$CC -V 2>&1` in
11829 *"Compilers 5.0"*)
11830 wlarc=''
11831 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11832 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11833 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11836 wlarc='${wl}'
11837 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11838 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11839 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11841 esac
11843 hardcode_libdir_flag_spec='-R$libdir'
11844 hardcode_shlibpath_var=no
11845 case $host_os in
11846 solaris2.[0-5] | solaris2.[0-5].*) ;;
11848 # The compiler driver will combine and reorder linker options,
11849 # but understands `-z linker_flag'. GCC discards it without `$wl',
11850 # but is careful enough not to reorder.
11851 # Supported since Solaris 2.6 (maybe 2.5.1?)
11852 if test "$GCC" = yes; then
11853 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11854 else
11855 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11858 esac
11859 link_all_deplibs=yes
11862 sunos4*)
11863 if test "x$host_vendor" = xsequent; then
11864 # Use $CC to link under sequent, because it throws in some extra .o
11865 # files that make .init and .fini sections work.
11866 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11867 else
11868 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11870 hardcode_libdir_flag_spec='-L$libdir'
11871 hardcode_direct=yes
11872 hardcode_minus_L=yes
11873 hardcode_shlibpath_var=no
11876 sysv4)
11877 case $host_vendor in
11878 sni)
11879 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11880 hardcode_direct=yes # is this really true???
11882 siemens)
11883 ## LD is ld it makes a PLAMLIB
11884 ## CC just makes a GrossModule.
11885 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11886 reload_cmds='$CC -r -o $output$reload_objs'
11887 hardcode_direct=no
11889 motorola)
11890 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11891 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11893 esac
11894 runpath_var='LD_RUN_PATH'
11895 hardcode_shlibpath_var=no
11898 sysv4.3*)
11899 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11900 hardcode_shlibpath_var=no
11901 export_dynamic_flag_spec='-Bexport'
11904 sysv4*MP*)
11905 if test -d /usr/nec; then
11906 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11907 hardcode_shlibpath_var=no
11908 runpath_var=LD_RUN_PATH
11909 hardcode_runpath_var=yes
11910 ld_shlibs=yes
11914 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11915 no_undefined_flag='${wl}-z,text'
11916 archive_cmds_need_lc=no
11917 hardcode_shlibpath_var=no
11918 runpath_var='LD_RUN_PATH'
11920 if test "$GCC" = yes; then
11921 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11922 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11923 else
11924 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11925 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11929 sysv5* | sco3.2v5* | sco5v6*)
11930 # Note: We can NOT use -z defs as we might desire, because we do not
11931 # link with -lc, and that would cause any symbols used from libc to
11932 # always be unresolved, which means just about no library would
11933 # ever link correctly. If we're not using GNU ld we use -z text
11934 # though, which does catch some bad symbols but isn't as heavy-handed
11935 # as -z defs.
11936 no_undefined_flag='${wl}-z,text'
11937 allow_undefined_flag='${wl}-z,nodefs'
11938 archive_cmds_need_lc=no
11939 hardcode_shlibpath_var=no
11940 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11941 hardcode_libdir_separator=':'
11942 link_all_deplibs=yes
11943 export_dynamic_flag_spec='${wl}-Bexport'
11944 runpath_var='LD_RUN_PATH'
11946 if test "$GCC" = yes; then
11947 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11948 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11949 else
11950 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11951 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11955 uts4*)
11956 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11957 hardcode_libdir_flag_spec='-L$libdir'
11958 hardcode_shlibpath_var=no
11962 ld_shlibs=no
11964 esac
11966 if test x$host_vendor = xsni; then
11967 case $host in
11968 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11969 export_dynamic_flag_spec='${wl}-Blargedynsym'
11971 esac
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11976 $as_echo "$ld_shlibs" >&6; }
11977 test "$ld_shlibs" = no && can_build_shared=no
11979 with_gnu_ld=$with_gnu_ld
11996 # Do we need to explicitly link libc?
11998 case "x$archive_cmds_need_lc" in
11999 x|xyes)
12000 # Assume -lc should be added
12001 archive_cmds_need_lc=yes
12003 if test "$enable_shared" = yes && test "$GCC" = yes; then
12004 case $archive_cmds in
12005 *'~'*)
12006 # FIXME: we may have to deal with multi-command sequences.
12008 '$CC '*)
12009 # Test whether the compiler implicitly links with -lc since on some
12010 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12011 # to ld, don't add -lc before -lgcc.
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12013 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12014 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
12015 $as_echo_n "(cached) " >&6
12016 else
12017 $RM conftest*
12018 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12021 (eval $ac_compile) 2>&5
12022 ac_status=$?
12023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12024 test $ac_status = 0; } 2>conftest.err; then
12025 soname=conftest
12026 lib=conftest
12027 libobjs=conftest.$ac_objext
12028 deplibs=
12029 wl=$lt_prog_compiler_wl
12030 pic_flag=$lt_prog_compiler_pic
12031 compiler_flags=-v
12032 linker_flags=-v
12033 verstring=
12034 output_objdir=.
12035 libname=conftest
12036 lt_save_allow_undefined_flag=$allow_undefined_flag
12037 allow_undefined_flag=
12038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12039 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12040 ac_status=$?
12041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12042 test $ac_status = 0; }
12043 then
12044 lt_cv_archive_cmds_need_lc=no
12045 else
12046 lt_cv_archive_cmds_need_lc=yes
12048 allow_undefined_flag=$lt_save_allow_undefined_flag
12049 else
12050 cat conftest.err 1>&5
12052 $RM conftest*
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12056 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12057 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12059 esac
12062 esac
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12221 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12223 if test "$GCC" = yes; then
12224 case $host_os in
12225 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12226 *) lt_awk_arg="/^libraries:/" ;;
12227 esac
12228 case $host_os in
12229 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12230 *) lt_sed_strip_eq="s,=/,/,g" ;;
12231 esac
12232 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12233 case $lt_search_path_spec in
12234 *\;*)
12235 # if the path contains ";" then we assume it to be the separator
12236 # otherwise default to the standard path separator (i.e. ":") - it is
12237 # assumed that no part of a normal pathname contains ";" but that should
12238 # okay in the real world where ";" in dirpaths is itself problematic.
12239 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12242 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12244 esac
12245 # Ok, now we have the path, separated by spaces, we can step through it
12246 # and add multilib dir if necessary.
12247 lt_tmp_lt_search_path_spec=
12248 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12249 for lt_sys_path in $lt_search_path_spec; do
12250 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12251 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12252 else
12253 test -d "$lt_sys_path" && \
12254 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12256 done
12257 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12258 BEGIN {RS=" "; FS="/|\n";} {
12259 lt_foo="";
12260 lt_count=0;
12261 for (lt_i = NF; lt_i > 0; lt_i--) {
12262 if ($lt_i != "" && $lt_i != ".") {
12263 if ($lt_i == "..") {
12264 lt_count++;
12265 } else {
12266 if (lt_count == 0) {
12267 lt_foo="/" $lt_i lt_foo;
12268 } else {
12269 lt_count--;
12274 if (lt_foo != "") { lt_freq[lt_foo]++; }
12275 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12277 # AWK program above erroneously prepends '/' to C:/dos/paths
12278 # for these hosts.
12279 case $host_os in
12280 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12281 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12282 esac
12283 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12284 else
12285 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12287 library_names_spec=
12288 libname_spec='lib$name'
12289 soname_spec=
12290 shrext_cmds=".so"
12291 postinstall_cmds=
12292 postuninstall_cmds=
12293 finish_cmds=
12294 finish_eval=
12295 shlibpath_var=
12296 shlibpath_overrides_runpath=unknown
12297 version_type=none
12298 dynamic_linker="$host_os ld.so"
12299 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12300 need_lib_prefix=unknown
12301 hardcode_into_libs=no
12303 # when you set need_version to no, make sure it does not cause -set_version
12304 # flags to be left without arguments
12305 need_version=unknown
12307 case $host_os in
12308 aix3*)
12309 version_type=linux
12310 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12311 shlibpath_var=LIBPATH
12313 # AIX 3 has no versioning support, so we append a major version to the name.
12314 soname_spec='${libname}${release}${shared_ext}$major'
12317 aix[4-9]*)
12318 version_type=linux
12319 need_lib_prefix=no
12320 need_version=no
12321 hardcode_into_libs=yes
12322 if test "$host_cpu" = ia64; then
12323 # AIX 5 supports IA64
12324 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12325 shlibpath_var=LD_LIBRARY_PATH
12326 else
12327 # With GCC up to 2.95.x, collect2 would create an import file
12328 # for dependence libraries. The import file would start with
12329 # the line `#! .'. This would cause the generated library to
12330 # depend on `.', always an invalid library. This was fixed in
12331 # development snapshots of GCC prior to 3.0.
12332 case $host_os in
12333 aix4 | aix4.[01] | aix4.[01].*)
12334 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12335 echo ' yes '
12336 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12338 else
12339 can_build_shared=no
12342 esac
12343 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12344 # soname into executable. Probably we can add versioning support to
12345 # collect2, so additional links can be useful in future.
12346 if test "$aix_use_runtimelinking" = yes; then
12347 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12348 # instead of lib<name>.a to let people know that these are not
12349 # typical AIX shared libraries.
12350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12351 else
12352 # We preserve .a as extension for shared libraries through AIX4.2
12353 # and later when we are not doing run time linking.
12354 library_names_spec='${libname}${release}.a $libname.a'
12355 soname_spec='${libname}${release}${shared_ext}$major'
12357 shlibpath_var=LIBPATH
12361 amigaos*)
12362 case $host_cpu in
12363 powerpc)
12364 # Since July 2007 AmigaOS4 officially supports .so libraries.
12365 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12368 m68k)
12369 library_names_spec='$libname.ixlibrary $libname.a'
12370 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12371 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'
12373 esac
12376 beos*)
12377 library_names_spec='${libname}${shared_ext}'
12378 dynamic_linker="$host_os ld.so"
12379 shlibpath_var=LIBRARY_PATH
12382 bsdi[45]*)
12383 version_type=linux
12384 need_version=no
12385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12386 soname_spec='${libname}${release}${shared_ext}$major'
12387 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12388 shlibpath_var=LD_LIBRARY_PATH
12389 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12390 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12391 # the default ld.so.conf also contains /usr/contrib/lib and
12392 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12393 # libtool to hard-code these into programs
12396 cygwin* | mingw* | pw32* | cegcc*)
12397 version_type=windows
12398 shrext_cmds=".dll"
12399 need_version=no
12400 need_lib_prefix=no
12402 case $GCC,$host_os in
12403 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12404 library_names_spec='$libname.dll.a'
12405 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12406 postinstall_cmds='base_file=`basename \${file}`~
12407 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12408 dldir=$destdir/`dirname \$dlpath`~
12409 test -d \$dldir || mkdir -p \$dldir~
12410 $install_prog $dir/$dlname \$dldir/$dlname~
12411 chmod a+x \$dldir/$dlname~
12412 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12413 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12415 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12416 dlpath=$dir/\$dldll~
12417 $RM \$dlpath'
12418 shlibpath_overrides_runpath=yes
12420 case $host_os in
12421 cygwin*)
12422 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12423 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12425 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12427 mingw* | cegcc*)
12428 # MinGW DLLs use traditional 'lib' prefix
12429 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12431 pw32*)
12432 # pw32 DLLs use 'pw' prefix rather than 'lib'
12433 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12435 esac
12439 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12441 esac
12442 dynamic_linker='Win32 ld.exe'
12443 # FIXME: first we should search . and the directory the executable is in
12444 shlibpath_var=PATH
12447 darwin* | rhapsody*)
12448 dynamic_linker="$host_os dyld"
12449 version_type=darwin
12450 need_lib_prefix=no
12451 need_version=no
12452 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12453 soname_spec='${libname}${release}${major}$shared_ext'
12454 shlibpath_overrides_runpath=yes
12455 shlibpath_var=DYLD_LIBRARY_PATH
12456 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12458 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12459 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12462 dgux*)
12463 version_type=linux
12464 need_lib_prefix=no
12465 need_version=no
12466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12467 soname_spec='${libname}${release}${shared_ext}$major'
12468 shlibpath_var=LD_LIBRARY_PATH
12471 freebsd1*)
12472 dynamic_linker=no
12475 freebsd* | dragonfly*)
12476 # DragonFly does not have aout. When/if they implement a new
12477 # versioning mechanism, adjust this.
12478 if test -x /usr/bin/objformat; then
12479 objformat=`/usr/bin/objformat`
12480 else
12481 case $host_os in
12482 freebsd[123]*) objformat=aout ;;
12483 *) objformat=elf ;;
12484 esac
12486 version_type=freebsd-$objformat
12487 case $version_type in
12488 freebsd-elf*)
12489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12490 need_version=no
12491 need_lib_prefix=no
12493 freebsd-*)
12494 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12495 need_version=yes
12497 esac
12498 shlibpath_var=LD_LIBRARY_PATH
12499 case $host_os in
12500 freebsd2*)
12501 shlibpath_overrides_runpath=yes
12503 freebsd3.[01]* | freebsdelf3.[01]*)
12504 shlibpath_overrides_runpath=yes
12505 hardcode_into_libs=yes
12507 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12508 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12509 shlibpath_overrides_runpath=no
12510 hardcode_into_libs=yes
12512 *) # from 4.6 on, and DragonFly
12513 shlibpath_overrides_runpath=yes
12514 hardcode_into_libs=yes
12516 esac
12519 gnu*)
12520 version_type=linux
12521 need_lib_prefix=no
12522 need_version=no
12523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12524 soname_spec='${libname}${release}${shared_ext}$major'
12525 shlibpath_var=LD_LIBRARY_PATH
12526 hardcode_into_libs=yes
12529 haiku*)
12530 version_type=linux
12531 need_lib_prefix=no
12532 need_version=no
12533 dynamic_linker="$host_os runtime_loader"
12534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12535 soname_spec='${libname}${release}${shared_ext}$major'
12536 shlibpath_var=LIBRARY_PATH
12537 shlibpath_overrides_runpath=yes
12538 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
12539 hardcode_into_libs=yes
12542 hpux9* | hpux10* | hpux11*)
12543 # Give a soname corresponding to the major version so that dld.sl refuses to
12544 # link against other versions.
12545 version_type=sunos
12546 need_lib_prefix=no
12547 need_version=no
12548 case $host_cpu in
12549 ia64*)
12550 shrext_cmds='.so'
12551 hardcode_into_libs=yes
12552 dynamic_linker="$host_os dld.so"
12553 shlibpath_var=LD_LIBRARY_PATH
12554 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12556 soname_spec='${libname}${release}${shared_ext}$major'
12557 if test "X$HPUX_IA64_MODE" = X32; then
12558 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12559 else
12560 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12562 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12564 hppa*64*)
12565 shrext_cmds='.sl'
12566 hardcode_into_libs=yes
12567 dynamic_linker="$host_os dld.sl"
12568 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12569 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12571 soname_spec='${libname}${release}${shared_ext}$major'
12572 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12573 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12576 shrext_cmds='.sl'
12577 dynamic_linker="$host_os dld.sl"
12578 shlibpath_var=SHLIB_PATH
12579 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12581 soname_spec='${libname}${release}${shared_ext}$major'
12583 esac
12584 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12585 postinstall_cmds='chmod 555 $lib'
12586 # or fails outright, so override atomically:
12587 install_override_mode=555
12590 interix[3-9]*)
12591 version_type=linux
12592 need_lib_prefix=no
12593 need_version=no
12594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12595 soname_spec='${libname}${release}${shared_ext}$major'
12596 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12597 shlibpath_var=LD_LIBRARY_PATH
12598 shlibpath_overrides_runpath=no
12599 hardcode_into_libs=yes
12602 irix5* | irix6* | nonstopux*)
12603 case $host_os in
12604 nonstopux*) version_type=nonstopux ;;
12606 if test "$lt_cv_prog_gnu_ld" = yes; then
12607 version_type=linux
12608 else
12609 version_type=irix
12610 fi ;;
12611 esac
12612 need_lib_prefix=no
12613 need_version=no
12614 soname_spec='${libname}${release}${shared_ext}$major'
12615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12616 case $host_os in
12617 irix5* | nonstopux*)
12618 libsuff= shlibsuff=
12621 case $LD in # libtool.m4 will add one of these switches to LD
12622 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12623 libsuff= shlibsuff= libmagic=32-bit;;
12624 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12625 libsuff=32 shlibsuff=N32 libmagic=N32;;
12626 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12627 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12628 *) libsuff= shlibsuff= libmagic=never-match;;
12629 esac
12631 esac
12632 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12633 shlibpath_overrides_runpath=no
12634 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12635 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12636 hardcode_into_libs=yes
12639 # No shared lib support for Linux oldld, aout, or coff.
12640 linux*oldld* | linux*aout* | linux*coff*)
12641 dynamic_linker=no
12644 # This must be Linux ELF.
12645 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12646 version_type=linux
12647 need_lib_prefix=no
12648 need_version=no
12649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12650 soname_spec='${libname}${release}${shared_ext}$major'
12651 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12652 shlibpath_var=LD_LIBRARY_PATH
12653 shlibpath_overrides_runpath=no
12655 # Some binutils ld are patched to set DT_RUNPATH
12656 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
12657 $as_echo_n "(cached) " >&6
12658 else
12659 lt_cv_shlibpath_overrides_runpath=no
12660 save_LDFLAGS=$LDFLAGS
12661 save_libdir=$libdir
12662 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12663 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12664 if test x$gcc_no_link = xyes; then
12665 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12668 /* end confdefs.h. */
12671 main ()
12675 return 0;
12677 _ACEOF
12678 if ac_fn_c_try_link "$LINENO"; then :
12679 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12680 lt_cv_shlibpath_overrides_runpath=yes
12683 rm -f core conftest.err conftest.$ac_objext \
12684 conftest$ac_exeext conftest.$ac_ext
12685 LDFLAGS=$save_LDFLAGS
12686 libdir=$save_libdir
12690 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12692 # This implies no fast_install, which is unacceptable.
12693 # Some rework will be needed to allow for fast_install
12694 # before this can be enabled.
12695 hardcode_into_libs=yes
12697 # Append ld.so.conf contents to the search path
12698 if test -f /etc/ld.so.conf; then
12699 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' ' '`
12700 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12703 # We used to test for /lib/ld.so.1 and disable shared libraries on
12704 # powerpc, because MkLinux only supported shared libraries with the
12705 # GNU dynamic linker. Since this was broken with cross compilers,
12706 # most powerpc-linux boxes support dynamic linking these days and
12707 # people can always --disable-shared, the test was removed, and we
12708 # assume the GNU/Linux dynamic linker is in use.
12709 dynamic_linker='GNU/Linux ld.so'
12712 netbsd*)
12713 version_type=sunos
12714 need_lib_prefix=no
12715 need_version=no
12716 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12718 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12719 dynamic_linker='NetBSD (a.out) ld.so'
12720 else
12721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12722 soname_spec='${libname}${release}${shared_ext}$major'
12723 dynamic_linker='NetBSD ld.elf_so'
12725 shlibpath_var=LD_LIBRARY_PATH
12726 shlibpath_overrides_runpath=yes
12727 hardcode_into_libs=yes
12730 newsos6)
12731 version_type=linux
12732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12733 shlibpath_var=LD_LIBRARY_PATH
12734 shlibpath_overrides_runpath=yes
12737 *nto* | *qnx*)
12738 version_type=qnx
12739 need_lib_prefix=no
12740 need_version=no
12741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12742 soname_spec='${libname}${release}${shared_ext}$major'
12743 shlibpath_var=LD_LIBRARY_PATH
12744 shlibpath_overrides_runpath=no
12745 hardcode_into_libs=yes
12746 dynamic_linker='ldqnx.so'
12749 openbsd*)
12750 version_type=sunos
12751 sys_lib_dlsearch_path_spec="/usr/lib"
12752 need_lib_prefix=no
12753 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12754 case $host_os in
12755 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12756 *) need_version=no ;;
12757 esac
12758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12759 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12760 shlibpath_var=LD_LIBRARY_PATH
12761 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12762 case $host_os in
12763 openbsd2.[89] | openbsd2.[89].*)
12764 shlibpath_overrides_runpath=no
12767 shlibpath_overrides_runpath=yes
12769 esac
12770 else
12771 shlibpath_overrides_runpath=yes
12775 os2*)
12776 libname_spec='$name'
12777 shrext_cmds=".dll"
12778 need_lib_prefix=no
12779 library_names_spec='$libname${shared_ext} $libname.a'
12780 dynamic_linker='OS/2 ld.exe'
12781 shlibpath_var=LIBPATH
12784 osf3* | osf4* | osf5*)
12785 version_type=osf
12786 need_lib_prefix=no
12787 need_version=no
12788 soname_spec='${libname}${release}${shared_ext}$major'
12789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12790 shlibpath_var=LD_LIBRARY_PATH
12791 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12792 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12795 rdos*)
12796 dynamic_linker=no
12799 solaris*)
12800 version_type=linux
12801 need_lib_prefix=no
12802 need_version=no
12803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12804 soname_spec='${libname}${release}${shared_ext}$major'
12805 shlibpath_var=LD_LIBRARY_PATH
12806 shlibpath_overrides_runpath=yes
12807 hardcode_into_libs=yes
12808 # ldd complains unless libraries are executable
12809 postinstall_cmds='chmod +x $lib'
12812 sunos4*)
12813 version_type=sunos
12814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12815 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12816 shlibpath_var=LD_LIBRARY_PATH
12817 shlibpath_overrides_runpath=yes
12818 if test "$with_gnu_ld" = yes; then
12819 need_lib_prefix=no
12821 need_version=yes
12824 sysv4 | sysv4.3*)
12825 version_type=linux
12826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12827 soname_spec='${libname}${release}${shared_ext}$major'
12828 shlibpath_var=LD_LIBRARY_PATH
12829 case $host_vendor in
12830 sni)
12831 shlibpath_overrides_runpath=no
12832 need_lib_prefix=no
12833 runpath_var=LD_RUN_PATH
12835 siemens)
12836 need_lib_prefix=no
12838 motorola)
12839 need_lib_prefix=no
12840 need_version=no
12841 shlibpath_overrides_runpath=no
12842 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12844 esac
12847 sysv4*MP*)
12848 if test -d /usr/nec ;then
12849 version_type=linux
12850 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12851 soname_spec='$libname${shared_ext}.$major'
12852 shlibpath_var=LD_LIBRARY_PATH
12856 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12857 version_type=freebsd-elf
12858 need_lib_prefix=no
12859 need_version=no
12860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12861 soname_spec='${libname}${release}${shared_ext}$major'
12862 shlibpath_var=LD_LIBRARY_PATH
12863 shlibpath_overrides_runpath=yes
12864 hardcode_into_libs=yes
12865 if test "$with_gnu_ld" = yes; then
12866 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12867 else
12868 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12869 case $host_os in
12870 sco3.2v5*)
12871 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12873 esac
12875 sys_lib_dlsearch_path_spec='/usr/lib'
12878 tpf*)
12879 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12880 version_type=linux
12881 need_lib_prefix=no
12882 need_version=no
12883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12884 shlibpath_var=LD_LIBRARY_PATH
12885 shlibpath_overrides_runpath=no
12886 hardcode_into_libs=yes
12889 uts4*)
12890 version_type=linux
12891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12892 soname_spec='${libname}${release}${shared_ext}$major'
12893 shlibpath_var=LD_LIBRARY_PATH
12897 dynamic_linker=no
12899 esac
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12901 $as_echo "$dynamic_linker" >&6; }
12902 test "$dynamic_linker" = no && can_build_shared=no
12904 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12905 if test "$GCC" = yes; then
12906 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12909 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12910 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12912 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12913 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13008 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13009 hardcode_action=
13010 if test -n "$hardcode_libdir_flag_spec" ||
13011 test -n "$runpath_var" ||
13012 test "X$hardcode_automatic" = "Xyes" ; then
13014 # We can hardcode non-existent directories.
13015 if test "$hardcode_direct" != no &&
13016 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13017 # have to relink, otherwise we might link with an installed library
13018 # when we should be linking with a yet-to-be-installed one
13019 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13020 test "$hardcode_minus_L" != no; then
13021 # Linking always hardcodes the temporary library directory.
13022 hardcode_action=relink
13023 else
13024 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13025 hardcode_action=immediate
13027 else
13028 # We cannot hardcode anything, or else we can only hardcode existing
13029 # directories.
13030 hardcode_action=unsupported
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13033 $as_echo "$hardcode_action" >&6; }
13035 if test "$hardcode_action" = relink ||
13036 test "$inherit_rpath" = yes; then
13037 # Fast installation is not supported
13038 enable_fast_install=no
13039 elif test "$shlibpath_overrides_runpath" = yes ||
13040 test "$enable_shared" = no; then
13041 # Fast installation is not necessary
13042 enable_fast_install=needless
13050 if test "x$enable_dlopen" != xyes; then
13051 enable_dlopen=unknown
13052 enable_dlopen_self=unknown
13053 enable_dlopen_self_static=unknown
13054 else
13055 lt_cv_dlopen=no
13056 lt_cv_dlopen_libs=
13058 case $host_os in
13059 beos*)
13060 lt_cv_dlopen="load_add_on"
13061 lt_cv_dlopen_libs=
13062 lt_cv_dlopen_self=yes
13065 mingw* | pw32* | cegcc*)
13066 lt_cv_dlopen="LoadLibrary"
13067 lt_cv_dlopen_libs=
13070 cygwin*)
13071 lt_cv_dlopen="dlopen"
13072 lt_cv_dlopen_libs=
13075 darwin*)
13076 # if libdl is installed we need to link against it
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13078 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13079 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13080 $as_echo_n "(cached) " >&6
13081 else
13082 ac_check_lib_save_LIBS=$LIBS
13083 LIBS="-ldl $LIBS"
13084 if test x$gcc_no_link = xyes; then
13085 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13088 /* end confdefs.h. */
13090 /* Override any GCC internal prototype to avoid an error.
13091 Use char because int might match the return type of a GCC
13092 builtin and then its argument prototype would still apply. */
13093 #ifdef __cplusplus
13094 extern "C"
13095 #endif
13096 char dlopen ();
13098 main ()
13100 return dlopen ();
13102 return 0;
13104 _ACEOF
13105 if ac_fn_c_try_link "$LINENO"; then :
13106 ac_cv_lib_dl_dlopen=yes
13107 else
13108 ac_cv_lib_dl_dlopen=no
13110 rm -f core conftest.err conftest.$ac_objext \
13111 conftest$ac_exeext conftest.$ac_ext
13112 LIBS=$ac_check_lib_save_LIBS
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13115 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13116 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13117 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13118 else
13120 lt_cv_dlopen="dyld"
13121 lt_cv_dlopen_libs=
13122 lt_cv_dlopen_self=yes
13129 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13130 if test "x$ac_cv_func_shl_load" = x""yes; then :
13131 lt_cv_dlopen="shl_load"
13132 else
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13134 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13135 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13136 $as_echo_n "(cached) " >&6
13137 else
13138 ac_check_lib_save_LIBS=$LIBS
13139 LIBS="-ldld $LIBS"
13140 if test x$gcc_no_link = xyes; then
13141 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13144 /* end confdefs.h. */
13146 /* Override any GCC internal prototype to avoid an error.
13147 Use char because int might match the return type of a GCC
13148 builtin and then its argument prototype would still apply. */
13149 #ifdef __cplusplus
13150 extern "C"
13151 #endif
13152 char shl_load ();
13154 main ()
13156 return shl_load ();
13158 return 0;
13160 _ACEOF
13161 if ac_fn_c_try_link "$LINENO"; then :
13162 ac_cv_lib_dld_shl_load=yes
13163 else
13164 ac_cv_lib_dld_shl_load=no
13166 rm -f core conftest.err conftest.$ac_objext \
13167 conftest$ac_exeext conftest.$ac_ext
13168 LIBS=$ac_check_lib_save_LIBS
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13171 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13172 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13173 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13174 else
13175 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13176 if test "x$ac_cv_func_dlopen" = x""yes; then :
13177 lt_cv_dlopen="dlopen"
13178 else
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13180 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13181 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13182 $as_echo_n "(cached) " >&6
13183 else
13184 ac_check_lib_save_LIBS=$LIBS
13185 LIBS="-ldl $LIBS"
13186 if test x$gcc_no_link = xyes; then
13187 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13190 /* end confdefs.h. */
13192 /* Override any GCC internal prototype to avoid an error.
13193 Use char because int might match the return type of a GCC
13194 builtin and then its argument prototype would still apply. */
13195 #ifdef __cplusplus
13196 extern "C"
13197 #endif
13198 char dlopen ();
13200 main ()
13202 return dlopen ();
13204 return 0;
13206 _ACEOF
13207 if ac_fn_c_try_link "$LINENO"; then :
13208 ac_cv_lib_dl_dlopen=yes
13209 else
13210 ac_cv_lib_dl_dlopen=no
13212 rm -f core conftest.err conftest.$ac_objext \
13213 conftest$ac_exeext conftest.$ac_ext
13214 LIBS=$ac_check_lib_save_LIBS
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13217 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13218 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13219 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13220 else
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13222 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13223 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13224 $as_echo_n "(cached) " >&6
13225 else
13226 ac_check_lib_save_LIBS=$LIBS
13227 LIBS="-lsvld $LIBS"
13228 if test x$gcc_no_link = xyes; then
13229 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13232 /* end confdefs.h. */
13234 /* Override any GCC internal prototype to avoid an error.
13235 Use char because int might match the return type of a GCC
13236 builtin and then its argument prototype would still apply. */
13237 #ifdef __cplusplus
13238 extern "C"
13239 #endif
13240 char dlopen ();
13242 main ()
13244 return dlopen ();
13246 return 0;
13248 _ACEOF
13249 if ac_fn_c_try_link "$LINENO"; then :
13250 ac_cv_lib_svld_dlopen=yes
13251 else
13252 ac_cv_lib_svld_dlopen=no
13254 rm -f core conftest.err conftest.$ac_objext \
13255 conftest$ac_exeext conftest.$ac_ext
13256 LIBS=$ac_check_lib_save_LIBS
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13259 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13260 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13261 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13262 else
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13264 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13265 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13266 $as_echo_n "(cached) " >&6
13267 else
13268 ac_check_lib_save_LIBS=$LIBS
13269 LIBS="-ldld $LIBS"
13270 if test x$gcc_no_link = xyes; then
13271 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13274 /* end confdefs.h. */
13276 /* Override any GCC internal prototype to avoid an error.
13277 Use char because int might match the return type of a GCC
13278 builtin and then its argument prototype would still apply. */
13279 #ifdef __cplusplus
13280 extern "C"
13281 #endif
13282 char dld_link ();
13284 main ()
13286 return dld_link ();
13288 return 0;
13290 _ACEOF
13291 if ac_fn_c_try_link "$LINENO"; then :
13292 ac_cv_lib_dld_dld_link=yes
13293 else
13294 ac_cv_lib_dld_dld_link=no
13296 rm -f core conftest.err conftest.$ac_objext \
13297 conftest$ac_exeext conftest.$ac_ext
13298 LIBS=$ac_check_lib_save_LIBS
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13301 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13302 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13303 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13322 esac
13324 if test "x$lt_cv_dlopen" != xno; then
13325 enable_dlopen=yes
13326 else
13327 enable_dlopen=no
13330 case $lt_cv_dlopen in
13331 dlopen)
13332 save_CPPFLAGS="$CPPFLAGS"
13333 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13335 save_LDFLAGS="$LDFLAGS"
13336 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13338 save_LIBS="$LIBS"
13339 LIBS="$lt_cv_dlopen_libs $LIBS"
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13342 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13343 if test "${lt_cv_dlopen_self+set}" = set; then :
13344 $as_echo_n "(cached) " >&6
13345 else
13346 if test "$cross_compiling" = yes; then :
13347 lt_cv_dlopen_self=cross
13348 else
13349 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13350 lt_status=$lt_dlunknown
13351 cat > conftest.$ac_ext <<_LT_EOF
13352 #line 13352 "configure"
13353 #include "confdefs.h"
13355 #if HAVE_DLFCN_H
13356 #include <dlfcn.h>
13357 #endif
13359 #include <stdio.h>
13361 #ifdef RTLD_GLOBAL
13362 # define LT_DLGLOBAL RTLD_GLOBAL
13363 #else
13364 # ifdef DL_GLOBAL
13365 # define LT_DLGLOBAL DL_GLOBAL
13366 # else
13367 # define LT_DLGLOBAL 0
13368 # endif
13369 #endif
13371 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13372 find out it does not work in some platform. */
13373 #ifndef LT_DLLAZY_OR_NOW
13374 # ifdef RTLD_LAZY
13375 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13376 # else
13377 # ifdef DL_LAZY
13378 # define LT_DLLAZY_OR_NOW DL_LAZY
13379 # else
13380 # ifdef RTLD_NOW
13381 # define LT_DLLAZY_OR_NOW RTLD_NOW
13382 # else
13383 # ifdef DL_NOW
13384 # define LT_DLLAZY_OR_NOW DL_NOW
13385 # else
13386 # define LT_DLLAZY_OR_NOW 0
13387 # endif
13388 # endif
13389 # endif
13390 # endif
13391 #endif
13393 /* When -fvisbility=hidden is used, assume the code has been annotated
13394 correspondingly for the symbols needed. */
13395 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13396 void fnord () __attribute__((visibility("default")));
13397 #endif
13399 void fnord () { int i=42; }
13400 int main ()
13402 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13403 int status = $lt_dlunknown;
13405 if (self)
13407 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13408 else
13410 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13411 else puts (dlerror ());
13413 /* dlclose (self); */
13415 else
13416 puts (dlerror ());
13418 return status;
13420 _LT_EOF
13421 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13422 (eval $ac_link) 2>&5
13423 ac_status=$?
13424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13425 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13426 (./conftest; exit; ) >&5 2>/dev/null
13427 lt_status=$?
13428 case x$lt_status in
13429 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13430 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13431 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13432 esac
13433 else :
13434 # compilation failed
13435 lt_cv_dlopen_self=no
13438 rm -fr conftest*
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13443 $as_echo "$lt_cv_dlopen_self" >&6; }
13445 if test "x$lt_cv_dlopen_self" = xyes; then
13446 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13448 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13449 if test "${lt_cv_dlopen_self_static+set}" = set; then :
13450 $as_echo_n "(cached) " >&6
13451 else
13452 if test "$cross_compiling" = yes; then :
13453 lt_cv_dlopen_self_static=cross
13454 else
13455 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13456 lt_status=$lt_dlunknown
13457 cat > conftest.$ac_ext <<_LT_EOF
13458 #line 13458 "configure"
13459 #include "confdefs.h"
13461 #if HAVE_DLFCN_H
13462 #include <dlfcn.h>
13463 #endif
13465 #include <stdio.h>
13467 #ifdef RTLD_GLOBAL
13468 # define LT_DLGLOBAL RTLD_GLOBAL
13469 #else
13470 # ifdef DL_GLOBAL
13471 # define LT_DLGLOBAL DL_GLOBAL
13472 # else
13473 # define LT_DLGLOBAL 0
13474 # endif
13475 #endif
13477 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13478 find out it does not work in some platform. */
13479 #ifndef LT_DLLAZY_OR_NOW
13480 # ifdef RTLD_LAZY
13481 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13482 # else
13483 # ifdef DL_LAZY
13484 # define LT_DLLAZY_OR_NOW DL_LAZY
13485 # else
13486 # ifdef RTLD_NOW
13487 # define LT_DLLAZY_OR_NOW RTLD_NOW
13488 # else
13489 # ifdef DL_NOW
13490 # define LT_DLLAZY_OR_NOW DL_NOW
13491 # else
13492 # define LT_DLLAZY_OR_NOW 0
13493 # endif
13494 # endif
13495 # endif
13496 # endif
13497 #endif
13499 /* When -fvisbility=hidden is used, assume the code has been annotated
13500 correspondingly for the symbols needed. */
13501 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13502 void fnord () __attribute__((visibility("default")));
13503 #endif
13505 void fnord () { int i=42; }
13506 int main ()
13508 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13509 int status = $lt_dlunknown;
13511 if (self)
13513 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13514 else
13516 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13517 else puts (dlerror ());
13519 /* dlclose (self); */
13521 else
13522 puts (dlerror ());
13524 return status;
13526 _LT_EOF
13527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13528 (eval $ac_link) 2>&5
13529 ac_status=$?
13530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13531 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13532 (./conftest; exit; ) >&5 2>/dev/null
13533 lt_status=$?
13534 case x$lt_status in
13535 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13536 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13537 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13538 esac
13539 else :
13540 # compilation failed
13541 lt_cv_dlopen_self_static=no
13544 rm -fr conftest*
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13549 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13552 CPPFLAGS="$save_CPPFLAGS"
13553 LDFLAGS="$save_LDFLAGS"
13554 LIBS="$save_LIBS"
13556 esac
13558 case $lt_cv_dlopen_self in
13559 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13560 *) enable_dlopen_self=unknown ;;
13561 esac
13563 case $lt_cv_dlopen_self_static in
13564 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13565 *) enable_dlopen_self_static=unknown ;;
13566 esac
13585 striplib=
13586 old_striplib=
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13588 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13589 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13590 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13591 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13593 $as_echo "yes" >&6; }
13594 else
13595 # FIXME - insert some real tests, host_os isn't really good enough
13596 case $host_os in
13597 darwin*)
13598 if test -n "$STRIP" ; then
13599 striplib="$STRIP -x"
13600 old_striplib="$STRIP -S"
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13602 $as_echo "yes" >&6; }
13603 else
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13605 $as_echo "no" >&6; }
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13610 $as_echo "no" >&6; }
13612 esac
13626 # Report which library types will actually be built
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13628 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13630 $as_echo "$can_build_shared" >&6; }
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13633 $as_echo_n "checking whether to build shared libraries... " >&6; }
13634 test "$can_build_shared" = "no" && enable_shared=no
13636 # On AIX, shared libraries and static libraries use the same namespace, and
13637 # are all built from PIC.
13638 case $host_os in
13639 aix3*)
13640 test "$enable_shared" = yes && enable_static=no
13641 if test -n "$RANLIB"; then
13642 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13643 postinstall_cmds='$RANLIB $lib'
13647 aix[4-9]*)
13648 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13649 test "$enable_shared" = yes && enable_static=no
13652 esac
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13654 $as_echo "$enable_shared" >&6; }
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13657 $as_echo_n "checking whether to build static libraries... " >&6; }
13658 # Make sure either enable_shared or enable_static is yes.
13659 test "$enable_shared" = yes || enable_static=yes
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13661 $as_echo "$enable_static" >&6; }
13667 ac_ext=c
13668 ac_cpp='$CPP $CPPFLAGS'
13669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13673 CC="$lt_save_CC"
13675 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13676 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13677 (test "X$CXX" != "Xg++"))) ; then
13678 ac_ext=cpp
13679 ac_cpp='$CXXCPP $CPPFLAGS'
13680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13684 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13685 if test -z "$CXXCPP"; then
13686 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13687 $as_echo_n "(cached) " >&6
13688 else
13689 # Double quotes because CXXCPP needs to be expanded
13690 for CXXCPP in "$CXX -E" "/lib/cpp"
13692 ac_preproc_ok=false
13693 for ac_cxx_preproc_warn_flag in '' yes
13695 # Use a header file that comes with gcc, so configuring glibc
13696 # with a fresh cross-compiler works.
13697 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13698 # <limits.h> exists even on freestanding compilers.
13699 # On the NeXT, cc -E runs the code through the compiler's parser,
13700 # not just through cpp. "Syntax error" is here to catch this case.
13701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702 /* end confdefs.h. */
13703 #ifdef __STDC__
13704 # include <limits.h>
13705 #else
13706 # include <assert.h>
13707 #endif
13708 Syntax error
13709 _ACEOF
13710 if ac_fn_cxx_try_cpp "$LINENO"; then :
13712 else
13713 # Broken: fails on valid input.
13714 continue
13716 rm -f conftest.err conftest.$ac_ext
13718 # OK, works on sane cases. Now check whether nonexistent headers
13719 # can be detected and how.
13720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13721 /* end confdefs.h. */
13722 #include <ac_nonexistent.h>
13723 _ACEOF
13724 if ac_fn_cxx_try_cpp "$LINENO"; then :
13725 # Broken: success on invalid input.
13726 continue
13727 else
13728 # Passes both tests.
13729 ac_preproc_ok=:
13730 break
13732 rm -f conftest.err conftest.$ac_ext
13734 done
13735 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13736 rm -f conftest.err conftest.$ac_ext
13737 if $ac_preproc_ok; then :
13738 break
13741 done
13742 ac_cv_prog_CXXCPP=$CXXCPP
13745 CXXCPP=$ac_cv_prog_CXXCPP
13746 else
13747 ac_cv_prog_CXXCPP=$CXXCPP
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13750 $as_echo "$CXXCPP" >&6; }
13751 ac_preproc_ok=false
13752 for ac_cxx_preproc_warn_flag in '' yes
13754 # Use a header file that comes with gcc, so configuring glibc
13755 # with a fresh cross-compiler works.
13756 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13757 # <limits.h> exists even on freestanding compilers.
13758 # On the NeXT, cc -E runs the code through the compiler's parser,
13759 # not just through cpp. "Syntax error" is here to catch this case.
13760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13761 /* end confdefs.h. */
13762 #ifdef __STDC__
13763 # include <limits.h>
13764 #else
13765 # include <assert.h>
13766 #endif
13767 Syntax error
13768 _ACEOF
13769 if ac_fn_cxx_try_cpp "$LINENO"; then :
13771 else
13772 # Broken: fails on valid input.
13773 continue
13775 rm -f conftest.err conftest.$ac_ext
13777 # OK, works on sane cases. Now check whether nonexistent headers
13778 # can be detected and how.
13779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13780 /* end confdefs.h. */
13781 #include <ac_nonexistent.h>
13782 _ACEOF
13783 if ac_fn_cxx_try_cpp "$LINENO"; then :
13784 # Broken: success on invalid input.
13785 continue
13786 else
13787 # Passes both tests.
13788 ac_preproc_ok=:
13789 break
13791 rm -f conftest.err conftest.$ac_ext
13793 done
13794 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13795 rm -f conftest.err conftest.$ac_ext
13796 if $ac_preproc_ok; then :
13798 else
13799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13801 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
13802 See \`config.log' for more details." "$LINENO" 5; }
13805 ac_ext=c
13806 ac_cpp='$CPP $CPPFLAGS'
13807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13811 else
13812 _lt_caught_CXX_error=yes
13815 ac_ext=cpp
13816 ac_cpp='$CXXCPP $CPPFLAGS'
13817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13821 archive_cmds_need_lc_CXX=no
13822 allow_undefined_flag_CXX=
13823 always_export_symbols_CXX=no
13824 archive_expsym_cmds_CXX=
13825 compiler_needs_object_CXX=no
13826 export_dynamic_flag_spec_CXX=
13827 hardcode_direct_CXX=no
13828 hardcode_direct_absolute_CXX=no
13829 hardcode_libdir_flag_spec_CXX=
13830 hardcode_libdir_flag_spec_ld_CXX=
13831 hardcode_libdir_separator_CXX=
13832 hardcode_minus_L_CXX=no
13833 hardcode_shlibpath_var_CXX=unsupported
13834 hardcode_automatic_CXX=no
13835 inherit_rpath_CXX=no
13836 module_cmds_CXX=
13837 module_expsym_cmds_CXX=
13838 link_all_deplibs_CXX=unknown
13839 old_archive_cmds_CXX=$old_archive_cmds
13840 reload_flag_CXX=$reload_flag
13841 reload_cmds_CXX=$reload_cmds
13842 no_undefined_flag_CXX=
13843 whole_archive_flag_spec_CXX=
13844 enable_shared_with_static_runtimes_CXX=no
13846 # Source file extension for C++ test sources.
13847 ac_ext=cpp
13849 # Object file extension for compiled C++ test sources.
13850 objext=o
13851 objext_CXX=$objext
13853 # No sense in running all these tests if we already determined that
13854 # the CXX compiler isn't working. Some variables (like enable_shared)
13855 # are currently assumed to apply to all compilers on this platform,
13856 # and will be corrupted by setting them based on a non-working compiler.
13857 if test "$_lt_caught_CXX_error" != yes; then
13858 # Code to be used in simple compile tests
13859 lt_simple_compile_test_code="int some_variable = 0;"
13861 # Code to be used in simple link tests
13862 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13864 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13871 # If no C compiler was specified, use CC.
13872 LTCC=${LTCC-"$CC"}
13874 # If no C compiler flags were specified, use CFLAGS.
13875 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13877 # Allow CC to be a program name with arguments.
13878 compiler=$CC
13881 # save warnings/boilerplate of simple test code
13882 ac_outfile=conftest.$ac_objext
13883 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13884 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13885 _lt_compiler_boilerplate=`cat conftest.err`
13886 $RM conftest*
13888 ac_outfile=conftest.$ac_objext
13889 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13890 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13891 _lt_linker_boilerplate=`cat conftest.err`
13892 $RM -r conftest*
13895 # Allow CC to be a program name with arguments.
13896 lt_save_CC=$CC
13897 lt_save_LD=$LD
13898 lt_save_GCC=$GCC
13899 GCC=$GXX
13900 lt_save_with_gnu_ld=$with_gnu_ld
13901 lt_save_path_LD=$lt_cv_path_LD
13902 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13903 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13904 else
13905 $as_unset lt_cv_prog_gnu_ld
13907 if test -n "${lt_cv_path_LDCXX+set}"; then
13908 lt_cv_path_LD=$lt_cv_path_LDCXX
13909 else
13910 $as_unset lt_cv_path_LD
13912 test -z "${LDCXX+set}" || LD=$LDCXX
13913 CC=${CXX-"c++"}
13914 compiler=$CC
13915 compiler_CXX=$CC
13916 for cc_temp in $compiler""; do
13917 case $cc_temp in
13918 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13919 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13920 \-*) ;;
13921 *) break;;
13922 esac
13923 done
13924 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13927 if test -n "$compiler"; then
13928 # We don't want -fno-exception when compiling C++ code, so set the
13929 # no_builtin_flag separately
13930 if test "$GXX" = yes; then
13931 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13932 else
13933 lt_prog_compiler_no_builtin_flag_CXX=
13936 if test "$GXX" = yes; then
13937 # Set up default GNU C++ configuration
13941 # Check whether --with-gnu-ld was given.
13942 if test "${with_gnu_ld+set}" = set; then :
13943 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13944 else
13945 with_gnu_ld=no
13948 ac_prog=ld
13949 if test "$GCC" = yes; then
13950 # Check if gcc -print-prog-name=ld gives a path.
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13952 $as_echo_n "checking for ld used by $CC... " >&6; }
13953 case $host in
13954 *-*-mingw*)
13955 # gcc leaves a trailing carriage return which upsets mingw
13956 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13958 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13959 esac
13960 case $ac_prog in
13961 # Accept absolute paths.
13962 [\\/]* | ?:[\\/]*)
13963 re_direlt='/[^/][^/]*/\.\./'
13964 # Canonicalize the pathname of ld
13965 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13966 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13967 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13968 done
13969 test -z "$LD" && LD="$ac_prog"
13972 # If it fails, then pretend we aren't using GCC.
13973 ac_prog=ld
13976 # If it is relative, then search for the first ld in PATH.
13977 with_gnu_ld=unknown
13979 esac
13980 elif test "$with_gnu_ld" = yes; then
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13982 $as_echo_n "checking for GNU ld... " >&6; }
13983 else
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13985 $as_echo_n "checking for non-GNU ld... " >&6; }
13987 if test "${lt_cv_path_LD+set}" = set; then :
13988 $as_echo_n "(cached) " >&6
13989 else
13990 if test -z "$LD"; then
13991 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13992 for ac_dir in $PATH; do
13993 IFS="$lt_save_ifs"
13994 test -z "$ac_dir" && ac_dir=.
13995 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13996 lt_cv_path_LD="$ac_dir/$ac_prog"
13997 # Check to see if the program is GNU ld. I'd rather use --version,
13998 # but apparently some variants of GNU ld only accept -v.
13999 # Break only if it was the GNU/non-GNU ld that we prefer.
14000 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14001 *GNU* | *'with BFD'*)
14002 test "$with_gnu_ld" != no && break
14005 test "$with_gnu_ld" != yes && break
14007 esac
14009 done
14010 IFS="$lt_save_ifs"
14011 else
14012 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14016 LD="$lt_cv_path_LD"
14017 if test -n "$LD"; then
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14019 $as_echo "$LD" >&6; }
14020 else
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14022 $as_echo "no" >&6; }
14024 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14026 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14027 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14028 $as_echo_n "(cached) " >&6
14029 else
14030 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14031 case `$LD -v 2>&1 </dev/null` in
14032 *GNU* | *'with BFD'*)
14033 lt_cv_prog_gnu_ld=yes
14036 lt_cv_prog_gnu_ld=no
14038 esac
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14041 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14042 with_gnu_ld=$lt_cv_prog_gnu_ld
14050 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14051 # archiving commands below assume that GNU ld is being used.
14052 if test "$with_gnu_ld" = yes; then
14053 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14054 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'
14056 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14057 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14059 # If archive_cmds runs LD, not CC, wlarc should be empty
14060 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14061 # investigate it a little bit more. (MM)
14062 wlarc='${wl}'
14064 # ancient GNU ld didn't support --whole-archive et. al.
14065 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14066 $GREP 'no-whole-archive' > /dev/null; then
14067 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14068 else
14069 whole_archive_flag_spec_CXX=
14071 else
14072 with_gnu_ld=no
14073 wlarc=
14075 # A generic and very simple default shared library creation
14076 # command for GNU C++ for the case where it uses the native
14077 # linker, instead of GNU ld. If possible, this setting should
14078 # overridden to take advantage of the native linker features on
14079 # the platform it is being used on.
14080 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14083 # Commands to make compiler produce verbose output that lists
14084 # what "hidden" libraries, object files and flags are used when
14085 # linking a shared library.
14086 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14088 else
14089 GXX=no
14090 with_gnu_ld=no
14091 wlarc=
14094 # PORTME: fill in a description of your system's C++ link characteristics
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14096 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14097 ld_shlibs_CXX=yes
14098 case $host_os in
14099 aix3*)
14100 # FIXME: insert proper C++ library support
14101 ld_shlibs_CXX=no
14103 aix[4-9]*)
14104 if test "$host_cpu" = ia64; then
14105 # On IA64, the linker does run time linking by default, so we don't
14106 # have to do anything special.
14107 aix_use_runtimelinking=no
14108 exp_sym_flag='-Bexport'
14109 no_entry_flag=""
14110 else
14111 aix_use_runtimelinking=no
14113 # Test if we are trying to use run time linking or normal
14114 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14115 # need to do runtime linking.
14116 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14117 for ld_flag in $LDFLAGS; do
14118 case $ld_flag in
14119 *-brtl*)
14120 aix_use_runtimelinking=yes
14121 break
14123 esac
14124 done
14126 esac
14128 exp_sym_flag='-bexport'
14129 no_entry_flag='-bnoentry'
14132 # When large executables or shared objects are built, AIX ld can
14133 # have problems creating the table of contents. If linking a library
14134 # or program results in "error TOC overflow" add -mminimal-toc to
14135 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14136 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14138 archive_cmds_CXX=''
14139 hardcode_direct_CXX=yes
14140 hardcode_direct_absolute_CXX=yes
14141 hardcode_libdir_separator_CXX=':'
14142 link_all_deplibs_CXX=yes
14143 file_list_spec_CXX='${wl}-f,'
14145 if test "$GXX" = yes; then
14146 case $host_os in aix4.[012]|aix4.[012].*)
14147 # We only want to do this on AIX 4.2 and lower, the check
14148 # below for broken collect2 doesn't work under 4.3+
14149 collect2name=`${CC} -print-prog-name=collect2`
14150 if test -f "$collect2name" &&
14151 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14152 then
14153 # We have reworked collect2
14155 else
14156 # We have old collect2
14157 hardcode_direct_CXX=unsupported
14158 # It fails to find uninstalled libraries when the uninstalled
14159 # path is not listed in the libpath. Setting hardcode_minus_L
14160 # to unsupported forces relinking
14161 hardcode_minus_L_CXX=yes
14162 hardcode_libdir_flag_spec_CXX='-L$libdir'
14163 hardcode_libdir_separator_CXX=
14165 esac
14166 shared_flag='-shared'
14167 if test "$aix_use_runtimelinking" = yes; then
14168 shared_flag="$shared_flag "'${wl}-G'
14170 else
14171 # not using gcc
14172 if test "$host_cpu" = ia64; then
14173 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14174 # chokes on -Wl,-G. The following line is correct:
14175 shared_flag='-G'
14176 else
14177 if test "$aix_use_runtimelinking" = yes; then
14178 shared_flag='${wl}-G'
14179 else
14180 shared_flag='${wl}-bM:SRE'
14185 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14186 # It seems that -bexpall does not export symbols beginning with
14187 # underscore (_), so it is better to generate a list of symbols to
14188 # export.
14189 always_export_symbols_CXX=yes
14190 if test "$aix_use_runtimelinking" = yes; then
14191 # Warning - without using the other runtime loading flags (-brtl),
14192 # -berok will link without error, but may produce a broken library.
14193 allow_undefined_flag_CXX='-berok'
14194 # Determine the default libpath from the value encoded in an empty
14195 # executable.
14196 if test x$gcc_no_link = xyes; then
14197 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14200 /* end confdefs.h. */
14203 main ()
14207 return 0;
14209 _ACEOF
14210 if ac_fn_cxx_try_link "$LINENO"; then :
14212 lt_aix_libpath_sed='
14213 /Import File Strings/,/^$/ {
14214 /^0/ {
14215 s/^0 *\(.*\)$/\1/
14219 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14220 # Check for a 64-bit object if we didn't find anything.
14221 if test -z "$aix_libpath"; then
14222 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14225 rm -f core conftest.err conftest.$ac_objext \
14226 conftest$ac_exeext conftest.$ac_ext
14227 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14229 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14231 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"
14232 else
14233 if test "$host_cpu" = ia64; then
14234 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14235 allow_undefined_flag_CXX="-z nodefs"
14236 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"
14237 else
14238 # Determine the default libpath from the value encoded in an
14239 # empty executable.
14240 if test x$gcc_no_link = xyes; then
14241 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14244 /* end confdefs.h. */
14247 main ()
14251 return 0;
14253 _ACEOF
14254 if ac_fn_cxx_try_link "$LINENO"; then :
14256 lt_aix_libpath_sed='
14257 /Import File Strings/,/^$/ {
14258 /^0/ {
14259 s/^0 *\(.*\)$/\1/
14263 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14264 # Check for a 64-bit object if we didn't find anything.
14265 if test -z "$aix_libpath"; then
14266 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14269 rm -f core conftest.err conftest.$ac_objext \
14270 conftest$ac_exeext conftest.$ac_ext
14271 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14273 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14274 # Warning - without using the other run time loading flags,
14275 # -berok will link without error, but may produce a broken library.
14276 no_undefined_flag_CXX=' ${wl}-bernotok'
14277 allow_undefined_flag_CXX=' ${wl}-berok'
14278 if test "$with_gnu_ld" = yes; then
14279 # We only use this code for GNU lds that support --whole-archive.
14280 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14281 else
14282 # Exported symbols can be pulled into shared objects from archives
14283 whole_archive_flag_spec_CXX='$convenience'
14285 archive_cmds_need_lc_CXX=yes
14286 # This is similar to how AIX traditionally builds its shared
14287 # libraries.
14288 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'
14293 beos*)
14294 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14295 allow_undefined_flag_CXX=unsupported
14296 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14297 # support --undefined. This deserves some investigation. FIXME
14298 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14299 else
14300 ld_shlibs_CXX=no
14304 chorus*)
14305 case $cc_basename in
14307 # FIXME: insert proper C++ library support
14308 ld_shlibs_CXX=no
14310 esac
14313 cygwin* | mingw* | pw32* | cegcc*)
14314 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14315 # as there is no search path for DLLs.
14316 hardcode_libdir_flag_spec_CXX='-L$libdir'
14317 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14318 allow_undefined_flag_CXX=unsupported
14319 always_export_symbols_CXX=no
14320 enable_shared_with_static_runtimes_CXX=yes
14322 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14323 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'
14324 # If the export-symbols file already is a .def file (1st line
14325 # is EXPORTS), use it as is; otherwise, prepend...
14326 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14327 cp $export_symbols $output_objdir/$soname.def;
14328 else
14329 echo EXPORTS > $output_objdir/$soname.def;
14330 cat $export_symbols >> $output_objdir/$soname.def;
14332 $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'
14333 else
14334 ld_shlibs_CXX=no
14337 darwin* | rhapsody*)
14340 archive_cmds_need_lc_CXX=no
14341 hardcode_direct_CXX=no
14342 hardcode_automatic_CXX=yes
14343 hardcode_shlibpath_var_CXX=unsupported
14344 if test "$lt_cv_ld_force_load" = "yes"; then
14345 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\"`'
14346 else
14347 whole_archive_flag_spec_CXX=''
14349 link_all_deplibs_CXX=yes
14350 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14351 case $cc_basename in
14352 ifort*) _lt_dar_can_shared=yes ;;
14353 *) _lt_dar_can_shared=$GCC ;;
14354 esac
14355 if test "$_lt_dar_can_shared" = "yes"; then
14356 output_verbose_link_cmd=func_echo_all
14357 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}"
14358 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14359 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}"
14360 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}"
14361 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14362 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}"
14363 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}"
14366 else
14367 ld_shlibs_CXX=no
14372 dgux*)
14373 case $cc_basename in
14374 ec++*)
14375 # FIXME: insert proper C++ library support
14376 ld_shlibs_CXX=no
14378 ghcx*)
14379 # Green Hills C++ Compiler
14380 # FIXME: insert proper C++ library support
14381 ld_shlibs_CXX=no
14384 # FIXME: insert proper C++ library support
14385 ld_shlibs_CXX=no
14387 esac
14390 freebsd[12]*)
14391 # C++ shared libraries reported to be fairly broken before
14392 # switch to ELF
14393 ld_shlibs_CXX=no
14396 freebsd-elf*)
14397 archive_cmds_need_lc_CXX=no
14400 freebsd* | dragonfly*)
14401 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14402 # conventions
14403 ld_shlibs_CXX=yes
14406 gnu*)
14409 haiku*)
14410 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14411 link_all_deplibs_CXX=yes
14414 hpux9*)
14415 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14416 hardcode_libdir_separator_CXX=:
14417 export_dynamic_flag_spec_CXX='${wl}-E'
14418 hardcode_direct_CXX=yes
14419 hardcode_minus_L_CXX=yes # Not in the search PATH,
14420 # but as the default
14421 # location of the library.
14423 case $cc_basename in
14424 CC*)
14425 # FIXME: insert proper C++ library support
14426 ld_shlibs_CXX=no
14428 aCC*)
14429 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'
14430 # Commands to make compiler produce verbose output that lists
14431 # what "hidden" libraries, object files and flags are used when
14432 # linking a shared library.
14434 # There doesn't appear to be a way to prevent this compiler from
14435 # explicitly linking system object files so we need to strip them
14436 # from the output so that they don't get included in the library
14437 # dependencies.
14438 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"'
14441 if test "$GXX" = yes; then
14442 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'
14443 else
14444 # FIXME: insert proper C++ library support
14445 ld_shlibs_CXX=no
14448 esac
14451 hpux10*|hpux11*)
14452 if test $with_gnu_ld = no; then
14453 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14454 hardcode_libdir_separator_CXX=:
14456 case $host_cpu in
14457 hppa*64*|ia64*)
14460 export_dynamic_flag_spec_CXX='${wl}-E'
14462 esac
14464 case $host_cpu in
14465 hppa*64*|ia64*)
14466 hardcode_direct_CXX=no
14467 hardcode_shlibpath_var_CXX=no
14470 hardcode_direct_CXX=yes
14471 hardcode_direct_absolute_CXX=yes
14472 hardcode_minus_L_CXX=yes # Not in the search PATH,
14473 # but as the default
14474 # location of the library.
14476 esac
14478 case $cc_basename in
14479 CC*)
14480 # FIXME: insert proper C++ library support
14481 ld_shlibs_CXX=no
14483 aCC*)
14484 case $host_cpu in
14485 hppa*64*)
14486 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14488 ia64*)
14489 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14492 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14494 esac
14495 # Commands to make compiler produce verbose output that lists
14496 # what "hidden" libraries, object files and flags are used when
14497 # linking a shared library.
14499 # There doesn't appear to be a way to prevent this compiler from
14500 # explicitly linking system object files so we need to strip them
14501 # from the output so that they don't get included in the library
14502 # dependencies.
14503 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"'
14506 if test "$GXX" = yes; then
14507 if test $with_gnu_ld = no; then
14508 case $host_cpu in
14509 hppa*64*)
14510 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14512 ia64*)
14513 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14516 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'
14518 esac
14520 else
14521 # FIXME: insert proper C++ library support
14522 ld_shlibs_CXX=no
14525 esac
14528 interix[3-9]*)
14529 hardcode_direct_CXX=no
14530 hardcode_shlibpath_var_CXX=no
14531 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14532 export_dynamic_flag_spec_CXX='${wl}-E'
14533 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14534 # Instead, shared libraries are loaded at an image base (0x10000000 by
14535 # default) and relocated if they conflict, which is a slow very memory
14536 # consuming and fragmenting process. To avoid this, we pick a random,
14537 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14538 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14539 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'
14540 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'
14542 irix5* | irix6*)
14543 case $cc_basename in
14544 CC*)
14545 # SGI C++
14546 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'
14548 # Archives containing C++ object files must be created using
14549 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14550 # necessary to make sure instantiated templates are included
14551 # in the archive.
14552 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14555 if test "$GXX" = yes; then
14556 if test "$with_gnu_ld" = no; then
14557 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'
14558 else
14559 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'
14562 link_all_deplibs_CXX=yes
14564 esac
14565 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14566 hardcode_libdir_separator_CXX=:
14567 inherit_rpath_CXX=yes
14570 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14571 case $cc_basename in
14572 KCC*)
14573 # Kuck and Associates, Inc. (KAI) C++ Compiler
14575 # KCC will only create a shared library if the output file
14576 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14577 # to its proper name (with version) after linking.
14578 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'
14579 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'
14580 # Commands to make compiler produce verbose output that lists
14581 # what "hidden" libraries, object files and flags are used when
14582 # linking a shared library.
14584 # There doesn't appear to be a way to prevent this compiler from
14585 # explicitly linking system object files so we need to strip them
14586 # from the output so that they don't get included in the library
14587 # dependencies.
14588 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"'
14590 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14591 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14593 # Archives containing C++ object files must be created using
14594 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14595 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14597 icpc* | ecpc* )
14598 # Intel C++
14599 with_gnu_ld=yes
14600 # version 8.0 and above of icpc choke on multiply defined symbols
14601 # if we add $predep_objects and $postdep_objects, however 7.1 and
14602 # earlier do not add the objects themselves.
14603 case `$CC -V 2>&1` in
14604 *"Version 7."*)
14605 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14606 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'
14608 *) # Version 8.0 or newer
14609 tmp_idyn=
14610 case $host_cpu in
14611 ia64*) tmp_idyn=' -i_dynamic';;
14612 esac
14613 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14614 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'
14616 esac
14617 archive_cmds_need_lc_CXX=no
14618 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14619 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14620 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14622 pgCC* | pgcpp*)
14623 # Portland Group C++ compiler
14624 case `$CC -V` in
14625 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14626 prelink_cmds_CXX='tpldir=Template.dir~
14627 rm -rf $tpldir~
14628 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14629 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14630 old_archive_cmds_CXX='tpldir=Template.dir~
14631 rm -rf $tpldir~
14632 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14633 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14634 $RANLIB $oldlib'
14635 archive_cmds_CXX='tpldir=Template.dir~
14636 rm -rf $tpldir~
14637 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14638 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14639 archive_expsym_cmds_CXX='tpldir=Template.dir~
14640 rm -rf $tpldir~
14641 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14642 $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'
14644 *) # Version 6 and above use weak symbols
14645 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14646 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'
14648 esac
14650 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14651 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14652 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'
14654 cxx*)
14655 # Compaq C++
14656 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14657 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'
14659 runpath_var=LD_RUN_PATH
14660 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14661 hardcode_libdir_separator_CXX=:
14663 # Commands to make compiler produce verbose output that lists
14664 # what "hidden" libraries, object files and flags are used when
14665 # linking a shared library.
14667 # There doesn't appear to be a way to prevent this compiler from
14668 # explicitly linking system object files so we need to strip them
14669 # from the output so that they don't get included in the library
14670 # dependencies.
14671 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'
14673 xl* | mpixl* | bgxl*)
14674 # IBM XL 8.0 on PPC, with GNU ld
14675 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14676 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14677 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14678 if test "x$supports_anon_versioning" = xyes; then
14679 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14680 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14681 echo "local: *; };" >> $output_objdir/$libname.ver~
14682 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14686 case `$CC -V 2>&1 | sed 5q` in
14687 *Sun\ C*)
14688 # Sun C++ 5.9
14689 no_undefined_flag_CXX=' -zdefs'
14690 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14691 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'
14692 hardcode_libdir_flag_spec_CXX='-R$libdir'
14693 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'
14694 compiler_needs_object_CXX=yes
14696 # Not sure whether something based on
14697 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14698 # would be better.
14699 output_verbose_link_cmd='func_echo_all'
14701 # Archives containing C++ object files must be created using
14702 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14703 # necessary to make sure instantiated templates are included
14704 # in the archive.
14705 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14707 esac
14709 esac
14712 lynxos*)
14713 # FIXME: insert proper C++ library support
14714 ld_shlibs_CXX=no
14717 m88k*)
14718 # FIXME: insert proper C++ library support
14719 ld_shlibs_CXX=no
14722 mvs*)
14723 case $cc_basename in
14724 cxx*)
14725 # FIXME: insert proper C++ library support
14726 ld_shlibs_CXX=no
14729 # FIXME: insert proper C++ library support
14730 ld_shlibs_CXX=no
14732 esac
14735 netbsd*)
14736 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14737 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14738 wlarc=
14739 hardcode_libdir_flag_spec_CXX='-R$libdir'
14740 hardcode_direct_CXX=yes
14741 hardcode_shlibpath_var_CXX=no
14743 # Workaround some broken pre-1.5 toolchains
14744 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14747 *nto* | *qnx*)
14748 ld_shlibs_CXX=yes
14751 openbsd2*)
14752 # C++ shared libraries are fairly broken
14753 ld_shlibs_CXX=no
14756 openbsd*)
14757 if test -f /usr/libexec/ld.so; then
14758 hardcode_direct_CXX=yes
14759 hardcode_shlibpath_var_CXX=no
14760 hardcode_direct_absolute_CXX=yes
14761 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14762 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14763 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14764 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14765 export_dynamic_flag_spec_CXX='${wl}-E'
14766 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14768 output_verbose_link_cmd=func_echo_all
14769 else
14770 ld_shlibs_CXX=no
14774 osf3* | osf4* | osf5*)
14775 case $cc_basename in
14776 KCC*)
14777 # Kuck and Associates, Inc. (KAI) C++ Compiler
14779 # KCC will only create a shared library if the output file
14780 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14781 # to its proper name (with version) after linking.
14782 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'
14784 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14785 hardcode_libdir_separator_CXX=:
14787 # Archives containing C++ object files must be created using
14788 # the KAI C++ compiler.
14789 case $host in
14790 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14791 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14792 esac
14794 RCC*)
14795 # Rational C++ 2.4.1
14796 # FIXME: insert proper C++ library support
14797 ld_shlibs_CXX=no
14799 cxx*)
14800 case $host in
14801 osf3*)
14802 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14803 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'
14804 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14807 allow_undefined_flag_CXX=' -expect_unresolved \*'
14808 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'
14809 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14810 echo "-hidden">> $lib.exp~
14811 $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~
14812 $RM $lib.exp'
14813 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14815 esac
14817 hardcode_libdir_separator_CXX=:
14819 # Commands to make compiler produce verbose output that lists
14820 # what "hidden" libraries, object files and flags are used when
14821 # linking a shared library.
14823 # There doesn't appear to be a way to prevent this compiler from
14824 # explicitly linking system object files so we need to strip them
14825 # from the output so that they don't get included in the library
14826 # dependencies.
14827 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"'
14830 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14831 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14832 case $host in
14833 osf3*)
14834 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'
14837 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'
14839 esac
14841 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14842 hardcode_libdir_separator_CXX=:
14844 # Commands to make compiler produce verbose output that lists
14845 # what "hidden" libraries, object files and flags are used when
14846 # linking a shared library.
14847 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14849 else
14850 # FIXME: insert proper C++ library support
14851 ld_shlibs_CXX=no
14854 esac
14857 psos*)
14858 # FIXME: insert proper C++ library support
14859 ld_shlibs_CXX=no
14862 sunos4*)
14863 case $cc_basename in
14864 CC*)
14865 # Sun C++ 4.x
14866 # FIXME: insert proper C++ library support
14867 ld_shlibs_CXX=no
14869 lcc*)
14870 # Lucid
14871 # FIXME: insert proper C++ library support
14872 ld_shlibs_CXX=no
14875 # FIXME: insert proper C++ library support
14876 ld_shlibs_CXX=no
14878 esac
14881 solaris*)
14882 case $cc_basename in
14883 CC*)
14884 # Sun C++ 4.2, 5.x and Centerline C++
14885 archive_cmds_need_lc_CXX=yes
14886 no_undefined_flag_CXX=' -zdefs'
14887 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14888 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14889 $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'
14891 hardcode_libdir_flag_spec_CXX='-R$libdir'
14892 hardcode_shlibpath_var_CXX=no
14893 case $host_os in
14894 solaris2.[0-5] | solaris2.[0-5].*) ;;
14896 # The compiler driver will combine and reorder linker options,
14897 # but understands `-z linker_flag'.
14898 # Supported since Solaris 2.6 (maybe 2.5.1?)
14899 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14901 esac
14902 link_all_deplibs_CXX=yes
14904 output_verbose_link_cmd='func_echo_all'
14906 # Archives containing C++ object files must be created using
14907 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14908 # necessary to make sure instantiated templates are included
14909 # in the archive.
14910 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14912 gcx*)
14913 # Green Hills C++ Compiler
14914 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14916 # The C++ compiler must be used to create the archive.
14917 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14920 # GNU C++ compiler with Solaris linker
14921 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14922 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14923 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14924 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14925 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14926 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14928 # Commands to make compiler produce verbose output that lists
14929 # what "hidden" libraries, object files and flags are used when
14930 # linking a shared library.
14931 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14932 else
14933 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14934 # platform.
14935 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14936 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14937 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14939 # Commands to make compiler produce verbose output that lists
14940 # what "hidden" libraries, object files and flags are used when
14941 # linking a shared library.
14942 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14945 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14946 case $host_os in
14947 solaris2.[0-5] | solaris2.[0-5].*) ;;
14949 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14951 esac
14954 esac
14957 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14958 no_undefined_flag_CXX='${wl}-z,text'
14959 archive_cmds_need_lc_CXX=no
14960 hardcode_shlibpath_var_CXX=no
14961 runpath_var='LD_RUN_PATH'
14963 case $cc_basename in
14964 CC*)
14965 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14966 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14969 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14970 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14972 esac
14975 sysv5* | sco3.2v5* | sco5v6*)
14976 # Note: We can NOT use -z defs as we might desire, because we do not
14977 # link with -lc, and that would cause any symbols used from libc to
14978 # always be unresolved, which means just about no library would
14979 # ever link correctly. If we're not using GNU ld we use -z text
14980 # though, which does catch some bad symbols but isn't as heavy-handed
14981 # as -z defs.
14982 no_undefined_flag_CXX='${wl}-z,text'
14983 allow_undefined_flag_CXX='${wl}-z,nodefs'
14984 archive_cmds_need_lc_CXX=no
14985 hardcode_shlibpath_var_CXX=no
14986 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14987 hardcode_libdir_separator_CXX=':'
14988 link_all_deplibs_CXX=yes
14989 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14990 runpath_var='LD_RUN_PATH'
14992 case $cc_basename in
14993 CC*)
14994 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14995 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14996 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14997 '"$old_archive_cmds_CXX"
14998 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14999 '"$reload_cmds_CXX"
15002 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15003 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15005 esac
15008 tandem*)
15009 case $cc_basename in
15010 NCC*)
15011 # NonStop-UX NCC 3.20
15012 # FIXME: insert proper C++ library support
15013 ld_shlibs_CXX=no
15016 # FIXME: insert proper C++ library support
15017 ld_shlibs_CXX=no
15019 esac
15022 vxworks*)
15023 # FIXME: insert proper C++ library support
15024 ld_shlibs_CXX=no
15028 # FIXME: insert proper C++ library support
15029 ld_shlibs_CXX=no
15031 esac
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15034 $as_echo "$ld_shlibs_CXX" >&6; }
15035 test "$ld_shlibs_CXX" = no && can_build_shared=no
15037 GCC_CXX="$GXX"
15038 LD_CXX="$LD"
15040 ## CAVEAT EMPTOR:
15041 ## There is no encapsulation within the following macros, do not change
15042 ## the running order or otherwise move them around unless you know exactly
15043 ## what you are doing...
15044 # Dependencies to place before and after the object being linked:
15045 predep_objects_CXX=
15046 postdep_objects_CXX=
15047 predeps_CXX=
15048 postdeps_CXX=
15049 compiler_lib_search_path_CXX=
15051 cat > conftest.$ac_ext <<_LT_EOF
15052 class Foo
15054 public:
15055 Foo (void) { a = 0; }
15056 private:
15057 int a;
15059 _LT_EOF
15061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15062 (eval $ac_compile) 2>&5
15063 ac_status=$?
15064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15065 test $ac_status = 0; }; then
15066 # Parse the compiler output and extract the necessary
15067 # objects, libraries and library flags.
15069 # Sentinel used to keep track of whether or not we are before
15070 # the conftest object file.
15071 pre_test_object_deps_done=no
15073 for p in `eval "$output_verbose_link_cmd"`; do
15074 case $p in
15076 -L* | -R* | -l*)
15077 # Some compilers place space between "-{L,R}" and the path.
15078 # Remove the space.
15079 if test $p = "-L" ||
15080 test $p = "-R"; then
15081 prev=$p
15082 continue
15083 else
15084 prev=
15087 if test "$pre_test_object_deps_done" = no; then
15088 case $p in
15089 -L* | -R*)
15090 # Internal compiler library paths should come after those
15091 # provided the user. The postdeps already come after the
15092 # user supplied libs so there is no need to process them.
15093 if test -z "$compiler_lib_search_path_CXX"; then
15094 compiler_lib_search_path_CXX="${prev}${p}"
15095 else
15096 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15099 # The "-l" case would never come before the object being
15100 # linked, so don't bother handling this case.
15101 esac
15102 else
15103 if test -z "$postdeps_CXX"; then
15104 postdeps_CXX="${prev}${p}"
15105 else
15106 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15111 *.$objext)
15112 # This assumes that the test object file only shows up
15113 # once in the compiler output.
15114 if test "$p" = "conftest.$objext"; then
15115 pre_test_object_deps_done=yes
15116 continue
15119 if test "$pre_test_object_deps_done" = no; then
15120 if test -z "$predep_objects_CXX"; then
15121 predep_objects_CXX="$p"
15122 else
15123 predep_objects_CXX="$predep_objects_CXX $p"
15125 else
15126 if test -z "$postdep_objects_CXX"; then
15127 postdep_objects_CXX="$p"
15128 else
15129 postdep_objects_CXX="$postdep_objects_CXX $p"
15134 *) ;; # Ignore the rest.
15136 esac
15137 done
15139 # Clean up.
15140 rm -f a.out a.exe
15141 else
15142 echo "libtool.m4: error: problem compiling CXX test program"
15145 $RM -f confest.$objext
15147 # PORTME: override above test on systems where it is broken
15148 case $host_os in
15149 interix[3-9]*)
15150 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15151 # hack all around it, let's just trust "g++" to DTRT.
15152 predep_objects_CXX=
15153 postdep_objects_CXX=
15154 postdeps_CXX=
15157 linux*)
15158 case `$CC -V 2>&1 | sed 5q` in
15159 *Sun\ C*)
15160 # Sun C++ 5.9
15162 # The more standards-conforming stlport4 library is
15163 # incompatible with the Cstd library. Avoid specifying
15164 # it if it's in CXXFLAGS. Ignore libCrun as
15165 # -library=stlport4 depends on it.
15166 case " $CXX $CXXFLAGS " in
15167 *" -library=stlport4 "*)
15168 solaris_use_stlport4=yes
15170 esac
15172 if test "$solaris_use_stlport4" != yes; then
15173 postdeps_CXX='-library=Cstd -library=Crun'
15176 esac
15179 solaris*)
15180 case $cc_basename in
15181 CC*)
15182 # The more standards-conforming stlport4 library is
15183 # incompatible with the Cstd library. Avoid specifying
15184 # it if it's in CXXFLAGS. Ignore libCrun as
15185 # -library=stlport4 depends on it.
15186 case " $CXX $CXXFLAGS " in
15187 *" -library=stlport4 "*)
15188 solaris_use_stlport4=yes
15190 esac
15192 # Adding this requires a known-good setup of shared libraries for
15193 # Sun compiler versions before 5.6, else PIC objects from an old
15194 # archive will be linked into the output, leading to subtle bugs.
15195 if test "$solaris_use_stlport4" != yes; then
15196 postdeps_CXX='-library=Cstd -library=Crun'
15199 esac
15201 esac
15204 case " $postdeps_CXX " in
15205 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15206 esac
15207 compiler_lib_search_dirs_CXX=
15208 if test -n "${compiler_lib_search_path_CXX}"; then
15209 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15242 lt_prog_compiler_wl_CXX=
15243 lt_prog_compiler_pic_CXX=
15244 lt_prog_compiler_static_CXX=
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15247 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15249 # C++ specific cases for pic, static, wl, etc.
15250 if test "$GXX" = yes; then
15251 lt_prog_compiler_wl_CXX='-Wl,'
15252 lt_prog_compiler_static_CXX='-static'
15254 case $host_os in
15255 aix*)
15256 # All AIX code is PIC.
15257 if test "$host_cpu" = ia64; then
15258 # AIX 5 now supports IA64 processor
15259 lt_prog_compiler_static_CXX='-Bstatic'
15263 amigaos*)
15264 case $host_cpu in
15265 powerpc)
15266 # see comment about AmigaOS4 .so support
15267 lt_prog_compiler_pic_CXX='-fPIC'
15269 m68k)
15270 # FIXME: we need at least 68020 code to build shared libraries, but
15271 # adding the `-m68020' flag to GCC prevents building anything better,
15272 # like `-m68040'.
15273 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15275 esac
15278 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15279 # PIC is the default for these OSes.
15281 mingw* | cygwin* | os2* | pw32* | cegcc*)
15282 # This hack is so that the source file can tell whether it is being
15283 # built for inclusion in a dll (and should export symbols for example).
15284 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15285 # (--disable-auto-import) libraries
15286 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15288 darwin* | rhapsody*)
15289 # PIC is the default on this platform
15290 # Common symbols not allowed in MH_DYLIB files
15291 lt_prog_compiler_pic_CXX='-fno-common'
15293 *djgpp*)
15294 # DJGPP does not support shared libraries at all
15295 lt_prog_compiler_pic_CXX=
15297 haiku*)
15298 # PIC is the default for Haiku.
15299 # The "-static" flag exists, but is broken.
15300 lt_prog_compiler_static_CXX=
15302 interix[3-9]*)
15303 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15304 # Instead, we relocate shared libraries at runtime.
15306 sysv4*MP*)
15307 if test -d /usr/nec; then
15308 lt_prog_compiler_pic_CXX=-Kconform_pic
15311 hpux*)
15312 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15313 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15314 # sets the default TLS model and affects inlining.
15315 case $host_cpu in
15316 hppa*64*)
15319 lt_prog_compiler_pic_CXX='-fPIC'
15321 esac
15323 *qnx* | *nto*)
15324 # QNX uses GNU C++, but need to define -shared option too, otherwise
15325 # it will coredump.
15326 lt_prog_compiler_pic_CXX='-fPIC -shared'
15329 lt_prog_compiler_pic_CXX='-fPIC'
15331 esac
15332 else
15333 case $host_os in
15334 aix[4-9]*)
15335 # All AIX code is PIC.
15336 if test "$host_cpu" = ia64; then
15337 # AIX 5 now supports IA64 processor
15338 lt_prog_compiler_static_CXX='-Bstatic'
15339 else
15340 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15343 chorus*)
15344 case $cc_basename in
15345 cxch68*)
15346 # Green Hills C++ Compiler
15347 # _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"
15349 esac
15351 dgux*)
15352 case $cc_basename in
15353 ec++*)
15354 lt_prog_compiler_pic_CXX='-KPIC'
15356 ghcx*)
15357 # Green Hills C++ Compiler
15358 lt_prog_compiler_pic_CXX='-pic'
15362 esac
15364 freebsd* | dragonfly*)
15365 # FreeBSD uses GNU C++
15367 hpux9* | hpux10* | hpux11*)
15368 case $cc_basename in
15369 CC*)
15370 lt_prog_compiler_wl_CXX='-Wl,'
15371 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15372 if test "$host_cpu" != ia64; then
15373 lt_prog_compiler_pic_CXX='+Z'
15376 aCC*)
15377 lt_prog_compiler_wl_CXX='-Wl,'
15378 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15379 case $host_cpu in
15380 hppa*64*|ia64*)
15381 # +Z the default
15384 lt_prog_compiler_pic_CXX='+Z'
15386 esac
15390 esac
15392 interix*)
15393 # This is c89, which is MS Visual C++ (no shared libs)
15394 # Anyone wants to do a port?
15396 irix5* | irix6* | nonstopux*)
15397 case $cc_basename in
15398 CC*)
15399 lt_prog_compiler_wl_CXX='-Wl,'
15400 lt_prog_compiler_static_CXX='-non_shared'
15401 # CC pic flag -KPIC is the default.
15405 esac
15407 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15408 case $cc_basename in
15409 KCC*)
15410 # KAI C++ Compiler
15411 lt_prog_compiler_wl_CXX='--backend -Wl,'
15412 lt_prog_compiler_pic_CXX='-fPIC'
15414 ecpc* )
15415 # old Intel C++ for x86_64 which still supported -KPIC.
15416 lt_prog_compiler_wl_CXX='-Wl,'
15417 lt_prog_compiler_pic_CXX='-KPIC'
15418 lt_prog_compiler_static_CXX='-static'
15420 icpc* )
15421 # Intel C++, used to be incompatible with GCC.
15422 # ICC 10 doesn't accept -KPIC any more.
15423 lt_prog_compiler_wl_CXX='-Wl,'
15424 lt_prog_compiler_pic_CXX='-fPIC'
15425 lt_prog_compiler_static_CXX='-static'
15427 pgCC* | pgcpp*)
15428 # Portland Group C++ compiler
15429 lt_prog_compiler_wl_CXX='-Wl,'
15430 lt_prog_compiler_pic_CXX='-fpic'
15431 lt_prog_compiler_static_CXX='-Bstatic'
15433 cxx*)
15434 # Compaq C++
15435 # Make sure the PIC flag is empty. It appears that all Alpha
15436 # Linux and Compaq Tru64 Unix objects are PIC.
15437 lt_prog_compiler_pic_CXX=
15438 lt_prog_compiler_static_CXX='-non_shared'
15440 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15441 # IBM XL 8.0, 9.0 on PPC and BlueGene
15442 lt_prog_compiler_wl_CXX='-Wl,'
15443 lt_prog_compiler_pic_CXX='-qpic'
15444 lt_prog_compiler_static_CXX='-qstaticlink'
15447 case `$CC -V 2>&1 | sed 5q` in
15448 *Sun\ C*)
15449 # Sun C++ 5.9
15450 lt_prog_compiler_pic_CXX='-KPIC'
15451 lt_prog_compiler_static_CXX='-Bstatic'
15452 lt_prog_compiler_wl_CXX='-Qoption ld '
15454 esac
15456 esac
15458 lynxos*)
15460 m88k*)
15462 mvs*)
15463 case $cc_basename in
15464 cxx*)
15465 lt_prog_compiler_pic_CXX='-W c,exportall'
15469 esac
15471 netbsd*)
15473 *qnx* | *nto*)
15474 # QNX uses GNU C++, but need to define -shared option too, otherwise
15475 # it will coredump.
15476 lt_prog_compiler_pic_CXX='-fPIC -shared'
15478 osf3* | osf4* | osf5*)
15479 case $cc_basename in
15480 KCC*)
15481 lt_prog_compiler_wl_CXX='--backend -Wl,'
15483 RCC*)
15484 # Rational C++ 2.4.1
15485 lt_prog_compiler_pic_CXX='-pic'
15487 cxx*)
15488 # Digital/Compaq C++
15489 lt_prog_compiler_wl_CXX='-Wl,'
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'
15497 esac
15499 psos*)
15501 solaris*)
15502 case $cc_basename in
15503 CC*)
15504 # Sun C++ 4.2, 5.x and Centerline C++
15505 lt_prog_compiler_pic_CXX='-KPIC'
15506 lt_prog_compiler_static_CXX='-Bstatic'
15507 lt_prog_compiler_wl_CXX='-Qoption ld '
15509 gcx*)
15510 # Green Hills C++ Compiler
15511 lt_prog_compiler_pic_CXX='-PIC'
15515 esac
15517 sunos4*)
15518 case $cc_basename in
15519 CC*)
15520 # Sun C++ 4.x
15521 lt_prog_compiler_pic_CXX='-pic'
15522 lt_prog_compiler_static_CXX='-Bstatic'
15524 lcc*)
15525 # Lucid
15526 lt_prog_compiler_pic_CXX='-pic'
15530 esac
15532 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15533 case $cc_basename in
15534 CC*)
15535 lt_prog_compiler_wl_CXX='-Wl,'
15536 lt_prog_compiler_pic_CXX='-KPIC'
15537 lt_prog_compiler_static_CXX='-Bstatic'
15539 esac
15541 tandem*)
15542 case $cc_basename in
15543 NCC*)
15544 # NonStop-UX NCC 3.20
15545 lt_prog_compiler_pic_CXX='-KPIC'
15549 esac
15551 vxworks*)
15554 lt_prog_compiler_can_build_shared_CXX=no
15556 esac
15559 case $host_os in
15560 # For platforms which do not support PIC, -DPIC is meaningless:
15561 *djgpp*)
15562 lt_prog_compiler_pic_CXX=
15565 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15567 esac
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15569 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15574 # Check to make sure the PIC flag actually works.
15576 if test -n "$lt_prog_compiler_pic_CXX"; then
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15578 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15579 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15580 $as_echo_n "(cached) " >&6
15581 else
15582 lt_cv_prog_compiler_pic_works_CXX=no
15583 ac_outfile=conftest.$ac_objext
15584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15585 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15586 # Insert the option either (1) after the last *FLAGS variable, or
15587 # (2) before a word containing "conftest.", or (3) at the end.
15588 # Note that $ac_compile itself does not contain backslashes and begins
15589 # with a dollar sign (not a hyphen), so the echo should work correctly.
15590 # The option is referenced via a variable to avoid confusing sed.
15591 lt_compile=`echo "$ac_compile" | $SED \
15592 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15593 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15594 -e 's:$: $lt_compiler_flag:'`
15595 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15596 (eval "$lt_compile" 2>conftest.err)
15597 ac_status=$?
15598 cat conftest.err >&5
15599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600 if (exit $ac_status) && test -s "$ac_outfile"; then
15601 # The compiler can only warn and ignore the option if not recognized
15602 # So say no if there are warnings other than the usual output.
15603 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15604 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15605 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15606 lt_cv_prog_compiler_pic_works_CXX=yes
15609 $RM conftest*
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15613 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15615 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15616 case $lt_prog_compiler_pic_CXX in
15617 "" | " "*) ;;
15618 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15619 esac
15620 else
15621 lt_prog_compiler_pic_CXX=
15622 lt_prog_compiler_can_build_shared_CXX=no
15630 # Check to make sure the static flag actually works.
15632 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15634 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15635 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15636 $as_echo_n "(cached) " >&6
15637 else
15638 lt_cv_prog_compiler_static_works_CXX=no
15639 save_LDFLAGS="$LDFLAGS"
15640 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15641 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15642 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15643 # The linker can only warn and ignore the option if not recognized
15644 # So say no if there are warnings
15645 if test -s conftest.err; then
15646 # Append any errors to the config.log.
15647 cat conftest.err 1>&5
15648 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15649 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15650 if diff conftest.exp conftest.er2 >/dev/null; then
15651 lt_cv_prog_compiler_static_works_CXX=yes
15653 else
15654 lt_cv_prog_compiler_static_works_CXX=yes
15657 $RM -r conftest*
15658 LDFLAGS="$save_LDFLAGS"
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15662 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15664 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15666 else
15667 lt_prog_compiler_static_CXX=
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15674 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15675 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15676 $as_echo_n "(cached) " >&6
15677 else
15678 lt_cv_prog_compiler_c_o_CXX=no
15679 $RM -r conftest 2>/dev/null
15680 mkdir conftest
15681 cd conftest
15682 mkdir out
15683 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15685 lt_compiler_flag="-o out/conftest2.$ac_objext"
15686 # Insert the option either (1) after the last *FLAGS variable, or
15687 # (2) before a word containing "conftest.", or (3) at the end.
15688 # Note that $ac_compile itself does not contain backslashes and begins
15689 # with a dollar sign (not a hyphen), so the echo should work correctly.
15690 lt_compile=`echo "$ac_compile" | $SED \
15691 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15692 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15693 -e 's:$: $lt_compiler_flag:'`
15694 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15695 (eval "$lt_compile" 2>out/conftest.err)
15696 ac_status=$?
15697 cat out/conftest.err >&5
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15700 then
15701 # The compiler can only warn and ignore the option if not recognized
15702 # So say no if there are warnings
15703 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15704 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15705 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15706 lt_cv_prog_compiler_c_o_CXX=yes
15709 chmod u+w . 2>&5
15710 $RM conftest*
15711 # SGI C++ compiler will create directory out/ii_files/ for
15712 # template instantiation
15713 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15714 $RM out/* && rmdir out
15715 cd ..
15716 $RM -r conftest
15717 $RM conftest*
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15721 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15726 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15727 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15728 $as_echo_n "(cached) " >&6
15729 else
15730 lt_cv_prog_compiler_c_o_CXX=no
15731 $RM -r conftest 2>/dev/null
15732 mkdir conftest
15733 cd conftest
15734 mkdir out
15735 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15737 lt_compiler_flag="-o out/conftest2.$ac_objext"
15738 # Insert the option either (1) after the last *FLAGS variable, or
15739 # (2) before a word containing "conftest.", or (3) at the end.
15740 # Note that $ac_compile itself does not contain backslashes and begins
15741 # with a dollar sign (not a hyphen), so the echo should work correctly.
15742 lt_compile=`echo "$ac_compile" | $SED \
15743 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15744 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15745 -e 's:$: $lt_compiler_flag:'`
15746 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15747 (eval "$lt_compile" 2>out/conftest.err)
15748 ac_status=$?
15749 cat out/conftest.err >&5
15750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15752 then
15753 # The compiler can only warn and ignore the option if not recognized
15754 # So say no if there are warnings
15755 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15756 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15757 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15758 lt_cv_prog_compiler_c_o_CXX=yes
15761 chmod u+w . 2>&5
15762 $RM conftest*
15763 # SGI C++ compiler will create directory out/ii_files/ for
15764 # template instantiation
15765 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15766 $RM out/* && rmdir out
15767 cd ..
15768 $RM -r conftest
15769 $RM conftest*
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15773 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15778 hard_links="nottested"
15779 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15780 # do not overwrite the value of need_locks provided by the user
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15782 $as_echo_n "checking if we can lock with hard links... " >&6; }
15783 hard_links=yes
15784 $RM conftest*
15785 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15786 touch conftest.a
15787 ln conftest.a conftest.b 2>&5 || hard_links=no
15788 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15790 $as_echo "$hard_links" >&6; }
15791 if test "$hard_links" = no; then
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15793 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15794 need_locks=warn
15796 else
15797 need_locks=no
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15803 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15805 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15806 case $host_os in
15807 aix[4-9]*)
15808 # If we're using GNU nm, then we don't want the "-C" option.
15809 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15810 # Also, AIX nm treats weak defined symbols like other global defined
15811 # symbols, whereas GNU nm marks them as "W".
15812 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15813 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'
15814 else
15815 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'
15818 pw32*)
15819 export_symbols_cmds_CXX="$ltdll_cmds"
15821 cygwin* | mingw* | cegcc*)
15822 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'
15825 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15827 esac
15828 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15831 $as_echo "$ld_shlibs_CXX" >&6; }
15832 test "$ld_shlibs_CXX" = no && can_build_shared=no
15834 with_gnu_ld_CXX=$with_gnu_ld
15842 # Do we need to explicitly link libc?
15844 case "x$archive_cmds_need_lc_CXX" in
15845 x|xyes)
15846 # Assume -lc should be added
15847 archive_cmds_need_lc_CXX=yes
15849 if test "$enable_shared" = yes && test "$GCC" = yes; then
15850 case $archive_cmds_CXX in
15851 *'~'*)
15852 # FIXME: we may have to deal with multi-command sequences.
15854 '$CC '*)
15855 # Test whether the compiler implicitly links with -lc since on some
15856 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15857 # to ld, don't add -lc before -lgcc.
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15859 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15860 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15861 $as_echo_n "(cached) " >&6
15862 else
15863 $RM conftest*
15864 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15867 (eval $ac_compile) 2>&5
15868 ac_status=$?
15869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15870 test $ac_status = 0; } 2>conftest.err; then
15871 soname=conftest
15872 lib=conftest
15873 libobjs=conftest.$ac_objext
15874 deplibs=
15875 wl=$lt_prog_compiler_wl_CXX
15876 pic_flag=$lt_prog_compiler_pic_CXX
15877 compiler_flags=-v
15878 linker_flags=-v
15879 verstring=
15880 output_objdir=.
15881 libname=conftest
15882 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15883 allow_undefined_flag_CXX=
15884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15885 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15886 ac_status=$?
15887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15888 test $ac_status = 0; }
15889 then
15890 lt_cv_archive_cmds_need_lc_CXX=no
15891 else
15892 lt_cv_archive_cmds_need_lc_CXX=yes
15894 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15895 else
15896 cat conftest.err 1>&5
15898 $RM conftest*
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15902 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15903 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15905 esac
15908 esac
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15974 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15976 library_names_spec=
15977 libname_spec='lib$name'
15978 soname_spec=
15979 shrext_cmds=".so"
15980 postinstall_cmds=
15981 postuninstall_cmds=
15982 finish_cmds=
15983 finish_eval=
15984 shlibpath_var=
15985 shlibpath_overrides_runpath=unknown
15986 version_type=none
15987 dynamic_linker="$host_os ld.so"
15988 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15989 need_lib_prefix=unknown
15990 hardcode_into_libs=no
15992 # when you set need_version to no, make sure it does not cause -set_version
15993 # flags to be left without arguments
15994 need_version=unknown
15996 case $host_os in
15997 aix3*)
15998 version_type=linux
15999 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16000 shlibpath_var=LIBPATH
16002 # AIX 3 has no versioning support, so we append a major version to the name.
16003 soname_spec='${libname}${release}${shared_ext}$major'
16006 aix[4-9]*)
16007 version_type=linux
16008 need_lib_prefix=no
16009 need_version=no
16010 hardcode_into_libs=yes
16011 if test "$host_cpu" = ia64; then
16012 # AIX 5 supports IA64
16013 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16014 shlibpath_var=LD_LIBRARY_PATH
16015 else
16016 # With GCC up to 2.95.x, collect2 would create an import file
16017 # for dependence libraries. The import file would start with
16018 # the line `#! .'. This would cause the generated library to
16019 # depend on `.', always an invalid library. This was fixed in
16020 # development snapshots of GCC prior to 3.0.
16021 case $host_os in
16022 aix4 | aix4.[01] | aix4.[01].*)
16023 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16024 echo ' yes '
16025 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16027 else
16028 can_build_shared=no
16031 esac
16032 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16033 # soname into executable. Probably we can add versioning support to
16034 # collect2, so additional links can be useful in future.
16035 if test "$aix_use_runtimelinking" = yes; then
16036 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16037 # instead of lib<name>.a to let people know that these are not
16038 # typical AIX shared libraries.
16039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16040 else
16041 # We preserve .a as extension for shared libraries through AIX4.2
16042 # and later when we are not doing run time linking.
16043 library_names_spec='${libname}${release}.a $libname.a'
16044 soname_spec='${libname}${release}${shared_ext}$major'
16046 shlibpath_var=LIBPATH
16050 amigaos*)
16051 case $host_cpu in
16052 powerpc)
16053 # Since July 2007 AmigaOS4 officially supports .so libraries.
16054 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16057 m68k)
16058 library_names_spec='$libname.ixlibrary $libname.a'
16059 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16060 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'
16062 esac
16065 beos*)
16066 library_names_spec='${libname}${shared_ext}'
16067 dynamic_linker="$host_os ld.so"
16068 shlibpath_var=LIBRARY_PATH
16071 bsdi[45]*)
16072 version_type=linux
16073 need_version=no
16074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16075 soname_spec='${libname}${release}${shared_ext}$major'
16076 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16077 shlibpath_var=LD_LIBRARY_PATH
16078 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16079 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16080 # the default ld.so.conf also contains /usr/contrib/lib and
16081 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16082 # libtool to hard-code these into programs
16085 cygwin* | mingw* | pw32* | cegcc*)
16086 version_type=windows
16087 shrext_cmds=".dll"
16088 need_version=no
16089 need_lib_prefix=no
16091 case $GCC,$host_os in
16092 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16093 library_names_spec='$libname.dll.a'
16094 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16095 postinstall_cmds='base_file=`basename \${file}`~
16096 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16097 dldir=$destdir/`dirname \$dlpath`~
16098 test -d \$dldir || mkdir -p \$dldir~
16099 $install_prog $dir/$dlname \$dldir/$dlname~
16100 chmod a+x \$dldir/$dlname~
16101 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16102 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16104 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16105 dlpath=$dir/\$dldll~
16106 $RM \$dlpath'
16107 shlibpath_overrides_runpath=yes
16109 case $host_os in
16110 cygwin*)
16111 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16112 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16115 mingw* | cegcc*)
16116 # MinGW DLLs use traditional 'lib' prefix
16117 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16119 pw32*)
16120 # pw32 DLLs use 'pw' prefix rather than 'lib'
16121 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16123 esac
16127 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16129 esac
16130 dynamic_linker='Win32 ld.exe'
16131 # FIXME: first we should search . and the directory the executable is in
16132 shlibpath_var=PATH
16135 darwin* | rhapsody*)
16136 dynamic_linker="$host_os dyld"
16137 version_type=darwin
16138 need_lib_prefix=no
16139 need_version=no
16140 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16141 soname_spec='${libname}${release}${major}$shared_ext'
16142 shlibpath_overrides_runpath=yes
16143 shlibpath_var=DYLD_LIBRARY_PATH
16144 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16146 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16149 dgux*)
16150 version_type=linux
16151 need_lib_prefix=no
16152 need_version=no
16153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16154 soname_spec='${libname}${release}${shared_ext}$major'
16155 shlibpath_var=LD_LIBRARY_PATH
16158 freebsd1*)
16159 dynamic_linker=no
16162 freebsd* | dragonfly*)
16163 # DragonFly does not have aout. When/if they implement a new
16164 # versioning mechanism, adjust this.
16165 if test -x /usr/bin/objformat; then
16166 objformat=`/usr/bin/objformat`
16167 else
16168 case $host_os in
16169 freebsd[123]*) objformat=aout ;;
16170 *) objformat=elf ;;
16171 esac
16173 version_type=freebsd-$objformat
16174 case $version_type in
16175 freebsd-elf*)
16176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16177 need_version=no
16178 need_lib_prefix=no
16180 freebsd-*)
16181 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16182 need_version=yes
16184 esac
16185 shlibpath_var=LD_LIBRARY_PATH
16186 case $host_os in
16187 freebsd2*)
16188 shlibpath_overrides_runpath=yes
16190 freebsd3.[01]* | freebsdelf3.[01]*)
16191 shlibpath_overrides_runpath=yes
16192 hardcode_into_libs=yes
16194 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16195 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16196 shlibpath_overrides_runpath=no
16197 hardcode_into_libs=yes
16199 *) # from 4.6 on, and DragonFly
16200 shlibpath_overrides_runpath=yes
16201 hardcode_into_libs=yes
16203 esac
16206 gnu*)
16207 version_type=linux
16208 need_lib_prefix=no
16209 need_version=no
16210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16211 soname_spec='${libname}${release}${shared_ext}$major'
16212 shlibpath_var=LD_LIBRARY_PATH
16213 hardcode_into_libs=yes
16216 haiku*)
16217 version_type=linux
16218 need_lib_prefix=no
16219 need_version=no
16220 dynamic_linker="$host_os runtime_loader"
16221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16222 soname_spec='${libname}${release}${shared_ext}$major'
16223 shlibpath_var=LIBRARY_PATH
16224 shlibpath_overrides_runpath=yes
16225 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16226 hardcode_into_libs=yes
16229 hpux9* | hpux10* | hpux11*)
16230 # Give a soname corresponding to the major version so that dld.sl refuses to
16231 # link against other versions.
16232 version_type=sunos
16233 need_lib_prefix=no
16234 need_version=no
16235 case $host_cpu in
16236 ia64*)
16237 shrext_cmds='.so'
16238 hardcode_into_libs=yes
16239 dynamic_linker="$host_os dld.so"
16240 shlibpath_var=LD_LIBRARY_PATH
16241 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16243 soname_spec='${libname}${release}${shared_ext}$major'
16244 if test "X$HPUX_IA64_MODE" = X32; then
16245 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16246 else
16247 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16249 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16251 hppa*64*)
16252 shrext_cmds='.sl'
16253 hardcode_into_libs=yes
16254 dynamic_linker="$host_os dld.sl"
16255 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16256 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16258 soname_spec='${libname}${release}${shared_ext}$major'
16259 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16260 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16263 shrext_cmds='.sl'
16264 dynamic_linker="$host_os dld.sl"
16265 shlibpath_var=SHLIB_PATH
16266 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16268 soname_spec='${libname}${release}${shared_ext}$major'
16270 esac
16271 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16272 postinstall_cmds='chmod 555 $lib'
16273 # or fails outright, so override atomically:
16274 install_override_mode=555
16277 interix[3-9]*)
16278 version_type=linux
16279 need_lib_prefix=no
16280 need_version=no
16281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16282 soname_spec='${libname}${release}${shared_ext}$major'
16283 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16284 shlibpath_var=LD_LIBRARY_PATH
16285 shlibpath_overrides_runpath=no
16286 hardcode_into_libs=yes
16289 irix5* | irix6* | nonstopux*)
16290 case $host_os in
16291 nonstopux*) version_type=nonstopux ;;
16293 if test "$lt_cv_prog_gnu_ld" = yes; then
16294 version_type=linux
16295 else
16296 version_type=irix
16297 fi ;;
16298 esac
16299 need_lib_prefix=no
16300 need_version=no
16301 soname_spec='${libname}${release}${shared_ext}$major'
16302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16303 case $host_os in
16304 irix5* | nonstopux*)
16305 libsuff= shlibsuff=
16308 case $LD in # libtool.m4 will add one of these switches to LD
16309 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16310 libsuff= shlibsuff= libmagic=32-bit;;
16311 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16312 libsuff=32 shlibsuff=N32 libmagic=N32;;
16313 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16314 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16315 *) libsuff= shlibsuff= libmagic=never-match;;
16316 esac
16318 esac
16319 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16320 shlibpath_overrides_runpath=no
16321 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16322 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16323 hardcode_into_libs=yes
16326 # No shared lib support for Linux oldld, aout, or coff.
16327 linux*oldld* | linux*aout* | linux*coff*)
16328 dynamic_linker=no
16331 # This must be Linux ELF.
16332 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16333 version_type=linux
16334 need_lib_prefix=no
16335 need_version=no
16336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16337 soname_spec='${libname}${release}${shared_ext}$major'
16338 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16339 shlibpath_var=LD_LIBRARY_PATH
16340 shlibpath_overrides_runpath=no
16342 # Some binutils ld are patched to set DT_RUNPATH
16343 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16344 $as_echo_n "(cached) " >&6
16345 else
16346 lt_cv_shlibpath_overrides_runpath=no
16347 save_LDFLAGS=$LDFLAGS
16348 save_libdir=$libdir
16349 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16350 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16351 if test x$gcc_no_link = xyes; then
16352 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16355 /* end confdefs.h. */
16358 main ()
16362 return 0;
16364 _ACEOF
16365 if ac_fn_cxx_try_link "$LINENO"; then :
16366 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16367 lt_cv_shlibpath_overrides_runpath=yes
16370 rm -f core conftest.err conftest.$ac_objext \
16371 conftest$ac_exeext conftest.$ac_ext
16372 LDFLAGS=$save_LDFLAGS
16373 libdir=$save_libdir
16377 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16379 # This implies no fast_install, which is unacceptable.
16380 # Some rework will be needed to allow for fast_install
16381 # before this can be enabled.
16382 hardcode_into_libs=yes
16384 # Append ld.so.conf contents to the search path
16385 if test -f /etc/ld.so.conf; then
16386 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' ' '`
16387 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16390 # We used to test for /lib/ld.so.1 and disable shared libraries on
16391 # powerpc, because MkLinux only supported shared libraries with the
16392 # GNU dynamic linker. Since this was broken with cross compilers,
16393 # most powerpc-linux boxes support dynamic linking these days and
16394 # people can always --disable-shared, the test was removed, and we
16395 # assume the GNU/Linux dynamic linker is in use.
16396 dynamic_linker='GNU/Linux ld.so'
16399 netbsd*)
16400 version_type=sunos
16401 need_lib_prefix=no
16402 need_version=no
16403 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16405 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16406 dynamic_linker='NetBSD (a.out) ld.so'
16407 else
16408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16409 soname_spec='${libname}${release}${shared_ext}$major'
16410 dynamic_linker='NetBSD ld.elf_so'
16412 shlibpath_var=LD_LIBRARY_PATH
16413 shlibpath_overrides_runpath=yes
16414 hardcode_into_libs=yes
16417 newsos6)
16418 version_type=linux
16419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16420 shlibpath_var=LD_LIBRARY_PATH
16421 shlibpath_overrides_runpath=yes
16424 *nto* | *qnx*)
16425 version_type=qnx
16426 need_lib_prefix=no
16427 need_version=no
16428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16429 soname_spec='${libname}${release}${shared_ext}$major'
16430 shlibpath_var=LD_LIBRARY_PATH
16431 shlibpath_overrides_runpath=no
16432 hardcode_into_libs=yes
16433 dynamic_linker='ldqnx.so'
16436 openbsd*)
16437 version_type=sunos
16438 sys_lib_dlsearch_path_spec="/usr/lib"
16439 need_lib_prefix=no
16440 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16441 case $host_os in
16442 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16443 *) need_version=no ;;
16444 esac
16445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16446 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16447 shlibpath_var=LD_LIBRARY_PATH
16448 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16449 case $host_os in
16450 openbsd2.[89] | openbsd2.[89].*)
16451 shlibpath_overrides_runpath=no
16454 shlibpath_overrides_runpath=yes
16456 esac
16457 else
16458 shlibpath_overrides_runpath=yes
16462 os2*)
16463 libname_spec='$name'
16464 shrext_cmds=".dll"
16465 need_lib_prefix=no
16466 library_names_spec='$libname${shared_ext} $libname.a'
16467 dynamic_linker='OS/2 ld.exe'
16468 shlibpath_var=LIBPATH
16471 osf3* | osf4* | osf5*)
16472 version_type=osf
16473 need_lib_prefix=no
16474 need_version=no
16475 soname_spec='${libname}${release}${shared_ext}$major'
16476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16477 shlibpath_var=LD_LIBRARY_PATH
16478 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16479 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16482 rdos*)
16483 dynamic_linker=no
16486 solaris*)
16487 version_type=linux
16488 need_lib_prefix=no
16489 need_version=no
16490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16491 soname_spec='${libname}${release}${shared_ext}$major'
16492 shlibpath_var=LD_LIBRARY_PATH
16493 shlibpath_overrides_runpath=yes
16494 hardcode_into_libs=yes
16495 # ldd complains unless libraries are executable
16496 postinstall_cmds='chmod +x $lib'
16499 sunos4*)
16500 version_type=sunos
16501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16502 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16503 shlibpath_var=LD_LIBRARY_PATH
16504 shlibpath_overrides_runpath=yes
16505 if test "$with_gnu_ld" = yes; then
16506 need_lib_prefix=no
16508 need_version=yes
16511 sysv4 | sysv4.3*)
16512 version_type=linux
16513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16514 soname_spec='${libname}${release}${shared_ext}$major'
16515 shlibpath_var=LD_LIBRARY_PATH
16516 case $host_vendor in
16517 sni)
16518 shlibpath_overrides_runpath=no
16519 need_lib_prefix=no
16520 runpath_var=LD_RUN_PATH
16522 siemens)
16523 need_lib_prefix=no
16525 motorola)
16526 need_lib_prefix=no
16527 need_version=no
16528 shlibpath_overrides_runpath=no
16529 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16531 esac
16534 sysv4*MP*)
16535 if test -d /usr/nec ;then
16536 version_type=linux
16537 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16538 soname_spec='$libname${shared_ext}.$major'
16539 shlibpath_var=LD_LIBRARY_PATH
16543 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16544 version_type=freebsd-elf
16545 need_lib_prefix=no
16546 need_version=no
16547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16548 soname_spec='${libname}${release}${shared_ext}$major'
16549 shlibpath_var=LD_LIBRARY_PATH
16550 shlibpath_overrides_runpath=yes
16551 hardcode_into_libs=yes
16552 if test "$with_gnu_ld" = yes; then
16553 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16554 else
16555 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16556 case $host_os in
16557 sco3.2v5*)
16558 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16560 esac
16562 sys_lib_dlsearch_path_spec='/usr/lib'
16565 tpf*)
16566 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16567 version_type=linux
16568 need_lib_prefix=no
16569 need_version=no
16570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16571 shlibpath_var=LD_LIBRARY_PATH
16572 shlibpath_overrides_runpath=no
16573 hardcode_into_libs=yes
16576 uts4*)
16577 version_type=linux
16578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16579 soname_spec='${libname}${release}${shared_ext}$major'
16580 shlibpath_var=LD_LIBRARY_PATH
16584 dynamic_linker=no
16586 esac
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16588 $as_echo "$dynamic_linker" >&6; }
16589 test "$dynamic_linker" = no && can_build_shared=no
16591 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16592 if test "$GCC" = yes; then
16593 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16596 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16597 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16599 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16600 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16641 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16642 hardcode_action_CXX=
16643 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16644 test -n "$runpath_var_CXX" ||
16645 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16647 # We can hardcode non-existent directories.
16648 if test "$hardcode_direct_CXX" != no &&
16649 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16650 # have to relink, otherwise we might link with an installed library
16651 # when we should be linking with a yet-to-be-installed one
16652 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16653 test "$hardcode_minus_L_CXX" != no; then
16654 # Linking always hardcodes the temporary library directory.
16655 hardcode_action_CXX=relink
16656 else
16657 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16658 hardcode_action_CXX=immediate
16660 else
16661 # We cannot hardcode anything, or else we can only hardcode existing
16662 # directories.
16663 hardcode_action_CXX=unsupported
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16666 $as_echo "$hardcode_action_CXX" >&6; }
16668 if test "$hardcode_action_CXX" = relink ||
16669 test "$inherit_rpath_CXX" = yes; then
16670 # Fast installation is not supported
16671 enable_fast_install=no
16672 elif test "$shlibpath_overrides_runpath" = yes ||
16673 test "$enable_shared" = no; then
16674 # Fast installation is not necessary
16675 enable_fast_install=needless
16684 fi # test -n "$compiler"
16686 CC=$lt_save_CC
16687 LDCXX=$LD
16688 LD=$lt_save_LD
16689 GCC=$lt_save_GCC
16690 with_gnu_ld=$lt_save_with_gnu_ld
16691 lt_cv_path_LDCXX=$lt_cv_path_LD
16692 lt_cv_path_LD=$lt_save_path_LD
16693 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16694 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16695 fi # test "$_lt_caught_CXX_error" != yes
16697 ac_ext=c
16698 ac_cpp='$CPP $CPPFLAGS'
16699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16715 ac_config_commands="$ac_config_commands libtool"
16720 # Only expand once:
16724 if test -n "$ac_tool_prefix"; then
16725 for ac_prog in gcj
16727 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16728 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16730 $as_echo_n "checking for $ac_word... " >&6; }
16731 if test "${ac_cv_prog_GCJ+set}" = set; then :
16732 $as_echo_n "(cached) " >&6
16733 else
16734 if test -n "$GCJ"; then
16735 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16736 else
16737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16738 for as_dir in $PATH
16740 IFS=$as_save_IFS
16741 test -z "$as_dir" && as_dir=.
16742 for ac_exec_ext in '' $ac_executable_extensions; do
16743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16744 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
16745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16746 break 2
16748 done
16749 done
16750 IFS=$as_save_IFS
16754 GCJ=$ac_cv_prog_GCJ
16755 if test -n "$GCJ"; then
16756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16757 $as_echo "$GCJ" >&6; }
16758 else
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16760 $as_echo "no" >&6; }
16764 test -n "$GCJ" && break
16765 done
16767 if test -z "$GCJ"; then
16768 ac_ct_GCJ=$GCJ
16769 for ac_prog in gcj
16771 # Extract the first word of "$ac_prog", so it can be a program name with args.
16772 set dummy $ac_prog; ac_word=$2
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16774 $as_echo_n "checking for $ac_word... " >&6; }
16775 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
16776 $as_echo_n "(cached) " >&6
16777 else
16778 if test -n "$ac_ct_GCJ"; then
16779 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
16780 else
16781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16782 for as_dir in $PATH
16784 IFS=$as_save_IFS
16785 test -z "$as_dir" && as_dir=.
16786 for ac_exec_ext in '' $ac_executable_extensions; do
16787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16788 ac_cv_prog_ac_ct_GCJ="$ac_prog"
16789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16790 break 2
16792 done
16793 done
16794 IFS=$as_save_IFS
16798 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
16799 if test -n "$ac_ct_GCJ"; then
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
16801 $as_echo "$ac_ct_GCJ" >&6; }
16802 else
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16804 $as_echo "no" >&6; }
16808 test -n "$ac_ct_GCJ" && break
16809 done
16811 if test "x$ac_ct_GCJ" = x; then
16812 GCJ="gcj"
16813 else
16814 case $cross_compiling:$ac_tool_warned in
16815 yes:)
16816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16818 ac_tool_warned=yes ;;
16819 esac
16820 GCJ=$ac_ct_GCJ
16824 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
16825 if test "x${GCJFLAGS-unset}" = xunset; then
16826 GCJFLAGS="-g -O2"
16830 depcc="$GCJ" am_compiler_list='gcc3 gcc'
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16833 $as_echo_n "checking dependency style of $depcc... " >&6; }
16834 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16835 $as_echo_n "(cached) " >&6
16836 else
16837 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16838 # We make a subdir and do the tests there. Otherwise we can end up
16839 # making bogus files that we don't know about and never remove. For
16840 # instance it was reported that on HP-UX the gcc test will end up
16841 # making a dummy file named `D' -- because `-MD' means `put the output
16842 # in D'.
16843 mkdir conftest.dir
16844 # Copy depcomp to subdir because otherwise we won't find it if we're
16845 # using a relative directory.
16846 cp "$am_depcomp" conftest.dir
16847 cd conftest.dir
16848 # We will build objects and dependencies in a subdirectory because
16849 # it helps to detect inapplicable dependency modes. For instance
16850 # both Tru64's cc and ICC support -MD to output dependencies as a
16851 # side effect of compilation, but ICC will put the dependencies in
16852 # the current directory while Tru64 will put them in the object
16853 # directory.
16854 mkdir sub
16856 am_cv_GCJ_dependencies_compiler_type=none
16857 if test "$am_compiler_list" = ""; then
16858 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16860 am__universal=false
16863 for depmode in $am_compiler_list; do
16864 # Setup a source with many dependencies, because some compilers
16865 # like to wrap large dependency lists on column 80 (with \), and
16866 # we should not choose a depcomp mode which is confused by this.
16868 # We need to recreate these files for each test, as the compiler may
16869 # overwrite some of them when testing with obscure command lines.
16870 # This happens at least with the AIX C compiler.
16871 : > sub/conftest.c
16872 for i in 1 2 3 4 5 6; do
16873 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16874 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16875 # Solaris 8's {/usr,}/bin/sh.
16876 touch sub/conftst$i.h
16877 done
16878 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16880 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16881 # mode. It turns out that the SunPro C++ compiler does not properly
16882 # handle `-M -o', and we need to detect this. Also, some Intel
16883 # versions had trouble with output in subdirs
16884 am__obj=sub/conftest.${OBJEXT-o}
16885 am__minus_obj="-o $am__obj"
16886 case $depmode in
16887 gcc)
16888 # This depmode causes a compiler race in universal mode.
16889 test "$am__universal" = false || continue
16891 nosideeffect)
16892 # after this tag, mechanisms are not by side-effect, so they'll
16893 # only be used when explicitly requested
16894 if test "x$enable_dependency_tracking" = xyes; then
16895 continue
16896 else
16897 break
16900 msvisualcpp | msvcmsys)
16901 # This compiler won't grok `-c -o', but also, the minuso test has
16902 # not run yet. These depmodes are late enough in the game, and
16903 # so weak that their functioning should not be impacted.
16904 am__obj=conftest.${OBJEXT-o}
16905 am__minus_obj=
16907 none) break ;;
16908 esac
16909 if depmode=$depmode \
16910 source=sub/conftest.c object=$am__obj \
16911 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16912 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16913 >/dev/null 2>conftest.err &&
16914 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16915 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16916 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16917 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16918 # icc doesn't choke on unknown options, it will just issue warnings
16919 # or remarks (even with -Werror). So we grep stderr for any message
16920 # that says an option was ignored or not supported.
16921 # When given -MP, icc 7.0 and 7.1 complain thusly:
16922 # icc: Command line warning: ignoring option '-M'; no argument required
16923 # The diagnosis changed in icc 8.0:
16924 # icc: Command line remark: option '-MP' not supported
16925 if (grep 'ignoring option' conftest.err ||
16926 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16927 am_cv_GCJ_dependencies_compiler_type=$depmode
16928 break
16931 done
16933 cd ..
16934 rm -rf conftest.dir
16935 else
16936 am_cv_GCJ_dependencies_compiler_type=none
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16941 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
16942 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
16945 test "x$enable_dependency_tracking" != xno \
16946 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16947 am__fastdepGCJ_TRUE=
16948 am__fastdepGCJ_FALSE='#'
16949 else
16950 am__fastdepGCJ_TRUE='#'
16951 am__fastdepGCJ_FALSE=
16956 if test -n "$ac_tool_prefix"; then
16957 for ac_prog in gcj
16959 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16960 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16962 $as_echo_n "checking for $ac_word... " >&6; }
16963 if test "${ac_cv_prog_GCJ+set}" = set; then :
16964 $as_echo_n "(cached) " >&6
16965 else
16966 if test -n "$GCJ"; then
16967 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16968 else
16969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16970 for as_dir in $PATH
16972 IFS=$as_save_IFS
16973 test -z "$as_dir" && as_dir=.
16974 for ac_exec_ext in '' $ac_executable_extensions; do
16975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16976 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
16977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16978 break 2
16980 done
16981 done
16982 IFS=$as_save_IFS
16986 GCJ=$ac_cv_prog_GCJ
16987 if test -n "$GCJ"; then
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16989 $as_echo "$GCJ" >&6; }
16990 else
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16992 $as_echo "no" >&6; }
16996 test -n "$GCJ" && break
16997 done
16999 if test -z "$GCJ"; then
17000 ac_ct_GCJ=$GCJ
17001 for ac_prog in gcj
17003 # Extract the first word of "$ac_prog", so it can be a program name with args.
17004 set dummy $ac_prog; ac_word=$2
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17006 $as_echo_n "checking for $ac_word... " >&6; }
17007 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
17008 $as_echo_n "(cached) " >&6
17009 else
17010 if test -n "$ac_ct_GCJ"; then
17011 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
17012 else
17013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17014 for as_dir in $PATH
17016 IFS=$as_save_IFS
17017 test -z "$as_dir" && as_dir=.
17018 for ac_exec_ext in '' $ac_executable_extensions; do
17019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17020 ac_cv_prog_ac_ct_GCJ="$ac_prog"
17021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17022 break 2
17024 done
17025 done
17026 IFS=$as_save_IFS
17030 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
17031 if test -n "$ac_ct_GCJ"; then
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
17033 $as_echo "$ac_ct_GCJ" >&6; }
17034 else
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17036 $as_echo "no" >&6; }
17040 test -n "$ac_ct_GCJ" && break
17041 done
17043 if test "x$ac_ct_GCJ" = x; then
17044 GCJ="gcj"
17045 else
17046 case $cross_compiling:$ac_tool_warned in
17047 yes:)
17048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17050 ac_tool_warned=yes ;;
17051 esac
17052 GCJ=$ac_ct_GCJ
17056 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
17057 if test "x${GCJFLAGS-unset}" = xunset; then
17058 GCJFLAGS="-g -O2"
17062 depcc="$GCJ" am_compiler_list='gcc3 gcc'
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17065 $as_echo_n "checking dependency style of $depcc... " >&6; }
17066 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
17067 $as_echo_n "(cached) " >&6
17068 else
17069 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17070 # We make a subdir and do the tests there. Otherwise we can end up
17071 # making bogus files that we don't know about and never remove. For
17072 # instance it was reported that on HP-UX the gcc test will end up
17073 # making a dummy file named `D' -- because `-MD' means `put the output
17074 # in D'.
17075 mkdir conftest.dir
17076 # Copy depcomp to subdir because otherwise we won't find it if we're
17077 # using a relative directory.
17078 cp "$am_depcomp" conftest.dir
17079 cd conftest.dir
17080 # We will build objects and dependencies in a subdirectory because
17081 # it helps to detect inapplicable dependency modes. For instance
17082 # both Tru64's cc and ICC support -MD to output dependencies as a
17083 # side effect of compilation, but ICC will put the dependencies in
17084 # the current directory while Tru64 will put them in the object
17085 # directory.
17086 mkdir sub
17088 am_cv_GCJ_dependencies_compiler_type=none
17089 if test "$am_compiler_list" = ""; then
17090 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17092 am__universal=false
17095 for depmode in $am_compiler_list; do
17096 # Setup a source with many dependencies, because some compilers
17097 # like to wrap large dependency lists on column 80 (with \), and
17098 # we should not choose a depcomp mode which is confused by this.
17100 # We need to recreate these files for each test, as the compiler may
17101 # overwrite some of them when testing with obscure command lines.
17102 # This happens at least with the AIX C compiler.
17103 : > sub/conftest.c
17104 for i in 1 2 3 4 5 6; do
17105 echo '#include "conftst'$i'.h"' >> sub/conftest.c
17106 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17107 # Solaris 8's {/usr,}/bin/sh.
17108 touch sub/conftst$i.h
17109 done
17110 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17112 # We check with `-c' and `-o' for the sake of the "dashmstdout"
17113 # mode. It turns out that the SunPro C++ compiler does not properly
17114 # handle `-M -o', and we need to detect this. Also, some Intel
17115 # versions had trouble with output in subdirs
17116 am__obj=sub/conftest.${OBJEXT-o}
17117 am__minus_obj="-o $am__obj"
17118 case $depmode in
17119 gcc)
17120 # This depmode causes a compiler race in universal mode.
17121 test "$am__universal" = false || continue
17123 nosideeffect)
17124 # after this tag, mechanisms are not by side-effect, so they'll
17125 # only be used when explicitly requested
17126 if test "x$enable_dependency_tracking" = xyes; then
17127 continue
17128 else
17129 break
17132 msvisualcpp | msvcmsys)
17133 # This compiler won't grok `-c -o', but also, the minuso test has
17134 # not run yet. These depmodes are late enough in the game, and
17135 # so weak that their functioning should not be impacted.
17136 am__obj=conftest.${OBJEXT-o}
17137 am__minus_obj=
17139 none) break ;;
17140 esac
17141 if depmode=$depmode \
17142 source=sub/conftest.c object=$am__obj \
17143 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17144 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17145 >/dev/null 2>conftest.err &&
17146 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17147 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17148 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17149 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17150 # icc doesn't choke on unknown options, it will just issue warnings
17151 # or remarks (even with -Werror). So we grep stderr for any message
17152 # that says an option was ignored or not supported.
17153 # When given -MP, icc 7.0 and 7.1 complain thusly:
17154 # icc: Command line warning: ignoring option '-M'; no argument required
17155 # The diagnosis changed in icc 8.0:
17156 # icc: Command line remark: option '-MP' not supported
17157 if (grep 'ignoring option' conftest.err ||
17158 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17159 am_cv_GCJ_dependencies_compiler_type=$depmode
17160 break
17163 done
17165 cd ..
17166 rm -rf conftest.dir
17167 else
17168 am_cv_GCJ_dependencies_compiler_type=none
17172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
17173 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
17174 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
17177 test "x$enable_dependency_tracking" != xno \
17178 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
17179 am__fastdepGCJ_TRUE=
17180 am__fastdepGCJ_FALSE='#'
17181 else
17182 am__fastdepGCJ_TRUE='#'
17183 am__fastdepGCJ_FALSE=
17190 # Source file extension for Java test sources.
17191 ac_ext=c
17193 # Object file extension for compiled Java test sources.
17194 objext=o
17195 objext_GCJ=$objext
17197 # Code to be used in simple compile tests
17198 lt_simple_compile_test_code="int some_variable = 0;"
17200 # Code to be used in simple link tests
17201 lt_simple_link_test_code='int main(){return(0);}'
17203 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17210 # If no C compiler was specified, use CC.
17211 LTCC=${LTCC-"$CC"}
17213 # If no C compiler flags were specified, use CFLAGS.
17214 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17216 # Allow CC to be a program name with arguments.
17217 compiler=$CC
17220 # save warnings/boilerplate of simple test code
17221 ac_outfile=conftest.$ac_objext
17222 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17223 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17224 _lt_compiler_boilerplate=`cat conftest.err`
17225 $RM conftest*
17227 ac_outfile=conftest.$ac_objext
17228 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17229 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17230 _lt_linker_boilerplate=`cat conftest.err`
17231 $RM -r conftest*
17234 # Allow CC to be a program name with arguments.
17235 GCC=yes
17236 compiler=$CC
17237 compiler_GCJ=$CC
17238 for cc_temp in $compiler""; do
17239 case $cc_temp in
17240 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17241 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17242 \-*) ;;
17243 *) break;;
17244 esac
17245 done
17246 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17249 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17250 archive_cmds_need_lc_GCJ=no
17252 old_archive_cmds_GCJ=$old_archive_cmds
17254 ## CAVEAT EMPTOR:
17255 ## There is no encapsulation within the following macros, do not change
17256 ## the running order or otherwise move them around unless you know exactly
17257 ## what you are doing...
17258 if test -n "$compiler"; then
17260 lt_prog_compiler_no_builtin_flag_GCJ=
17262 if test "$GCC" = yes; then
17263 case $cc_basename in
17264 nvcc*)
17265 lt_prog_compiler_no_builtin_flag_GCJ=' -Xcompiler -fno-builtin' ;;
17267 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' ;;
17268 esac
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17271 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17272 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
17273 $as_echo_n "(cached) " >&6
17274 else
17275 lt_cv_prog_compiler_rtti_exceptions=no
17276 ac_outfile=conftest.$ac_objext
17277 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17278 lt_compiler_flag="-fno-rtti -fno-exceptions"
17279 # Insert the option either (1) after the last *FLAGS variable, or
17280 # (2) before a word containing "conftest.", or (3) at the end.
17281 # Note that $ac_compile itself does not contain backslashes and begins
17282 # with a dollar sign (not a hyphen), so the echo should work correctly.
17283 # The option is referenced via a variable to avoid confusing sed.
17284 lt_compile=`echo "$ac_compile" | $SED \
17285 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17286 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17287 -e 's:$: $lt_compiler_flag:'`
17288 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17289 (eval "$lt_compile" 2>conftest.err)
17290 ac_status=$?
17291 cat conftest.err >&5
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 if (exit $ac_status) && test -s "$ac_outfile"; then
17294 # The compiler can only warn and ignore the option if not recognized
17295 # So say no if there are warnings other than the usual output.
17296 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17297 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17298 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17299 lt_cv_prog_compiler_rtti_exceptions=yes
17302 $RM conftest*
17305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17306 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17308 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17309 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17310 else
17318 lt_prog_compiler_wl_GCJ=
17319 lt_prog_compiler_pic_GCJ=
17320 lt_prog_compiler_static_GCJ=
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17323 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17325 if test "$GCC" = yes; then
17326 lt_prog_compiler_wl_GCJ='-Wl,'
17327 lt_prog_compiler_static_GCJ='-static'
17329 case $host_os in
17330 aix*)
17331 # All AIX code is PIC.
17332 if test "$host_cpu" = ia64; then
17333 # AIX 5 now supports IA64 processor
17334 lt_prog_compiler_static_GCJ='-Bstatic'
17338 amigaos*)
17339 case $host_cpu in
17340 powerpc)
17341 # see comment about AmigaOS4 .so support
17342 lt_prog_compiler_pic_GCJ='-fPIC'
17344 m68k)
17345 # FIXME: we need at least 68020 code to build shared libraries, but
17346 # adding the `-m68020' flag to GCC prevents building anything better,
17347 # like `-m68040'.
17348 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17350 esac
17353 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17354 # PIC is the default for these OSes.
17357 mingw* | cygwin* | pw32* | os2* | cegcc*)
17358 # This hack is so that the source file can tell whether it is being
17359 # built for inclusion in a dll (and should export symbols for example).
17360 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17361 # (--disable-auto-import) libraries
17365 darwin* | rhapsody*)
17366 # PIC is the default on this platform
17367 # Common symbols not allowed in MH_DYLIB files
17368 lt_prog_compiler_pic_GCJ='-fno-common'
17371 haiku*)
17372 # PIC is the default for Haiku.
17373 # The "-static" flag exists, but is broken.
17374 lt_prog_compiler_static_GCJ=
17377 hpux*)
17378 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17379 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17380 # sets the default TLS model and affects inlining.
17381 case $host_cpu in
17382 hppa*64*)
17383 # +Z the default
17386 lt_prog_compiler_pic_GCJ='-fPIC'
17388 esac
17391 interix[3-9]*)
17392 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17393 # Instead, we relocate shared libraries at runtime.
17396 msdosdjgpp*)
17397 # Just because we use GCC doesn't mean we suddenly get shared libraries
17398 # on systems that don't support them.
17399 lt_prog_compiler_can_build_shared_GCJ=no
17400 enable_shared=no
17403 *nto* | *qnx*)
17404 # QNX uses GNU C++, but need to define -shared option too, otherwise
17405 # it will coredump.
17406 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17409 sysv4*MP*)
17410 if test -d /usr/nec; then
17411 lt_prog_compiler_pic_GCJ=-Kconform_pic
17416 lt_prog_compiler_pic_GCJ='-fPIC'
17418 esac
17420 case $cc_basename in
17421 nvcc*) # Cuda Compiler Driver 2.2
17422 lt_prog_compiler_wl_GCJ='-Xlinker '
17423 lt_prog_compiler_pic_GCJ='-Xcompiler -fPIC'
17425 esac
17426 else
17427 # PORTME Check for flag to pass linker flags through the system compiler.
17428 case $host_os in
17429 aix*)
17430 lt_prog_compiler_wl_GCJ='-Wl,'
17431 if test "$host_cpu" = ia64; then
17432 # AIX 5 now supports IA64 processor
17433 lt_prog_compiler_static_GCJ='-Bstatic'
17434 else
17435 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17439 mingw* | cygwin* | pw32* | os2* | cegcc*)
17440 # This hack is so that the source file can tell whether it is being
17441 # built for inclusion in a dll (and should export symbols for example).
17445 hpux9* | hpux10* | hpux11*)
17446 lt_prog_compiler_wl_GCJ='-Wl,'
17447 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17448 # not for PA HP-UX.
17449 case $host_cpu in
17450 hppa*64*|ia64*)
17451 # +Z the default
17454 lt_prog_compiler_pic_GCJ='+Z'
17456 esac
17457 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17458 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17461 irix5* | irix6* | nonstopux*)
17462 lt_prog_compiler_wl_GCJ='-Wl,'
17463 # PIC (with -KPIC) is the default.
17464 lt_prog_compiler_static_GCJ='-non_shared'
17467 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17468 case $cc_basename in
17469 # old Intel for x86_64 which still supported -KPIC.
17470 ecc*)
17471 lt_prog_compiler_wl_GCJ='-Wl,'
17472 lt_prog_compiler_pic_GCJ='-KPIC'
17473 lt_prog_compiler_static_GCJ='-static'
17475 # icc used to be incompatible with GCC.
17476 # ICC 10 doesn't accept -KPIC any more.
17477 icc* | ifort*)
17478 lt_prog_compiler_wl_GCJ='-Wl,'
17479 lt_prog_compiler_pic_GCJ='-fPIC'
17480 lt_prog_compiler_static_GCJ='-static'
17482 # Lahey Fortran 8.1.
17483 lf95*)
17484 lt_prog_compiler_wl_GCJ='-Wl,'
17485 lt_prog_compiler_pic_GCJ='--shared'
17486 lt_prog_compiler_static_GCJ='--static'
17488 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17489 # Portland Group compilers (*not* the Pentium gcc compiler,
17490 # which looks to be a dead project)
17491 lt_prog_compiler_wl_GCJ='-Wl,'
17492 lt_prog_compiler_pic_GCJ='-fpic'
17493 lt_prog_compiler_static_GCJ='-Bstatic'
17495 ccc*)
17496 lt_prog_compiler_wl_GCJ='-Wl,'
17497 # All Alpha code is PIC.
17498 lt_prog_compiler_static_GCJ='-non_shared'
17500 xl* | bgxl* | bgf* | mpixl*)
17501 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17502 lt_prog_compiler_wl_GCJ='-Wl,'
17503 lt_prog_compiler_pic_GCJ='-qpic'
17504 lt_prog_compiler_static_GCJ='-qstaticlink'
17507 case `$CC -V 2>&1 | sed 5q` in
17508 *Sun\ F* | *Sun*Fortran*)
17509 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17510 lt_prog_compiler_pic_GCJ='-KPIC'
17511 lt_prog_compiler_static_GCJ='-Bstatic'
17512 lt_prog_compiler_wl_GCJ=''
17514 *Sun\ C*)
17515 # Sun C 5.9
17516 lt_prog_compiler_pic_GCJ='-KPIC'
17517 lt_prog_compiler_static_GCJ='-Bstatic'
17518 lt_prog_compiler_wl_GCJ='-Wl,'
17520 esac
17522 esac
17525 newsos6)
17526 lt_prog_compiler_pic_GCJ='-KPIC'
17527 lt_prog_compiler_static_GCJ='-Bstatic'
17530 *nto* | *qnx*)
17531 # QNX uses GNU C++, but need to define -shared option too, otherwise
17532 # it will coredump.
17533 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17536 osf3* | osf4* | osf5*)
17537 lt_prog_compiler_wl_GCJ='-Wl,'
17538 # All OSF/1 code is PIC.
17539 lt_prog_compiler_static_GCJ='-non_shared'
17542 rdos*)
17543 lt_prog_compiler_static_GCJ='-non_shared'
17546 solaris*)
17547 lt_prog_compiler_pic_GCJ='-KPIC'
17548 lt_prog_compiler_static_GCJ='-Bstatic'
17549 case $cc_basename in
17550 f77* | f90* | f95*)
17551 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17553 lt_prog_compiler_wl_GCJ='-Wl,';;
17554 esac
17557 sunos4*)
17558 lt_prog_compiler_wl_GCJ='-Qoption ld '
17559 lt_prog_compiler_pic_GCJ='-PIC'
17560 lt_prog_compiler_static_GCJ='-Bstatic'
17563 sysv4 | sysv4.2uw2* | sysv4.3*)
17564 lt_prog_compiler_wl_GCJ='-Wl,'
17565 lt_prog_compiler_pic_GCJ='-KPIC'
17566 lt_prog_compiler_static_GCJ='-Bstatic'
17569 sysv4*MP*)
17570 if test -d /usr/nec ;then
17571 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17572 lt_prog_compiler_static_GCJ='-Bstatic'
17576 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17577 lt_prog_compiler_wl_GCJ='-Wl,'
17578 lt_prog_compiler_pic_GCJ='-KPIC'
17579 lt_prog_compiler_static_GCJ='-Bstatic'
17582 unicos*)
17583 lt_prog_compiler_wl_GCJ='-Wl,'
17584 lt_prog_compiler_can_build_shared_GCJ=no
17587 uts4*)
17588 lt_prog_compiler_pic_GCJ='-pic'
17589 lt_prog_compiler_static_GCJ='-Bstatic'
17593 lt_prog_compiler_can_build_shared_GCJ=no
17595 esac
17598 case $host_os in
17599 # For platforms which do not support PIC, -DPIC is meaningless:
17600 *djgpp*)
17601 lt_prog_compiler_pic_GCJ=
17604 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17606 esac
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
17608 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17613 # Check to make sure the PIC flag actually works.
17615 if test -n "$lt_prog_compiler_pic_GCJ"; then
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17617 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17618 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
17619 $as_echo_n "(cached) " >&6
17620 else
17621 lt_cv_prog_compiler_pic_works_GCJ=no
17622 ac_outfile=conftest.$ac_objext
17623 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17624 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17625 # Insert the option either (1) after the last *FLAGS variable, or
17626 # (2) before a word containing "conftest.", or (3) at the end.
17627 # Note that $ac_compile itself does not contain backslashes and begins
17628 # with a dollar sign (not a hyphen), so the echo should work correctly.
17629 # The option is referenced via a variable to avoid confusing sed.
17630 lt_compile=`echo "$ac_compile" | $SED \
17631 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17632 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17633 -e 's:$: $lt_compiler_flag:'`
17634 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17635 (eval "$lt_compile" 2>conftest.err)
17636 ac_status=$?
17637 cat conftest.err >&5
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 if (exit $ac_status) && test -s "$ac_outfile"; then
17640 # The compiler can only warn and ignore the option if not recognized
17641 # So say no if there are warnings other than the usual output.
17642 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17643 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17644 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17645 lt_cv_prog_compiler_pic_works_GCJ=yes
17648 $RM conftest*
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17652 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17654 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17655 case $lt_prog_compiler_pic_GCJ in
17656 "" | " "*) ;;
17657 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17658 esac
17659 else
17660 lt_prog_compiler_pic_GCJ=
17661 lt_prog_compiler_can_build_shared_GCJ=no
17669 # Check to make sure the static flag actually works.
17671 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17673 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17674 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
17675 $as_echo_n "(cached) " >&6
17676 else
17677 lt_cv_prog_compiler_static_works_GCJ=no
17678 save_LDFLAGS="$LDFLAGS"
17679 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17680 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17681 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17682 # The linker can only warn and ignore the option if not recognized
17683 # So say no if there are warnings
17684 if test -s conftest.err; then
17685 # Append any errors to the config.log.
17686 cat conftest.err 1>&5
17687 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17688 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17689 if diff conftest.exp conftest.er2 >/dev/null; then
17690 lt_cv_prog_compiler_static_works_GCJ=yes
17692 else
17693 lt_cv_prog_compiler_static_works_GCJ=yes
17696 $RM -r conftest*
17697 LDFLAGS="$save_LDFLAGS"
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17701 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17703 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17705 else
17706 lt_prog_compiler_static_GCJ=
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17713 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17714 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17715 $as_echo_n "(cached) " >&6
17716 else
17717 lt_cv_prog_compiler_c_o_GCJ=no
17718 $RM -r conftest 2>/dev/null
17719 mkdir conftest
17720 cd conftest
17721 mkdir out
17722 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17724 lt_compiler_flag="-o out/conftest2.$ac_objext"
17725 # Insert the option either (1) after the last *FLAGS variable, or
17726 # (2) before a word containing "conftest.", or (3) at the end.
17727 # Note that $ac_compile itself does not contain backslashes and begins
17728 # with a dollar sign (not a hyphen), so the echo should work correctly.
17729 lt_compile=`echo "$ac_compile" | $SED \
17730 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17731 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17732 -e 's:$: $lt_compiler_flag:'`
17733 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17734 (eval "$lt_compile" 2>out/conftest.err)
17735 ac_status=$?
17736 cat out/conftest.err >&5
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17739 then
17740 # The compiler can only warn and ignore the option if not recognized
17741 # So say no if there are warnings
17742 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17743 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17744 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17745 lt_cv_prog_compiler_c_o_GCJ=yes
17748 chmod u+w . 2>&5
17749 $RM conftest*
17750 # SGI C++ compiler will create directory out/ii_files/ for
17751 # template instantiation
17752 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17753 $RM out/* && rmdir out
17754 cd ..
17755 $RM -r conftest
17756 $RM conftest*
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17760 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17765 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17766 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17767 $as_echo_n "(cached) " >&6
17768 else
17769 lt_cv_prog_compiler_c_o_GCJ=no
17770 $RM -r conftest 2>/dev/null
17771 mkdir conftest
17772 cd conftest
17773 mkdir out
17774 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17776 lt_compiler_flag="-o out/conftest2.$ac_objext"
17777 # Insert the option either (1) after the last *FLAGS variable, or
17778 # (2) before a word containing "conftest.", or (3) at the end.
17779 # Note that $ac_compile itself does not contain backslashes and begins
17780 # with a dollar sign (not a hyphen), so the echo should work correctly.
17781 lt_compile=`echo "$ac_compile" | $SED \
17782 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17783 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17784 -e 's:$: $lt_compiler_flag:'`
17785 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17786 (eval "$lt_compile" 2>out/conftest.err)
17787 ac_status=$?
17788 cat out/conftest.err >&5
17789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17791 then
17792 # The compiler can only warn and ignore the option if not recognized
17793 # So say no if there are warnings
17794 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17795 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17796 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17797 lt_cv_prog_compiler_c_o_GCJ=yes
17800 chmod u+w . 2>&5
17801 $RM conftest*
17802 # SGI C++ compiler will create directory out/ii_files/ for
17803 # template instantiation
17804 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17805 $RM out/* && rmdir out
17806 cd ..
17807 $RM -r conftest
17808 $RM conftest*
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17812 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17817 hard_links="nottested"
17818 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17819 # do not overwrite the value of need_locks provided by the user
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17821 $as_echo_n "checking if we can lock with hard links... " >&6; }
17822 hard_links=yes
17823 $RM conftest*
17824 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17825 touch conftest.a
17826 ln conftest.a conftest.b 2>&5 || hard_links=no
17827 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17829 $as_echo "$hard_links" >&6; }
17830 if test "$hard_links" = no; then
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17832 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17833 need_locks=warn
17835 else
17836 need_locks=no
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17842 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17844 runpath_var=
17845 allow_undefined_flag_GCJ=
17846 always_export_symbols_GCJ=no
17847 archive_cmds_GCJ=
17848 archive_expsym_cmds_GCJ=
17849 compiler_needs_object_GCJ=no
17850 enable_shared_with_static_runtimes_GCJ=no
17851 export_dynamic_flag_spec_GCJ=
17852 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17853 hardcode_automatic_GCJ=no
17854 hardcode_direct_GCJ=no
17855 hardcode_direct_absolute_GCJ=no
17856 hardcode_libdir_flag_spec_GCJ=
17857 hardcode_libdir_flag_spec_ld_GCJ=
17858 hardcode_libdir_separator_GCJ=
17859 hardcode_minus_L_GCJ=no
17860 hardcode_shlibpath_var_GCJ=unsupported
17861 inherit_rpath_GCJ=no
17862 link_all_deplibs_GCJ=unknown
17863 module_cmds_GCJ=
17864 module_expsym_cmds_GCJ=
17865 old_archive_from_new_cmds_GCJ=
17866 old_archive_from_expsyms_cmds_GCJ=
17867 thread_safe_flag_spec_GCJ=
17868 whole_archive_flag_spec_GCJ=
17869 # include_expsyms should be a list of space-separated symbols to be *always*
17870 # included in the symbol list
17871 include_expsyms_GCJ=
17872 # exclude_expsyms can be an extended regexp of symbols to exclude
17873 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17874 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17875 # as well as any symbol that contains `d'.
17876 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17877 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17878 # platforms (ab)use it in PIC code, but their linkers get confused if
17879 # the symbol is explicitly referenced. Since portable code cannot
17880 # rely on this symbol name, it's probably fine to never include it in
17881 # preloaded symbol tables.
17882 # Exclude shared library initialization/finalization symbols.
17883 extract_expsyms_cmds=
17885 case $host_os in
17886 cygwin* | mingw* | pw32* | cegcc*)
17887 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17888 # When not using gcc, we currently assume that we are using
17889 # Microsoft Visual C++.
17890 if test "$GCC" != yes; then
17891 with_gnu_ld=no
17894 interix*)
17895 # we just hope/assume this is gcc and not c89 (= MSVC++)
17896 with_gnu_ld=yes
17898 openbsd*)
17899 with_gnu_ld=no
17901 esac
17903 ld_shlibs_GCJ=yes
17905 # On some targets, GNU ld is compatible enough with the native linker
17906 # that we're better off using the native interface for both.
17907 lt_use_gnu_ld_interface=no
17908 if test "$with_gnu_ld" = yes; then
17909 case $host_os in
17910 aix*)
17911 # The AIX port of GNU ld has always aspired to compatibility
17912 # with the native linker. However, as the warning in the GNU ld
17913 # block says, versions before 2.19.5* couldn't really create working
17914 # shared libraries, regardless of the interface used.
17915 case `$LD -v 2>&1` in
17916 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17917 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17918 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17920 lt_use_gnu_ld_interface=yes
17922 esac
17925 lt_use_gnu_ld_interface=yes
17927 esac
17930 if test "$lt_use_gnu_ld_interface" = yes; then
17931 # If archive_cmds runs LD, not CC, wlarc should be empty
17932 wlarc='${wl}'
17934 # Set some defaults for GNU ld with shared library support. These
17935 # are reset later if shared libraries are not supported. Putting them
17936 # here allows them to be overridden if necessary.
17937 runpath_var=LD_RUN_PATH
17938 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17939 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17940 # ancient GNU ld didn't support --whole-archive et. al.
17941 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17942 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17943 else
17944 whole_archive_flag_spec_GCJ=
17946 supports_anon_versioning=no
17947 case `$LD -v 2>&1` in
17948 *GNU\ gold*) supports_anon_versioning=yes ;;
17949 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17950 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17951 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17952 *\ 2.11.*) ;; # other 2.11 versions
17953 *) supports_anon_versioning=yes ;;
17954 esac
17956 # See if GNU ld supports shared libraries.
17957 case $host_os in
17958 aix[3-9]*)
17959 # On AIX/PPC, the GNU linker is very broken
17960 if test "$host_cpu" != ia64; then
17961 ld_shlibs_GCJ=no
17962 cat <<_LT_EOF 1>&2
17964 *** Warning: the GNU linker, at least up to release 2.19, is reported
17965 *** to be unable to reliably create shared libraries on AIX.
17966 *** Therefore, libtool is disabling shared libraries support. If you
17967 *** really care for shared libraries, you may want to install binutils
17968 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17969 *** You will then need to restart the configuration process.
17971 _LT_EOF
17975 amigaos*)
17976 case $host_cpu in
17977 powerpc)
17978 # see comment about AmigaOS4 .so support
17979 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17980 archive_expsym_cmds_GCJ=''
17982 m68k)
17983 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)'
17984 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17985 hardcode_minus_L_GCJ=yes
17987 esac
17990 beos*)
17991 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17992 allow_undefined_flag_GCJ=unsupported
17993 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17994 # support --undefined. This deserves some investigation. FIXME
17995 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17996 else
17997 ld_shlibs_GCJ=no
18001 cygwin* | mingw* | pw32* | cegcc*)
18002 # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18003 # as there is no search path for DLLs.
18004 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18005 export_dynamic_flag_spec_GCJ='${wl}--export-all-symbols'
18006 allow_undefined_flag_GCJ=unsupported
18007 always_export_symbols_GCJ=no
18008 enable_shared_with_static_runtimes_GCJ=yes
18009 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18011 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18012 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18013 # If the export-symbols file already is a .def file (1st line
18014 # is EXPORTS), use it as is; otherwise, prepend...
18015 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18016 cp $export_symbols $output_objdir/$soname.def;
18017 else
18018 echo EXPORTS > $output_objdir/$soname.def;
18019 cat $export_symbols >> $output_objdir/$soname.def;
18021 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18022 else
18023 ld_shlibs_GCJ=no
18027 haiku*)
18028 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18029 link_all_deplibs_GCJ=yes
18032 interix[3-9]*)
18033 hardcode_direct_GCJ=no
18034 hardcode_shlibpath_var_GCJ=no
18035 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18036 export_dynamic_flag_spec_GCJ='${wl}-E'
18037 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18038 # Instead, shared libraries are loaded at an image base (0x10000000 by
18039 # default) and relocated if they conflict, which is a slow very memory
18040 # consuming and fragmenting process. To avoid this, we pick a random,
18041 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18042 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18043 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'
18044 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'
18047 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
18048 tmp_diet=no
18049 if test "$host_os" = linux-dietlibc; then
18050 case $cc_basename in
18051 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
18052 esac
18054 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
18055 && test "$tmp_diet" = no
18056 then
18057 tmp_addflag=
18058 tmp_sharedflag='-shared'
18059 case $cc_basename,$host_cpu in
18060 pgcc*) # Portland Group C compiler
18061 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'
18062 tmp_addflag=' $pic_flag'
18064 pgf77* | pgf90* | pgf95* | pgfortran*)
18065 # Portland Group f77 and f90 compilers
18066 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'
18067 tmp_addflag=' $pic_flag -Mnomain' ;;
18068 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18069 tmp_addflag=' -i_dynamic' ;;
18070 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18071 tmp_addflag=' -i_dynamic -nofor_main' ;;
18072 ifc* | ifort*) # Intel Fortran compiler
18073 tmp_addflag=' -nofor_main' ;;
18074 lf95*) # Lahey Fortran 8.1
18075 whole_archive_flag_spec_GCJ=
18076 tmp_sharedflag='--shared' ;;
18077 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
18078 tmp_sharedflag='-qmkshrobj'
18079 tmp_addflag= ;;
18080 nvcc*) # Cuda Compiler Driver 2.2
18081 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'
18082 compiler_needs_object_GCJ=yes
18084 esac
18085 case `$CC -V 2>&1 | sed 5q` in
18086 *Sun\ C*) # Sun C 5.9
18087 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'
18088 compiler_needs_object_GCJ=yes
18089 tmp_sharedflag='-G' ;;
18090 *Sun\ F*) # Sun Fortran 8.3
18091 tmp_sharedflag='-G' ;;
18092 esac
18093 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18095 if test "x$supports_anon_versioning" = xyes; then
18096 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18097 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18098 echo "local: *; };" >> $output_objdir/$libname.ver~
18099 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18102 case $cc_basename in
18103 xlf* | bgf* | bgxlf* | mpixlf*)
18104 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
18105 whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
18106 hardcode_libdir_flag_spec_GCJ=
18107 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18108 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
18109 if test "x$supports_anon_versioning" = xyes; then
18110 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18111 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18112 echo "local: *; };" >> $output_objdir/$libname.ver~
18113 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
18116 esac
18117 else
18118 ld_shlibs_GCJ=no
18122 netbsd*)
18123 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18124 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18125 wlarc=
18126 else
18127 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18128 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18132 solaris*)
18133 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
18134 ld_shlibs_GCJ=no
18135 cat <<_LT_EOF 1>&2
18137 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18138 *** create shared libraries on Solaris systems. Therefore, libtool
18139 *** is disabling shared libraries support. We urge you to upgrade GNU
18140 *** binutils to release 2.9.1 or newer. Another option is to modify
18141 *** your PATH or compiler configuration so that the native linker is
18142 *** used, and then restart.
18144 _LT_EOF
18145 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18146 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18147 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18148 else
18149 ld_shlibs_GCJ=no
18153 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18154 case `$LD -v 2>&1` in
18155 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18156 ld_shlibs_GCJ=no
18157 cat <<_LT_EOF 1>&2
18159 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18160 *** reliably create shared libraries on SCO systems. Therefore, libtool
18161 *** is disabling shared libraries support. We urge you to upgrade GNU
18162 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18163 *** your PATH or compiler configuration so that the native linker is
18164 *** used, and then restart.
18166 _LT_EOF
18169 # For security reasons, it is highly recommended that you always
18170 # use absolute paths for naming shared libraries, and exclude the
18171 # DT_RUNPATH tag from executables and libraries. But doing so
18172 # requires that you compile everything twice, which is a pain.
18173 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18174 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18175 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18176 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18177 else
18178 ld_shlibs_GCJ=no
18181 esac
18184 sunos4*)
18185 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18186 wlarc=
18187 hardcode_direct_GCJ=yes
18188 hardcode_shlibpath_var_GCJ=no
18192 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18193 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18194 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18195 else
18196 ld_shlibs_GCJ=no
18199 esac
18201 if test "$ld_shlibs_GCJ" = no; then
18202 runpath_var=
18203 hardcode_libdir_flag_spec_GCJ=
18204 export_dynamic_flag_spec_GCJ=
18205 whole_archive_flag_spec_GCJ=
18207 else
18208 # PORTME fill in a description of your system's linker (not GNU ld)
18209 case $host_os in
18210 aix3*)
18211 allow_undefined_flag_GCJ=unsupported
18212 always_export_symbols_GCJ=yes
18213 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'
18214 # Note: this linker hardcodes the directories in LIBPATH if there
18215 # are no directories specified by -L.
18216 hardcode_minus_L_GCJ=yes
18217 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18218 # Neither direct hardcoding nor static linking is supported with a
18219 # broken collect2.
18220 hardcode_direct_GCJ=unsupported
18224 aix[4-9]*)
18225 if test "$host_cpu" = ia64; then
18226 # On IA64, the linker does run time linking by default, so we don't
18227 # have to do anything special.
18228 aix_use_runtimelinking=no
18229 exp_sym_flag='-Bexport'
18230 no_entry_flag=""
18231 else
18232 # If we're using GNU nm, then we don't want the "-C" option.
18233 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18234 # Also, AIX nm treats weak defined symbols like other global
18235 # defined symbols, whereas GNU nm marks them as "W".
18236 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18237 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'
18238 else
18239 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'
18241 aix_use_runtimelinking=no
18243 # Test if we are trying to use run time linking or normal
18244 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18245 # need to do runtime linking.
18246 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18247 for ld_flag in $LDFLAGS; do
18248 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18249 aix_use_runtimelinking=yes
18250 break
18252 done
18254 esac
18256 exp_sym_flag='-bexport'
18257 no_entry_flag='-bnoentry'
18260 # When large executables or shared objects are built, AIX ld can
18261 # have problems creating the table of contents. If linking a library
18262 # or program results in "error TOC overflow" add -mminimal-toc to
18263 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18264 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18266 archive_cmds_GCJ=''
18267 hardcode_direct_GCJ=yes
18268 hardcode_direct_absolute_GCJ=yes
18269 hardcode_libdir_separator_GCJ=':'
18270 link_all_deplibs_GCJ=yes
18271 file_list_spec_GCJ='${wl}-f,'
18273 if test "$GCC" = yes; then
18274 case $host_os in aix4.[012]|aix4.[012].*)
18275 # We only want to do this on AIX 4.2 and lower, the check
18276 # below for broken collect2 doesn't work under 4.3+
18277 collect2name=`${CC} -print-prog-name=collect2`
18278 if test -f "$collect2name" &&
18279 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18280 then
18281 # We have reworked collect2
18283 else
18284 # We have old collect2
18285 hardcode_direct_GCJ=unsupported
18286 # It fails to find uninstalled libraries when the uninstalled
18287 # path is not listed in the libpath. Setting hardcode_minus_L
18288 # to unsupported forces relinking
18289 hardcode_minus_L_GCJ=yes
18290 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18291 hardcode_libdir_separator_GCJ=
18294 esac
18295 shared_flag='-shared'
18296 if test "$aix_use_runtimelinking" = yes; then
18297 shared_flag="$shared_flag "'${wl}-G'
18299 else
18300 # not using gcc
18301 if test "$host_cpu" = ia64; then
18302 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18303 # chokes on -Wl,-G. The following line is correct:
18304 shared_flag='-G'
18305 else
18306 if test "$aix_use_runtimelinking" = yes; then
18307 shared_flag='${wl}-G'
18308 else
18309 shared_flag='${wl}-bM:SRE'
18314 export_dynamic_flag_spec_GCJ='${wl}-bexpall'
18315 # It seems that -bexpall does not export symbols beginning with
18316 # underscore (_), so it is better to generate a list of symbols to export.
18317 always_export_symbols_GCJ=yes
18318 if test "$aix_use_runtimelinking" = yes; then
18319 # Warning - without using the other runtime loading flags (-brtl),
18320 # -berok will link without error, but may produce a broken library.
18321 allow_undefined_flag_GCJ='-berok'
18322 # Determine the default libpath from the value encoded in an
18323 # empty executable.
18324 if test x$gcc_no_link = xyes; then
18325 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18328 /* end confdefs.h. */
18331 main ()
18335 return 0;
18337 _ACEOF
18338 if ac_fn_c_try_link "$LINENO"; then :
18340 lt_aix_libpath_sed='
18341 /Import File Strings/,/^$/ {
18342 /^0/ {
18343 s/^0 *\(.*\)$/\1/
18347 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18348 # Check for a 64-bit object if we didn't find anything.
18349 if test -z "$aix_libpath"; then
18350 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18353 rm -f core conftest.err conftest.$ac_objext \
18354 conftest$ac_exeext conftest.$ac_ext
18355 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18357 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18358 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"
18359 else
18360 if test "$host_cpu" = ia64; then
18361 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18362 allow_undefined_flag_GCJ="-z nodefs"
18363 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"
18364 else
18365 # Determine the default libpath from the value encoded in an
18366 # empty executable.
18367 if test x$gcc_no_link = xyes; then
18368 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18371 /* end confdefs.h. */
18374 main ()
18378 return 0;
18380 _ACEOF
18381 if ac_fn_c_try_link "$LINENO"; then :
18383 lt_aix_libpath_sed='
18384 /Import File Strings/,/^$/ {
18385 /^0/ {
18386 s/^0 *\(.*\)$/\1/
18390 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18391 # Check for a 64-bit object if we didn't find anything.
18392 if test -z "$aix_libpath"; then
18393 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18396 rm -f core conftest.err conftest.$ac_objext \
18397 conftest$ac_exeext conftest.$ac_ext
18398 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18400 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18401 # Warning - without using the other run time loading flags,
18402 # -berok will link without error, but may produce a broken library.
18403 no_undefined_flag_GCJ=' ${wl}-bernotok'
18404 allow_undefined_flag_GCJ=' ${wl}-berok'
18405 if test "$with_gnu_ld" = yes; then
18406 # We only use this code for GNU lds that support --whole-archive.
18407 whole_archive_flag_spec_GCJ='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18408 else
18409 # Exported symbols can be pulled into shared objects from archives
18410 whole_archive_flag_spec_GCJ='$convenience'
18412 archive_cmds_need_lc_GCJ=yes
18413 # This is similar to how AIX traditionally builds its shared libraries.
18414 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'
18419 amigaos*)
18420 case $host_cpu in
18421 powerpc)
18422 # see comment about AmigaOS4 .so support
18423 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18424 archive_expsym_cmds_GCJ=''
18426 m68k)
18427 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)'
18428 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18429 hardcode_minus_L_GCJ=yes
18431 esac
18434 bsdi[45]*)
18435 export_dynamic_flag_spec_GCJ=-rdynamic
18438 cygwin* | mingw* | pw32* | cegcc*)
18439 # When not using gcc, we currently assume that we are using
18440 # Microsoft Visual C++.
18441 # hardcode_libdir_flag_spec is actually meaningless, as there is
18442 # no search path for DLLs.
18443 hardcode_libdir_flag_spec_GCJ=' '
18444 allow_undefined_flag_GCJ=unsupported
18445 # Tell ltmain to make .lib files, not .a files.
18446 libext=lib
18447 # Tell ltmain to make .dll files, not .so files.
18448 shrext_cmds=".dll"
18449 # FIXME: Setting linknames here is a bad hack.
18450 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18451 # The linker will automatically build a .lib file if we build a DLL.
18452 old_archive_from_new_cmds_GCJ='true'
18453 # FIXME: Should let the user specify the lib program.
18454 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18455 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18456 enable_shared_with_static_runtimes_GCJ=yes
18459 darwin* | rhapsody*)
18462 archive_cmds_need_lc_GCJ=no
18463 hardcode_direct_GCJ=no
18464 hardcode_automatic_GCJ=yes
18465 hardcode_shlibpath_var_GCJ=unsupported
18466 if test "$lt_cv_ld_force_load" = "yes"; then
18467 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\"`'
18468 else
18469 whole_archive_flag_spec_GCJ=''
18471 link_all_deplibs_GCJ=yes
18472 allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
18473 case $cc_basename in
18474 ifort*) _lt_dar_can_shared=yes ;;
18475 *) _lt_dar_can_shared=$GCC ;;
18476 esac
18477 if test "$_lt_dar_can_shared" = "yes"; then
18478 output_verbose_link_cmd=func_echo_all
18479 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}"
18480 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18481 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}"
18482 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}"
18484 else
18485 ld_shlibs_GCJ=no
18490 dgux*)
18491 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18492 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18493 hardcode_shlibpath_var_GCJ=no
18496 freebsd1*)
18497 ld_shlibs_GCJ=no
18500 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18501 # support. Future versions do this automatically, but an explicit c++rt0.o
18502 # does not break anything, and helps significantly (at the cost of a little
18503 # extra space).
18504 freebsd2.2*)
18505 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18506 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18507 hardcode_direct_GCJ=yes
18508 hardcode_shlibpath_var_GCJ=no
18511 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18512 freebsd2*)
18513 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18514 hardcode_direct_GCJ=yes
18515 hardcode_minus_L_GCJ=yes
18516 hardcode_shlibpath_var_GCJ=no
18519 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18520 freebsd* | dragonfly*)
18521 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18522 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18523 hardcode_direct_GCJ=yes
18524 hardcode_shlibpath_var_GCJ=no
18527 hpux9*)
18528 if test "$GCC" = yes; then
18529 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'
18530 else
18531 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'
18533 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18534 hardcode_libdir_separator_GCJ=:
18535 hardcode_direct_GCJ=yes
18537 # hardcode_minus_L: Not really in the search PATH,
18538 # but as the default location of the library.
18539 hardcode_minus_L_GCJ=yes
18540 export_dynamic_flag_spec_GCJ='${wl}-E'
18543 hpux10*)
18544 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18545 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18546 else
18547 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18549 if test "$with_gnu_ld" = no; then
18550 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18551 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18552 hardcode_libdir_separator_GCJ=:
18553 hardcode_direct_GCJ=yes
18554 hardcode_direct_absolute_GCJ=yes
18555 export_dynamic_flag_spec_GCJ='${wl}-E'
18556 # hardcode_minus_L: Not really in the search PATH,
18557 # but as the default location of the library.
18558 hardcode_minus_L_GCJ=yes
18562 hpux11*)
18563 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18564 case $host_cpu in
18565 hppa*64*)
18566 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18568 ia64*)
18569 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18572 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18574 esac
18575 else
18576 case $host_cpu in
18577 hppa*64*)
18578 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18580 ia64*)
18581 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18584 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18586 esac
18588 if test "$with_gnu_ld" = no; then
18589 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18590 hardcode_libdir_separator_GCJ=:
18592 case $host_cpu in
18593 hppa*64*|ia64*)
18594 hardcode_direct_GCJ=no
18595 hardcode_shlibpath_var_GCJ=no
18598 hardcode_direct_GCJ=yes
18599 hardcode_direct_absolute_GCJ=yes
18600 export_dynamic_flag_spec_GCJ='${wl}-E'
18602 # hardcode_minus_L: Not really in the search PATH,
18603 # but as the default location of the library.
18604 hardcode_minus_L_GCJ=yes
18606 esac
18610 irix5* | irix6* | nonstopux*)
18611 if test "$GCC" = yes; then
18612 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'
18613 # Try to use the -exported_symbol ld option, if it does not
18614 # work, assume that -exports_file does not work either and
18615 # implicitly export all symbols.
18616 save_LDFLAGS="$LDFLAGS"
18617 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18618 if test x$gcc_no_link = xyes; then
18619 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18622 /* end confdefs.h. */
18623 int foo(void) {}
18624 _ACEOF
18625 if ac_fn_c_try_link "$LINENO"; then :
18626 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'
18629 rm -f core conftest.err conftest.$ac_objext \
18630 conftest$ac_exeext conftest.$ac_ext
18631 LDFLAGS="$save_LDFLAGS"
18632 else
18633 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'
18634 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'
18636 archive_cmds_need_lc_GCJ='no'
18637 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18638 hardcode_libdir_separator_GCJ=:
18639 inherit_rpath_GCJ=yes
18640 link_all_deplibs_GCJ=yes
18643 netbsd*)
18644 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18645 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18646 else
18647 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18649 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18650 hardcode_direct_GCJ=yes
18651 hardcode_shlibpath_var_GCJ=no
18654 newsos6)
18655 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18656 hardcode_direct_GCJ=yes
18657 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18658 hardcode_libdir_separator_GCJ=:
18659 hardcode_shlibpath_var_GCJ=no
18662 *nto* | *qnx*)
18665 openbsd*)
18666 if test -f /usr/libexec/ld.so; then
18667 hardcode_direct_GCJ=yes
18668 hardcode_shlibpath_var_GCJ=no
18669 hardcode_direct_absolute_GCJ=yes
18670 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18671 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18672 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18673 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18674 export_dynamic_flag_spec_GCJ='${wl}-E'
18675 else
18676 case $host_os in
18677 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18678 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18679 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18682 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18683 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18685 esac
18687 else
18688 ld_shlibs_GCJ=no
18692 os2*)
18693 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18694 hardcode_minus_L_GCJ=yes
18695 allow_undefined_flag_GCJ=unsupported
18696 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'
18697 old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18700 osf3*)
18701 if test "$GCC" = yes; then
18702 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18703 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'
18704 else
18705 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18706 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'
18708 archive_cmds_need_lc_GCJ='no'
18709 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18710 hardcode_libdir_separator_GCJ=:
18713 osf4* | osf5*) # as osf3* with the addition of -msym flag
18714 if test "$GCC" = yes; then
18715 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18716 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'
18717 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18718 else
18719 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18720 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'
18721 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~
18722 $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'
18724 # Both c and cxx compiler support -rpath directly
18725 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18727 archive_cmds_need_lc_GCJ='no'
18728 hardcode_libdir_separator_GCJ=:
18731 solaris*)
18732 no_undefined_flag_GCJ=' -z defs'
18733 if test "$GCC" = yes; then
18734 wlarc='${wl}'
18735 archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18736 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18737 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18738 else
18739 case `$CC -V 2>&1` in
18740 *"Compilers 5.0"*)
18741 wlarc=''
18742 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18743 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18744 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18747 wlarc='${wl}'
18748 archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18749 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18750 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18752 esac
18754 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18755 hardcode_shlibpath_var_GCJ=no
18756 case $host_os in
18757 solaris2.[0-5] | solaris2.[0-5].*) ;;
18759 # The compiler driver will combine and reorder linker options,
18760 # but understands `-z linker_flag'. GCC discards it without `$wl',
18761 # but is careful enough not to reorder.
18762 # Supported since Solaris 2.6 (maybe 2.5.1?)
18763 if test "$GCC" = yes; then
18764 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18765 else
18766 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18769 esac
18770 link_all_deplibs_GCJ=yes
18773 sunos4*)
18774 if test "x$host_vendor" = xsequent; then
18775 # Use $CC to link under sequent, because it throws in some extra .o
18776 # files that make .init and .fini sections work.
18777 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18778 else
18779 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18781 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18782 hardcode_direct_GCJ=yes
18783 hardcode_minus_L_GCJ=yes
18784 hardcode_shlibpath_var_GCJ=no
18787 sysv4)
18788 case $host_vendor in
18789 sni)
18790 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18791 hardcode_direct_GCJ=yes # is this really true???
18793 siemens)
18794 ## LD is ld it makes a PLAMLIB
18795 ## CC just makes a GrossModule.
18796 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18797 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18798 hardcode_direct_GCJ=no
18800 motorola)
18801 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18802 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18804 esac
18805 runpath_var='LD_RUN_PATH'
18806 hardcode_shlibpath_var_GCJ=no
18809 sysv4.3*)
18810 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18811 hardcode_shlibpath_var_GCJ=no
18812 export_dynamic_flag_spec_GCJ='-Bexport'
18815 sysv4*MP*)
18816 if test -d /usr/nec; then
18817 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18818 hardcode_shlibpath_var_GCJ=no
18819 runpath_var=LD_RUN_PATH
18820 hardcode_runpath_var=yes
18821 ld_shlibs_GCJ=yes
18825 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18826 no_undefined_flag_GCJ='${wl}-z,text'
18827 archive_cmds_need_lc_GCJ=no
18828 hardcode_shlibpath_var_GCJ=no
18829 runpath_var='LD_RUN_PATH'
18831 if test "$GCC" = yes; then
18832 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18833 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18834 else
18835 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18836 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18840 sysv5* | sco3.2v5* | sco5v6*)
18841 # Note: We can NOT use -z defs as we might desire, because we do not
18842 # link with -lc, and that would cause any symbols used from libc to
18843 # always be unresolved, which means just about no library would
18844 # ever link correctly. If we're not using GNU ld we use -z text
18845 # though, which does catch some bad symbols but isn't as heavy-handed
18846 # as -z defs.
18847 no_undefined_flag_GCJ='${wl}-z,text'
18848 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18849 archive_cmds_need_lc_GCJ=no
18850 hardcode_shlibpath_var_GCJ=no
18851 hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
18852 hardcode_libdir_separator_GCJ=':'
18853 link_all_deplibs_GCJ=yes
18854 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18855 runpath_var='LD_RUN_PATH'
18857 if test "$GCC" = yes; then
18858 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18859 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18860 else
18861 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18862 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18866 uts4*)
18867 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18868 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18869 hardcode_shlibpath_var_GCJ=no
18873 ld_shlibs_GCJ=no
18875 esac
18877 if test x$host_vendor = xsni; then
18878 case $host in
18879 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18880 export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
18882 esac
18886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
18887 $as_echo "$ld_shlibs_GCJ" >&6; }
18888 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18890 with_gnu_ld_GCJ=$with_gnu_ld
18898 # Do we need to explicitly link libc?
18900 case "x$archive_cmds_need_lc_GCJ" in
18901 x|xyes)
18902 # Assume -lc should be added
18903 archive_cmds_need_lc_GCJ=yes
18905 if test "$enable_shared" = yes && test "$GCC" = yes; then
18906 case $archive_cmds_GCJ in
18907 *'~'*)
18908 # FIXME: we may have to deal with multi-command sequences.
18910 '$CC '*)
18911 # Test whether the compiler implicitly links with -lc since on some
18912 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18913 # to ld, don't add -lc before -lgcc.
18914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18915 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18916 if test "${lt_cv_archive_cmds_need_lc_GCJ+set}" = set; then :
18917 $as_echo_n "(cached) " >&6
18918 else
18919 $RM conftest*
18920 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18922 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18923 (eval $ac_compile) 2>&5
18924 ac_status=$?
18925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18926 test $ac_status = 0; } 2>conftest.err; then
18927 soname=conftest
18928 lib=conftest
18929 libobjs=conftest.$ac_objext
18930 deplibs=
18931 wl=$lt_prog_compiler_wl_GCJ
18932 pic_flag=$lt_prog_compiler_pic_GCJ
18933 compiler_flags=-v
18934 linker_flags=-v
18935 verstring=
18936 output_objdir=.
18937 libname=conftest
18938 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18939 allow_undefined_flag_GCJ=
18940 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18941 (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18942 ac_status=$?
18943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18944 test $ac_status = 0; }
18945 then
18946 lt_cv_archive_cmds_need_lc_GCJ=no
18947 else
18948 lt_cv_archive_cmds_need_lc_GCJ=yes
18950 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18951 else
18952 cat conftest.err 1>&5
18954 $RM conftest*
18957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GCJ" >&5
18958 $as_echo "$lt_cv_archive_cmds_need_lc_GCJ" >&6; }
18959 archive_cmds_need_lc_GCJ=$lt_cv_archive_cmds_need_lc_GCJ
18961 esac
18964 esac
19029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19030 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19031 hardcode_action_GCJ=
19032 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
19033 test -n "$runpath_var_GCJ" ||
19034 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19036 # We can hardcode non-existent directories.
19037 if test "$hardcode_direct_GCJ" != no &&
19038 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19039 # have to relink, otherwise we might link with an installed library
19040 # when we should be linking with a yet-to-be-installed one
19041 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19042 test "$hardcode_minus_L_GCJ" != no; then
19043 # Linking always hardcodes the temporary library directory.
19044 hardcode_action_GCJ=relink
19045 else
19046 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19047 hardcode_action_GCJ=immediate
19049 else
19050 # We cannot hardcode anything, or else we can only hardcode existing
19051 # directories.
19052 hardcode_action_GCJ=unsupported
19054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
19055 $as_echo "$hardcode_action_GCJ" >&6; }
19057 if test "$hardcode_action_GCJ" = relink ||
19058 test "$inherit_rpath_GCJ" = yes; then
19059 # Fast installation is not supported
19060 enable_fast_install=no
19061 elif test "$shlibpath_overrides_runpath" = yes ||
19062 test "$enable_shared" = no; then
19063 # Fast installation is not necessary
19064 enable_fast_install=needless
19075 compiler_GCJ=${GCJ-gcj}
19076 ac_ext=c
19077 ac_cpp='$CPP $CPPFLAGS'
19078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19083 if test "x$CC" != xcc; then
19084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
19085 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
19086 else
19087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
19088 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
19090 set dummy $CC; ac_cc=`$as_echo "$2" |
19091 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19092 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
19093 $as_echo_n "(cached) " >&6
19094 else
19095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19096 /* end confdefs.h. */
19099 main ()
19103 return 0;
19105 _ACEOF
19106 # Make sure it works both with $CC and with simple cc.
19107 # We do the test twice because some compilers refuse to overwrite an
19108 # existing .o file with -o, though they will create one.
19109 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19110 rm -f conftest2.*
19111 if { { case "(($ac_try" in
19112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19113 *) ac_try_echo=$ac_try;;
19114 esac
19115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19116 $as_echo "$ac_try_echo"; } >&5
19117 (eval "$ac_try") 2>&5
19118 ac_status=$?
19119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19120 test $ac_status = 0; } &&
19121 test -f conftest2.$ac_objext && { { case "(($ac_try" in
19122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19123 *) ac_try_echo=$ac_try;;
19124 esac
19125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19126 $as_echo "$ac_try_echo"; } >&5
19127 (eval "$ac_try") 2>&5
19128 ac_status=$?
19129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19130 test $ac_status = 0; };
19131 then
19132 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
19133 if test "x$CC" != xcc; then
19134 # Test first that cc exists at all.
19135 if { ac_try='cc -c conftest.$ac_ext >&5'
19136 { { case "(($ac_try" in
19137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19138 *) ac_try_echo=$ac_try;;
19139 esac
19140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19141 $as_echo "$ac_try_echo"; } >&5
19142 (eval "$ac_try") 2>&5
19143 ac_status=$?
19144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19145 test $ac_status = 0; }; }; then
19146 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19147 rm -f conftest2.*
19148 if { { case "(($ac_try" in
19149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19150 *) ac_try_echo=$ac_try;;
19151 esac
19152 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19153 $as_echo "$ac_try_echo"; } >&5
19154 (eval "$ac_try") 2>&5
19155 ac_status=$?
19156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19157 test $ac_status = 0; } &&
19158 test -f conftest2.$ac_objext && { { case "(($ac_try" in
19159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19160 *) ac_try_echo=$ac_try;;
19161 esac
19162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19163 $as_echo "$ac_try_echo"; } >&5
19164 (eval "$ac_try") 2>&5
19165 ac_status=$?
19166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19167 test $ac_status = 0; };
19168 then
19169 # cc works too.
19171 else
19172 # cc exists but doesn't like -o.
19173 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19177 else
19178 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19180 rm -f core conftest*
19183 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
19184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19185 $as_echo "yes" >&6; }
19186 else
19187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19188 $as_echo "no" >&6; }
19190 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
19194 # FIXME: we rely on the cache variable name because
19195 # there is no other way.
19196 set dummy $CC
19197 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19198 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
19199 if test "$am_t" != yes; then
19200 # Losing compiler, so override with the script.
19201 # FIXME: It is wrong to rewrite CC.
19202 # But if we don't then we get into trouble of one sort or another.
19203 # A longer-term fix would be to have automake use am__CC in this case,
19204 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19205 CC="$am_aux_dir/compile $CC"
19212 subdirs="$subdirs classpath libltdl"
19215 # The -no-testsuite modules omit the test subdir.
19216 if test -d $srcdir/testsuite; then
19217 TESTSUBDIR_TRUE=
19218 TESTSUBDIR_FALSE='#'
19219 else
19220 TESTSUBDIR_TRUE='#'
19221 TESTSUBDIR_FALSE=
19225 # Should the runtime set system properties by examining the
19226 # environment variable GCJ_PROPERTIES?
19227 # Check whether --enable-getenv-properties was given.
19228 if test "${enable_getenv_properties+set}" = set; then :
19229 enableval=$enable_getenv_properties;
19233 # Whether GCJ_PROPERTIES is used depends on the target.
19234 if test -z "$enable_getenv_properties"; then
19235 enable_getenv_properties=${enable_getenv_properties_default-yes}
19237 if test "$enable_getenv_properties" = no; then
19239 $as_echo "#define DISABLE_GETENV_PROPERTIES 1" >>confdefs.h
19243 # Whether we should use arguments to main()
19244 if test -z "$enable_main_args"; then
19245 enable_main_args=${enable_main_args_default-yes}
19247 if test "$enable_main_args" = no; then
19249 $as_echo "#define DISABLE_MAIN_ARGS 1" >>confdefs.h
19254 # Should we use hashtable-based synchronization?
19255 # Currently works only for Linux X86/ia64
19256 # Typically faster and more space-efficient
19257 # Check whether --enable-hash-synchronization was given.
19258 if test "${enable_hash_synchronization+set}" = set; then :
19259 enableval=$enable_hash_synchronization;
19263 if test -z "$enable_hash_synchronization"; then
19264 enable_hash_synchronization=$enable_hash_synchronization_default
19268 install_ecj_jar=no
19269 ECJ_BUILD_JAR=
19270 ECJ_JAR=
19272 # Check whether --with-ecj-jar was given.
19273 if test "${with_ecj_jar+set}" = set; then :
19274 withval=$with_ecj_jar; ECJ_JAR=$withval
19275 else
19276 if test -f $multi_basedir/ecj.jar; then
19277 ECJ_BUILD_JAR=$multi_basedir/ecj.jar
19278 ECJ_JAR='$(jardir)/ecj.jar'
19279 install_ecj_jar=yes
19285 if test "$ECJ_JAR" != ""; then
19286 BUILD_ECJ1_TRUE=
19287 BUILD_ECJ1_FALSE='#'
19288 else
19289 BUILD_ECJ1_TRUE='#'
19290 BUILD_ECJ1_FALSE=
19293 if test $install_ecj_jar = yes; then
19294 INSTALL_ECJ_JAR_TRUE=
19295 INSTALL_ECJ_JAR_FALSE='#'
19296 else
19297 INSTALL_ECJ_JAR_TRUE='#'
19298 INSTALL_ECJ_JAR_FALSE=
19303 # Check whether --with-java-home was given.
19304 if test "${with_java_home+set}" = set; then :
19305 withval=$with_java_home; JAVA_HOME="${withval}"
19306 else
19307 JAVA_HOME=""
19310 if test ! -z "$JAVA_HOME"; then
19311 JAVA_HOME_SET_TRUE=
19312 JAVA_HOME_SET_FALSE='#'
19313 else
19314 JAVA_HOME_SET_TRUE='#'
19315 JAVA_HOME_SET_FALSE=
19320 suppress_libgcj_bc=no
19321 # Check whether --enable-libgcj-bc was given.
19322 if test "${enable_libgcj_bc+set}" = set; then :
19323 enableval=$enable_libgcj_bc; if test "$enable_libgcj_bc" = "no"; then
19324 suppress_libgcj_bc=yes
19328 if test "$suppress_libgcj_bc" = "yes"; then
19329 SUPPRESS_LIBGCJ_BC_TRUE=
19330 SUPPRESS_LIBGCJ_BC_FALSE='#'
19331 else
19332 SUPPRESS_LIBGCJ_BC_TRUE='#'
19333 SUPPRESS_LIBGCJ_BC_FALSE=
19337 build_libgcj_reduced_reflection=no
19338 # Check whether --enable-reduced-reflection was given.
19339 if test "${enable_reduced_reflection+set}" = set; then :
19340 enableval=$enable_reduced_reflection; if test "$enable_reduced_reflection" = "yes"; then
19341 build_libgcj_reduced_reflection=yes
19345 if test "$build_libgcj_reduced_reflection" = "yes"; then
19346 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE=
19347 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE='#'
19348 else
19349 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE='#'
19350 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE=
19354 # What is the native OS API for MinGW?
19356 # Check whether --with-win32-nlsapi was given.
19357 if test "${with_win32_nlsapi+set}" = set; then :
19358 withval=$with_win32_nlsapi; case "${withval}" in
19359 ansi) with_win32_nlsapi=ansi ;;
19360 unicows) with_win32_nlsapi=unicows ;;
19361 unicode) with_win32_nlsapi=unicode ;;
19362 *) as_fn_error "Bad value ${withval} for --with-win32-nlsapi." "$LINENO" 5 ;;
19363 esac
19364 else
19365 with_win32_nlsapi=ansi
19369 case "${with_win32_nlsapi}" in
19370 unicows | unicode)
19372 $as_echo "#define MINGW_LIBGCJ_UNICODE 1" >>confdefs.h
19375 esac
19377 # configure.host sets slow_pthread_self if the synchronization code should
19378 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
19379 if test "${slow_pthread_self}" = "yes"; then
19381 $as_echo "#define SLOW_PTHREAD_SELF 1" >>confdefs.h
19385 # Check for gc debugging. This option is handled both here and in the GC.
19386 # Check whether --enable-gc-debug was given.
19387 if test "${enable_gc_debug+set}" = set; then :
19388 enableval=$enable_gc_debug; if test "$enable_gc_debug" = "yes"; then
19390 $as_echo "#define LIBGCJ_GC_DEBUG 1" >>confdefs.h
19396 # See if the user has the interpreter included.
19397 # Check whether --enable-interpreter was given.
19398 if test "${enable_interpreter+set}" = set; then :
19399 enableval=$enable_interpreter; if test "$enable_interpreter" = yes; then
19400 # This can also be set in configure.host.
19401 libgcj_interpreter=yes
19402 elif test "$enable_interpreter" = no; then
19403 libgcj_interpreter=no
19408 if test "$libgcj_interpreter" = yes; then
19410 $as_echo "#define INTERPRETER 1" >>confdefs.h
19413 INTERPRETER="$libgcj_interpreter"
19415 if test "$libgcj_interpreter" = yes; then
19416 INTERPRETER_TRUE=
19417 INTERPRETER_FALSE='#'
19418 else
19419 INTERPRETER_TRUE='#'
19420 INTERPRETER_FALSE=
19424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception model to use" >&5
19425 $as_echo_n "checking for exception model to use... " >&6; }
19426 ac_ext=cpp
19427 ac_cpp='$CXXCPP $CPPFLAGS'
19428 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19429 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19430 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19432 # Check whether --enable-sjlj-exceptions was given.
19433 if test "${enable_sjlj_exceptions+set}" = set; then :
19434 enableval=$enable_sjlj_exceptions; :
19435 else
19436 cat > conftest.$ac_ext << EOF
19437 #line 19437 "configure"
19438 struct S { ~S(); };
19439 void bar();
19440 void foo()
19442 S s;
19443 bar();
19446 old_CXXFLAGS="$CXXFLAGS"
19447 CXXFLAGS=-S
19448 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19449 (eval $ac_compile) 2>&5
19450 ac_status=$?
19451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19452 test $ac_status = 0; }; then
19453 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
19454 enable_sjlj_exceptions=yes
19455 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
19456 enable_sjlj_exceptions=no
19457 elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then
19458 # ARM EH ABI.
19459 enable_sjlj_exceptions=no
19462 CXXFLAGS="$old_CXXFLAGS"
19463 rm -f conftest*
19466 if test x$enable_sjlj_exceptions = xyes; then
19468 $as_echo "#define SJLJ_EXCEPTIONS 1" >>confdefs.h
19470 ac_exception_model_name=sjlj
19471 elif test x$enable_sjlj_exceptions = xno; then
19472 ac_exception_model_name="call frame"
19473 else
19474 as_fn_error "unable to detect exception model" "$LINENO" 5
19476 ac_ext=c
19477 ac_cpp='$CPP $CPPFLAGS'
19478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_exception_model_name" >&5
19483 $as_echo "$ac_exception_model_name" >&6; }
19485 # If we are non using SJLJ exceptions, and this host does not have support
19486 # for unwinding from a signal handler, enable checked dereferences and divides.
19487 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
19488 CHECKREFSPEC=-fcheck-references
19489 DIVIDESPEC=-fuse-divide-subroutine
19490 EXCEPTIONSPEC=
19493 # See if the user wants to disable java.net. This is the mildly
19494 # ugly way that we admit that target-side configuration sucks.
19495 # Check whether --enable-java-net was given.
19496 if test "${enable_java_net+set}" = set; then :
19497 enableval=$enable_java_net;
19501 # Whether java.net is built by default can depend on the target.
19502 if test -z "$enable_java_net"; then
19503 enable_java_net=${enable_java_net_default-yes}
19505 if test "$enable_java_net" = no; then
19507 $as_echo "#define DISABLE_JAVA_NET 1" >>confdefs.h
19511 # See if the user wants to configure without libffi. Some
19512 # architectures don't support it, and default values are set in
19513 # configure.host.
19515 # Check whether --with-libffi was given.
19516 if test "${with_libffi+set}" = set; then :
19517 withval=$with_libffi; :
19518 else
19519 with_libffi=${with_libffi_default-yes}
19523 LIBFFI=
19524 LIBFFIINCS=
19525 if test "$with_libffi" != no; then
19527 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
19529 LIBFFI=../libffi/libffi_convenience.la
19530 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
19535 # See if the user wants to disable JVMPI support.
19536 # Check whether --enable-jvmpi was given.
19537 if test "${enable_jvmpi+set}" = set; then :
19538 enableval=$enable_jvmpi;
19542 if test "$enable_jvmpi" != no; then
19544 $as_echo "#define ENABLE_JVMPI 1" >>confdefs.h
19548 # If the target is an eCos system, use the appropriate eCos
19549 # I/O routines.
19550 # FIXME: this should not be a local option but a global target
19551 # system; at present there is no eCos target.
19552 TARGET_ECOS=${PROCESS-"no"}
19554 # Check whether --with-ecos was given.
19555 if test "${with_ecos+set}" = set; then :
19556 withval=$with_ecos; TARGET_ECOS="$with_ecos"
19561 case "$TARGET_ECOS" in
19562 no) case "$host" in
19563 *mingw*)
19564 PLATFORM=Win32
19565 PLATFORMNET=Win32
19566 PLATFORMH=win32.h
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'ld' is at least 2.13" >&5
19569 $as_echo_n "checking whether 'ld' is at least 2.13... " >&6; }
19570 LD_PROG=`$CC --print-prog-name=ld`
19571 LD_VERSION=`$LD_PROG --version`
19572 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
19573 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
19574 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
19575 LD_OK="ok"
19576 else
19577 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
19578 LD_OK="ok"
19581 if test "x$LD_OK" != x; then
19582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19583 $as_echo "yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19584 else
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19586 $as_echo "no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
19588 $as_echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
19590 $as_echo "#define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1" >>confdefs.h
19595 PLATFORM=Posix
19596 PLATFORMNET=Posix
19597 PLATFORMH=posix.h
19599 esac
19602 PLATFORM=Ecos
19603 PLATFORMNET=NoNet
19605 $as_echo "#define ECOS 1" >>confdefs.h
19607 PLATFORMH=posix.h
19609 esac
19611 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
19614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19615 /* end confdefs.h. */
19616 #include <stdint.h>
19618 _ACEOF
19619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19620 $EGREP "uint32_t" >/dev/null 2>&1; then :
19622 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19625 rm -f conftest*
19627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19628 /* end confdefs.h. */
19629 #include <inttypes.h>
19631 _ACEOF
19632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19633 $EGREP "uint32_t" >/dev/null 2>&1; then :
19635 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19638 rm -f conftest*
19640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19641 /* end confdefs.h. */
19642 #include <sys/types.h>
19644 _ACEOF
19645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19646 $EGREP "u_int32_t" >/dev/null 2>&1; then :
19648 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19651 rm -f conftest*
19653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19654 /* end confdefs.h. */
19655 #include <sys/config.h>
19657 _ACEOF
19658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19659 $EGREP "u_int32_t" >/dev/null 2>&1; then :
19661 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19664 rm -f conftest*
19667 if test "$PLATFORM" = Win32; then
19668 USING_WIN32_PLATFORM_TRUE=
19669 USING_WIN32_PLATFORM_FALSE='#'
19670 else
19671 USING_WIN32_PLATFORM_TRUE='#'
19672 USING_WIN32_PLATFORM_FALSE=
19675 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
19676 USING_POSIX_PLATFORM_TRUE=
19677 USING_POSIX_PLATFORM_FALSE='#'
19678 else
19679 USING_POSIX_PLATFORM_TRUE='#'
19680 USING_POSIX_PLATFORM_FALSE=
19684 case "$host" in
19685 *-darwin*) DARWIN_CRT=true ;;
19686 *) DARWIN_CRT=false ;;
19687 esac
19688 if $DARWIN_CRT; then
19689 USING_DARWIN_CRT_TRUE=
19690 USING_DARWIN_CRT_FALSE='#'
19691 else
19692 USING_DARWIN_CRT_TRUE='#'
19693 USING_DARWIN_CRT_FALSE=
19697 # This may not be defined in a non-ANS conformant embedded system.
19698 # FIXME: Should these case a runtime exception in that case?
19699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19700 /* end confdefs.h. */
19701 #include <time.h>
19703 _ACEOF
19704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19705 $EGREP "localtime" >/dev/null 2>&1; then :
19707 $as_echo "#define HAVE_LOCALTIME 1" >>confdefs.h
19710 rm -f conftest*
19713 # Create the subdirectory for natFile.cc, or the attempt
19714 # to create the link will fail.
19715 test -d java || mkdir java
19716 test -d java/io || mkdir java/io
19717 test -d gnu || mkdir gnu
19718 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
19721 # Likewise for natConcreteProcess.cc.
19722 test -d java/lang || mkdir java/lang
19723 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
19726 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
19727 test -d java/net || mkdir java/net
19728 ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
19730 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
19733 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
19734 test -d gnu/java || mkdir gnu/java
19735 test -d gnu/java/net || mkdir gnu/java/net
19736 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
19738 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
19741 # Likewise for natVMPipe.cc and natVMSelector.cc.
19742 test -d gnu/java/nio || mkdir gnu/java/nio
19743 ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
19745 ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
19748 # Likewise for natFileChannelImpl.cc
19749 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
19750 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
19753 # Likewise for natVMSecureRandom.cc
19754 test -d gnu/java/security || mkdir gnu/java/security
19755 test -d gnu/java/security/jce || mkdir gnu/java/security/jce
19756 test -d gnu/java/security/jce/prng || mkdir gnu/java/security/jce/prng
19757 ac_config_links="$ac_config_links gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc"
19760 case "${host}" in
19761 *mingw*)
19762 SYSTEMSPEC="-lgdi32 -lws2_32"
19763 if test "${with_win32_nlsapi}" = "unicows"; then
19764 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
19767 *-*-darwin[912]*)
19768 SYSTEMSPEC="%{!Zdynamiclib:%{!Zbundle:-allow_stack_execute}}"
19771 SYSTEMSPEC=
19773 esac
19777 # Check whether --with-system-zlib was given.
19778 if test "${with_system_zlib+set}" = set; then :
19779 withval=$with_system_zlib;
19782 ZLIBSPEC=
19784 ZLIBTESTSPEC=
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19788 $as_echo_n "checking for X... " >&6; }
19791 # Check whether --with-x was given.
19792 if test "${with_x+set}" = set; then :
19793 withval=$with_x;
19796 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19797 if test "x$with_x" = xno; then
19798 # The user explicitly disabled X.
19799 have_x=disabled
19800 else
19801 case $x_includes,$x_libraries in #(
19802 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
19803 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
19804 $as_echo_n "(cached) " >&6
19805 else
19806 # One or both of the vars are not set, and there is no cached value.
19807 ac_x_includes=no ac_x_libraries=no
19808 rm -f -r conftest.dir
19809 if mkdir conftest.dir; then
19810 cd conftest.dir
19811 cat >Imakefile <<'_ACEOF'
19812 incroot:
19813 @echo incroot='${INCROOT}'
19814 usrlibdir:
19815 @echo usrlibdir='${USRLIBDIR}'
19816 libdir:
19817 @echo libdir='${LIBDIR}'
19818 _ACEOF
19819 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19820 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19821 for ac_var in incroot usrlibdir libdir; do
19822 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19823 done
19824 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19825 for ac_extension in a so sl dylib la dll; do
19826 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19827 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19828 ac_im_usrlibdir=$ac_im_libdir; break
19830 done
19831 # Screen out bogus values from the imake configuration. They are
19832 # bogus both because they are the default anyway, and because
19833 # using them would break gcc on systems where it needs fixed includes.
19834 case $ac_im_incroot in
19835 /usr/include) ac_x_includes= ;;
19836 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19837 esac
19838 case $ac_im_usrlibdir in
19839 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19840 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19841 esac
19843 cd ..
19844 rm -f -r conftest.dir
19847 # Standard set of common directories for X headers.
19848 # Check X11 before X11Rn because it is often a symlink to the current release.
19849 ac_x_header_dirs='
19850 /usr/X11/include
19851 /usr/X11R7/include
19852 /usr/X11R6/include
19853 /usr/X11R5/include
19854 /usr/X11R4/include
19856 /usr/include/X11
19857 /usr/include/X11R7
19858 /usr/include/X11R6
19859 /usr/include/X11R5
19860 /usr/include/X11R4
19862 /usr/local/X11/include
19863 /usr/local/X11R7/include
19864 /usr/local/X11R6/include
19865 /usr/local/X11R5/include
19866 /usr/local/X11R4/include
19868 /usr/local/include/X11
19869 /usr/local/include/X11R7
19870 /usr/local/include/X11R6
19871 /usr/local/include/X11R5
19872 /usr/local/include/X11R4
19874 /usr/X386/include
19875 /usr/x386/include
19876 /usr/XFree86/include/X11
19878 /usr/include
19879 /usr/local/include
19880 /usr/unsupported/include
19881 /usr/athena/include
19882 /usr/local/x11r5/include
19883 /usr/lpp/Xamples/include
19885 /usr/openwin/include
19886 /usr/openwin/share/include'
19888 if test "$ac_x_includes" = no; then
19889 # Guess where to find include files, by looking for Xlib.h.
19890 # First, try using that file with no special directory specified.
19891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19892 /* end confdefs.h. */
19893 #include <X11/Xlib.h>
19894 _ACEOF
19895 if ac_fn_c_try_cpp "$LINENO"; then :
19896 # We can compile using X headers with no special include directory.
19897 ac_x_includes=
19898 else
19899 for ac_dir in $ac_x_header_dirs; do
19900 if test -r "$ac_dir/X11/Xlib.h"; then
19901 ac_x_includes=$ac_dir
19902 break
19904 done
19906 rm -f conftest.err conftest.$ac_ext
19907 fi # $ac_x_includes = no
19909 if test "$ac_x_libraries" = no; then
19910 # Check for the libraries.
19911 # See if we find them without any special options.
19912 # Don't add to $LIBS permanently.
19913 ac_save_LIBS=$LIBS
19914 LIBS="-lX11 $LIBS"
19915 if test x$gcc_no_link = xyes; then
19916 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19919 /* end confdefs.h. */
19920 #include <X11/Xlib.h>
19922 main ()
19924 XrmInitialize ()
19926 return 0;
19928 _ACEOF
19929 if ac_fn_c_try_link "$LINENO"; then :
19930 LIBS=$ac_save_LIBS
19931 # We can link X programs with no special library path.
19932 ac_x_libraries=
19933 else
19934 LIBS=$ac_save_LIBS
19935 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19937 # Don't even attempt the hair of trying to link an X program!
19938 for ac_extension in a so sl dylib la dll; do
19939 if test -r "$ac_dir/libX11.$ac_extension"; then
19940 ac_x_libraries=$ac_dir
19941 break 2
19943 done
19944 done
19946 rm -f core conftest.err conftest.$ac_objext \
19947 conftest$ac_exeext conftest.$ac_ext
19948 fi # $ac_x_libraries = no
19950 case $ac_x_includes,$ac_x_libraries in #(
19951 no,* | *,no | *\'*)
19952 # Didn't find X, or a directory has "'" in its name.
19953 ac_cv_have_x="have_x=no";; #(
19955 # Record where we found X for the cache.
19956 ac_cv_have_x="have_x=yes\
19957 ac_x_includes='$ac_x_includes'\
19958 ac_x_libraries='$ac_x_libraries'"
19959 esac
19961 ;; #(
19962 *) have_x=yes;;
19963 esac
19964 eval "$ac_cv_have_x"
19965 fi # $with_x != no
19967 if test "$have_x" != yes; then
19968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19969 $as_echo "$have_x" >&6; }
19970 no_x=yes
19971 else
19972 # If each of the values was on the command line, it overrides each guess.
19973 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19974 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19975 # Update the cache value to reflect the command line values.
19976 ac_cv_have_x="have_x=yes\
19977 ac_x_includes='$x_includes'\
19978 ac_x_libraries='$x_libraries'"
19979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19980 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
19983 if test "$no_x" = yes; then
19984 # Not all programs may use this symbol, but it does not hurt to define it.
19986 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
19988 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19989 else
19990 if test -n "$x_includes"; then
19991 X_CFLAGS="$X_CFLAGS -I$x_includes"
19994 # It would also be nice to do this for all -L options, not just this one.
19995 if test -n "$x_libraries"; then
19996 X_LIBS="$X_LIBS -L$x_libraries"
19997 # For Solaris; some versions of Sun CC require a space after -R and
19998 # others require no space. Words are not sufficient . . . .
19999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
20000 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
20001 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20002 ac_xsave_c_werror_flag=$ac_c_werror_flag
20003 ac_c_werror_flag=yes
20004 if test x$gcc_no_link = xyes; then
20005 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20008 /* end confdefs.h. */
20011 main ()
20015 return 0;
20017 _ACEOF
20018 if ac_fn_c_try_link "$LINENO"; then :
20019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20020 $as_echo "no" >&6; }
20021 X_LIBS="$X_LIBS -R$x_libraries"
20022 else
20023 LIBS="$ac_xsave_LIBS -R $x_libraries"
20024 if test x$gcc_no_link = xyes; then
20025 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20028 /* end confdefs.h. */
20031 main ()
20035 return 0;
20037 _ACEOF
20038 if ac_fn_c_try_link "$LINENO"; then :
20039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20040 $as_echo "yes" >&6; }
20041 X_LIBS="$X_LIBS -R $x_libraries"
20042 else
20043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
20044 $as_echo "neither works" >&6; }
20046 rm -f core conftest.err conftest.$ac_objext \
20047 conftest$ac_exeext conftest.$ac_ext
20049 rm -f core conftest.err conftest.$ac_objext \
20050 conftest$ac_exeext conftest.$ac_ext
20051 ac_c_werror_flag=$ac_xsave_c_werror_flag
20052 LIBS=$ac_xsave_LIBS
20055 # Check for system-dependent libraries X programs must link with.
20056 # Do this before checking for the system-independent R6 libraries
20057 # (-lICE), since we may need -lsocket or whatever for X linking.
20059 if test "$ISC" = yes; then
20060 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20061 else
20062 # Martyn Johnson says this is needed for Ultrix, if the X
20063 # libraries were built with DECnet support. And Karl Berry says
20064 # the Alpha needs dnet_stub (dnet does not exist).
20065 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20066 if test x$gcc_no_link = xyes; then
20067 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20070 /* end confdefs.h. */
20072 /* Override any GCC internal prototype to avoid an error.
20073 Use char because int might match the return type of a GCC
20074 builtin and then its argument prototype would still apply. */
20075 #ifdef __cplusplus
20076 extern "C"
20077 #endif
20078 char XOpenDisplay ();
20080 main ()
20082 return XOpenDisplay ();
20084 return 0;
20086 _ACEOF
20087 if ac_fn_c_try_link "$LINENO"; then :
20089 else
20090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
20091 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
20092 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
20093 $as_echo_n "(cached) " >&6
20094 else
20095 ac_check_lib_save_LIBS=$LIBS
20096 LIBS="-ldnet $LIBS"
20097 if test x$gcc_no_link = xyes; then
20098 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20101 /* end confdefs.h. */
20103 /* Override any GCC internal prototype to avoid an error.
20104 Use char because int might match the return type of a GCC
20105 builtin and then its argument prototype would still apply. */
20106 #ifdef __cplusplus
20107 extern "C"
20108 #endif
20109 char dnet_ntoa ();
20111 main ()
20113 return dnet_ntoa ();
20115 return 0;
20117 _ACEOF
20118 if ac_fn_c_try_link "$LINENO"; then :
20119 ac_cv_lib_dnet_dnet_ntoa=yes
20120 else
20121 ac_cv_lib_dnet_dnet_ntoa=no
20123 rm -f core conftest.err conftest.$ac_objext \
20124 conftest$ac_exeext conftest.$ac_ext
20125 LIBS=$ac_check_lib_save_LIBS
20127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20128 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20129 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
20130 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20133 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
20135 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
20136 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
20137 $as_echo_n "(cached) " >&6
20138 else
20139 ac_check_lib_save_LIBS=$LIBS
20140 LIBS="-ldnet_stub $LIBS"
20141 if test x$gcc_no_link = xyes; then
20142 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20145 /* end confdefs.h. */
20147 /* Override any GCC internal prototype to avoid an error.
20148 Use char because int might match the return type of a GCC
20149 builtin and then its argument prototype would still apply. */
20150 #ifdef __cplusplus
20151 extern "C"
20152 #endif
20153 char dnet_ntoa ();
20155 main ()
20157 return dnet_ntoa ();
20159 return 0;
20161 _ACEOF
20162 if ac_fn_c_try_link "$LINENO"; then :
20163 ac_cv_lib_dnet_stub_dnet_ntoa=yes
20164 else
20165 ac_cv_lib_dnet_stub_dnet_ntoa=no
20167 rm -f core conftest.err conftest.$ac_objext \
20168 conftest$ac_exeext conftest.$ac_ext
20169 LIBS=$ac_check_lib_save_LIBS
20171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20172 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20173 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
20174 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20179 rm -f core conftest.err conftest.$ac_objext \
20180 conftest$ac_exeext conftest.$ac_ext
20181 LIBS="$ac_xsave_LIBS"
20183 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20184 # to get the SysV transport functions.
20185 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20186 # needs -lnsl.
20187 # The nsl library prevents programs from opening the X display
20188 # on Irix 5.2, according to T.E. Dickey.
20189 # The functions gethostbyname, getservbyname, and inet_addr are
20190 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20191 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
20192 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
20196 if test $ac_cv_func_gethostbyname = no; then
20197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20198 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20199 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
20200 $as_echo_n "(cached) " >&6
20201 else
20202 ac_check_lib_save_LIBS=$LIBS
20203 LIBS="-lnsl $LIBS"
20204 if test x$gcc_no_link = xyes; then
20205 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20208 /* end confdefs.h. */
20210 /* Override any GCC internal prototype to avoid an error.
20211 Use char because int might match the return type of a GCC
20212 builtin and then its argument prototype would still apply. */
20213 #ifdef __cplusplus
20214 extern "C"
20215 #endif
20216 char gethostbyname ();
20218 main ()
20220 return gethostbyname ();
20222 return 0;
20224 _ACEOF
20225 if ac_fn_c_try_link "$LINENO"; then :
20226 ac_cv_lib_nsl_gethostbyname=yes
20227 else
20228 ac_cv_lib_nsl_gethostbyname=no
20230 rm -f core conftest.err conftest.$ac_objext \
20231 conftest$ac_exeext conftest.$ac_ext
20232 LIBS=$ac_check_lib_save_LIBS
20234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20235 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20236 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
20237 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20240 if test $ac_cv_lib_nsl_gethostbyname = no; then
20241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20242 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20243 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
20244 $as_echo_n "(cached) " >&6
20245 else
20246 ac_check_lib_save_LIBS=$LIBS
20247 LIBS="-lbsd $LIBS"
20248 if test x$gcc_no_link = xyes; then
20249 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20252 /* end confdefs.h. */
20254 /* Override any GCC internal prototype to avoid an error.
20255 Use char because int might match the return type of a GCC
20256 builtin and then its argument prototype would still apply. */
20257 #ifdef __cplusplus
20258 extern "C"
20259 #endif
20260 char gethostbyname ();
20262 main ()
20264 return gethostbyname ();
20266 return 0;
20268 _ACEOF
20269 if ac_fn_c_try_link "$LINENO"; then :
20270 ac_cv_lib_bsd_gethostbyname=yes
20271 else
20272 ac_cv_lib_bsd_gethostbyname=no
20274 rm -f core conftest.err conftest.$ac_objext \
20275 conftest$ac_exeext conftest.$ac_ext
20276 LIBS=$ac_check_lib_save_LIBS
20278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
20279 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
20280 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
20281 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20287 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20288 # socket/setsockopt and other routines are undefined under SCO ODT
20289 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20290 # on later versions), says Simon Leinen: it contains gethostby*
20291 # variants that don't use the name server (or something). -lsocket
20292 # must be given before -lnsl if both are needed. We assume that
20293 # if connect needs -lnsl, so does gethostbyname.
20294 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
20295 if test "x$ac_cv_func_connect" = x""yes; then :
20299 if test $ac_cv_func_connect = no; then
20300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
20301 $as_echo_n "checking for connect in -lsocket... " >&6; }
20302 if test "${ac_cv_lib_socket_connect+set}" = set; then :
20303 $as_echo_n "(cached) " >&6
20304 else
20305 ac_check_lib_save_LIBS=$LIBS
20306 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20307 if test x$gcc_no_link = xyes; then
20308 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20311 /* end confdefs.h. */
20313 /* Override any GCC internal prototype to avoid an error.
20314 Use char because int might match the return type of a GCC
20315 builtin and then its argument prototype would still apply. */
20316 #ifdef __cplusplus
20317 extern "C"
20318 #endif
20319 char connect ();
20321 main ()
20323 return connect ();
20325 return 0;
20327 _ACEOF
20328 if ac_fn_c_try_link "$LINENO"; then :
20329 ac_cv_lib_socket_connect=yes
20330 else
20331 ac_cv_lib_socket_connect=no
20333 rm -f core conftest.err conftest.$ac_objext \
20334 conftest$ac_exeext conftest.$ac_ext
20335 LIBS=$ac_check_lib_save_LIBS
20337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
20338 $as_echo "$ac_cv_lib_socket_connect" >&6; }
20339 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
20340 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20345 # Guillermo Gomez says -lposix is necessary on A/UX.
20346 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
20347 if test "x$ac_cv_func_remove" = x""yes; then :
20351 if test $ac_cv_func_remove = no; then
20352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
20353 $as_echo_n "checking for remove in -lposix... " >&6; }
20354 if test "${ac_cv_lib_posix_remove+set}" = set; then :
20355 $as_echo_n "(cached) " >&6
20356 else
20357 ac_check_lib_save_LIBS=$LIBS
20358 LIBS="-lposix $LIBS"
20359 if test x$gcc_no_link = xyes; then
20360 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20363 /* end confdefs.h. */
20365 /* Override any GCC internal prototype to avoid an error.
20366 Use char because int might match the return type of a GCC
20367 builtin and then its argument prototype would still apply. */
20368 #ifdef __cplusplus
20369 extern "C"
20370 #endif
20371 char remove ();
20373 main ()
20375 return remove ();
20377 return 0;
20379 _ACEOF
20380 if ac_fn_c_try_link "$LINENO"; then :
20381 ac_cv_lib_posix_remove=yes
20382 else
20383 ac_cv_lib_posix_remove=no
20385 rm -f core conftest.err conftest.$ac_objext \
20386 conftest$ac_exeext conftest.$ac_ext
20387 LIBS=$ac_check_lib_save_LIBS
20389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
20390 $as_echo "$ac_cv_lib_posix_remove" >&6; }
20391 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
20392 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20397 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20398 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20399 if test "x$ac_cv_func_shmat" = x""yes; then :
20403 if test $ac_cv_func_shmat = no; then
20404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
20405 $as_echo_n "checking for shmat in -lipc... " >&6; }
20406 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
20407 $as_echo_n "(cached) " >&6
20408 else
20409 ac_check_lib_save_LIBS=$LIBS
20410 LIBS="-lipc $LIBS"
20411 if test x$gcc_no_link = xyes; then
20412 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20415 /* end confdefs.h. */
20417 /* Override any GCC internal prototype to avoid an error.
20418 Use char because int might match the return type of a GCC
20419 builtin and then its argument prototype would still apply. */
20420 #ifdef __cplusplus
20421 extern "C"
20422 #endif
20423 char shmat ();
20425 main ()
20427 return shmat ();
20429 return 0;
20431 _ACEOF
20432 if ac_fn_c_try_link "$LINENO"; then :
20433 ac_cv_lib_ipc_shmat=yes
20434 else
20435 ac_cv_lib_ipc_shmat=no
20437 rm -f core conftest.err conftest.$ac_objext \
20438 conftest$ac_exeext conftest.$ac_ext
20439 LIBS=$ac_check_lib_save_LIBS
20441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
20442 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20443 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
20444 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20450 # Check for libraries that X11R6 Xt/Xaw programs need.
20451 ac_save_LDFLAGS=$LDFLAGS
20452 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20453 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20454 # check for ICE first), but we must link in the order -lSM -lICE or
20455 # we get undefined symbols. So assume we have SM if we have ICE.
20456 # These have to be linked with before -lX11, unlike the other
20457 # libraries we check for below, so use a different variable.
20458 # John Interrante, Karl Berry
20459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
20460 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20461 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
20462 $as_echo_n "(cached) " >&6
20463 else
20464 ac_check_lib_save_LIBS=$LIBS
20465 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20466 if test x$gcc_no_link = xyes; then
20467 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20470 /* end confdefs.h. */
20472 /* Override any GCC internal prototype to avoid an error.
20473 Use char because int might match the return type of a GCC
20474 builtin and then its argument prototype would still apply. */
20475 #ifdef __cplusplus
20476 extern "C"
20477 #endif
20478 char IceConnectionNumber ();
20480 main ()
20482 return IceConnectionNumber ();
20484 return 0;
20486 _ACEOF
20487 if ac_fn_c_try_link "$LINENO"; then :
20488 ac_cv_lib_ICE_IceConnectionNumber=yes
20489 else
20490 ac_cv_lib_ICE_IceConnectionNumber=no
20492 rm -f core conftest.err conftest.$ac_objext \
20493 conftest$ac_exeext conftest.$ac_ext
20494 LIBS=$ac_check_lib_save_LIBS
20496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20497 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20498 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
20499 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20502 LDFLAGS=$ac_save_LDFLAGS
20507 # FIXME: this should be _libs on some hosts.
20508 libsubdir=.libs
20510 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20512 LIBSTDCXXSPEC=
20513 # extra LD Flags which are required for targets
20514 case "${host}" in
20515 *-*-darwin[0-7].*)
20516 # For now we have to disable it on darwin[8-9] because it slows down
20517 # the linking phase. A possible bug in ld?
20518 # on Darwin -single_module speeds up loading of the dynamic libraries.
20519 extra_ldflags_libjava=-Wl,-single_module
20521 arm*linux*eabi)
20522 # Some of the ARM unwinder code is actually in libstdc++. We
20523 # could in principle replicate it in libgcj, but it's better to
20524 # have a dependency on libstdc++.
20525 extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20526 LIBSTDCXXSPEC=-lstdc++
20527 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20529 *-*-cygwin)
20530 extra_ldflags_libjava=-liconv
20532 esac
20534 # Check for --no-merge-exidx-entries, an ARM-specific linker option.
20535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --no-merge-exidx-entries" >&5
20536 $as_echo_n "checking for --no-merge-exidx-entries... " >&6; }
20537 if test "${libgcj_cv_exidx+set}" = set; then :
20538 $as_echo_n "(cached) " >&6
20539 else
20540 saved_ldflags="$LDFLAGS"
20541 LDFLAGS="${LDFLAGS} -Wl,--no-merge-exidx-entries"
20542 # The IRIX 6 ld doesn't recognize --no-merge-exidx-entries, but only
20543 # warns about unknown options, which breaks the testsuite. So enable
20544 # AC_LANG_WERROR, but there's currently (autoconf 2.64) no way to turn
20545 # it off again. As a workaround, save and restore werror flag like
20546 # AC_PATH_XTRA.
20547 ac_xsave_c_werror_flag=$ac_c_werror_flag
20549 ac_c_werror_flag=yes
20550 if test x$gcc_no_link = xyes; then
20551 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20554 /* end confdefs.h. */
20555 int main(void){ return 0;}
20556 _ACEOF
20557 if ac_fn_c_try_link "$LINENO"; then :
20558 eval "libgcj_cv_exidx=yes"
20559 else
20560 eval "libgcj_cv_exidx=no"
20562 rm -f core conftest.err conftest.$ac_objext \
20563 conftest$ac_exeext conftest.$ac_ext
20564 ac_c_werror_flag=$ac_xsave_c_werror_flag
20565 LDFLAGS="${saved_ldflags}"
20568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcj_cv_exidx" >&5
20569 $as_echo "$libgcj_cv_exidx" >&6; }
20570 if test "${libgcj_cv_exidx}" = "yes"; then
20571 SYSTEMSPEC="${SYSTEMSPEC} --no-merge-exidx-entries"
20572 extra_ldflags="${extra_ldflags} -Wl,--no-merge-exidx-entries"
20581 # Allow the GC to be disabled. Can be useful when debugging.
20582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for garbage collector to use" >&5
20583 $as_echo_n "checking for garbage collector to use... " >&6; }
20584 # Check whether --enable-java-gc was given.
20585 if test "${enable_java_gc+set}" = set; then :
20586 enableval=$enable_java_gc; GC=$enableval
20587 else
20588 GC=boehm
20591 GCLIBS=
20592 GCINCS=
20593 GCDEPS=
20594 GCSPEC=
20595 JC1GCSPEC=
20596 GCTESTSPEC=
20597 case "$GC" in
20598 boehm)
20599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: boehm" >&5
20600 $as_echo "boehm" >&6; }
20601 GCLIBS=../boehm-gc/libgcjgc_convenience.la
20602 JC1GCSPEC='-fuse-boehm-gc'
20603 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20604 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20605 GCOBJS=boehm.lo
20606 GCHDR=boehm-gc.h
20607 # The POSIX thread support needs to know this.
20609 $as_echo "#define HAVE_BOEHM_GC 1" >>confdefs.h
20613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
20614 $as_echo "none" >&6; }
20615 GCHDR=no-gc.h
20618 as_fn_error "unrecognized collector \"$GC\"" "$LINENO" 5
20620 esac
20627 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20629 if test "$GC" = boehm; then
20630 USING_BOEHMGC_TRUE=
20631 USING_BOEHMGC_FALSE='#'
20632 else
20633 USING_BOEHMGC_TRUE='#'
20634 USING_BOEHMGC_FALSE=
20637 if test "$GC" = no; then
20638 USING_NOGC_TRUE=
20639 USING_NOGC_FALSE='#'
20640 else
20641 USING_NOGC_TRUE='#'
20642 USING_NOGC_FALSE=
20647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
20648 $as_echo_n "checking for thread model used by GCC... " >&6; }
20649 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
20651 $as_echo "$THREADS" >&6; }
20653 case "$THREADS" in
20654 no | none | single)
20655 THREADS=none
20657 aix | posix | posix95 | pthreads)
20658 THREADS=posix
20659 case "$host" in
20660 *-*-linux*)
20662 $as_echo "#define LINUX_THREADS 1" >>confdefs.h
20665 esac
20667 win32)
20669 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
20670 as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
20673 as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
20675 esac
20677 THREADCXXFLAGS=
20678 THREADLDFLAGS=
20679 THREADLIBS=
20680 THREADINCS=
20681 THREADDEPS=
20682 THREADH=
20683 THREADSPEC=
20684 THREADSTARTFILESPEC=
20685 case "$THREADS" in
20686 posix)
20687 case "$host" in
20688 *-*-cygwin*)
20689 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
20691 *-*-freebsd[1234]*)
20692 # Before FreeBSD 5, it didn't have -lpthread (or any library which
20693 # merely adds pthread_* functions) but it does have a -pthread switch
20694 # which is required at link-time to select -lc_r *instead* of -lc.
20695 THREADLDFLAGS=-pthread
20696 # Don't set THREADSPEC here as might be expected since -pthread is
20697 # not processed when found within a spec file, it must come from
20698 # the command line. For now, the user must provide the -pthread
20699 # switch to link code compiled with gcj. In future, consider adding
20700 # support for weak references to pthread_* functions ala gthr.h API.
20701 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20703 *-*-freebsd*)
20704 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20705 # systems which support threads and -lpthread.
20706 THREADLDFLAGS=-pthread
20707 THREADSPEC=-lpthread
20709 alpha*-dec-osf* | hppa*-hp-hpux*)
20710 THREADCXXFLAGS=-pthread
20711 # boehm-gc needs some functions from librt, so link that too.
20712 THREADLIBS='-lpthread -lrt'
20713 THREADSPEC='-lpthread -lrt'
20715 *-*-solaris2.8)
20716 # Always use alternate thread library on Solaris 8. Need libthread
20717 # for TLS support.
20718 # Need -Wl,-R to get it through libtool ...
20719 THREADLIBS='-L/usr/lib/lwp$(MULTISUBDIR) -Wl,-R -Wl,/usr/lib/lwp$(MULTISUBDIR) -lpthread -lthread'
20720 # ... while ld only accepts -R.
20721 THREADSPEC='-L/usr/lib/lwp%{m64:/64} -R/usr/lib/lwp%{m64:/64} -lpthread -lthread'
20723 *-*-solaris2.9)
20724 # As on Solaris 8, need libthread for TLS support.
20725 THREADLIBS='-lpthread -lthread'
20726 THREADSPEC='-lpthread -lthread'
20729 THREADLIBS=-lpthread
20730 THREADSPEC=-lpthread
20732 esac
20733 THREADH=posix-threads.h
20734 # MIT pthreads doesn't seem to have the mutexattr functions.
20735 # But for now we don't check for it. We just assume you aren't
20736 # using MIT pthreads.
20738 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20741 # If we're using the Boehm GC, then we happen to know that it
20742 # defines _REENTRANT, so we don't bother. Eww.
20743 if test "$GC" != boehm; then
20745 $as_echo "#define _REENTRANT 1" >>confdefs.h
20749 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
20753 win32)
20754 THREADH=win32-threads.h
20755 THREADCXXFLAGS=-mthreads
20756 # We need thread-safe exception handling so _CRT_MT should be set to 1.
20757 # But we do not want the executables created to be dependent on
20758 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20759 # exception handling contexts. The following kludge achieves this effect
20760 # and causes a dummy __mingwthr_key_dtor() to be linked in from
20761 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
20762 # A workaround is to explicitly use -mthreads while linking Java programs.
20763 # See PR libgcj/28263.
20765 # FIXME: In Java we are able to detect thread death at the end of
20766 # Thread.run() so we should be able to clean up the exception handling
20767 # contexts ourselves.
20768 THREADSTARTFILESPEC='crtmt%O%s'
20771 none)
20772 THREADH=no-threads.h
20774 esac
20775 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20784 if test "$THREADS" = posix; then
20785 USING_POSIX_THREADS_TRUE=
20786 USING_POSIX_THREADS_FALSE='#'
20787 else
20788 USING_POSIX_THREADS_TRUE='#'
20789 USING_POSIX_THREADS_FALSE=
20792 if test "$THREADS" = win32; then
20793 USING_WIN32_THREADS_TRUE=
20794 USING_WIN32_THREADS_FALSE='#'
20795 else
20796 USING_WIN32_THREADS_TRUE='#'
20797 USING_WIN32_THREADS_FALSE=
20800 if test "$THREADS" = none; then
20801 USING_NO_THREADS_TRUE=
20802 USING_NO_THREADS_FALSE='#'
20803 else
20804 USING_NO_THREADS_TRUE='#'
20805 USING_NO_THREADS_FALSE=
20808 if test "$enable_shared" != yes; then
20809 use_libgcj_bc=no
20811 if test "$use_libgcj_bc" = yes; then
20812 USE_LIBGCJ_BC_TRUE=
20813 USE_LIBGCJ_BC_FALSE='#'
20814 else
20815 USE_LIBGCJ_BC_TRUE='#'
20816 USE_LIBGCJ_BC_FALSE=
20820 if test -d sysdep; then true; else mkdir sysdep; fi
20821 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20823 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20825 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20828 LIBGCJ_SPEC_LGCJ=-lgcj
20829 LIBGCJ_SPEC_LGCJ_BC=-lgcj_bc
20830 if test x"$libgcj_spec_lgcj_override" != x ; then
20831 LIBGCJ_SPEC_LGCJ=$libgcj_spec_lgcj_override
20833 if test x"$libgcj_spec_lgcj_bc_override" != x ; then
20834 LIBGCJ_SPEC_LGCJ_BC=$libgcj_spec_lgcj_bc_override
20836 LIBGCJ_SPEC="%{s-bc-abi:} $LIBGCJ_SPEC_LGCJ"
20837 if test "$use_libgcj_bc" = yes; then
20838 LIBGCJ_SPEC="%{static|static-libgcj|!s-bc-abi:$LIBGCJ_SPEC_LGCJ;:$LIBGCJ_SPEC_LGCJ_BC}"
20839 LIBGCJ_BC_SPEC="%{findirect-dispatch:-fPIC}"
20844 HASH_SYNC_SPEC=
20845 # Hash synchronization is only useful with posix threads right now.
20846 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20847 HASH_SYNC_SPEC=-fhash-synchronization
20849 $as_echo "#define JV_HASH_SYNCHRONIZATION 1" >>confdefs.h
20854 if test "$GCC" = yes; then
20855 USING_GCC_TRUE=
20856 USING_GCC_FALSE='#'
20857 else
20858 USING_GCC_TRUE='#'
20859 USING_GCC_FALSE=
20863 # We're in the tree with gcc, and need to include some of its headers.
20864 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
20866 if test "x${with_newlib}" = "xyes"; then
20867 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
20868 # may not work correctly, because the compiler may not be able to
20869 # link executables.
20871 # We assume newlib. This lets us hard-code the functions we know
20872 # we'll have.
20874 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20877 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
20880 $as_echo "#define HAVE_TIME 1" >>confdefs.h
20883 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20886 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
20889 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
20891 # This is only for POSIX threads.
20893 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20896 # Assume we do not have getuid and friends.
20898 $as_echo "#define NO_GETUID 1" >>confdefs.h
20900 PLATFORMNET=NoNet
20901 else
20902 for ac_func in strerror_r select fstat open fsync sleep opendir \
20903 localtime_r getpwuid_r getcwd \
20904 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20905 nl_langinfo setlocale \
20906 inet_pton uname inet_ntoa \
20907 getrlimit sigaction ftruncate mmap \
20908 getifaddrs
20909 do :
20910 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20911 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20912 eval as_val=\$$as_ac_var
20913 if test "x$as_val" = x""yes; then :
20914 cat >>confdefs.h <<_ACEOF
20915 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20916 _ACEOF
20919 done
20921 for ac_func in inet_aton inet_addr
20922 do :
20923 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20924 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20925 eval as_val=\$$as_ac_var
20926 if test "x$as_val" = x""yes; then :
20927 cat >>confdefs.h <<_ACEOF
20928 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20929 _ACEOF
20930 break
20932 done
20934 for ac_header in unistd.h dlfcn.h sys/resource.h
20935 do :
20936 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20937 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20938 eval as_val=\$$as_ac_Header
20939 if test "x$as_val" = x""yes; then :
20940 cat >>confdefs.h <<_ACEOF
20941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20942 _ACEOF
20946 done
20948 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
20949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5
20950 $as_echo_n "checking for dladdr in -ldl... " >&6; }
20951 if test "${ac_cv_lib_dl_dladdr+set}" = set; then :
20952 $as_echo_n "(cached) " >&6
20953 else
20954 ac_check_lib_save_LIBS=$LIBS
20955 LIBS="-ldl $LIBS"
20956 if test x$gcc_no_link = xyes; then
20957 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20960 /* end confdefs.h. */
20962 /* Override any GCC internal prototype to avoid an error.
20963 Use char because int might match the return type of a GCC
20964 builtin and then its argument prototype would still apply. */
20965 #ifdef __cplusplus
20966 extern "C"
20967 #endif
20968 char dladdr ();
20970 main ()
20972 return dladdr ();
20974 return 0;
20976 _ACEOF
20977 if ac_fn_c_try_link "$LINENO"; then :
20978 ac_cv_lib_dl_dladdr=yes
20979 else
20980 ac_cv_lib_dl_dladdr=no
20982 rm -f core conftest.err conftest.$ac_objext \
20983 conftest$ac_exeext conftest.$ac_ext
20984 LIBS=$ac_check_lib_save_LIBS
20986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
20987 $as_echo "$ac_cv_lib_dl_dladdr" >&6; }
20988 if test "x$ac_cv_lib_dl_dladdr" = x""yes; then :
20991 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
20993 else
20995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldld" >&5
20996 $as_echo_n "checking for dladdr in -ldld... " >&6; }
20997 if test "${ac_cv_lib_dld_dladdr+set}" = set; then :
20998 $as_echo_n "(cached) " >&6
20999 else
21000 ac_check_lib_save_LIBS=$LIBS
21001 LIBS="-ldld $LIBS"
21002 if test x$gcc_no_link = xyes; then
21003 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21006 /* end confdefs.h. */
21008 /* Override any GCC internal prototype to avoid an error.
21009 Use char because int might match the return type of a GCC
21010 builtin and then its argument prototype would still apply. */
21011 #ifdef __cplusplus
21012 extern "C"
21013 #endif
21014 char dladdr ();
21016 main ()
21018 return dladdr ();
21020 return 0;
21022 _ACEOF
21023 if ac_fn_c_try_link "$LINENO"; then :
21024 ac_cv_lib_dld_dladdr=yes
21025 else
21026 ac_cv_lib_dld_dladdr=no
21028 rm -f core conftest.err conftest.$ac_objext \
21029 conftest$ac_exeext conftest.$ac_ext
21030 LIBS=$ac_check_lib_save_LIBS
21032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dladdr" >&5
21033 $as_echo "$ac_cv_lib_dld_dladdr" >&6; }
21034 if test "x$ac_cv_lib_dld_dladdr" = x""yes; then :
21037 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
21044 if test x"$cross_compiling" = x"no"; then
21045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/exe" >&5
21046 $as_echo_n "checking for /proc/self/exe... " >&6; }
21047 if test "${ac_cv_file__proc_self_exe+set}" = set; then :
21048 $as_echo_n "(cached) " >&6
21049 else
21050 test "$cross_compiling" = yes &&
21051 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
21052 if test -r "/proc/self/exe"; then
21053 ac_cv_file__proc_self_exe=yes
21054 else
21055 ac_cv_file__proc_self_exe=no
21058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_exe" >&5
21059 $as_echo "$ac_cv_file__proc_self_exe" >&6; }
21060 if test "x$ac_cv_file__proc_self_exe" = x""yes; then :
21062 cat >>confdefs.h <<_ACEOF
21063 #define HAVE__PROC_SELF_EXE 1
21064 _ACEOF
21067 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
21071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/maps" >&5
21072 $as_echo_n "checking for /proc/self/maps... " >&6; }
21073 if test "${ac_cv_file__proc_self_maps+set}" = set; then :
21074 $as_echo_n "(cached) " >&6
21075 else
21076 test "$cross_compiling" = yes &&
21077 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
21078 if test -r "/proc/self/maps"; then
21079 ac_cv_file__proc_self_maps=yes
21080 else
21081 ac_cv_file__proc_self_maps=no
21084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_maps" >&5
21085 $as_echo "$ac_cv_file__proc_self_maps" >&6; }
21086 if test "x$ac_cv_file__proc_self_maps" = x""yes; then :
21088 cat >>confdefs.h <<_ACEOF
21089 #define HAVE__PROC_SELF_MAPS 1
21090 _ACEOF
21093 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
21097 else
21098 case $host in
21099 *-linux*)
21101 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
21104 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
21107 esac
21111 if test "X$prefix" = "XNONE"; then
21112 acl_final_prefix="$ac_default_prefix"
21113 else
21114 acl_final_prefix="$prefix"
21116 if test "X$exec_prefix" = "XNONE"; then
21117 acl_final_exec_prefix='${prefix}'
21118 else
21119 acl_final_exec_prefix="$exec_prefix"
21121 acl_save_prefix="$prefix"
21122 prefix="$acl_final_prefix"
21123 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21124 prefix="$acl_save_prefix"
21127 # Check whether --with-gnu-ld was given.
21128 if test "${with_gnu_ld+set}" = set; then :
21129 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
21130 else
21131 with_gnu_ld=no
21134 # Prepare PATH_SEPARATOR.
21135 # The user is always right.
21136 if test "${PATH_SEPARATOR+set}" != set; then
21137 echo "#! /bin/sh" >conf$$.sh
21138 echo "exit 0" >>conf$$.sh
21139 chmod +x conf$$.sh
21140 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21141 PATH_SEPARATOR=';'
21142 else
21143 PATH_SEPARATOR=:
21145 rm -f conf$$.sh
21147 ac_prog=ld
21148 if test "$GCC" = yes; then
21149 # Check if gcc -print-prog-name=ld gives a path.
21150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
21151 $as_echo_n "checking for ld used by GCC... " >&6; }
21152 case $host in
21153 *-*-mingw*)
21154 # gcc leaves a trailing carriage return which upsets mingw
21155 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21157 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21158 esac
21159 case $ac_prog in
21160 # Accept absolute paths.
21161 [\\/]* | [A-Za-z]:[\\/]*)
21162 re_direlt='/[^/][^/]*/\.\./'
21163 # Canonicalize the path of ld
21164 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21165 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21166 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21167 done
21168 test -z "$LD" && LD="$ac_prog"
21171 # If it fails, then pretend we aren't using GCC.
21172 ac_prog=ld
21175 # If it is relative, then search for the first ld in PATH.
21176 with_gnu_ld=unknown
21178 esac
21179 elif test "$with_gnu_ld" = yes; then
21180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
21181 $as_echo_n "checking for GNU ld... " >&6; }
21182 else
21183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
21184 $as_echo_n "checking for non-GNU ld... " >&6; }
21186 if test "${acl_cv_path_LD+set}" = set; then :
21187 $as_echo_n "(cached) " >&6
21188 else
21189 if test -z "$LD"; then
21190 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21191 for ac_dir in $PATH; do
21192 test -z "$ac_dir" && ac_dir=.
21193 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21194 acl_cv_path_LD="$ac_dir/$ac_prog"
21195 # Check to see if the program is GNU ld. I'd rather use --version,
21196 # but apparently some GNU ld's only accept -v.
21197 # Break only if it was the GNU/non-GNU ld that we prefer.
21198 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
21199 test "$with_gnu_ld" != no && break
21200 else
21201 test "$with_gnu_ld" != yes && break
21204 done
21205 IFS="$ac_save_ifs"
21206 else
21207 acl_cv_path_LD="$LD" # Let the user override the test with a path.
21211 LD="$acl_cv_path_LD"
21212 if test -n "$LD"; then
21213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
21214 $as_echo "$LD" >&6; }
21215 else
21216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21217 $as_echo "no" >&6; }
21219 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
21220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
21221 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
21222 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
21223 $as_echo_n "(cached) " >&6
21224 else
21225 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21226 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
21227 acl_cv_prog_gnu_ld=yes
21228 else
21229 acl_cv_prog_gnu_ld=no
21232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
21233 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
21234 with_gnu_ld=$acl_cv_prog_gnu_ld
21238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
21239 $as_echo_n "checking for shared library run path origin... " >&6; }
21240 if test "${acl_cv_rpath+set}" = set; then :
21241 $as_echo_n "(cached) " >&6
21242 else
21244 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21245 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21246 . ./conftest.sh
21247 rm -f ./conftest.sh
21248 acl_cv_rpath=done
21251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
21252 $as_echo "$acl_cv_rpath" >&6; }
21253 wl="$acl_cv_wl"
21254 libext="$acl_cv_libext"
21255 shlibext="$acl_cv_shlibext"
21256 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21257 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21258 hardcode_direct="$acl_cv_hardcode_direct"
21259 hardcode_minus_L="$acl_cv_hardcode_minus_L"
21260 # Check whether --enable-rpath was given.
21261 if test "${enable_rpath+set}" = set; then :
21262 enableval=$enable_rpath; :
21263 else
21264 enable_rpath=yes
21274 use_additional=yes
21276 acl_save_prefix="$prefix"
21277 prefix="$acl_final_prefix"
21278 acl_save_exec_prefix="$exec_prefix"
21279 exec_prefix="$acl_final_exec_prefix"
21281 eval additional_includedir=\"$includedir\"
21282 eval additional_libdir=\"$libdir\"
21284 exec_prefix="$acl_save_exec_prefix"
21285 prefix="$acl_save_prefix"
21288 # Check whether --with-libiconv-prefix was given.
21289 if test "${with_libiconv_prefix+set}" = set; then :
21290 withval=$with_libiconv_prefix;
21291 if test "X$withval" = "Xno"; then
21292 use_additional=no
21293 else
21294 if test "X$withval" = "X"; then
21296 acl_save_prefix="$prefix"
21297 prefix="$acl_final_prefix"
21298 acl_save_exec_prefix="$exec_prefix"
21299 exec_prefix="$acl_final_exec_prefix"
21301 eval additional_includedir=\"$includedir\"
21302 eval additional_libdir=\"$libdir\"
21304 exec_prefix="$acl_save_exec_prefix"
21305 prefix="$acl_save_prefix"
21307 else
21308 additional_includedir="$withval/include"
21309 additional_libdir="$withval/lib"
21315 LIBICONV=
21316 LTLIBICONV=
21317 INCICONV=
21318 rpathdirs=
21319 ltrpathdirs=
21320 names_already_handled=
21321 names_next_round='iconv '
21322 while test -n "$names_next_round"; do
21323 names_this_round="$names_next_round"
21324 names_next_round=
21325 for name in $names_this_round; do
21326 already_handled=
21327 for n in $names_already_handled; do
21328 if test "$n" = "$name"; then
21329 already_handled=yes
21330 break
21332 done
21333 if test -z "$already_handled"; then
21334 names_already_handled="$names_already_handled $name"
21335 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21336 eval value=\"\$HAVE_LIB$uppername\"
21337 if test -n "$value"; then
21338 if test "$value" = yes; then
21339 eval value=\"\$LIB$uppername\"
21340 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21341 eval value=\"\$LTLIB$uppername\"
21342 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21343 else
21346 else
21347 found_dir=
21348 found_la=
21349 found_so=
21350 found_a=
21351 if test $use_additional = yes; then
21352 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21353 found_dir="$additional_libdir"
21354 found_so="$additional_libdir/lib$name.$shlibext"
21355 if test -f "$additional_libdir/lib$name.la"; then
21356 found_la="$additional_libdir/lib$name.la"
21358 else
21359 if test -f "$additional_libdir/lib$name.$libext"; then
21360 found_dir="$additional_libdir"
21361 found_a="$additional_libdir/lib$name.$libext"
21362 if test -f "$additional_libdir/lib$name.la"; then
21363 found_la="$additional_libdir/lib$name.la"
21368 if test "X$found_dir" = "X"; then
21369 for x in $LDFLAGS $LTLIBICONV; do
21371 acl_save_prefix="$prefix"
21372 prefix="$acl_final_prefix"
21373 acl_save_exec_prefix="$exec_prefix"
21374 exec_prefix="$acl_final_exec_prefix"
21375 eval x=\"$x\"
21376 exec_prefix="$acl_save_exec_prefix"
21377 prefix="$acl_save_prefix"
21379 case "$x" in
21380 -L*)
21381 dir=`echo "X$x" | sed -e 's/^X-L//'`
21382 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21383 found_dir="$dir"
21384 found_so="$dir/lib$name.$shlibext"
21385 if test -f "$dir/lib$name.la"; then
21386 found_la="$dir/lib$name.la"
21388 else
21389 if test -f "$dir/lib$name.$libext"; then
21390 found_dir="$dir"
21391 found_a="$dir/lib$name.$libext"
21392 if test -f "$dir/lib$name.la"; then
21393 found_la="$dir/lib$name.la"
21398 esac
21399 if test "X$found_dir" != "X"; then
21400 break
21402 done
21404 if test "X$found_dir" != "X"; then
21405 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21406 if test "X$found_so" != "X"; then
21407 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21408 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21409 else
21410 haveit=
21411 for x in $ltrpathdirs; do
21412 if test "X$x" = "X$found_dir"; then
21413 haveit=yes
21414 break
21416 done
21417 if test -z "$haveit"; then
21418 ltrpathdirs="$ltrpathdirs $found_dir"
21420 if test "$hardcode_direct" = yes; then
21421 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21422 else
21423 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21424 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21425 haveit=
21426 for x in $rpathdirs; do
21427 if test "X$x" = "X$found_dir"; then
21428 haveit=yes
21429 break
21431 done
21432 if test -z "$haveit"; then
21433 rpathdirs="$rpathdirs $found_dir"
21435 else
21436 haveit=
21437 for x in $LDFLAGS $LIBICONV; do
21439 acl_save_prefix="$prefix"
21440 prefix="$acl_final_prefix"
21441 acl_save_exec_prefix="$exec_prefix"
21442 exec_prefix="$acl_final_exec_prefix"
21443 eval x=\"$x\"
21444 exec_prefix="$acl_save_exec_prefix"
21445 prefix="$acl_save_prefix"
21447 if test "X$x" = "X-L$found_dir"; then
21448 haveit=yes
21449 break
21451 done
21452 if test -z "$haveit"; then
21453 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21455 if test "$hardcode_minus_L" != no; then
21456 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21457 else
21458 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21463 else
21464 if test "X$found_a" != "X"; then
21465 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21466 else
21467 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21470 additional_includedir=
21471 case "$found_dir" in
21472 */lib | */lib/)
21473 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21474 additional_includedir="$basedir/include"
21476 esac
21477 if test "X$additional_includedir" != "X"; then
21478 if test "X$additional_includedir" != "X/usr/include"; then
21479 haveit=
21480 if test "X$additional_includedir" = "X/usr/local/include"; then
21481 if test -n "$GCC"; then
21482 case $host_os in
21483 linux*) haveit=yes;;
21484 esac
21487 if test -z "$haveit"; then
21488 for x in $CPPFLAGS $INCICONV; do
21490 acl_save_prefix="$prefix"
21491 prefix="$acl_final_prefix"
21492 acl_save_exec_prefix="$exec_prefix"
21493 exec_prefix="$acl_final_exec_prefix"
21494 eval x=\"$x\"
21495 exec_prefix="$acl_save_exec_prefix"
21496 prefix="$acl_save_prefix"
21498 if test "X$x" = "X-I$additional_includedir"; then
21499 haveit=yes
21500 break
21502 done
21503 if test -z "$haveit"; then
21504 if test -d "$additional_includedir"; then
21505 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21511 if test -n "$found_la"; then
21512 save_libdir="$libdir"
21513 case "$found_la" in
21514 */* | *\\*) . "$found_la" ;;
21515 *) . "./$found_la" ;;
21516 esac
21517 libdir="$save_libdir"
21518 for dep in $dependency_libs; do
21519 case "$dep" in
21520 -L*)
21521 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21522 if test "X$additional_libdir" != "X/usr/lib"; then
21523 haveit=
21524 if test "X$additional_libdir" = "X/usr/local/lib"; then
21525 if test -n "$GCC"; then
21526 case $host_os in
21527 linux*) haveit=yes;;
21528 esac
21531 if test -z "$haveit"; then
21532 haveit=
21533 for x in $LDFLAGS $LIBICONV; do
21535 acl_save_prefix="$prefix"
21536 prefix="$acl_final_prefix"
21537 acl_save_exec_prefix="$exec_prefix"
21538 exec_prefix="$acl_final_exec_prefix"
21539 eval x=\"$x\"
21540 exec_prefix="$acl_save_exec_prefix"
21541 prefix="$acl_save_prefix"
21543 if test "X$x" = "X-L$additional_libdir"; then
21544 haveit=yes
21545 break
21547 done
21548 if test -z "$haveit"; then
21549 if test -d "$additional_libdir"; then
21550 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21553 haveit=
21554 for x in $LDFLAGS $LTLIBICONV; do
21556 acl_save_prefix="$prefix"
21557 prefix="$acl_final_prefix"
21558 acl_save_exec_prefix="$exec_prefix"
21559 exec_prefix="$acl_final_exec_prefix"
21560 eval x=\"$x\"
21561 exec_prefix="$acl_save_exec_prefix"
21562 prefix="$acl_save_prefix"
21564 if test "X$x" = "X-L$additional_libdir"; then
21565 haveit=yes
21566 break
21568 done
21569 if test -z "$haveit"; then
21570 if test -d "$additional_libdir"; then
21571 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21577 -R*)
21578 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21579 if test "$enable_rpath" != no; then
21580 haveit=
21581 for x in $rpathdirs; do
21582 if test "X$x" = "X$dir"; then
21583 haveit=yes
21584 break
21586 done
21587 if test -z "$haveit"; then
21588 rpathdirs="$rpathdirs $dir"
21590 haveit=
21591 for x in $ltrpathdirs; do
21592 if test "X$x" = "X$dir"; then
21593 haveit=yes
21594 break
21596 done
21597 if test -z "$haveit"; then
21598 ltrpathdirs="$ltrpathdirs $dir"
21602 -l*)
21603 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21605 *.la)
21606 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21609 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21610 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21612 esac
21613 done
21615 else
21616 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21617 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21621 done
21622 done
21623 if test "X$rpathdirs" != "X"; then
21624 if test -n "$hardcode_libdir_separator"; then
21625 alldirs=
21626 for found_dir in $rpathdirs; do
21627 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21628 done
21629 acl_save_libdir="$libdir"
21630 libdir="$alldirs"
21631 eval flag=\"$hardcode_libdir_flag_spec\"
21632 libdir="$acl_save_libdir"
21633 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21634 else
21635 for found_dir in $rpathdirs; do
21636 acl_save_libdir="$libdir"
21637 libdir="$found_dir"
21638 eval flag=\"$hardcode_libdir_flag_spec\"
21639 libdir="$acl_save_libdir"
21640 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21641 done
21644 if test "X$ltrpathdirs" != "X"; then
21645 for found_dir in $ltrpathdirs; do
21646 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21647 done
21656 am_save_CPPFLAGS="$CPPFLAGS"
21658 for element in $INCICONV; do
21659 haveit=
21660 for x in $CPPFLAGS; do
21662 acl_save_prefix="$prefix"
21663 prefix="$acl_final_prefix"
21664 acl_save_exec_prefix="$exec_prefix"
21665 exec_prefix="$acl_final_exec_prefix"
21666 eval x=\"$x\"
21667 exec_prefix="$acl_save_exec_prefix"
21668 prefix="$acl_save_prefix"
21670 if test "X$x" = "X$element"; then
21671 haveit=yes
21672 break
21674 done
21675 if test -z "$haveit"; then
21676 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21678 done
21681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
21682 $as_echo_n "checking for iconv... " >&6; }
21683 if test "${am_cv_func_iconv+set}" = set; then :
21684 $as_echo_n "(cached) " >&6
21685 else
21687 am_cv_func_iconv="no, consider installing GNU libiconv"
21688 am_cv_lib_iconv=no
21689 if test x$gcc_no_link = xyes; then
21690 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21693 /* end confdefs.h. */
21694 #include <stdlib.h>
21695 #include <iconv.h>
21697 main ()
21699 iconv_t cd = iconv_open("","");
21700 iconv(cd,NULL,NULL,NULL,NULL);
21701 iconv_close(cd);
21703 return 0;
21705 _ACEOF
21706 if ac_fn_c_try_link "$LINENO"; then :
21707 am_cv_func_iconv=yes
21709 rm -f core conftest.err conftest.$ac_objext \
21710 conftest$ac_exeext conftest.$ac_ext
21711 if test "$am_cv_func_iconv" != yes; then
21712 am_save_LIBS="$LIBS"
21713 LIBS="$LIBS $LIBICONV"
21714 if test x$gcc_no_link = xyes; then
21715 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21718 /* end confdefs.h. */
21719 #include <stdlib.h>
21720 #include <iconv.h>
21722 main ()
21724 iconv_t cd = iconv_open("","");
21725 iconv(cd,NULL,NULL,NULL,NULL);
21726 iconv_close(cd);
21728 return 0;
21730 _ACEOF
21731 if ac_fn_c_try_link "$LINENO"; then :
21732 am_cv_lib_iconv=yes
21733 am_cv_func_iconv=yes
21735 rm -f core conftest.err conftest.$ac_objext \
21736 conftest$ac_exeext conftest.$ac_ext
21737 LIBS="$am_save_LIBS"
21741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
21742 $as_echo "$am_cv_func_iconv" >&6; }
21743 if test "$am_cv_func_iconv" = yes; then
21745 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
21748 if test "$am_cv_lib_iconv" = yes; then
21749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
21750 $as_echo_n "checking how to link with libiconv... " >&6; }
21751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
21752 $as_echo "$LIBICONV" >&6; }
21753 else
21754 CPPFLAGS="$am_save_CPPFLAGS"
21755 LIBICONV=
21756 LTLIBICONV=
21761 if test "$am_cv_func_iconv" = yes; then
21762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
21763 $as_echo_n "checking for iconv declaration... " >&6; }
21764 if test "${am_cv_proto_iconv+set}" = set; then :
21765 $as_echo_n "(cached) " >&6
21766 else
21768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21769 /* end confdefs.h. */
21771 #include <stdlib.h>
21772 #include <iconv.h>
21773 extern
21774 #ifdef __cplusplus
21776 #endif
21777 #if defined(__STDC__) || defined(__cplusplus)
21778 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21779 #else
21780 size_t iconv();
21781 #endif
21784 main ()
21788 return 0;
21790 _ACEOF
21791 if ac_fn_c_try_compile "$LINENO"; then :
21792 am_cv_proto_iconv_arg1=""
21793 else
21794 am_cv_proto_iconv_arg1="const"
21796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21797 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);"
21800 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
21802 }$am_cv_proto_iconv" >&5
21803 $as_echo "${ac_t:-
21804 }$am_cv_proto_iconv" >&6; }
21806 cat >>confdefs.h <<_ACEOF
21807 #define ICONV_CONST $am_cv_proto_iconv_arg1
21808 _ACEOF
21813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
21814 $as_echo_n "checking for LC_MESSAGES... " >&6; }
21815 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
21816 $as_echo_n "(cached) " >&6
21817 else
21818 if test x$gcc_no_link = xyes; then
21819 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21822 /* end confdefs.h. */
21823 #include <locale.h>
21825 main ()
21827 return LC_MESSAGES
21829 return 0;
21831 _ACEOF
21832 if ac_fn_c_try_link "$LINENO"; then :
21833 am_cv_val_LC_MESSAGES=yes
21834 else
21835 am_cv_val_LC_MESSAGES=no
21837 rm -f core conftest.err conftest.$ac_objext \
21838 conftest$ac_exeext conftest.$ac_ext
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
21841 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
21842 if test $am_cv_val_LC_MESSAGES = yes; then
21844 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
21848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21849 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21850 if test "${ac_cv_struct_tm+set}" = set; then :
21851 $as_echo_n "(cached) " >&6
21852 else
21853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21854 /* end confdefs.h. */
21855 #include <sys/types.h>
21856 #include <time.h>
21859 main ()
21861 struct tm tm;
21862 int *p = &tm.tm_sec;
21863 return !p;
21865 return 0;
21867 _ACEOF
21868 if ac_fn_c_try_compile "$LINENO"; then :
21869 ac_cv_struct_tm=time.h
21870 else
21871 ac_cv_struct_tm=sys/time.h
21873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21876 $as_echo "$ac_cv_struct_tm" >&6; }
21877 if test $ac_cv_struct_tm = sys/time.h; then
21879 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21883 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21884 #include <$ac_cv_struct_tm>
21887 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21889 cat >>confdefs.h <<_ACEOF
21890 #define HAVE_STRUCT_TM_TM_ZONE 1
21891 _ACEOF
21896 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21898 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21900 else
21901 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21903 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21904 ac_have_decl=1
21905 else
21906 ac_have_decl=0
21909 cat >>confdefs.h <<_ACEOF
21910 #define HAVE_DECL_TZNAME $ac_have_decl
21911 _ACEOF
21913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21914 $as_echo_n "checking for tzname... " >&6; }
21915 if test "${ac_cv_var_tzname+set}" = set; then :
21916 $as_echo_n "(cached) " >&6
21917 else
21918 if test x$gcc_no_link = xyes; then
21919 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21922 /* end confdefs.h. */
21923 #include <time.h>
21924 #if !HAVE_DECL_TZNAME
21925 extern char *tzname[];
21926 #endif
21929 main ()
21931 return tzname[0][0];
21933 return 0;
21935 _ACEOF
21936 if ac_fn_c_try_link "$LINENO"; then :
21937 ac_cv_var_tzname=yes
21938 else
21939 ac_cv_var_tzname=no
21941 rm -f core conftest.err conftest.$ac_objext \
21942 conftest$ac_exeext conftest.$ac_ext
21944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21945 $as_echo "$ac_cv_var_tzname" >&6; }
21946 if test $ac_cv_var_tzname = yes; then
21948 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21954 for ac_func in gethostbyname_r
21955 do :
21956 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
21957 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
21958 cat >>confdefs.h <<_ACEOF
21959 #define HAVE_GETHOSTBYNAME_R 1
21960 _ACEOF
21963 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
21965 # There are two different kinds of gethostbyname_r.
21966 # We look for the one that returns `int'.
21967 # Hopefully this check is robust enough.
21968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21969 /* end confdefs.h. */
21970 #include <netdb.h>
21972 _ACEOF
21973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21974 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then :
21977 $as_echo "#define GETHOSTBYNAME_R_RETURNS_INT 1" >>confdefs.h
21980 rm -f conftest*
21983 case " $GCINCS " in
21984 *" -D_REENTRANT "*) ;;
21986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
21987 $as_echo_n "checking whether gethostbyname_r declaration requires -D_REENTRANT... " >&6; }
21988 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then :
21989 $as_echo_n "(cached) " >&6
21990 else
21991 ac_ext=cpp
21992 ac_cpp='$CXXCPP $CPPFLAGS'
21993 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21994 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21995 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21998 /* end confdefs.h. */
21999 #include <netdb.h>
22001 main ()
22003 gethostbyname_r("", 0, 0);
22005 return 0;
22007 _ACEOF
22008 if ac_fn_cxx_try_compile "$LINENO"; then :
22009 libjava_cv_gethostbyname_r_needs_reentrant=no
22010 else
22011 CPPFLAGS_SAVE="$CPPFLAGS"
22012 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
22013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22014 /* end confdefs.h. */
22015 #include <netdb.h>
22017 main ()
22019 gethostbyname_r("", 0, 0);
22021 return 0;
22023 _ACEOF
22024 if ac_fn_cxx_try_compile "$LINENO"; then :
22025 libjava_cv_gethostbyname_r_needs_reentrant=yes
22026 else
22027 libjava_cv_gethostbyname_r_needs_reentrant=fail
22029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22030 CPPFLAGS="$CPPFLAGS_SAVE"
22033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22034 ac_ext=c
22035 ac_cpp='$CPP $CPPFLAGS'
22036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
22043 $as_echo "$libjava_cv_gethostbyname_r_needs_reentrant" >&6; }
22044 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
22046 $as_echo "#define _REENTRANT 1" >>confdefs.h
22050 esac
22052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct hostent_data" >&5
22053 $as_echo_n "checking for struct hostent_data... " >&6; }
22054 if test "${libjava_cv_struct_hostent_data+set}" = set; then :
22055 $as_echo_n "(cached) " >&6
22056 else
22057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22058 /* end confdefs.h. */
22060 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
22061 # define _REENTRANT 1
22062 #endif
22063 #include <netdb.h>
22065 main ()
22067 struct hostent_data data;
22069 return 0;
22071 _ACEOF
22072 if ac_fn_c_try_compile "$LINENO"; then :
22073 libjava_cv_struct_hostent_data=yes
22074 else
22075 libjava_cv_struct_hostent_data=no
22077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_struct_hostent_data" >&5
22080 $as_echo "$libjava_cv_struct_hostent_data" >&6; }
22081 if test "x$libjava_cv_struct_hostent_data" = xyes; then
22083 $as_echo "#define HAVE_STRUCT_HOSTENT_DATA 1" >>confdefs.h
22088 done
22091 # FIXME: libjava source code expects to find a prototype for
22092 # gethostbyaddr_r in netdb.h. The outer check ensures that
22093 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
22094 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
22095 # linkage check is enough, yet C++ code requires proper prototypes.)
22096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22097 /* end confdefs.h. */
22098 #include <netdb.h>
22100 _ACEOF
22101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22102 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
22104 for ac_func in gethostbyaddr_r
22105 do :
22106 ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
22107 if test "x$ac_cv_func_gethostbyaddr_r" = x""yes; then :
22108 cat >>confdefs.h <<_ACEOF
22109 #define HAVE_GETHOSTBYADDR_R 1
22110 _ACEOF
22113 $as_echo "#define HAVE_GETHOSTBYADDR_R 1" >>confdefs.h
22115 # There are two different kinds of gethostbyaddr_r.
22116 # We look for the one that returns `int'.
22117 # Hopefully this check is robust enough.
22118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22119 /* end confdefs.h. */
22120 #include <netdb.h>
22122 _ACEOF
22123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22124 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then :
22127 $as_echo "#define GETHOSTBYADDR_R_RETURNS_INT 1" >>confdefs.h
22130 rm -f conftest*
22133 done
22136 rm -f conftest*
22139 for ac_func in gethostname
22140 do :
22141 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
22142 if test "x$ac_cv_func_gethostname" = x""yes; then :
22143 cat >>confdefs.h <<_ACEOF
22144 #define HAVE_GETHOSTNAME 1
22145 _ACEOF
22148 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
22150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22151 /* end confdefs.h. */
22152 #include <unistd.h>
22154 _ACEOF
22155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22156 $EGREP "gethostname" >/dev/null 2>&1; then :
22159 $as_echo "#define HAVE_GETHOSTNAME_DECL 1" >>confdefs.h
22162 rm -f conftest*
22165 done
22168 for ac_func in usleep
22169 do :
22170 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
22171 if test "x$ac_cv_func_usleep" = x""yes; then :
22172 cat >>confdefs.h <<_ACEOF
22173 #define HAVE_USLEEP 1
22174 _ACEOF
22176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22177 /* end confdefs.h. */
22178 #include <unistd.h>
22180 _ACEOF
22181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22182 $EGREP "usleep" >/dev/null 2>&1; then :
22185 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
22188 rm -f conftest*
22191 done
22194 # Look for these functions in the thread library, but only bother
22195 # if using POSIX threads.
22196 if test "$THREADS" = posix; then
22197 save_LIBS="$LIBS"
22198 LIBS="$LIBS $THREADLIBS"
22200 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
22201 # Solaris 7 the name librt is preferred.
22202 for ac_func in sched_yield
22203 do :
22204 ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
22205 if test "x$ac_cv_func_sched_yield" = x""yes; then :
22206 cat >>confdefs.h <<_ACEOF
22207 #define HAVE_SCHED_YIELD 1
22208 _ACEOF
22210 else
22212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
22213 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
22214 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
22215 $as_echo_n "(cached) " >&6
22216 else
22217 ac_check_lib_save_LIBS=$LIBS
22218 LIBS="-lrt $LIBS"
22219 if test x$gcc_no_link = xyes; then
22220 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22223 /* end confdefs.h. */
22225 /* Override any GCC internal prototype to avoid an error.
22226 Use char because int might match the return type of a GCC
22227 builtin and then its argument prototype would still apply. */
22228 #ifdef __cplusplus
22229 extern "C"
22230 #endif
22231 char sched_yield ();
22233 main ()
22235 return sched_yield ();
22237 return 0;
22239 _ACEOF
22240 if ac_fn_c_try_link "$LINENO"; then :
22241 ac_cv_lib_rt_sched_yield=yes
22242 else
22243 ac_cv_lib_rt_sched_yield=no
22245 rm -f core conftest.err conftest.$ac_objext \
22246 conftest$ac_exeext conftest.$ac_ext
22247 LIBS=$ac_check_lib_save_LIBS
22249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
22250 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
22251 if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
22253 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22255 THREADLIBS="$THREADLIBS -lrt"
22256 THREADSPEC="$THREADSPEC -lrt"
22257 else
22259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
22260 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
22261 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then :
22262 $as_echo_n "(cached) " >&6
22263 else
22264 ac_check_lib_save_LIBS=$LIBS
22265 LIBS="-lposix4 $LIBS"
22266 if test x$gcc_no_link = xyes; then
22267 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22270 /* end confdefs.h. */
22272 /* Override any GCC internal prototype to avoid an error.
22273 Use char because int might match the return type of a GCC
22274 builtin and then its argument prototype would still apply. */
22275 #ifdef __cplusplus
22276 extern "C"
22277 #endif
22278 char sched_yield ();
22280 main ()
22282 return sched_yield ();
22284 return 0;
22286 _ACEOF
22287 if ac_fn_c_try_link "$LINENO"; then :
22288 ac_cv_lib_posix4_sched_yield=yes
22289 else
22290 ac_cv_lib_posix4_sched_yield=no
22292 rm -f core conftest.err conftest.$ac_objext \
22293 conftest$ac_exeext conftest.$ac_ext
22294 LIBS=$ac_check_lib_save_LIBS
22296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
22297 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
22298 if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then :
22300 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22302 THREADLIBS="$THREADLIBS -lposix4"
22303 THREADSPEC="$THREADSPEC -lposix4"
22309 done
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22313 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22314 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
22315 $as_echo_n "(cached) " >&6
22316 else
22317 ac_check_lib_save_LIBS=$LIBS
22318 LIBS="-lrt $LIBS"
22319 if test x$gcc_no_link = xyes; then
22320 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22323 /* end confdefs.h. */
22325 /* Override any GCC internal prototype to avoid an error.
22326 Use char because int might match the return type of a GCC
22327 builtin and then its argument prototype would still apply. */
22328 #ifdef __cplusplus
22329 extern "C"
22330 #endif
22331 char clock_gettime ();
22333 main ()
22335 return clock_gettime ();
22337 return 0;
22339 _ACEOF
22340 if ac_fn_c_try_link "$LINENO"; then :
22341 ac_cv_lib_rt_clock_gettime=yes
22342 else
22343 ac_cv_lib_rt_clock_gettime=no
22345 rm -f core conftest.err conftest.$ac_objext \
22346 conftest$ac_exeext conftest.$ac_ext
22347 LIBS=$ac_check_lib_save_LIBS
22349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22350 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22351 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
22354 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22356 case "$THREADSPEC" in
22357 *-lrt*) ;;
22359 THREADSPEC="$THREADSPEC -lrt"
22360 THREADLIBS="$THREADLIBS -lrt"
22362 esac
22366 LIBS="$save_LIBS"
22368 # We can save a little space at runtime if the mutex has m_count
22369 # or __m_count. This is a nice hack for Linux.
22370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22371 /* end confdefs.h. */
22372 #include <pthread.h>
22374 main ()
22377 extern pthread_mutex_t *mutex; int q = mutex->m_count;
22380 return 0;
22382 _ACEOF
22383 if ac_fn_c_try_compile "$LINENO"; then :
22385 $as_echo "#define PTHREAD_MUTEX_HAVE_M_COUNT 1" >>confdefs.h
22387 else
22389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22390 /* end confdefs.h. */
22391 #include <pthread.h>
22393 main ()
22396 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
22399 return 0;
22401 _ACEOF
22402 if ac_fn_c_try_compile "$LINENO"; then :
22404 $as_echo "#define PTHREAD_MUTEX_HAVE___M_COUNT 1" >>confdefs.h
22407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22412 # We require a way to get the time.
22413 time_found=no
22414 for ac_func in gettimeofday time ftime
22415 do :
22416 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22417 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22418 eval as_val=\$$as_ac_var
22419 if test "x$as_val" = x""yes; then :
22420 cat >>confdefs.h <<_ACEOF
22421 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22422 _ACEOF
22423 time_found=yes
22425 done
22427 if test "$time_found" = no; then
22428 as_fn_error "no function found to get the time" "$LINENO" 5
22431 for ac_func in memmove
22432 do :
22433 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22434 if test "x$ac_cv_func_memmove" = x""yes; then :
22435 cat >>confdefs.h <<_ACEOF
22436 #define HAVE_MEMMOVE 1
22437 _ACEOF
22440 done
22443 # We require memcpy.
22444 memcpy_found=no
22445 for ac_func in memcpy
22446 do :
22447 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
22448 if test "x$ac_cv_func_memcpy" = x""yes; then :
22449 cat >>confdefs.h <<_ACEOF
22450 #define HAVE_MEMCPY 1
22451 _ACEOF
22452 memcpy_found=yes
22454 done
22456 if test "$memcpy_found" = no; then
22457 as_fn_error "memcpy is required" "$LINENO" 5
22459 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
22460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22461 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22462 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
22463 $as_echo_n "(cached) " >&6
22464 else
22465 ac_check_lib_save_LIBS=$LIBS
22466 LIBS="-ldl $LIBS"
22467 if test x$gcc_no_link = xyes; then
22468 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22471 /* end confdefs.h. */
22473 /* Override any GCC internal prototype to avoid an error.
22474 Use char because int might match the return type of a GCC
22475 builtin and then its argument prototype would still apply. */
22476 #ifdef __cplusplus
22477 extern "C"
22478 #endif
22479 char dlopen ();
22481 main ()
22483 return dlopen ();
22485 return 0;
22487 _ACEOF
22488 if ac_fn_c_try_link "$LINENO"; then :
22489 ac_cv_lib_dl_dlopen=yes
22490 else
22491 ac_cv_lib_dl_dlopen=no
22493 rm -f core conftest.err conftest.$ac_objext \
22494 conftest$ac_exeext conftest.$ac_ext
22495 LIBS=$ac_check_lib_save_LIBS
22497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22498 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22499 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
22502 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22504 else
22506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldld" >&5
22507 $as_echo_n "checking for dlopen in -ldld... " >&6; }
22508 if test "${ac_cv_lib_dld_dlopen+set}" = set; then :
22509 $as_echo_n "(cached) " >&6
22510 else
22511 ac_check_lib_save_LIBS=$LIBS
22512 LIBS="-ldld $LIBS"
22513 if test x$gcc_no_link = xyes; then
22514 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22517 /* end confdefs.h. */
22519 /* Override any GCC internal prototype to avoid an error.
22520 Use char because int might match the return type of a GCC
22521 builtin and then its argument prototype would still apply. */
22522 #ifdef __cplusplus
22523 extern "C"
22524 #endif
22525 char dlopen ();
22527 main ()
22529 return dlopen ();
22531 return 0;
22533 _ACEOF
22534 if ac_fn_c_try_link "$LINENO"; then :
22535 ac_cv_lib_dld_dlopen=yes
22536 else
22537 ac_cv_lib_dld_dlopen=no
22539 rm -f core conftest.err conftest.$ac_objext \
22540 conftest$ac_exeext conftest.$ac_ext
22541 LIBS=$ac_check_lib_save_LIBS
22543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dlopen" >&5
22544 $as_echo "$ac_cv_lib_dld_dlopen" >&6; }
22545 if test "x$ac_cv_lib_dld_dlopen" = x""yes; then :
22548 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22555 # Some library-finding code we stole from Tcl.
22556 #--------------------------------------------------------------------
22557 # Check for the existence of the -lsocket and -lnsl libraries.
22558 # The order here is important, so that they end up in the right
22559 # order in the command line generated by make. Here are some
22560 # special considerations:
22561 # 1. Use "connect" and "accept" to check for -lsocket, and
22562 # "gethostbyname" to check for -lnsl.
22563 # 2. Use each function name only once: can't redo a check because
22564 # autoconf caches the results of the last check and won't redo it.
22565 # 3. Use -lnsl and -lsocket only if they supply procedures that
22566 # aren't already present in the normal libraries. This is because
22567 # IRIX 5.2 has libraries, but they aren't needed and they're
22568 # bogus: they goof up name resolution if used.
22569 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
22570 # To get around this problem, check for both libraries together
22571 # if -lsocket doesn't work by itself.
22572 #--------------------------------------------------------------------
22574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
22575 $as_echo_n "checking for socket libraries... " >&6; }
22576 if test "${gcj_cv_lib_sockets+set}" = set; then :
22577 $as_echo_n "(cached) " >&6
22578 else
22579 gcj_cv_lib_sockets=
22580 gcj_checkBoth=0
22581 unset ac_cv_func_connect
22582 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
22583 if test "x$ac_cv_func_connect" = x""yes; then :
22584 gcj_checkSocket=0
22585 else
22586 gcj_checkSocket=1
22589 if test "$gcj_checkSocket" = 1; then
22590 unset ac_cv_func_connect
22591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
22592 $as_echo_n "checking for main in -lsocket... " >&6; }
22593 if test "${ac_cv_lib_socket_main+set}" = set; then :
22594 $as_echo_n "(cached) " >&6
22595 else
22596 ac_check_lib_save_LIBS=$LIBS
22597 LIBS="-lsocket $LIBS"
22598 if test x$gcc_no_link = xyes; then
22599 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22602 /* end confdefs.h. */
22606 main ()
22608 return main ();
22610 return 0;
22612 _ACEOF
22613 if ac_fn_c_try_link "$LINENO"; then :
22614 ac_cv_lib_socket_main=yes
22615 else
22616 ac_cv_lib_socket_main=no
22618 rm -f core conftest.err conftest.$ac_objext \
22619 conftest$ac_exeext conftest.$ac_ext
22620 LIBS=$ac_check_lib_save_LIBS
22622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
22623 $as_echo "$ac_cv_lib_socket_main" >&6; }
22624 if test "x$ac_cv_lib_socket_main" = x""yes; then :
22625 gcj_cv_lib_sockets="-lsocket"
22626 else
22627 gcj_checkBoth=1
22631 if test "$gcj_checkBoth" = 1; then
22632 gcj_oldLibs=$LIBS
22633 LIBS="$LIBS -lsocket -lnsl"
22634 unset ac_cv_func_accept
22635 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
22636 if test "x$ac_cv_func_accept" = x""yes; then :
22637 gcj_checkNsl=0
22638 gcj_cv_lib_sockets="-lsocket -lnsl"
22641 unset ac_cv_func_accept
22642 LIBS=$gcj_oldLibs
22644 unset ac_cv_func_gethostbyname
22645 gcj_oldLibs=$LIBS
22646 LIBS="$LIBS $gcj_cv_lib_sockets"
22647 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22648 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
22650 else
22651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
22652 $as_echo_n "checking for main in -lnsl... " >&6; }
22653 if test "${ac_cv_lib_nsl_main+set}" = set; then :
22654 $as_echo_n "(cached) " >&6
22655 else
22656 ac_check_lib_save_LIBS=$LIBS
22657 LIBS="-lnsl $LIBS"
22658 if test x$gcc_no_link = xyes; then
22659 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22662 /* end confdefs.h. */
22666 main ()
22668 return main ();
22670 return 0;
22672 _ACEOF
22673 if ac_fn_c_try_link "$LINENO"; then :
22674 ac_cv_lib_nsl_main=yes
22675 else
22676 ac_cv_lib_nsl_main=no
22678 rm -f core conftest.err conftest.$ac_objext \
22679 conftest$ac_exeext conftest.$ac_ext
22680 LIBS=$ac_check_lib_save_LIBS
22682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
22683 $as_echo "$ac_cv_lib_nsl_main" >&6; }
22684 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
22685 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
22690 unset ac_cv_func_gethostbyname
22691 LIBS=$gcj_oldLIBS
22694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcj_cv_lib_sockets" >&5
22695 $as_echo "$gcj_cv_lib_sockets" >&6; }
22696 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
22698 if test "$with_system_zlib" = yes; then
22699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
22700 $as_echo_n "checking for deflate in -lz... " >&6; }
22701 if test "${ac_cv_lib_z_deflate+set}" = set; then :
22702 $as_echo_n "(cached) " >&6
22703 else
22704 ac_check_lib_save_LIBS=$LIBS
22705 LIBS="-lz $LIBS"
22706 if test x$gcc_no_link = xyes; then
22707 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22710 /* end confdefs.h. */
22712 /* Override any GCC internal prototype to avoid an error.
22713 Use char because int might match the return type of a GCC
22714 builtin and then its argument prototype would still apply. */
22715 #ifdef __cplusplus
22716 extern "C"
22717 #endif
22718 char deflate ();
22720 main ()
22722 return deflate ();
22724 return 0;
22726 _ACEOF
22727 if ac_fn_c_try_link "$LINENO"; then :
22728 ac_cv_lib_z_deflate=yes
22729 else
22730 ac_cv_lib_z_deflate=no
22732 rm -f core conftest.err conftest.$ac_objext \
22733 conftest$ac_exeext conftest.$ac_ext
22734 LIBS=$ac_check_lib_save_LIBS
22736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
22737 $as_echo "$ac_cv_lib_z_deflate" >&6; }
22738 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
22739 ZLIBSPEC=-lz
22740 else
22741 ZLIBSPEC=
22746 # Test for Gtk stuff, if asked for.
22747 if test "$use_gtk_awt" = yes; then
22749 succeeded=no
22751 if test -z "$PKG_CONFIG"; then
22752 # Extract the first word of "pkg-config", so it can be a program name with args.
22753 set dummy pkg-config; ac_word=$2
22754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22755 $as_echo_n "checking for $ac_word... " >&6; }
22756 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22757 $as_echo_n "(cached) " >&6
22758 else
22759 case $PKG_CONFIG in
22760 [\\/]* | ?:[\\/]*)
22761 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22765 for as_dir in $PATH
22767 IFS=$as_save_IFS
22768 test -z "$as_dir" && as_dir=.
22769 for ac_exec_ext in '' $ac_executable_extensions; do
22770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22771 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22773 break 2
22775 done
22776 done
22777 IFS=$as_save_IFS
22779 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22781 esac
22783 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22784 if test -n "$PKG_CONFIG"; then
22785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22786 $as_echo "$PKG_CONFIG" >&6; }
22787 else
22788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22789 $as_echo "no" >&6; }
22795 if test "$PKG_CONFIG" = "no" ; then
22796 echo "*** The pkg-config script could not be found. Make sure it is"
22797 echo "*** in your path, or set the PKG_CONFIG environment variable"
22798 echo "*** to the full path to pkg-config."
22799 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22800 else
22801 PKG_CONFIG_MIN_VERSION=0.9.0
22802 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.4" >&5
22804 $as_echo_n "checking for gtk+-2.0 >= 2.4... " >&6; }
22806 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
22807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22808 $as_echo "yes" >&6; }
22809 succeeded=yes
22811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
22812 $as_echo_n "checking GTK_CFLAGS... " >&6; }
22813 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
22814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
22815 $as_echo "$GTK_CFLAGS" >&6; }
22817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
22818 $as_echo_n "checking GTK_LIBS... " >&6; }
22819 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
22820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
22821 $as_echo "$GTK_LIBS" >&6; }
22822 else
22823 GTK_CFLAGS=""
22824 GTK_LIBS=""
22825 ## If we have a custom action on failure, don't print errors, but
22826 ## do set a variable so people can do so.
22827 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
22828 echo $GTK_PKG_ERRORS
22833 else
22834 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22835 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22839 if test $succeeded = yes; then
22841 else
22842 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
22849 succeeded=no
22851 if test -z "$PKG_CONFIG"; then
22852 # Extract the first word of "pkg-config", so it can be a program name with args.
22853 set dummy pkg-config; ac_word=$2
22854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22855 $as_echo_n "checking for $ac_word... " >&6; }
22856 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22857 $as_echo_n "(cached) " >&6
22858 else
22859 case $PKG_CONFIG in
22860 [\\/]* | ?:[\\/]*)
22861 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22865 for as_dir in $PATH
22867 IFS=$as_save_IFS
22868 test -z "$as_dir" && as_dir=.
22869 for ac_exec_ext in '' $ac_executable_extensions; do
22870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22871 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22873 break 2
22875 done
22876 done
22877 IFS=$as_save_IFS
22879 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22881 esac
22883 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22884 if test -n "$PKG_CONFIG"; then
22885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22886 $as_echo "$PKG_CONFIG" >&6; }
22887 else
22888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22889 $as_echo "no" >&6; }
22895 if test "$PKG_CONFIG" = "no" ; then
22896 echo "*** The pkg-config script could not be found. Make sure it is"
22897 echo "*** in your path, or set the PKG_CONFIG environment variable"
22898 echo "*** to the full path to pkg-config."
22899 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22900 else
22901 PKG_CONFIG_MIN_VERSION=0.9.0
22902 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
22904 $as_echo_n "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... " >&6; }
22906 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
22907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22908 $as_echo "yes" >&6; }
22909 succeeded=yes
22911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
22912 $as_echo_n "checking GLIB_CFLAGS... " >&6; }
22913 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
22915 $as_echo "$GLIB_CFLAGS" >&6; }
22917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
22918 $as_echo_n "checking GLIB_LIBS... " >&6; }
22919 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
22921 $as_echo "$GLIB_LIBS" >&6; }
22922 else
22923 GLIB_CFLAGS=""
22924 GLIB_LIBS=""
22925 ## If we have a custom action on failure, don't print errors, but
22926 ## do set a variable so people can do so.
22927 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22928 echo $GLIB_PKG_ERRORS
22933 else
22934 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22935 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22939 if test $succeeded = yes; then
22941 else
22942 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
22949 succeeded=no
22951 if test -z "$PKG_CONFIG"; then
22952 # Extract the first word of "pkg-config", so it can be a program name with args.
22953 set dummy pkg-config; ac_word=$2
22954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22955 $as_echo_n "checking for $ac_word... " >&6; }
22956 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22957 $as_echo_n "(cached) " >&6
22958 else
22959 case $PKG_CONFIG in
22960 [\\/]* | ?:[\\/]*)
22961 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22965 for as_dir in $PATH
22967 IFS=$as_save_IFS
22968 test -z "$as_dir" && as_dir=.
22969 for ac_exec_ext in '' $ac_executable_extensions; do
22970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22971 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22973 break 2
22975 done
22976 done
22977 IFS=$as_save_IFS
22979 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22981 esac
22983 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22984 if test -n "$PKG_CONFIG"; then
22985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22986 $as_echo "$PKG_CONFIG" >&6; }
22987 else
22988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22989 $as_echo "no" >&6; }
22995 if test "$PKG_CONFIG" = "no" ; then
22996 echo "*** The pkg-config script could not be found. Make sure it is"
22997 echo "*** in your path, or set the PKG_CONFIG environment variable"
22998 echo "*** to the full path to pkg-config."
22999 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23000 else
23001 PKG_CONFIG_MIN_VERSION=0.9.0
23002 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libart-2.0 >= 2.1" >&5
23004 $as_echo_n "checking for libart-2.0 >= 2.1... " >&6; }
23006 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
23007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23008 $as_echo "yes" >&6; }
23009 succeeded=yes
23011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_CFLAGS" >&5
23012 $as_echo_n "checking LIBART_CFLAGS... " >&6; }
23013 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
23014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_CFLAGS" >&5
23015 $as_echo "$LIBART_CFLAGS" >&6; }
23017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_LIBS" >&5
23018 $as_echo_n "checking LIBART_LIBS... " >&6; }
23019 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
23020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_LIBS" >&5
23021 $as_echo "$LIBART_LIBS" >&6; }
23022 else
23023 LIBART_CFLAGS=""
23024 LIBART_LIBS=""
23025 ## If we have a custom action on failure, don't print errors, but
23026 ## do set a variable so people can do so.
23027 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
23028 echo $LIBART_PKG_ERRORS
23033 else
23034 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23035 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23039 if test $succeeded = yes; then
23041 else
23042 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
23048 # We require the XTest Extension to support java.awt.Robot.
23049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
23050 $as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
23051 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
23052 $as_echo_n "(cached) " >&6
23053 else
23054 ac_check_lib_save_LIBS=$LIBS
23055 LIBS="-lXtst ${X_LIBS} $LIBS"
23056 if test x$gcc_no_link = xyes; then
23057 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23060 /* end confdefs.h. */
23062 /* Override any GCC internal prototype to avoid an error.
23063 Use char because int might match the return type of a GCC
23064 builtin and then its argument prototype would still apply. */
23065 #ifdef __cplusplus
23066 extern "C"
23067 #endif
23068 char XTestQueryExtension ();
23070 main ()
23072 return XTestQueryExtension ();
23074 return 0;
23076 _ACEOF
23077 if ac_fn_c_try_link "$LINENO"; then :
23078 ac_cv_lib_Xtst_XTestQueryExtension=yes
23079 else
23080 ac_cv_lib_Xtst_XTestQueryExtension=no
23082 rm -f core conftest.err conftest.$ac_objext \
23083 conftest$ac_exeext conftest.$ac_ext
23084 LIBS=$ac_check_lib_save_LIBS
23086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
23087 $as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
23088 if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
23089 true
23090 else
23091 as_fn_error "libXtst not found, required by java.awt.Robot" "$LINENO" 5
23096 # On Solaris, and maybe other architectures, the Boehm collector
23097 # requires -ldl.
23098 if test "$GC" = boehm; then
23099 case "${host}" in
23100 mips-sgi-irix6*)
23101 # IRIX 6 lacks a N64 libdl.so, but only the N32 (default multilib)
23102 # libgcj.spec is used, so override here
23103 SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}"
23106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
23107 $as_echo_n "checking for main in -ldl... " >&6; }
23108 if test "${ac_cv_lib_dl_main+set}" = set; then :
23109 $as_echo_n "(cached) " >&6
23110 else
23111 ac_check_lib_save_LIBS=$LIBS
23112 LIBS="-ldl $LIBS"
23113 if test x$gcc_no_link = xyes; then
23114 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23117 /* end confdefs.h. */
23121 main ()
23123 return main ();
23125 return 0;
23127 _ACEOF
23128 if ac_fn_c_try_link "$LINENO"; then :
23129 ac_cv_lib_dl_main=yes
23130 else
23131 ac_cv_lib_dl_main=no
23133 rm -f core conftest.err conftest.$ac_objext \
23134 conftest$ac_exeext conftest.$ac_ext
23135 LIBS=$ac_check_lib_save_LIBS
23137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
23138 $as_echo "$ac_cv_lib_dl_main" >&6; }
23139 if test "x$ac_cv_lib_dl_main" = x""yes; then :
23140 SYSTEMSPEC="$SYSTEMSPEC -ldl"
23144 esac
23148 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
23149 case $build in
23150 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
23151 *) CLASSPATH_SEPARATOR=':' ;;
23152 esac
23155 # We must search the source tree for java.lang, since we still don't
23156 # have libgcj.jar nor java/lang/*.class
23157 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
23158 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
23160 # Since some classes depend on this one, we need its source available
23161 # before we can do any GCJ compilation test :-(
23162 if test ! -f gnu/classpath/Configuration.java; then
23163 test -d gnu || mkdir gnu
23164 test -d gnu/classpath || mkdir gnu/classpath
23165 # Note that it is not crucial that all the values here be correct.
23166 sed -e "s,@prefix@,$expanded_prefix," \
23167 -e "s,@VERSION@,$VERSION," \
23168 -e "s,@LIBDEBUG@,false," \
23169 -e "s,@INIT_LOAD_LIBRARY@,false," \
23170 -e "s,@@,$LIBGCJDEBUG," \
23171 -e "s,@default_toolkit@,$TOOLKIT," \
23172 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
23173 -e "s,@GTK_CAIRO_ENABLED@,false," \
23174 -e "s,@ECJ_JAR@,," \
23175 -e "s,@WANT_NATIVE_BIG_INTEGER@,false," \
23176 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
23177 > gnu/classpath/Configuration.java
23178 # We do not want to redirect the output of the grep below to /dev/null,
23179 # but we add /dev/null to the input list so that grep will print the
23180 # filename of Configuration.java in case it finds any matches.
23181 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
23182 as_fn_error "configure.ac is missing the substitutions above" "$LINENO" 5
23187 if test -n "$ac_tool_prefix"; then
23188 for ac_prog in gcj
23190 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23191 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23193 $as_echo_n "checking for $ac_word... " >&6; }
23194 if test "${ac_cv_prog_GCJ+set}" = set; then :
23195 $as_echo_n "(cached) " >&6
23196 else
23197 if test -n "$GCJ"; then
23198 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
23199 else
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_prog_GCJ="$ac_tool_prefix$ac_prog"
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
23217 GCJ=$ac_cv_prog_GCJ
23218 if test -n "$GCJ"; then
23219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
23220 $as_echo "$GCJ" >&6; }
23221 else
23222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23223 $as_echo "no" >&6; }
23227 test -n "$GCJ" && break
23228 done
23230 if test -z "$GCJ"; then
23231 ac_ct_GCJ=$GCJ
23232 for ac_prog in gcj
23234 # Extract the first word of "$ac_prog", so it can be a program name with args.
23235 set dummy $ac_prog; ac_word=$2
23236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23237 $as_echo_n "checking for $ac_word... " >&6; }
23238 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
23239 $as_echo_n "(cached) " >&6
23240 else
23241 if test -n "$ac_ct_GCJ"; then
23242 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
23243 else
23244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23245 for as_dir in $PATH
23247 IFS=$as_save_IFS
23248 test -z "$as_dir" && as_dir=.
23249 for ac_exec_ext in '' $ac_executable_extensions; do
23250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23251 ac_cv_prog_ac_ct_GCJ="$ac_prog"
23252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23253 break 2
23255 done
23256 done
23257 IFS=$as_save_IFS
23261 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
23262 if test -n "$ac_ct_GCJ"; then
23263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
23264 $as_echo "$ac_ct_GCJ" >&6; }
23265 else
23266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23267 $as_echo "no" >&6; }
23271 test -n "$ac_ct_GCJ" && break
23272 done
23274 if test "x$ac_ct_GCJ" = x; then
23275 GCJ="gcj"
23276 else
23277 case $cross_compiling:$ac_tool_warned in
23278 yes:)
23279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23281 ac_tool_warned=yes ;;
23282 esac
23283 GCJ=$ac_ct_GCJ
23287 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
23288 if test "x${GCJFLAGS-unset}" = xunset; then
23289 GCJFLAGS="-g -O2"
23293 depcc="$GCJ" am_compiler_list='gcc3 gcc'
23295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23296 $as_echo_n "checking dependency style of $depcc... " >&6; }
23297 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
23298 $as_echo_n "(cached) " >&6
23299 else
23300 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23301 # We make a subdir and do the tests there. Otherwise we can end up
23302 # making bogus files that we don't know about and never remove. For
23303 # instance it was reported that on HP-UX the gcc test will end up
23304 # making a dummy file named `D' -- because `-MD' means `put the output
23305 # in D'.
23306 mkdir conftest.dir
23307 # Copy depcomp to subdir because otherwise we won't find it if we're
23308 # using a relative directory.
23309 cp "$am_depcomp" conftest.dir
23310 cd conftest.dir
23311 # We will build objects and dependencies in a subdirectory because
23312 # it helps to detect inapplicable dependency modes. For instance
23313 # both Tru64's cc and ICC support -MD to output dependencies as a
23314 # side effect of compilation, but ICC will put the dependencies in
23315 # the current directory while Tru64 will put them in the object
23316 # directory.
23317 mkdir sub
23319 am_cv_GCJ_dependencies_compiler_type=none
23320 if test "$am_compiler_list" = ""; then
23321 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23323 am__universal=false
23326 for depmode in $am_compiler_list; do
23327 # Setup a source with many dependencies, because some compilers
23328 # like to wrap large dependency lists on column 80 (with \), and
23329 # we should not choose a depcomp mode which is confused by this.
23331 # We need to recreate these files for each test, as the compiler may
23332 # overwrite some of them when testing with obscure command lines.
23333 # This happens at least with the AIX C compiler.
23334 : > sub/conftest.c
23335 for i in 1 2 3 4 5 6; do
23336 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23337 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23338 # Solaris 8's {/usr,}/bin/sh.
23339 touch sub/conftst$i.h
23340 done
23341 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23343 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23344 # mode. It turns out that the SunPro C++ compiler does not properly
23345 # handle `-M -o', and we need to detect this. Also, some Intel
23346 # versions had trouble with output in subdirs
23347 am__obj=sub/conftest.${OBJEXT-o}
23348 am__minus_obj="-o $am__obj"
23349 case $depmode in
23350 gcc)
23351 # This depmode causes a compiler race in universal mode.
23352 test "$am__universal" = false || continue
23354 nosideeffect)
23355 # after this tag, mechanisms are not by side-effect, so they'll
23356 # only be used when explicitly requested
23357 if test "x$enable_dependency_tracking" = xyes; then
23358 continue
23359 else
23360 break
23363 msvisualcpp | msvcmsys)
23364 # This compiler won't grok `-c -o', but also, the minuso test has
23365 # not run yet. These depmodes are late enough in the game, and
23366 # so weak that their functioning should not be impacted.
23367 am__obj=conftest.${OBJEXT-o}
23368 am__minus_obj=
23370 none) break ;;
23371 esac
23372 if depmode=$depmode \
23373 source=sub/conftest.c object=$am__obj \
23374 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23375 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23376 >/dev/null 2>conftest.err &&
23377 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23378 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23379 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23380 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23381 # icc doesn't choke on unknown options, it will just issue warnings
23382 # or remarks (even with -Werror). So we grep stderr for any message
23383 # that says an option was ignored or not supported.
23384 # When given -MP, icc 7.0 and 7.1 complain thusly:
23385 # icc: Command line warning: ignoring option '-M'; no argument required
23386 # The diagnosis changed in icc 8.0:
23387 # icc: Command line remark: option '-MP' not supported
23388 if (grep 'ignoring option' conftest.err ||
23389 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23390 am_cv_GCJ_dependencies_compiler_type=$depmode
23391 break
23394 done
23396 cd ..
23397 rm -rf conftest.dir
23398 else
23399 am_cv_GCJ_dependencies_compiler_type=none
23403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
23404 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
23405 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
23408 test "x$enable_dependency_tracking" != xno \
23409 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
23410 am__fastdepGCJ_TRUE=
23411 am__fastdepGCJ_FALSE='#'
23412 else
23413 am__fastdepGCJ_TRUE='#'
23414 am__fastdepGCJ_FALSE=
23420 # Now remove it.
23421 rm -f gnu/classpath/Configuration.java
23423 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
23425 # The cast to long int works around a bug in the HP C Compiler
23426 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23427 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23428 # This bug is HP SR number 8606223364.
23429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
23430 $as_echo_n "checking size of void *... " >&6; }
23431 if test "${ac_cv_sizeof_void_p+set}" = set; then :
23432 $as_echo_n "(cached) " >&6
23433 else
23434 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
23436 else
23437 if test "$ac_cv_type_void_p" = yes; then
23438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23440 { as_fn_set_status 77
23441 as_fn_error "cannot compute sizeof (void *)
23442 See \`config.log' for more details." "$LINENO" 5; }; }
23443 else
23444 ac_cv_sizeof_void_p=0
23449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
23450 $as_echo "$ac_cv_sizeof_void_p" >&6; }
23454 cat >>confdefs.h <<_ACEOF
23455 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23456 _ACEOF
23460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23461 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23462 if test "${ac_cv_c_bigendian+set}" = set; then :
23463 $as_echo_n "(cached) " >&6
23464 else
23465 ac_cv_c_bigendian=unknown
23466 # See if we're dealing with a universal compiler.
23467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23468 /* end confdefs.h. */
23469 #ifndef __APPLE_CC__
23470 not a universal capable compiler
23471 #endif
23472 typedef int dummy;
23474 _ACEOF
23475 if ac_fn_c_try_compile "$LINENO"; then :
23477 # Check for potential -arch flags. It is not universal unless
23478 # there are at least two -arch flags with different values.
23479 ac_arch=
23480 ac_prev=
23481 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23482 if test -n "$ac_prev"; then
23483 case $ac_word in
23484 i?86 | x86_64 | ppc | ppc64)
23485 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23486 ac_arch=$ac_word
23487 else
23488 ac_cv_c_bigendian=universal
23489 break
23492 esac
23493 ac_prev=
23494 elif test "x$ac_word" = "x-arch"; then
23495 ac_prev=arch
23497 done
23499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23500 if test $ac_cv_c_bigendian = unknown; then
23501 # See if sys/param.h defines the BYTE_ORDER macro.
23502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23503 /* end confdefs.h. */
23504 #include <sys/types.h>
23505 #include <sys/param.h>
23508 main ()
23510 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23511 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23512 && LITTLE_ENDIAN)
23513 bogus endian macros
23514 #endif
23517 return 0;
23519 _ACEOF
23520 if ac_fn_c_try_compile "$LINENO"; then :
23521 # It does; now see whether it defined to BIG_ENDIAN or not.
23522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23523 /* end confdefs.h. */
23524 #include <sys/types.h>
23525 #include <sys/param.h>
23528 main ()
23530 #if BYTE_ORDER != BIG_ENDIAN
23531 not big endian
23532 #endif
23535 return 0;
23537 _ACEOF
23538 if ac_fn_c_try_compile "$LINENO"; then :
23539 ac_cv_c_bigendian=yes
23540 else
23541 ac_cv_c_bigendian=no
23543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23547 if test $ac_cv_c_bigendian = unknown; then
23548 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23550 /* end confdefs.h. */
23551 #include <limits.h>
23554 main ()
23556 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23557 bogus endian macros
23558 #endif
23561 return 0;
23563 _ACEOF
23564 if ac_fn_c_try_compile "$LINENO"; then :
23565 # It does; now see whether it defined to _BIG_ENDIAN or not.
23566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23567 /* end confdefs.h. */
23568 #include <limits.h>
23571 main ()
23573 #ifndef _BIG_ENDIAN
23574 not big endian
23575 #endif
23578 return 0;
23580 _ACEOF
23581 if ac_fn_c_try_compile "$LINENO"; then :
23582 ac_cv_c_bigendian=yes
23583 else
23584 ac_cv_c_bigendian=no
23586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23590 if test $ac_cv_c_bigendian = unknown; then
23591 # Compile a test program.
23592 if test "$cross_compiling" = yes; then :
23593 # Try to guess by grepping values from an object file.
23594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23595 /* end confdefs.h. */
23596 short int ascii_mm[] =
23597 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23598 short int ascii_ii[] =
23599 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23600 int use_ascii (int i) {
23601 return ascii_mm[i] + ascii_ii[i];
23603 short int ebcdic_ii[] =
23604 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23605 short int ebcdic_mm[] =
23606 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23607 int use_ebcdic (int i) {
23608 return ebcdic_mm[i] + ebcdic_ii[i];
23610 extern int foo;
23613 main ()
23615 return use_ascii (foo) == use_ebcdic (foo);
23617 return 0;
23619 _ACEOF
23620 if ac_fn_c_try_compile "$LINENO"; then :
23621 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23622 ac_cv_c_bigendian=yes
23624 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23625 if test "$ac_cv_c_bigendian" = unknown; then
23626 ac_cv_c_bigendian=no
23627 else
23628 # finding both strings is unlikely to happen, but who knows?
23629 ac_cv_c_bigendian=unknown
23633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23634 else
23635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23636 /* end confdefs.h. */
23637 $ac_includes_default
23639 main ()
23642 /* Are we little or big endian? From Harbison&Steele. */
23643 union
23645 long int l;
23646 char c[sizeof (long int)];
23647 } u;
23648 u.l = 1;
23649 return u.c[sizeof (long int) - 1] == 1;
23652 return 0;
23654 _ACEOF
23655 if ac_fn_c_try_run "$LINENO"; then :
23656 ac_cv_c_bigendian=no
23657 else
23658 ac_cv_c_bigendian=yes
23660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23661 conftest.$ac_objext conftest.beam conftest.$ac_ext
23666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23667 $as_echo "$ac_cv_c_bigendian" >&6; }
23668 case $ac_cv_c_bigendian in #(
23669 yes)
23670 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23671 ;; #(
23673 ;; #(
23674 universal)
23676 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23678 ;; #(
23680 as_fn_error "unknown endianness
23681 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23682 esac
23685 ZLIBS=
23686 SYS_ZLIBS=
23687 ZINCS=
23689 if test -z "$ZLIBSPEC"; then
23690 # Use zlib from the GCC tree.
23691 ZINCS='-I$(top_srcdir)/../zlib'
23692 ZLIBS=../zlib/libzgcj_convenience.la
23693 else
23694 # System's zlib.
23695 SYS_ZLIBS="$ZLIBSPEC"
23707 if test "$NATIVE" = yes; then
23708 NATIVE_TRUE=
23709 NATIVE_FALSE='#'
23710 else
23711 NATIVE_TRUE='#'
23712 NATIVE_FALSE=
23715 if test "$enable_shared" = yes; then
23716 ENABLE_SHARED_TRUE=
23717 ENABLE_SHARED_FALSE='#'
23718 else
23719 ENABLE_SHARED_TRUE='#'
23720 ENABLE_SHARED_FALSE=
23723 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
23724 NEEDS_DATA_START_TRUE=
23725 NEEDS_DATA_START_FALSE='#'
23726 else
23727 NEEDS_DATA_START_TRUE='#'
23728 NEEDS_DATA_START_FALSE=
23731 if test -z "${with_multisubdir}"; then
23732 INSTALL_BINARIES_TRUE=
23733 INSTALL_BINARIES_FALSE='#'
23734 else
23735 INSTALL_BINARIES_TRUE='#'
23736 INSTALL_BINARIES_FALSE=
23741 # Process the option "--enable-version-specific-runtime-libs"
23742 # Calculate toolexeclibdir
23743 case ${version_specific_libs} in
23744 yes)
23745 # Need the gcc compiler version to know where to install libraries
23746 # and header files if --enable-version-specific-runtime-libs option
23747 # is selected.
23748 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
23749 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
23750 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
23751 toolexeclibdir=$toolexecmainlibdir
23754 if test -n "$with_cross_host" &&
23755 test x"$with_cross_host" != x"no"; then
23756 # Install a library built with a cross compiler in tooldir, not libdir.
23757 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
23758 toolexecmainlibdir='$(toolexecdir)/lib'
23759 else
23760 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
23761 toolexecmainlibdir='$(libdir)'
23763 multi_os_directory=`$CC -print-multi-os-directory`
23764 case $multi_os_directory in
23765 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
23766 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
23767 esac
23769 esac
23774 # Determine gcj and libgcj version number.
23775 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
23776 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
23777 GCJVERSION=$gcjversion
23780 cat >>confdefs.h <<_ACEOF
23781 #define GCJVERSION "$GCJVERSION"
23782 _ACEOF
23785 # Determine where the standard .db file and GNU Classpath JNI
23786 # libraries are found.
23787 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
23788 multi_os_directory=`$CC -print-multi-os-directory`
23789 case $multi_os_directory in
23791 dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
23794 dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
23796 esac
23801 $as_echo "#define JV_VERSION \"1.5.0\"" >>confdefs.h
23804 $as_echo "#define JV_API_VERSION \"1.5\"" >>confdefs.h
23808 case "${with_gxx_include_dir}" in
23809 yes)
23810 as_fn_error "--with-gxx-include-dir=[dir] requires a directory" "$LINENO" 5
23812 no | "")
23813 case "${enable_version_specific_runtime_libs}" in
23814 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
23816 libstdcxx_incdir='c++/$(gcc_version)'
23817 gxx_include_dir='include/$(libstdcxx_incdir)'
23818 if test -n "$with_cross_host" &&
23819 test x"$with_cross_host" != x"no"; then
23820 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
23821 else
23822 gxx_include_dir='${prefix}/'"$gxx_include_dir"
23823 fi;;
23824 esac ;;
23825 *) gxx_include_dir=${with_gxx_include_dir} ;;
23826 esac
23831 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
23832 # On that system, sys/ioctl.h will not include sys/filio.h unless
23833 # BSD_COMP is defined; just including sys/filio.h is simpler.
23834 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
23835 # for now. If you change this, you also must update natFile.cc.
23836 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
23837 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
23838 sys/socket.h netinet/in.h arpa/inet.h netdb.h \
23839 pwd.h sys/config.h stdint.h langinfo.h locale.h \
23840 dirent.h sys/rw_lock.h magic.h ifaddrs.h
23841 do :
23842 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23843 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23844 eval as_val=\$$as_ac_Header
23845 if test "x$as_val" = x""yes; then :
23846 cat >>confdefs.h <<_ACEOF
23847 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23848 _ACEOF
23852 done
23855 # sys/socket.h is a prerequisite for net/if.h on Solaris.
23856 for ac_header in net/if.h
23857 do :
23858 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
23859 #ifdef HAVE_SYS_SOCKET_H
23860 #include <sys/socket.h>
23861 #endif
23864 if test "x$ac_cv_header_net_if_h" = x""yes; then :
23865 cat >>confdefs.h <<_ACEOF
23866 #define HAVE_NET_IF_H 1
23867 _ACEOF
23871 done
23874 for ac_header in inttypes.h
23875 do :
23876 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
23877 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
23878 cat >>confdefs.h <<_ACEOF
23879 #define HAVE_INTTYPES_H 1
23880 _ACEOF
23883 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
23886 $as_echo "#define JV_HAVE_INTTYPES_H 1" >>confdefs.h
23891 done
23894 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23895 if test "x$ac_cv_type_ssize_t" = x""yes; then :
23897 else
23899 cat >>confdefs.h <<_ACEOF
23900 #define ssize_t int
23901 _ACEOF
23905 ac_fn_c_check_type "$LINENO" "magic_t" "ac_cv_type_magic_t" "
23906 #ifdef HAVE_MAGIC_H
23907 #include <magic.h>
23908 #endif
23910 if test "x$ac_cv_type_magic_t" = x""yes; then :
23913 $as_echo "#define HAVE_MAGIC_T 1" >>confdefs.h
23918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5
23919 $as_echo_n "checking for in_addr_t... " >&6; }
23920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23921 /* end confdefs.h. */
23922 #include <sys/types.h>
23923 #if STDC_HEADERS
23924 #include <stdlib.h>
23925 #include <stddef.h>
23926 #endif
23927 #if HAVE_NETINET_IN_H
23928 #include <netinet/in.h>
23929 #endif
23931 main ()
23933 in_addr_t foo;
23935 return 0;
23937 _ACEOF
23938 if ac_fn_c_try_compile "$LINENO"; then :
23940 $as_echo "#define HAVE_IN_ADDR_T 1" >>confdefs.h
23942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23943 $as_echo "yes" >&6; }
23944 else
23945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23946 $as_echo "no" >&6; }
23948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ip_mreq is in netinet/in.h" >&5
23951 $as_echo_n "checking whether struct ip_mreq is in netinet/in.h... " >&6; }
23952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23953 /* end confdefs.h. */
23954 #include <netinet/in.h>
23956 main ()
23958 struct ip_mreq mreq;
23960 return 0;
23962 _ACEOF
23963 if ac_fn_c_try_compile "$LINENO"; then :
23965 $as_echo "#define HAVE_STRUCT_IP_MREQ 1" >>confdefs.h
23967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23968 $as_echo "yes" >&6; }
23969 else
23970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23971 $as_echo "no" >&6; }
23973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ipv6_mreq is in netinet/in.h" >&5
23976 $as_echo_n "checking whether struct ipv6_mreq is in netinet/in.h... " >&6; }
23977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23978 /* end confdefs.h. */
23979 #include <netinet/in.h>
23981 main ()
23983 struct ipv6_mreq mreq6;
23985 return 0;
23987 _ACEOF
23988 if ac_fn_c_try_compile "$LINENO"; then :
23990 $as_echo "#define HAVE_STRUCT_IPV6_MREQ 1" >>confdefs.h
23992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23993 $as_echo "yes" >&6; }
23994 else
23995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23996 $as_echo "no" >&6; }
23998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
24001 $as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
24002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24003 /* end confdefs.h. */
24004 #include <netinet/in.h>
24006 main ()
24008 struct sockaddr_in6 addr6;
24010 return 0;
24012 _ACEOF
24013 if ac_fn_c_try_compile "$LINENO"; then :
24015 $as_echo "#define HAVE_INET6 1" >>confdefs.h
24017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24018 $as_echo "yes" >&6; }
24019 else
24020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24021 $as_echo "no" >&6; }
24023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
24026 $as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
24027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24028 /* end confdefs.h. */
24029 #define _POSIX_PII_SOCKET
24030 #include <sys/types.h>
24031 #include <sys/socket.h>
24033 main ()
24035 socklen_t x = 5;
24037 return 0;
24039 _ACEOF
24040 if ac_fn_c_try_compile "$LINENO"; then :
24042 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
24044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24045 $as_echo "yes" >&6; }
24046 else
24047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24048 $as_echo "no" >&6; }
24050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
24053 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
24054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24055 /* end confdefs.h. */
24056 #include <time.h>
24058 main ()
24060 struct tm tim; tim.tm_gmtoff = 0;
24062 return 0;
24064 _ACEOF
24065 if ac_fn_c_try_compile "$LINENO"; then :
24067 $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
24069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24070 $as_echo "yes" >&6; }
24071 else
24072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24073 $as_echo "no" >&6; }
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
24075 $as_echo_n "checking for global timezone variable... " >&6; }
24076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24077 /* end confdefs.h. */
24078 #include <time.h>
24080 main ()
24082 void i(){long z2 = 2*timezone;}
24084 return 0;
24086 _ACEOF
24087 if ac_fn_c_try_compile "$LINENO"; then :
24089 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
24091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24092 $as_echo "yes" >&6; }
24093 else
24094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24095 $as_echo "no" >&6; }
24096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
24097 $as_echo_n "checking for global _timezone variable... " >&6; }
24098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24099 /* end confdefs.h. */
24100 #include <time.h>
24102 main ()
24104 long z2 = _timezone;
24106 return 0;
24108 _ACEOF
24109 if ac_fn_c_try_compile "$LINENO"; then :
24111 $as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24114 $as_echo "yes" >&6; }
24115 else
24116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24117 $as_echo "no" >&6; }
24119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24125 for ac_prog in perl
24127 # Extract the first word of "$ac_prog", so it can be a program name with args.
24128 set dummy $ac_prog; ac_word=$2
24129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24130 $as_echo_n "checking for $ac_word... " >&6; }
24131 if test "${ac_cv_prog_PERL+set}" = set; then :
24132 $as_echo_n "(cached) " >&6
24133 else
24134 if test -n "$PERL"; then
24135 ac_cv_prog_PERL="$PERL" # Let the user override the test.
24136 else
24137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24138 for as_dir in $PATH
24140 IFS=$as_save_IFS
24141 test -z "$as_dir" && as_dir=.
24142 for ac_exec_ext in '' $ac_executable_extensions; do
24143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24144 ac_cv_prog_PERL="$ac_prog"
24145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24146 break 2
24148 done
24149 done
24150 IFS=$as_save_IFS
24154 PERL=$ac_cv_prog_PERL
24155 if test -n "$PERL"; then
24156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
24157 $as_echo "$PERL" >&6; }
24158 else
24159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24160 $as_echo "no" >&6; }
24164 test -n "$PERL" && break
24165 done
24166 test -n "$PERL" || PERL="false"
24169 SYSDEP_SOURCES=
24170 SIGNAL_HANDLER_AUX=
24172 case "${host}" in
24173 i?86-*-linux*)
24174 SIGNAL_HANDLER=include/i386-signal.h
24176 *-*-solaris2*)
24177 SIGNAL_HANDLER=include/solaris-signal.h
24179 # ia64-*)
24180 # SYSDEP_SOURCES=sysdep/ia64.c
24181 # test -d sysdep || mkdir sysdep
24182 # ;;
24183 hppa*-*-linux*)
24184 SIGNAL_HANDLER=include/pa-signal.h
24186 hppa*-hp-hpux*)
24187 SIGNAL_HANDLER=include/hppa-signal.h
24189 ia64-*-linux*)
24190 SIGNAL_HANDLER=include/dwarf2-signal.h
24192 powerpc*-*-linux*)
24193 SIGNAL_HANDLER=include/powerpc-signal.h
24195 alpha*-*-linux*)
24196 SIGNAL_HANDLER=include/dwarf2-signal.h
24198 s390*-*-linux*)
24199 SIGNAL_HANDLER=include/s390-signal.h
24201 x86_64*-*-linux*)
24202 SIGNAL_HANDLER=include/x86_64-signal.h
24203 SIGNAL_HANDLER_AUX=include/i386-signal.h
24205 sparc*-*-linux*)
24206 SIGNAL_HANDLER=include/dwarf2-signal.h
24208 sh*-*-linux*)
24209 SIGNAL_HANDLER=include/sh-signal.h
24211 *mingw*)
24212 SIGNAL_HANDLER=include/win32-signal.h
24214 mips*-*-linux*)
24215 SIGNAL_HANDLER=include/mips-signal.h
24217 m68*-*-linux*)
24218 SIGNAL_HANDLER=include/dwarf2-signal.h
24220 powerpc*-*-darwin* | i?86-*-darwin[912]* | x86_64-*-darwin[912]*)
24221 SIGNAL_HANDLER=include/darwin-signal.h
24223 powerpc*-*-aix*)
24224 SIGNAL_HANDLER=include/aix-signal.h
24227 SIGNAL_HANDLER=include/default-signal.h
24229 esac
24231 # If we're using sjlj exceptions, forget what we just learned.
24232 if test "$enable_sjlj_exceptions" = yes; then
24233 SIGNAL_HANDLER=include/default-signal.h
24234 SIGNAL_HANDLER_AUX=
24239 if test -z "$SIGNAL_HANDLER_AUX"; then
24240 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
24243 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
24246 if test "${multilib}" = "yes"; then
24247 multilib_arg="--enable-multilib"
24248 else
24249 multilib_arg=
24252 # See if we support thread-local storage.
24255 # Check whether --enable-tls was given.
24256 if test "${enable_tls+set}" = set; then :
24257 enableval=$enable_tls;
24258 case "$enableval" in
24259 yes|no) ;;
24260 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
24261 esac
24263 else
24264 enable_tls=yes
24268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
24269 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
24270 if test "${gcc_cv_have_tls+set}" = set; then :
24271 $as_echo_n "(cached) " >&6
24272 else
24274 if test "$cross_compiling" = yes; then :
24275 if test x$gcc_no_link = xyes; then
24276 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24279 /* end confdefs.h. */
24280 __thread int a; int b; int main() { return a = b; }
24281 _ACEOF
24282 if ac_fn_c_try_link "$LINENO"; then :
24283 chktls_save_LDFLAGS="$LDFLAGS"
24284 case $host in
24285 *-*-linux*)
24286 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
24288 esac
24289 chktls_save_CFLAGS="$CFLAGS"
24290 CFLAGS="-fPIC $CFLAGS"
24291 if test x$gcc_no_link = xyes; then
24292 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24295 /* end confdefs.h. */
24296 int f() { return 0; }
24297 _ACEOF
24298 if ac_fn_c_try_link "$LINENO"; then :
24299 if test x$gcc_no_link = xyes; then
24300 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24303 /* end confdefs.h. */
24304 __thread int a; int b; int f() { return a = b; }
24305 _ACEOF
24306 if ac_fn_c_try_link "$LINENO"; then :
24307 gcc_cv_have_tls=yes
24308 else
24309 gcc_cv_have_tls=no
24311 rm -f core conftest.err conftest.$ac_objext \
24312 conftest$ac_exeext conftest.$ac_ext
24313 else
24314 gcc_cv_have_tls=yes
24316 rm -f core conftest.err conftest.$ac_objext \
24317 conftest$ac_exeext conftest.$ac_ext
24318 CFLAGS="$chktls_save_CFLAGS"
24319 LDFLAGS="$chktls_save_LDFLAGS"
24320 else
24321 gcc_cv_have_tls=no
24323 rm -f core conftest.err conftest.$ac_objext \
24324 conftest$ac_exeext conftest.$ac_ext
24327 else
24328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24329 /* end confdefs.h. */
24330 __thread int a; int b; int main() { return a = b; }
24331 _ACEOF
24332 if ac_fn_c_try_run "$LINENO"; then :
24333 chktls_save_LDFLAGS="$LDFLAGS"
24334 LDFLAGS="-static $LDFLAGS"
24335 if test x$gcc_no_link = xyes; then
24336 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24339 /* end confdefs.h. */
24340 int main() { return 0; }
24341 _ACEOF
24342 if ac_fn_c_try_link "$LINENO"; then :
24343 if test "$cross_compiling" = yes; then :
24344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24346 as_fn_error "cannot run test program while cross compiling
24347 See \`config.log' for more details." "$LINENO" 5; }
24348 else
24349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24350 /* end confdefs.h. */
24351 __thread int a; int b; int main() { return a = b; }
24352 _ACEOF
24353 if ac_fn_c_try_run "$LINENO"; then :
24354 gcc_cv_have_tls=yes
24355 else
24356 gcc_cv_have_tls=no
24358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24359 conftest.$ac_objext conftest.beam conftest.$ac_ext
24362 else
24363 gcc_cv_have_tls=yes
24365 rm -f core conftest.err conftest.$ac_objext \
24366 conftest$ac_exeext conftest.$ac_ext
24367 LDFLAGS="$chktls_save_LDFLAGS"
24368 if test $gcc_cv_have_tls = yes; then
24369 chktls_save_CFLAGS="$CFLAGS"
24370 thread_CFLAGS=failed
24371 for flag in '' '-pthread' '-lpthread'; do
24372 CFLAGS="$flag $chktls_save_CFLAGS"
24373 if test x$gcc_no_link = xyes; then
24374 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24377 /* end confdefs.h. */
24378 #include <pthread.h>
24379 void *g(void *d) { return NULL; }
24381 main ()
24383 pthread_t t; pthread_create(&t,NULL,g,NULL);
24385 return 0;
24387 _ACEOF
24388 if ac_fn_c_try_link "$LINENO"; then :
24389 thread_CFLAGS="$flag"
24391 rm -f core conftest.err conftest.$ac_objext \
24392 conftest$ac_exeext conftest.$ac_ext
24393 if test "X$thread_CFLAGS" != Xfailed; then
24394 break
24396 done
24397 CFLAGS="$chktls_save_CFLAGS"
24398 if test "X$thread_CFLAGS" != Xfailed; then
24399 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
24400 if test "$cross_compiling" = yes; then :
24401 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24403 as_fn_error "cannot run test program while cross compiling
24404 See \`config.log' for more details." "$LINENO" 5; }
24405 else
24406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24407 /* end confdefs.h. */
24408 #include <pthread.h>
24409 __thread int a;
24410 static int *volatile a_in_other_thread;
24411 static void *
24412 thread_func (void *arg)
24414 a_in_other_thread = &a;
24415 return (void *)0;
24418 main ()
24420 pthread_t thread;
24421 void *thread_retval;
24422 int *volatile a_in_main_thread;
24423 a_in_main_thread = &a;
24424 if (pthread_create (&thread, (pthread_attr_t *)0,
24425 thread_func, (void *)0))
24426 return 0;
24427 if (pthread_join (thread, &thread_retval))
24428 return 0;
24429 return (a_in_other_thread == a_in_main_thread);
24431 return 0;
24433 _ACEOF
24434 if ac_fn_c_try_run "$LINENO"; then :
24435 gcc_cv_have_tls=yes
24436 else
24437 gcc_cv_have_tls=no
24439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24440 conftest.$ac_objext conftest.beam conftest.$ac_ext
24443 CFLAGS="$chktls_save_CFLAGS"
24446 else
24447 gcc_cv_have_tls=no
24449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24450 conftest.$ac_objext conftest.beam conftest.$ac_ext
24454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
24455 $as_echo "$gcc_cv_have_tls" >&6; }
24456 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
24458 $as_echo "#define HAVE_TLS 1" >>confdefs.h
24462 # For _Unwind_GetIPInfo.
24465 # Check whether --with-system-libunwind was given.
24466 if test "${with_system_libunwind+set}" = set; then :
24467 withval=$with_system_libunwind;
24470 # If system-libunwind was not specifically set, pick a default setting.
24471 if test x$with_system_libunwind = x; then
24472 case ${target} in
24473 ia64-*-hpux*) with_system_libunwind=yes ;;
24474 *) with_system_libunwind=no ;;
24475 esac
24477 # Based on system-libunwind and target, do we have ipinfo?
24478 if test x$with_system_libunwind = xyes; then
24479 case ${target} in
24480 ia64-*-*) have_unwind_getipinfo=no ;;
24481 *) have_unwind_getipinfo=yes ;;
24482 esac
24483 else
24484 # Darwin before version 9 does not have _Unwind_GetIPInfo.
24486 case ${target} in
24487 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
24488 *) have_unwind_getipinfo=yes ;;
24489 esac
24493 if test x$have_unwind_getipinfo = xyes; then
24495 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
24500 # See if linker supports anonymous version scripts.
24501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous version scripts" >&5
24502 $as_echo_n "checking whether ld supports anonymous version scripts... " >&6; }
24503 if test "${libjava_cv_anon_version_script+set}" = set; then :
24504 $as_echo_n "(cached) " >&6
24505 else
24506 save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
24507 libjava_cv_anon_version_script=no
24508 CFLAGS="$CFLAGS -fPIC";
24509 LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
24510 echo '{ global: globalsymb*; local: *; };' > conftest.map
24511 if test x$gcc_no_link = xyes; then
24512 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24515 /* end confdefs.h. */
24516 void globalsymbol (void) {} void localsymbol (void) {}
24518 main ()
24522 return 0;
24524 _ACEOF
24525 if ac_fn_c_try_link "$LINENO"; then :
24526 libjava_cv_anon_version_script=gnu
24528 rm -f core conftest.err conftest.$ac_objext \
24529 conftest$ac_exeext conftest.$ac_ext
24530 if test x$libjava_cv_anon_version_script = xno; then
24531 case "$target_os" in
24532 solaris2*)
24533 LDFLAGS="$save_LDFLAGS"
24534 LDFLAGS="$LDFLAGS -shared -Wl,-M,conftest.map"
24535 # Sun ld doesn't understand wildcards here.
24536 echo '{ global: globalsymbol; local: *; };' > conftest.map
24537 if test x$gcc_no_link = xyes; then
24538 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24541 /* end confdefs.h. */
24542 void globalsymbol (void) {} void localsymbol (void) {}
24544 main ()
24548 return 0;
24550 _ACEOF
24551 if ac_fn_c_try_link "$LINENO"; then :
24552 libjava_cv_anon_version_script=sun
24554 rm -f core conftest.err conftest.$ac_objext \
24555 conftest$ac_exeext conftest.$ac_ext
24557 esac
24559 CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
24562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_anon_version_script" >&5
24563 $as_echo "$libjava_cv_anon_version_script" >&6; }
24564 if test "$libjava_cv_anon_version_script" != no; then
24565 ANONVERSCRIPT_TRUE=
24566 ANONVERSCRIPT_FALSE='#'
24567 else
24568 ANONVERSCRIPT_TRUE='#'
24569 ANONVERSCRIPT_FALSE=
24572 if test "$libjava_cv_anon_version_script" = gnu; then
24573 ANONVERSCRIPT_GNU_TRUE=
24574 ANONVERSCRIPT_GNU_FALSE='#'
24575 else
24576 ANONVERSCRIPT_GNU_TRUE='#'
24577 ANONVERSCRIPT_GNU_FALSE=
24580 if test "$libjava_cv_anon_version_script" = sun; then
24581 ANONVERSCRIPT_SUN_TRUE=
24582 ANONVERSCRIPT_SUN_FALSE='#'
24583 else
24584 ANONVERSCRIPT_SUN_TRUE='#'
24585 ANONVERSCRIPT_SUN_FALSE=
24589 # Check if linker supports static linking on a per library basis
24590 LD_START_STATIC_SPEC=
24591 LD_FINISH_STATIC_SPEC=
24592 if $LD --help 2>&1 | grep -- -call_shared >/dev/null 2>&1; then
24593 if $LD --help 2>&1 | grep -- -non_shared >/dev/null 2>&1; then
24594 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
24595 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
24601 here=`${PWDCMD-pwd}`
24604 # We get this from the environment.
24608 # Check whether --with-python-dir was given.
24609 if test "${with_python_dir+set}" = set; then :
24610 withval=$with_python_dir; with_python_dir=$withval
24611 else
24612 with_python_dir=""
24616 if test "x${with_python_dir}" = "x"
24617 then
24618 # Needed for installing Python modules during make install.
24619 python_mod_dir="\${prefix}/share/python"
24620 # Needed for substituting into aot-compile*
24621 python_mod_dir_expanded="${expanded_prefix}/share/python"
24622 else
24623 python_mod_dir="\${prefix}${with_python_dir}"
24624 python_mod_dir_expanded="${expanded_prefix}${with_python_dir}"
24626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Python modules dir: ${python_mod_dir_expanded}" >&5
24627 $as_echo "Python modules dir: ${python_mod_dir_expanded}" >&6; };
24631 # needed for aot-compile-rpm
24632 MAKE=`which make`
24635 # Check whether --enable-aot-compile-rpm was given.
24636 if test "${enable_aot_compile_rpm+set}" = set; then :
24637 enableval=$enable_aot_compile_rpm; case "${enableval}" in
24638 yes) AOT_RPM_ENABLED=yes ;;
24639 no) AOT_RPM_ENABLED=no ;;
24640 *) as_fn_error "Unknown argument to enable/disable aot-compile-rpm" "$LINENO" 5 ;;
24641 esac
24642 else
24643 AOT_RPM_ENABLED=no
24647 if test "x${AOT_RPM_ENABLED}" = xyes; then
24648 INSTALL_AOT_RPM_TRUE=
24649 INSTALL_AOT_RPM_FALSE='#'
24650 else
24651 INSTALL_AOT_RPM_TRUE='#'
24652 INSTALL_AOT_RPM_FALSE=
24656 # Check whether --enable-java-home was given.
24657 if test "${enable_java_home+set}" = set; then :
24658 enableval=$enable_java_home; case "${enableval}" in
24659 yes) JAVA_HOME_ENABLED=yes ;;
24660 no) JAVA_HOME_ENABLED=no ;;
24661 *) as_fn_error "Unknown argument to enable/disable java-home" "$LINENO" 5 ;;
24662 esac
24663 else
24664 JAVA_HOME_ENABLED=no
24668 if test "x${JAVA_HOME_ENABLED}" = xyes; then
24669 CREATE_JAVA_HOME_TRUE=
24670 CREATE_JAVA_HOME_FALSE='#'
24671 else
24672 CREATE_JAVA_HOME_TRUE='#'
24673 CREATE_JAVA_HOME_FALSE=
24677 # Only do these checks if java-home above is enabled.
24678 if test "x${JAVA_HOME_ENABLED}" = xyes
24679 then
24682 # Check whether --with-gcc-suffix was given.
24683 if test "${with_gcc_suffix+set}" = set; then :
24684 withval=$with_gcc_suffix; gcc_suffix=$withval
24685 else
24686 gcc_suffix=""
24689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCC suffix: ${gcc_suffix}" >&5
24690 $as_echo "GCC suffix: ${gcc_suffix}" >&6; }
24694 # Check whether --with-arch-directory was given.
24695 if test "${with_arch_directory+set}" = set; then :
24696 withval=$with_arch_directory; host_cpu=$withval
24697 else
24698 host_cpu=""
24703 # Check whether --with-os-directory was given.
24704 if test "${with_os_directory+set}" = set; then :
24705 withval=$with_os_directory; host_os=$withval
24706 else
24707 host_os=""
24712 # Check whether --with-origin-name was given.
24713 if test "${with_origin_name+set}" = set; then :
24714 withval=$with_origin_name; origin_name=$withval
24715 else
24716 origin_name=gcj${gcc_suffix}
24719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JPackage origin name: ${origin_name}" >&5
24720 $as_echo "JPackage origin name: ${origin_name}" >&6; }
24723 # Check whether --with-arch-suffix was given.
24724 if test "${with_arch_suffix+set}" = set; then :
24725 withval=$with_arch_suffix; arch_suffix=$withval
24726 else
24727 arch_suffix=""
24730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch suffix: ${arch_suffix}" >&5
24731 $as_echo "arch suffix: ${arch_suffix}" >&6; }
24734 # Check whether --with-jvm-root-dir was given.
24735 if test "${with_jvm_root_dir+set}" = set; then :
24736 withval=$with_jvm_root_dir; jvm_root_dir=$withval
24737 else
24738 jvm_root_dir="\${prefix}/lib/jvm"
24741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM root installation directory: ${jvm_root_dir}" >&5
24742 $as_echo "JVM root installation directory: ${jvm_root_dir}" >&6; }
24745 # Check whether --with-jvm-jar-dir was given.
24746 if test "${with_jvm_jar_dir+set}" = set; then :
24747 withval=$with_jvm_jar_dir; jvm_jar_dir=$withval
24748 else
24749 jvm_jar_dir=\${prefix}/lib/jvm-exports
24752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JAR root installation directory: ${jvm_jar_dir}" >&5
24753 $as_echo "JAR root installation directory: ${jvm_jar_dir}" >&6; }
24755 JAVA_VERSION=1.5.0
24756 BUILD_VERSION=0
24759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Java version: ${JAVA_VERSION}" >&5
24760 $as_echo "Java version: ${JAVA_VERSION}" >&6; }
24762 jre_dir=jre
24763 jre_lnk=jre-${JAVA_VERSION}-${origin_name}
24764 sdk_lnk=java-${JAVA_VERSION}-${origin_name}
24766 JVM_ROOT_DIR=${jvm_root_dir}
24768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5
24769 $as_echo "JVM ROOT directory: ${JVM_ROOT_DIR}" >&6; }
24771 JVM_JAR_ROOT_DIR=${jvm_jar_dir}
24773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5
24774 $as_echo "JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6; }
24776 JVM_JAR_DIR=${jvm_jar_dir}
24778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5
24779 $as_echo "JVM JAR directory: ${JVM_JAR_DIR}" >&6; }
24781 JRE_DIR=${jre_dir}
24784 JRE_LNK=${jre_lnk}
24787 SDK_LNK=${sdk_lnk}
24790 SDK_BIN_DIR=${jvm_root_dir}/bin
24792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK tools directory: ${SDK_BIN_DIR}" >&5
24793 $as_echo "SDK tools directory: ${SDK_BIN_DIR}" >&6; }
24795 SDK_LIB_DIR=${jvm_root_dir}/lib
24797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK jar directory: ${SDK_LIB_DIR}" >&5
24798 $as_echo "SDK jar directory: ${SDK_LIB_DIR}" >&6; }
24800 SDK_INCLUDE_DIR=${jvm_root_dir}/include
24802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5
24803 $as_echo "SDK include directory: ${SDK_INCLUDE_DIR}" >&6; }
24805 JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin
24807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE tools directory: ${JRE_BIN_DIR}" >&5
24808 $as_echo "JRE tools directory: ${JRE_BIN_DIR}" >&6; }
24810 JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib
24812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE lib directory: ${JRE_LIB_DIR}" >&5
24813 $as_echo "JRE lib directory: ${JRE_LIB_DIR}" >&6; }
24815 # Find gcj prefix using gcj found in PATH.
24816 gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"`
24818 # Where do the gcj binaries live?
24819 # For jhbuild based builds, they all live in a sibling of bin called
24820 # gcj-bin. Check for gcj-bin first, and use bin otherwise.
24821 GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi`
24823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5
24824 $as_echo "GCJ tools directory: ${GCJ_BIN_DIR}" >&6; }
24826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host is ${host}" >&5
24827 $as_echo "host is ${host}" >&6; }
24828 if test "x${host_cpu}" = "x"
24829 then
24830 case ${host} in
24831 *-mingw* | *-cygwin*)
24832 host_cpu=x86;;
24833 i486-* | i586-* | i686-*)
24834 host_cpu=i386;;
24835 x86_64-*)
24836 host_cpu=amd64;;
24838 host_cpu=${host_cpu};;
24839 esac
24841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch directory: ${host_cpu}" >&5
24842 $as_echo "arch directory: ${host_cpu}" >&6; }
24843 CPU=${host_cpu}
24846 if test "x${host_os}" = "x"
24847 then
24848 case ${host} in
24849 *-mingw* | *-cygwin*)
24850 host_os=win32;;
24851 *-linux*)
24852 host_os=linux;;
24854 host_os=${host_os};;
24855 esac
24857 echo os directory: ${host_os}
24858 OS=${host_os}
24861 # make an expanded $libdir, for substituting into
24862 # scripts (and other non-Makefile things).
24863 LIBDIR=$libdir
24864 if test "x${exec_prefix}" = "xNONE"
24865 then
24866 lib_exec_prefix=$expanded_prefix
24867 else
24868 lib_exec_prefix=$exec_prefix
24870 LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"`
24874 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"
24877 if test ${multilib} = yes; then
24878 multilib_arg="--enable-multilib"
24879 else
24880 multilib_arg=
24883 ac_config_files="$ac_config_files scripts/jar"
24885 cat >confcache <<\_ACEOF
24886 # This file is a shell script that caches the results of configure
24887 # tests run on this system so they can be shared between configure
24888 # scripts and configure runs, see configure's option --config-cache.
24889 # It is not useful on other systems. If it contains results you don't
24890 # want to keep, you may remove or edit it.
24892 # config.status only pays attention to the cache file if you give it
24893 # the --recheck option to rerun configure.
24895 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24896 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24897 # following values.
24899 _ACEOF
24901 # The following way of writing the cache mishandles newlines in values,
24902 # but we know of no workaround that is simple, portable, and efficient.
24903 # So, we kill variables containing newlines.
24904 # Ultrix sh set writes to stderr and can't be redirected directly,
24905 # and sets the high bit in the cache file unless we assign to the vars.
24907 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24908 eval ac_val=\$$ac_var
24909 case $ac_val in #(
24910 *${as_nl}*)
24911 case $ac_var in #(
24912 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24913 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24914 esac
24915 case $ac_var in #(
24916 _ | IFS | as_nl) ;; #(
24917 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24918 *) { eval $ac_var=; unset $ac_var;} ;;
24919 esac ;;
24920 esac
24921 done
24923 (set) 2>&1 |
24924 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24925 *${as_nl}ac_space=\ *)
24926 # `set' does not quote correctly, so add quotes: double-quote
24927 # substitution turns \\\\ into \\, and sed turns \\ into \.
24928 sed -n \
24929 "s/'/'\\\\''/g;
24930 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24931 ;; #(
24933 # `set' quotes correctly as required by POSIX, so do not add quotes.
24934 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24936 esac |
24937 sort
24939 sed '
24940 /^ac_cv_env_/b end
24941 t clear
24942 :clear
24943 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24944 t end
24945 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24946 :end' >>confcache
24947 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24948 if test -w "$cache_file"; then
24949 test "x$cache_file" != "x/dev/null" &&
24950 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24951 $as_echo "$as_me: updating cache $cache_file" >&6;}
24952 cat confcache >$cache_file
24953 else
24954 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24955 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24958 rm -f confcache
24960 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24961 # Let make expand exec_prefix.
24962 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24964 DEFS=-DHAVE_CONFIG_H
24966 ac_libobjs=
24967 ac_ltlibobjs=
24968 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24969 # 1. Remove the extension, and $U if already installed.
24970 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24971 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24972 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24973 # will be set to the directory where LIBOBJS objects are built.
24974 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24975 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24976 done
24977 LIBOBJS=$ac_libobjs
24979 LTLIBOBJS=$ac_ltlibobjs
24982 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
24983 as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
24984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24986 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
24987 as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
24988 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24990 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24991 as_fn_error "conditional \"AMDEP\" was never defined.
24992 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24994 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24995 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24996 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24998 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24999 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
25000 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25002 if test -n "$EXEEXT"; then
25003 am__EXEEXT_TRUE=
25004 am__EXEEXT_FALSE='#'
25005 else
25006 am__EXEEXT_TRUE='#'
25007 am__EXEEXT_FALSE=
25010 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25011 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
25012 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25014 if test -z "${BUILD_SUBLIBS_TRUE}" && test -z "${BUILD_SUBLIBS_FALSE}"; then
25015 as_fn_error "conditional \"BUILD_SUBLIBS\" was never defined.
25016 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25018 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
25019 as_fn_error "conditional \"XLIB_AWT\" was never defined.
25020 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25022 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
25023 as_fn_error "conditional \"X_AWT\" was never defined.
25024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25026 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25027 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25030 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25031 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25034 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
25035 as_fn_error "conditional \"TESTSUBDIR\" was never defined.
25036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25038 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
25039 as_fn_error "conditional \"BUILD_ECJ1\" was never defined.
25040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25042 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
25043 as_fn_error "conditional \"INSTALL_ECJ_JAR\" was never defined.
25044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25046 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
25047 as_fn_error "conditional \"JAVA_HOME_SET\" was never defined.
25048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25050 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
25051 as_fn_error "conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
25052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25054 if test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE}" && test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE}"; then
25055 as_fn_error "conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
25056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25058 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
25059 as_fn_error "conditional \"INTERPRETER\" was never defined.
25060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25062 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
25063 as_fn_error "conditional \"USING_WIN32_PLATFORM\" was never defined.
25064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25066 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
25067 as_fn_error "conditional \"USING_POSIX_PLATFORM\" was never defined.
25068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25070 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
25071 as_fn_error "conditional \"USING_DARWIN_CRT\" was never defined.
25072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25074 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
25075 as_fn_error "conditional \"USING_BOEHMGC\" was never defined.
25076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25078 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
25079 as_fn_error "conditional \"USING_NOGC\" was never defined.
25080 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25082 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
25083 as_fn_error "conditional \"USING_POSIX_THREADS\" was never defined.
25084 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25086 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
25087 as_fn_error "conditional \"USING_WIN32_THREADS\" was never defined.
25088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25090 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
25091 as_fn_error "conditional \"USING_NO_THREADS\" was never defined.
25092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25094 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
25095 as_fn_error "conditional \"USE_LIBGCJ_BC\" was never defined.
25096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25098 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
25099 as_fn_error "conditional \"USING_GCC\" was never defined.
25100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25102 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25103 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25107 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
25108 as_fn_error "conditional \"NATIVE\" was never defined.
25109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25111 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
25112 as_fn_error "conditional \"ENABLE_SHARED\" was never defined.
25113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25115 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
25116 as_fn_error "conditional \"NEEDS_DATA_START\" was never defined.
25117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25119 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
25120 as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
25121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25123 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
25124 as_fn_error "conditional \"ANONVERSCRIPT\" was never defined.
25125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25127 if test -z "${ANONVERSCRIPT_GNU_TRUE}" && test -z "${ANONVERSCRIPT_GNU_FALSE}"; then
25128 as_fn_error "conditional \"ANONVERSCRIPT_GNU\" was never defined.
25129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25131 if test -z "${ANONVERSCRIPT_SUN_TRUE}" && test -z "${ANONVERSCRIPT_SUN_FALSE}"; then
25132 as_fn_error "conditional \"ANONVERSCRIPT_SUN\" was never defined.
25133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25135 if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then
25136 as_fn_error "conditional \"INSTALL_AOT_RPM\" was never defined.
25137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25139 if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then
25140 as_fn_error "conditional \"CREATE_JAVA_HOME\" was never defined.
25141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25144 : ${CONFIG_STATUS=./config.status}
25145 ac_write_fail=0
25146 ac_clean_files_save=$ac_clean_files
25147 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25148 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25149 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25150 as_write_fail=0
25151 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25152 #! $SHELL
25153 # Generated by $as_me.
25154 # Run this file to recreate the current configuration.
25155 # Compiler output produced by configure, useful for debugging
25156 # configure, is in config.log if it exists.
25158 debug=false
25159 ac_cs_recheck=false
25160 ac_cs_silent=false
25162 SHELL=\${CONFIG_SHELL-$SHELL}
25163 export SHELL
25164 _ASEOF
25165 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25166 ## -------------------- ##
25167 ## M4sh Initialization. ##
25168 ## -------------------- ##
25170 # Be more Bourne compatible
25171 DUALCASE=1; export DUALCASE # for MKS sh
25172 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25173 emulate sh
25174 NULLCMD=:
25175 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25176 # is contrary to our usage. Disable this feature.
25177 alias -g '${1+"$@"}'='"$@"'
25178 setopt NO_GLOB_SUBST
25179 else
25180 case `(set -o) 2>/dev/null` in #(
25181 *posix*) :
25182 set -o posix ;; #(
25183 *) :
25185 esac
25189 as_nl='
25191 export as_nl
25192 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25193 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25194 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25195 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25196 # Prefer a ksh shell builtin over an external printf program on Solaris,
25197 # but without wasting forks for bash or zsh.
25198 if test -z "$BASH_VERSION$ZSH_VERSION" \
25199 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25200 as_echo='print -r --'
25201 as_echo_n='print -rn --'
25202 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25203 as_echo='printf %s\n'
25204 as_echo_n='printf %s'
25205 else
25206 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25207 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25208 as_echo_n='/usr/ucb/echo -n'
25209 else
25210 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25211 as_echo_n_body='eval
25212 arg=$1;
25213 case $arg in #(
25214 *"$as_nl"*)
25215 expr "X$arg" : "X\\(.*\\)$as_nl";
25216 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25217 esac;
25218 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25220 export as_echo_n_body
25221 as_echo_n='sh -c $as_echo_n_body as_echo'
25223 export as_echo_body
25224 as_echo='sh -c $as_echo_body as_echo'
25227 # The user is always right.
25228 if test "${PATH_SEPARATOR+set}" != set; then
25229 PATH_SEPARATOR=:
25230 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25231 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25232 PATH_SEPARATOR=';'
25237 # IFS
25238 # We need space, tab and new line, in precisely that order. Quoting is
25239 # there to prevent editors from complaining about space-tab.
25240 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25241 # splitting by setting IFS to empty value.)
25242 IFS=" "" $as_nl"
25244 # Find who we are. Look in the path if we contain no directory separator.
25245 case $0 in #((
25246 *[\\/]* ) as_myself=$0 ;;
25247 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25248 for as_dir in $PATH
25250 IFS=$as_save_IFS
25251 test -z "$as_dir" && as_dir=.
25252 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25253 done
25254 IFS=$as_save_IFS
25257 esac
25258 # We did not find ourselves, most probably we were run as `sh COMMAND'
25259 # in which case we are not to be found in the path.
25260 if test "x$as_myself" = x; then
25261 as_myself=$0
25263 if test ! -f "$as_myself"; then
25264 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25265 exit 1
25268 # Unset variables that we do not need and which cause bugs (e.g. in
25269 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25270 # suppresses any "Segmentation fault" message there. '((' could
25271 # trigger a bug in pdksh 5.2.14.
25272 for as_var in BASH_ENV ENV MAIL MAILPATH
25273 do eval test x\${$as_var+set} = xset \
25274 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25275 done
25276 PS1='$ '
25277 PS2='> '
25278 PS4='+ '
25280 # NLS nuisances.
25281 LC_ALL=C
25282 export LC_ALL
25283 LANGUAGE=C
25284 export LANGUAGE
25286 # CDPATH.
25287 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25290 # as_fn_error ERROR [LINENO LOG_FD]
25291 # ---------------------------------
25292 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25293 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25294 # script with status $?, using 1 if that was 0.
25295 as_fn_error ()
25297 as_status=$?; test $as_status -eq 0 && as_status=1
25298 if test "$3"; then
25299 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25300 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25302 $as_echo "$as_me: error: $1" >&2
25303 as_fn_exit $as_status
25304 } # as_fn_error
25307 # as_fn_set_status STATUS
25308 # -----------------------
25309 # Set $? to STATUS, without forking.
25310 as_fn_set_status ()
25312 return $1
25313 } # as_fn_set_status
25315 # as_fn_exit STATUS
25316 # -----------------
25317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25318 as_fn_exit ()
25320 set +e
25321 as_fn_set_status $1
25322 exit $1
25323 } # as_fn_exit
25325 # as_fn_unset VAR
25326 # ---------------
25327 # Portably unset VAR.
25328 as_fn_unset ()
25330 { eval $1=; unset $1;}
25332 as_unset=as_fn_unset
25333 # as_fn_append VAR VALUE
25334 # ----------------------
25335 # Append the text in VALUE to the end of the definition contained in VAR. Take
25336 # advantage of any shell optimizations that allow amortized linear growth over
25337 # repeated appends, instead of the typical quadratic growth present in naive
25338 # implementations.
25339 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25340 eval 'as_fn_append ()
25342 eval $1+=\$2
25344 else
25345 as_fn_append ()
25347 eval $1=\$$1\$2
25349 fi # as_fn_append
25351 # as_fn_arith ARG...
25352 # ------------------
25353 # Perform arithmetic evaluation on the ARGs, and store the result in the
25354 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25355 # must be portable across $(()) and expr.
25356 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25357 eval 'as_fn_arith ()
25359 as_val=$(( $* ))
25361 else
25362 as_fn_arith ()
25364 as_val=`expr "$@" || test $? -eq 1`
25366 fi # as_fn_arith
25369 if expr a : '\(a\)' >/dev/null 2>&1 &&
25370 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25371 as_expr=expr
25372 else
25373 as_expr=false
25376 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25377 as_basename=basename
25378 else
25379 as_basename=false
25382 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25383 as_dirname=dirname
25384 else
25385 as_dirname=false
25388 as_me=`$as_basename -- "$0" ||
25389 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25390 X"$0" : 'X\(//\)$' \| \
25391 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25392 $as_echo X/"$0" |
25393 sed '/^.*\/\([^/][^/]*\)\/*$/{
25394 s//\1/
25397 /^X\/\(\/\/\)$/{
25398 s//\1/
25401 /^X\/\(\/\).*/{
25402 s//\1/
25405 s/.*/./; q'`
25407 # Avoid depending upon Character Ranges.
25408 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25409 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25410 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25411 as_cr_digits='0123456789'
25412 as_cr_alnum=$as_cr_Letters$as_cr_digits
25414 ECHO_C= ECHO_N= ECHO_T=
25415 case `echo -n x` in #(((((
25416 -n*)
25417 case `echo 'xy\c'` in
25418 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25419 xy) ECHO_C='\c';;
25420 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25421 ECHO_T=' ';;
25422 esac;;
25424 ECHO_N='-n';;
25425 esac
25427 rm -f conf$$ conf$$.exe conf$$.file
25428 if test -d conf$$.dir; then
25429 rm -f conf$$.dir/conf$$.file
25430 else
25431 rm -f conf$$.dir
25432 mkdir conf$$.dir 2>/dev/null
25434 if (echo >conf$$.file) 2>/dev/null; then
25435 if ln -s conf$$.file conf$$ 2>/dev/null; then
25436 as_ln_s='ln -s'
25437 # ... but there are two gotchas:
25438 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25439 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25440 # In both cases, we have to default to `cp -p'.
25441 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25442 as_ln_s='cp -p'
25443 elif ln conf$$.file conf$$ 2>/dev/null; then
25444 as_ln_s=ln
25445 else
25446 as_ln_s='cp -p'
25448 else
25449 as_ln_s='cp -p'
25451 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25452 rmdir conf$$.dir 2>/dev/null
25455 # as_fn_mkdir_p
25456 # -------------
25457 # Create "$as_dir" as a directory, including parents if necessary.
25458 as_fn_mkdir_p ()
25461 case $as_dir in #(
25462 -*) as_dir=./$as_dir;;
25463 esac
25464 test -d "$as_dir" || eval $as_mkdir_p || {
25465 as_dirs=
25466 while :; do
25467 case $as_dir in #(
25468 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25469 *) as_qdir=$as_dir;;
25470 esac
25471 as_dirs="'$as_qdir' $as_dirs"
25472 as_dir=`$as_dirname -- "$as_dir" ||
25473 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25474 X"$as_dir" : 'X\(//\)[^/]' \| \
25475 X"$as_dir" : 'X\(//\)$' \| \
25476 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25477 $as_echo X"$as_dir" |
25478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25479 s//\1/
25482 /^X\(\/\/\)[^/].*/{
25483 s//\1/
25486 /^X\(\/\/\)$/{
25487 s//\1/
25490 /^X\(\/\).*/{
25491 s//\1/
25494 s/.*/./; q'`
25495 test -d "$as_dir" && break
25496 done
25497 test -z "$as_dirs" || eval "mkdir $as_dirs"
25498 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25501 } # as_fn_mkdir_p
25502 if mkdir -p . 2>/dev/null; then
25503 as_mkdir_p='mkdir -p "$as_dir"'
25504 else
25505 test -d ./-p && rmdir ./-p
25506 as_mkdir_p=false
25509 if test -x / >/dev/null 2>&1; then
25510 as_test_x='test -x'
25511 else
25512 if ls -dL / >/dev/null 2>&1; then
25513 as_ls_L_option=L
25514 else
25515 as_ls_L_option=
25517 as_test_x='
25518 eval sh -c '\''
25519 if test -d "$1"; then
25520 test -d "$1/.";
25521 else
25522 case $1 in #(
25523 -*)set "./$1";;
25524 esac;
25525 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25526 ???[sx]*):;;*)false;;esac;fi
25527 '\'' sh
25530 as_executable_p=$as_test_x
25532 # Sed expression to map a string onto a valid CPP name.
25533 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25535 # Sed expression to map a string onto a valid variable name.
25536 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25539 exec 6>&1
25540 ## ----------------------------------- ##
25541 ## Main body of $CONFIG_STATUS script. ##
25542 ## ----------------------------------- ##
25543 _ASEOF
25544 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25547 # Save the log message, to keep $0 and so on meaningful, and to
25548 # report actual input values of CONFIG_FILES etc. instead of their
25549 # values after options handling.
25550 ac_log="
25551 This file was extended by libjava $as_me version-unused, which was
25552 generated by GNU Autoconf 2.64. Invocation command line was
25554 CONFIG_FILES = $CONFIG_FILES
25555 CONFIG_HEADERS = $CONFIG_HEADERS
25556 CONFIG_LINKS = $CONFIG_LINKS
25557 CONFIG_COMMANDS = $CONFIG_COMMANDS
25558 $ $0 $@
25560 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25563 _ACEOF
25565 case $ac_config_files in *"
25566 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25567 esac
25569 case $ac_config_headers in *"
25570 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25571 esac
25574 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25575 # Files that config.status was made for.
25576 config_files="$ac_config_files"
25577 config_headers="$ac_config_headers"
25578 config_links="$ac_config_links"
25579 config_commands="$ac_config_commands"
25581 _ACEOF
25583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25584 ac_cs_usage="\
25585 \`$as_me' instantiates files and other configuration actions
25586 from templates according to the current configuration. Unless the files
25587 and actions are specified as TAGs, all are instantiated by default.
25589 Usage: $0 [OPTION]... [TAG]...
25591 -h, --help print this help, then exit
25592 -V, --version print version number and configuration settings, then exit
25593 -q, --quiet, --silent
25594 do not print progress messages
25595 -d, --debug don't remove temporary files
25596 --recheck update $as_me by reconfiguring in the same conditions
25597 --file=FILE[:TEMPLATE]
25598 instantiate the configuration file FILE
25599 --header=FILE[:TEMPLATE]
25600 instantiate the configuration header FILE
25602 Configuration files:
25603 $config_files
25605 Configuration headers:
25606 $config_headers
25608 Configuration links:
25609 $config_links
25611 Configuration commands:
25612 $config_commands
25614 Report bugs to the package provider."
25616 _ACEOF
25617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25618 ac_cs_version="\\
25619 libjava config.status version-unused
25620 configured by $0, generated by GNU Autoconf 2.64,
25621 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25623 Copyright (C) 2009 Free Software Foundation, Inc.
25624 This config.status script is free software; the Free Software Foundation
25625 gives unlimited permission to copy, distribute and modify it."
25627 ac_pwd='$ac_pwd'
25628 srcdir='$srcdir'
25629 INSTALL='$INSTALL'
25630 MKDIR_P='$MKDIR_P'
25631 AWK='$AWK'
25632 test -n "\$AWK" || AWK=awk
25633 _ACEOF
25635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25636 # The default lists apply if the user does not specify any file.
25637 ac_need_defaults=:
25638 while test $# != 0
25640 case $1 in
25641 --*=*)
25642 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25643 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25644 ac_shift=:
25647 ac_option=$1
25648 ac_optarg=$2
25649 ac_shift=shift
25651 esac
25653 case $ac_option in
25654 # Handling of the options.
25655 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25656 ac_cs_recheck=: ;;
25657 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25658 $as_echo "$ac_cs_version"; exit ;;
25659 --debug | --debu | --deb | --de | --d | -d )
25660 debug=: ;;
25661 --file | --fil | --fi | --f )
25662 $ac_shift
25663 case $ac_optarg in
25664 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25665 esac
25666 as_fn_append CONFIG_FILES " '$ac_optarg'"
25667 ac_need_defaults=false;;
25668 --header | --heade | --head | --hea )
25669 $ac_shift
25670 case $ac_optarg in
25671 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25672 esac
25673 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25674 ac_need_defaults=false;;
25675 --he | --h)
25676 # Conflict between --help and --header
25677 as_fn_error "ambiguous option: \`$1'
25678 Try \`$0 --help' for more information.";;
25679 --help | --hel | -h )
25680 $as_echo "$ac_cs_usage"; exit ;;
25681 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25682 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25683 ac_cs_silent=: ;;
25685 # This is an error.
25686 -*) as_fn_error "unrecognized option: \`$1'
25687 Try \`$0 --help' for more information." ;;
25689 *) as_fn_append ac_config_targets " $1"
25690 ac_need_defaults=false ;;
25692 esac
25693 shift
25694 done
25696 ac_configure_extra_args=
25698 if $ac_cs_silent; then
25699 exec 6>/dev/null
25700 ac_configure_extra_args="$ac_configure_extra_args --silent"
25703 _ACEOF
25704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25705 if \$ac_cs_recheck; then
25706 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25707 shift
25708 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25709 CONFIG_SHELL='$SHELL'
25710 export CONFIG_SHELL
25711 exec "\$@"
25714 _ACEOF
25715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25716 exec 5>>config.log
25718 echo
25719 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25720 ## Running $as_me. ##
25721 _ASBOX
25722 $as_echo "$ac_log"
25723 } >&5
25725 _ACEOF
25726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25728 # INIT-COMMANDS
25731 srcdir="$srcdir"
25732 host="$host"
25733 target="$target"
25734 with_multisubdir="$with_multisubdir"
25735 with_multisrctop="$with_multisrctop"
25736 with_target_subdir="$with_target_subdir"
25737 ac_configure_args="${multilib_arg} ${ac_configure_args}"
25738 multi_basedir="$multi_basedir"
25739 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
25740 CC="$CC"
25741 CXX="$CXX"
25742 GFORTRAN="$GFORTRAN"
25743 GCJ="$GCJ"
25744 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25747 # The HP-UX ksh and POSIX shell print the target directory to stdout
25748 # if CDPATH is set.
25749 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25751 sed_quote_subst='$sed_quote_subst'
25752 double_quote_subst='$double_quote_subst'
25753 delay_variable_subst='$delay_variable_subst'
25754 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25755 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25756 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25757 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25758 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25759 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25760 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25761 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25762 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25763 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25764 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25765 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25766 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25767 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25768 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25769 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25770 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25771 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25772 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25773 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25774 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25775 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25776 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25777 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25778 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25779 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25780 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25781 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25782 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25783 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25784 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25785 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25786 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25787 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25788 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25789 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25790 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25791 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25792 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25793 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25794 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25795 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25796 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25797 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25798 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25799 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25800 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25801 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25802 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"`'
25803 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25804 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25805 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25806 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25807 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25808 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25809 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25810 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25811 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25812 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25813 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25814 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25815 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25816 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25817 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25818 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25819 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25820 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25821 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25822 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25823 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25824 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25825 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25826 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25827 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25828 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25829 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25830 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25831 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25832 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25833 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25834 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
25835 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25836 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25837 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25838 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25839 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25840 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25841 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25842 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25843 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
25844 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25845 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25846 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25847 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25848 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25849 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25850 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25851 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25852 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25853 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25854 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25855 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25856 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25857 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25858 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25859 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25860 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25861 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25862 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25863 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25864 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25865 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25866 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25867 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25868 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25869 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25870 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25871 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25872 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25873 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25874 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25875 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25876 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25877 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25878 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25879 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25880 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25881 LD_GCJ='`$ECHO "$LD_GCJ" | $SED "$delay_single_quote_subst"`'
25882 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25883 reload_flag_GCJ='`$ECHO "$reload_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25884 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25885 reload_cmds_GCJ='`$ECHO "$reload_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25886 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25887 old_archive_cmds_GCJ='`$ECHO "$old_archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25888 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25889 compiler_GCJ='`$ECHO "$compiler_GCJ" | $SED "$delay_single_quote_subst"`'
25890 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25891 GCC_GCJ='`$ECHO "$GCC_GCJ" | $SED "$delay_single_quote_subst"`'
25892 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25893 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "$lt_prog_compiler_no_builtin_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25894 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25895 lt_prog_compiler_wl_GCJ='`$ECHO "$lt_prog_compiler_wl_GCJ" | $SED "$delay_single_quote_subst"`'
25896 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25897 lt_prog_compiler_pic_GCJ='`$ECHO "$lt_prog_compiler_pic_GCJ" | $SED "$delay_single_quote_subst"`'
25898 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25899 lt_prog_compiler_static_GCJ='`$ECHO "$lt_prog_compiler_static_GCJ" | $SED "$delay_single_quote_subst"`'
25900 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25901 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "$lt_cv_prog_compiler_c_o_GCJ" | $SED "$delay_single_quote_subst"`'
25902 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25903 archive_cmds_need_lc_GCJ='`$ECHO "$archive_cmds_need_lc_GCJ" | $SED "$delay_single_quote_subst"`'
25904 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25905 enable_shared_with_static_runtimes_GCJ='`$ECHO "$enable_shared_with_static_runtimes_GCJ" | $SED "$delay_single_quote_subst"`'
25906 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25907 export_dynamic_flag_spec_GCJ='`$ECHO "$export_dynamic_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25908 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25909 whole_archive_flag_spec_GCJ='`$ECHO "$whole_archive_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25910 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25911 compiler_needs_object_GCJ='`$ECHO "$compiler_needs_object_GCJ" | $SED "$delay_single_quote_subst"`'
25912 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25913 old_archive_from_new_cmds_GCJ='`$ECHO "$old_archive_from_new_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25914 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25915 old_archive_from_expsyms_cmds_GCJ='`$ECHO "$old_archive_from_expsyms_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25916 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25917 archive_cmds_GCJ='`$ECHO "$archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25918 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25919 archive_expsym_cmds_GCJ='`$ECHO "$archive_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25920 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25921 module_cmds_GCJ='`$ECHO "$module_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25922 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25923 module_expsym_cmds_GCJ='`$ECHO "$module_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25924 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25925 with_gnu_ld_GCJ='`$ECHO "$with_gnu_ld_GCJ" | $SED "$delay_single_quote_subst"`'
25926 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25927 allow_undefined_flag_GCJ='`$ECHO "$allow_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25928 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25929 no_undefined_flag_GCJ='`$ECHO "$no_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25930 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25931 hardcode_libdir_flag_spec_GCJ='`$ECHO "$hardcode_libdir_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25932 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
25933 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "$hardcode_libdir_flag_spec_ld_GCJ" | $SED "$delay_single_quote_subst"`'
25934 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25935 hardcode_libdir_separator_GCJ='`$ECHO "$hardcode_libdir_separator_GCJ" | $SED "$delay_single_quote_subst"`'
25936 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25937 hardcode_direct_GCJ='`$ECHO "$hardcode_direct_GCJ" | $SED "$delay_single_quote_subst"`'
25938 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25939 hardcode_direct_absolute_GCJ='`$ECHO "$hardcode_direct_absolute_GCJ" | $SED "$delay_single_quote_subst"`'
25940 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25941 hardcode_minus_L_GCJ='`$ECHO "$hardcode_minus_L_GCJ" | $SED "$delay_single_quote_subst"`'
25942 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25943 hardcode_shlibpath_var_GCJ='`$ECHO "$hardcode_shlibpath_var_GCJ" | $SED "$delay_single_quote_subst"`'
25944 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25945 hardcode_automatic_GCJ='`$ECHO "$hardcode_automatic_GCJ" | $SED "$delay_single_quote_subst"`'
25946 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25947 inherit_rpath_GCJ='`$ECHO "$inherit_rpath_GCJ" | $SED "$delay_single_quote_subst"`'
25948 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25949 link_all_deplibs_GCJ='`$ECHO "$link_all_deplibs_GCJ" | $SED "$delay_single_quote_subst"`'
25950 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
25951 fix_srcfile_path_GCJ='`$ECHO "$fix_srcfile_path_GCJ" | $SED "$delay_single_quote_subst"`'
25952 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
25953 always_export_symbols_GCJ='`$ECHO "$always_export_symbols_GCJ" | $SED "$delay_single_quote_subst"`'
25954 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25955 export_symbols_cmds_GCJ='`$ECHO "$export_symbols_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25956 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25957 exclude_expsyms_GCJ='`$ECHO "$exclude_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
25958 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25959 include_expsyms_GCJ='`$ECHO "$include_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
25960 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25961 prelink_cmds_GCJ='`$ECHO "$prelink_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25962 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
25963 file_list_spec_GCJ='`$ECHO "$file_list_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25964 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
25965 hardcode_action_GCJ='`$ECHO "$hardcode_action_GCJ" | $SED "$delay_single_quote_subst"`'
25966 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
25967 compiler_lib_search_dirs_GCJ='`$ECHO "$compiler_lib_search_dirs_GCJ" | $SED "$delay_single_quote_subst"`'
25968 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25969 predep_objects_GCJ='`$ECHO "$predep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
25970 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25971 postdep_objects_GCJ='`$ECHO "$postdep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
25972 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
25973 predeps_GCJ='`$ECHO "$predeps_GCJ" | $SED "$delay_single_quote_subst"`'
25974 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
25975 postdeps_GCJ='`$ECHO "$postdeps_GCJ" | $SED "$delay_single_quote_subst"`'
25976 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
25977 compiler_lib_search_path_GCJ='`$ECHO "$compiler_lib_search_path_GCJ" | $SED "$delay_single_quote_subst"`'
25979 LTCC='$LTCC'
25980 LTCFLAGS='$LTCFLAGS'
25981 compiler='$compiler_DEFAULT'
25983 # A function that is used when there is no print builtin or printf.
25984 func_fallback_echo ()
25986 eval 'cat <<_LTECHO_EOF
25988 _LTECHO_EOF'
25991 # Quote evaled strings.
25992 for var in SHELL \
25993 ECHO \
25994 SED \
25995 GREP \
25996 EGREP \
25997 FGREP \
25998 LD \
25999 NM \
26000 LN_S \
26001 lt_SP2NL \
26002 lt_NL2SP \
26003 reload_flag \
26004 OBJDUMP \
26005 deplibs_check_method \
26006 file_magic_cmd \
26007 AR \
26008 AR_FLAGS \
26009 STRIP \
26010 RANLIB \
26011 CC \
26012 CFLAGS \
26013 compiler \
26014 lt_cv_sys_global_symbol_pipe \
26015 lt_cv_sys_global_symbol_to_cdecl \
26016 lt_cv_sys_global_symbol_to_c_name_address \
26017 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26018 lt_prog_compiler_no_builtin_flag \
26019 lt_prog_compiler_wl \
26020 lt_prog_compiler_pic \
26021 lt_prog_compiler_static \
26022 lt_cv_prog_compiler_c_o \
26023 need_locks \
26024 DSYMUTIL \
26025 NMEDIT \
26026 LIPO \
26027 OTOOL \
26028 OTOOL64 \
26029 shrext_cmds \
26030 export_dynamic_flag_spec \
26031 whole_archive_flag_spec \
26032 compiler_needs_object \
26033 with_gnu_ld \
26034 allow_undefined_flag \
26035 no_undefined_flag \
26036 hardcode_libdir_flag_spec \
26037 hardcode_libdir_flag_spec_ld \
26038 hardcode_libdir_separator \
26039 fix_srcfile_path \
26040 exclude_expsyms \
26041 include_expsyms \
26042 file_list_spec \
26043 variables_saved_for_relink \
26044 libname_spec \
26045 library_names_spec \
26046 soname_spec \
26047 install_override_mode \
26048 finish_eval \
26049 old_striplib \
26050 striplib \
26051 compiler_lib_search_dirs \
26052 predep_objects \
26053 postdep_objects \
26054 predeps \
26055 postdeps \
26056 compiler_lib_search_path \
26057 LD_CXX \
26058 LD_GCJ \
26059 reload_flag_CXX \
26060 reload_flag_GCJ \
26061 compiler_CXX \
26062 compiler_GCJ \
26063 lt_prog_compiler_no_builtin_flag_CXX \
26064 lt_prog_compiler_no_builtin_flag_GCJ \
26065 lt_prog_compiler_wl_CXX \
26066 lt_prog_compiler_wl_GCJ \
26067 lt_prog_compiler_pic_CXX \
26068 lt_prog_compiler_pic_GCJ \
26069 lt_prog_compiler_static_CXX \
26070 lt_prog_compiler_static_GCJ \
26071 lt_cv_prog_compiler_c_o_CXX \
26072 lt_cv_prog_compiler_c_o_GCJ \
26073 export_dynamic_flag_spec_CXX \
26074 export_dynamic_flag_spec_GCJ \
26075 whole_archive_flag_spec_CXX \
26076 whole_archive_flag_spec_GCJ \
26077 compiler_needs_object_CXX \
26078 compiler_needs_object_GCJ \
26079 with_gnu_ld_CXX \
26080 with_gnu_ld_GCJ \
26081 allow_undefined_flag_CXX \
26082 allow_undefined_flag_GCJ \
26083 no_undefined_flag_CXX \
26084 no_undefined_flag_GCJ \
26085 hardcode_libdir_flag_spec_CXX \
26086 hardcode_libdir_flag_spec_GCJ \
26087 hardcode_libdir_flag_spec_ld_CXX \
26088 hardcode_libdir_flag_spec_ld_GCJ \
26089 hardcode_libdir_separator_CXX \
26090 hardcode_libdir_separator_GCJ \
26091 fix_srcfile_path_CXX \
26092 fix_srcfile_path_GCJ \
26093 exclude_expsyms_CXX \
26094 exclude_expsyms_GCJ \
26095 include_expsyms_CXX \
26096 include_expsyms_GCJ \
26097 file_list_spec_CXX \
26098 file_list_spec_GCJ \
26099 compiler_lib_search_dirs_CXX \
26100 compiler_lib_search_dirs_GCJ \
26101 predep_objects_CXX \
26102 predep_objects_GCJ \
26103 postdep_objects_CXX \
26104 postdep_objects_GCJ \
26105 predeps_CXX \
26106 predeps_GCJ \
26107 postdeps_CXX \
26108 postdeps_GCJ \
26109 compiler_lib_search_path_CXX \
26110 compiler_lib_search_path_GCJ; do
26111 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26112 *[\\\\\\\`\\"\\\$]*)
26113 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26116 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26118 esac
26119 done
26121 # Double-quote double-evaled strings.
26122 for var in reload_cmds \
26123 old_postinstall_cmds \
26124 old_postuninstall_cmds \
26125 old_archive_cmds \
26126 extract_expsyms_cmds \
26127 old_archive_from_new_cmds \
26128 old_archive_from_expsyms_cmds \
26129 archive_cmds \
26130 archive_expsym_cmds \
26131 module_cmds \
26132 module_expsym_cmds \
26133 export_symbols_cmds \
26134 prelink_cmds \
26135 postinstall_cmds \
26136 postuninstall_cmds \
26137 finish_cmds \
26138 sys_lib_search_path_spec \
26139 sys_lib_dlsearch_path_spec \
26140 reload_cmds_CXX \
26141 reload_cmds_GCJ \
26142 old_archive_cmds_CXX \
26143 old_archive_cmds_GCJ \
26144 old_archive_from_new_cmds_CXX \
26145 old_archive_from_new_cmds_GCJ \
26146 old_archive_from_expsyms_cmds_CXX \
26147 old_archive_from_expsyms_cmds_GCJ \
26148 archive_cmds_CXX \
26149 archive_cmds_GCJ \
26150 archive_expsym_cmds_CXX \
26151 archive_expsym_cmds_GCJ \
26152 module_cmds_CXX \
26153 module_cmds_GCJ \
26154 module_expsym_cmds_CXX \
26155 module_expsym_cmds_GCJ \
26156 export_symbols_cmds_CXX \
26157 export_symbols_cmds_GCJ \
26158 prelink_cmds_CXX \
26159 prelink_cmds_GCJ; do
26160 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26161 *[\\\\\\\`\\"\\\$]*)
26162 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26165 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26167 esac
26168 done
26170 ac_aux_dir='$ac_aux_dir'
26171 xsi_shell='$xsi_shell'
26172 lt_shell_append='$lt_shell_append'
26174 # See if we are running on zsh, and set the options which allow our
26175 # commands through without removal of \ escapes INIT.
26176 if test -n "\${ZSH_VERSION+set}" ; then
26177 setopt NO_GLOB_SUBST
26181 PACKAGE='$PACKAGE'
26182 VERSION='$VERSION'
26183 TIMESTAMP='$TIMESTAMP'
26184 RM='$RM'
26185 ofile='$ofile'
26194 _ACEOF
26196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26198 # Handling of arguments.
26199 for ac_config_target in $ac_config_targets
26201 case $ac_config_target in
26202 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
26203 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26204 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
26205 "gcj/libgcj-config.h") CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
26206 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26207 "include/platform.h") CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
26208 "java/io/natFile.cc") CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
26209 "java/lang/natConcreteProcess.cc") CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
26210 "java/net/natVMInetAddress.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
26211 "java/net/natVMNetworkInterface.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
26212 "gnu/java/net/natPlainSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
26213 "gnu/java/net/natPlainDatagramSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
26214 "gnu/java/nio/natVMPipe.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
26215 "gnu/java/nio/natVMSelector.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
26216 "gnu/java/nio/channels/natFileChannelImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
26217 "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" ;;
26218 "include/java-gc.h") CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
26219 "include/java-threads.h") CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
26220 "sysdep/locks.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
26221 "sysdep/backtrace.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
26222 "sysdep/descriptor.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
26223 "include/java-signal.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
26224 "include/java-signal-aux.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
26225 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26226 "libgcj.pc") CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
26227 "libgcj.spec") CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
26228 "libgcj-test.spec") CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
26229 "gcj/Makefile") CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
26230 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26231 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
26232 "contrib/aotcompile.py") CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;;
26233 "contrib/aot-compile") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;;
26234 "contrib/aot-compile-rpm") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;;
26235 "contrib/generate-cacerts.pl") CONFIG_FILES="$CONFIG_FILES contrib/generate-cacerts.pl" ;;
26236 "contrib/rebuild-gcj-db") CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;;
26237 "scripts/jar") CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
26239 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26240 esac
26241 done
26244 # If the user did not use the arguments to specify the items to instantiate,
26245 # then the envvar interface is used. Set only those that are not.
26246 # We use the long form for the default assignment because of an extremely
26247 # bizarre bug on SunOS 4.1.3.
26248 if $ac_need_defaults; then
26249 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26250 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26251 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26252 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26255 # Have a temporary directory for convenience. Make it in the build tree
26256 # simply because there is no reason against having it here, and in addition,
26257 # creating and moving files from /tmp can sometimes cause problems.
26258 # Hook for its removal unless debugging.
26259 # Note that there is a small window in which the directory will not be cleaned:
26260 # after its creation but before its name has been assigned to `$tmp'.
26261 $debug ||
26263 tmp=
26264 trap 'exit_status=$?
26265 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26267 trap 'as_fn_exit 1' 1 2 13 15
26269 # Create a (secure) tmp directory for tmp files.
26272 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26273 test -n "$tmp" && test -d "$tmp"
26274 } ||
26276 tmp=./conf$$-$RANDOM
26277 (umask 077 && mkdir "$tmp")
26278 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26280 # Set up the scripts for CONFIG_FILES section.
26281 # No need to generate them if there are no CONFIG_FILES.
26282 # This happens for instance with `./config.status config.h'.
26283 if test -n "$CONFIG_FILES"; then
26286 ac_cr=`echo X | tr X '\015'`
26287 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26288 # But we know of no other shell where ac_cr would be empty at this
26289 # point, so we can use a bashism as a fallback.
26290 if test "x$ac_cr" = x; then
26291 eval ac_cr=\$\'\\r\'
26293 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26294 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26295 ac_cs_awk_cr='\r'
26296 else
26297 ac_cs_awk_cr=$ac_cr
26300 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26301 _ACEOF
26305 echo "cat >conf$$subs.awk <<_ACEOF" &&
26306 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26307 echo "_ACEOF"
26308 } >conf$$subs.sh ||
26309 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26310 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26311 ac_delim='%!_!# '
26312 for ac_last_try in false false false false false :; do
26313 . ./conf$$subs.sh ||
26314 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26316 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26317 if test $ac_delim_n = $ac_delim_num; then
26318 break
26319 elif $ac_last_try; then
26320 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26321 else
26322 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26324 done
26325 rm -f conf$$subs.sh
26327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26328 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26329 _ACEOF
26330 sed -n '
26332 s/^/S["/; s/!.*/"]=/
26335 s/^[^!]*!//
26336 :repl
26337 t repl
26338 s/'"$ac_delim"'$//
26339 t delim
26342 s/\(.\{148\}\).*/\1/
26343 t more1
26344 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26347 b repl
26348 :more1
26349 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26352 s/.\{148\}//
26353 t nl
26354 :delim
26356 s/\(.\{148\}\).*/\1/
26357 t more2
26358 s/["\\]/\\&/g; s/^/"/; s/$/"/
26361 :more2
26362 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26365 s/.\{148\}//
26366 t delim
26367 ' <conf$$subs.awk | sed '
26368 /^[^""]/{
26370 s/\n//
26372 ' >>$CONFIG_STATUS || ac_write_fail=1
26373 rm -f conf$$subs.awk
26374 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26375 _ACAWK
26376 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26377 for (key in S) S_is_set[key] = 1
26378 FS = "\a"
26382 line = $ 0
26383 nfields = split(line, field, "@")
26384 substed = 0
26385 len = length(field[1])
26386 for (i = 2; i < nfields; i++) {
26387 key = field[i]
26388 keylen = length(key)
26389 if (S_is_set[key]) {
26390 value = S[key]
26391 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26392 len += length(value) + length(field[++i])
26393 substed = 1
26394 } else
26395 len += 1 + keylen
26398 print line
26401 _ACAWK
26402 _ACEOF
26403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26404 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26405 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26406 else
26408 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26409 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26410 _ACEOF
26412 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26413 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26414 # trailing colons and then remove the whole line if VPATH becomes empty
26415 # (actually we leave an empty line to preserve line numbers).
26416 if test "x$srcdir" = x.; then
26417 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26418 s/:*\$(srcdir):*/:/
26419 s/:*\${srcdir}:*/:/
26420 s/:*@srcdir@:*/:/
26421 s/^\([^=]*=[ ]*\):*/\1/
26422 s/:*$//
26423 s/^[^=]*=[ ]*$//
26427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26428 fi # test -n "$CONFIG_FILES"
26430 # Set up the scripts for CONFIG_HEADERS section.
26431 # No need to generate them if there are no CONFIG_HEADERS.
26432 # This happens for instance with `./config.status Makefile'.
26433 if test -n "$CONFIG_HEADERS"; then
26434 cat >"$tmp/defines.awk" <<\_ACAWK ||
26435 BEGIN {
26436 _ACEOF
26438 # Transform confdefs.h into an awk script `defines.awk', embedded as
26439 # here-document in config.status, that substitutes the proper values into
26440 # config.h.in to produce config.h.
26442 # Create a delimiter string that does not exist in confdefs.h, to ease
26443 # handling of long lines.
26444 ac_delim='%!_!# '
26445 for ac_last_try in false false :; do
26446 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26447 if test -z "$ac_t"; then
26448 break
26449 elif $ac_last_try; then
26450 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26451 else
26452 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26454 done
26456 # For the awk script, D is an array of macro values keyed by name,
26457 # likewise P contains macro parameters if any. Preserve backslash
26458 # newline sequences.
26460 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26461 sed -n '
26462 s/.\{148\}/&'"$ac_delim"'/g
26463 t rset
26464 :rset
26465 s/^[ ]*#[ ]*define[ ][ ]*/ /
26466 t def
26468 :def
26469 s/\\$//
26470 t bsnl
26471 s/["\\]/\\&/g
26472 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26473 D["\1"]=" \3"/p
26474 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26476 :bsnl
26477 s/["\\]/\\&/g
26478 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26479 D["\1"]=" \3\\\\\\n"\\/p
26480 t cont
26481 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26482 t cont
26484 :cont
26486 s/.\{148\}/&'"$ac_delim"'/g
26487 t clear
26488 :clear
26489 s/\\$//
26490 t bsnlc
26491 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26493 :bsnlc
26494 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26495 b cont
26496 ' <confdefs.h | sed '
26497 s/'"$ac_delim"'/"\\\
26498 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26501 for (key in D) D_is_set[key] = 1
26502 FS = "\a"
26504 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26505 line = \$ 0
26506 split(line, arg, " ")
26507 if (arg[1] == "#") {
26508 defundef = arg[2]
26509 mac1 = arg[3]
26510 } else {
26511 defundef = substr(arg[1], 2)
26512 mac1 = arg[2]
26514 split(mac1, mac2, "(") #)
26515 macro = mac2[1]
26516 prefix = substr(line, 1, index(line, defundef) - 1)
26517 if (D_is_set[macro]) {
26518 # Preserve the white space surrounding the "#".
26519 print prefix "define", macro P[macro] D[macro]
26520 next
26521 } else {
26522 # Replace #undef with comments. This is necessary, for example,
26523 # in the case of _POSIX_SOURCE, which is predefined and required
26524 # on some systems where configure will not decide to define it.
26525 if (defundef == "undef") {
26526 print "/*", prefix defundef, macro, "*/"
26527 next
26531 { print }
26532 _ACAWK
26533 _ACEOF
26534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26535 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26536 fi # test -n "$CONFIG_HEADERS"
26539 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
26540 shift
26541 for ac_tag
26543 case $ac_tag in
26544 :[FHLC]) ac_mode=$ac_tag; continue;;
26545 esac
26546 case $ac_mode$ac_tag in
26547 :[FHL]*:*);;
26548 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26549 :[FH]-) ac_tag=-:-;;
26550 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26551 esac
26552 ac_save_IFS=$IFS
26553 IFS=:
26554 set x $ac_tag
26555 IFS=$ac_save_IFS
26556 shift
26557 ac_file=$1
26558 shift
26560 case $ac_mode in
26561 :L) ac_source=$1;;
26562 :[FH])
26563 ac_file_inputs=
26564 for ac_f
26566 case $ac_f in
26567 -) ac_f="$tmp/stdin";;
26568 *) # Look for the file first in the build tree, then in the source tree
26569 # (if the path is not absolute). The absolute path cannot be DOS-style,
26570 # because $ac_f cannot contain `:'.
26571 test -f "$ac_f" ||
26572 case $ac_f in
26573 [\\/$]*) false;;
26574 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26575 esac ||
26576 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26577 esac
26578 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26579 as_fn_append ac_file_inputs " '$ac_f'"
26580 done
26582 # Let's still pretend it is `configure' which instantiates (i.e., don't
26583 # use $as_me), people would be surprised to read:
26584 # /* config.h. Generated by config.status. */
26585 configure_input='Generated from '`
26586 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26587 `' by configure.'
26588 if test x"$ac_file" != x-; then
26589 configure_input="$ac_file. $configure_input"
26590 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26591 $as_echo "$as_me: creating $ac_file" >&6;}
26593 # Neutralize special characters interpreted by sed in replacement strings.
26594 case $configure_input in #(
26595 *\&* | *\|* | *\\* )
26596 ac_sed_conf_input=`$as_echo "$configure_input" |
26597 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26598 *) ac_sed_conf_input=$configure_input;;
26599 esac
26601 case $ac_tag in
26602 *:-:* | *:-) cat >"$tmp/stdin" \
26603 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26604 esac
26606 esac
26608 ac_dir=`$as_dirname -- "$ac_file" ||
26609 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26610 X"$ac_file" : 'X\(//\)[^/]' \| \
26611 X"$ac_file" : 'X\(//\)$' \| \
26612 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26613 $as_echo X"$ac_file" |
26614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26615 s//\1/
26618 /^X\(\/\/\)[^/].*/{
26619 s//\1/
26622 /^X\(\/\/\)$/{
26623 s//\1/
26626 /^X\(\/\).*/{
26627 s//\1/
26630 s/.*/./; q'`
26631 as_dir="$ac_dir"; as_fn_mkdir_p
26632 ac_builddir=.
26634 case "$ac_dir" in
26635 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26637 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26638 # A ".." for each directory in $ac_dir_suffix.
26639 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26640 case $ac_top_builddir_sub in
26641 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26642 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26643 esac ;;
26644 esac
26645 ac_abs_top_builddir=$ac_pwd
26646 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26647 # for backward compatibility:
26648 ac_top_builddir=$ac_top_build_prefix
26650 case $srcdir in
26651 .) # We are building in place.
26652 ac_srcdir=.
26653 ac_top_srcdir=$ac_top_builddir_sub
26654 ac_abs_top_srcdir=$ac_pwd ;;
26655 [\\/]* | ?:[\\/]* ) # Absolute name.
26656 ac_srcdir=$srcdir$ac_dir_suffix;
26657 ac_top_srcdir=$srcdir
26658 ac_abs_top_srcdir=$srcdir ;;
26659 *) # Relative name.
26660 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26661 ac_top_srcdir=$ac_top_build_prefix$srcdir
26662 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26663 esac
26664 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26667 case $ac_mode in
26670 # CONFIG_FILE
26673 case $INSTALL in
26674 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26675 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26676 esac
26677 ac_MKDIR_P=$MKDIR_P
26678 case $MKDIR_P in
26679 [\\/$]* | ?:[\\/]* ) ;;
26680 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26681 esac
26682 _ACEOF
26684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26685 # If the template does not know about datarootdir, expand it.
26686 # FIXME: This hack should be removed a few years after 2.60.
26687 ac_datarootdir_hack=; ac_datarootdir_seen=
26688 ac_sed_dataroot='
26689 /datarootdir/ {
26693 /@datadir@/p
26694 /@docdir@/p
26695 /@infodir@/p
26696 /@localedir@/p
26697 /@mandir@/p'
26698 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26699 *datarootdir*) ac_datarootdir_seen=yes;;
26700 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26702 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26703 _ACEOF
26704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26705 ac_datarootdir_hack='
26706 s&@datadir@&$datadir&g
26707 s&@docdir@&$docdir&g
26708 s&@infodir@&$infodir&g
26709 s&@localedir@&$localedir&g
26710 s&@mandir@&$mandir&g
26711 s&\\\${datarootdir}&$datarootdir&g' ;;
26712 esac
26713 _ACEOF
26715 # Neutralize VPATH when `$srcdir' = `.'.
26716 # Shell code in configure.ac might set extrasub.
26717 # FIXME: do we really want to maintain this feature?
26718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26719 ac_sed_extra="$ac_vpsub
26720 $extrasub
26721 _ACEOF
26722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26724 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26725 s|@configure_input@|$ac_sed_conf_input|;t t
26726 s&@top_builddir@&$ac_top_builddir_sub&;t t
26727 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26728 s&@srcdir@&$ac_srcdir&;t t
26729 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26730 s&@top_srcdir@&$ac_top_srcdir&;t t
26731 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26732 s&@builddir@&$ac_builddir&;t t
26733 s&@abs_builddir@&$ac_abs_builddir&;t t
26734 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26735 s&@INSTALL@&$ac_INSTALL&;t t
26736 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26737 $ac_datarootdir_hack
26739 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26740 || as_fn_error "could not create $ac_file" "$LINENO" 5
26742 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26743 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26744 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26746 which seems to be undefined. Please make sure it is defined." >&5
26747 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26748 which seems to be undefined. Please make sure it is defined." >&2;}
26750 rm -f "$tmp/stdin"
26751 case $ac_file in
26752 -) cat "$tmp/out" && rm -f "$tmp/out";;
26753 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26754 esac \
26755 || as_fn_error "could not create $ac_file" "$LINENO" 5
26759 # CONFIG_HEADER
26761 if test x"$ac_file" != x-; then
26763 $as_echo "/* $configure_input */" \
26764 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26765 } >"$tmp/config.h" \
26766 || as_fn_error "could not create $ac_file" "$LINENO" 5
26767 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26768 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26769 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26770 else
26771 rm -f "$ac_file"
26772 mv "$tmp/config.h" "$ac_file" \
26773 || as_fn_error "could not create $ac_file" "$LINENO" 5
26775 else
26776 $as_echo "/* $configure_input */" \
26777 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26778 || as_fn_error "could not create -" "$LINENO" 5
26780 # Compute "$ac_file"'s index in $config_headers.
26781 _am_arg="$ac_file"
26782 _am_stamp_count=1
26783 for _am_header in $config_headers :; do
26784 case $_am_header in
26785 $_am_arg | $_am_arg:* )
26786 break ;;
26788 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26789 esac
26790 done
26791 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26792 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26793 X"$_am_arg" : 'X\(//\)[^/]' \| \
26794 X"$_am_arg" : 'X\(//\)$' \| \
26795 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26796 $as_echo X"$_am_arg" |
26797 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26798 s//\1/
26801 /^X\(\/\/\)[^/].*/{
26802 s//\1/
26805 /^X\(\/\/\)$/{
26806 s//\1/
26809 /^X\(\/\).*/{
26810 s//\1/
26813 s/.*/./; q'`/stamp-h$_am_stamp_count
26817 # CONFIG_LINK
26820 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
26822 else
26823 # Prefer the file from the source tree if names are identical.
26824 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
26825 ac_source=$srcdir/$ac_source
26828 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
26829 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
26831 if test ! -r "$ac_source"; then
26832 as_fn_error "$ac_source: file not found" "$LINENO" 5
26834 rm -f "$ac_file"
26836 # Try a relative symlink, then a hard link, then a copy.
26837 case $srcdir in
26838 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
26839 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
26840 esac
26841 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26842 ln "$ac_source" "$ac_file" 2>/dev/null ||
26843 cp -p "$ac_source" "$ac_file" ||
26844 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
26847 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26848 $as_echo "$as_me: executing $ac_file commands" >&6;}
26850 esac
26853 case $ac_file$ac_mode in
26854 "default-1":C)
26855 # Only add multilib support code if we just rebuilt the top-level
26856 # Makefile.
26857 case " $CONFIG_FILES " in
26858 *" Makefile "*)
26859 ac_file=Makefile . ${multi_basedir}/config-ml.in
26861 esac ;;
26862 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26863 # Autoconf 2.62 quotes --file arguments for eval, but not when files
26864 # are listed without --file. Let's play safe and only enable the eval
26865 # if we detect the quoting.
26866 case $CONFIG_FILES in
26867 *\'*) eval set x "$CONFIG_FILES" ;;
26868 *) set x $CONFIG_FILES ;;
26869 esac
26870 shift
26871 for mf
26873 # Strip MF so we end up with the name of the file.
26874 mf=`echo "$mf" | sed -e 's/:.*$//'`
26875 # Check whether this is an Automake generated Makefile or not.
26876 # We used to match only the files named `Makefile.in', but
26877 # some people rename them; so instead we look at the file content.
26878 # Grep'ing the first line is not enough: some people post-process
26879 # each Makefile.in and add a new line on top of each file to say so.
26880 # Grep'ing the whole file is not good either: AIX grep has a line
26881 # limit of 2048, but all sed's we know have understand at least 4000.
26882 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26883 dirpart=`$as_dirname -- "$mf" ||
26884 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26885 X"$mf" : 'X\(//\)[^/]' \| \
26886 X"$mf" : 'X\(//\)$' \| \
26887 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26888 $as_echo X"$mf" |
26889 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26890 s//\1/
26893 /^X\(\/\/\)[^/].*/{
26894 s//\1/
26897 /^X\(\/\/\)$/{
26898 s//\1/
26901 /^X\(\/\).*/{
26902 s//\1/
26905 s/.*/./; q'`
26906 else
26907 continue
26909 # Extract the definition of DEPDIR, am__include, and am__quote
26910 # from the Makefile without running `make'.
26911 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26912 test -z "$DEPDIR" && continue
26913 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26914 test -z "am__include" && continue
26915 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26916 # When using ansi2knr, U may be empty or an underscore; expand it
26917 U=`sed -n 's/^U = //p' < "$mf"`
26918 # Find all dependency output files, they are included files with
26919 # $(DEPDIR) in their names. We invoke sed twice because it is the
26920 # simplest approach to changing $(DEPDIR) to its actual value in the
26921 # expansion.
26922 for file in `sed -n "
26923 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26924 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26925 # Make sure the directory exists.
26926 test -f "$dirpart/$file" && continue
26927 fdir=`$as_dirname -- "$file" ||
26928 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26929 X"$file" : 'X\(//\)[^/]' \| \
26930 X"$file" : 'X\(//\)$' \| \
26931 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26932 $as_echo X"$file" |
26933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26934 s//\1/
26937 /^X\(\/\/\)[^/].*/{
26938 s//\1/
26941 /^X\(\/\/\)$/{
26942 s//\1/
26945 /^X\(\/\).*/{
26946 s//\1/
26949 s/.*/./; q'`
26950 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26951 # echo "creating $dirpart/$file"
26952 echo '# dummy' > "$dirpart/$file"
26953 done
26954 done
26957 "libtool":C)
26959 # See if we are running on zsh, and set the options which allow our
26960 # commands through without removal of \ escapes.
26961 if test -n "${ZSH_VERSION+set}" ; then
26962 setopt NO_GLOB_SUBST
26965 cfgfile="${ofile}T"
26966 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26967 $RM "$cfgfile"
26969 cat <<_LT_EOF >> "$cfgfile"
26970 #! $SHELL
26972 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26973 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26974 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26975 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26977 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26978 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
26979 # Written by Gordon Matzigkeit, 1996
26981 # This file is part of GNU Libtool.
26983 # GNU Libtool is free software; you can redistribute it and/or
26984 # modify it under the terms of the GNU General Public License as
26985 # published by the Free Software Foundation; either version 2 of
26986 # the License, or (at your option) any later version.
26988 # As a special exception to the GNU General Public License,
26989 # if you distribute this file as part of a program or library that
26990 # is built using GNU Libtool, you may include this file under the
26991 # same distribution terms that you use for the rest of that program.
26993 # GNU Libtool is distributed in the hope that it will be useful,
26994 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26995 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26996 # GNU General Public License for more details.
26998 # You should have received a copy of the GNU General Public License
26999 # along with GNU Libtool; see the file COPYING. If not, a copy
27000 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27001 # obtained by writing to the Free Software Foundation, Inc.,
27002 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27005 # The names of the tagged configurations supported by this script.
27006 available_tags="CXX GCJ "
27008 # ### BEGIN LIBTOOL CONFIG
27010 # Which release of libtool.m4 was used?
27011 macro_version=$macro_version
27012 macro_revision=$macro_revision
27014 # Whether or not to build shared libraries.
27015 build_libtool_libs=$enable_shared
27017 # Whether or not to build static libraries.
27018 build_old_libs=$enable_static
27020 # What type of objects to build.
27021 pic_mode=$pic_mode
27023 # Whether or not to optimize for fast installation.
27024 fast_install=$enable_fast_install
27026 # Shell to use when invoking shell scripts.
27027 SHELL=$lt_SHELL
27029 # An echo program that protects backslashes.
27030 ECHO=$lt_ECHO
27032 # The host system.
27033 host_alias=$host_alias
27034 host=$host
27035 host_os=$host_os
27037 # The build system.
27038 build_alias=$build_alias
27039 build=$build
27040 build_os=$build_os
27042 # A sed program that does not truncate output.
27043 SED=$lt_SED
27045 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27046 Xsed="\$SED -e 1s/^X//"
27048 # A grep program that handles long lines.
27049 GREP=$lt_GREP
27051 # An ERE matcher.
27052 EGREP=$lt_EGREP
27054 # A literal string matcher.
27055 FGREP=$lt_FGREP
27057 # A BSD- or MS-compatible name lister.
27058 NM=$lt_NM
27060 # Whether we need soft or hard links.
27061 LN_S=$lt_LN_S
27063 # What is the maximum length of a command?
27064 max_cmd_len=$max_cmd_len
27066 # Object file suffix (normally "o").
27067 objext=$ac_objext
27069 # Executable file suffix (normally "").
27070 exeext=$exeext
27072 # whether the shell understands "unset".
27073 lt_unset=$lt_unset
27075 # turn spaces into newlines.
27076 SP2NL=$lt_lt_SP2NL
27078 # turn newlines into spaces.
27079 NL2SP=$lt_lt_NL2SP
27081 # An object symbol dumper.
27082 OBJDUMP=$lt_OBJDUMP
27084 # Method to check whether dependent libraries are shared objects.
27085 deplibs_check_method=$lt_deplibs_check_method
27087 # Command to use when deplibs_check_method == "file_magic".
27088 file_magic_cmd=$lt_file_magic_cmd
27090 # The archiver.
27091 AR=$lt_AR
27092 AR_FLAGS=$lt_AR_FLAGS
27094 # A symbol stripping program.
27095 STRIP=$lt_STRIP
27097 # Commands used to install an old-style archive.
27098 RANLIB=$lt_RANLIB
27099 old_postinstall_cmds=$lt_old_postinstall_cmds
27100 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27102 # Whether to use a lock for old archive extraction.
27103 lock_old_archive_extraction=$lock_old_archive_extraction
27105 # A C compiler.
27106 LTCC=$lt_CC
27108 # LTCC compiler flags.
27109 LTCFLAGS=$lt_CFLAGS
27111 # Take the output of nm and produce a listing of raw symbols and C names.
27112 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27114 # Transform the output of nm in a proper C declaration.
27115 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27117 # Transform the output of nm in a C name address pair.
27118 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27120 # Transform the output of nm in a C name address pair when lib prefix is needed.
27121 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27123 # The name of the directory that contains temporary libtool files.
27124 objdir=$objdir
27126 # Used to examine libraries when file_magic_cmd begins with "file".
27127 MAGIC_CMD=$MAGIC_CMD
27129 # Must we lock files when doing compilation?
27130 need_locks=$lt_need_locks
27132 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27133 DSYMUTIL=$lt_DSYMUTIL
27135 # Tool to change global to local symbols on Mac OS X.
27136 NMEDIT=$lt_NMEDIT
27138 # Tool to manipulate fat objects and archives on Mac OS X.
27139 LIPO=$lt_LIPO
27141 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27142 OTOOL=$lt_OTOOL
27144 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27145 OTOOL64=$lt_OTOOL64
27147 # Old archive suffix (normally "a").
27148 libext=$libext
27150 # Shared library suffix (normally ".so").
27151 shrext_cmds=$lt_shrext_cmds
27153 # The commands to extract the exported symbol list from a shared archive.
27154 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27156 # Variables whose values should be saved in libtool wrapper scripts and
27157 # restored at link time.
27158 variables_saved_for_relink=$lt_variables_saved_for_relink
27160 # Do we need the "lib" prefix for modules?
27161 need_lib_prefix=$need_lib_prefix
27163 # Do we need a version for libraries?
27164 need_version=$need_version
27166 # Library versioning type.
27167 version_type=$version_type
27169 # Shared library runtime path variable.
27170 runpath_var=$runpath_var
27172 # Shared library path variable.
27173 shlibpath_var=$shlibpath_var
27175 # Is shlibpath searched before the hard-coded library search path?
27176 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27178 # Format of library name prefix.
27179 libname_spec=$lt_libname_spec
27181 # List of archive names. First name is the real one, the rest are links.
27182 # The last name is the one that the linker finds with -lNAME
27183 library_names_spec=$lt_library_names_spec
27185 # The coded name of the library, if different from the real name.
27186 soname_spec=$lt_soname_spec
27188 # Permission mode override for installation of shared libraries.
27189 install_override_mode=$lt_install_override_mode
27191 # Command to use after installation of a shared archive.
27192 postinstall_cmds=$lt_postinstall_cmds
27194 # Command to use after uninstallation of a shared archive.
27195 postuninstall_cmds=$lt_postuninstall_cmds
27197 # Commands used to finish a libtool library installation in a directory.
27198 finish_cmds=$lt_finish_cmds
27200 # As "finish_cmds", except a single script fragment to be evaled but
27201 # not shown.
27202 finish_eval=$lt_finish_eval
27204 # Whether we should hardcode library paths into libraries.
27205 hardcode_into_libs=$hardcode_into_libs
27207 # Compile-time system search path for libraries.
27208 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27210 # Run-time system search path for libraries.
27211 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27213 # Whether dlopen is supported.
27214 dlopen_support=$enable_dlopen
27216 # Whether dlopen of programs is supported.
27217 dlopen_self=$enable_dlopen_self
27219 # Whether dlopen of statically linked programs is supported.
27220 dlopen_self_static=$enable_dlopen_self_static
27222 # Commands to strip libraries.
27223 old_striplib=$lt_old_striplib
27224 striplib=$lt_striplib
27227 # The linker used to build libraries.
27228 LD=$lt_LD
27230 # How to create reloadable object files.
27231 reload_flag=$lt_reload_flag
27232 reload_cmds=$lt_reload_cmds
27234 # Commands used to build an old-style archive.
27235 old_archive_cmds=$lt_old_archive_cmds
27237 # A language specific compiler.
27238 CC=$lt_compiler
27240 # Is the compiler the GNU compiler?
27241 with_gcc=$GCC
27243 # Compiler flag to turn off builtin functions.
27244 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27246 # How to pass a linker flag through the compiler.
27247 wl=$lt_lt_prog_compiler_wl
27249 # Additional compiler flags for building library objects.
27250 pic_flag=$lt_lt_prog_compiler_pic
27252 # Compiler flag to prevent dynamic linking.
27253 link_static_flag=$lt_lt_prog_compiler_static
27255 # Does compiler simultaneously support -c and -o options?
27256 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27258 # Whether or not to add -lc for building shared libraries.
27259 build_libtool_need_lc=$archive_cmds_need_lc
27261 # Whether or not to disallow shared libs when runtime libs are static.
27262 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27264 # Compiler flag to allow reflexive dlopens.
27265 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27267 # Compiler flag to generate shared objects directly from archives.
27268 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27270 # Whether the compiler copes with passing no objects directly.
27271 compiler_needs_object=$lt_compiler_needs_object
27273 # Create an old-style archive from a shared archive.
27274 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27276 # Create a temporary old-style archive to link instead of a shared archive.
27277 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27279 # Commands used to build a shared archive.
27280 archive_cmds=$lt_archive_cmds
27281 archive_expsym_cmds=$lt_archive_expsym_cmds
27283 # Commands used to build a loadable module if different from building
27284 # a shared archive.
27285 module_cmds=$lt_module_cmds
27286 module_expsym_cmds=$lt_module_expsym_cmds
27288 # Whether we are building with GNU ld or not.
27289 with_gnu_ld=$lt_with_gnu_ld
27291 # Flag that allows shared libraries with undefined symbols to be built.
27292 allow_undefined_flag=$lt_allow_undefined_flag
27294 # Flag that enforces no undefined symbols.
27295 no_undefined_flag=$lt_no_undefined_flag
27297 # Flag to hardcode \$libdir into a binary during linking.
27298 # This must work even if \$libdir does not exist
27299 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27301 # If ld is used when linking, flag to hardcode \$libdir into a binary
27302 # during linking. This must work even if \$libdir does not exist.
27303 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
27305 # Whether we need a single "-rpath" flag with a separated argument.
27306 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27308 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27309 # DIR into the resulting binary.
27310 hardcode_direct=$hardcode_direct
27312 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27313 # DIR into the resulting binary and the resulting library dependency is
27314 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27315 # library is relocated.
27316 hardcode_direct_absolute=$hardcode_direct_absolute
27318 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27319 # into the resulting binary.
27320 hardcode_minus_L=$hardcode_minus_L
27322 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27323 # into the resulting binary.
27324 hardcode_shlibpath_var=$hardcode_shlibpath_var
27326 # Set to "yes" if building a shared library automatically hardcodes DIR
27327 # into the library and all subsequent libraries and executables linked
27328 # against it.
27329 hardcode_automatic=$hardcode_automatic
27331 # Set to yes if linker adds runtime paths of dependent libraries
27332 # to runtime path list.
27333 inherit_rpath=$inherit_rpath
27335 # Whether libtool must link a program against all its dependency libraries.
27336 link_all_deplibs=$link_all_deplibs
27338 # Fix the shell variable \$srcfile for the compiler.
27339 fix_srcfile_path=$lt_fix_srcfile_path
27341 # Set to "yes" if exported symbols are required.
27342 always_export_symbols=$always_export_symbols
27344 # The commands to list exported symbols.
27345 export_symbols_cmds=$lt_export_symbols_cmds
27347 # Symbols that should not be listed in the preloaded symbols.
27348 exclude_expsyms=$lt_exclude_expsyms
27350 # Symbols that must always be exported.
27351 include_expsyms=$lt_include_expsyms
27353 # Commands necessary for linking programs (against libraries) with templates.
27354 prelink_cmds=$lt_prelink_cmds
27356 # Specify filename containing input files.
27357 file_list_spec=$lt_file_list_spec
27359 # How to hardcode a shared library path into an executable.
27360 hardcode_action=$hardcode_action
27362 # The directories searched by this compiler when creating a shared library.
27363 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27365 # Dependencies to place before and after the objects being linked to
27366 # create a shared library.
27367 predep_objects=$lt_predep_objects
27368 postdep_objects=$lt_postdep_objects
27369 predeps=$lt_predeps
27370 postdeps=$lt_postdeps
27372 # The library search path used internally by the compiler when linking
27373 # a shared library.
27374 compiler_lib_search_path=$lt_compiler_lib_search_path
27376 # ### END LIBTOOL CONFIG
27378 _LT_EOF
27380 case $host_os in
27381 aix3*)
27382 cat <<\_LT_EOF >> "$cfgfile"
27383 # AIX sometimes has problems with the GCC collect2 program. For some
27384 # reason, if we set the COLLECT_NAMES environment variable, the problems
27385 # vanish in a puff of smoke.
27386 if test "X${COLLECT_NAMES+set}" != Xset; then
27387 COLLECT_NAMES=
27388 export COLLECT_NAMES
27390 _LT_EOF
27392 esac
27395 ltmain="$ac_aux_dir/ltmain.sh"
27398 # We use sed instead of cat because bash on DJGPP gets confused if
27399 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27400 # text mode, it properly converts lines to CR/LF. This bash problem
27401 # is reportedly fixed, but why not run on old versions too?
27402 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27403 || (rm -f "$cfgfile"; exit 1)
27405 case $xsi_shell in
27406 yes)
27407 cat << \_LT_EOF >> "$cfgfile"
27409 # func_dirname file append nondir_replacement
27410 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27411 # otherwise set result to NONDIR_REPLACEMENT.
27412 func_dirname ()
27414 case ${1} in
27415 */*) func_dirname_result="${1%/*}${2}" ;;
27416 * ) func_dirname_result="${3}" ;;
27417 esac
27420 # func_basename file
27421 func_basename ()
27423 func_basename_result="${1##*/}"
27426 # func_dirname_and_basename file append nondir_replacement
27427 # perform func_basename and func_dirname in a single function
27428 # call:
27429 # dirname: Compute the dirname of FILE. If nonempty,
27430 # add APPEND to the result, otherwise set result
27431 # to NONDIR_REPLACEMENT.
27432 # value returned in "$func_dirname_result"
27433 # basename: Compute filename of FILE.
27434 # value retuned in "$func_basename_result"
27435 # Implementation must be kept synchronized with func_dirname
27436 # and func_basename. For efficiency, we do not delegate to
27437 # those functions but instead duplicate the functionality here.
27438 func_dirname_and_basename ()
27440 case ${1} in
27441 */*) func_dirname_result="${1%/*}${2}" ;;
27442 * ) func_dirname_result="${3}" ;;
27443 esac
27444 func_basename_result="${1##*/}"
27447 # func_stripname prefix suffix name
27448 # strip PREFIX and SUFFIX off of NAME.
27449 # PREFIX and SUFFIX must not contain globbing or regex special
27450 # characters, hashes, percent signs, but SUFFIX may contain a leading
27451 # dot (in which case that matches only a dot).
27452 func_stripname ()
27454 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27455 # positional parameters, so assign one to ordinary parameter first.
27456 func_stripname_result=${3}
27457 func_stripname_result=${func_stripname_result#"${1}"}
27458 func_stripname_result=${func_stripname_result%"${2}"}
27461 # func_opt_split
27462 func_opt_split ()
27464 func_opt_split_opt=${1%%=*}
27465 func_opt_split_arg=${1#*=}
27468 # func_lo2o object
27469 func_lo2o ()
27471 case ${1} in
27472 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27473 *) func_lo2o_result=${1} ;;
27474 esac
27477 # func_xform libobj-or-source
27478 func_xform ()
27480 func_xform_result=${1%.*}.lo
27483 # func_arith arithmetic-term...
27484 func_arith ()
27486 func_arith_result=$(( $* ))
27489 # func_len string
27490 # STRING may not start with a hyphen.
27491 func_len ()
27493 func_len_result=${#1}
27496 _LT_EOF
27498 *) # Bourne compatible functions.
27499 cat << \_LT_EOF >> "$cfgfile"
27501 # func_dirname file append nondir_replacement
27502 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27503 # otherwise set result to NONDIR_REPLACEMENT.
27504 func_dirname ()
27506 # Extract subdirectory from the argument.
27507 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
27508 if test "X$func_dirname_result" = "X${1}"; then
27509 func_dirname_result="${3}"
27510 else
27511 func_dirname_result="$func_dirname_result${2}"
27515 # func_basename file
27516 func_basename ()
27518 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
27522 # func_stripname prefix suffix name
27523 # strip PREFIX and SUFFIX off of NAME.
27524 # PREFIX and SUFFIX must not contain globbing or regex special
27525 # characters, hashes, percent signs, but SUFFIX may contain a leading
27526 # dot (in which case that matches only a dot).
27527 # func_strip_suffix prefix name
27528 func_stripname ()
27530 case ${2} in
27531 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
27532 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
27533 esac
27536 # sed scripts:
27537 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27538 my_sed_long_arg='1s/^-[^=]*=//'
27540 # func_opt_split
27541 func_opt_split ()
27543 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
27544 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
27547 # func_lo2o object
27548 func_lo2o ()
27550 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
27553 # func_xform libobj-or-source
27554 func_xform ()
27556 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
27559 # func_arith arithmetic-term...
27560 func_arith ()
27562 func_arith_result=`expr "$@"`
27565 # func_len string
27566 # STRING may not start with a hyphen.
27567 func_len ()
27569 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27572 _LT_EOF
27573 esac
27575 case $lt_shell_append in
27576 yes)
27577 cat << \_LT_EOF >> "$cfgfile"
27579 # func_append var value
27580 # Append VALUE to the end of shell variable VAR.
27581 func_append ()
27583 eval "$1+=\$2"
27585 _LT_EOF
27588 cat << \_LT_EOF >> "$cfgfile"
27590 # func_append var value
27591 # Append VALUE to the end of shell variable VAR.
27592 func_append ()
27594 eval "$1=\$$1\$2"
27597 _LT_EOF
27599 esac
27602 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27603 || (rm -f "$cfgfile"; exit 1)
27605 mv -f "$cfgfile" "$ofile" ||
27606 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27607 chmod +x "$ofile"
27610 cat <<_LT_EOF >> "$ofile"
27612 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27614 # The linker used to build libraries.
27615 LD=$lt_LD_CXX
27617 # How to create reloadable object files.
27618 reload_flag=$lt_reload_flag_CXX
27619 reload_cmds=$lt_reload_cmds_CXX
27621 # Commands used to build an old-style archive.
27622 old_archive_cmds=$lt_old_archive_cmds_CXX
27624 # A language specific compiler.
27625 CC=$lt_compiler_CXX
27627 # Is the compiler the GNU compiler?
27628 with_gcc=$GCC_CXX
27630 # Compiler flag to turn off builtin functions.
27631 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27633 # How to pass a linker flag through the compiler.
27634 wl=$lt_lt_prog_compiler_wl_CXX
27636 # Additional compiler flags for building library objects.
27637 pic_flag=$lt_lt_prog_compiler_pic_CXX
27639 # Compiler flag to prevent dynamic linking.
27640 link_static_flag=$lt_lt_prog_compiler_static_CXX
27642 # Does compiler simultaneously support -c and -o options?
27643 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27645 # Whether or not to add -lc for building shared libraries.
27646 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27648 # Whether or not to disallow shared libs when runtime libs are static.
27649 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27651 # Compiler flag to allow reflexive dlopens.
27652 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27654 # Compiler flag to generate shared objects directly from archives.
27655 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27657 # Whether the compiler copes with passing no objects directly.
27658 compiler_needs_object=$lt_compiler_needs_object_CXX
27660 # Create an old-style archive from a shared archive.
27661 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27663 # Create a temporary old-style archive to link instead of a shared archive.
27664 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27666 # Commands used to build a shared archive.
27667 archive_cmds=$lt_archive_cmds_CXX
27668 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27670 # Commands used to build a loadable module if different from building
27671 # a shared archive.
27672 module_cmds=$lt_module_cmds_CXX
27673 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27675 # Whether we are building with GNU ld or not.
27676 with_gnu_ld=$lt_with_gnu_ld_CXX
27678 # Flag that allows shared libraries with undefined symbols to be built.
27679 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27681 # Flag that enforces no undefined symbols.
27682 no_undefined_flag=$lt_no_undefined_flag_CXX
27684 # Flag to hardcode \$libdir into a binary during linking.
27685 # This must work even if \$libdir does not exist
27686 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27688 # If ld is used when linking, flag to hardcode \$libdir into a binary
27689 # during linking. This must work even if \$libdir does not exist.
27690 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27692 # Whether we need a single "-rpath" flag with a separated argument.
27693 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27695 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27696 # DIR into the resulting binary.
27697 hardcode_direct=$hardcode_direct_CXX
27699 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27700 # DIR into the resulting binary and the resulting library dependency is
27701 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27702 # library is relocated.
27703 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27705 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27706 # into the resulting binary.
27707 hardcode_minus_L=$hardcode_minus_L_CXX
27709 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27710 # into the resulting binary.
27711 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27713 # Set to "yes" if building a shared library automatically hardcodes DIR
27714 # into the library and all subsequent libraries and executables linked
27715 # against it.
27716 hardcode_automatic=$hardcode_automatic_CXX
27718 # Set to yes if linker adds runtime paths of dependent libraries
27719 # to runtime path list.
27720 inherit_rpath=$inherit_rpath_CXX
27722 # Whether libtool must link a program against all its dependency libraries.
27723 link_all_deplibs=$link_all_deplibs_CXX
27725 # Fix the shell variable \$srcfile for the compiler.
27726 fix_srcfile_path=$lt_fix_srcfile_path_CXX
27728 # Set to "yes" if exported symbols are required.
27729 always_export_symbols=$always_export_symbols_CXX
27731 # The commands to list exported symbols.
27732 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27734 # Symbols that should not be listed in the preloaded symbols.
27735 exclude_expsyms=$lt_exclude_expsyms_CXX
27737 # Symbols that must always be exported.
27738 include_expsyms=$lt_include_expsyms_CXX
27740 # Commands necessary for linking programs (against libraries) with templates.
27741 prelink_cmds=$lt_prelink_cmds_CXX
27743 # Specify filename containing input files.
27744 file_list_spec=$lt_file_list_spec_CXX
27746 # How to hardcode a shared library path into an executable.
27747 hardcode_action=$hardcode_action_CXX
27749 # The directories searched by this compiler when creating a shared library.
27750 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27752 # Dependencies to place before and after the objects being linked to
27753 # create a shared library.
27754 predep_objects=$lt_predep_objects_CXX
27755 postdep_objects=$lt_postdep_objects_CXX
27756 predeps=$lt_predeps_CXX
27757 postdeps=$lt_postdeps_CXX
27759 # The library search path used internally by the compiler when linking
27760 # a shared library.
27761 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27763 # ### END LIBTOOL TAG CONFIG: CXX
27764 _LT_EOF
27767 cat <<_LT_EOF >> "$ofile"
27769 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
27771 # The linker used to build libraries.
27772 LD=$lt_LD_GCJ
27774 # How to create reloadable object files.
27775 reload_flag=$lt_reload_flag_GCJ
27776 reload_cmds=$lt_reload_cmds_GCJ
27778 # Commands used to build an old-style archive.
27779 old_archive_cmds=$lt_old_archive_cmds_GCJ
27781 # A language specific compiler.
27782 CC=$lt_compiler_GCJ
27784 # Is the compiler the GNU compiler?
27785 with_gcc=$GCC_GCJ
27787 # Compiler flag to turn off builtin functions.
27788 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
27790 # How to pass a linker flag through the compiler.
27791 wl=$lt_lt_prog_compiler_wl_GCJ
27793 # Additional compiler flags for building library objects.
27794 pic_flag=$lt_lt_prog_compiler_pic_GCJ
27796 # Compiler flag to prevent dynamic linking.
27797 link_static_flag=$lt_lt_prog_compiler_static_GCJ
27799 # Does compiler simultaneously support -c and -o options?
27800 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
27802 # Whether or not to add -lc for building shared libraries.
27803 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
27805 # Whether or not to disallow shared libs when runtime libs are static.
27806 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
27808 # Compiler flag to allow reflexive dlopens.
27809 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
27811 # Compiler flag to generate shared objects directly from archives.
27812 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
27814 # Whether the compiler copes with passing no objects directly.
27815 compiler_needs_object=$lt_compiler_needs_object_GCJ
27817 # Create an old-style archive from a shared archive.
27818 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
27820 # Create a temporary old-style archive to link instead of a shared archive.
27821 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
27823 # Commands used to build a shared archive.
27824 archive_cmds=$lt_archive_cmds_GCJ
27825 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
27827 # Commands used to build a loadable module if different from building
27828 # a shared archive.
27829 module_cmds=$lt_module_cmds_GCJ
27830 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
27832 # Whether we are building with GNU ld or not.
27833 with_gnu_ld=$lt_with_gnu_ld_GCJ
27835 # Flag that allows shared libraries with undefined symbols to be built.
27836 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
27838 # Flag that enforces no undefined symbols.
27839 no_undefined_flag=$lt_no_undefined_flag_GCJ
27841 # Flag to hardcode \$libdir into a binary during linking.
27842 # This must work even if \$libdir does not exist
27843 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
27845 # If ld is used when linking, flag to hardcode \$libdir into a binary
27846 # during linking. This must work even if \$libdir does not exist.
27847 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
27849 # Whether we need a single "-rpath" flag with a separated argument.
27850 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
27852 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27853 # DIR into the resulting binary.
27854 hardcode_direct=$hardcode_direct_GCJ
27856 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27857 # DIR into the resulting binary and the resulting library dependency is
27858 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27859 # library is relocated.
27860 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
27862 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27863 # into the resulting binary.
27864 hardcode_minus_L=$hardcode_minus_L_GCJ
27866 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27867 # into the resulting binary.
27868 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
27870 # Set to "yes" if building a shared library automatically hardcodes DIR
27871 # into the library and all subsequent libraries and executables linked
27872 # against it.
27873 hardcode_automatic=$hardcode_automatic_GCJ
27875 # Set to yes if linker adds runtime paths of dependent libraries
27876 # to runtime path list.
27877 inherit_rpath=$inherit_rpath_GCJ
27879 # Whether libtool must link a program against all its dependency libraries.
27880 link_all_deplibs=$link_all_deplibs_GCJ
27882 # Fix the shell variable \$srcfile for the compiler.
27883 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
27885 # Set to "yes" if exported symbols are required.
27886 always_export_symbols=$always_export_symbols_GCJ
27888 # The commands to list exported symbols.
27889 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
27891 # Symbols that should not be listed in the preloaded symbols.
27892 exclude_expsyms=$lt_exclude_expsyms_GCJ
27894 # Symbols that must always be exported.
27895 include_expsyms=$lt_include_expsyms_GCJ
27897 # Commands necessary for linking programs (against libraries) with templates.
27898 prelink_cmds=$lt_prelink_cmds_GCJ
27900 # Specify filename containing input files.
27901 file_list_spec=$lt_file_list_spec_GCJ
27903 # How to hardcode a shared library path into an executable.
27904 hardcode_action=$hardcode_action_GCJ
27906 # The directories searched by this compiler when creating a shared library.
27907 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
27909 # Dependencies to place before and after the objects being linked to
27910 # create a shared library.
27911 predep_objects=$lt_predep_objects_GCJ
27912 postdep_objects=$lt_postdep_objects_GCJ
27913 predeps=$lt_predeps_GCJ
27914 postdeps=$lt_postdeps_GCJ
27916 # The library search path used internally by the compiler when linking
27917 # a shared library.
27918 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
27920 # ### END LIBTOOL TAG CONFIG: GCJ
27921 _LT_EOF
27924 "scripts/jar":F) chmod +x scripts/jar ;;
27926 esac
27927 done # for ac_tag
27930 as_fn_exit 0
27931 _ACEOF
27932 ac_clean_files=$ac_clean_files_save
27934 test $ac_write_fail = 0 ||
27935 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27938 # configure is writing to config.log, and then calls config.status.
27939 # config.status does its own redirection, appending to config.log.
27940 # Unfortunately, on DOS this fails, as config.log is still kept open
27941 # by configure, so config.status won't be able to write to it; its
27942 # output is simply discarded. So we exec the FD to /dev/null,
27943 # effectively closing config.log, so it can be properly (re)opened and
27944 # appended to by config.status. When coming back to configure, we
27945 # need to make the FD available again.
27946 if test "$no_create" != yes; then
27947 ac_cs_success=:
27948 ac_config_status_args=
27949 test "$silent" = yes &&
27950 ac_config_status_args="$ac_config_status_args --quiet"
27951 exec 5>/dev/null
27952 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27953 exec 5>>config.log
27954 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27955 # would make configure fail if this is the last instruction.
27956 $ac_cs_success || as_fn_exit $?
27960 # CONFIG_SUBDIRS section.
27962 if test "$no_recursion" != yes; then
27964 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
27965 # so they do not pile up.
27966 ac_sub_configure_args=
27967 ac_prev=
27968 eval "set x $ac_configure_args"
27969 shift
27970 for ac_arg
27972 if test -n "$ac_prev"; then
27973 ac_prev=
27974 continue
27976 case $ac_arg in
27977 -cache-file | --cache-file | --cache-fil | --cache-fi \
27978 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27979 ac_prev=cache_file ;;
27980 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27981 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27982 | --c=*)
27984 --config-cache | -C)
27986 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27987 ac_prev=srcdir ;;
27988 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27990 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27991 ac_prev=prefix ;;
27992 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27994 --disable-option-checking)
27997 case $ac_arg in
27998 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27999 esac
28000 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
28001 esac
28002 done
28004 # Always prepend --prefix to ensure using the same prefix
28005 # in subdir configurations.
28006 ac_arg="--prefix=$prefix"
28007 case $ac_arg in
28008 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28009 esac
28010 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
28012 # Pass --silent
28013 if test "$silent" = yes; then
28014 ac_sub_configure_args="--silent $ac_sub_configure_args"
28017 # Always prepend --disable-option-checking to silence warnings, since
28018 # different subdirs can have different --enable and --with options.
28019 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
28021 ac_popdir=`pwd`
28022 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
28024 # Do not complain, so a configure script can configure whichever
28025 # parts of a large source tree are present.
28026 test -d "$srcdir/$ac_dir" || continue
28028 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
28029 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
28030 $as_echo "$ac_msg" >&6
28031 as_dir="$ac_dir"; as_fn_mkdir_p
28032 ac_builddir=.
28034 case "$ac_dir" in
28035 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28037 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28038 # A ".." for each directory in $ac_dir_suffix.
28039 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28040 case $ac_top_builddir_sub in
28041 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28042 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28043 esac ;;
28044 esac
28045 ac_abs_top_builddir=$ac_pwd
28046 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28047 # for backward compatibility:
28048 ac_top_builddir=$ac_top_build_prefix
28050 case $srcdir in
28051 .) # We are building in place.
28052 ac_srcdir=.
28053 ac_top_srcdir=$ac_top_builddir_sub
28054 ac_abs_top_srcdir=$ac_pwd ;;
28055 [\\/]* | ?:[\\/]* ) # Absolute name.
28056 ac_srcdir=$srcdir$ac_dir_suffix;
28057 ac_top_srcdir=$srcdir
28058 ac_abs_top_srcdir=$srcdir ;;
28059 *) # Relative name.
28060 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28061 ac_top_srcdir=$ac_top_build_prefix$srcdir
28062 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28063 esac
28064 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28067 cd "$ac_dir"
28069 # Check for guested configure; otherwise get Cygnus style configure.
28070 if test -f "$ac_srcdir/configure.gnu"; then
28071 ac_sub_configure=$ac_srcdir/configure.gnu
28072 elif test -f "$ac_srcdir/configure"; then
28073 ac_sub_configure=$ac_srcdir/configure
28074 elif test -f "$ac_srcdir/configure.in"; then
28075 # This should be Cygnus configure.
28076 ac_sub_configure=$ac_aux_dir/configure
28077 else
28078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
28079 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
28080 ac_sub_configure=
28083 # The recursion is here.
28084 if test -n "$ac_sub_configure"; then
28085 # Make the cache file name correct relative to the subdirectory.
28086 case $cache_file in
28087 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
28088 *) # Relative name.
28089 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
28090 esac
28092 { $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
28093 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
28094 # The eval makes quoting arguments work.
28095 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
28096 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
28097 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
28100 cd "$ac_popdir"
28101 done
28103 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28105 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}