PR fortran/40539 Document LOGICAL representation
[official-gcc.git] / libjava / configure
blobca3329d3944f163b291533a1ce9ab3151101bbc0
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for libjava version-unused.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='libjava'
558 PACKAGE_TARNAME='libjava'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='libjava version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
564 ac_unique_file="java/lang/System.java"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 enable_option_checking=no
602 ac_subst_vars='am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 LIBDIR
609 GCJ_BIN_DIR
610 JRE_LIB_DIR
611 JRE_BIN_DIR
612 SDK_INCLUDE_DIR
613 SDK_LIB_DIR
614 SDK_BIN_DIR
615 SDK_LNK
616 JRE_LNK
617 JRE_DIR
618 JVM_JAR_DIR
619 JVM_JAR_ROOT_DIR
620 JVM_ROOT_DIR
621 BUILD_VERSION
622 JAVA_VERSION
623 gcc_suffix
624 CREATE_JAVA_HOME_FALSE
625 CREATE_JAVA_HOME_TRUE
626 INSTALL_AOT_RPM_FALSE
627 INSTALL_AOT_RPM_TRUE
628 MAKE
629 python_mod_dir_expanded
630 python_mod_dir
631 here
632 LD_FINISH_STATIC_SPEC
633 LD_START_STATIC_SPEC
634 ANONVERSCRIPT_FALSE
635 ANONVERSCRIPT_TRUE
636 SYSDEP_SOURCES
637 PERL
638 libstdcxx_incdir
639 gxx_include_dir
640 gcjsubdir
641 dbexecdir
642 GCJVERSION
643 toolexeclibdir
644 toolexecmainlibdir
645 toolexecdir
646 GCC_UNWIND_INCLUDE
647 INSTALL_BINARIES_FALSE
648 INSTALL_BINARIES_TRUE
649 NEEDS_DATA_START_FALSE
650 NEEDS_DATA_START_TRUE
651 ENABLE_SHARED_FALSE
652 ENABLE_SHARED_TRUE
653 NATIVE_FALSE
654 NATIVE_TRUE
655 ATOMICSPEC
656 IEEESPEC
657 BACKTRACESPEC
658 EXCEPTIONSPEC
659 CHECKREFSPEC
660 DIVIDESPEC
661 ZINCS
662 SYS_ZLIBS
663 ZLIBS
664 CLASSPATH_SEPARATOR
665 LIBART_LIBS
666 LIBART_CFLAGS
667 GLIB_LIBS
668 GLIB_CFLAGS
669 GTK_LIBS
670 GTK_CFLAGS
671 PKG_CONFIG
672 LTLIBICONV
673 LIBICONV
674 USING_GCC_FALSE
675 USING_GCC_TRUE
676 HASH_SYNC_SPEC
677 LIBGCJ_BC_SPEC
678 LIBGCJ_SPEC
679 USE_LIBGCJ_BC_FALSE
680 USE_LIBGCJ_BC_TRUE
681 USING_NO_THREADS_FALSE
682 USING_NO_THREADS_TRUE
683 USING_WIN32_THREADS_FALSE
684 USING_WIN32_THREADS_TRUE
685 USING_POSIX_THREADS_FALSE
686 USING_POSIX_THREADS_TRUE
687 THREADCXXFLAGS
688 THREADLDFLAGS
689 THREADSTARTFILESPEC
690 THREADSPEC
691 THREADDEPS
692 THREADINCS
693 THREADLIBS
694 USING_NOGC_FALSE
695 USING_NOGC_TRUE
696 USING_BOEHMGC_FALSE
697 USING_BOEHMGC_TRUE
698 GCTESTSPEC
699 JC1GCSPEC
700 GCSPEC
701 GCDEPS
702 GCINCS
703 GCLIBS
704 LIBGCJTESTSPEC
705 LIBSTDCXXSPEC
706 extra_ldflags
707 extra_ldflags_libjava
708 X_EXTRA_LIBS
709 X_LIBS
710 X_PRE_LIBS
711 X_CFLAGS
712 XMKMF
713 ZLIBTESTSPEC
714 ZLIBSPEC
715 SYSTEMSPEC
716 USING_DARWIN_CRT_FALSE
717 USING_DARWIN_CRT_TRUE
718 USING_POSIX_PLATFORM_FALSE
719 USING_POSIX_PLATFORM_TRUE
720 USING_WIN32_PLATFORM_FALSE
721 USING_WIN32_PLATFORM_TRUE
722 PLATFORM
723 LIBFFIINCS
724 LIBFFI
725 INTERPRETER_FALSE
726 INTERPRETER_TRUE
727 INTERPRETER
728 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE
729 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE
730 SUPPRESS_LIBGCJ_BC_FALSE
731 SUPPRESS_LIBGCJ_BC_TRUE
732 JAVA_HOME
733 JAVA_HOME_SET_FALSE
734 JAVA_HOME_SET_TRUE
735 INSTALL_ECJ_JAR_FALSE
736 INSTALL_ECJ_JAR_TRUE
737 BUILD_ECJ1_FALSE
738 BUILD_ECJ1_TRUE
739 ECJ_JAR
740 ECJ_BUILD_JAR
741 TESTSUBDIR_FALSE
742 TESTSUBDIR_TRUE
743 subdirs
744 am__fastdepGCJ_FALSE
745 am__fastdepGCJ_TRUE
746 GCJDEPMODE
747 GCJFLAGS
748 ac_ct_GCJ
750 CXXCPP
752 OTOOL64
753 OTOOL
754 LIPO
755 NMEDIT
756 DSYMUTIL
757 OBJDUMP
759 ac_ct_DUMPBIN
760 DUMPBIN
761 FGREP
762 EGREP
763 GREP
765 LIBTOOL
766 DIRLTDL
767 LIBLTDL
768 INCLTDL
769 host_exeext
770 GCJH
771 GCJ_FOR_ECJX
772 X_AWT_FALSE
773 X_AWT_TRUE
774 XLIB_AWT_FALSE
775 XLIB_AWT_TRUE
776 TOOLKIT
777 LIBGCJDEBUG
778 BUILD_SUBLIBS_FALSE
779 BUILD_SUBLIBS_TRUE
780 LIBGCJ_LD_SYMBOLIC_FUNCTIONS
781 LIBGCJ_LD_SYMBOLIC
782 LIBGCJ_SUBLIB_CORE_EXTRA_DEPS
783 LIBGCJ_SUBLIB_LTFLAGS
784 LIBGCJ_JAVAFLAGS
785 LIBGCJ_CXXFLAGS
786 LIBGCJ_CFLAGS
787 MAINT
788 MAINTAINER_MODE_FALSE
789 MAINTAINER_MODE_TRUE
790 UNZIP
793 DLLTOOL
794 RANLIB
798 am__fastdepCXX_FALSE
799 am__fastdepCXX_TRUE
800 CXXDEPMODE
801 am__fastdepCC_FALSE
802 am__fastdepCC_TRUE
803 CCDEPMODE
804 AMDEPBACKSLASH
805 AMDEP_FALSE
806 AMDEP_TRUE
807 am__quote
808 am__include
809 DEPDIR
810 am__untar
811 am__tar
812 AMTAR
813 am__leading_dot
814 SET_MAKE
816 mkdir_p
817 MKDIR_P
818 INSTALL_STRIP_PROGRAM
819 STRIP
820 install_sh
821 MAKEINFO
822 AUTOHEADER
823 AUTOMAKE
824 AUTOCONF
825 ACLOCAL
826 VERSION
827 PACKAGE
828 CYGPATH_W
829 am__isrc
830 INSTALL_DATA
831 INSTALL_SCRIPT
832 INSTALL_PROGRAM
833 ac_ct_CXX
834 CXXFLAGS
836 OBJEXT
837 EXEEXT
838 ac_ct_CC
839 CPPFLAGS
840 LDFLAGS
841 CFLAGS
843 JAVA_MAINTAINER_MODE_FALSE
844 JAVA_MAINTAINER_MODE_TRUE
845 CREATE_GJDOC_FALSE
846 CREATE_GJDOC_TRUE
847 ANTLR_JAR
848 mkinstalldirs
849 LN_S
850 target_noncanonical
851 target_os
852 target_vendor
853 target_cpu
854 target
855 host_os
856 host_vendor
857 host_cpu
858 host
859 multi_basedir
860 target_subdir
861 host_subdir
862 build_subdir
863 build_libsubdir
864 build_os
865 build_vendor
866 build_cpu
867 build
868 target_alias
869 host_alias
870 build_alias
871 LIBS
872 ECHO_T
873 ECHO_N
874 ECHO_C
875 DEFS
876 mandir
877 localedir
878 libdir
879 psdir
880 pdfdir
881 dvidir
882 htmldir
883 infodir
884 docdir
885 oldincludedir
886 includedir
887 localstatedir
888 sharedstatedir
889 sysconfdir
890 datadir
891 datarootdir
892 libexecdir
893 sbindir
894 bindir
895 program_transform_name
896 prefix
897 exec_prefix
898 PACKAGE_URL
899 PACKAGE_BUGREPORT
900 PACKAGE_STRING
901 PACKAGE_VERSION
902 PACKAGE_TARNAME
903 PACKAGE_NAME
904 PATH_SEPARATOR
905 SHELL'
906 ac_subst_files=''
907 ac_user_opts='
908 enable_option_checking
909 with_build_libsubdir
910 with_target_subdir
911 enable_multilib
912 with_cross_host
913 with_newlib
914 enable_version_specific_runtime_libs
915 enable_browser_plugin
916 enable_gconf_peer
917 with_antlr_jar
918 enable_gjdoc
919 enable_java_maintainer_mode
920 enable_dependency_tracking
921 enable_maintainer_mode
922 enable_libgcj_sublibs
923 enable_libgcj_debug
924 with_escher
925 enable_java_awt
926 enable_shared
927 enable_static
928 with_pic
929 enable_fast_install
930 with_gnu_ld
931 enable_libtool_lock
932 enable_getenv_properties
933 enable_hash_synchronization
934 with_ecj_jar
935 with_java_home
936 enable_libgcj_bc
937 enable_reduced_reflection
938 with_win32_nlsapi
939 enable_gc_debug
940 enable_interpreter
941 enable_sjlj_exceptions
942 enable_java_net
943 with_libffi
944 enable_jvmpi
945 with_ecos
946 with_system_zlib
947 with_x
948 enable_java_gc
949 enable_rpath
950 with_libiconv_prefix
951 enable_tls
952 with_system_libunwind
953 with_python_dir
954 enable_aot_compile_rpm
955 enable_java_home
956 with_gcc_suffix
957 with_arch_directory
958 with_os_directory
959 with_origin_name
960 with_arch_suffix
961 with_jvm_root_dir
962 with_jvm_jar_dir
964 ac_precious_vars='build_alias
965 host_alias
966 target_alias
968 CFLAGS
969 LDFLAGS
970 LIBS
971 CPPFLAGS
973 CXXFLAGS
976 CXXCPP
977 XMKMF'
978 ac_subdirs_all='classpath libltdl'
980 # Initialize some variables set by options.
981 ac_init_help=
982 ac_init_version=false
983 ac_unrecognized_opts=
984 ac_unrecognized_sep=
985 # The variables have the same names as the options, with
986 # dashes changed to underlines.
987 cache_file=/dev/null
988 exec_prefix=NONE
989 no_create=
990 no_recursion=
991 prefix=NONE
992 program_prefix=NONE
993 program_suffix=NONE
994 program_transform_name=s,x,x,
995 silent=
996 site=
997 srcdir=
998 verbose=
999 x_includes=NONE
1000 x_libraries=NONE
1002 # Installation directory options.
1003 # These are left unexpanded so users can "make install exec_prefix=/foo"
1004 # and all the variables that are supposed to be based on exec_prefix
1005 # by default will actually change.
1006 # Use braces instead of parens because sh, perl, etc. also accept them.
1007 # (The list follows the same order as the GNU Coding Standards.)
1008 bindir='${exec_prefix}/bin'
1009 sbindir='${exec_prefix}/sbin'
1010 libexecdir='${exec_prefix}/libexec'
1011 datarootdir='${prefix}/share'
1012 datadir='${datarootdir}'
1013 sysconfdir='${prefix}/etc'
1014 sharedstatedir='${prefix}/com'
1015 localstatedir='${prefix}/var'
1016 includedir='${prefix}/include'
1017 oldincludedir='/usr/include'
1018 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1019 infodir='${datarootdir}/info'
1020 htmldir='${docdir}'
1021 dvidir='${docdir}'
1022 pdfdir='${docdir}'
1023 psdir='${docdir}'
1024 libdir='${exec_prefix}/lib'
1025 localedir='${datarootdir}/locale'
1026 mandir='${datarootdir}/man'
1028 ac_prev=
1029 ac_dashdash=
1030 for ac_option
1032 # If the previous option needs an argument, assign it.
1033 if test -n "$ac_prev"; then
1034 eval $ac_prev=\$ac_option
1035 ac_prev=
1036 continue
1039 case $ac_option in
1040 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1041 *) ac_optarg=yes ;;
1042 esac
1044 # Accept the important Cygnus configure options, so we can diagnose typos.
1046 case $ac_dashdash$ac_option in
1048 ac_dashdash=yes ;;
1050 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1051 ac_prev=bindir ;;
1052 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1053 bindir=$ac_optarg ;;
1055 -build | --build | --buil | --bui | --bu)
1056 ac_prev=build_alias ;;
1057 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1058 build_alias=$ac_optarg ;;
1060 -cache-file | --cache-file | --cache-fil | --cache-fi \
1061 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1062 ac_prev=cache_file ;;
1063 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1064 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1065 cache_file=$ac_optarg ;;
1067 --config-cache | -C)
1068 cache_file=config.cache ;;
1070 -datadir | --datadir | --datadi | --datad)
1071 ac_prev=datadir ;;
1072 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1073 datadir=$ac_optarg ;;
1075 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1076 | --dataroo | --dataro | --datar)
1077 ac_prev=datarootdir ;;
1078 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1079 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1080 datarootdir=$ac_optarg ;;
1082 -disable-* | --disable-*)
1083 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1084 # Reject names that are not valid shell variable names.
1085 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086 as_fn_error "invalid feature name: $ac_useropt"
1087 ac_useropt_orig=$ac_useropt
1088 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089 case $ac_user_opts in
1091 "enable_$ac_useropt"
1092 "*) ;;
1093 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1094 ac_unrecognized_sep=', ';;
1095 esac
1096 eval enable_$ac_useropt=no ;;
1098 -docdir | --docdir | --docdi | --doc | --do)
1099 ac_prev=docdir ;;
1100 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1101 docdir=$ac_optarg ;;
1103 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1104 ac_prev=dvidir ;;
1105 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1106 dvidir=$ac_optarg ;;
1108 -enable-* | --enable-*)
1109 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112 as_fn_error "invalid feature name: $ac_useropt"
1113 ac_useropt_orig=$ac_useropt
1114 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115 case $ac_user_opts in
1117 "enable_$ac_useropt"
1118 "*) ;;
1119 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1120 ac_unrecognized_sep=', ';;
1121 esac
1122 eval enable_$ac_useropt=\$ac_optarg ;;
1124 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1125 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1126 | --exec | --exe | --ex)
1127 ac_prev=exec_prefix ;;
1128 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1129 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1130 | --exec=* | --exe=* | --ex=*)
1131 exec_prefix=$ac_optarg ;;
1133 -gas | --gas | --ga | --g)
1134 # Obsolete; use --with-gas.
1135 with_gas=yes ;;
1137 -help | --help | --hel | --he | -h)
1138 ac_init_help=long ;;
1139 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1140 ac_init_help=recursive ;;
1141 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1142 ac_init_help=short ;;
1144 -host | --host | --hos | --ho)
1145 ac_prev=host_alias ;;
1146 -host=* | --host=* | --hos=* | --ho=*)
1147 host_alias=$ac_optarg ;;
1149 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1150 ac_prev=htmldir ;;
1151 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1152 | --ht=*)
1153 htmldir=$ac_optarg ;;
1155 -includedir | --includedir | --includedi | --included | --include \
1156 | --includ | --inclu | --incl | --inc)
1157 ac_prev=includedir ;;
1158 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1159 | --includ=* | --inclu=* | --incl=* | --inc=*)
1160 includedir=$ac_optarg ;;
1162 -infodir | --infodir | --infodi | --infod | --info | --inf)
1163 ac_prev=infodir ;;
1164 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1165 infodir=$ac_optarg ;;
1167 -libdir | --libdir | --libdi | --libd)
1168 ac_prev=libdir ;;
1169 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1170 libdir=$ac_optarg ;;
1172 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1173 | --libexe | --libex | --libe)
1174 ac_prev=libexecdir ;;
1175 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1176 | --libexe=* | --libex=* | --libe=*)
1177 libexecdir=$ac_optarg ;;
1179 -localedir | --localedir | --localedi | --localed | --locale)
1180 ac_prev=localedir ;;
1181 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1182 localedir=$ac_optarg ;;
1184 -localstatedir | --localstatedir | --localstatedi | --localstated \
1185 | --localstate | --localstat | --localsta | --localst | --locals)
1186 ac_prev=localstatedir ;;
1187 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1188 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1189 localstatedir=$ac_optarg ;;
1191 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1192 ac_prev=mandir ;;
1193 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1194 mandir=$ac_optarg ;;
1196 -nfp | --nfp | --nf)
1197 # Obsolete; use --without-fp.
1198 with_fp=no ;;
1200 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1201 | --no-cr | --no-c | -n)
1202 no_create=yes ;;
1204 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1205 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1206 no_recursion=yes ;;
1208 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1209 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1210 | --oldin | --oldi | --old | --ol | --o)
1211 ac_prev=oldincludedir ;;
1212 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1213 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1214 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1215 oldincludedir=$ac_optarg ;;
1217 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1218 ac_prev=prefix ;;
1219 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1220 prefix=$ac_optarg ;;
1222 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1223 | --program-pre | --program-pr | --program-p)
1224 ac_prev=program_prefix ;;
1225 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1226 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1227 program_prefix=$ac_optarg ;;
1229 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1230 | --program-suf | --program-su | --program-s)
1231 ac_prev=program_suffix ;;
1232 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1233 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1234 program_suffix=$ac_optarg ;;
1236 -program-transform-name | --program-transform-name \
1237 | --program-transform-nam | --program-transform-na \
1238 | --program-transform-n | --program-transform- \
1239 | --program-transform | --program-transfor \
1240 | --program-transfo | --program-transf \
1241 | --program-trans | --program-tran \
1242 | --progr-tra | --program-tr | --program-t)
1243 ac_prev=program_transform_name ;;
1244 -program-transform-name=* | --program-transform-name=* \
1245 | --program-transform-nam=* | --program-transform-na=* \
1246 | --program-transform-n=* | --program-transform-=* \
1247 | --program-transform=* | --program-transfor=* \
1248 | --program-transfo=* | --program-transf=* \
1249 | --program-trans=* | --program-tran=* \
1250 | --progr-tra=* | --program-tr=* | --program-t=*)
1251 program_transform_name=$ac_optarg ;;
1253 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1254 ac_prev=pdfdir ;;
1255 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1256 pdfdir=$ac_optarg ;;
1258 -psdir | --psdir | --psdi | --psd | --ps)
1259 ac_prev=psdir ;;
1260 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1261 psdir=$ac_optarg ;;
1263 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1264 | -silent | --silent | --silen | --sile | --sil)
1265 silent=yes ;;
1267 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1268 ac_prev=sbindir ;;
1269 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1270 | --sbi=* | --sb=*)
1271 sbindir=$ac_optarg ;;
1273 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1274 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1275 | --sharedst | --shareds | --shared | --share | --shar \
1276 | --sha | --sh)
1277 ac_prev=sharedstatedir ;;
1278 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1279 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1280 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1281 | --sha=* | --sh=*)
1282 sharedstatedir=$ac_optarg ;;
1284 -site | --site | --sit)
1285 ac_prev=site ;;
1286 -site=* | --site=* | --sit=*)
1287 site=$ac_optarg ;;
1289 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1290 ac_prev=srcdir ;;
1291 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1292 srcdir=$ac_optarg ;;
1294 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1295 | --syscon | --sysco | --sysc | --sys | --sy)
1296 ac_prev=sysconfdir ;;
1297 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1298 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1299 sysconfdir=$ac_optarg ;;
1301 -target | --target | --targe | --targ | --tar | --ta | --t)
1302 ac_prev=target_alias ;;
1303 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1304 target_alias=$ac_optarg ;;
1306 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1307 verbose=yes ;;
1309 -version | --version | --versio | --versi | --vers | -V)
1310 ac_init_version=: ;;
1312 -with-* | --with-*)
1313 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1314 # Reject names that are not valid shell variable names.
1315 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1316 as_fn_error "invalid package name: $ac_useropt"
1317 ac_useropt_orig=$ac_useropt
1318 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1319 case $ac_user_opts in
1321 "with_$ac_useropt"
1322 "*) ;;
1323 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1324 ac_unrecognized_sep=', ';;
1325 esac
1326 eval with_$ac_useropt=\$ac_optarg ;;
1328 -without-* | --without-*)
1329 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1330 # Reject names that are not valid shell variable names.
1331 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1332 as_fn_error "invalid package name: $ac_useropt"
1333 ac_useropt_orig=$ac_useropt
1334 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1335 case $ac_user_opts in
1337 "with_$ac_useropt"
1338 "*) ;;
1339 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1340 ac_unrecognized_sep=', ';;
1341 esac
1342 eval with_$ac_useropt=no ;;
1344 --x)
1345 # Obsolete; use --with-x.
1346 with_x=yes ;;
1348 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1349 | --x-incl | --x-inc | --x-in | --x-i)
1350 ac_prev=x_includes ;;
1351 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1352 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1353 x_includes=$ac_optarg ;;
1355 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1356 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1357 ac_prev=x_libraries ;;
1358 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1359 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1360 x_libraries=$ac_optarg ;;
1362 -*) as_fn_error "unrecognized option: \`$ac_option'
1363 Try \`$0 --help' for more information."
1366 *=*)
1367 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1368 # Reject names that are not valid shell variable names.
1369 case $ac_envvar in #(
1370 '' | [0-9]* | *[!_$as_cr_alnum]* )
1371 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1372 esac
1373 eval $ac_envvar=\$ac_optarg
1374 export $ac_envvar ;;
1377 # FIXME: should be removed in autoconf 3.0.
1378 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1379 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1380 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1381 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1384 esac
1385 done
1387 if test -n "$ac_prev"; then
1388 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1389 as_fn_error "missing argument to $ac_option"
1392 if test -n "$ac_unrecognized_opts"; then
1393 case $enable_option_checking in
1394 no) ;;
1395 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1396 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1397 esac
1400 # Check all directory arguments for consistency.
1401 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1402 datadir sysconfdir sharedstatedir localstatedir includedir \
1403 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1404 libdir localedir mandir
1406 eval ac_val=\$$ac_var
1407 # Remove trailing slashes.
1408 case $ac_val in
1409 */ )
1410 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1411 eval $ac_var=\$ac_val;;
1412 esac
1413 # Be sure to have absolute directory names.
1414 case $ac_val in
1415 [\\/$]* | ?:[\\/]* ) continue;;
1416 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1417 esac
1418 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1419 done
1421 # There might be people who depend on the old broken behavior: `$host'
1422 # used to hold the argument of --host etc.
1423 # FIXME: To remove some day.
1424 build=$build_alias
1425 host=$host_alias
1426 target=$target_alias
1428 # FIXME: To remove some day.
1429 if test "x$host_alias" != x; then
1430 if test "x$build_alias" = x; then
1431 cross_compiling=maybe
1432 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1433 If a cross compiler is detected then cross compile mode will be used." >&2
1434 elif test "x$build_alias" != "x$host_alias"; then
1435 cross_compiling=yes
1439 ac_tool_prefix=
1440 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1442 test "$silent" = yes && exec 6>/dev/null
1445 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1446 ac_ls_di=`ls -di .` &&
1447 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1448 as_fn_error "working directory cannot be determined"
1449 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1450 as_fn_error "pwd does not report name of working directory"
1453 # Find the source files, if location was not specified.
1454 if test -z "$srcdir"; then
1455 ac_srcdir_defaulted=yes
1456 # Try the directory containing this script, then the parent directory.
1457 ac_confdir=`$as_dirname -- "$as_myself" ||
1458 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1459 X"$as_myself" : 'X\(//\)[^/]' \| \
1460 X"$as_myself" : 'X\(//\)$' \| \
1461 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1462 $as_echo X"$as_myself" |
1463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1464 s//\1/
1467 /^X\(\/\/\)[^/].*/{
1468 s//\1/
1471 /^X\(\/\/\)$/{
1472 s//\1/
1475 /^X\(\/\).*/{
1476 s//\1/
1479 s/.*/./; q'`
1480 srcdir=$ac_confdir
1481 if test ! -r "$srcdir/$ac_unique_file"; then
1482 srcdir=..
1484 else
1485 ac_srcdir_defaulted=no
1487 if test ! -r "$srcdir/$ac_unique_file"; then
1488 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1489 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1491 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1492 ac_abs_confdir=`(
1493 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1494 pwd)`
1495 # When building in place, set srcdir=.
1496 if test "$ac_abs_confdir" = "$ac_pwd"; then
1497 srcdir=.
1499 # Remove unnecessary trailing slashes from srcdir.
1500 # Double slashes in file names in object file debugging info
1501 # mess up M-x gdb in Emacs.
1502 case $srcdir in
1503 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1504 esac
1505 for ac_var in $ac_precious_vars; do
1506 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1507 eval ac_env_${ac_var}_value=\$${ac_var}
1508 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1509 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1510 done
1513 # Report the --help message.
1515 if test "$ac_init_help" = "long"; then
1516 # Omit some internal or obsolete options to make the list less imposing.
1517 # This message is too long to be a string in the A/UX 3.1 sh.
1518 cat <<_ACEOF
1519 \`configure' configures libjava version-unused to adapt to many kinds of systems.
1521 Usage: $0 [OPTION]... [VAR=VALUE]...
1523 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1524 VAR=VALUE. See below for descriptions of some of the useful variables.
1526 Defaults for the options are specified in brackets.
1528 Configuration:
1529 -h, --help display this help and exit
1530 --help=short display options specific to this package
1531 --help=recursive display the short help of all the included packages
1532 -V, --version display version information and exit
1533 -q, --quiet, --silent do not print \`checking...' messages
1534 --cache-file=FILE cache test results in FILE [disabled]
1535 -C, --config-cache alias for \`--cache-file=config.cache'
1536 -n, --no-create do not create output files
1537 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1539 Installation directories:
1540 --prefix=PREFIX install architecture-independent files in PREFIX
1541 [$ac_default_prefix]
1542 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1543 [PREFIX]
1545 By default, \`make install' will install all the files in
1546 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1547 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1548 for instance \`--prefix=\$HOME'.
1550 For better control, use the options below.
1552 Fine tuning of the installation directories:
1553 --bindir=DIR user executables [EPREFIX/bin]
1554 --sbindir=DIR system admin executables [EPREFIX/sbin]
1555 --libexecdir=DIR program executables [EPREFIX/libexec]
1556 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1557 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1558 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1559 --libdir=DIR object code libraries [EPREFIX/lib]
1560 --includedir=DIR C header files [PREFIX/include]
1561 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1562 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1563 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1564 --infodir=DIR info documentation [DATAROOTDIR/info]
1565 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1566 --mandir=DIR man documentation [DATAROOTDIR/man]
1567 --docdir=DIR documentation root [DATAROOTDIR/doc/libjava]
1568 --htmldir=DIR html documentation [DOCDIR]
1569 --dvidir=DIR dvi documentation [DOCDIR]
1570 --pdfdir=DIR pdf documentation [DOCDIR]
1571 --psdir=DIR ps documentation [DOCDIR]
1572 _ACEOF
1574 cat <<\_ACEOF
1576 Program names:
1577 --program-prefix=PREFIX prepend PREFIX to installed program names
1578 --program-suffix=SUFFIX append SUFFIX to installed program names
1579 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1581 X features:
1582 --x-includes=DIR X include files are in DIR
1583 --x-libraries=DIR X library files are in DIR
1585 System types:
1586 --build=BUILD configure for building on BUILD [guessed]
1587 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1588 --target=TARGET configure for building compilers for TARGET [HOST]
1589 _ACEOF
1592 if test -n "$ac_init_help"; then
1593 case $ac_init_help in
1594 short | recursive ) echo "Configuration of libjava version-unused:";;
1595 esac
1596 cat <<\_ACEOF
1598 Optional Features:
1599 --disable-option-checking ignore unrecognized --enable/--with options
1600 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1601 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1602 --enable-multilib build many library versions (default)
1603 --enable-version-specific-runtime-libs
1604 specify that runtime libraries should be installed
1605 in a compiler-specific directory
1606 --enable-browser-plugin build gcjwebplugin web browser plugin
1607 --enable-gconf-peer compile GConf native peers for util.preferences
1608 --disable-gjdoc compile GJDoc (disabled by --disable-gjdoc)
1609 default=yes
1610 --enable-java-maintainer-mode
1611 allow rebuilding of .class and .h files
1612 --disable-dependency-tracking speeds up one-time build
1613 --enable-dependency-tracking do not reject slow dependency extractors
1614 --enable-maintainer-mode enable make rules and dependencies not useful
1615 (and sometimes confusing) to the casual installer
1616 --enable-libgcj-sublibs build libgcj as many sub-libraries
1617 --enable-libgcj-debug enable runtime debugging code
1618 --enable-java-awt list of AWT peer implementations to be built
1619 --enable-shared[=PKGS] build shared libraries [default=yes]
1620 --enable-static[=PKGS] build static libraries [default=yes]
1621 --enable-fast-install[=PKGS]
1622 optimize for fast installation [default=yes]
1623 --disable-libtool-lock avoid locking (might break parallel builds)
1624 --disable-getenv-properties
1625 don't set system properties from GCJ_PROPERTIES
1626 --enable-hash-synchronization
1627 use global hash table for monitor locks
1628 --enable-libgcj-bc enable(default) or disable BC ABI for portions of
1629 libgcj
1630 --enable-reduced-reflection
1631 enable or disable(default) -freduced-reflection when
1632 building portions of libgcj
1633 --enable-gc-debug include full support for pointer backtracing etc.
1634 --enable-interpreter enable interpreter
1635 --enable-sjlj-exceptions
1636 force use of builtin_setjmp for exceptions
1637 --disable-java-net disable java.net
1638 --disable-jvmpi disable JVMPI support
1639 --enable-java-gc=TYPE choose garbage collector (default is boehm)
1640 --disable-rpath do not hardcode runtime library paths
1641 --enable-tls Use thread-local storage [default=yes]
1642 --enable-aot-compile-rpm
1643 enable installation of aot-compile-rpm [default=no]
1644 --enable-java-home create a standard JDK-style directory layout in the
1645 install tree [default=no]
1647 Optional Packages:
1648 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1649 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1650 --with-build-libsubdir=DIR Directory where to find libraries for build system
1651 --with-target-subdir=SUBDIR
1652 configure in a subdirectory
1653 --with-cross-host=HOST configure with a cross compiler from HOST
1654 --with-newlib configure with newlib
1655 --with-antlr-jar=file Use ANTLR from the specified jar file
1656 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
1657 --with-pic try to use only PIC/non-PIC objects [default=use
1658 both]
1659 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1660 --with-ecj-jar=FILE use preinstalled ecj jar
1661 --with-java-home=DIRECTORY
1662 value of java.home system property
1663 --with-win32-nlsapi=ansi or unicows or unicode
1664 native MinGW libgcj Win32 OS API (default is ansi)
1665 --without-libffi don't use libffi
1666 --with-ecos enable runtime eCos target support
1667 --with-system-zlib use installed libz
1668 --with-x use the X Window System
1669 --with-gnu-ld assume the C compiler uses GNU ld default=no
1670 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1671 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1672 --with-system-libunwind use installed libunwind
1673 --with-python-dir the location to install Python modules. This path
1674 should NOT include the prefix.
1675 --with-gcc-suffix the GCC tool suffix (defaults to empty string)
1676 --with-arch-directory the arch directory under jre/lib (defaults to
1677 auto-detect)
1678 --with-os-directory the os directory under include (defaults to
1679 auto-detect)
1680 --with-origin-name the JPackage origin name of this package (default is
1681 gcj${gcc_suffix}
1682 --with-arch-suffix the arch directory suffix (default is the empty
1683 string
1684 --with-jvm-root-dir where to install SDK (default is ${prefix}/lib/jvm)
1685 --with-jvm-jar-dir where to install jars (default is
1686 ${prefix}/lib/jvm-exports)
1688 Some influential environment variables:
1689 CC C compiler command
1690 CFLAGS C compiler flags
1691 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1692 nonstandard directory <lib dir>
1693 LIBS libraries to pass to the linker, e.g. -l<library>
1694 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1695 you have headers in a nonstandard directory <include dir>
1696 CXX C++ compiler command
1697 CXXFLAGS C++ compiler flags
1698 CPP C preprocessor
1699 CXXCPP C++ preprocessor
1700 XMKMF Path to xmkmf, Makefile generator for X Window System
1702 Use these variables to override the choices made by `configure' or to help
1703 it to find libraries and programs with nonstandard names/locations.
1705 Report bugs to the package provider.
1706 _ACEOF
1707 ac_status=$?
1710 if test "$ac_init_help" = "recursive"; then
1711 # If there are subdirs, report their specific --help.
1712 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1713 test -d "$ac_dir" ||
1714 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1715 continue
1716 ac_builddir=.
1718 case "$ac_dir" in
1719 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1721 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1722 # A ".." for each directory in $ac_dir_suffix.
1723 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1724 case $ac_top_builddir_sub in
1725 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1726 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1727 esac ;;
1728 esac
1729 ac_abs_top_builddir=$ac_pwd
1730 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1731 # for backward compatibility:
1732 ac_top_builddir=$ac_top_build_prefix
1734 case $srcdir in
1735 .) # We are building in place.
1736 ac_srcdir=.
1737 ac_top_srcdir=$ac_top_builddir_sub
1738 ac_abs_top_srcdir=$ac_pwd ;;
1739 [\\/]* | ?:[\\/]* ) # Absolute name.
1740 ac_srcdir=$srcdir$ac_dir_suffix;
1741 ac_top_srcdir=$srcdir
1742 ac_abs_top_srcdir=$srcdir ;;
1743 *) # Relative name.
1744 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1745 ac_top_srcdir=$ac_top_build_prefix$srcdir
1746 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1747 esac
1748 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1750 cd "$ac_dir" || { ac_status=$?; continue; }
1751 # Check for guested configure.
1752 if test -f "$ac_srcdir/configure.gnu"; then
1753 echo &&
1754 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1755 elif test -f "$ac_srcdir/configure"; then
1756 echo &&
1757 $SHELL "$ac_srcdir/configure" --help=recursive
1758 else
1759 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1760 fi || ac_status=$?
1761 cd "$ac_pwd" || { ac_status=$?; break; }
1762 done
1765 test -n "$ac_init_help" && exit $ac_status
1766 if $ac_init_version; then
1767 cat <<\_ACEOF
1768 libjava configure version-unused
1769 generated by GNU Autoconf 2.64
1771 Copyright (C) 2009 Free Software Foundation, Inc.
1772 This configure script is free software; the Free Software Foundation
1773 gives unlimited permission to copy, distribute and modify it.
1774 _ACEOF
1775 exit
1778 ## ------------------------ ##
1779 ## Autoconf initialization. ##
1780 ## ------------------------ ##
1782 # ac_fn_c_try_compile LINENO
1783 # --------------------------
1784 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1785 ac_fn_c_try_compile ()
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 rm -f conftest.$ac_objext
1789 if { { ac_try="$ac_compile"
1790 case "(($ac_try" in
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1793 esac
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_compile") 2>conftest.err
1797 ac_status=$?
1798 if test -s conftest.err; then
1799 grep -v '^ *+' conftest.err >conftest.er1
1800 cat conftest.er1 >&5
1801 mv -f conftest.er1 conftest.err
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; } && {
1805 test -z "$ac_c_werror_flag" ||
1806 test ! -s conftest.err
1807 } && test -s conftest.$ac_objext; then :
1808 ac_retval=0
1809 else
1810 $as_echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1813 ac_retval=1
1815 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1816 return $ac_retval
1818 } # ac_fn_c_try_compile
1820 # ac_fn_cxx_try_compile LINENO
1821 # ----------------------------
1822 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1823 ac_fn_cxx_try_compile ()
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 rm -f conftest.$ac_objext
1827 if { { ac_try="$ac_compile"
1828 case "(($ac_try" in
1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830 *) ac_try_echo=$ac_try;;
1831 esac
1832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833 $as_echo "$ac_try_echo"; } >&5
1834 (eval "$ac_compile") 2>conftest.err
1835 ac_status=$?
1836 if test -s conftest.err; then
1837 grep -v '^ *+' conftest.err >conftest.er1
1838 cat conftest.er1 >&5
1839 mv -f conftest.er1 conftest.err
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; } && {
1843 test -z "$ac_cxx_werror_flag" ||
1844 test ! -s conftest.err
1845 } && test -s conftest.$ac_objext; then :
1846 ac_retval=0
1847 else
1848 $as_echo "$as_me: failed program was:" >&5
1849 sed 's/^/| /' conftest.$ac_ext >&5
1851 ac_retval=1
1853 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1854 return $ac_retval
1856 } # ac_fn_cxx_try_compile
1858 # ac_fn_c_try_link LINENO
1859 # -----------------------
1860 # Try to link conftest.$ac_ext, and return whether this succeeded.
1861 ac_fn_c_try_link ()
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 rm -f conftest.$ac_objext conftest$ac_exeext
1865 if { { ac_try="$ac_link"
1866 case "(($ac_try" in
1867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1868 *) ac_try_echo=$ac_try;;
1869 esac
1870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1871 $as_echo "$ac_try_echo"; } >&5
1872 (eval "$ac_link") 2>conftest.err
1873 ac_status=$?
1874 if test -s conftest.err; then
1875 grep -v '^ *+' conftest.err >conftest.er1
1876 cat conftest.er1 >&5
1877 mv -f conftest.er1 conftest.err
1879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1880 test $ac_status = 0; } && {
1881 test -z "$ac_c_werror_flag" ||
1882 test ! -s conftest.err
1883 } && test -s conftest$ac_exeext && {
1884 test "$cross_compiling" = yes ||
1885 $as_test_x conftest$ac_exeext
1886 }; then :
1887 ac_retval=0
1888 else
1889 $as_echo "$as_me: failed program was:" >&5
1890 sed 's/^/| /' conftest.$ac_ext >&5
1892 ac_retval=1
1894 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1895 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1896 # interfere with the next link command; also delete a directory that is
1897 # left behind by Apple's compiler. We do this before executing the actions.
1898 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1899 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1900 return $ac_retval
1902 } # ac_fn_c_try_link
1904 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1905 # -------------------------------------------------------
1906 # Tests whether HEADER exists and can be compiled using the include files in
1907 # INCLUDES, setting the cache variable VAR accordingly.
1908 ac_fn_c_check_header_compile ()
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912 $as_echo_n "checking for $2... " >&6; }
1913 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1914 $as_echo_n "(cached) " >&6
1915 else
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h. */
1919 #include <$2>
1920 _ACEOF
1921 if ac_fn_c_try_compile "$LINENO"; then :
1922 eval "$3=yes"
1923 else
1924 eval "$3=no"
1926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1928 eval ac_res=\$$3
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930 $as_echo "$ac_res" >&6; }
1931 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1933 } # ac_fn_c_check_header_compile
1935 # ac_fn_c_try_cpp LINENO
1936 # ----------------------
1937 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1938 ac_fn_c_try_cpp ()
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 if { { ac_try="$ac_cpp conftest.$ac_ext"
1942 case "(($ac_try" in
1943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944 *) ac_try_echo=$ac_try;;
1945 esac
1946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947 $as_echo "$ac_try_echo"; } >&5
1948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1949 ac_status=$?
1950 if test -s conftest.err; then
1951 grep -v '^ *+' conftest.err >conftest.er1
1952 cat conftest.er1 >&5
1953 mv -f conftest.er1 conftest.err
1955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956 test $ac_status = 0; } >/dev/null && {
1957 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1958 test ! -s conftest.err
1959 }; then :
1960 ac_retval=0
1961 else
1962 $as_echo "$as_me: failed program was:" >&5
1963 sed 's/^/| /' conftest.$ac_ext >&5
1965 ac_retval=1
1967 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1968 return $ac_retval
1970 } # ac_fn_c_try_cpp
1972 # ac_fn_c_try_run LINENO
1973 # ----------------------
1974 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1975 # that executables *can* be run.
1976 ac_fn_c_try_run ()
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 if { { ac_try="$ac_link"
1980 case "(($ac_try" in
1981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1982 *) ac_try_echo=$ac_try;;
1983 esac
1984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1985 $as_echo "$ac_try_echo"; } >&5
1986 (eval "$ac_link") 2>&5
1987 ac_status=$?
1988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1989 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1990 { { case "(($ac_try" in
1991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1992 *) ac_try_echo=$ac_try;;
1993 esac
1994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1995 $as_echo "$ac_try_echo"; } >&5
1996 (eval "$ac_try") 2>&5
1997 ac_status=$?
1998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999 test $ac_status = 0; }; }; then :
2000 ac_retval=0
2001 else
2002 $as_echo "$as_me: program exited with status $ac_status" >&5
2003 $as_echo "$as_me: failed program was:" >&5
2004 sed 's/^/| /' conftest.$ac_ext >&5
2006 ac_retval=$ac_status
2008 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2009 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2010 return $ac_retval
2012 } # ac_fn_c_try_run
2014 # ac_fn_c_check_func LINENO FUNC VAR
2015 # ----------------------------------
2016 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2017 ac_fn_c_check_func ()
2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2021 $as_echo_n "checking for $2... " >&6; }
2022 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2023 $as_echo_n "(cached) " >&6
2024 else
2025 if test x$gcc_no_link = xyes; then
2026 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2030 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2032 #define $2 innocuous_$2
2034 /* System header to define __stub macros and hopefully few prototypes,
2035 which can conflict with char $2 (); below.
2036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2037 <limits.h> exists even on freestanding compilers. */
2039 #ifdef __STDC__
2040 # include <limits.h>
2041 #else
2042 # include <assert.h>
2043 #endif
2045 #undef $2
2047 /* Override any GCC internal prototype to avoid an error.
2048 Use char because int might match the return type of a GCC
2049 builtin and then its argument prototype would still apply. */
2050 #ifdef __cplusplus
2051 extern "C"
2052 #endif
2053 char $2 ();
2054 /* The GNU C library defines this for functions which it implements
2055 to always fail with ENOSYS. Some functions are actually named
2056 something starting with __ and the normal name is an alias. */
2057 #if defined __stub_$2 || defined __stub___$2
2058 choke me
2059 #endif
2062 main ()
2064 return $2 ();
2066 return 0;
2068 _ACEOF
2069 if ac_fn_c_try_link "$LINENO"; then :
2070 eval "$3=yes"
2071 else
2072 eval "$3=no"
2074 rm -f core conftest.err conftest.$ac_objext \
2075 conftest$ac_exeext conftest.$ac_ext
2077 eval ac_res=\$$3
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079 $as_echo "$ac_res" >&6; }
2080 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2082 } # ac_fn_c_check_func
2084 # ac_fn_cxx_try_cpp LINENO
2085 # ------------------------
2086 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2087 ac_fn_cxx_try_cpp ()
2089 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090 if { { ac_try="$ac_cpp conftest.$ac_ext"
2091 case "(($ac_try" in
2092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093 *) ac_try_echo=$ac_try;;
2094 esac
2095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2096 $as_echo "$ac_try_echo"; } >&5
2097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2098 ac_status=$?
2099 if test -s conftest.err; then
2100 grep -v '^ *+' conftest.err >conftest.er1
2101 cat conftest.er1 >&5
2102 mv -f conftest.er1 conftest.err
2104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2105 test $ac_status = 0; } >/dev/null && {
2106 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2107 test ! -s conftest.err
2108 }; then :
2109 ac_retval=0
2110 else
2111 $as_echo "$as_me: failed program was:" >&5
2112 sed 's/^/| /' conftest.$ac_ext >&5
2114 ac_retval=1
2116 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2117 return $ac_retval
2119 } # ac_fn_cxx_try_cpp
2121 # ac_fn_cxx_try_link LINENO
2122 # -------------------------
2123 # Try to link conftest.$ac_ext, and return whether this succeeded.
2124 ac_fn_cxx_try_link ()
2126 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2127 rm -f conftest.$ac_objext conftest$ac_exeext
2128 if { { ac_try="$ac_link"
2129 case "(($ac_try" in
2130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2131 *) ac_try_echo=$ac_try;;
2132 esac
2133 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2134 $as_echo "$ac_try_echo"; } >&5
2135 (eval "$ac_link") 2>conftest.err
2136 ac_status=$?
2137 if test -s conftest.err; then
2138 grep -v '^ *+' conftest.err >conftest.er1
2139 cat conftest.er1 >&5
2140 mv -f conftest.er1 conftest.err
2142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2143 test $ac_status = 0; } && {
2144 test -z "$ac_cxx_werror_flag" ||
2145 test ! -s conftest.err
2146 } && test -s conftest$ac_exeext && {
2147 test "$cross_compiling" = yes ||
2148 $as_test_x conftest$ac_exeext
2149 }; then :
2150 ac_retval=0
2151 else
2152 $as_echo "$as_me: failed program was:" >&5
2153 sed 's/^/| /' conftest.$ac_ext >&5
2155 ac_retval=1
2157 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2158 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2159 # interfere with the next link command; also delete a directory that is
2160 # left behind by Apple's compiler. We do this before executing the actions.
2161 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2162 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2163 return $ac_retval
2165 } # ac_fn_cxx_try_link
2167 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2168 # -------------------------------------------------------
2169 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2170 # the include files in INCLUDES and setting the cache variable VAR
2171 # accordingly.
2172 ac_fn_c_check_header_mongrel ()
2174 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2177 $as_echo_n "checking for $2... " >&6; }
2178 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2179 $as_echo_n "(cached) " >&6
2181 eval ac_res=\$$3
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2183 $as_echo "$ac_res" >&6; }
2184 else
2185 # Is the header compilable?
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2187 $as_echo_n "checking $2 usability... " >&6; }
2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189 /* end confdefs.h. */
2191 #include <$2>
2192 _ACEOF
2193 if ac_fn_c_try_compile "$LINENO"; then :
2194 ac_header_compiler=yes
2195 else
2196 ac_header_compiler=no
2198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2200 $as_echo "$ac_header_compiler" >&6; }
2202 # Is the header present?
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2204 $as_echo_n "checking $2 presence... " >&6; }
2205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2206 /* end confdefs.h. */
2207 #include <$2>
2208 _ACEOF
2209 if ac_fn_c_try_cpp "$LINENO"; then :
2210 ac_header_preproc=yes
2211 else
2212 ac_header_preproc=no
2214 rm -f conftest.err conftest.$ac_ext
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2216 $as_echo "$ac_header_preproc" >&6; }
2218 # So? What about this header?
2219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2220 yes:no: )
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2222 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2224 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2226 no:yes:* )
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2228 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2230 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2232 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2234 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2236 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2238 esac
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2240 $as_echo_n "checking for $2... " >&6; }
2241 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2242 $as_echo_n "(cached) " >&6
2243 else
2244 eval "$3=\$ac_header_compiler"
2246 eval ac_res=\$$3
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2248 $as_echo "$ac_res" >&6; }
2250 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2252 } # ac_fn_c_check_header_mongrel
2254 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2255 # ----------------------------------------------------
2256 # Tries to find if the field MEMBER exists in type AGGR, after including
2257 # INCLUDES, setting cache variable VAR accordingly.
2258 ac_fn_c_check_member ()
2260 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2262 $as_echo_n "checking for $2.$3... " >&6; }
2263 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2264 $as_echo_n "(cached) " >&6
2265 else
2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h. */
2270 main ()
2272 static $2 ac_aggr;
2273 if (ac_aggr.$3)
2274 return 0;
2276 return 0;
2278 _ACEOF
2279 if ac_fn_c_try_compile "$LINENO"; then :
2280 eval "$4=yes"
2281 else
2282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h. */
2286 main ()
2288 static $2 ac_aggr;
2289 if (sizeof ac_aggr.$3)
2290 return 0;
2292 return 0;
2294 _ACEOF
2295 if ac_fn_c_try_compile "$LINENO"; then :
2296 eval "$4=yes"
2297 else
2298 eval "$4=no"
2300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2304 eval ac_res=\$$4
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2306 $as_echo "$ac_res" >&6; }
2307 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2309 } # ac_fn_c_check_member
2311 # ac_fn_c_check_decl LINENO SYMBOL VAR
2312 # ------------------------------------
2313 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2314 ac_fn_c_check_decl ()
2316 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2318 $as_echo_n "checking whether $2 is declared... " >&6; }
2319 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2320 $as_echo_n "(cached) " >&6
2321 else
2322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323 /* end confdefs.h. */
2326 main ()
2328 #ifndef $2
2329 (void) $2;
2330 #endif
2333 return 0;
2335 _ACEOF
2336 if ac_fn_c_try_compile "$LINENO"; then :
2337 eval "$3=yes"
2338 else
2339 eval "$3=no"
2341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2343 eval ac_res=\$$3
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2345 $as_echo "$ac_res" >&6; }
2346 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2348 } # ac_fn_c_check_decl
2350 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2351 # --------------------------------------------
2352 # Tries to find the compile-time value of EXPR in a program that includes
2353 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2354 # computed
2355 ac_fn_c_compute_int ()
2357 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2358 if test "$cross_compiling" = yes; then
2359 # Depending upon the size, compute the lo and hi bounds.
2360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2361 /* end confdefs.h. */
2364 main ()
2366 static int test_array [1 - 2 * !(($2) >= 0)];
2367 test_array [0] = 0
2370 return 0;
2372 _ACEOF
2373 if ac_fn_c_try_compile "$LINENO"; then :
2374 ac_lo=0 ac_mid=0
2375 while :; do
2376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2377 /* end confdefs.h. */
2380 main ()
2382 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2383 test_array [0] = 0
2386 return 0;
2388 _ACEOF
2389 if ac_fn_c_try_compile "$LINENO"; then :
2390 ac_hi=$ac_mid; break
2391 else
2392 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2393 if test $ac_lo -le $ac_mid; then
2394 ac_lo= ac_hi=
2395 break
2397 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2400 done
2401 else
2402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2403 /* end confdefs.h. */
2406 main ()
2408 static int test_array [1 - 2 * !(($2) < 0)];
2409 test_array [0] = 0
2412 return 0;
2414 _ACEOF
2415 if ac_fn_c_try_compile "$LINENO"; then :
2416 ac_hi=-1 ac_mid=-1
2417 while :; do
2418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2419 /* end confdefs.h. */
2422 main ()
2424 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2425 test_array [0] = 0
2428 return 0;
2430 _ACEOF
2431 if ac_fn_c_try_compile "$LINENO"; then :
2432 ac_lo=$ac_mid; break
2433 else
2434 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2435 if test $ac_mid -le $ac_hi; then
2436 ac_lo= ac_hi=
2437 break
2439 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2442 done
2443 else
2444 ac_lo= ac_hi=
2446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2449 # Binary search between lo and hi bounds.
2450 while test "x$ac_lo" != "x$ac_hi"; do
2451 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2453 /* end confdefs.h. */
2456 main ()
2458 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2459 test_array [0] = 0
2462 return 0;
2464 _ACEOF
2465 if ac_fn_c_try_compile "$LINENO"; then :
2466 ac_hi=$ac_mid
2467 else
2468 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2471 done
2472 case $ac_lo in #((
2473 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2474 '') ac_retval=1 ;;
2475 esac
2476 else
2477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2478 /* end confdefs.h. */
2480 static long int longval () { return $2; }
2481 static unsigned long int ulongval () { return $2; }
2482 #include <stdio.h>
2483 #include <stdlib.h>
2485 main ()
2488 FILE *f = fopen ("conftest.val", "w");
2489 if (! f)
2490 return 1;
2491 if (($2) < 0)
2493 long int i = longval ();
2494 if (i != ($2))
2495 return 1;
2496 fprintf (f, "%ld", i);
2498 else
2500 unsigned long int i = ulongval ();
2501 if (i != ($2))
2502 return 1;
2503 fprintf (f, "%lu", i);
2505 /* Do not output a trailing newline, as this causes \r\n confusion
2506 on some platforms. */
2507 return ferror (f) || fclose (f) != 0;
2510 return 0;
2512 _ACEOF
2513 if ac_fn_c_try_run "$LINENO"; then :
2514 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2515 else
2516 ac_retval=1
2518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2519 conftest.$ac_objext conftest.beam conftest.$ac_ext
2520 rm -f conftest.val
2523 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2524 return $ac_retval
2526 } # ac_fn_c_compute_int
2528 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2529 # -------------------------------------------
2530 # Tests whether TYPE exists after having included INCLUDES, setting cache
2531 # variable VAR accordingly.
2532 ac_fn_c_check_type ()
2534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2536 $as_echo_n "checking for $2... " >&6; }
2537 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2538 $as_echo_n "(cached) " >&6
2539 else
2540 eval "$3=no"
2541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2542 /* end confdefs.h. */
2545 main ()
2547 if (sizeof ($2))
2548 return 0;
2550 return 0;
2552 _ACEOF
2553 if ac_fn_c_try_compile "$LINENO"; then :
2554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2558 main ()
2560 if (sizeof (($2)))
2561 return 0;
2563 return 0;
2565 _ACEOF
2566 if ac_fn_c_try_compile "$LINENO"; then :
2568 else
2569 eval "$3=yes"
2571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2575 eval ac_res=\$$3
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2577 $as_echo "$ac_res" >&6; }
2578 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2580 } # ac_fn_c_check_type
2581 cat >config.log <<_ACEOF
2582 This file contains any messages produced by compilers while
2583 running configure, to aid debugging if configure makes a mistake.
2585 It was created by libjava $as_me version-unused, which was
2586 generated by GNU Autoconf 2.64. Invocation command line was
2588 $ $0 $@
2590 _ACEOF
2591 exec 5>>config.log
2593 cat <<_ASUNAME
2594 ## --------- ##
2595 ## Platform. ##
2596 ## --------- ##
2598 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2599 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2600 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2601 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2602 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2604 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2605 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2607 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2608 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2609 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2610 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2611 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2612 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2613 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2615 _ASUNAME
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618 for as_dir in $PATH
2620 IFS=$as_save_IFS
2621 test -z "$as_dir" && as_dir=.
2622 $as_echo "PATH: $as_dir"
2623 done
2624 IFS=$as_save_IFS
2626 } >&5
2628 cat >&5 <<_ACEOF
2631 ## ----------- ##
2632 ## Core tests. ##
2633 ## ----------- ##
2635 _ACEOF
2638 # Keep a trace of the command line.
2639 # Strip out --no-create and --no-recursion so they do not pile up.
2640 # Strip out --silent because we don't want to record it for future runs.
2641 # Also quote any args containing shell meta-characters.
2642 # Make two passes to allow for proper duplicate-argument suppression.
2643 ac_configure_args=
2644 ac_configure_args0=
2645 ac_configure_args1=
2646 ac_must_keep_next=false
2647 for ac_pass in 1 2
2649 for ac_arg
2651 case $ac_arg in
2652 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2653 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2654 | -silent | --silent | --silen | --sile | --sil)
2655 continue ;;
2656 *\'*)
2657 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2658 esac
2659 case $ac_pass in
2660 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2662 as_fn_append ac_configure_args1 " '$ac_arg'"
2663 if test $ac_must_keep_next = true; then
2664 ac_must_keep_next=false # Got value, back to normal.
2665 else
2666 case $ac_arg in
2667 *=* | --config-cache | -C | -disable-* | --disable-* \
2668 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2669 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2670 | -with-* | --with-* | -without-* | --without-* | --x)
2671 case "$ac_configure_args0 " in
2672 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2673 esac
2675 -* ) ac_must_keep_next=true ;;
2676 esac
2678 as_fn_append ac_configure_args " '$ac_arg'"
2680 esac
2681 done
2682 done
2683 { ac_configure_args0=; unset ac_configure_args0;}
2684 { ac_configure_args1=; unset ac_configure_args1;}
2686 # When interrupted or exit'd, cleanup temporary files, and complete
2687 # config.log. We remove comments because anyway the quotes in there
2688 # would cause problems or look ugly.
2689 # WARNING: Use '\'' to represent an apostrophe within the trap.
2690 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2691 trap 'exit_status=$?
2692 # Save into config.log some information that might help in debugging.
2694 echo
2696 cat <<\_ASBOX
2697 ## ---------------- ##
2698 ## Cache variables. ##
2699 ## ---------------- ##
2700 _ASBOX
2701 echo
2702 # The following way of writing the cache mishandles newlines in values,
2704 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2705 eval ac_val=\$$ac_var
2706 case $ac_val in #(
2707 *${as_nl}*)
2708 case $ac_var in #(
2709 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2710 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2711 esac
2712 case $ac_var in #(
2713 _ | IFS | as_nl) ;; #(
2714 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2715 *) { eval $ac_var=; unset $ac_var;} ;;
2716 esac ;;
2717 esac
2718 done
2719 (set) 2>&1 |
2720 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2721 *${as_nl}ac_space=\ *)
2722 sed -n \
2723 "s/'\''/'\''\\\\'\'''\''/g;
2724 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2725 ;; #(
2727 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2729 esac |
2730 sort
2732 echo
2734 cat <<\_ASBOX
2735 ## ----------------- ##
2736 ## Output variables. ##
2737 ## ----------------- ##
2738 _ASBOX
2739 echo
2740 for ac_var in $ac_subst_vars
2742 eval ac_val=\$$ac_var
2743 case $ac_val in
2744 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2745 esac
2746 $as_echo "$ac_var='\''$ac_val'\''"
2747 done | sort
2748 echo
2750 if test -n "$ac_subst_files"; then
2751 cat <<\_ASBOX
2752 ## ------------------- ##
2753 ## File substitutions. ##
2754 ## ------------------- ##
2755 _ASBOX
2756 echo
2757 for ac_var in $ac_subst_files
2759 eval ac_val=\$$ac_var
2760 case $ac_val in
2761 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2762 esac
2763 $as_echo "$ac_var='\''$ac_val'\''"
2764 done | sort
2765 echo
2768 if test -s confdefs.h; then
2769 cat <<\_ASBOX
2770 ## ----------- ##
2771 ## confdefs.h. ##
2772 ## ----------- ##
2773 _ASBOX
2774 echo
2775 cat confdefs.h
2776 echo
2778 test "$ac_signal" != 0 &&
2779 $as_echo "$as_me: caught signal $ac_signal"
2780 $as_echo "$as_me: exit $exit_status"
2781 } >&5
2782 rm -f core *.core core.conftest.* &&
2783 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2784 exit $exit_status
2786 for ac_signal in 1 2 13 15; do
2787 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2788 done
2789 ac_signal=0
2791 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2792 rm -f -r conftest* confdefs.h
2794 $as_echo "/* confdefs.h */" > confdefs.h
2796 # Predefined preprocessor variables.
2798 cat >>confdefs.h <<_ACEOF
2799 #define PACKAGE_NAME "$PACKAGE_NAME"
2800 _ACEOF
2802 cat >>confdefs.h <<_ACEOF
2803 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2804 _ACEOF
2806 cat >>confdefs.h <<_ACEOF
2807 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2808 _ACEOF
2810 cat >>confdefs.h <<_ACEOF
2811 #define PACKAGE_STRING "$PACKAGE_STRING"
2812 _ACEOF
2814 cat >>confdefs.h <<_ACEOF
2815 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2816 _ACEOF
2818 cat >>confdefs.h <<_ACEOF
2819 #define PACKAGE_URL "$PACKAGE_URL"
2820 _ACEOF
2823 # Let the site file select an alternate cache file if it wants to.
2824 # Prefer an explicitly selected file to automatically selected ones.
2825 ac_site_file1=NONE
2826 ac_site_file2=NONE
2827 if test -n "$CONFIG_SITE"; then
2828 ac_site_file1=$CONFIG_SITE
2829 elif test "x$prefix" != xNONE; then
2830 ac_site_file1=$prefix/share/config.site
2831 ac_site_file2=$prefix/etc/config.site
2832 else
2833 ac_site_file1=$ac_default_prefix/share/config.site
2834 ac_site_file2=$ac_default_prefix/etc/config.site
2836 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2838 test "x$ac_site_file" = xNONE && continue
2839 if test -r "$ac_site_file"; then
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2841 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2842 sed 's/^/| /' "$ac_site_file" >&5
2843 . "$ac_site_file"
2845 done
2847 if test -r "$cache_file"; then
2848 # Some versions of bash will fail to source /dev/null (special
2849 # files actually), so we avoid doing that.
2850 if test -f "$cache_file"; then
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2852 $as_echo "$as_me: loading cache $cache_file" >&6;}
2853 case $cache_file in
2854 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2855 *) . "./$cache_file";;
2856 esac
2858 else
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2860 $as_echo "$as_me: creating cache $cache_file" >&6;}
2861 >$cache_file
2864 # Check that the precious variables saved in the cache have kept the same
2865 # value.
2866 ac_cache_corrupted=false
2867 for ac_var in $ac_precious_vars; do
2868 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2869 eval ac_new_set=\$ac_env_${ac_var}_set
2870 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2871 eval ac_new_val=\$ac_env_${ac_var}_value
2872 case $ac_old_set,$ac_new_set in
2873 set,)
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2875 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2876 ac_cache_corrupted=: ;;
2877 ,set)
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2879 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2880 ac_cache_corrupted=: ;;
2881 ,);;
2883 if test "x$ac_old_val" != "x$ac_new_val"; then
2884 # differences in whitespace do not lead to failure.
2885 ac_old_val_w=`echo x $ac_old_val`
2886 ac_new_val_w=`echo x $ac_new_val`
2887 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2889 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2890 ac_cache_corrupted=:
2891 else
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2893 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2894 eval $ac_var=\$ac_old_val
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2897 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2899 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2900 fi;;
2901 esac
2902 # Pass precious variables to config.status.
2903 if test "$ac_new_set" = set; then
2904 case $ac_new_val in
2905 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2906 *) ac_arg=$ac_var=$ac_new_val ;;
2907 esac
2908 case " $ac_configure_args " in
2909 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2910 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2911 esac
2913 done
2914 if $ac_cache_corrupted; then
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2918 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2919 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2921 ## -------------------- ##
2922 ## Main body of script. ##
2923 ## -------------------- ##
2925 ac_ext=c
2926 ac_cpp='$CPP $CPPFLAGS'
2927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2938 ac_aux_dir=
2939 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2940 for ac_t in install-sh install.sh shtool; do
2941 if test -f "$ac_dir/$ac_t"; then
2942 ac_aux_dir=$ac_dir
2943 ac_install_sh="$ac_aux_dir/$ac_t -c"
2944 break 2
2946 done
2947 done
2948 if test -z "$ac_aux_dir"; then
2949 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2952 # These three variables are undocumented and unsupported,
2953 # and are intended to be withdrawn in a future Autoconf release.
2954 # They can cause serious problems if a builder's source tree is in a directory
2955 # whose full name contains unusual characters.
2956 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2957 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2958 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2961 # Make sure we can run config.sub.
2962 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2963 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2966 $as_echo_n "checking build system type... " >&6; }
2967 if test "${ac_cv_build+set}" = set; then :
2968 $as_echo_n "(cached) " >&6
2969 else
2970 ac_build_alias=$build_alias
2971 test "x$ac_build_alias" = x &&
2972 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2973 test "x$ac_build_alias" = x &&
2974 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2975 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2976 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2980 $as_echo "$ac_cv_build" >&6; }
2981 case $ac_cv_build in
2982 *-*-*) ;;
2983 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2984 esac
2985 build=$ac_cv_build
2986 ac_save_IFS=$IFS; IFS='-'
2987 set x $ac_cv_build
2988 shift
2989 build_cpu=$1
2990 build_vendor=$2
2991 shift; shift
2992 # Remember, the first character of IFS is used to create $*,
2993 # except with old shells:
2994 build_os=$*
2995 IFS=$ac_save_IFS
2996 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2999 case ${build_alias} in
3000 "") build_noncanonical=${build} ;;
3001 *) build_noncanonical=${build_alias} ;;
3002 esac
3004 case ${host_alias} in
3005 "") host_noncanonical=${build_noncanonical} ;;
3006 *) host_noncanonical=${host_alias} ;;
3007 esac
3009 case ${target_alias} in
3010 "") target_noncanonical=${host_noncanonical} ;;
3011 *) target_noncanonical=${target_alias} ;;
3012 esac
3015 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3016 # have matching libraries, they should use host libraries: Makefile.tpl
3017 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3018 # However, they still use the build modules, because the corresponding
3019 # host modules (e.g. bison) are only built for the host when bootstrap
3020 # finishes. So:
3021 # - build_subdir is where we find build modules, and never changes.
3022 # - build_libsubdir is where we find build libraries, and can be overridden.
3024 # Prefix 'build-' so this never conflicts with target_subdir.
3025 build_subdir="build-${build_noncanonical}"
3027 # Check whether --with-build-libsubdir was given.
3028 if test "${with_build_libsubdir+set}" = set; then :
3029 withval=$with_build_libsubdir; build_libsubdir="$withval"
3030 else
3031 build_libsubdir="$build_subdir"
3034 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3035 if ( test $srcdir = . && test -d gcc ) \
3036 || test -d $srcdir/../host-${host_noncanonical}; then
3037 host_subdir="host-${host_noncanonical}"
3038 else
3039 host_subdir=.
3041 # No prefix.
3042 target_subdir=${target_noncanonical}
3045 # We use these options to decide which functions to include.
3047 # Check whether --with-target-subdir was given.
3048 if test "${with_target_subdir+set}" = set; then :
3049 withval=$with_target_subdir;
3053 # We may get other options which we don't document:
3054 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3056 # Find the rest of the source tree framework.
3057 # Default to --enable-multilib
3058 # Check whether --enable-multilib was given.
3059 if test "${enable_multilib+set}" = set; then :
3060 enableval=$enable_multilib; case "$enableval" in
3061 yes) multilib=yes ;;
3062 no) multilib=no ;;
3063 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3064 esac
3065 else
3066 multilib=yes
3070 # We may get other options which we leave undocumented:
3071 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3072 # See config-ml.in if you want the gory details.
3074 if test "$srcdir" = "."; then
3075 if test "$with_target_subdir" != "."; then
3076 multi_basedir="$srcdir/$with_multisrctop../.."
3077 else
3078 multi_basedir="$srcdir/$with_multisrctop.."
3080 else
3081 multi_basedir="$srcdir/.."
3085 # Even if the default multilib is not a cross compilation,
3086 # it may be that some of the other multilibs are.
3087 if test $cross_compiling = no && test $multilib = yes \
3088 && test "x${with_multisubdir}" != x ; then
3089 cross_compiling=maybe
3092 ac_config_commands="$ac_config_commands default-1"
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3096 $as_echo_n "checking host system type... " >&6; }
3097 if test "${ac_cv_host+set}" = set; then :
3098 $as_echo_n "(cached) " >&6
3099 else
3100 if test "x$host_alias" = x; then
3101 ac_cv_host=$ac_cv_build
3102 else
3103 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3104 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3109 $as_echo "$ac_cv_host" >&6; }
3110 case $ac_cv_host in
3111 *-*-*) ;;
3112 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3113 esac
3114 host=$ac_cv_host
3115 ac_save_IFS=$IFS; IFS='-'
3116 set x $ac_cv_host
3117 shift
3118 host_cpu=$1
3119 host_vendor=$2
3120 shift; shift
3121 # Remember, the first character of IFS is used to create $*,
3122 # except with old shells:
3123 host_os=$*
3124 IFS=$ac_save_IFS
3125 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3129 $as_echo_n "checking target system type... " >&6; }
3130 if test "${ac_cv_target+set}" = set; then :
3131 $as_echo_n "(cached) " >&6
3132 else
3133 if test "x$target_alias" = x; then
3134 ac_cv_target=$ac_cv_host
3135 else
3136 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3137 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3142 $as_echo "$ac_cv_target" >&6; }
3143 case $ac_cv_target in
3144 *-*-*) ;;
3145 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3146 esac
3147 target=$ac_cv_target
3148 ac_save_IFS=$IFS; IFS='-'
3149 set x $ac_cv_target
3150 shift
3151 target_cpu=$1
3152 target_vendor=$2
3153 shift; shift
3154 # Remember, the first character of IFS is used to create $*,
3155 # except with old shells:
3156 target_os=$*
3157 IFS=$ac_save_IFS
3158 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3161 # The aliases save the names the user supplied, while $host etc.
3162 # will get canonicalized.
3163 test -n "$target_alias" &&
3164 test "$program_prefix$program_suffix$program_transform_name" = \
3165 NONENONEs,x,x, &&
3166 program_prefix=${target_alias}-
3168 case ${build_alias} in
3169 "") build_noncanonical=${build} ;;
3170 *) build_noncanonical=${build_alias} ;;
3171 esac
3173 case ${target_alias} in
3174 "") target_noncanonical=${host_noncanonical} ;;
3175 *) target_noncanonical=${target_alias} ;;
3176 esac
3181 # This works around the fact that libtool configuration may change LD
3182 # for this particular configuration, but some shells, instead of
3183 # keeping the changes in LD private, export them just because LD is
3184 # exported.
3185 ORIGINAL_LD_FOR_MULTILIBS=$LD
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3188 $as_echo_n "checking whether ln -s works... " >&6; }
3189 LN_S=$as_ln_s
3190 if test "$LN_S" = "ln -s"; then
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3192 $as_echo "yes" >&6; }
3193 else
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3195 $as_echo "no, using $LN_S" >&6; }
3199 # This works around an automake problem.
3200 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
3204 # Check whether --with-cross-host was given.
3205 if test "${with_cross_host+set}" = set; then :
3206 withval=$with_cross_host;
3211 # Check whether --with-newlib was given.
3212 if test "${with_newlib+set}" = set; then :
3213 withval=$with_newlib;
3217 # Check whether --enable-version-specific-runtime-libs was given.
3218 if test "${enable_version_specific_runtime_libs+set}" = set; then :
3219 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
3220 yes) version_specific_libs=yes ;;
3221 no) version_specific_libs=no ;;
3222 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3223 esac
3224 else
3225 version_specific_libs=no
3230 # Check whether --enable-browser-plugin was given.
3231 if test "${enable_browser_plugin+set}" = set; then :
3232 enableval=$enable_browser_plugin; case "$enableval" in
3233 yes) browser_plugin_enabled=yes ;;
3234 no) browser_plugin_enabled=no ;;
3235 *) as_fn_error "Unknown argument to enable/disable browser plugin" "$LINENO" 5;;
3236 esac
3237 else
3238 browser_plugin_enabled=no
3243 # Check whether --enable-gconf-peer was given.
3244 if test "${enable_gconf_peer+set}" = set; then :
3245 enableval=$enable_gconf_peer; case "$enableval" in
3246 yes) gconf_enabled=yes ;;
3247 no) gconf_enabled=no ;;
3248 *) as_fn_error "Unknown argument to enable/disable gconf-peer" "$LINENO" 5;;
3249 esac
3250 else
3251 gconf_enabled=no
3257 # Check whether --with-antlr-jar was given.
3258 if test "${with_antlr_jar+set}" = set; then :
3259 withval=$with_antlr_jar;
3260 ANTLR_JAR=$withval
3262 else
3264 ANTLR_JAR=
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr.jar" >&5
3270 $as_echo_n "checking for antlr.jar... " >&6; }
3271 if test "x$ANTLR_JAR" = x; then
3272 for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
3273 /usr/share/antlr/lib /usr/share/java /usr/lib;
3275 if test -f "$antlr_lib_home/antlr.jar"; then
3276 # FIXME: version check for antlr needed without using a VM
3277 ANTLR_JAR="$antlr_lib_home/antlr.jar"
3278 break
3280 done
3281 if test "x$ANTLR_JAR" = x; then
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
3283 $as_echo "not found" >&6; }
3284 else
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3286 $as_echo "$ANTLR_JAR" >&6; }
3288 else
3289 if test -f "${ANTLR_JAR}"; then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3291 $as_echo "$ANTLR_JAR" >&6; }
3292 else
3293 as_fn_error "antlr jar file not found: $ANTLR_JAR" "$LINENO" 5
3298 # Check whether --enable-gjdoc was given.
3299 if test "${enable_gjdoc+set}" = set; then :
3300 enableval=$enable_gjdoc; case "${enableval}" in
3301 yes) BUILD_GJDOC=yes ;;
3302 no) BUILD_GJDOC=no ;;
3303 *) BUILD_GJDOC=yes ;;
3304 esac
3305 else
3306 BUILD_GJDOC=maybe
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gjdoc" >&5
3311 $as_echo_n "checking whether to build gjdoc... " >&6; }
3312 if test "x$BUILD_GJDOC" = xmaybe; then
3313 if test -f "${ANTLR_JAR}"; then
3314 BUILD_GJDOC=yes
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3316 $as_echo "yes" >&6; }
3317 else
3318 BUILD_GJDOC=no
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, antlr.jar not found" >&5
3320 $as_echo "no, antlr.jar not found" >&6; }
3322 else
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_GJDOC" >&5
3324 $as_echo "$BUILD_GJDOC" >&6; }
3326 if test "x${BUILD_GJDOC}" = xyes; then
3327 CREATE_GJDOC_TRUE=
3328 CREATE_GJDOC_FALSE='#'
3329 else
3330 CREATE_GJDOC_TRUE='#'
3331 CREATE_GJDOC_FALSE=
3335 # Check whether --enable-java-maintainer-mode was given.
3336 if test "${enable_java_maintainer_mode+set}" = set; then :
3337 enableval=$enable_java_maintainer_mode;
3340 if test "$enable_java_maintainer_mode" = yes; then
3341 JAVA_MAINTAINER_MODE_TRUE=
3342 JAVA_MAINTAINER_MODE_FALSE='#'
3343 else
3344 JAVA_MAINTAINER_MODE_TRUE='#'
3345 JAVA_MAINTAINER_MODE_FALSE=
3349 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
3352 # For libstdc++-v3, -fno-builtin must be present here so that a
3353 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
3354 # used in later tests. This may not be necessary in libjava; I don't know.
3355 save_CXXFLAGS="$CXXFLAGS"
3356 CXXFLAGS="$CXXFLAGS -fno-builtin"
3357 ac_ext=c
3358 ac_cpp='$CPP $CPPFLAGS'
3359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3362 if test -n "$ac_tool_prefix"; then
3363 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3364 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3366 $as_echo_n "checking for $ac_word... " >&6; }
3367 if test "${ac_cv_prog_CC+set}" = set; then :
3368 $as_echo_n "(cached) " >&6
3369 else
3370 if test -n "$CC"; then
3371 ac_cv_prog_CC="$CC" # Let the user override the test.
3372 else
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 for as_dir in $PATH
3376 IFS=$as_save_IFS
3377 test -z "$as_dir" && as_dir=.
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3380 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3382 break 2
3384 done
3385 done
3386 IFS=$as_save_IFS
3390 CC=$ac_cv_prog_CC
3391 if test -n "$CC"; then
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3393 $as_echo "$CC" >&6; }
3394 else
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3396 $as_echo "no" >&6; }
3401 if test -z "$ac_cv_prog_CC"; then
3402 ac_ct_CC=$CC
3403 # Extract the first word of "gcc", so it can be a program name with args.
3404 set dummy gcc; ac_word=$2
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3406 $as_echo_n "checking for $ac_word... " >&6; }
3407 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3408 $as_echo_n "(cached) " >&6
3409 else
3410 if test -n "$ac_ct_CC"; then
3411 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3412 else
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414 for as_dir in $PATH
3416 IFS=$as_save_IFS
3417 test -z "$as_dir" && as_dir=.
3418 for ac_exec_ext in '' $ac_executable_extensions; do
3419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3420 ac_cv_prog_ac_ct_CC="gcc"
3421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3422 break 2
3424 done
3425 done
3426 IFS=$as_save_IFS
3430 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3431 if test -n "$ac_ct_CC"; then
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3433 $as_echo "$ac_ct_CC" >&6; }
3434 else
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436 $as_echo "no" >&6; }
3439 if test "x$ac_ct_CC" = x; then
3440 CC=""
3441 else
3442 case $cross_compiling:$ac_tool_warned in
3443 yes:)
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3446 ac_tool_warned=yes ;;
3447 esac
3448 CC=$ac_ct_CC
3450 else
3451 CC="$ac_cv_prog_CC"
3454 if test -z "$CC"; then
3455 if test -n "$ac_tool_prefix"; then
3456 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3457 set dummy ${ac_tool_prefix}cc; ac_word=$2
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3459 $as_echo_n "checking for $ac_word... " >&6; }
3460 if test "${ac_cv_prog_CC+set}" = set; then :
3461 $as_echo_n "(cached) " >&6
3462 else
3463 if test -n "$CC"; then
3464 ac_cv_prog_CC="$CC" # Let the user override the test.
3465 else
3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 for as_dir in $PATH
3469 IFS=$as_save_IFS
3470 test -z "$as_dir" && as_dir=.
3471 for ac_exec_ext in '' $ac_executable_extensions; do
3472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3473 ac_cv_prog_CC="${ac_tool_prefix}cc"
3474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3475 break 2
3477 done
3478 done
3479 IFS=$as_save_IFS
3483 CC=$ac_cv_prog_CC
3484 if test -n "$CC"; then
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3486 $as_echo "$CC" >&6; }
3487 else
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3489 $as_echo "no" >&6; }
3495 if test -z "$CC"; then
3496 # Extract the first word of "cc", so it can be a program name with args.
3497 set dummy cc; ac_word=$2
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3499 $as_echo_n "checking for $ac_word... " >&6; }
3500 if test "${ac_cv_prog_CC+set}" = set; then :
3501 $as_echo_n "(cached) " >&6
3502 else
3503 if test -n "$CC"; then
3504 ac_cv_prog_CC="$CC" # Let the user override the test.
3505 else
3506 ac_prog_rejected=no
3507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3508 for as_dir in $PATH
3510 IFS=$as_save_IFS
3511 test -z "$as_dir" && as_dir=.
3512 for ac_exec_ext in '' $ac_executable_extensions; do
3513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3514 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3515 ac_prog_rejected=yes
3516 continue
3518 ac_cv_prog_CC="cc"
3519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3520 break 2
3522 done
3523 done
3524 IFS=$as_save_IFS
3526 if test $ac_prog_rejected = yes; then
3527 # We found a bogon in the path, so make sure we never use it.
3528 set dummy $ac_cv_prog_CC
3529 shift
3530 if test $# != 0; then
3531 # We chose a different compiler from the bogus one.
3532 # However, it has the same basename, so the bogon will be chosen
3533 # first if we set CC to just the basename; use the full file name.
3534 shift
3535 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3540 CC=$ac_cv_prog_CC
3541 if test -n "$CC"; then
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3543 $as_echo "$CC" >&6; }
3544 else
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546 $as_echo "no" >&6; }
3551 if test -z "$CC"; then
3552 if test -n "$ac_tool_prefix"; then
3553 for ac_prog in cl.exe
3555 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3556 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3558 $as_echo_n "checking for $ac_word... " >&6; }
3559 if test "${ac_cv_prog_CC+set}" = set; then :
3560 $as_echo_n "(cached) " >&6
3561 else
3562 if test -n "$CC"; then
3563 ac_cv_prog_CC="$CC" # Let the user override the test.
3564 else
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 for as_dir in $PATH
3568 IFS=$as_save_IFS
3569 test -z "$as_dir" && as_dir=.
3570 for ac_exec_ext in '' $ac_executable_extensions; do
3571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3572 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3574 break 2
3576 done
3577 done
3578 IFS=$as_save_IFS
3582 CC=$ac_cv_prog_CC
3583 if test -n "$CC"; then
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3585 $as_echo "$CC" >&6; }
3586 else
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588 $as_echo "no" >&6; }
3592 test -n "$CC" && break
3593 done
3595 if test -z "$CC"; then
3596 ac_ct_CC=$CC
3597 for ac_prog in cl.exe
3599 # Extract the first word of "$ac_prog", so it can be a program name with args.
3600 set dummy $ac_prog; ac_word=$2
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3602 $as_echo_n "checking for $ac_word... " >&6; }
3603 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3604 $as_echo_n "(cached) " >&6
3605 else
3606 if test -n "$ac_ct_CC"; then
3607 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3608 else
3609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3610 for as_dir in $PATH
3612 IFS=$as_save_IFS
3613 test -z "$as_dir" && as_dir=.
3614 for ac_exec_ext in '' $ac_executable_extensions; do
3615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3616 ac_cv_prog_ac_ct_CC="$ac_prog"
3617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3618 break 2
3620 done
3621 done
3622 IFS=$as_save_IFS
3626 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3627 if test -n "$ac_ct_CC"; then
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3629 $as_echo "$ac_ct_CC" >&6; }
3630 else
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3632 $as_echo "no" >&6; }
3636 test -n "$ac_ct_CC" && break
3637 done
3639 if test "x$ac_ct_CC" = x; then
3640 CC=""
3641 else
3642 case $cross_compiling:$ac_tool_warned in
3643 yes:)
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3646 ac_tool_warned=yes ;;
3647 esac
3648 CC=$ac_ct_CC
3655 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3657 as_fn_error "no acceptable C compiler found in \$PATH
3658 See \`config.log' for more details." "$LINENO" 5; }
3660 # Provide some information about the compiler.
3661 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3662 set X $ac_compile
3663 ac_compiler=$2
3664 for ac_option in --version -v -V -qversion; do
3665 { { ac_try="$ac_compiler $ac_option >&5"
3666 case "(($ac_try" in
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3669 esac
3670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3671 $as_echo "$ac_try_echo"; } >&5
3672 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3673 ac_status=$?
3674 if test -s conftest.err; then
3675 sed '10a\
3676 ... rest of stderr output deleted ...
3677 10q' conftest.err >conftest.er1
3678 cat conftest.er1 >&5
3679 rm -f conftest.er1 conftest.err
3681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3682 test $ac_status = 0; }
3683 done
3685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686 /* end confdefs.h. */
3689 main ()
3693 return 0;
3695 _ACEOF
3696 # FIXME: Cleanup?
3697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3698 (eval $ac_link) 2>&5
3699 ac_status=$?
3700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3701 test $ac_status = 0; }; then :
3702 gcc_no_link=no
3703 else
3704 gcc_no_link=yes
3706 if test x$gcc_no_link = xyes; then
3707 # Setting cross_compile will disable run tests; it will
3708 # also disable AC_CHECK_FILE but that's generally
3709 # correct if we can't link.
3710 cross_compiling=yes
3711 EXEEXT=
3712 else
3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714 /* end confdefs.h. */
3717 main ()
3721 return 0;
3723 _ACEOF
3724 ac_clean_files_save=$ac_clean_files
3725 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3726 # Try to create an executable without -o first, disregard a.out.
3727 # It will help us diagnose broken compilers, and finding out an intuition
3728 # of exeext.
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3730 $as_echo_n "checking for C compiler default output file name... " >&6; }
3731 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3733 # The possible output files:
3734 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3736 ac_rmfiles=
3737 for ac_file in $ac_files
3739 case $ac_file in
3740 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3741 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3742 esac
3743 done
3744 rm -f $ac_rmfiles
3746 if { { ac_try="$ac_link_default"
3747 case "(($ac_try" in
3748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3749 *) ac_try_echo=$ac_try;;
3750 esac
3751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3752 $as_echo "$ac_try_echo"; } >&5
3753 (eval "$ac_link_default") 2>&5
3754 ac_status=$?
3755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3756 test $ac_status = 0; }; then :
3757 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3758 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3759 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3760 # so that the user can short-circuit this test for compilers unknown to
3761 # Autoconf.
3762 for ac_file in $ac_files ''
3764 test -f "$ac_file" || continue
3765 case $ac_file in
3766 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3768 [ab].out )
3769 # We found the default executable, but exeext='' is most
3770 # certainly right.
3771 break;;
3772 *.* )
3773 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3774 then :; else
3775 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3777 # We set ac_cv_exeext here because the later test for it is not
3778 # safe: cross compilers may not add the suffix if given an `-o'
3779 # argument, so we may need to know it at that point already.
3780 # Even if this section looks crufty: it has the advantage of
3781 # actually working.
3782 break;;
3784 break;;
3785 esac
3786 done
3787 test "$ac_cv_exeext" = no && ac_cv_exeext=
3789 else
3790 ac_file=''
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3793 $as_echo "$ac_file" >&6; }
3794 if test -z "$ac_file"; then :
3795 $as_echo "$as_me: failed program was:" >&5
3796 sed 's/^/| /' conftest.$ac_ext >&5
3798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3800 { as_fn_set_status 77
3801 as_fn_error "C compiler cannot create executables
3802 See \`config.log' for more details." "$LINENO" 5; }; }
3804 ac_exeext=$ac_cv_exeext
3806 # Check that the compiler produces executables we can run. If not, either
3807 # the compiler is broken, or we cross compile.
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3809 $as_echo_n "checking whether the C compiler works... " >&6; }
3810 # If not cross compiling, check that we can run a simple program.
3811 if test "$cross_compiling" != yes; then
3812 if { ac_try='./$ac_file'
3813 { { case "(($ac_try" in
3814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815 *) ac_try_echo=$ac_try;;
3816 esac
3817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3818 $as_echo "$ac_try_echo"; } >&5
3819 (eval "$ac_try") 2>&5
3820 ac_status=$?
3821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3822 test $ac_status = 0; }; }; then
3823 cross_compiling=no
3824 else
3825 if test "$cross_compiling" = maybe; then
3826 cross_compiling=yes
3827 else
3828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3830 as_fn_error "cannot run C compiled programs.
3831 If you meant to cross compile, use \`--host'.
3832 See \`config.log' for more details." "$LINENO" 5; }
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3837 $as_echo "yes" >&6; }
3839 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3840 ac_clean_files=$ac_clean_files_save
3841 # Check that the compiler produces executables we can run. If not, either
3842 # the compiler is broken, or we cross compile.
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3844 $as_echo_n "checking whether we are cross compiling... " >&6; }
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3846 $as_echo "$cross_compiling" >&6; }
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3849 $as_echo_n "checking for suffix of executables... " >&6; }
3850 if { { ac_try="$ac_link"
3851 case "(($ac_try" in
3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3854 esac
3855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3856 $as_echo "$ac_try_echo"; } >&5
3857 (eval "$ac_link") 2>&5
3858 ac_status=$?
3859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3860 test $ac_status = 0; }; then :
3861 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3862 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3863 # work properly (i.e., refer to `conftest.exe'), while it won't with
3864 # `rm'.
3865 for ac_file in conftest.exe conftest conftest.*; do
3866 test -f "$ac_file" || continue
3867 case $ac_file in
3868 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3869 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3870 break;;
3871 * ) break;;
3872 esac
3873 done
3874 else
3875 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3876 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3877 as_fn_error "cannot compute suffix of executables: cannot compile and link
3878 See \`config.log' for more details." "$LINENO" 5; }
3880 rm -f conftest$ac_cv_exeext
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3882 $as_echo "$ac_cv_exeext" >&6; }
3884 rm -f conftest.$ac_ext
3885 EXEEXT=$ac_cv_exeext
3886 ac_exeext=$EXEEXT
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3889 $as_echo_n "checking for suffix of object files... " >&6; }
3890 if test "${ac_cv_objext+set}" = set; then :
3891 $as_echo_n "(cached) " >&6
3892 else
3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894 /* end confdefs.h. */
3897 main ()
3901 return 0;
3903 _ACEOF
3904 rm -f conftest.o conftest.obj
3905 if { { ac_try="$ac_compile"
3906 case "(($ac_try" in
3907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3908 *) ac_try_echo=$ac_try;;
3909 esac
3910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3911 $as_echo "$ac_try_echo"; } >&5
3912 (eval "$ac_compile") 2>&5
3913 ac_status=$?
3914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3915 test $ac_status = 0; }; then :
3916 for ac_file in conftest.o conftest.obj conftest.*; do
3917 test -f "$ac_file" || continue;
3918 case $ac_file in
3919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3920 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3921 break;;
3922 esac
3923 done
3924 else
3925 $as_echo "$as_me: failed program was:" >&5
3926 sed 's/^/| /' conftest.$ac_ext >&5
3928 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3930 as_fn_error "cannot compute suffix of object files: cannot compile
3931 See \`config.log' for more details." "$LINENO" 5; }
3933 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3936 $as_echo "$ac_cv_objext" >&6; }
3937 OBJEXT=$ac_cv_objext
3938 ac_objext=$OBJEXT
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3940 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3941 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3942 $as_echo_n "(cached) " >&6
3943 else
3944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945 /* end confdefs.h. */
3948 main ()
3950 #ifndef __GNUC__
3951 choke me
3952 #endif
3955 return 0;
3957 _ACEOF
3958 if ac_fn_c_try_compile "$LINENO"; then :
3959 ac_compiler_gnu=yes
3960 else
3961 ac_compiler_gnu=no
3963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3964 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3968 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3969 if test $ac_compiler_gnu = yes; then
3970 GCC=yes
3971 else
3972 GCC=
3974 ac_test_CFLAGS=${CFLAGS+set}
3975 ac_save_CFLAGS=$CFLAGS
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3977 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3978 if test "${ac_cv_prog_cc_g+set}" = set; then :
3979 $as_echo_n "(cached) " >&6
3980 else
3981 ac_save_c_werror_flag=$ac_c_werror_flag
3982 ac_c_werror_flag=yes
3983 ac_cv_prog_cc_g=no
3984 CFLAGS="-g"
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3989 main ()
3993 return 0;
3995 _ACEOF
3996 if ac_fn_c_try_compile "$LINENO"; then :
3997 ac_cv_prog_cc_g=yes
3998 else
3999 CFLAGS=""
4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h. */
4004 main ()
4008 return 0;
4010 _ACEOF
4011 if ac_fn_c_try_compile "$LINENO"; then :
4013 else
4014 ac_c_werror_flag=$ac_save_c_werror_flag
4015 CFLAGS="-g"
4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h. */
4020 main ()
4024 return 0;
4026 _ACEOF
4027 if ac_fn_c_try_compile "$LINENO"; then :
4028 ac_cv_prog_cc_g=yes
4030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4035 ac_c_werror_flag=$ac_save_c_werror_flag
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4038 $as_echo "$ac_cv_prog_cc_g" >&6; }
4039 if test "$ac_test_CFLAGS" = set; then
4040 CFLAGS=$ac_save_CFLAGS
4041 elif test $ac_cv_prog_cc_g = yes; then
4042 if test "$GCC" = yes; then
4043 CFLAGS="-g -O2"
4044 else
4045 CFLAGS="-g"
4047 else
4048 if test "$GCC" = yes; then
4049 CFLAGS="-O2"
4050 else
4051 CFLAGS=
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4055 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4056 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4057 $as_echo_n "(cached) " >&6
4058 else
4059 ac_cv_prog_cc_c89=no
4060 ac_save_CC=$CC
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4063 #include <stdarg.h>
4064 #include <stdio.h>
4065 #include <sys/types.h>
4066 #include <sys/stat.h>
4067 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4068 struct buf { int x; };
4069 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4070 static char *e (p, i)
4071 char **p;
4072 int i;
4074 return p[i];
4076 static char *f (char * (*g) (char **, int), char **p, ...)
4078 char *s;
4079 va_list v;
4080 va_start (v,p);
4081 s = g (p, va_arg (v,int));
4082 va_end (v);
4083 return s;
4086 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4087 function prototypes and stuff, but not '\xHH' hex character constants.
4088 These don't provoke an error unfortunately, instead are silently treated
4089 as 'x'. The following induces an error, until -std is added to get
4090 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4091 array size at least. It's necessary to write '\x00'==0 to get something
4092 that's true only with -std. */
4093 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4095 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4096 inside strings and character constants. */
4097 #define FOO(x) 'x'
4098 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4100 int test (int i, double x);
4101 struct s1 {int (*f) (int a);};
4102 struct s2 {int (*f) (double a);};
4103 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4104 int argc;
4105 char **argv;
4107 main ()
4109 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4111 return 0;
4113 _ACEOF
4114 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4115 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4117 CC="$ac_save_CC $ac_arg"
4118 if ac_fn_c_try_compile "$LINENO"; then :
4119 ac_cv_prog_cc_c89=$ac_arg
4121 rm -f core conftest.err conftest.$ac_objext
4122 test "x$ac_cv_prog_cc_c89" != "xno" && break
4123 done
4124 rm -f conftest.$ac_ext
4125 CC=$ac_save_CC
4128 # AC_CACHE_VAL
4129 case "x$ac_cv_prog_cc_c89" in
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4132 $as_echo "none needed" >&6; } ;;
4133 xno)
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4135 $as_echo "unsupported" >&6; } ;;
4137 CC="$CC $ac_cv_prog_cc_c89"
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4139 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4140 esac
4141 if test "x$ac_cv_prog_cc_c89" != xno; then :
4145 ac_ext=c
4146 ac_cpp='$CPP $CPPFLAGS'
4147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4151 ac_ext=cpp
4152 ac_cpp='$CXXCPP $CPPFLAGS'
4153 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4154 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4155 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4156 if test -z "$CXX"; then
4157 if test -n "$CCC"; then
4158 CXX=$CCC
4159 else
4160 if test -n "$ac_tool_prefix"; then
4161 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4163 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4164 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4166 $as_echo_n "checking for $ac_word... " >&6; }
4167 if test "${ac_cv_prog_CXX+set}" = set; then :
4168 $as_echo_n "(cached) " >&6
4169 else
4170 if test -n "$CXX"; then
4171 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4172 else
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 for as_dir in $PATH
4176 IFS=$as_save_IFS
4177 test -z "$as_dir" && as_dir=.
4178 for ac_exec_ext in '' $ac_executable_extensions; do
4179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4180 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4182 break 2
4184 done
4185 done
4186 IFS=$as_save_IFS
4190 CXX=$ac_cv_prog_CXX
4191 if test -n "$CXX"; then
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4193 $as_echo "$CXX" >&6; }
4194 else
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4196 $as_echo "no" >&6; }
4200 test -n "$CXX" && break
4201 done
4203 if test -z "$CXX"; then
4204 ac_ct_CXX=$CXX
4205 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4207 # Extract the first word of "$ac_prog", so it can be a program name with args.
4208 set dummy $ac_prog; ac_word=$2
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4210 $as_echo_n "checking for $ac_word... " >&6; }
4211 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4212 $as_echo_n "(cached) " >&6
4213 else
4214 if test -n "$ac_ct_CXX"; then
4215 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4216 else
4217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 for as_dir in $PATH
4220 IFS=$as_save_IFS
4221 test -z "$as_dir" && as_dir=.
4222 for ac_exec_ext in '' $ac_executable_extensions; do
4223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4224 ac_cv_prog_ac_ct_CXX="$ac_prog"
4225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4226 break 2
4228 done
4229 done
4230 IFS=$as_save_IFS
4234 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4235 if test -n "$ac_ct_CXX"; then
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4237 $as_echo "$ac_ct_CXX" >&6; }
4238 else
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4240 $as_echo "no" >&6; }
4244 test -n "$ac_ct_CXX" && break
4245 done
4247 if test "x$ac_ct_CXX" = x; then
4248 CXX="g++"
4249 else
4250 case $cross_compiling:$ac_tool_warned in
4251 yes:)
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4254 ac_tool_warned=yes ;;
4255 esac
4256 CXX=$ac_ct_CXX
4262 # Provide some information about the compiler.
4263 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4264 set X $ac_compile
4265 ac_compiler=$2
4266 for ac_option in --version -v -V -qversion; do
4267 { { ac_try="$ac_compiler $ac_option >&5"
4268 case "(($ac_try" in
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4271 esac
4272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4273 $as_echo "$ac_try_echo"; } >&5
4274 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4275 ac_status=$?
4276 if test -s conftest.err; then
4277 sed '10a\
4278 ... rest of stderr output deleted ...
4279 10q' conftest.err >conftest.er1
4280 cat conftest.er1 >&5
4281 rm -f conftest.er1 conftest.err
4283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4284 test $ac_status = 0; }
4285 done
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4288 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4289 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4290 $as_echo_n "(cached) " >&6
4291 else
4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293 /* end confdefs.h. */
4296 main ()
4298 #ifndef __GNUC__
4299 choke me
4300 #endif
4303 return 0;
4305 _ACEOF
4306 if ac_fn_cxx_try_compile "$LINENO"; then :
4307 ac_compiler_gnu=yes
4308 else
4309 ac_compiler_gnu=no
4311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4316 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4317 if test $ac_compiler_gnu = yes; then
4318 GXX=yes
4319 else
4320 GXX=
4322 ac_test_CXXFLAGS=${CXXFLAGS+set}
4323 ac_save_CXXFLAGS=$CXXFLAGS
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4325 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4326 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4327 $as_echo_n "(cached) " >&6
4328 else
4329 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4330 ac_cxx_werror_flag=yes
4331 ac_cv_prog_cxx_g=no
4332 CXXFLAGS="-g"
4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334 /* end confdefs.h. */
4337 main ()
4341 return 0;
4343 _ACEOF
4344 if ac_fn_cxx_try_compile "$LINENO"; then :
4345 ac_cv_prog_cxx_g=yes
4346 else
4347 CXXFLAGS=""
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4352 main ()
4356 return 0;
4358 _ACEOF
4359 if ac_fn_cxx_try_compile "$LINENO"; then :
4361 else
4362 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4363 CXXFLAGS="-g"
4364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h. */
4368 main ()
4372 return 0;
4374 _ACEOF
4375 if ac_fn_cxx_try_compile "$LINENO"; then :
4376 ac_cv_prog_cxx_g=yes
4378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4386 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4387 if test "$ac_test_CXXFLAGS" = set; then
4388 CXXFLAGS=$ac_save_CXXFLAGS
4389 elif test $ac_cv_prog_cxx_g = yes; then
4390 if test "$GXX" = yes; then
4391 CXXFLAGS="-g -O2"
4392 else
4393 CXXFLAGS="-g"
4395 else
4396 if test "$GXX" = yes; then
4397 CXXFLAGS="-O2"
4398 else
4399 CXXFLAGS=
4402 ac_ext=c
4403 ac_cpp='$CPP $CPPFLAGS'
4404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4408 CXXFLAGS="$save_CXXFLAGS"
4410 am__api_version='1.11'
4412 # Find a good install program. We prefer a C program (faster),
4413 # so one script is as good as another. But avoid the broken or
4414 # incompatible versions:
4415 # SysV /etc/install, /usr/sbin/install
4416 # SunOS /usr/etc/install
4417 # IRIX /sbin/install
4418 # AIX /bin/install
4419 # AmigaOS /C/install, which installs bootblocks on floppy discs
4420 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4421 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4422 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4423 # OS/2's system install, which has a completely different semantic
4424 # ./install, which can be erroneously created by make from ./install.sh.
4425 # Reject install programs that cannot install multiple files.
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4427 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4428 if test -z "$INSTALL"; then
4429 if test "${ac_cv_path_install+set}" = set; then :
4430 $as_echo_n "(cached) " >&6
4431 else
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 for as_dir in $PATH
4435 IFS=$as_save_IFS
4436 test -z "$as_dir" && as_dir=.
4437 # Account for people who put trailing slashes in PATH elements.
4438 case $as_dir/ in #((
4439 ./ | .// | /[cC]/* | \
4440 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4441 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4442 /usr/ucb/* ) ;;
4444 # OSF1 and SCO ODT 3.0 have their own names for install.
4445 # Don't use installbsd from OSF since it installs stuff as root
4446 # by default.
4447 for ac_prog in ginstall scoinst install; do
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4450 if test $ac_prog = install &&
4451 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4452 # AIX install. It has an incompatible calling convention.
4454 elif test $ac_prog = install &&
4455 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4456 # program-specific install script used by HP pwplus--don't use.
4458 else
4459 rm -rf conftest.one conftest.two conftest.dir
4460 echo one > conftest.one
4461 echo two > conftest.two
4462 mkdir conftest.dir
4463 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4464 test -s conftest.one && test -s conftest.two &&
4465 test -s conftest.dir/conftest.one &&
4466 test -s conftest.dir/conftest.two
4467 then
4468 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4469 break 3
4473 done
4474 done
4476 esac
4478 done
4479 IFS=$as_save_IFS
4481 rm -rf conftest.one conftest.two conftest.dir
4484 if test "${ac_cv_path_install+set}" = set; then
4485 INSTALL=$ac_cv_path_install
4486 else
4487 # As a last resort, use the slow shell script. Don't cache a
4488 # value for INSTALL within a source directory, because that will
4489 # break other packages using the cache if that directory is
4490 # removed, or if the value is a relative name.
4491 INSTALL=$ac_install_sh
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4495 $as_echo "$INSTALL" >&6; }
4497 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4498 # It thinks the first close brace ends the variable substitution.
4499 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4501 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4503 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4506 $as_echo_n "checking whether build environment is sane... " >&6; }
4507 # Just in case
4508 sleep 1
4509 echo timestamp > conftest.file
4510 # Reject unsafe characters in $srcdir or the absolute working directory
4511 # name. Accept space and tab only in the latter.
4512 am_lf='
4514 case `pwd` in
4515 *[\\\"\#\$\&\'\`$am_lf]*)
4516 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4517 esac
4518 case $srcdir in
4519 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4520 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4521 esac
4523 # Do `set' in a subshell so we don't clobber the current shell's
4524 # arguments. Must try -L first in case configure is actually a
4525 # symlink; some systems play weird games with the mod time of symlinks
4526 # (eg FreeBSD returns the mod time of the symlink's containing
4527 # directory).
4528 if (
4529 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4530 if test "$*" = "X"; then
4531 # -L didn't work.
4532 set X `ls -t "$srcdir/configure" conftest.file`
4534 rm -f conftest.file
4535 if test "$*" != "X $srcdir/configure conftest.file" \
4536 && test "$*" != "X conftest.file $srcdir/configure"; then
4538 # If neither matched, then we have a broken ls. This can happen
4539 # if, for instance, CONFIG_SHELL is bash and it inherits a
4540 # broken ls alias from the environment. This has actually
4541 # happened. Such a system could not be considered "sane".
4542 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4543 alias in your environment" "$LINENO" 5
4546 test "$2" = conftest.file
4548 then
4549 # Ok.
4551 else
4552 as_fn_error "newly created file is older than distributed files!
4553 Check your system clock" "$LINENO" 5
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4556 $as_echo "yes" >&6; }
4557 test "$program_prefix" != NONE &&
4558 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4559 # Use a double $ so make ignores it.
4560 test "$program_suffix" != NONE &&
4561 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4562 # Double any \ or $.
4563 # By default was `s,x,x', remove it if useless.
4564 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4565 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4567 # expand $ac_aux_dir to an absolute path
4568 am_aux_dir=`cd $ac_aux_dir && pwd`
4570 if test x"${MISSING+set}" != xset; then
4571 case $am_aux_dir in
4572 *\ * | *\ *)
4573 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4575 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4576 esac
4578 # Use eval to expand $SHELL
4579 if eval "$MISSING --run true"; then
4580 am_missing_run="$MISSING --run "
4581 else
4582 am_missing_run=
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4584 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4587 if test x"${install_sh}" != xset; then
4588 case $am_aux_dir in
4589 *\ * | *\ *)
4590 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4592 install_sh="\${SHELL} $am_aux_dir/install-sh"
4593 esac
4596 # Installed binaries are usually stripped using `strip' when the user
4597 # run `make install-strip'. However `strip' might not be the right
4598 # tool to use in cross-compilation environments, therefore Automake
4599 # will honor the `STRIP' environment variable to overrule this program.
4600 if test "$cross_compiling" != no; then
4601 if test -n "$ac_tool_prefix"; then
4602 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4603 set dummy ${ac_tool_prefix}strip; ac_word=$2
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4605 $as_echo_n "checking for $ac_word... " >&6; }
4606 if test "${ac_cv_prog_STRIP+set}" = set; then :
4607 $as_echo_n "(cached) " >&6
4608 else
4609 if test -n "$STRIP"; then
4610 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4611 else
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 for as_dir in $PATH
4615 IFS=$as_save_IFS
4616 test -z "$as_dir" && as_dir=.
4617 for ac_exec_ext in '' $ac_executable_extensions; do
4618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4619 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4621 break 2
4623 done
4624 done
4625 IFS=$as_save_IFS
4629 STRIP=$ac_cv_prog_STRIP
4630 if test -n "$STRIP"; then
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4632 $as_echo "$STRIP" >&6; }
4633 else
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4635 $as_echo "no" >&6; }
4640 if test -z "$ac_cv_prog_STRIP"; then
4641 ac_ct_STRIP=$STRIP
4642 # Extract the first word of "strip", so it can be a program name with args.
4643 set dummy strip; ac_word=$2
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645 $as_echo_n "checking for $ac_word... " >&6; }
4646 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4647 $as_echo_n "(cached) " >&6
4648 else
4649 if test -n "$ac_ct_STRIP"; then
4650 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4651 else
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in $PATH
4655 IFS=$as_save_IFS
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4659 ac_cv_prog_ac_ct_STRIP="strip"
4660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4661 break 2
4663 done
4664 done
4665 IFS=$as_save_IFS
4669 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4670 if test -n "$ac_ct_STRIP"; then
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4672 $as_echo "$ac_ct_STRIP" >&6; }
4673 else
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675 $as_echo "no" >&6; }
4678 if test "x$ac_ct_STRIP" = x; then
4679 STRIP=":"
4680 else
4681 case $cross_compiling:$ac_tool_warned in
4682 yes:)
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4685 ac_tool_warned=yes ;;
4686 esac
4687 STRIP=$ac_ct_STRIP
4689 else
4690 STRIP="$ac_cv_prog_STRIP"
4694 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4697 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4698 if test -z "$MKDIR_P"; then
4699 if test "${ac_cv_path_mkdir+set}" = set; then :
4700 $as_echo_n "(cached) " >&6
4701 else
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4705 IFS=$as_save_IFS
4706 test -z "$as_dir" && as_dir=.
4707 for ac_prog in mkdir gmkdir; do
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4710 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4711 'mkdir (GNU coreutils) '* | \
4712 'mkdir (coreutils) '* | \
4713 'mkdir (fileutils) '4.1*)
4714 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4715 break 3;;
4716 esac
4717 done
4718 done
4719 done
4720 IFS=$as_save_IFS
4724 if test "${ac_cv_path_mkdir+set}" = set; then
4725 MKDIR_P="$ac_cv_path_mkdir -p"
4726 else
4727 # As a last resort, use the slow shell script. Don't cache a
4728 # value for MKDIR_P within a source directory, because that will
4729 # break other packages using the cache if that directory is
4730 # removed, or if the value is a relative name.
4731 test -d ./--version && rmdir ./--version
4732 MKDIR_P="$ac_install_sh -d"
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4736 $as_echo "$MKDIR_P" >&6; }
4738 mkdir_p="$MKDIR_P"
4739 case $mkdir_p in
4740 [\\/$]* | ?:[\\/]*) ;;
4741 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4742 esac
4744 for ac_prog in gawk mawk nawk awk
4746 # Extract the first word of "$ac_prog", so it can be a program name with args.
4747 set dummy $ac_prog; ac_word=$2
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4749 $as_echo_n "checking for $ac_word... " >&6; }
4750 if test "${ac_cv_prog_AWK+set}" = set; then :
4751 $as_echo_n "(cached) " >&6
4752 else
4753 if test -n "$AWK"; then
4754 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4755 else
4756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757 for as_dir in $PATH
4759 IFS=$as_save_IFS
4760 test -z "$as_dir" && as_dir=.
4761 for ac_exec_ext in '' $ac_executable_extensions; do
4762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4763 ac_cv_prog_AWK="$ac_prog"
4764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4765 break 2
4767 done
4768 done
4769 IFS=$as_save_IFS
4773 AWK=$ac_cv_prog_AWK
4774 if test -n "$AWK"; then
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4776 $as_echo "$AWK" >&6; }
4777 else
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4779 $as_echo "no" >&6; }
4783 test -n "$AWK" && break
4784 done
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4787 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4788 set x ${MAKE-make}
4789 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4790 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4791 $as_echo_n "(cached) " >&6
4792 else
4793 cat >conftest.make <<\_ACEOF
4794 SHELL = /bin/sh
4795 all:
4796 @echo '@@@%%%=$(MAKE)=@@@%%%'
4797 _ACEOF
4798 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4799 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4800 *@@@%%%=?*=@@@%%%*)
4801 eval ac_cv_prog_make_${ac_make}_set=yes;;
4803 eval ac_cv_prog_make_${ac_make}_set=no;;
4804 esac
4805 rm -f conftest.make
4807 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4809 $as_echo "yes" >&6; }
4810 SET_MAKE=
4811 else
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813 $as_echo "no" >&6; }
4814 SET_MAKE="MAKE=${MAKE-make}"
4817 rm -rf .tst 2>/dev/null
4818 mkdir .tst 2>/dev/null
4819 if test -d .tst; then
4820 am__leading_dot=.
4821 else
4822 am__leading_dot=_
4824 rmdir .tst 2>/dev/null
4826 DEPDIR="${am__leading_dot}deps"
4828 ac_config_commands="$ac_config_commands depfiles"
4831 am_make=${MAKE-make}
4832 cat > confinc << 'END'
4833 am__doit:
4834 @echo this is the am__doit target
4835 .PHONY: am__doit
4837 # If we don't find an include directive, just comment out the code.
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4839 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4840 am__include="#"
4841 am__quote=
4842 _am_result=none
4843 # First try GNU make style include.
4844 echo "include confinc" > confmf
4845 # Ignore all kinds of additional output from `make'.
4846 case `$am_make -s -f confmf 2> /dev/null` in #(
4847 *the\ am__doit\ target*)
4848 am__include=include
4849 am__quote=
4850 _am_result=GNU
4852 esac
4853 # Now try BSD make style include.
4854 if test "$am__include" = "#"; then
4855 echo '.include "confinc"' > confmf
4856 case `$am_make -s -f confmf 2> /dev/null` in #(
4857 *the\ am__doit\ target*)
4858 am__include=.include
4859 am__quote="\""
4860 _am_result=BSD
4862 esac
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4867 $as_echo "$_am_result" >&6; }
4868 rm -f confinc confmf
4870 # Check whether --enable-dependency-tracking was given.
4871 if test "${enable_dependency_tracking+set}" = set; then :
4872 enableval=$enable_dependency_tracking;
4875 if test "x$enable_dependency_tracking" != xno; then
4876 am_depcomp="$ac_aux_dir/depcomp"
4877 AMDEPBACKSLASH='\'
4879 if test "x$enable_dependency_tracking" != xno; then
4880 AMDEP_TRUE=
4881 AMDEP_FALSE='#'
4882 else
4883 AMDEP_TRUE='#'
4884 AMDEP_FALSE=
4888 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4889 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4890 # is not polluted with repeated "-I."
4891 am__isrc=' -I$(srcdir)'
4892 # test to see if srcdir already configured
4893 if test -f $srcdir/config.status; then
4894 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4898 # test whether we have cygpath
4899 if test -z "$CYGPATH_W"; then
4900 if (cygpath --version) >/dev/null 2>/dev/null; then
4901 CYGPATH_W='cygpath -w'
4902 else
4903 CYGPATH_W=echo
4908 # Define the identity of the package.
4909 PACKAGE='libjava'
4910 VERSION='version-unused'
4913 cat >>confdefs.h <<_ACEOF
4914 #define PACKAGE "$PACKAGE"
4915 _ACEOF
4918 cat >>confdefs.h <<_ACEOF
4919 #define VERSION "$VERSION"
4920 _ACEOF
4922 # Some tools Automake needs.
4924 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4927 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4930 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4933 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4936 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4938 # We need awk for the "check" target. The system "awk" is bad on
4939 # some platforms.
4940 # Always define AMTAR for backward compatibility.
4942 AMTAR=${AMTAR-"${am_missing_run}tar"}
4944 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4949 depcc="$CC" am_compiler_list=
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4952 $as_echo_n "checking dependency style of $depcc... " >&6; }
4953 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4954 $as_echo_n "(cached) " >&6
4955 else
4956 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4957 # We make a subdir and do the tests there. Otherwise we can end up
4958 # making bogus files that we don't know about and never remove. For
4959 # instance it was reported that on HP-UX the gcc test will end up
4960 # making a dummy file named `D' -- because `-MD' means `put the output
4961 # in D'.
4962 mkdir conftest.dir
4963 # Copy depcomp to subdir because otherwise we won't find it if we're
4964 # using a relative directory.
4965 cp "$am_depcomp" conftest.dir
4966 cd conftest.dir
4967 # We will build objects and dependencies in a subdirectory because
4968 # it helps to detect inapplicable dependency modes. For instance
4969 # both Tru64's cc and ICC support -MD to output dependencies as a
4970 # side effect of compilation, but ICC will put the dependencies in
4971 # the current directory while Tru64 will put them in the object
4972 # directory.
4973 mkdir sub
4975 am_cv_CC_dependencies_compiler_type=none
4976 if test "$am_compiler_list" = ""; then
4977 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4979 am__universal=false
4980 case " $depcc " in #(
4981 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4982 esac
4984 for depmode in $am_compiler_list; do
4985 # Setup a source with many dependencies, because some compilers
4986 # like to wrap large dependency lists on column 80 (with \), and
4987 # we should not choose a depcomp mode which is confused by this.
4989 # We need to recreate these files for each test, as the compiler may
4990 # overwrite some of them when testing with obscure command lines.
4991 # This happens at least with the AIX C compiler.
4992 : > sub/conftest.c
4993 for i in 1 2 3 4 5 6; do
4994 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4995 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4996 # Solaris 8's {/usr,}/bin/sh.
4997 touch sub/conftst$i.h
4998 done
4999 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5001 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5002 # mode. It turns out that the SunPro C++ compiler does not properly
5003 # handle `-M -o', and we need to detect this. Also, some Intel
5004 # versions had trouble with output in subdirs
5005 am__obj=sub/conftest.${OBJEXT-o}
5006 am__minus_obj="-o $am__obj"
5007 case $depmode in
5008 gcc)
5009 # This depmode causes a compiler race in universal mode.
5010 test "$am__universal" = false || continue
5012 nosideeffect)
5013 # after this tag, mechanisms are not by side-effect, so they'll
5014 # only be used when explicitly requested
5015 if test "x$enable_dependency_tracking" = xyes; then
5016 continue
5017 else
5018 break
5021 msvisualcpp | msvcmsys)
5022 # This compiler won't grok `-c -o', but also, the minuso test has
5023 # not run yet. These depmodes are late enough in the game, and
5024 # so weak that their functioning should not be impacted.
5025 am__obj=conftest.${OBJEXT-o}
5026 am__minus_obj=
5028 none) break ;;
5029 esac
5030 if depmode=$depmode \
5031 source=sub/conftest.c object=$am__obj \
5032 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5033 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5034 >/dev/null 2>conftest.err &&
5035 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5036 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5037 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5038 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5039 # icc doesn't choke on unknown options, it will just issue warnings
5040 # or remarks (even with -Werror). So we grep stderr for any message
5041 # that says an option was ignored or not supported.
5042 # When given -MP, icc 7.0 and 7.1 complain thusly:
5043 # icc: Command line warning: ignoring option '-M'; no argument required
5044 # The diagnosis changed in icc 8.0:
5045 # icc: Command line remark: option '-MP' not supported
5046 if (grep 'ignoring option' conftest.err ||
5047 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5048 am_cv_CC_dependencies_compiler_type=$depmode
5049 break
5052 done
5054 cd ..
5055 rm -rf conftest.dir
5056 else
5057 am_cv_CC_dependencies_compiler_type=none
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5062 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5063 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5066 test "x$enable_dependency_tracking" != xno \
5067 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5068 am__fastdepCC_TRUE=
5069 am__fastdepCC_FALSE='#'
5070 else
5071 am__fastdepCC_TRUE='#'
5072 am__fastdepCC_FALSE=
5076 depcc="$CXX" am_compiler_list=
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5079 $as_echo_n "checking dependency style of $depcc... " >&6; }
5080 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5081 $as_echo_n "(cached) " >&6
5082 else
5083 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5084 # We make a subdir and do the tests there. Otherwise we can end up
5085 # making bogus files that we don't know about and never remove. For
5086 # instance it was reported that on HP-UX the gcc test will end up
5087 # making a dummy file named `D' -- because `-MD' means `put the output
5088 # in D'.
5089 mkdir conftest.dir
5090 # Copy depcomp to subdir because otherwise we won't find it if we're
5091 # using a relative directory.
5092 cp "$am_depcomp" conftest.dir
5093 cd conftest.dir
5094 # We will build objects and dependencies in a subdirectory because
5095 # it helps to detect inapplicable dependency modes. For instance
5096 # both Tru64's cc and ICC support -MD to output dependencies as a
5097 # side effect of compilation, but ICC will put the dependencies in
5098 # the current directory while Tru64 will put them in the object
5099 # directory.
5100 mkdir sub
5102 am_cv_CXX_dependencies_compiler_type=none
5103 if test "$am_compiler_list" = ""; then
5104 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5106 am__universal=false
5107 case " $depcc " in #(
5108 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5109 esac
5111 for depmode in $am_compiler_list; do
5112 # Setup a source with many dependencies, because some compilers
5113 # like to wrap large dependency lists on column 80 (with \), and
5114 # we should not choose a depcomp mode which is confused by this.
5116 # We need to recreate these files for each test, as the compiler may
5117 # overwrite some of them when testing with obscure command lines.
5118 # This happens at least with the AIX C compiler.
5119 : > sub/conftest.c
5120 for i in 1 2 3 4 5 6; do
5121 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5122 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5123 # Solaris 8's {/usr,}/bin/sh.
5124 touch sub/conftst$i.h
5125 done
5126 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5128 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5129 # mode. It turns out that the SunPro C++ compiler does not properly
5130 # handle `-M -o', and we need to detect this. Also, some Intel
5131 # versions had trouble with output in subdirs
5132 am__obj=sub/conftest.${OBJEXT-o}
5133 am__minus_obj="-o $am__obj"
5134 case $depmode in
5135 gcc)
5136 # This depmode causes a compiler race in universal mode.
5137 test "$am__universal" = false || continue
5139 nosideeffect)
5140 # after this tag, mechanisms are not by side-effect, so they'll
5141 # only be used when explicitly requested
5142 if test "x$enable_dependency_tracking" = xyes; then
5143 continue
5144 else
5145 break
5148 msvisualcpp | msvcmsys)
5149 # This compiler won't grok `-c -o', but also, the minuso test has
5150 # not run yet. These depmodes are late enough in the game, and
5151 # so weak that their functioning should not be impacted.
5152 am__obj=conftest.${OBJEXT-o}
5153 am__minus_obj=
5155 none) break ;;
5156 esac
5157 if depmode=$depmode \
5158 source=sub/conftest.c object=$am__obj \
5159 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5160 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5161 >/dev/null 2>conftest.err &&
5162 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5163 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5164 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5165 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5166 # icc doesn't choke on unknown options, it will just issue warnings
5167 # or remarks (even with -Werror). So we grep stderr for any message
5168 # that says an option was ignored or not supported.
5169 # When given -MP, icc 7.0 and 7.1 complain thusly:
5170 # icc: Command line warning: ignoring option '-M'; no argument required
5171 # The diagnosis changed in icc 8.0:
5172 # icc: Command line remark: option '-MP' not supported
5173 if (grep 'ignoring option' conftest.err ||
5174 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5175 am_cv_CXX_dependencies_compiler_type=$depmode
5176 break
5179 done
5181 cd ..
5182 rm -rf conftest.dir
5183 else
5184 am_cv_CXX_dependencies_compiler_type=none
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5189 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5190 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5193 test "x$enable_dependency_tracking" != xno \
5194 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5195 am__fastdepCXX_TRUE=
5196 am__fastdepCXX_FALSE='#'
5197 else
5198 am__fastdepCXX_TRUE='#'
5199 am__fastdepCXX_FALSE=
5205 if test -n "$ac_tool_prefix"; then
5206 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5207 set dummy ${ac_tool_prefix}as; ac_word=$2
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5209 $as_echo_n "checking for $ac_word... " >&6; }
5210 if test "${ac_cv_prog_AS+set}" = set; then :
5211 $as_echo_n "(cached) " >&6
5212 else
5213 if test -n "$AS"; then
5214 ac_cv_prog_AS="$AS" # Let the user override the test.
5215 else
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 for as_dir in $PATH
5219 IFS=$as_save_IFS
5220 test -z "$as_dir" && as_dir=.
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223 ac_cv_prog_AS="${ac_tool_prefix}as"
5224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 break 2
5227 done
5228 done
5229 IFS=$as_save_IFS
5233 AS=$ac_cv_prog_AS
5234 if test -n "$AS"; then
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5236 $as_echo "$AS" >&6; }
5237 else
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5239 $as_echo "no" >&6; }
5244 if test -z "$ac_cv_prog_AS"; then
5245 ac_ct_AS=$AS
5246 # Extract the first word of "as", so it can be a program name with args.
5247 set dummy as; ac_word=$2
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5249 $as_echo_n "checking for $ac_word... " >&6; }
5250 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5251 $as_echo_n "(cached) " >&6
5252 else
5253 if test -n "$ac_ct_AS"; then
5254 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5255 else
5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257 for as_dir in $PATH
5259 IFS=$as_save_IFS
5260 test -z "$as_dir" && as_dir=.
5261 for ac_exec_ext in '' $ac_executable_extensions; do
5262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5263 ac_cv_prog_ac_ct_AS="as"
5264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5265 break 2
5267 done
5268 done
5269 IFS=$as_save_IFS
5273 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5274 if test -n "$ac_ct_AS"; then
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5276 $as_echo "$ac_ct_AS" >&6; }
5277 else
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5279 $as_echo "no" >&6; }
5282 if test "x$ac_ct_AS" = x; then
5283 AS=""
5284 else
5285 case $cross_compiling:$ac_tool_warned in
5286 yes:)
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5289 ac_tool_warned=yes ;;
5290 esac
5291 AS=$ac_ct_AS
5293 else
5294 AS="$ac_cv_prog_AS"
5297 if test -n "$ac_tool_prefix"; then
5298 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5299 set dummy ${ac_tool_prefix}ld; ac_word=$2
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5301 $as_echo_n "checking for $ac_word... " >&6; }
5302 if test "${ac_cv_prog_LD+set}" = set; then :
5303 $as_echo_n "(cached) " >&6
5304 else
5305 if test -n "$LD"; then
5306 ac_cv_prog_LD="$LD" # Let the user override the test.
5307 else
5308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5309 for as_dir in $PATH
5311 IFS=$as_save_IFS
5312 test -z "$as_dir" && as_dir=.
5313 for ac_exec_ext in '' $ac_executable_extensions; do
5314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5315 ac_cv_prog_LD="${ac_tool_prefix}ld"
5316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5317 break 2
5319 done
5320 done
5321 IFS=$as_save_IFS
5325 LD=$ac_cv_prog_LD
5326 if test -n "$LD"; then
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5328 $as_echo "$LD" >&6; }
5329 else
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5331 $as_echo "no" >&6; }
5336 if test -z "$ac_cv_prog_LD"; then
5337 ac_ct_LD=$LD
5338 # Extract the first word of "ld", so it can be a program name with args.
5339 set dummy ld; ac_word=$2
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5341 $as_echo_n "checking for $ac_word... " >&6; }
5342 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
5343 $as_echo_n "(cached) " >&6
5344 else
5345 if test -n "$ac_ct_LD"; then
5346 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5347 else
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349 for as_dir in $PATH
5351 IFS=$as_save_IFS
5352 test -z "$as_dir" && as_dir=.
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5355 ac_cv_prog_ac_ct_LD="ld"
5356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5357 break 2
5359 done
5360 done
5361 IFS=$as_save_IFS
5365 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5366 if test -n "$ac_ct_LD"; then
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
5368 $as_echo "$ac_ct_LD" >&6; }
5369 else
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371 $as_echo "no" >&6; }
5374 if test "x$ac_ct_LD" = x; then
5375 LD=""
5376 else
5377 case $cross_compiling:$ac_tool_warned in
5378 yes:)
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5381 ac_tool_warned=yes ;;
5382 esac
5383 LD=$ac_ct_LD
5385 else
5386 LD="$ac_cv_prog_LD"
5389 if test -n "$ac_tool_prefix"; then
5390 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5391 set dummy ${ac_tool_prefix}ar; ac_word=$2
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5393 $as_echo_n "checking for $ac_word... " >&6; }
5394 if test "${ac_cv_prog_AR+set}" = set; then :
5395 $as_echo_n "(cached) " >&6
5396 else
5397 if test -n "$AR"; then
5398 ac_cv_prog_AR="$AR" # Let the user override the test.
5399 else
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 for as_dir in $PATH
5403 IFS=$as_save_IFS
5404 test -z "$as_dir" && as_dir=.
5405 for ac_exec_ext in '' $ac_executable_extensions; do
5406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5407 ac_cv_prog_AR="${ac_tool_prefix}ar"
5408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5409 break 2
5411 done
5412 done
5413 IFS=$as_save_IFS
5417 AR=$ac_cv_prog_AR
5418 if test -n "$AR"; then
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5420 $as_echo "$AR" >&6; }
5421 else
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423 $as_echo "no" >&6; }
5428 if test -z "$ac_cv_prog_AR"; then
5429 ac_ct_AR=$AR
5430 # Extract the first word of "ar", so it can be a program name with args.
5431 set dummy ar; ac_word=$2
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5433 $as_echo_n "checking for $ac_word... " >&6; }
5434 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5435 $as_echo_n "(cached) " >&6
5436 else
5437 if test -n "$ac_ct_AR"; then
5438 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5439 else
5440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441 for as_dir in $PATH
5443 IFS=$as_save_IFS
5444 test -z "$as_dir" && as_dir=.
5445 for ac_exec_ext in '' $ac_executable_extensions; do
5446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5447 ac_cv_prog_ac_ct_AR="ar"
5448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5449 break 2
5451 done
5452 done
5453 IFS=$as_save_IFS
5457 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5458 if test -n "$ac_ct_AR"; then
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5460 $as_echo "$ac_ct_AR" >&6; }
5461 else
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5463 $as_echo "no" >&6; }
5466 if test "x$ac_ct_AR" = x; then
5467 AR=""
5468 else
5469 case $cross_compiling:$ac_tool_warned in
5470 yes:)
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5473 ac_tool_warned=yes ;;
5474 esac
5475 AR=$ac_ct_AR
5477 else
5478 AR="$ac_cv_prog_AR"
5481 if test -n "$ac_tool_prefix"; then
5482 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5483 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5485 $as_echo_n "checking for $ac_word... " >&6; }
5486 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5487 $as_echo_n "(cached) " >&6
5488 else
5489 if test -n "$RANLIB"; then
5490 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5491 else
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 for as_dir in $PATH
5495 IFS=$as_save_IFS
5496 test -z "$as_dir" && as_dir=.
5497 for ac_exec_ext in '' $ac_executable_extensions; do
5498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5499 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5501 break 2
5503 done
5504 done
5505 IFS=$as_save_IFS
5509 RANLIB=$ac_cv_prog_RANLIB
5510 if test -n "$RANLIB"; then
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5512 $as_echo "$RANLIB" >&6; }
5513 else
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5515 $as_echo "no" >&6; }
5520 if test -z "$ac_cv_prog_RANLIB"; then
5521 ac_ct_RANLIB=$RANLIB
5522 # Extract the first word of "ranlib", so it can be a program name with args.
5523 set dummy ranlib; ac_word=$2
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5525 $as_echo_n "checking for $ac_word... " >&6; }
5526 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5527 $as_echo_n "(cached) " >&6
5528 else
5529 if test -n "$ac_ct_RANLIB"; then
5530 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5531 else
5532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533 for as_dir in $PATH
5535 IFS=$as_save_IFS
5536 test -z "$as_dir" && as_dir=.
5537 for ac_exec_ext in '' $ac_executable_extensions; do
5538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5539 ac_cv_prog_ac_ct_RANLIB="ranlib"
5540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5541 break 2
5543 done
5544 done
5545 IFS=$as_save_IFS
5549 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5550 if test -n "$ac_ct_RANLIB"; then
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5552 $as_echo "$ac_ct_RANLIB" >&6; }
5553 else
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5555 $as_echo "no" >&6; }
5558 if test "x$ac_ct_RANLIB" = x; then
5559 RANLIB=":"
5560 else
5561 case $cross_compiling:$ac_tool_warned in
5562 yes:)
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5565 ac_tool_warned=yes ;;
5566 esac
5567 RANLIB=$ac_ct_RANLIB
5569 else
5570 RANLIB="$ac_cv_prog_RANLIB"
5573 if test -n "$ac_tool_prefix"; then
5574 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5575 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577 $as_echo_n "checking for $ac_word... " >&6; }
5578 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5579 $as_echo_n "(cached) " >&6
5580 else
5581 if test -n "$DLLTOOL"; then
5582 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5583 else
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 for as_dir in $PATH
5587 IFS=$as_save_IFS
5588 test -z "$as_dir" && as_dir=.
5589 for ac_exec_ext in '' $ac_executable_extensions; do
5590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5591 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5593 break 2
5595 done
5596 done
5597 IFS=$as_save_IFS
5601 DLLTOOL=$ac_cv_prog_DLLTOOL
5602 if test -n "$DLLTOOL"; then
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5604 $as_echo "$DLLTOOL" >&6; }
5605 else
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607 $as_echo "no" >&6; }
5612 if test -z "$ac_cv_prog_DLLTOOL"; then
5613 ac_ct_DLLTOOL=$DLLTOOL
5614 # Extract the first word of "dlltool", so it can be a program name with args.
5615 set dummy dlltool; ac_word=$2
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5617 $as_echo_n "checking for $ac_word... " >&6; }
5618 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5619 $as_echo_n "(cached) " >&6
5620 else
5621 if test -n "$ac_ct_DLLTOOL"; then
5622 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5623 else
5624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625 for as_dir in $PATH
5627 IFS=$as_save_IFS
5628 test -z "$as_dir" && as_dir=.
5629 for ac_exec_ext in '' $ac_executable_extensions; do
5630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5631 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5633 break 2
5635 done
5636 done
5637 IFS=$as_save_IFS
5641 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5642 if test -n "$ac_ct_DLLTOOL"; then
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5644 $as_echo "$ac_ct_DLLTOOL" >&6; }
5645 else
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5647 $as_echo "no" >&6; }
5650 if test "x$ac_ct_DLLTOOL" = x; then
5651 DLLTOOL=":"
5652 else
5653 case $cross_compiling:$ac_tool_warned in
5654 yes:)
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5657 ac_tool_warned=yes ;;
5658 esac
5659 DLLTOOL=$ac_ct_DLLTOOL
5661 else
5662 DLLTOOL="$ac_cv_prog_DLLTOOL"
5665 for ac_prog in gawk mawk nawk awk
5667 # Extract the first word of "$ac_prog", so it can be a program name with args.
5668 set dummy $ac_prog; ac_word=$2
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5670 $as_echo_n "checking for $ac_word... " >&6; }
5671 if test "${ac_cv_prog_AWK+set}" = set; then :
5672 $as_echo_n "(cached) " >&6
5673 else
5674 if test -n "$AWK"; then
5675 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5676 else
5677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5678 for as_dir in $PATH
5680 IFS=$as_save_IFS
5681 test -z "$as_dir" && as_dir=.
5682 for ac_exec_ext in '' $ac_executable_extensions; do
5683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5684 ac_cv_prog_AWK="$ac_prog"
5685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5686 break 2
5688 done
5689 done
5690 IFS=$as_save_IFS
5694 AWK=$ac_cv_prog_AWK
5695 if test -n "$AWK"; then
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5697 $as_echo "$AWK" >&6; }
5698 else
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700 $as_echo "no" >&6; }
5704 test -n "$AWK" && break
5705 done
5707 for ac_prog in jar fastjar gjar
5709 # Extract the first word of "$ac_prog", so it can be a program name with args.
5710 set dummy $ac_prog; ac_word=$2
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5712 $as_echo_n "checking for $ac_word... " >&6; }
5713 if test "${ac_cv_prog_JAR+set}" = set; then :
5714 $as_echo_n "(cached) " >&6
5715 else
5716 if test -n "$JAR"; then
5717 ac_cv_prog_JAR="$JAR" # Let the user override the test.
5718 else
5719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720 for as_dir in $PATH
5722 IFS=$as_save_IFS
5723 test -z "$as_dir" && as_dir=.
5724 for ac_exec_ext in '' $ac_executable_extensions; do
5725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5726 ac_cv_prog_JAR="$ac_prog"
5727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5728 break 2
5730 done
5731 done
5732 IFS=$as_save_IFS
5736 JAR=$ac_cv_prog_JAR
5737 if test -n "$JAR"; then
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
5739 $as_echo "$JAR" >&6; }
5740 else
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5742 $as_echo "no" >&6; }
5746 test -n "$JAR" && break
5747 done
5748 test -n "$JAR" || JAR="no"
5750 # Extract the first word of "zip", so it can be a program name with args.
5751 set dummy zip; ac_word=$2
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5753 $as_echo_n "checking for $ac_word... " >&6; }
5754 if test "${ac_cv_path_ZIP+set}" = set; then :
5755 $as_echo_n "(cached) " >&6
5756 else
5757 case $ZIP in
5758 [\\/]* | ?:[\\/]*)
5759 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763 for as_dir in $PATH
5765 IFS=$as_save_IFS
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5769 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5771 break 2
5773 done
5774 done
5775 IFS=$as_save_IFS
5777 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
5779 esac
5781 ZIP=$ac_cv_path_ZIP
5782 if test -n "$ZIP"; then
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
5784 $as_echo "$ZIP" >&6; }
5785 else
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787 $as_echo "no" >&6; }
5791 # Extract the first word of "unzip", so it can be a program name with args.
5792 set dummy unzip; ac_word=$2
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5794 $as_echo_n "checking for $ac_word... " >&6; }
5795 if test "${ac_cv_path_UNZIP+set}" = set; then :
5796 $as_echo_n "(cached) " >&6
5797 else
5798 case $UNZIP in
5799 [\\/]* | ?:[\\/]*)
5800 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH
5806 IFS=$as_save_IFS
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5810 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
5811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5812 break 2
5814 done
5815 done
5816 IFS=$as_save_IFS
5818 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
5820 esac
5822 UNZIP=$ac_cv_path_UNZIP
5823 if test -n "$UNZIP"; then
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
5825 $as_echo "$UNZIP" >&6; }
5826 else
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828 $as_echo "no" >&6; }
5833 # We need a jar that supports -@. This is a GNU extension.
5834 if test "$JAR" != no; then
5835 rm -f config-test.jar
5836 echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
5837 if test -f config-test.jar; then
5838 rm -f config-test.jar
5839 else
5840 JAR=no
5844 # Prefer the jar we found, but fall back to our jar script.
5845 if test "$JAR" = no; then
5846 if test "$ZIP" = no; then
5847 as_fn_error "cannot find neither zip nor jar, cannot continue" "$LINENO" 5
5848 else
5849 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
5850 JAR=`pwd`/scripts/jar
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5858 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5859 # Check whether --enable-maintainer-mode was given.
5860 if test "${enable_maintainer_mode+set}" = set; then :
5861 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5862 else
5863 USE_MAINTAINER_MODE=no
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5867 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5868 if test $USE_MAINTAINER_MODE = yes; then
5869 MAINTAINER_MODE_TRUE=
5870 MAINTAINER_MODE_FALSE='#'
5871 else
5872 MAINTAINER_MODE_TRUE='#'
5873 MAINTAINER_MODE_FALSE=
5876 MAINT=$MAINTAINER_MODE_TRUE
5882 # configure.host sets the following important variables
5883 # libgcj_cflags - host specific C compiler flags
5884 # libgcj_cxxflags - host specific C++ compiler flags
5885 # libgcj_javaflags - host specific Java compiler flags
5886 # libgcj_sublib_ltflags - host specific Libtool flags
5887 # libgcj_sublib_core_extra_deps - host specific extra
5888 # dependencies for core sublib
5889 # (these last two only used when building sublibs)
5890 # and a number of others; see the list at the start of the file.
5892 libgcj_cflags=
5893 libgcj_cxxflags=
5894 libgcj_javaflags=
5895 libgcj_sublib_ltflags=
5896 libgcj_sublib_core_extra_deps=
5898 . ${srcdir}/configure.host
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5901 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5902 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5903 $as_echo_n "(cached) " >&6
5904 else
5905 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5906 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5907 acl_cv_prog_gnu_ld=yes
5908 else
5909 acl_cv_prog_gnu_ld=no
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5913 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5914 with_gnu_ld=$acl_cv_prog_gnu_ld
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
5917 $as_echo_n "checking if the GNU linker ($LD) supports -Bsymbolic-functions... " >&6; }
5918 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then :
5919 $as_echo_n "(cached) " >&6
5920 else
5922 acl_cv_prog_gnu_ld_symbolic=no
5924 if test x"$with_gnu_ld" = x"yes"; then
5925 if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
5926 acl_cv_prog_gnu_ld_symbolic=yes
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld_symbolic" >&5
5931 $as_echo "$acl_cv_prog_gnu_ld_symbolic" >&6; }
5932 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
5933 SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
5934 else
5935 SYMBOLIC_LDFLAGS=''
5938 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
5939 if test -z "$libgcj_ld_symbolic"; then
5940 libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
5943 LIBGCJ_CFLAGS="${libgcj_cflags}"
5944 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
5945 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
5946 LIBGCJ_SUBLIB_LTFLAGS="${libgcj_sublib_ltflags}"
5947 LIBGCJ_SUBLIB_CORE_EXTRA_DEPS="${libgcj_sublib_core_extra_deps}"
5948 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
5949 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
5958 # Only use libltdl for non-newlib builds.
5959 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
5961 $as_echo_n "checking dynamic linker characteristics... " >&6; }
5962 library_names_spec=
5963 libname_spec='lib$name'
5964 soname_spec=
5965 shrext=".so"
5966 postinstall_cmds=
5967 postuninstall_cmds=
5968 finish_cmds=
5969 finish_eval=
5970 shlibpath_var=
5971 shlibpath_overrides_runpath=unknown
5972 version_type=none
5973 dynamic_linker="$host_os ld.so"
5974 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5975 if test "$GCC" = yes; then
5976 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
5977 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
5978 # if the path contains ";" then we assume it to be the separator
5979 # otherwise default to the standard path separator (i.e. ":") - it is
5980 # assumed that no part of a normal pathname contains ";" but that should
5981 # okay in the real world where ";" in dirpaths is itself problematic.
5982 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
5983 else
5984 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
5986 else
5987 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5989 need_lib_prefix=unknown
5990 hardcode_into_libs=no
5992 # when you set need_version to no, make sure it does not cause -set_version
5993 # flags to be left without arguments
5994 need_version=unknown
5996 case $host_os in
5997 aix3*)
5998 version_type=linux
5999 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6000 shlibpath_var=LIBPATH
6002 # AIX 3 has no versioning support, so we append a major version to the name.
6003 soname_spec='${libname}${release}${shared_ext}$major'
6006 aix[4-9]*)
6007 version_type=linux
6008 need_lib_prefix=no
6009 need_version=no
6010 hardcode_into_libs=yes
6011 if test "$host_cpu" = ia64; then
6012 # AIX 5 supports IA64
6013 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6014 shlibpath_var=LD_LIBRARY_PATH
6015 else
6016 # With GCC up to 2.95.x, collect2 would create an import file
6017 # for dependence libraries. The import file would start with
6018 # the line `#! .'. This would cause the generated library to
6019 # depend on `.', always an invalid library. This was fixed in
6020 # development snapshots of GCC prior to 3.0.
6021 case $host_os in
6022 aix4 | aix4.[01] | aix4.[01].*)
6023 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6024 echo ' yes '
6025 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6027 else
6028 can_build_shared=no
6031 esac
6032 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6033 # soname into executable. Probably we can add versioning support to
6034 # collect2, so additional links can be useful in future.
6035 if test "$aix_use_runtimelinking" = yes; then
6036 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6037 # instead of lib<name>.a to let people know that these are not
6038 # typical AIX shared libraries.
6039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6040 else
6041 # We preserve .a as extension for shared libraries through AIX4.2
6042 # and later when we are not doing run time linking.
6043 library_names_spec='${libname}${release}.a $libname.a'
6044 soname_spec='${libname}${release}${shared_ext}$major'
6046 shlibpath_var=LIBPATH
6050 amigaos*)
6051 library_names_spec='$libname.ixlibrary $libname.a'
6052 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6053 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'
6056 beos*)
6057 library_names_spec='${libname}${shared_ext}'
6058 dynamic_linker="$host_os ld.so"
6059 shlibpath_var=LIBRARY_PATH
6062 bsdi4*)
6063 version_type=linux
6064 need_version=no
6065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6066 soname_spec='${libname}${release}${shared_ext}$major'
6067 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6068 shlibpath_var=LD_LIBRARY_PATH
6069 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6070 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6071 # the default ld.so.conf also contains /usr/contrib/lib and
6072 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6073 # libtool to hard-code these into programs
6076 cygwin* | mingw* | pw32*)
6077 version_type=windows
6078 shrext=".dll"
6079 need_version=no
6080 need_lib_prefix=no
6082 case $GCC,$host_os in
6083 yes,cygwin* | yes,mingw* | yes,pw32*)
6084 library_names_spec='$libname.dll.a'
6085 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6086 postinstall_cmds='base_file=`basename \${file}`~
6087 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6088 dldir=$destdir/`dirname \$dlpath`~
6089 test -d \$dldir || mkdir -p \$dldir~
6090 $install_prog $dir/$dlname \$dldir/$dlname'
6091 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6092 dlpath=$dir/\$dldll~
6093 $rm \$dlpath'
6094 shlibpath_overrides_runpath=yes
6096 case $host_os in
6097 cygwin*)
6098 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6099 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6100 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
6102 mingw*)
6103 # MinGW DLLs use traditional 'lib' prefix
6104 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6105 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
6106 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6107 # It is most probably a Windows format PATH printed by
6108 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6109 # path with ; separators, and with drive letters. We can handle the
6110 # drive letters (cygwin fileutils understands them), so leave them,
6111 # especially as we might pass files found there to a mingw objdump,
6112 # which wouldn't understand a cygwinified path. Ahh.
6113 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6114 else
6115 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6118 pw32*)
6119 # pw32 DLLs use 'pw' prefix rather than 'lib'
6120 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
6122 esac
6126 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6128 esac
6129 dynamic_linker='Win32 ld.exe'
6130 # FIXME: first we should search . and the directory the executable is in
6131 shlibpath_var=PATH
6134 darwin* | rhapsody*)
6135 dynamic_linker="$host_os dyld"
6136 version_type=darwin
6137 need_lib_prefix=no
6138 need_version=no
6139 # FIXME: Relying on posixy $() will cause problems for
6140 # cross-compilation, but unfortunately the echo tests do not
6141 # yet detect zsh echo's removal of \ escapes.
6142 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6143 soname_spec='${libname}${release}${major}$shared_ext'
6144 shlibpath_overrides_runpath=yes
6145 shlibpath_var=DYLD_LIBRARY_PATH
6146 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
6147 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6148 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6149 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"`
6151 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6154 dgux*)
6155 version_type=linux
6156 need_lib_prefix=no
6157 need_version=no
6158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6159 soname_spec='${libname}${release}${shared_ext}$major'
6160 shlibpath_var=LD_LIBRARY_PATH
6163 freebsd1*)
6164 dynamic_linker=no
6167 freebsd*)
6168 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6169 version_type=freebsd-$objformat
6170 case $version_type in
6171 freebsd-elf*)
6172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6173 need_version=no
6174 need_lib_prefix=no
6176 freebsd-*)
6177 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6178 need_version=yes
6180 esac
6181 shlibpath_var=LD_LIBRARY_PATH
6182 case $host_os in
6183 freebsd2*)
6184 shlibpath_overrides_runpath=yes
6186 freebsd3.01* | freebsdelf3.01*)
6187 shlibpath_overrides_runpath=yes
6188 hardcode_into_libs=yes
6190 *) # from 3.2 on
6191 shlibpath_overrides_runpath=no
6192 hardcode_into_libs=yes
6194 esac
6197 gnu*)
6198 version_type=linux
6199 need_lib_prefix=no
6200 need_version=no
6201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6202 soname_spec='${libname}${release}${shared_ext}$major'
6203 shlibpath_var=LD_LIBRARY_PATH
6204 hardcode_into_libs=yes
6207 hpux9* | hpux10* | hpux11*)
6208 # Give a soname corresponding to the major version so that dld.sl refuses to
6209 # link against other versions.
6210 version_type=sunos
6211 need_lib_prefix=no
6212 need_version=no
6213 case "$host_cpu" in
6214 ia64*)
6215 shrext='.so'
6216 hardcode_into_libs=yes
6217 dynamic_linker="$host_os dld.so"
6218 shlibpath_var=LD_LIBRARY_PATH
6219 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6221 soname_spec='${libname}${release}${shared_ext}$major'
6222 if test "X$HPUX_IA64_MODE" = X32; then
6223 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6224 else
6225 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6227 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6229 hppa*64*)
6230 shrext='.sl'
6231 hardcode_into_libs=yes
6232 dynamic_linker="$host_os dld.sl"
6233 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6234 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6236 soname_spec='${libname}${release}${shared_ext}$major'
6237 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6238 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6241 shrext='.sl'
6242 dynamic_linker="$host_os dld.sl"
6243 shlibpath_var=SHLIB_PATH
6244 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6246 soname_spec='${libname}${release}${shared_ext}$major'
6248 esac
6249 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6250 postinstall_cmds='chmod 555 $lib'
6253 irix5* | irix6* | nonstopux*)
6254 case $host_os in
6255 nonstopux*) version_type=nonstopux ;;
6257 if test "$lt_cv_prog_gnu_ld" = yes; then
6258 version_type=linux
6259 else
6260 version_type=irix
6261 fi ;;
6262 esac
6263 need_lib_prefix=no
6264 need_version=no
6265 soname_spec='${libname}${release}${shared_ext}$major'
6266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6267 case $host_os in
6268 irix5* | nonstopux*)
6269 libsuff= shlibsuff=
6272 case $LD in # libtool.m4 will add one of these switches to LD
6273 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6274 libsuff= shlibsuff= libmagic=32-bit;;
6275 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6276 libsuff=32 shlibsuff=N32 libmagic=N32;;
6277 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6278 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6279 *) libsuff= shlibsuff= libmagic=never-match;;
6280 esac
6282 esac
6283 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6284 shlibpath_overrides_runpath=no
6285 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6286 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6287 hardcode_into_libs=yes
6290 # No shared lib support for Linux oldld, aout, or coff.
6291 linux*oldld* | linux*aout* | linux*coff*)
6292 dynamic_linker=no
6295 # This must be Linux ELF.
6296 linux*|k*bsd*-gnu)
6297 version_type=linux
6298 need_lib_prefix=no
6299 need_version=no
6300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6301 soname_spec='${libname}${release}${shared_ext}$major'
6302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6303 shlibpath_var=LD_LIBRARY_PATH
6304 shlibpath_overrides_runpath=no
6305 # This implies no fast_install, which is unacceptable.
6306 # Some rework will be needed to allow for fast_install
6307 # before this can be enabled.
6308 hardcode_into_libs=yes
6310 # We used to test for /lib/ld.so.1 and disable shared libraries on
6311 # powerpc, because MkLinux only supported shared libraries with the
6312 # GNU dynamic linker. Since this was broken with cross compilers,
6313 # most powerpc-linux boxes support dynamic linking these days and
6314 # people can always --disable-shared, the test was removed, and we
6315 # assume the GNU/Linux dynamic linker is in use.
6316 dynamic_linker='GNU/Linux ld.so'
6319 netbsd*)
6320 version_type=sunos
6321 need_lib_prefix=no
6322 need_version=no
6323 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6325 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6326 dynamic_linker='NetBSD (a.out) ld.so'
6327 else
6328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
6329 soname_spec='${libname}${release}${shared_ext}$major'
6330 dynamic_linker='NetBSD ld.elf_so'
6332 shlibpath_var=LD_LIBRARY_PATH
6333 shlibpath_overrides_runpath=yes
6334 hardcode_into_libs=yes
6337 newsos6)
6338 version_type=linux
6339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6340 shlibpath_var=LD_LIBRARY_PATH
6341 shlibpath_overrides_runpath=yes
6344 nto-qnx)
6345 version_type=linux
6346 need_lib_prefix=no
6347 need_version=no
6348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6349 soname_spec='${libname}${release}${shared_ext}$major'
6350 shlibpath_var=LD_LIBRARY_PATH
6351 shlibpath_overrides_runpath=yes
6354 openbsd*)
6355 version_type=sunos
6356 need_lib_prefix=no
6357 need_version=no
6358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6359 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6360 shlibpath_var=LD_LIBRARY_PATH
6361 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6362 case $host_os in
6363 openbsd2.[89] | openbsd2.[89].*)
6364 shlibpath_overrides_runpath=no
6367 shlibpath_overrides_runpath=yes
6369 esac
6370 else
6371 shlibpath_overrides_runpath=yes
6375 os2*)
6376 libname_spec='$name'
6377 shrext=".dll"
6378 need_lib_prefix=no
6379 library_names_spec='$libname${shared_ext} $libname.a'
6380 dynamic_linker='OS/2 ld.exe'
6381 shlibpath_var=LIBPATH
6384 osf3* | osf4* | osf5*)
6385 version_type=osf
6386 need_lib_prefix=no
6387 need_version=no
6388 soname_spec='${libname}${release}${shared_ext}$major'
6389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6390 shlibpath_var=LD_LIBRARY_PATH
6391 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6392 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6395 sco3.2v5*)
6396 version_type=osf
6397 soname_spec='${libname}${release}${shared_ext}$major'
6398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6399 shlibpath_var=LD_LIBRARY_PATH
6402 solaris*)
6403 version_type=linux
6404 need_lib_prefix=no
6405 need_version=no
6406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6407 soname_spec='${libname}${release}${shared_ext}$major'
6408 shlibpath_var=LD_LIBRARY_PATH
6409 shlibpath_overrides_runpath=yes
6410 hardcode_into_libs=yes
6411 # ldd complains unless libraries are executable
6412 postinstall_cmds='chmod +x $lib'
6415 sunos4*)
6416 version_type=sunos
6417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6418 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6419 shlibpath_var=LD_LIBRARY_PATH
6420 shlibpath_overrides_runpath=yes
6421 if test "$with_gnu_ld" = yes; then
6422 need_lib_prefix=no
6424 need_version=yes
6427 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6428 version_type=linux
6429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6430 soname_spec='${libname}${release}${shared_ext}$major'
6431 shlibpath_var=LD_LIBRARY_PATH
6432 case $host_vendor in
6433 sni)
6434 shlibpath_overrides_runpath=no
6435 need_lib_prefix=no
6436 export_dynamic_flag_spec='${wl}-Blargedynsym'
6437 runpath_var=LD_RUN_PATH
6439 siemens)
6440 need_lib_prefix=no
6442 motorola)
6443 need_lib_prefix=no
6444 need_version=no
6445 shlibpath_overrides_runpath=no
6446 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6448 esac
6451 sysv4*MP*)
6452 if test -d /usr/nec ;then
6453 version_type=linux
6454 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
6455 soname_spec='$libname${shared_ext}.$major'
6456 shlibpath_var=LD_LIBRARY_PATH
6460 uts4*)
6461 version_type=linux
6462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6463 soname_spec='${libname}${release}${shared_ext}$major'
6464 shlibpath_var=LD_LIBRARY_PATH
6468 dynamic_linker=no
6470 esac
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
6472 $as_echo "$dynamic_linker" >&6; }
6473 test "$dynamic_linker" = no && can_build_shared=no
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
6477 $as_echo_n "checking which variable specifies run-time library path... " >&6; }
6478 if test "${libltdl_cv_shlibpath_var+set}" = set; then :
6479 $as_echo_n "(cached) " >&6
6480 else
6481 libltdl_cv_shlibpath_var="$shlibpath_var"
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
6484 $as_echo "$libltdl_cv_shlibpath_var" >&6; }
6485 if test -n "$libltdl_cv_shlibpath_var"; then
6487 cat >>confdefs.h <<_ACEOF
6488 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
6489 _ACEOF
6495 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
6498 # Possibly build libgcj as many sub-libraries.
6499 # Check whether --enable-libgcj-sublibs was given.
6500 if test "${enable_libgcj_sublibs+set}" = set; then :
6501 enableval=$enable_libgcj_sublibs;
6505 if test -z "$enable_libgcj_sublibs"; then
6506 enable_libgcj_sublibs=$enable_libgcj_sublibs_default
6508 if test "$enable_libgcj_sublibs" = yes; then
6509 BUILD_SUBLIBS_TRUE=
6510 BUILD_SUBLIBS_FALSE='#'
6511 else
6512 BUILD_SUBLIBS_TRUE='#'
6513 BUILD_SUBLIBS_FALSE=
6516 if test "$enable_libgcj_sublibs" = yes ; then
6517 # In theory we could make do with only one override and simply
6518 # tag "_bc" onto the end of it when we use it to generate the
6519 # spec, but that's an ugly thing to do when there are multiple
6520 # words in the string and you're relying on the ordering to
6521 # append the correct one.
6522 libgcj_spec_lgcj_override="-lgcj-noncore -lgcj"
6523 libgcj_spec_lgcj_bc_override="-lgcj-noncore -lgcj_bc"
6527 # See if the user has requested runtime debugging.
6528 LIBGCJDEBUG="disable"
6530 # Check whether --enable-libgcj-debug was given.
6531 if test "${enable_libgcj_debug+set}" = set; then :
6532 enableval=$enable_libgcj_debug; if test "$enable_libgcj_debug" = yes; then
6534 $as_echo "#define __GCJ_DEBUG 1" >>confdefs.h
6536 LIBGCJDEBUG="enable"
6542 # Check whether --with-escher was given.
6543 if test "${with_escher+set}" = set; then :
6544 withval=$with_escher;
6547 case "$with_escher" in
6549 use_escher=false
6551 "no")
6552 use_escher=false
6554 "yes")
6555 as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
6558 use_escher=true
6560 esac
6562 # Determine which AWT peer libraries to build
6563 # Check whether --enable-java-awt was given.
6564 if test "${enable_java_awt+set}" = set; then :
6565 enableval=$enable_java_awt;
6569 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6570 use_xlib_awt=""
6571 use_gtk_awt=""
6572 use_qt_awt=""
6573 use_x_awt=""
6574 # The default toolkit to use is the first one specified.
6575 TOOLKIT=
6578 for peer in $peerlibs ; do
6579 case $peer in
6580 xlib)
6581 if test "$no_x" = yes; then
6582 echo "*** xlib peers requested but no X library available" 1>&2
6583 exit 1
6584 else
6585 use_xlib_awt="yes"
6586 if test -z "$TOOLKIT"; then
6587 TOOLKIT=gnu.awt.xlib.XToolkit
6591 gtk)
6592 if test "$no_x" = yes; then
6593 echo "*** gtk peers requested but no X library available" 1>&2
6594 exit 1
6595 else
6596 use_gtk_awt=yes
6597 if test -z "$TOOLKIT"; then
6598 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
6603 if test "$no_x" = yes; then
6604 # Perhaps we should admit the possibility of embedded Qt.
6605 echo "*** Qt peers requested but no X library available" 1>&2
6606 exit 1
6607 else
6608 use_qt_awt=yes
6609 if test -z "$TOOLKIT"; then
6610 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
6615 use_x_awt=yes
6616 if test -z "$TOOLKIT"; then
6617 TOOLKIT=gnu.java.awt.peer.x.XToolkit
6621 use_xlib_awt=
6622 use_gtk_awt=
6623 use_qt_awt=
6624 use_x_awt=
6625 break
6628 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
6629 exit 1
6630 esac
6631 done
6633 if test "$use_xlib_awt" = yes; then
6634 XLIB_AWT_TRUE=
6635 XLIB_AWT_FALSE='#'
6636 else
6637 XLIB_AWT_TRUE='#'
6638 XLIB_AWT_FALSE=
6641 if test "$use_x_awt" = yes; then
6642 X_AWT_TRUE=
6643 X_AWT_FALSE='#'
6644 else
6645 X_AWT_TRUE='#'
6646 X_AWT_FALSE=
6651 cat >>confdefs.h <<_ACEOF
6652 #define AWT_TOOLKIT "$TOOLKIT"
6653 _ACEOF
6656 expanded_prefix=$prefix
6657 if test "X$prefix" = XNONE; then
6658 expanded_prefix=${ac_default_prefix}
6662 cat >>confdefs.h <<_ACEOF
6663 #define LIBGCJ_PREFIX "$expanded_prefix"
6664 _ACEOF
6667 # Create standard.omit based on decisions we just made.
6668 cp $srcdir/standard.omit.in standard.omit
6669 if test "$use_xlib_awt" != yes; then
6670 echo gnu/awt/xlib >> standard.omit
6671 echo gnu/gcj/xlib >> standard.omit
6673 if test "$use_x_awt" != yes; then
6674 echo gnu/java/awt/peer/x >> standard.omit
6677 # Tools that need to be compiled against classpath's tools classes
6678 : > vm-tools-packages
6679 for package in gnu/gcj/tools/gc_analyze ; do
6680 echo $package >> standard.omit
6681 echo $package >> vm-tools-packages
6682 done
6684 if test -z "${with_multisubdir}"; then
6685 builddotdot=.
6686 else
6687 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
6690 NATIVE=yes
6692 # Which gcj and host gcj (for ecjx) do we use?
6693 which_gcj=default
6694 host_exeext=${ac_exeext}
6695 GCJ_FOR_ECJX=
6696 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
6697 if test -n "${with_cross_host}"; then
6698 # We are being configured with a cross compiler. We can't
6699 # use ac_exeext, because that is for the target platform.
6700 NATIVE=no
6701 cross_host_exeext=
6702 GCJ_FOR_ECJX="${with_cross_host}-gcj"
6703 case "${with_cross_host}" in
6704 *mingw* | *cygwin*)
6705 cross_host_exeext=.exe
6707 esac
6708 host_exeext=${cross_host_exeext}
6709 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
6710 if test x"$build_noncanonical" = x"$with_cross_host"; then
6711 # Ordinary cross (host!=target and host=build)
6712 which_gcj=built
6713 else
6714 # Canadian cross (host!=target and host!=build)
6715 which_gcj=cross
6717 else
6718 which_gcj=cross
6720 else
6721 # We are being configured with a native or crossed-native compiler
6722 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
6723 if test x"$build" = x"$host"; then
6724 # True native build (host=target and host=build)
6725 which_gcj=built
6726 else
6727 # Crossed-native build (host=target and host!=build)
6728 which_gcj=cross
6730 else
6731 which_gcj=path
6734 libgcjdir=`${PWDCMD-pwd}`
6735 case $GCJ in
6736 *" -B"*)
6737 # Just in case there is a comma in the build dir, quote it for the
6738 # sed command below.
6739 case $libgcjdir in
6740 *[,\\]*) qlibgcjdir=`echo "$libgcjdir" | sed 's:[,\\]:\\&:g'`;;
6741 *) qlibgcjdir=$libgcjdir;;
6742 esac
6743 GCJ=`echo "$GCJ" | sed "s, -B, -B$qlibgcjdir/&,"`
6746 GCJ=$GCJ" -B$libgcjdir/"
6748 esac
6749 case "${which_gcj}" in
6750 built)
6751 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
6753 cross)
6754 if test "x${with_newlib}" = "xyes"; then
6755 # FIXME (comment): Why is this needed?
6756 GCC_UNWIND_INCLUDE=
6758 GCJH='$(target_noncanonical)-gcjh'
6760 path)
6761 GCJH=gcjh
6763 esac
6764 JAVAC="$GCJ -C"
6765 export JAVAC
6771 # Create it, so that compile/link tests don't fail
6772 test -f libgcj.spec || touch libgcj.spec
6776 # Set up to configure Classpath.
6777 # FIXME: no supported way to pass args in autoconf.
6778 # Disable tool wrappers to avoid ltdl.h configure check.
6779 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
6780 ac_configure_args="$ac_configure_args --disable-load-library"
6781 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
6782 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
6783 dir1=`cd $srcdir && pwd`
6784 dir2=`pwd`
6785 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
6786 ac_configure_args="$ac_configure_args --disable-core-jni"
6787 ac_configure_args="$ac_configure_args --disable-examples"
6788 ac_configure_args="$ac_configure_args --with-glibj=build"
6789 if test "$browser_plugin_enabled" != yes; then
6790 ac_configure_args="$ac_configure_args --disable-plugin"
6791 else
6792 ac_configure_args="$ac_configure_args --enable-plugin"
6794 if test "$gconf_enabled" != yes; then
6795 ac_configure_args="$ac_configure_args --disable-gconf-peer"
6796 ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
6798 if test "$use_gtk_awt" != yes; then
6799 ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
6801 if test "$use_qt_awt" != yes; then
6802 ac_configure_args="$ac_configure_args --disable-qt-peer"
6803 else
6804 # We need this as qt is disabled by default in classpath.
6805 ac_configure_args="$ac_configure_args --enable-qt-peer"
6807 if test "$use_x_awt" != yes; then
6808 ac_configure_args="$ac_configure_args --without-escher"
6809 else
6810 # We need this as escher is disabled by default in classpath.
6811 if test "$use_escher" != true; then
6812 as_fn_error "Please supply an absolute path to the Escher library" "$LINENO" 5
6813 else
6814 ac_configure_args="$ac_configure_args --with-escher=$with_escher"
6817 if test "x$BUILD_GJDOC" = xno; then
6818 ac_configure_args="$ac_configure_args --disable-gjdoc"
6820 # -Werror causes unavoidable problems in code using alsa.
6821 ac_configure_args="$ac_configure_args --disable-regen-headers"
6822 ac_configure_args="$ac_configure_args --disable-Werror"
6824 # Only use libltdl for non-newlib builds.
6825 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
6826 case $enable_ltdl_convenience in
6827 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
6828 "") enable_ltdl_convenience=yes
6829 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
6830 esac
6831 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
6832 LTDLINCL='-I${top_srcdir}/''libltdl'
6833 # For backwards non-gettext consistent compatibility...
6834 INCLTDL="$LTDLINCL"
6836 enable_dlopen=yes
6840 DIRLTDL=libltdl
6842 $as_echo "#define USE_LTDL 1" >>confdefs.h
6844 # Sigh. Libtool's macro doesn't do the right thing.
6845 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
6846 # FIXME: this is a hack.
6847 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
6848 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
6853 case `pwd` in
6854 *\ * | *\ *)
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6856 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6857 esac
6861 macro_version='2.2.7a'
6862 macro_revision='1.3134'
6876 ltmain="$ac_aux_dir/ltmain.sh"
6878 # Backslashify metacharacters that are still active within
6879 # double-quoted strings.
6880 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6882 # Same as above, but do not quote variable references.
6883 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6885 # Sed substitution to delay expansion of an escaped shell variable in a
6886 # double_quote_subst'ed string.
6887 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6889 # Sed substitution to delay expansion of an escaped single quote.
6890 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6892 # Sed substitution to avoid accidental globbing in evaled expressions
6893 no_glob_subst='s/\*/\\\*/g'
6895 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6896 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6897 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6900 $as_echo_n "checking how to print strings... " >&6; }
6901 # Test print first, because it will be a builtin if present.
6902 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6903 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6904 ECHO='print -r --'
6905 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6906 ECHO='printf %s\n'
6907 else
6908 # Use this function as a fallback that always works.
6909 func_fallback_echo ()
6911 eval 'cat <<_LTECHO_EOF
6913 _LTECHO_EOF'
6915 ECHO='func_fallback_echo'
6918 # func_echo_all arg...
6919 # Invoke $ECHO with all args, space-separated.
6920 func_echo_all ()
6922 $ECHO ""
6925 case "$ECHO" in
6926 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6927 $as_echo "printf" >&6; } ;;
6928 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6929 $as_echo "print -r" >&6; } ;;
6930 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6931 $as_echo "cat" >&6; } ;;
6932 esac
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6948 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6949 if test "${ac_cv_path_SED+set}" = set; then :
6950 $as_echo_n "(cached) " >&6
6951 else
6952 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6953 for ac_i in 1 2 3 4 5 6 7; do
6954 ac_script="$ac_script$as_nl$ac_script"
6955 done
6956 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6957 { ac_script=; unset ac_script;}
6958 if test -z "$SED"; then
6959 ac_path_SED_found=false
6960 # Loop through the user's path and test for each of PROGNAME-LIST
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962 for as_dir in $PATH
6964 IFS=$as_save_IFS
6965 test -z "$as_dir" && as_dir=.
6966 for ac_prog in sed gsed; do
6967 for ac_exec_ext in '' $ac_executable_extensions; do
6968 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6969 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6970 # Check for GNU ac_path_SED and select it if it is found.
6971 # Check for GNU $ac_path_SED
6972 case `"$ac_path_SED" --version 2>&1` in
6973 *GNU*)
6974 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6976 ac_count=0
6977 $as_echo_n 0123456789 >"conftest.in"
6978 while :
6980 cat "conftest.in" "conftest.in" >"conftest.tmp"
6981 mv "conftest.tmp" "conftest.in"
6982 cp "conftest.in" "conftest.nl"
6983 $as_echo '' >> "conftest.nl"
6984 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6985 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6986 as_fn_arith $ac_count + 1 && ac_count=$as_val
6987 if test $ac_count -gt ${ac_path_SED_max-0}; then
6988 # Best one so far, save it but keep looking for a better one
6989 ac_cv_path_SED="$ac_path_SED"
6990 ac_path_SED_max=$ac_count
6992 # 10*(2^10) chars as input seems more than enough
6993 test $ac_count -gt 10 && break
6994 done
6995 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6996 esac
6998 $ac_path_SED_found && break 3
6999 done
7000 done
7001 done
7002 IFS=$as_save_IFS
7003 if test -z "$ac_cv_path_SED"; then
7004 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7006 else
7007 ac_cv_path_SED=$SED
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7012 $as_echo "$ac_cv_path_SED" >&6; }
7013 SED="$ac_cv_path_SED"
7014 rm -f conftest.sed
7016 test -z "$SED" && SED=sed
7017 Xsed="$SED -e 1s/^X//"
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7030 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7031 if test "${ac_cv_path_GREP+set}" = set; then :
7032 $as_echo_n "(cached) " >&6
7033 else
7034 if test -z "$GREP"; then
7035 ac_path_GREP_found=false
7036 # Loop through the user's path and test for each of PROGNAME-LIST
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7040 IFS=$as_save_IFS
7041 test -z "$as_dir" && as_dir=.
7042 for ac_prog in grep ggrep; do
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7045 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7046 # Check for GNU ac_path_GREP and select it if it is found.
7047 # Check for GNU $ac_path_GREP
7048 case `"$ac_path_GREP" --version 2>&1` in
7049 *GNU*)
7050 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7052 ac_count=0
7053 $as_echo_n 0123456789 >"conftest.in"
7054 while :
7056 cat "conftest.in" "conftest.in" >"conftest.tmp"
7057 mv "conftest.tmp" "conftest.in"
7058 cp "conftest.in" "conftest.nl"
7059 $as_echo 'GREP' >> "conftest.nl"
7060 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7061 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7062 as_fn_arith $ac_count + 1 && ac_count=$as_val
7063 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7064 # Best one so far, save it but keep looking for a better one
7065 ac_cv_path_GREP="$ac_path_GREP"
7066 ac_path_GREP_max=$ac_count
7068 # 10*(2^10) chars as input seems more than enough
7069 test $ac_count -gt 10 && break
7070 done
7071 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7072 esac
7074 $ac_path_GREP_found && break 3
7075 done
7076 done
7077 done
7078 IFS=$as_save_IFS
7079 if test -z "$ac_cv_path_GREP"; then
7080 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7082 else
7083 ac_cv_path_GREP=$GREP
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7088 $as_echo "$ac_cv_path_GREP" >&6; }
7089 GREP="$ac_cv_path_GREP"
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7093 $as_echo_n "checking for egrep... " >&6; }
7094 if test "${ac_cv_path_EGREP+set}" = set; then :
7095 $as_echo_n "(cached) " >&6
7096 else
7097 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7098 then ac_cv_path_EGREP="$GREP -E"
7099 else
7100 if test -z "$EGREP"; then
7101 ac_path_EGREP_found=false
7102 # Loop through the user's path and test for each of PROGNAME-LIST
7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7106 IFS=$as_save_IFS
7107 test -z "$as_dir" && as_dir=.
7108 for ac_prog in egrep; do
7109 for ac_exec_ext in '' $ac_executable_extensions; do
7110 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7111 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7112 # Check for GNU ac_path_EGREP and select it if it is found.
7113 # Check for GNU $ac_path_EGREP
7114 case `"$ac_path_EGREP" --version 2>&1` in
7115 *GNU*)
7116 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7118 ac_count=0
7119 $as_echo_n 0123456789 >"conftest.in"
7120 while :
7122 cat "conftest.in" "conftest.in" >"conftest.tmp"
7123 mv "conftest.tmp" "conftest.in"
7124 cp "conftest.in" "conftest.nl"
7125 $as_echo 'EGREP' >> "conftest.nl"
7126 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7127 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7128 as_fn_arith $ac_count + 1 && ac_count=$as_val
7129 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7130 # Best one so far, save it but keep looking for a better one
7131 ac_cv_path_EGREP="$ac_path_EGREP"
7132 ac_path_EGREP_max=$ac_count
7134 # 10*(2^10) chars as input seems more than enough
7135 test $ac_count -gt 10 && break
7136 done
7137 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7138 esac
7140 $ac_path_EGREP_found && break 3
7141 done
7142 done
7143 done
7144 IFS=$as_save_IFS
7145 if test -z "$ac_cv_path_EGREP"; then
7146 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7148 else
7149 ac_cv_path_EGREP=$EGREP
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7155 $as_echo "$ac_cv_path_EGREP" >&6; }
7156 EGREP="$ac_cv_path_EGREP"
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7160 $as_echo_n "checking for fgrep... " >&6; }
7161 if test "${ac_cv_path_FGREP+set}" = set; then :
7162 $as_echo_n "(cached) " >&6
7163 else
7164 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7165 then ac_cv_path_FGREP="$GREP -F"
7166 else
7167 if test -z "$FGREP"; then
7168 ac_path_FGREP_found=false
7169 # Loop through the user's path and test for each of PROGNAME-LIST
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7173 IFS=$as_save_IFS
7174 test -z "$as_dir" && as_dir=.
7175 for ac_prog in fgrep; do
7176 for ac_exec_ext in '' $ac_executable_extensions; do
7177 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7178 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7179 # Check for GNU ac_path_FGREP and select it if it is found.
7180 # Check for GNU $ac_path_FGREP
7181 case `"$ac_path_FGREP" --version 2>&1` in
7182 *GNU*)
7183 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7185 ac_count=0
7186 $as_echo_n 0123456789 >"conftest.in"
7187 while :
7189 cat "conftest.in" "conftest.in" >"conftest.tmp"
7190 mv "conftest.tmp" "conftest.in"
7191 cp "conftest.in" "conftest.nl"
7192 $as_echo 'FGREP' >> "conftest.nl"
7193 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7194 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7195 as_fn_arith $ac_count + 1 && ac_count=$as_val
7196 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7197 # Best one so far, save it but keep looking for a better one
7198 ac_cv_path_FGREP="$ac_path_FGREP"
7199 ac_path_FGREP_max=$ac_count
7201 # 10*(2^10) chars as input seems more than enough
7202 test $ac_count -gt 10 && break
7203 done
7204 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7205 esac
7207 $ac_path_FGREP_found && break 3
7208 done
7209 done
7210 done
7211 IFS=$as_save_IFS
7212 if test -z "$ac_cv_path_FGREP"; then
7213 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7215 else
7216 ac_cv_path_FGREP=$FGREP
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7222 $as_echo "$ac_cv_path_FGREP" >&6; }
7223 FGREP="$ac_cv_path_FGREP"
7226 test -z "$GREP" && GREP=grep
7246 # Check whether --with-gnu-ld was given.
7247 if test "${with_gnu_ld+set}" = set; then :
7248 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7249 else
7250 with_gnu_ld=no
7253 ac_prog=ld
7254 if test "$GCC" = yes; then
7255 # Check if gcc -print-prog-name=ld gives a path.
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7257 $as_echo_n "checking for ld used by $CC... " >&6; }
7258 case $host in
7259 *-*-mingw*)
7260 # gcc leaves a trailing carriage return which upsets mingw
7261 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7263 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7264 esac
7265 case $ac_prog in
7266 # Accept absolute paths.
7267 [\\/]* | ?:[\\/]*)
7268 re_direlt='/[^/][^/]*/\.\./'
7269 # Canonicalize the pathname of ld
7270 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7271 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7272 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7273 done
7274 test -z "$LD" && LD="$ac_prog"
7277 # If it fails, then pretend we aren't using GCC.
7278 ac_prog=ld
7281 # If it is relative, then search for the first ld in PATH.
7282 with_gnu_ld=unknown
7284 esac
7285 elif test "$with_gnu_ld" = yes; then
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7287 $as_echo_n "checking for GNU ld... " >&6; }
7288 else
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7290 $as_echo_n "checking for non-GNU ld... " >&6; }
7292 if test "${lt_cv_path_LD+set}" = set; then :
7293 $as_echo_n "(cached) " >&6
7294 else
7295 if test -z "$LD"; then
7296 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7297 for ac_dir in $PATH; do
7298 IFS="$lt_save_ifs"
7299 test -z "$ac_dir" && ac_dir=.
7300 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7301 lt_cv_path_LD="$ac_dir/$ac_prog"
7302 # Check to see if the program is GNU ld. I'd rather use --version,
7303 # but apparently some variants of GNU ld only accept -v.
7304 # Break only if it was the GNU/non-GNU ld that we prefer.
7305 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7306 *GNU* | *'with BFD'*)
7307 test "$with_gnu_ld" != no && break
7310 test "$with_gnu_ld" != yes && break
7312 esac
7314 done
7315 IFS="$lt_save_ifs"
7316 else
7317 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7321 LD="$lt_cv_path_LD"
7322 if test -n "$LD"; then
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7324 $as_echo "$LD" >&6; }
7325 else
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327 $as_echo "no" >&6; }
7329 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7331 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7332 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7333 $as_echo_n "(cached) " >&6
7334 else
7335 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7336 case `$LD -v 2>&1 </dev/null` in
7337 *GNU* | *'with BFD'*)
7338 lt_cv_prog_gnu_ld=yes
7341 lt_cv_prog_gnu_ld=no
7343 esac
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7346 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7347 with_gnu_ld=$lt_cv_prog_gnu_ld
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7358 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7359 if test "${lt_cv_path_NM+set}" = set; then :
7360 $as_echo_n "(cached) " >&6
7361 else
7362 if test -n "$NM"; then
7363 # Let the user override the test.
7364 lt_cv_path_NM="$NM"
7365 else
7366 lt_nm_to_check="${ac_tool_prefix}nm"
7367 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7368 lt_nm_to_check="$lt_nm_to_check nm"
7370 for lt_tmp_nm in $lt_nm_to_check; do
7371 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7372 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7373 IFS="$lt_save_ifs"
7374 test -z "$ac_dir" && ac_dir=.
7375 tmp_nm="$ac_dir/$lt_tmp_nm"
7376 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7377 # Check to see if the nm accepts a BSD-compat flag.
7378 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7379 # nm: unknown option "B" ignored
7380 # Tru64's nm complains that /dev/null is an invalid object file
7381 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7382 */dev/null* | *'Invalid file or object type'*)
7383 lt_cv_path_NM="$tmp_nm -B"
7384 break
7387 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7388 */dev/null*)
7389 lt_cv_path_NM="$tmp_nm -p"
7390 break
7393 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7394 continue # so that we can try to find one that supports BSD flags
7396 esac
7398 esac
7400 done
7401 IFS="$lt_save_ifs"
7402 done
7403 : ${lt_cv_path_NM=no}
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7407 $as_echo "$lt_cv_path_NM" >&6; }
7408 if test "$lt_cv_path_NM" != "no"; then
7409 NM="$lt_cv_path_NM"
7410 else
7411 # Didn't find any BSD compatible name lister, look for dumpbin.
7412 if test -n "$DUMPBIN"; then :
7413 # Let the user override the test.
7414 else
7415 if test -n "$ac_tool_prefix"; then
7416 for ac_prog in dumpbin "link -dump"
7418 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7419 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7421 $as_echo_n "checking for $ac_word... " >&6; }
7422 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7423 $as_echo_n "(cached) " >&6
7424 else
7425 if test -n "$DUMPBIN"; then
7426 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7427 else
7428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429 for as_dir in $PATH
7431 IFS=$as_save_IFS
7432 test -z "$as_dir" && as_dir=.
7433 for ac_exec_ext in '' $ac_executable_extensions; do
7434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7435 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7437 break 2
7439 done
7440 done
7441 IFS=$as_save_IFS
7445 DUMPBIN=$ac_cv_prog_DUMPBIN
7446 if test -n "$DUMPBIN"; then
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7448 $as_echo "$DUMPBIN" >&6; }
7449 else
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7451 $as_echo "no" >&6; }
7455 test -n "$DUMPBIN" && break
7456 done
7458 if test -z "$DUMPBIN"; then
7459 ac_ct_DUMPBIN=$DUMPBIN
7460 for ac_prog in dumpbin "link -dump"
7462 # Extract the first word of "$ac_prog", so it can be a program name with args.
7463 set dummy $ac_prog; ac_word=$2
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7465 $as_echo_n "checking for $ac_word... " >&6; }
7466 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7467 $as_echo_n "(cached) " >&6
7468 else
7469 if test -n "$ac_ct_DUMPBIN"; then
7470 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7471 else
7472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473 for as_dir in $PATH
7475 IFS=$as_save_IFS
7476 test -z "$as_dir" && as_dir=.
7477 for ac_exec_ext in '' $ac_executable_extensions; do
7478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7479 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7481 break 2
7483 done
7484 done
7485 IFS=$as_save_IFS
7489 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7490 if test -n "$ac_ct_DUMPBIN"; then
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7492 $as_echo "$ac_ct_DUMPBIN" >&6; }
7493 else
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495 $as_echo "no" >&6; }
7499 test -n "$ac_ct_DUMPBIN" && break
7500 done
7502 if test "x$ac_ct_DUMPBIN" = x; then
7503 DUMPBIN=":"
7504 else
7505 case $cross_compiling:$ac_tool_warned in
7506 yes:)
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7509 ac_tool_warned=yes ;;
7510 esac
7511 DUMPBIN=$ac_ct_DUMPBIN
7515 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7516 *COFF*)
7517 DUMPBIN="$DUMPBIN -symbols"
7520 DUMPBIN=:
7522 esac
7525 if test "$DUMPBIN" != ":"; then
7526 NM="$DUMPBIN"
7529 test -z "$NM" && NM=nm
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7537 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7538 if test "${lt_cv_nm_interface+set}" = set; then :
7539 $as_echo_n "(cached) " >&6
7540 else
7541 lt_cv_nm_interface="BSD nm"
7542 echo "int some_variable = 0;" > conftest.$ac_ext
7543 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7544 (eval "$ac_compile" 2>conftest.err)
7545 cat conftest.err >&5
7546 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7547 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7548 cat conftest.err >&5
7549 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7550 cat conftest.out >&5
7551 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7552 lt_cv_nm_interface="MS dumpbin"
7554 rm -f conftest*
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7557 $as_echo "$lt_cv_nm_interface" >&6; }
7559 # find the maximum length of command line arguments
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7561 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7562 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7563 $as_echo_n "(cached) " >&6
7564 else
7566 teststring="ABCD"
7568 case $build_os in
7569 msdosdjgpp*)
7570 # On DJGPP, this test can blow up pretty badly due to problems in libc
7571 # (any single argument exceeding 2000 bytes causes a buffer overrun
7572 # during glob expansion). Even if it were fixed, the result of this
7573 # check would be larger than it should be.
7574 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7577 gnu*)
7578 # Under GNU Hurd, this test is not required because there is
7579 # no limit to the length of command line arguments.
7580 # Libtool will interpret -1 as no limit whatsoever
7581 lt_cv_sys_max_cmd_len=-1;
7584 cygwin* | mingw* | cegcc*)
7585 # On Win9x/ME, this test blows up -- it succeeds, but takes
7586 # about 5 minutes as the teststring grows exponentially.
7587 # Worse, since 9x/ME are not pre-emptively multitasking,
7588 # you end up with a "frozen" computer, even though with patience
7589 # the test eventually succeeds (with a max line length of 256k).
7590 # Instead, let's just punt: use the minimum linelength reported by
7591 # all of the supported platforms: 8192 (on NT/2K/XP).
7592 lt_cv_sys_max_cmd_len=8192;
7595 mint*)
7596 # On MiNT this can take a long time and run out of memory.
7597 lt_cv_sys_max_cmd_len=8192;
7600 amigaos*)
7601 # On AmigaOS with pdksh, this test takes hours, literally.
7602 # So we just punt and use a minimum line length of 8192.
7603 lt_cv_sys_max_cmd_len=8192;
7606 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7607 # This has been around since 386BSD, at least. Likely further.
7608 if test -x /sbin/sysctl; then
7609 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7610 elif test -x /usr/sbin/sysctl; then
7611 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7612 else
7613 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7615 # And add a safety zone
7616 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7617 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7620 interix*)
7621 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7622 lt_cv_sys_max_cmd_len=196608
7625 osf*)
7626 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7627 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7628 # nice to cause kernel panics so lets avoid the loop below.
7629 # First set a reasonable default.
7630 lt_cv_sys_max_cmd_len=16384
7632 if test -x /sbin/sysconfig; then
7633 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7634 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7635 esac
7638 sco3.2v5*)
7639 lt_cv_sys_max_cmd_len=102400
7641 sysv5* | sco5v6* | sysv4.2uw2*)
7642 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7643 if test -n "$kargmax"; then
7644 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7645 else
7646 lt_cv_sys_max_cmd_len=32768
7650 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7651 if test -n "$lt_cv_sys_max_cmd_len"; then
7652 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7653 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7654 else
7655 # Make teststring a little bigger before we do anything with it.
7656 # a 1K string should be a reasonable start.
7657 for i in 1 2 3 4 5 6 7 8 ; do
7658 teststring=$teststring$teststring
7659 done
7660 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7661 # If test is not a shell built-in, we'll probably end up computing a
7662 # maximum length that is only half of the actual maximum length, but
7663 # we can't tell.
7664 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7665 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7666 test $i != 17 # 1/2 MB should be enough
7668 i=`expr $i + 1`
7669 teststring=$teststring$teststring
7670 done
7671 # Only check the string length outside the loop.
7672 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7673 teststring=
7674 # Add a significant safety factor because C++ compilers can tack on
7675 # massive amounts of additional arguments before passing them to the
7676 # linker. It appears as though 1/2 is a usable value.
7677 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7680 esac
7684 if test -n $lt_cv_sys_max_cmd_len ; then
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7686 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7687 else
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7689 $as_echo "none" >&6; }
7691 max_cmd_len=$lt_cv_sys_max_cmd_len
7698 : ${CP="cp -f"}
7699 : ${MV="mv -f"}
7700 : ${RM="rm -f"}
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7703 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7704 # Try some XSI features
7705 xsi_shell=no
7706 ( _lt_dummy="a/b/c"
7707 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7708 = c,a/b,, \
7709 && eval 'test $(( 1 + 1 )) -eq 2 \
7710 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7711 && xsi_shell=yes
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7713 $as_echo "$xsi_shell" >&6; }
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7717 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7718 lt_shell_append=no
7719 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7720 >/dev/null 2>&1 \
7721 && lt_shell_append=yes
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7723 $as_echo "$lt_shell_append" >&6; }
7726 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7727 lt_unset=unset
7728 else
7729 lt_unset=false
7736 # test EBCDIC or ASCII
7737 case `echo X|tr X '\101'` in
7738 A) # ASCII based system
7739 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7740 lt_SP2NL='tr \040 \012'
7741 lt_NL2SP='tr \015\012 \040\040'
7743 *) # EBCDIC based system
7744 lt_SP2NL='tr \100 \n'
7745 lt_NL2SP='tr \r\n \100\100'
7747 esac
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7758 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7759 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7760 $as_echo_n "(cached) " >&6
7761 else
7762 lt_cv_ld_reload_flag='-r'
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7765 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7766 reload_flag=$lt_cv_ld_reload_flag
7767 case $reload_flag in
7768 "" | " "*) ;;
7769 *) reload_flag=" $reload_flag" ;;
7770 esac
7771 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7772 case $host_os in
7773 darwin*)
7774 if test "$GCC" = yes; then
7775 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7776 else
7777 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7780 esac
7790 if test -n "$ac_tool_prefix"; then
7791 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7792 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7794 $as_echo_n "checking for $ac_word... " >&6; }
7795 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7796 $as_echo_n "(cached) " >&6
7797 else
7798 if test -n "$OBJDUMP"; then
7799 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7800 else
7801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802 for as_dir in $PATH
7804 IFS=$as_save_IFS
7805 test -z "$as_dir" && as_dir=.
7806 for ac_exec_ext in '' $ac_executable_extensions; do
7807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7808 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7810 break 2
7812 done
7813 done
7814 IFS=$as_save_IFS
7818 OBJDUMP=$ac_cv_prog_OBJDUMP
7819 if test -n "$OBJDUMP"; then
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7821 $as_echo "$OBJDUMP" >&6; }
7822 else
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824 $as_echo "no" >&6; }
7829 if test -z "$ac_cv_prog_OBJDUMP"; then
7830 ac_ct_OBJDUMP=$OBJDUMP
7831 # Extract the first word of "objdump", so it can be a program name with args.
7832 set dummy objdump; ac_word=$2
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7834 $as_echo_n "checking for $ac_word... " >&6; }
7835 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7836 $as_echo_n "(cached) " >&6
7837 else
7838 if test -n "$ac_ct_OBJDUMP"; then
7839 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7840 else
7841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842 for as_dir in $PATH
7844 IFS=$as_save_IFS
7845 test -z "$as_dir" && as_dir=.
7846 for ac_exec_ext in '' $ac_executable_extensions; do
7847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7848 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7850 break 2
7852 done
7853 done
7854 IFS=$as_save_IFS
7858 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7859 if test -n "$ac_ct_OBJDUMP"; then
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7861 $as_echo "$ac_ct_OBJDUMP" >&6; }
7862 else
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7864 $as_echo "no" >&6; }
7867 if test "x$ac_ct_OBJDUMP" = x; then
7868 OBJDUMP="false"
7869 else
7870 case $cross_compiling:$ac_tool_warned in
7871 yes:)
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7874 ac_tool_warned=yes ;;
7875 esac
7876 OBJDUMP=$ac_ct_OBJDUMP
7878 else
7879 OBJDUMP="$ac_cv_prog_OBJDUMP"
7882 test -z "$OBJDUMP" && OBJDUMP=objdump
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7893 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7894 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7895 $as_echo_n "(cached) " >&6
7896 else
7897 lt_cv_file_magic_cmd='$MAGIC_CMD'
7898 lt_cv_file_magic_test_file=
7899 lt_cv_deplibs_check_method='unknown'
7900 # Need to set the preceding variable on all platforms that support
7901 # interlibrary dependencies.
7902 # 'none' -- dependencies not supported.
7903 # `unknown' -- same as none, but documents that we really don't know.
7904 # 'pass_all' -- all dependencies passed with no checks.
7905 # 'test_compile' -- check by making test program.
7906 # 'file_magic [[regex]]' -- check by looking for files in library path
7907 # which responds to the $file_magic_cmd with a given extended regex.
7908 # If you have `file' or equivalent on your system and you're not sure
7909 # whether `pass_all' will *always* work, you probably want this one.
7911 case $host_os in
7912 aix[4-9]*)
7913 lt_cv_deplibs_check_method=pass_all
7916 beos*)
7917 lt_cv_deplibs_check_method=pass_all
7920 bsdi[45]*)
7921 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7922 lt_cv_file_magic_cmd='/usr/bin/file -L'
7923 lt_cv_file_magic_test_file=/shlib/libc.so
7926 cygwin*)
7927 # func_win32_libid is a shell function defined in ltmain.sh
7928 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7929 lt_cv_file_magic_cmd='func_win32_libid'
7932 mingw* | pw32*)
7933 # Base MSYS/MinGW do not provide the 'file' command needed by
7934 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7935 # unless we find 'file', for example because we are cross-compiling.
7936 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7937 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7938 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7939 lt_cv_file_magic_cmd='func_win32_libid'
7940 else
7941 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7942 lt_cv_file_magic_cmd='$OBJDUMP -f'
7946 cegcc*)
7947 # use the weaker test based on 'objdump'. See mingw*.
7948 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7949 lt_cv_file_magic_cmd='$OBJDUMP -f'
7952 darwin* | rhapsody*)
7953 lt_cv_deplibs_check_method=pass_all
7956 freebsd* | dragonfly*)
7957 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7958 case $host_cpu in
7959 i*86 )
7960 # Not sure whether the presence of OpenBSD here was a mistake.
7961 # Let's accept both of them until this is cleared up.
7962 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7963 lt_cv_file_magic_cmd=/usr/bin/file
7964 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7966 esac
7967 else
7968 lt_cv_deplibs_check_method=pass_all
7972 gnu*)
7973 lt_cv_deplibs_check_method=pass_all
7976 haiku*)
7977 lt_cv_deplibs_check_method=pass_all
7980 hpux10.20* | hpux11*)
7981 lt_cv_file_magic_cmd=/usr/bin/file
7982 case $host_cpu in
7983 ia64*)
7984 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7985 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7987 hppa*64*)
7988 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]'
7989 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7992 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7993 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7995 esac
7998 interix[3-9]*)
7999 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8000 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8003 irix5* | irix6* | nonstopux*)
8004 case $LD in
8005 *-32|*"-32 ") libmagic=32-bit;;
8006 *-n32|*"-n32 ") libmagic=N32;;
8007 *-64|*"-64 ") libmagic=64-bit;;
8008 *) libmagic=never-match;;
8009 esac
8010 lt_cv_deplibs_check_method=pass_all
8013 # This must be Linux ELF.
8014 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8015 lt_cv_deplibs_check_method=pass_all
8018 netbsd*)
8019 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8020 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8021 else
8022 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8026 newos6*)
8027 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8028 lt_cv_file_magic_cmd=/usr/bin/file
8029 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8032 *nto* | *qnx*)
8033 lt_cv_deplibs_check_method=pass_all
8036 openbsd*)
8037 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8038 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8039 else
8040 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8044 osf3* | osf4* | osf5*)
8045 lt_cv_deplibs_check_method=pass_all
8048 rdos*)
8049 lt_cv_deplibs_check_method=pass_all
8052 solaris*)
8053 lt_cv_deplibs_check_method=pass_all
8056 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8057 lt_cv_deplibs_check_method=pass_all
8060 sysv4 | sysv4.3*)
8061 case $host_vendor in
8062 motorola)
8063 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]'
8064 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8066 ncr)
8067 lt_cv_deplibs_check_method=pass_all
8069 sequent)
8070 lt_cv_file_magic_cmd='/bin/file'
8071 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8073 sni)
8074 lt_cv_file_magic_cmd='/bin/file'
8075 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8076 lt_cv_file_magic_test_file=/lib/libc.so
8078 siemens)
8079 lt_cv_deplibs_check_method=pass_all
8082 lt_cv_deplibs_check_method=pass_all
8084 esac
8087 tpf*)
8088 lt_cv_deplibs_check_method=pass_all
8090 esac
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8094 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8095 file_magic_cmd=$lt_cv_file_magic_cmd
8096 deplibs_check_method=$lt_cv_deplibs_check_method
8097 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8110 if test -n "$ac_tool_prefix"; then
8111 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8112 set dummy ${ac_tool_prefix}ar; ac_word=$2
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8114 $as_echo_n "checking for $ac_word... " >&6; }
8115 if test "${ac_cv_prog_AR+set}" = set; then :
8116 $as_echo_n "(cached) " >&6
8117 else
8118 if test -n "$AR"; then
8119 ac_cv_prog_AR="$AR" # Let the user override the test.
8120 else
8121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122 for as_dir in $PATH
8124 IFS=$as_save_IFS
8125 test -z "$as_dir" && as_dir=.
8126 for ac_exec_ext in '' $ac_executable_extensions; do
8127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8128 ac_cv_prog_AR="${ac_tool_prefix}ar"
8129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8130 break 2
8132 done
8133 done
8134 IFS=$as_save_IFS
8138 AR=$ac_cv_prog_AR
8139 if test -n "$AR"; then
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8141 $as_echo "$AR" >&6; }
8142 else
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144 $as_echo "no" >&6; }
8149 if test -z "$ac_cv_prog_AR"; then
8150 ac_ct_AR=$AR
8151 # Extract the first word of "ar", so it can be a program name with args.
8152 set dummy ar; ac_word=$2
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8154 $as_echo_n "checking for $ac_word... " >&6; }
8155 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8156 $as_echo_n "(cached) " >&6
8157 else
8158 if test -n "$ac_ct_AR"; then
8159 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8160 else
8161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8162 for as_dir in $PATH
8164 IFS=$as_save_IFS
8165 test -z "$as_dir" && as_dir=.
8166 for ac_exec_ext in '' $ac_executable_extensions; do
8167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8168 ac_cv_prog_ac_ct_AR="ar"
8169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8170 break 2
8172 done
8173 done
8174 IFS=$as_save_IFS
8178 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8179 if test -n "$ac_ct_AR"; then
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8181 $as_echo "$ac_ct_AR" >&6; }
8182 else
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8184 $as_echo "no" >&6; }
8187 if test "x$ac_ct_AR" = x; then
8188 AR="false"
8189 else
8190 case $cross_compiling:$ac_tool_warned in
8191 yes:)
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8194 ac_tool_warned=yes ;;
8195 esac
8196 AR=$ac_ct_AR
8198 else
8199 AR="$ac_cv_prog_AR"
8202 test -z "$AR" && AR=ar
8203 test -z "$AR_FLAGS" && AR_FLAGS=cru
8215 if test -n "$ac_tool_prefix"; then
8216 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8217 set dummy ${ac_tool_prefix}strip; ac_word=$2
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8219 $as_echo_n "checking for $ac_word... " >&6; }
8220 if test "${ac_cv_prog_STRIP+set}" = set; then :
8221 $as_echo_n "(cached) " >&6
8222 else
8223 if test -n "$STRIP"; then
8224 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8225 else
8226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8227 for as_dir in $PATH
8229 IFS=$as_save_IFS
8230 test -z "$as_dir" && as_dir=.
8231 for ac_exec_ext in '' $ac_executable_extensions; do
8232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8233 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8235 break 2
8237 done
8238 done
8239 IFS=$as_save_IFS
8243 STRIP=$ac_cv_prog_STRIP
8244 if test -n "$STRIP"; then
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8246 $as_echo "$STRIP" >&6; }
8247 else
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8249 $as_echo "no" >&6; }
8254 if test -z "$ac_cv_prog_STRIP"; then
8255 ac_ct_STRIP=$STRIP
8256 # Extract the first word of "strip", so it can be a program name with args.
8257 set dummy strip; ac_word=$2
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8259 $as_echo_n "checking for $ac_word... " >&6; }
8260 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8261 $as_echo_n "(cached) " >&6
8262 else
8263 if test -n "$ac_ct_STRIP"; then
8264 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8265 else
8266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8267 for as_dir in $PATH
8269 IFS=$as_save_IFS
8270 test -z "$as_dir" && as_dir=.
8271 for ac_exec_ext in '' $ac_executable_extensions; do
8272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8273 ac_cv_prog_ac_ct_STRIP="strip"
8274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8275 break 2
8277 done
8278 done
8279 IFS=$as_save_IFS
8283 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8284 if test -n "$ac_ct_STRIP"; then
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8286 $as_echo "$ac_ct_STRIP" >&6; }
8287 else
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8289 $as_echo "no" >&6; }
8292 if test "x$ac_ct_STRIP" = x; then
8293 STRIP=":"
8294 else
8295 case $cross_compiling:$ac_tool_warned in
8296 yes:)
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8299 ac_tool_warned=yes ;;
8300 esac
8301 STRIP=$ac_ct_STRIP
8303 else
8304 STRIP="$ac_cv_prog_STRIP"
8307 test -z "$STRIP" && STRIP=:
8314 if test -n "$ac_tool_prefix"; then
8315 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8316 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8318 $as_echo_n "checking for $ac_word... " >&6; }
8319 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8320 $as_echo_n "(cached) " >&6
8321 else
8322 if test -n "$RANLIB"; then
8323 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8324 else
8325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8326 for as_dir in $PATH
8328 IFS=$as_save_IFS
8329 test -z "$as_dir" && as_dir=.
8330 for ac_exec_ext in '' $ac_executable_extensions; do
8331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8332 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8334 break 2
8336 done
8337 done
8338 IFS=$as_save_IFS
8342 RANLIB=$ac_cv_prog_RANLIB
8343 if test -n "$RANLIB"; then
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8345 $as_echo "$RANLIB" >&6; }
8346 else
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8348 $as_echo "no" >&6; }
8353 if test -z "$ac_cv_prog_RANLIB"; then
8354 ac_ct_RANLIB=$RANLIB
8355 # Extract the first word of "ranlib", so it can be a program name with args.
8356 set dummy ranlib; ac_word=$2
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8358 $as_echo_n "checking for $ac_word... " >&6; }
8359 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8360 $as_echo_n "(cached) " >&6
8361 else
8362 if test -n "$ac_ct_RANLIB"; then
8363 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8364 else
8365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366 for as_dir in $PATH
8368 IFS=$as_save_IFS
8369 test -z "$as_dir" && as_dir=.
8370 for ac_exec_ext in '' $ac_executable_extensions; do
8371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8372 ac_cv_prog_ac_ct_RANLIB="ranlib"
8373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8374 break 2
8376 done
8377 done
8378 IFS=$as_save_IFS
8382 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8383 if test -n "$ac_ct_RANLIB"; then
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8385 $as_echo "$ac_ct_RANLIB" >&6; }
8386 else
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388 $as_echo "no" >&6; }
8391 if test "x$ac_ct_RANLIB" = x; then
8392 RANLIB=":"
8393 else
8394 case $cross_compiling:$ac_tool_warned in
8395 yes:)
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8398 ac_tool_warned=yes ;;
8399 esac
8400 RANLIB=$ac_ct_RANLIB
8402 else
8403 RANLIB="$ac_cv_prog_RANLIB"
8406 test -z "$RANLIB" && RANLIB=:
8413 # Determine commands to create old-style static archives.
8414 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8415 old_postinstall_cmds='chmod 644 $oldlib'
8416 old_postuninstall_cmds=
8418 if test -n "$RANLIB"; then
8419 case $host_os in
8420 openbsd*)
8421 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8424 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8426 esac
8427 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8430 case $host_os in
8431 darwin*)
8432 lock_old_archive_extraction=yes ;;
8434 lock_old_archive_extraction=no ;;
8435 esac
8475 # If no C compiler was specified, use CC.
8476 LTCC=${LTCC-"$CC"}
8478 # If no C compiler flags were specified, use CFLAGS.
8479 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8481 # Allow CC to be a program name with arguments.
8482 compiler=$CC
8485 # Check for command to grab the raw symbol name followed by C symbol from nm.
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8487 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8488 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8489 $as_echo_n "(cached) " >&6
8490 else
8492 # These are sane defaults that work on at least a few old systems.
8493 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8495 # Character class describing NM global symbol codes.
8496 symcode='[BCDEGRST]'
8498 # Regexp to match symbols that can be accessed directly from C.
8499 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8501 # Define system-specific variables.
8502 case $host_os in
8503 aix*)
8504 symcode='[BCDT]'
8506 cygwin* | mingw* | pw32* | cegcc*)
8507 symcode='[ABCDGISTW]'
8509 hpux*)
8510 if test "$host_cpu" = ia64; then
8511 symcode='[ABCDEGRST]'
8514 irix* | nonstopux*)
8515 symcode='[BCDEGRST]'
8517 osf*)
8518 symcode='[BCDEGQRST]'
8520 solaris*)
8521 symcode='[BDRT]'
8523 sco3.2v5*)
8524 symcode='[DT]'
8526 sysv4.2uw2*)
8527 symcode='[DT]'
8529 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8530 symcode='[ABDT]'
8532 sysv4)
8533 symcode='[DFNSTU]'
8535 esac
8537 # If we're using GNU nm, then use its standard symbol codes.
8538 case `$NM -V 2>&1` in
8539 *GNU* | *'with BFD'*)
8540 symcode='[ABCDGIRSTW]' ;;
8541 esac
8543 # Transform an extracted symbol line into a proper C declaration.
8544 # Some systems (esp. on ia64) link data and code symbols differently,
8545 # so use this general approach.
8546 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8548 # Transform an extracted symbol line into symbol name and symbol address
8549 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8550 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'"
8552 # Handle CRLF in mingw tool chain
8553 opt_cr=
8554 case $build_os in
8555 mingw*)
8556 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8558 esac
8560 # Try without a prefix underscore, then with it.
8561 for ac_symprfx in "" "_"; do
8563 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8564 symxfrm="\\1 $ac_symprfx\\2 \\2"
8566 # Write the raw and C identifiers.
8567 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8568 # Fake it for dumpbin and say T for any non-static function
8569 # and D for any global variable.
8570 # Also find C++ and __fastcall symbols from MSVC++,
8571 # which start with @ or ?.
8572 lt_cv_sys_global_symbol_pipe="$AWK '"\
8573 " {last_section=section; section=\$ 3};"\
8574 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8575 " \$ 0!~/External *\|/{next};"\
8576 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8577 " {if(hide[section]) next};"\
8578 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8579 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8580 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8581 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8582 " ' prfx=^$ac_symprfx"
8583 else
8584 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8587 # Check to see that the pipe works correctly.
8588 pipe_works=no
8590 rm -f conftest*
8591 cat > conftest.$ac_ext <<_LT_EOF
8592 #ifdef __cplusplus
8593 extern "C" {
8594 #endif
8595 char nm_test_var;
8596 void nm_test_func(void);
8597 void nm_test_func(void){}
8598 #ifdef __cplusplus
8600 #endif
8601 int main(){nm_test_var='a';nm_test_func();return(0);}
8602 _LT_EOF
8604 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8605 (eval $ac_compile) 2>&5
8606 ac_status=$?
8607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8608 test $ac_status = 0; }; then
8609 # Now try to grab the symbols.
8610 nlist=conftest.nm
8611 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8612 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8613 ac_status=$?
8614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8615 test $ac_status = 0; } && test -s "$nlist"; then
8616 # Try sorting and uniquifying the output.
8617 if sort "$nlist" | uniq > "$nlist"T; then
8618 mv -f "$nlist"T "$nlist"
8619 else
8620 rm -f "$nlist"T
8623 # Make sure that we snagged all the symbols we need.
8624 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8625 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8626 cat <<_LT_EOF > conftest.$ac_ext
8627 #ifdef __cplusplus
8628 extern "C" {
8629 #endif
8631 _LT_EOF
8632 # Now generate the symbol file.
8633 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8635 cat <<_LT_EOF >> conftest.$ac_ext
8637 /* The mapping between symbol names and symbols. */
8638 const struct {
8639 const char *name;
8640 void *address;
8642 lt__PROGRAM__LTX_preloaded_symbols[] =
8644 { "@PROGRAM@", (void *) 0 },
8645 _LT_EOF
8646 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8647 cat <<\_LT_EOF >> conftest.$ac_ext
8648 {0, (void *) 0}
8651 /* This works around a problem in FreeBSD linker */
8652 #ifdef FREEBSD_WORKAROUND
8653 static const void *lt_preloaded_setup() {
8654 return lt__PROGRAM__LTX_preloaded_symbols;
8656 #endif
8658 #ifdef __cplusplus
8660 #endif
8661 _LT_EOF
8662 # Now try linking the two files.
8663 mv conftest.$ac_objext conftstm.$ac_objext
8664 lt_save_LIBS="$LIBS"
8665 lt_save_CFLAGS="$CFLAGS"
8666 LIBS="conftstm.$ac_objext"
8667 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8669 (eval $ac_link) 2>&5
8670 ac_status=$?
8671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8672 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8673 pipe_works=yes
8675 LIBS="$lt_save_LIBS"
8676 CFLAGS="$lt_save_CFLAGS"
8677 else
8678 echo "cannot find nm_test_func in $nlist" >&5
8680 else
8681 echo "cannot find nm_test_var in $nlist" >&5
8683 else
8684 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8686 else
8687 echo "$progname: failed program was:" >&5
8688 cat conftest.$ac_ext >&5
8690 rm -rf conftest* conftst*
8692 # Do not use the global_symbol_pipe unless it works.
8693 if test "$pipe_works" = yes; then
8694 break
8695 else
8696 lt_cv_sys_global_symbol_pipe=
8698 done
8702 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8703 lt_cv_sys_global_symbol_to_cdecl=
8705 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8707 $as_echo "failed" >&6; }
8708 else
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8710 $as_echo "ok" >&6; }
8735 # Check whether --enable-libtool-lock was given.
8736 if test "${enable_libtool_lock+set}" = set; then :
8737 enableval=$enable_libtool_lock;
8740 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8742 # Some flags need to be propagated to the compiler or linker for good
8743 # libtool support.
8744 case $host in
8745 ia64-*-hpux*)
8746 # Find out which ABI we are using.
8747 echo 'int i;' > conftest.$ac_ext
8748 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8749 (eval $ac_compile) 2>&5
8750 ac_status=$?
8751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8752 test $ac_status = 0; }; then
8753 case `/usr/bin/file conftest.$ac_objext` in
8754 *ELF-32*)
8755 HPUX_IA64_MODE="32"
8757 *ELF-64*)
8758 HPUX_IA64_MODE="64"
8760 esac
8762 rm -rf conftest*
8764 *-*-irix6*)
8765 # Find out which ABI we are using.
8766 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8767 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8768 (eval $ac_compile) 2>&5
8769 ac_status=$?
8770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8771 test $ac_status = 0; }; then
8772 if test "$lt_cv_prog_gnu_ld" = yes; then
8773 case `/usr/bin/file conftest.$ac_objext` in
8774 *32-bit*)
8775 LD="${LD-ld} -melf32bsmip"
8777 *N32*)
8778 LD="${LD-ld} -melf32bmipn32"
8780 *64-bit*)
8781 LD="${LD-ld} -melf64bmip"
8783 esac
8784 else
8785 case `/usr/bin/file conftest.$ac_objext` in
8786 *32-bit*)
8787 LD="${LD-ld} -32"
8789 *N32*)
8790 LD="${LD-ld} -n32"
8792 *64-bit*)
8793 LD="${LD-ld} -64"
8795 esac
8798 rm -rf conftest*
8801 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8802 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8803 # Find out which ABI we are using.
8804 echo 'int i;' > conftest.$ac_ext
8805 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8806 (eval $ac_compile) 2>&5
8807 ac_status=$?
8808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8809 test $ac_status = 0; }; then
8810 case `/usr/bin/file conftest.o` in
8811 *32-bit*)
8812 case $host in
8813 x86_64-*kfreebsd*-gnu)
8814 LD="${LD-ld} -m elf_i386_fbsd"
8816 x86_64-*linux*)
8817 LD="${LD-ld} -m elf_i386"
8819 ppc64-*linux*|powerpc64-*linux*)
8820 LD="${LD-ld} -m elf32ppclinux"
8822 s390x-*linux*)
8823 LD="${LD-ld} -m elf_s390"
8825 sparc64-*linux*)
8826 LD="${LD-ld} -m elf32_sparc"
8828 esac
8830 *64-bit*)
8831 case $host in
8832 x86_64-*kfreebsd*-gnu)
8833 LD="${LD-ld} -m elf_x86_64_fbsd"
8835 x86_64-*linux*)
8836 LD="${LD-ld} -m elf_x86_64"
8838 ppc*-*linux*|powerpc*-*linux*)
8839 LD="${LD-ld} -m elf64ppc"
8841 s390*-*linux*|s390*-*tpf*)
8842 LD="${LD-ld} -m elf64_s390"
8844 sparc*-*linux*)
8845 LD="${LD-ld} -m elf64_sparc"
8847 esac
8849 esac
8851 rm -rf conftest*
8854 *-*-sco3.2v5*)
8855 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8856 SAVE_CFLAGS="$CFLAGS"
8857 CFLAGS="$CFLAGS -belf"
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8859 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8860 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8861 $as_echo_n "(cached) " >&6
8862 else
8863 ac_ext=c
8864 ac_cpp='$CPP $CPPFLAGS'
8865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8869 if test x$gcc_no_link = xyes; then
8870 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873 /* end confdefs.h. */
8876 main ()
8880 return 0;
8882 _ACEOF
8883 if ac_fn_c_try_link "$LINENO"; then :
8884 lt_cv_cc_needs_belf=yes
8885 else
8886 lt_cv_cc_needs_belf=no
8888 rm -f core conftest.err conftest.$ac_objext \
8889 conftest$ac_exeext conftest.$ac_ext
8890 ac_ext=c
8891 ac_cpp='$CPP $CPPFLAGS'
8892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8898 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8899 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8900 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8901 CFLAGS="$SAVE_CFLAGS"
8904 sparc*-*solaris*)
8905 # Find out which ABI we are using.
8906 echo 'int i;' > conftest.$ac_ext
8907 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8908 (eval $ac_compile) 2>&5
8909 ac_status=$?
8910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8911 test $ac_status = 0; }; then
8912 case `/usr/bin/file conftest.o` in
8913 *64-bit*)
8914 case $lt_cv_prog_gnu_ld in
8915 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8917 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8918 LD="${LD-ld} -64"
8921 esac
8923 esac
8925 rm -rf conftest*
8927 esac
8929 need_locks="$enable_libtool_lock"
8932 case $host_os in
8933 rhapsody* | darwin*)
8934 if test -n "$ac_tool_prefix"; then
8935 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8936 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8938 $as_echo_n "checking for $ac_word... " >&6; }
8939 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8940 $as_echo_n "(cached) " >&6
8941 else
8942 if test -n "$DSYMUTIL"; then
8943 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8944 else
8945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8946 for as_dir in $PATH
8948 IFS=$as_save_IFS
8949 test -z "$as_dir" && as_dir=.
8950 for ac_exec_ext in '' $ac_executable_extensions; do
8951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8952 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8954 break 2
8956 done
8957 done
8958 IFS=$as_save_IFS
8962 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8963 if test -n "$DSYMUTIL"; then
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8965 $as_echo "$DSYMUTIL" >&6; }
8966 else
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8968 $as_echo "no" >&6; }
8973 if test -z "$ac_cv_prog_DSYMUTIL"; then
8974 ac_ct_DSYMUTIL=$DSYMUTIL
8975 # Extract the first word of "dsymutil", so it can be a program name with args.
8976 set dummy dsymutil; ac_word=$2
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8978 $as_echo_n "checking for $ac_word... " >&6; }
8979 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8980 $as_echo_n "(cached) " >&6
8981 else
8982 if test -n "$ac_ct_DSYMUTIL"; then
8983 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8984 else
8985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8986 for as_dir in $PATH
8988 IFS=$as_save_IFS
8989 test -z "$as_dir" && as_dir=.
8990 for ac_exec_ext in '' $ac_executable_extensions; do
8991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8992 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8994 break 2
8996 done
8997 done
8998 IFS=$as_save_IFS
9002 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9003 if test -n "$ac_ct_DSYMUTIL"; then
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9005 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9006 else
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9008 $as_echo "no" >&6; }
9011 if test "x$ac_ct_DSYMUTIL" = x; then
9012 DSYMUTIL=":"
9013 else
9014 case $cross_compiling:$ac_tool_warned in
9015 yes:)
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9018 ac_tool_warned=yes ;;
9019 esac
9020 DSYMUTIL=$ac_ct_DSYMUTIL
9022 else
9023 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9026 if test -n "$ac_tool_prefix"; then
9027 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9028 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9030 $as_echo_n "checking for $ac_word... " >&6; }
9031 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
9032 $as_echo_n "(cached) " >&6
9033 else
9034 if test -n "$NMEDIT"; then
9035 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9036 else
9037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9038 for as_dir in $PATH
9040 IFS=$as_save_IFS
9041 test -z "$as_dir" && as_dir=.
9042 for ac_exec_ext in '' $ac_executable_extensions; do
9043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9044 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9046 break 2
9048 done
9049 done
9050 IFS=$as_save_IFS
9054 NMEDIT=$ac_cv_prog_NMEDIT
9055 if test -n "$NMEDIT"; then
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9057 $as_echo "$NMEDIT" >&6; }
9058 else
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9060 $as_echo "no" >&6; }
9065 if test -z "$ac_cv_prog_NMEDIT"; then
9066 ac_ct_NMEDIT=$NMEDIT
9067 # Extract the first word of "nmedit", so it can be a program name with args.
9068 set dummy nmedit; ac_word=$2
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9070 $as_echo_n "checking for $ac_word... " >&6; }
9071 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9072 $as_echo_n "(cached) " >&6
9073 else
9074 if test -n "$ac_ct_NMEDIT"; then
9075 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9076 else
9077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9078 for as_dir in $PATH
9080 IFS=$as_save_IFS
9081 test -z "$as_dir" && as_dir=.
9082 for ac_exec_ext in '' $ac_executable_extensions; do
9083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9084 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9086 break 2
9088 done
9089 done
9090 IFS=$as_save_IFS
9094 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9095 if test -n "$ac_ct_NMEDIT"; then
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9097 $as_echo "$ac_ct_NMEDIT" >&6; }
9098 else
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9100 $as_echo "no" >&6; }
9103 if test "x$ac_ct_NMEDIT" = x; then
9104 NMEDIT=":"
9105 else
9106 case $cross_compiling:$ac_tool_warned in
9107 yes:)
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9110 ac_tool_warned=yes ;;
9111 esac
9112 NMEDIT=$ac_ct_NMEDIT
9114 else
9115 NMEDIT="$ac_cv_prog_NMEDIT"
9118 if test -n "$ac_tool_prefix"; then
9119 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9120 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9122 $as_echo_n "checking for $ac_word... " >&6; }
9123 if test "${ac_cv_prog_LIPO+set}" = set; then :
9124 $as_echo_n "(cached) " >&6
9125 else
9126 if test -n "$LIPO"; then
9127 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9128 else
9129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9130 for as_dir in $PATH
9132 IFS=$as_save_IFS
9133 test -z "$as_dir" && as_dir=.
9134 for ac_exec_ext in '' $ac_executable_extensions; do
9135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9136 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9138 break 2
9140 done
9141 done
9142 IFS=$as_save_IFS
9146 LIPO=$ac_cv_prog_LIPO
9147 if test -n "$LIPO"; then
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9149 $as_echo "$LIPO" >&6; }
9150 else
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9152 $as_echo "no" >&6; }
9157 if test -z "$ac_cv_prog_LIPO"; then
9158 ac_ct_LIPO=$LIPO
9159 # Extract the first word of "lipo", so it can be a program name with args.
9160 set dummy lipo; ac_word=$2
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9162 $as_echo_n "checking for $ac_word... " >&6; }
9163 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9164 $as_echo_n "(cached) " >&6
9165 else
9166 if test -n "$ac_ct_LIPO"; then
9167 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9168 else
9169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9170 for as_dir in $PATH
9172 IFS=$as_save_IFS
9173 test -z "$as_dir" && as_dir=.
9174 for ac_exec_ext in '' $ac_executable_extensions; do
9175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9176 ac_cv_prog_ac_ct_LIPO="lipo"
9177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9178 break 2
9180 done
9181 done
9182 IFS=$as_save_IFS
9186 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9187 if test -n "$ac_ct_LIPO"; then
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9189 $as_echo "$ac_ct_LIPO" >&6; }
9190 else
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9192 $as_echo "no" >&6; }
9195 if test "x$ac_ct_LIPO" = x; then
9196 LIPO=":"
9197 else
9198 case $cross_compiling:$ac_tool_warned in
9199 yes:)
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9202 ac_tool_warned=yes ;;
9203 esac
9204 LIPO=$ac_ct_LIPO
9206 else
9207 LIPO="$ac_cv_prog_LIPO"
9210 if test -n "$ac_tool_prefix"; then
9211 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9212 set dummy ${ac_tool_prefix}otool; ac_word=$2
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9214 $as_echo_n "checking for $ac_word... " >&6; }
9215 if test "${ac_cv_prog_OTOOL+set}" = set; then :
9216 $as_echo_n "(cached) " >&6
9217 else
9218 if test -n "$OTOOL"; then
9219 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9220 else
9221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9222 for as_dir in $PATH
9224 IFS=$as_save_IFS
9225 test -z "$as_dir" && as_dir=.
9226 for ac_exec_ext in '' $ac_executable_extensions; do
9227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9228 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9230 break 2
9232 done
9233 done
9234 IFS=$as_save_IFS
9238 OTOOL=$ac_cv_prog_OTOOL
9239 if test -n "$OTOOL"; then
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9241 $as_echo "$OTOOL" >&6; }
9242 else
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9244 $as_echo "no" >&6; }
9249 if test -z "$ac_cv_prog_OTOOL"; then
9250 ac_ct_OTOOL=$OTOOL
9251 # Extract the first word of "otool", so it can be a program name with args.
9252 set dummy otool; ac_word=$2
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9254 $as_echo_n "checking for $ac_word... " >&6; }
9255 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9256 $as_echo_n "(cached) " >&6
9257 else
9258 if test -n "$ac_ct_OTOOL"; then
9259 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9260 else
9261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9262 for as_dir in $PATH
9264 IFS=$as_save_IFS
9265 test -z "$as_dir" && as_dir=.
9266 for ac_exec_ext in '' $ac_executable_extensions; do
9267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9268 ac_cv_prog_ac_ct_OTOOL="otool"
9269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9270 break 2
9272 done
9273 done
9274 IFS=$as_save_IFS
9278 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9279 if test -n "$ac_ct_OTOOL"; then
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9281 $as_echo "$ac_ct_OTOOL" >&6; }
9282 else
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9284 $as_echo "no" >&6; }
9287 if test "x$ac_ct_OTOOL" = x; then
9288 OTOOL=":"
9289 else
9290 case $cross_compiling:$ac_tool_warned in
9291 yes:)
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9294 ac_tool_warned=yes ;;
9295 esac
9296 OTOOL=$ac_ct_OTOOL
9298 else
9299 OTOOL="$ac_cv_prog_OTOOL"
9302 if test -n "$ac_tool_prefix"; then
9303 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9304 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9306 $as_echo_n "checking for $ac_word... " >&6; }
9307 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9308 $as_echo_n "(cached) " >&6
9309 else
9310 if test -n "$OTOOL64"; then
9311 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9312 else
9313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9314 for as_dir in $PATH
9316 IFS=$as_save_IFS
9317 test -z "$as_dir" && as_dir=.
9318 for ac_exec_ext in '' $ac_executable_extensions; do
9319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9320 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9322 break 2
9324 done
9325 done
9326 IFS=$as_save_IFS
9330 OTOOL64=$ac_cv_prog_OTOOL64
9331 if test -n "$OTOOL64"; then
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9333 $as_echo "$OTOOL64" >&6; }
9334 else
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9336 $as_echo "no" >&6; }
9341 if test -z "$ac_cv_prog_OTOOL64"; then
9342 ac_ct_OTOOL64=$OTOOL64
9343 # Extract the first word of "otool64", so it can be a program name with args.
9344 set dummy otool64; ac_word=$2
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9346 $as_echo_n "checking for $ac_word... " >&6; }
9347 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9348 $as_echo_n "(cached) " >&6
9349 else
9350 if test -n "$ac_ct_OTOOL64"; then
9351 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9352 else
9353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9354 for as_dir in $PATH
9356 IFS=$as_save_IFS
9357 test -z "$as_dir" && as_dir=.
9358 for ac_exec_ext in '' $ac_executable_extensions; do
9359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9360 ac_cv_prog_ac_ct_OTOOL64="otool64"
9361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9362 break 2
9364 done
9365 done
9366 IFS=$as_save_IFS
9370 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9371 if test -n "$ac_ct_OTOOL64"; then
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9373 $as_echo "$ac_ct_OTOOL64" >&6; }
9374 else
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9376 $as_echo "no" >&6; }
9379 if test "x$ac_ct_OTOOL64" = x; then
9380 OTOOL64=":"
9381 else
9382 case $cross_compiling:$ac_tool_warned in
9383 yes:)
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9386 ac_tool_warned=yes ;;
9387 esac
9388 OTOOL64=$ac_ct_OTOOL64
9390 else
9391 OTOOL64="$ac_cv_prog_OTOOL64"
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9421 $as_echo_n "checking for -single_module linker flag... " >&6; }
9422 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9423 $as_echo_n "(cached) " >&6
9424 else
9425 lt_cv_apple_cc_single_mod=no
9426 if test -z "${LT_MULTI_MODULE}"; then
9427 # By default we will add the -single_module flag. You can override
9428 # by either setting the environment variable LT_MULTI_MODULE
9429 # non-empty at configure time, or by adding -multi_module to the
9430 # link flags.
9431 rm -rf libconftest.dylib*
9432 echo "int foo(void){return 1;}" > conftest.c
9433 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9434 -dynamiclib -Wl,-single_module conftest.c" >&5
9435 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9436 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9437 _lt_result=$?
9438 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9439 lt_cv_apple_cc_single_mod=yes
9440 else
9441 cat conftest.err >&5
9443 rm -rf libconftest.dylib*
9444 rm -f conftest.*
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9448 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9450 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9451 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9452 $as_echo_n "(cached) " >&6
9453 else
9454 lt_cv_ld_exported_symbols_list=no
9455 save_LDFLAGS=$LDFLAGS
9456 echo "_main" > conftest.sym
9457 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9458 if test x$gcc_no_link = xyes; then
9459 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9462 /* end confdefs.h. */
9465 main ()
9469 return 0;
9471 _ACEOF
9472 if ac_fn_c_try_link "$LINENO"; then :
9473 lt_cv_ld_exported_symbols_list=yes
9474 else
9475 lt_cv_ld_exported_symbols_list=no
9477 rm -f core conftest.err conftest.$ac_objext \
9478 conftest$ac_exeext conftest.$ac_ext
9479 LDFLAGS="$save_LDFLAGS"
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9483 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9485 $as_echo_n "checking for -force_load linker flag... " >&6; }
9486 if test "${lt_cv_ld_force_load+set}" = set; then :
9487 $as_echo_n "(cached) " >&6
9488 else
9489 lt_cv_ld_force_load=no
9490 cat > conftest.c << _LT_EOF
9491 int forced_loaded() { return 2;}
9492 _LT_EOF
9493 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9494 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9495 echo "$AR cru libconftest.a conftest.o" >&5
9496 $AR cru libconftest.a conftest.o 2>&5
9497 cat > conftest.c << _LT_EOF
9498 int main() { return 0;}
9499 _LT_EOF
9500 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9501 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9502 _lt_result=$?
9503 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9504 lt_cv_ld_force_load=yes
9505 else
9506 cat conftest.err >&5
9508 rm -f conftest.err libconftest.a conftest conftest.c
9509 rm -rf conftest.dSYM
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9513 $as_echo "$lt_cv_ld_force_load" >&6; }
9514 case $host_os in
9515 rhapsody* | darwin1.[012])
9516 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9517 darwin1.*)
9518 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9519 darwin*) # darwin 5.x on
9520 # if running on 10.5 or later, the deployment target defaults
9521 # to the OS version, if on x86, and 10.4, the deployment
9522 # target defaults to 10.4. Don't you love it?
9523 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9524 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9525 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9526 10.[012]*)
9527 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9528 10.*)
9529 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9530 esac
9532 esac
9533 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9534 _lt_dar_single_mod='$single_module'
9536 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9537 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9538 else
9539 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9541 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9542 _lt_dsymutil='~$DSYMUTIL $lib || :'
9543 else
9544 _lt_dsymutil=
9547 esac
9549 ac_ext=c
9550 ac_cpp='$CPP $CPPFLAGS'
9551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9555 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9556 # On Suns, sometimes $CPP names a directory.
9557 if test -n "$CPP" && test -d "$CPP"; then
9558 CPP=
9560 if test -z "$CPP"; then
9561 if test "${ac_cv_prog_CPP+set}" = set; then :
9562 $as_echo_n "(cached) " >&6
9563 else
9564 # Double quotes because CPP needs to be expanded
9565 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9567 ac_preproc_ok=false
9568 for ac_c_preproc_warn_flag in '' yes
9570 # Use a header file that comes with gcc, so configuring glibc
9571 # with a fresh cross-compiler works.
9572 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9573 # <limits.h> exists even on freestanding compilers.
9574 # On the NeXT, cc -E runs the code through the compiler's parser,
9575 # not just through cpp. "Syntax error" is here to catch this case.
9576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9577 /* end confdefs.h. */
9578 #ifdef __STDC__
9579 # include <limits.h>
9580 #else
9581 # include <assert.h>
9582 #endif
9583 Syntax error
9584 _ACEOF
9585 if ac_fn_c_try_cpp "$LINENO"; then :
9587 else
9588 # Broken: fails on valid input.
9589 continue
9591 rm -f conftest.err conftest.$ac_ext
9593 # OK, works on sane cases. Now check whether nonexistent headers
9594 # can be detected and how.
9595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9596 /* end confdefs.h. */
9597 #include <ac_nonexistent.h>
9598 _ACEOF
9599 if ac_fn_c_try_cpp "$LINENO"; then :
9600 # Broken: success on invalid input.
9601 continue
9602 else
9603 # Passes both tests.
9604 ac_preproc_ok=:
9605 break
9607 rm -f conftest.err conftest.$ac_ext
9609 done
9610 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9611 rm -f conftest.err conftest.$ac_ext
9612 if $ac_preproc_ok; then :
9613 break
9616 done
9617 ac_cv_prog_CPP=$CPP
9620 CPP=$ac_cv_prog_CPP
9621 else
9622 ac_cv_prog_CPP=$CPP
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9625 $as_echo "$CPP" >&6; }
9626 ac_preproc_ok=false
9627 for ac_c_preproc_warn_flag in '' yes
9629 # Use a header file that comes with gcc, so configuring glibc
9630 # with a fresh cross-compiler works.
9631 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9632 # <limits.h> exists even on freestanding compilers.
9633 # On the NeXT, cc -E runs the code through the compiler's parser,
9634 # not just through cpp. "Syntax error" is here to catch this case.
9635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9636 /* end confdefs.h. */
9637 #ifdef __STDC__
9638 # include <limits.h>
9639 #else
9640 # include <assert.h>
9641 #endif
9642 Syntax error
9643 _ACEOF
9644 if ac_fn_c_try_cpp "$LINENO"; then :
9646 else
9647 # Broken: fails on valid input.
9648 continue
9650 rm -f conftest.err conftest.$ac_ext
9652 # OK, works on sane cases. Now check whether nonexistent headers
9653 # can be detected and how.
9654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9655 /* end confdefs.h. */
9656 #include <ac_nonexistent.h>
9657 _ACEOF
9658 if ac_fn_c_try_cpp "$LINENO"; then :
9659 # Broken: success on invalid input.
9660 continue
9661 else
9662 # Passes both tests.
9663 ac_preproc_ok=:
9664 break
9666 rm -f conftest.err conftest.$ac_ext
9668 done
9669 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9670 rm -f conftest.err conftest.$ac_ext
9671 if $ac_preproc_ok; then :
9673 else
9674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9676 as_fn_error "C preprocessor \"$CPP\" fails sanity check
9677 See \`config.log' for more details." "$LINENO" 5; }
9680 ac_ext=c
9681 ac_cpp='$CPP $CPPFLAGS'
9682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9688 $as_echo_n "checking for ANSI C header files... " >&6; }
9689 if test "${ac_cv_header_stdc+set}" = set; then :
9690 $as_echo_n "(cached) " >&6
9691 else
9692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9693 /* end confdefs.h. */
9694 #include <stdlib.h>
9695 #include <stdarg.h>
9696 #include <string.h>
9697 #include <float.h>
9700 main ()
9704 return 0;
9706 _ACEOF
9707 if ac_fn_c_try_compile "$LINENO"; then :
9708 ac_cv_header_stdc=yes
9709 else
9710 ac_cv_header_stdc=no
9712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9714 if test $ac_cv_header_stdc = yes; then
9715 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9717 /* end confdefs.h. */
9718 #include <string.h>
9720 _ACEOF
9721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9722 $EGREP "memchr" >/dev/null 2>&1; then :
9724 else
9725 ac_cv_header_stdc=no
9727 rm -f conftest*
9731 if test $ac_cv_header_stdc = yes; then
9732 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9734 /* end confdefs.h. */
9735 #include <stdlib.h>
9737 _ACEOF
9738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9739 $EGREP "free" >/dev/null 2>&1; then :
9741 else
9742 ac_cv_header_stdc=no
9744 rm -f conftest*
9748 if test $ac_cv_header_stdc = yes; then
9749 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9750 if test "$cross_compiling" = yes; then :
9752 else
9753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9754 /* end confdefs.h. */
9755 #include <ctype.h>
9756 #include <stdlib.h>
9757 #if ((' ' & 0x0FF) == 0x020)
9758 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9759 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9760 #else
9761 # define ISLOWER(c) \
9762 (('a' <= (c) && (c) <= 'i') \
9763 || ('j' <= (c) && (c) <= 'r') \
9764 || ('s' <= (c) && (c) <= 'z'))
9765 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9766 #endif
9768 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9770 main ()
9772 int i;
9773 for (i = 0; i < 256; i++)
9774 if (XOR (islower (i), ISLOWER (i))
9775 || toupper (i) != TOUPPER (i))
9776 return 2;
9777 return 0;
9779 _ACEOF
9780 if ac_fn_c_try_run "$LINENO"; then :
9782 else
9783 ac_cv_header_stdc=no
9785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9786 conftest.$ac_objext conftest.beam conftest.$ac_ext
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9792 $as_echo "$ac_cv_header_stdc" >&6; }
9793 if test $ac_cv_header_stdc = yes; then
9795 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9799 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9800 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9801 inttypes.h stdint.h unistd.h
9802 do :
9803 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9804 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9806 eval as_val=\$$as_ac_Header
9807 if test "x$as_val" = x""yes; then :
9808 cat >>confdefs.h <<_ACEOF
9809 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9810 _ACEOF
9814 done
9817 for ac_header in dlfcn.h
9818 do :
9819 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9821 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9822 cat >>confdefs.h <<_ACEOF
9823 #define HAVE_DLFCN_H 1
9824 _ACEOF
9828 done
9835 # Set options
9840 enable_win32_dll=no
9843 # Check whether --enable-shared was given.
9844 if test "${enable_shared+set}" = set; then :
9845 enableval=$enable_shared; p=${PACKAGE-default}
9846 case $enableval in
9847 yes) enable_shared=yes ;;
9848 no) enable_shared=no ;;
9850 enable_shared=no
9851 # Look at the argument we got. We use all the common list separators.
9852 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9853 for pkg in $enableval; do
9854 IFS="$lt_save_ifs"
9855 if test "X$pkg" = "X$p"; then
9856 enable_shared=yes
9858 done
9859 IFS="$lt_save_ifs"
9861 esac
9862 else
9863 enable_shared=yes
9874 # Check whether --enable-static was given.
9875 if test "${enable_static+set}" = set; then :
9876 enableval=$enable_static; p=${PACKAGE-default}
9877 case $enableval in
9878 yes) enable_static=yes ;;
9879 no) enable_static=no ;;
9881 enable_static=no
9882 # Look at the argument we got. We use all the common list separators.
9883 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9884 for pkg in $enableval; do
9885 IFS="$lt_save_ifs"
9886 if test "X$pkg" = "X$p"; then
9887 enable_static=yes
9889 done
9890 IFS="$lt_save_ifs"
9892 esac
9893 else
9894 enable_static=yes
9906 # Check whether --with-pic was given.
9907 if test "${with_pic+set}" = set; then :
9908 withval=$with_pic; pic_mode="$withval"
9909 else
9910 pic_mode=default
9914 test -z "$pic_mode" && pic_mode=default
9922 # Check whether --enable-fast-install was given.
9923 if test "${enable_fast_install+set}" = set; then :
9924 enableval=$enable_fast_install; p=${PACKAGE-default}
9925 case $enableval in
9926 yes) enable_fast_install=yes ;;
9927 no) enable_fast_install=no ;;
9929 enable_fast_install=no
9930 # Look at the argument we got. We use all the common list separators.
9931 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9932 for pkg in $enableval; do
9933 IFS="$lt_save_ifs"
9934 if test "X$pkg" = "X$p"; then
9935 enable_fast_install=yes
9937 done
9938 IFS="$lt_save_ifs"
9940 esac
9941 else
9942 enable_fast_install=yes
9955 # This can be used to rebuild libtool when needed
9956 LIBTOOL_DEPS="$ltmain"
9958 # Always use our own libtool.
9959 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9986 test -z "$LN_S" && LN_S="ln -s"
10001 if test -n "${ZSH_VERSION+set}" ; then
10002 setopt NO_GLOB_SUBST
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10006 $as_echo_n "checking for objdir... " >&6; }
10007 if test "${lt_cv_objdir+set}" = set; then :
10008 $as_echo_n "(cached) " >&6
10009 else
10010 rm -f .libs 2>/dev/null
10011 mkdir .libs 2>/dev/null
10012 if test -d .libs; then
10013 lt_cv_objdir=.libs
10014 else
10015 # MS-DOS does not allow filenames that begin with a dot.
10016 lt_cv_objdir=_libs
10018 rmdir .libs 2>/dev/null
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10021 $as_echo "$lt_cv_objdir" >&6; }
10022 objdir=$lt_cv_objdir
10028 cat >>confdefs.h <<_ACEOF
10029 #define LT_OBJDIR "$lt_cv_objdir/"
10030 _ACEOF
10035 case $host_os in
10036 aix3*)
10037 # AIX sometimes has problems with the GCC collect2 program. For some
10038 # reason, if we set the COLLECT_NAMES environment variable, the problems
10039 # vanish in a puff of smoke.
10040 if test "X${COLLECT_NAMES+set}" != Xset; then
10041 COLLECT_NAMES=
10042 export COLLECT_NAMES
10045 esac
10047 # Global variables:
10048 ofile=libtool
10049 can_build_shared=yes
10051 # All known linkers require a `.a' archive for static linking (except MSVC,
10052 # which needs '.lib').
10053 libext=a
10055 with_gnu_ld="$lt_cv_prog_gnu_ld"
10057 old_CC="$CC"
10058 old_CFLAGS="$CFLAGS"
10060 # Set sane defaults for various variables
10061 test -z "$CC" && CC=cc
10062 test -z "$LTCC" && LTCC=$CC
10063 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10064 test -z "$LD" && LD=ld
10065 test -z "$ac_objext" && ac_objext=o
10067 for cc_temp in $compiler""; do
10068 case $cc_temp in
10069 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10070 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10071 \-*) ;;
10072 *) break;;
10073 esac
10074 done
10075 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10078 # Only perform the check for file, if the check method requires it
10079 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10080 case $deplibs_check_method in
10081 file_magic*)
10082 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10084 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10085 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10086 $as_echo_n "(cached) " >&6
10087 else
10088 case $MAGIC_CMD in
10089 [\\/*] | ?:[\\/]*)
10090 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10093 lt_save_MAGIC_CMD="$MAGIC_CMD"
10094 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10095 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10096 for ac_dir in $ac_dummy; do
10097 IFS="$lt_save_ifs"
10098 test -z "$ac_dir" && ac_dir=.
10099 if test -f $ac_dir/${ac_tool_prefix}file; then
10100 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10101 if test -n "$file_magic_test_file"; then
10102 case $deplibs_check_method in
10103 "file_magic "*)
10104 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10105 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10106 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10107 $EGREP "$file_magic_regex" > /dev/null; then
10109 else
10110 cat <<_LT_EOF 1>&2
10112 *** Warning: the command libtool uses to detect shared libraries,
10113 *** $file_magic_cmd, produces output that libtool cannot recognize.
10114 *** The result is that libtool may fail to recognize shared libraries
10115 *** as such. This will affect the creation of libtool libraries that
10116 *** depend on shared libraries, but programs linked with such libtool
10117 *** libraries will work regardless of this problem. Nevertheless, you
10118 *** may want to report the problem to your system manager and/or to
10119 *** bug-libtool@gnu.org
10121 _LT_EOF
10122 fi ;;
10123 esac
10125 break
10127 done
10128 IFS="$lt_save_ifs"
10129 MAGIC_CMD="$lt_save_MAGIC_CMD"
10131 esac
10134 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10135 if test -n "$MAGIC_CMD"; then
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10137 $as_echo "$MAGIC_CMD" >&6; }
10138 else
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10140 $as_echo "no" >&6; }
10147 if test -z "$lt_cv_path_MAGIC_CMD"; then
10148 if test -n "$ac_tool_prefix"; then
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10150 $as_echo_n "checking for file... " >&6; }
10151 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10152 $as_echo_n "(cached) " >&6
10153 else
10154 case $MAGIC_CMD in
10155 [\\/*] | ?:[\\/]*)
10156 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10159 lt_save_MAGIC_CMD="$MAGIC_CMD"
10160 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10161 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10162 for ac_dir in $ac_dummy; do
10163 IFS="$lt_save_ifs"
10164 test -z "$ac_dir" && ac_dir=.
10165 if test -f $ac_dir/file; then
10166 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10167 if test -n "$file_magic_test_file"; then
10168 case $deplibs_check_method in
10169 "file_magic "*)
10170 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10171 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10172 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10173 $EGREP "$file_magic_regex" > /dev/null; then
10175 else
10176 cat <<_LT_EOF 1>&2
10178 *** Warning: the command libtool uses to detect shared libraries,
10179 *** $file_magic_cmd, produces output that libtool cannot recognize.
10180 *** The result is that libtool may fail to recognize shared libraries
10181 *** as such. This will affect the creation of libtool libraries that
10182 *** depend on shared libraries, but programs linked with such libtool
10183 *** libraries will work regardless of this problem. Nevertheless, you
10184 *** may want to report the problem to your system manager and/or to
10185 *** bug-libtool@gnu.org
10187 _LT_EOF
10188 fi ;;
10189 esac
10191 break
10193 done
10194 IFS="$lt_save_ifs"
10195 MAGIC_CMD="$lt_save_MAGIC_CMD"
10197 esac
10200 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10201 if test -n "$MAGIC_CMD"; then
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10203 $as_echo "$MAGIC_CMD" >&6; }
10204 else
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10206 $as_echo "no" >&6; }
10210 else
10211 MAGIC_CMD=:
10217 esac
10219 # Use C for the default configuration in the libtool script
10221 lt_save_CC="$CC"
10222 ac_ext=c
10223 ac_cpp='$CPP $CPPFLAGS'
10224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10229 # Source file extension for C test sources.
10230 ac_ext=c
10232 # Object file extension for compiled C test sources.
10233 objext=o
10234 objext=$objext
10236 # Code to be used in simple compile tests
10237 lt_simple_compile_test_code="int some_variable = 0;"
10239 # Code to be used in simple link tests
10240 lt_simple_link_test_code='int main(){return(0);}'
10248 # If no C compiler was specified, use CC.
10249 LTCC=${LTCC-"$CC"}
10251 # If no C compiler flags were specified, use CFLAGS.
10252 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10254 # Allow CC to be a program name with arguments.
10255 compiler=$CC
10257 # Save the default compiler, since it gets overwritten when the other
10258 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10259 compiler_DEFAULT=$CC
10261 # save warnings/boilerplate of simple test code
10262 ac_outfile=conftest.$ac_objext
10263 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10264 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10265 _lt_compiler_boilerplate=`cat conftest.err`
10266 $RM conftest*
10268 ac_outfile=conftest.$ac_objext
10269 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10270 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10271 _lt_linker_boilerplate=`cat conftest.err`
10272 $RM -r conftest*
10275 ## CAVEAT EMPTOR:
10276 ## There is no encapsulation within the following macros, do not change
10277 ## the running order or otherwise move them around unless you know exactly
10278 ## what you are doing...
10279 if test -n "$compiler"; then
10281 lt_prog_compiler_no_builtin_flag=
10283 if test "$GCC" = yes; then
10284 case $cc_basename in
10285 nvcc*)
10286 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10288 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10289 esac
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10292 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10293 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10294 $as_echo_n "(cached) " >&6
10295 else
10296 lt_cv_prog_compiler_rtti_exceptions=no
10297 ac_outfile=conftest.$ac_objext
10298 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10299 lt_compiler_flag="-fno-rtti -fno-exceptions"
10300 # Insert the option either (1) after the last *FLAGS variable, or
10301 # (2) before a word containing "conftest.", or (3) at the end.
10302 # Note that $ac_compile itself does not contain backslashes and begins
10303 # with a dollar sign (not a hyphen), so the echo should work correctly.
10304 # The option is referenced via a variable to avoid confusing sed.
10305 lt_compile=`echo "$ac_compile" | $SED \
10306 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10307 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10308 -e 's:$: $lt_compiler_flag:'`
10309 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10310 (eval "$lt_compile" 2>conftest.err)
10311 ac_status=$?
10312 cat conftest.err >&5
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 if (exit $ac_status) && test -s "$ac_outfile"; then
10315 # The compiler can only warn and ignore the option if not recognized
10316 # So say no if there are warnings other than the usual output.
10317 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10318 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10319 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10320 lt_cv_prog_compiler_rtti_exceptions=yes
10323 $RM conftest*
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10327 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10329 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10330 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10331 else
10342 lt_prog_compiler_wl=
10343 lt_prog_compiler_pic=
10344 lt_prog_compiler_static=
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10347 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10349 if test "$GCC" = yes; then
10350 lt_prog_compiler_wl='-Wl,'
10351 lt_prog_compiler_static='-static'
10353 case $host_os in
10354 aix*)
10355 # All AIX code is PIC.
10356 if test "$host_cpu" = ia64; then
10357 # AIX 5 now supports IA64 processor
10358 lt_prog_compiler_static='-Bstatic'
10362 amigaos*)
10363 case $host_cpu in
10364 powerpc)
10365 # see comment about AmigaOS4 .so support
10366 lt_prog_compiler_pic='-fPIC'
10368 m68k)
10369 # FIXME: we need at least 68020 code to build shared libraries, but
10370 # adding the `-m68020' flag to GCC prevents building anything better,
10371 # like `-m68040'.
10372 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10374 esac
10377 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10378 # PIC is the default for these OSes.
10381 mingw* | cygwin* | pw32* | os2* | cegcc*)
10382 # This hack is so that the source file can tell whether it is being
10383 # built for inclusion in a dll (and should export symbols for example).
10384 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10385 # (--disable-auto-import) libraries
10386 lt_prog_compiler_pic='-DDLL_EXPORT'
10389 darwin* | rhapsody*)
10390 # PIC is the default on this platform
10391 # Common symbols not allowed in MH_DYLIB files
10392 lt_prog_compiler_pic='-fno-common'
10395 haiku*)
10396 # PIC is the default for Haiku.
10397 # The "-static" flag exists, but is broken.
10398 lt_prog_compiler_static=
10401 hpux*)
10402 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10403 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10404 # sets the default TLS model and affects inlining.
10405 case $host_cpu in
10406 hppa*64*)
10407 # +Z the default
10410 lt_prog_compiler_pic='-fPIC'
10412 esac
10415 interix[3-9]*)
10416 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10417 # Instead, we relocate shared libraries at runtime.
10420 msdosdjgpp*)
10421 # Just because we use GCC doesn't mean we suddenly get shared libraries
10422 # on systems that don't support them.
10423 lt_prog_compiler_can_build_shared=no
10424 enable_shared=no
10427 *nto* | *qnx*)
10428 # QNX uses GNU C++, but need to define -shared option too, otherwise
10429 # it will coredump.
10430 lt_prog_compiler_pic='-fPIC -shared'
10433 sysv4*MP*)
10434 if test -d /usr/nec; then
10435 lt_prog_compiler_pic=-Kconform_pic
10440 lt_prog_compiler_pic='-fPIC'
10442 esac
10444 case $cc_basename in
10445 nvcc*) # Cuda Compiler Driver 2.2
10446 lt_prog_compiler_wl='-Xlinker '
10447 lt_prog_compiler_pic='-Xcompiler -fPIC'
10449 esac
10450 else
10451 # PORTME Check for flag to pass linker flags through the system compiler.
10452 case $host_os in
10453 aix*)
10454 lt_prog_compiler_wl='-Wl,'
10455 if test "$host_cpu" = ia64; then
10456 # AIX 5 now supports IA64 processor
10457 lt_prog_compiler_static='-Bstatic'
10458 else
10459 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10463 mingw* | cygwin* | pw32* | os2* | cegcc*)
10464 # This hack is so that the source file can tell whether it is being
10465 # built for inclusion in a dll (and should export symbols for example).
10466 lt_prog_compiler_pic='-DDLL_EXPORT'
10469 hpux9* | hpux10* | hpux11*)
10470 lt_prog_compiler_wl='-Wl,'
10471 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10472 # not for PA HP-UX.
10473 case $host_cpu in
10474 hppa*64*|ia64*)
10475 # +Z the default
10478 lt_prog_compiler_pic='+Z'
10480 esac
10481 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10482 lt_prog_compiler_static='${wl}-a ${wl}archive'
10485 irix5* | irix6* | nonstopux*)
10486 lt_prog_compiler_wl='-Wl,'
10487 # PIC (with -KPIC) is the default.
10488 lt_prog_compiler_static='-non_shared'
10491 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10492 case $cc_basename in
10493 # old Intel for x86_64 which still supported -KPIC.
10494 ecc*)
10495 lt_prog_compiler_wl='-Wl,'
10496 lt_prog_compiler_pic='-KPIC'
10497 lt_prog_compiler_static='-static'
10499 # icc used to be incompatible with GCC.
10500 # ICC 10 doesn't accept -KPIC any more.
10501 icc* | ifort*)
10502 lt_prog_compiler_wl='-Wl,'
10503 lt_prog_compiler_pic='-fPIC'
10504 lt_prog_compiler_static='-static'
10506 # Lahey Fortran 8.1.
10507 lf95*)
10508 lt_prog_compiler_wl='-Wl,'
10509 lt_prog_compiler_pic='--shared'
10510 lt_prog_compiler_static='--static'
10512 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10513 # Portland Group compilers (*not* the Pentium gcc compiler,
10514 # which looks to be a dead project)
10515 lt_prog_compiler_wl='-Wl,'
10516 lt_prog_compiler_pic='-fpic'
10517 lt_prog_compiler_static='-Bstatic'
10519 ccc*)
10520 lt_prog_compiler_wl='-Wl,'
10521 # All Alpha code is PIC.
10522 lt_prog_compiler_static='-non_shared'
10524 xl* | bgxl* | bgf* | mpixl*)
10525 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10526 lt_prog_compiler_wl='-Wl,'
10527 lt_prog_compiler_pic='-qpic'
10528 lt_prog_compiler_static='-qstaticlink'
10531 case `$CC -V 2>&1 | sed 5q` in
10532 *Sun\ F* | *Sun*Fortran*)
10533 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10534 lt_prog_compiler_pic='-KPIC'
10535 lt_prog_compiler_static='-Bstatic'
10536 lt_prog_compiler_wl=''
10538 *Sun\ C*)
10539 # Sun C 5.9
10540 lt_prog_compiler_pic='-KPIC'
10541 lt_prog_compiler_static='-Bstatic'
10542 lt_prog_compiler_wl='-Wl,'
10544 esac
10546 esac
10549 newsos6)
10550 lt_prog_compiler_pic='-KPIC'
10551 lt_prog_compiler_static='-Bstatic'
10554 *nto* | *qnx*)
10555 # QNX uses GNU C++, but need to define -shared option too, otherwise
10556 # it will coredump.
10557 lt_prog_compiler_pic='-fPIC -shared'
10560 osf3* | osf4* | osf5*)
10561 lt_prog_compiler_wl='-Wl,'
10562 # All OSF/1 code is PIC.
10563 lt_prog_compiler_static='-non_shared'
10566 rdos*)
10567 lt_prog_compiler_static='-non_shared'
10570 solaris*)
10571 lt_prog_compiler_pic='-KPIC'
10572 lt_prog_compiler_static='-Bstatic'
10573 case $cc_basename in
10574 f77* | f90* | f95*)
10575 lt_prog_compiler_wl='-Qoption ld ';;
10577 lt_prog_compiler_wl='-Wl,';;
10578 esac
10581 sunos4*)
10582 lt_prog_compiler_wl='-Qoption ld '
10583 lt_prog_compiler_pic='-PIC'
10584 lt_prog_compiler_static='-Bstatic'
10587 sysv4 | sysv4.2uw2* | sysv4.3*)
10588 lt_prog_compiler_wl='-Wl,'
10589 lt_prog_compiler_pic='-KPIC'
10590 lt_prog_compiler_static='-Bstatic'
10593 sysv4*MP*)
10594 if test -d /usr/nec ;then
10595 lt_prog_compiler_pic='-Kconform_pic'
10596 lt_prog_compiler_static='-Bstatic'
10600 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10601 lt_prog_compiler_wl='-Wl,'
10602 lt_prog_compiler_pic='-KPIC'
10603 lt_prog_compiler_static='-Bstatic'
10606 unicos*)
10607 lt_prog_compiler_wl='-Wl,'
10608 lt_prog_compiler_can_build_shared=no
10611 uts4*)
10612 lt_prog_compiler_pic='-pic'
10613 lt_prog_compiler_static='-Bstatic'
10617 lt_prog_compiler_can_build_shared=no
10619 esac
10622 case $host_os in
10623 # For platforms which do not support PIC, -DPIC is meaningless:
10624 *djgpp*)
10625 lt_prog_compiler_pic=
10628 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10630 esac
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10632 $as_echo "$lt_prog_compiler_pic" >&6; }
10640 # Check to make sure the PIC flag actually works.
10642 if test -n "$lt_prog_compiler_pic"; then
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10644 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10645 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10646 $as_echo_n "(cached) " >&6
10647 else
10648 lt_cv_prog_compiler_pic_works=no
10649 ac_outfile=conftest.$ac_objext
10650 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10651 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10652 # Insert the option either (1) after the last *FLAGS variable, or
10653 # (2) before a word containing "conftest.", or (3) at the end.
10654 # Note that $ac_compile itself does not contain backslashes and begins
10655 # with a dollar sign (not a hyphen), so the echo should work correctly.
10656 # The option is referenced via a variable to avoid confusing sed.
10657 lt_compile=`echo "$ac_compile" | $SED \
10658 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10659 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10660 -e 's:$: $lt_compiler_flag:'`
10661 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10662 (eval "$lt_compile" 2>conftest.err)
10663 ac_status=$?
10664 cat conftest.err >&5
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 if (exit $ac_status) && test -s "$ac_outfile"; then
10667 # The compiler can only warn and ignore the option if not recognized
10668 # So say no if there are warnings other than the usual output.
10669 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10670 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10671 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10672 lt_cv_prog_compiler_pic_works=yes
10675 $RM conftest*
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10679 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10681 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10682 case $lt_prog_compiler_pic in
10683 "" | " "*) ;;
10684 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10685 esac
10686 else
10687 lt_prog_compiler_pic=
10688 lt_prog_compiler_can_build_shared=no
10699 # Check to make sure the static flag actually works.
10701 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10703 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10704 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10705 $as_echo_n "(cached) " >&6
10706 else
10707 lt_cv_prog_compiler_static_works=no
10708 save_LDFLAGS="$LDFLAGS"
10709 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10710 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10711 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10712 # The linker can only warn and ignore the option if not recognized
10713 # So say no if there are warnings
10714 if test -s conftest.err; then
10715 # Append any errors to the config.log.
10716 cat conftest.err 1>&5
10717 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10718 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10719 if diff conftest.exp conftest.er2 >/dev/null; then
10720 lt_cv_prog_compiler_static_works=yes
10722 else
10723 lt_cv_prog_compiler_static_works=yes
10726 $RM -r conftest*
10727 LDFLAGS="$save_LDFLAGS"
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10731 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10733 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10735 else
10736 lt_prog_compiler_static=
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10746 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10747 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10748 $as_echo_n "(cached) " >&6
10749 else
10750 lt_cv_prog_compiler_c_o=no
10751 $RM -r conftest 2>/dev/null
10752 mkdir conftest
10753 cd conftest
10754 mkdir out
10755 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10757 lt_compiler_flag="-o out/conftest2.$ac_objext"
10758 # Insert the option either (1) after the last *FLAGS variable, or
10759 # (2) before a word containing "conftest.", or (3) at the end.
10760 # Note that $ac_compile itself does not contain backslashes and begins
10761 # with a dollar sign (not a hyphen), so the echo should work correctly.
10762 lt_compile=`echo "$ac_compile" | $SED \
10763 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10764 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10765 -e 's:$: $lt_compiler_flag:'`
10766 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10767 (eval "$lt_compile" 2>out/conftest.err)
10768 ac_status=$?
10769 cat out/conftest.err >&5
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10772 then
10773 # The compiler can only warn and ignore the option if not recognized
10774 # So say no if there are warnings
10775 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10776 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10777 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10778 lt_cv_prog_compiler_c_o=yes
10781 chmod u+w . 2>&5
10782 $RM conftest*
10783 # SGI C++ compiler will create directory out/ii_files/ for
10784 # template instantiation
10785 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10786 $RM out/* && rmdir out
10787 cd ..
10788 $RM -r conftest
10789 $RM conftest*
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10793 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10801 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10802 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10803 $as_echo_n "(cached) " >&6
10804 else
10805 lt_cv_prog_compiler_c_o=no
10806 $RM -r conftest 2>/dev/null
10807 mkdir conftest
10808 cd conftest
10809 mkdir out
10810 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10812 lt_compiler_flag="-o out/conftest2.$ac_objext"
10813 # Insert the option either (1) after the last *FLAGS variable, or
10814 # (2) before a word containing "conftest.", or (3) at the end.
10815 # Note that $ac_compile itself does not contain backslashes and begins
10816 # with a dollar sign (not a hyphen), so the echo should work correctly.
10817 lt_compile=`echo "$ac_compile" | $SED \
10818 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10819 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10820 -e 's:$: $lt_compiler_flag:'`
10821 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10822 (eval "$lt_compile" 2>out/conftest.err)
10823 ac_status=$?
10824 cat out/conftest.err >&5
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10827 then
10828 # The compiler can only warn and ignore the option if not recognized
10829 # So say no if there are warnings
10830 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10831 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10832 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10833 lt_cv_prog_compiler_c_o=yes
10836 chmod u+w . 2>&5
10837 $RM conftest*
10838 # SGI C++ compiler will create directory out/ii_files/ for
10839 # template instantiation
10840 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10841 $RM out/* && rmdir out
10842 cd ..
10843 $RM -r conftest
10844 $RM conftest*
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10848 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10853 hard_links="nottested"
10854 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10855 # do not overwrite the value of need_locks provided by the user
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10857 $as_echo_n "checking if we can lock with hard links... " >&6; }
10858 hard_links=yes
10859 $RM conftest*
10860 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10861 touch conftest.a
10862 ln conftest.a conftest.b 2>&5 || hard_links=no
10863 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10865 $as_echo "$hard_links" >&6; }
10866 if test "$hard_links" = no; then
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10868 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10869 need_locks=warn
10871 else
10872 need_locks=no
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10881 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10883 runpath_var=
10884 allow_undefined_flag=
10885 always_export_symbols=no
10886 archive_cmds=
10887 archive_expsym_cmds=
10888 compiler_needs_object=no
10889 enable_shared_with_static_runtimes=no
10890 export_dynamic_flag_spec=
10891 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10892 hardcode_automatic=no
10893 hardcode_direct=no
10894 hardcode_direct_absolute=no
10895 hardcode_libdir_flag_spec=
10896 hardcode_libdir_flag_spec_ld=
10897 hardcode_libdir_separator=
10898 hardcode_minus_L=no
10899 hardcode_shlibpath_var=unsupported
10900 inherit_rpath=no
10901 link_all_deplibs=unknown
10902 module_cmds=
10903 module_expsym_cmds=
10904 old_archive_from_new_cmds=
10905 old_archive_from_expsyms_cmds=
10906 thread_safe_flag_spec=
10907 whole_archive_flag_spec=
10908 # include_expsyms should be a list of space-separated symbols to be *always*
10909 # included in the symbol list
10910 include_expsyms=
10911 # exclude_expsyms can be an extended regexp of symbols to exclude
10912 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10913 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10914 # as well as any symbol that contains `d'.
10915 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10916 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10917 # platforms (ab)use it in PIC code, but their linkers get confused if
10918 # the symbol is explicitly referenced. Since portable code cannot
10919 # rely on this symbol name, it's probably fine to never include it in
10920 # preloaded symbol tables.
10921 # Exclude shared library initialization/finalization symbols.
10922 extract_expsyms_cmds=
10924 case $host_os in
10925 cygwin* | mingw* | pw32* | cegcc*)
10926 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10927 # When not using gcc, we currently assume that we are using
10928 # Microsoft Visual C++.
10929 if test "$GCC" != yes; then
10930 with_gnu_ld=no
10933 interix*)
10934 # we just hope/assume this is gcc and not c89 (= MSVC++)
10935 with_gnu_ld=yes
10937 openbsd*)
10938 with_gnu_ld=no
10940 esac
10942 ld_shlibs=yes
10944 # On some targets, GNU ld is compatible enough with the native linker
10945 # that we're better off using the native interface for both.
10946 lt_use_gnu_ld_interface=no
10947 if test "$with_gnu_ld" = yes; then
10948 case $host_os in
10949 aix*)
10950 # The AIX port of GNU ld has always aspired to compatibility
10951 # with the native linker. However, as the warning in the GNU ld
10952 # block says, versions before 2.19.5* couldn't really create working
10953 # shared libraries, regardless of the interface used.
10954 case `$LD -v 2>&1` in
10955 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10956 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10957 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10959 lt_use_gnu_ld_interface=yes
10961 esac
10964 lt_use_gnu_ld_interface=yes
10966 esac
10969 if test "$lt_use_gnu_ld_interface" = yes; then
10970 # If archive_cmds runs LD, not CC, wlarc should be empty
10971 wlarc='${wl}'
10973 # Set some defaults for GNU ld with shared library support. These
10974 # are reset later if shared libraries are not supported. Putting them
10975 # here allows them to be overridden if necessary.
10976 runpath_var=LD_RUN_PATH
10977 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10978 export_dynamic_flag_spec='${wl}--export-dynamic'
10979 # ancient GNU ld didn't support --whole-archive et. al.
10980 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10981 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10982 else
10983 whole_archive_flag_spec=
10985 supports_anon_versioning=no
10986 case `$LD -v 2>&1` in
10987 *GNU\ gold*) supports_anon_versioning=yes ;;
10988 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10989 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10990 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10991 *\ 2.11.*) ;; # other 2.11 versions
10992 *) supports_anon_versioning=yes ;;
10993 esac
10995 # See if GNU ld supports shared libraries.
10996 case $host_os in
10997 aix[3-9]*)
10998 # On AIX/PPC, the GNU linker is very broken
10999 if test "$host_cpu" != ia64; then
11000 ld_shlibs=no
11001 cat <<_LT_EOF 1>&2
11003 *** Warning: the GNU linker, at least up to release 2.19, is reported
11004 *** to be unable to reliably create shared libraries on AIX.
11005 *** Therefore, libtool is disabling shared libraries support. If you
11006 *** really care for shared libraries, you may want to install binutils
11007 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11008 *** You will then need to restart the configuration process.
11010 _LT_EOF
11014 amigaos*)
11015 case $host_cpu in
11016 powerpc)
11017 # see comment about AmigaOS4 .so support
11018 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11019 archive_expsym_cmds=''
11021 m68k)
11022 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)'
11023 hardcode_libdir_flag_spec='-L$libdir'
11024 hardcode_minus_L=yes
11026 esac
11029 beos*)
11030 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11031 allow_undefined_flag=unsupported
11032 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11033 # support --undefined. This deserves some investigation. FIXME
11034 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11035 else
11036 ld_shlibs=no
11040 cygwin* | mingw* | pw32* | cegcc*)
11041 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11042 # as there is no search path for DLLs.
11043 hardcode_libdir_flag_spec='-L$libdir'
11044 export_dynamic_flag_spec='${wl}--export-all-symbols'
11045 allow_undefined_flag=unsupported
11046 always_export_symbols=no
11047 enable_shared_with_static_runtimes=yes
11048 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11050 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11051 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11052 # If the export-symbols file already is a .def file (1st line
11053 # is EXPORTS), use it as is; otherwise, prepend...
11054 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11055 cp $export_symbols $output_objdir/$soname.def;
11056 else
11057 echo EXPORTS > $output_objdir/$soname.def;
11058 cat $export_symbols >> $output_objdir/$soname.def;
11060 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11061 else
11062 ld_shlibs=no
11066 haiku*)
11067 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11068 link_all_deplibs=yes
11071 interix[3-9]*)
11072 hardcode_direct=no
11073 hardcode_shlibpath_var=no
11074 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11075 export_dynamic_flag_spec='${wl}-E'
11076 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11077 # Instead, shared libraries are loaded at an image base (0x10000000 by
11078 # default) and relocated if they conflict, which is a slow very memory
11079 # consuming and fragmenting process. To avoid this, we pick a random,
11080 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11081 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11082 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11083 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'
11086 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11087 tmp_diet=no
11088 if test "$host_os" = linux-dietlibc; then
11089 case $cc_basename in
11090 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11091 esac
11093 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11094 && test "$tmp_diet" = no
11095 then
11096 tmp_addflag=
11097 tmp_sharedflag='-shared'
11098 case $cc_basename,$host_cpu in
11099 pgcc*) # Portland Group C compiler
11100 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'
11101 tmp_addflag=' $pic_flag'
11103 pgf77* | pgf90* | pgf95* | pgfortran*)
11104 # Portland Group f77 and f90 compilers
11105 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'
11106 tmp_addflag=' $pic_flag -Mnomain' ;;
11107 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11108 tmp_addflag=' -i_dynamic' ;;
11109 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11110 tmp_addflag=' -i_dynamic -nofor_main' ;;
11111 ifc* | ifort*) # Intel Fortran compiler
11112 tmp_addflag=' -nofor_main' ;;
11113 lf95*) # Lahey Fortran 8.1
11114 whole_archive_flag_spec=
11115 tmp_sharedflag='--shared' ;;
11116 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11117 tmp_sharedflag='-qmkshrobj'
11118 tmp_addflag= ;;
11119 nvcc*) # Cuda Compiler Driver 2.2
11120 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'
11121 compiler_needs_object=yes
11123 esac
11124 case `$CC -V 2>&1 | sed 5q` in
11125 *Sun\ C*) # Sun C 5.9
11126 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'
11127 compiler_needs_object=yes
11128 tmp_sharedflag='-G' ;;
11129 *Sun\ F*) # Sun Fortran 8.3
11130 tmp_sharedflag='-G' ;;
11131 esac
11132 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11134 if test "x$supports_anon_versioning" = xyes; then
11135 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11136 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11137 echo "local: *; };" >> $output_objdir/$libname.ver~
11138 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11141 case $cc_basename in
11142 xlf* | bgf* | bgxlf* | mpixlf*)
11143 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11144 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11145 hardcode_libdir_flag_spec=
11146 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11147 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11148 if test "x$supports_anon_versioning" = xyes; then
11149 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11150 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11151 echo "local: *; };" >> $output_objdir/$libname.ver~
11152 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11155 esac
11156 else
11157 ld_shlibs=no
11161 netbsd*)
11162 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11163 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11164 wlarc=
11165 else
11166 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11167 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11171 solaris*)
11172 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11173 ld_shlibs=no
11174 cat <<_LT_EOF 1>&2
11176 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11177 *** create shared libraries on Solaris systems. Therefore, libtool
11178 *** is disabling shared libraries support. We urge you to upgrade GNU
11179 *** binutils to release 2.9.1 or newer. Another option is to modify
11180 *** your PATH or compiler configuration so that the native linker is
11181 *** used, and then restart.
11183 _LT_EOF
11184 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11185 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11186 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11187 else
11188 ld_shlibs=no
11192 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11193 case `$LD -v 2>&1` in
11194 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11195 ld_shlibs=no
11196 cat <<_LT_EOF 1>&2
11198 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11199 *** reliably create shared libraries on SCO systems. Therefore, libtool
11200 *** is disabling shared libraries support. We urge you to upgrade GNU
11201 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11202 *** your PATH or compiler configuration so that the native linker is
11203 *** used, and then restart.
11205 _LT_EOF
11208 # For security reasons, it is highly recommended that you always
11209 # use absolute paths for naming shared libraries, and exclude the
11210 # DT_RUNPATH tag from executables and libraries. But doing so
11211 # requires that you compile everything twice, which is a pain.
11212 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11213 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11214 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11215 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11216 else
11217 ld_shlibs=no
11220 esac
11223 sunos4*)
11224 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11225 wlarc=
11226 hardcode_direct=yes
11227 hardcode_shlibpath_var=no
11231 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11232 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11233 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11234 else
11235 ld_shlibs=no
11238 esac
11240 if test "$ld_shlibs" = no; then
11241 runpath_var=
11242 hardcode_libdir_flag_spec=
11243 export_dynamic_flag_spec=
11244 whole_archive_flag_spec=
11246 else
11247 # PORTME fill in a description of your system's linker (not GNU ld)
11248 case $host_os in
11249 aix3*)
11250 allow_undefined_flag=unsupported
11251 always_export_symbols=yes
11252 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'
11253 # Note: this linker hardcodes the directories in LIBPATH if there
11254 # are no directories specified by -L.
11255 hardcode_minus_L=yes
11256 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11257 # Neither direct hardcoding nor static linking is supported with a
11258 # broken collect2.
11259 hardcode_direct=unsupported
11263 aix[4-9]*)
11264 if test "$host_cpu" = ia64; then
11265 # On IA64, the linker does run time linking by default, so we don't
11266 # have to do anything special.
11267 aix_use_runtimelinking=no
11268 exp_sym_flag='-Bexport'
11269 no_entry_flag=""
11270 else
11271 # If we're using GNU nm, then we don't want the "-C" option.
11272 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11273 # Also, AIX nm treats weak defined symbols like other global
11274 # defined symbols, whereas GNU nm marks them as "W".
11275 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11276 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'
11277 else
11278 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'
11280 aix_use_runtimelinking=no
11282 # Test if we are trying to use run time linking or normal
11283 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11284 # need to do runtime linking.
11285 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11286 for ld_flag in $LDFLAGS; do
11287 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11288 aix_use_runtimelinking=yes
11289 break
11291 done
11293 esac
11295 exp_sym_flag='-bexport'
11296 no_entry_flag='-bnoentry'
11299 # When large executables or shared objects are built, AIX ld can
11300 # have problems creating the table of contents. If linking a library
11301 # or program results in "error TOC overflow" add -mminimal-toc to
11302 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11303 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11305 archive_cmds=''
11306 hardcode_direct=yes
11307 hardcode_direct_absolute=yes
11308 hardcode_libdir_separator=':'
11309 link_all_deplibs=yes
11310 file_list_spec='${wl}-f,'
11312 if test "$GCC" = yes; then
11313 case $host_os in aix4.[012]|aix4.[012].*)
11314 # We only want to do this on AIX 4.2 and lower, the check
11315 # below for broken collect2 doesn't work under 4.3+
11316 collect2name=`${CC} -print-prog-name=collect2`
11317 if test -f "$collect2name" &&
11318 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11319 then
11320 # We have reworked collect2
11322 else
11323 # We have old collect2
11324 hardcode_direct=unsupported
11325 # It fails to find uninstalled libraries when the uninstalled
11326 # path is not listed in the libpath. Setting hardcode_minus_L
11327 # to unsupported forces relinking
11328 hardcode_minus_L=yes
11329 hardcode_libdir_flag_spec='-L$libdir'
11330 hardcode_libdir_separator=
11333 esac
11334 shared_flag='-shared'
11335 if test "$aix_use_runtimelinking" = yes; then
11336 shared_flag="$shared_flag "'${wl}-G'
11338 else
11339 # not using gcc
11340 if test "$host_cpu" = ia64; then
11341 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11342 # chokes on -Wl,-G. The following line is correct:
11343 shared_flag='-G'
11344 else
11345 if test "$aix_use_runtimelinking" = yes; then
11346 shared_flag='${wl}-G'
11347 else
11348 shared_flag='${wl}-bM:SRE'
11353 export_dynamic_flag_spec='${wl}-bexpall'
11354 # It seems that -bexpall does not export symbols beginning with
11355 # underscore (_), so it is better to generate a list of symbols to export.
11356 always_export_symbols=yes
11357 if test "$aix_use_runtimelinking" = yes; then
11358 # Warning - without using the other runtime loading flags (-brtl),
11359 # -berok will link without error, but may produce a broken library.
11360 allow_undefined_flag='-berok'
11361 # Determine the default libpath from the value encoded in an
11362 # empty executable.
11363 if test x$gcc_no_link = xyes; then
11364 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11367 /* end confdefs.h. */
11370 main ()
11374 return 0;
11376 _ACEOF
11377 if ac_fn_c_try_link "$LINENO"; then :
11379 lt_aix_libpath_sed='
11380 /Import File Strings/,/^$/ {
11381 /^0/ {
11382 s/^0 *\(.*\)$/\1/
11386 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11387 # Check for a 64-bit object if we didn't find anything.
11388 if test -z "$aix_libpath"; then
11389 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11392 rm -f core conftest.err conftest.$ac_objext \
11393 conftest$ac_exeext conftest.$ac_ext
11394 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11396 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11397 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"
11398 else
11399 if test "$host_cpu" = ia64; then
11400 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11401 allow_undefined_flag="-z nodefs"
11402 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"
11403 else
11404 # Determine the default libpath from the value encoded in an
11405 # empty executable.
11406 if test x$gcc_no_link = xyes; then
11407 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11410 /* end confdefs.h. */
11413 main ()
11417 return 0;
11419 _ACEOF
11420 if ac_fn_c_try_link "$LINENO"; then :
11422 lt_aix_libpath_sed='
11423 /Import File Strings/,/^$/ {
11424 /^0/ {
11425 s/^0 *\(.*\)$/\1/
11429 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11430 # Check for a 64-bit object if we didn't find anything.
11431 if test -z "$aix_libpath"; then
11432 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11435 rm -f core conftest.err conftest.$ac_objext \
11436 conftest$ac_exeext conftest.$ac_ext
11437 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11439 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11440 # Warning - without using the other run time loading flags,
11441 # -berok will link without error, but may produce a broken library.
11442 no_undefined_flag=' ${wl}-bernotok'
11443 allow_undefined_flag=' ${wl}-berok'
11444 if test "$with_gnu_ld" = yes; then
11445 # We only use this code for GNU lds that support --whole-archive.
11446 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11447 else
11448 # Exported symbols can be pulled into shared objects from archives
11449 whole_archive_flag_spec='$convenience'
11451 archive_cmds_need_lc=yes
11452 # This is similar to how AIX traditionally builds its shared libraries.
11453 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'
11458 amigaos*)
11459 case $host_cpu in
11460 powerpc)
11461 # see comment about AmigaOS4 .so support
11462 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11463 archive_expsym_cmds=''
11465 m68k)
11466 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)'
11467 hardcode_libdir_flag_spec='-L$libdir'
11468 hardcode_minus_L=yes
11470 esac
11473 bsdi[45]*)
11474 export_dynamic_flag_spec=-rdynamic
11477 cygwin* | mingw* | pw32* | cegcc*)
11478 # When not using gcc, we currently assume that we are using
11479 # Microsoft Visual C++.
11480 # hardcode_libdir_flag_spec is actually meaningless, as there is
11481 # no search path for DLLs.
11482 hardcode_libdir_flag_spec=' '
11483 allow_undefined_flag=unsupported
11484 # Tell ltmain to make .lib files, not .a files.
11485 libext=lib
11486 # Tell ltmain to make .dll files, not .so files.
11487 shrext_cmds=".dll"
11488 # FIXME: Setting linknames here is a bad hack.
11489 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11490 # The linker will automatically build a .lib file if we build a DLL.
11491 old_archive_from_new_cmds='true'
11492 # FIXME: Should let the user specify the lib program.
11493 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11494 fix_srcfile_path='`cygpath -w "$srcfile"`'
11495 enable_shared_with_static_runtimes=yes
11498 darwin* | rhapsody*)
11501 archive_cmds_need_lc=no
11502 hardcode_direct=no
11503 hardcode_automatic=yes
11504 hardcode_shlibpath_var=unsupported
11505 if test "$lt_cv_ld_force_load" = "yes"; then
11506 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\"`'
11507 else
11508 whole_archive_flag_spec=''
11510 link_all_deplibs=yes
11511 allow_undefined_flag="$_lt_dar_allow_undefined"
11512 case $cc_basename in
11513 ifort*) _lt_dar_can_shared=yes ;;
11514 *) _lt_dar_can_shared=$GCC ;;
11515 esac
11516 if test "$_lt_dar_can_shared" = "yes"; then
11517 output_verbose_link_cmd=func_echo_all
11518 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11519 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11520 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}"
11521 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}"
11523 else
11524 ld_shlibs=no
11529 dgux*)
11530 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11531 hardcode_libdir_flag_spec='-L$libdir'
11532 hardcode_shlibpath_var=no
11535 freebsd1*)
11536 ld_shlibs=no
11539 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11540 # support. Future versions do this automatically, but an explicit c++rt0.o
11541 # does not break anything, and helps significantly (at the cost of a little
11542 # extra space).
11543 freebsd2.2*)
11544 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11545 hardcode_libdir_flag_spec='-R$libdir'
11546 hardcode_direct=yes
11547 hardcode_shlibpath_var=no
11550 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11551 freebsd2*)
11552 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11553 hardcode_direct=yes
11554 hardcode_minus_L=yes
11555 hardcode_shlibpath_var=no
11558 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11559 freebsd* | dragonfly*)
11560 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11561 hardcode_libdir_flag_spec='-R$libdir'
11562 hardcode_direct=yes
11563 hardcode_shlibpath_var=no
11566 hpux9*)
11567 if test "$GCC" = yes; then
11568 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'
11569 else
11570 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'
11572 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11573 hardcode_libdir_separator=:
11574 hardcode_direct=yes
11576 # hardcode_minus_L: Not really in the search PATH,
11577 # but as the default location of the library.
11578 hardcode_minus_L=yes
11579 export_dynamic_flag_spec='${wl}-E'
11582 hpux10*)
11583 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11584 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11585 else
11586 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11588 if test "$with_gnu_ld" = no; then
11589 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11590 hardcode_libdir_flag_spec_ld='+b $libdir'
11591 hardcode_libdir_separator=:
11592 hardcode_direct=yes
11593 hardcode_direct_absolute=yes
11594 export_dynamic_flag_spec='${wl}-E'
11595 # hardcode_minus_L: Not really in the search PATH,
11596 # but as the default location of the library.
11597 hardcode_minus_L=yes
11601 hpux11*)
11602 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11603 case $host_cpu in
11604 hppa*64*)
11605 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11607 ia64*)
11608 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11611 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11613 esac
11614 else
11615 case $host_cpu in
11616 hppa*64*)
11617 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11619 ia64*)
11620 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11624 # Older versions of the 11.00 compiler do not understand -b yet
11625 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11627 $as_echo_n "checking if $CC understands -b... " >&6; }
11628 if test "${lt_cv_prog_compiler__b+set}" = set; then :
11629 $as_echo_n "(cached) " >&6
11630 else
11631 lt_cv_prog_compiler__b=no
11632 save_LDFLAGS="$LDFLAGS"
11633 LDFLAGS="$LDFLAGS -b"
11634 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11635 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11636 # The linker can only warn and ignore the option if not recognized
11637 # So say no if there are warnings
11638 if test -s conftest.err; then
11639 # Append any errors to the config.log.
11640 cat conftest.err 1>&5
11641 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11642 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11643 if diff conftest.exp conftest.er2 >/dev/null; then
11644 lt_cv_prog_compiler__b=yes
11646 else
11647 lt_cv_prog_compiler__b=yes
11650 $RM -r conftest*
11651 LDFLAGS="$save_LDFLAGS"
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11655 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11657 if test x"$lt_cv_prog_compiler__b" = xyes; then
11658 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11659 else
11660 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11664 esac
11666 if test "$with_gnu_ld" = no; then
11667 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11668 hardcode_libdir_separator=:
11670 case $host_cpu in
11671 hppa*64*|ia64*)
11672 hardcode_direct=no
11673 hardcode_shlibpath_var=no
11676 hardcode_direct=yes
11677 hardcode_direct_absolute=yes
11678 export_dynamic_flag_spec='${wl}-E'
11680 # hardcode_minus_L: Not really in the search PATH,
11681 # but as the default location of the library.
11682 hardcode_minus_L=yes
11684 esac
11688 irix5* | irix6* | nonstopux*)
11689 if test "$GCC" = yes; then
11690 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'
11691 # Try to use the -exported_symbol ld option, if it does not
11692 # work, assume that -exports_file does not work either and
11693 # implicitly export all symbols.
11694 save_LDFLAGS="$LDFLAGS"
11695 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11696 if test x$gcc_no_link = xyes; then
11697 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11700 /* end confdefs.h. */
11701 int foo(void) {}
11702 _ACEOF
11703 if ac_fn_c_try_link "$LINENO"; then :
11704 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'
11707 rm -f core conftest.err conftest.$ac_objext \
11708 conftest$ac_exeext conftest.$ac_ext
11709 LDFLAGS="$save_LDFLAGS"
11710 else
11711 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'
11712 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'
11714 archive_cmds_need_lc='no'
11715 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11716 hardcode_libdir_separator=:
11717 inherit_rpath=yes
11718 link_all_deplibs=yes
11721 netbsd*)
11722 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11723 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11724 else
11725 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11727 hardcode_libdir_flag_spec='-R$libdir'
11728 hardcode_direct=yes
11729 hardcode_shlibpath_var=no
11732 newsos6)
11733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11734 hardcode_direct=yes
11735 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11736 hardcode_libdir_separator=:
11737 hardcode_shlibpath_var=no
11740 *nto* | *qnx*)
11743 openbsd*)
11744 if test -f /usr/libexec/ld.so; then
11745 hardcode_direct=yes
11746 hardcode_shlibpath_var=no
11747 hardcode_direct_absolute=yes
11748 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11749 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11750 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11751 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11752 export_dynamic_flag_spec='${wl}-E'
11753 else
11754 case $host_os in
11755 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11756 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11757 hardcode_libdir_flag_spec='-R$libdir'
11760 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11761 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11763 esac
11765 else
11766 ld_shlibs=no
11770 os2*)
11771 hardcode_libdir_flag_spec='-L$libdir'
11772 hardcode_minus_L=yes
11773 allow_undefined_flag=unsupported
11774 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'
11775 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11778 osf3*)
11779 if test "$GCC" = yes; then
11780 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11781 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'
11782 else
11783 allow_undefined_flag=' -expect_unresolved \*'
11784 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'
11786 archive_cmds_need_lc='no'
11787 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11788 hardcode_libdir_separator=:
11791 osf4* | osf5*) # as osf3* with the addition of -msym flag
11792 if test "$GCC" = yes; then
11793 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11794 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'
11795 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11796 else
11797 allow_undefined_flag=' -expect_unresolved \*'
11798 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'
11799 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~
11800 $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'
11802 # Both c and cxx compiler support -rpath directly
11803 hardcode_libdir_flag_spec='-rpath $libdir'
11805 archive_cmds_need_lc='no'
11806 hardcode_libdir_separator=:
11809 solaris*)
11810 no_undefined_flag=' -z defs'
11811 if test "$GCC" = yes; then
11812 wlarc='${wl}'
11813 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11814 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11815 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11816 else
11817 case `$CC -V 2>&1` in
11818 *"Compilers 5.0"*)
11819 wlarc=''
11820 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11821 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11822 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11825 wlarc='${wl}'
11826 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11827 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11828 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11830 esac
11832 hardcode_libdir_flag_spec='-R$libdir'
11833 hardcode_shlibpath_var=no
11834 case $host_os in
11835 solaris2.[0-5] | solaris2.[0-5].*) ;;
11837 # The compiler driver will combine and reorder linker options,
11838 # but understands `-z linker_flag'. GCC discards it without `$wl',
11839 # but is careful enough not to reorder.
11840 # Supported since Solaris 2.6 (maybe 2.5.1?)
11841 if test "$GCC" = yes; then
11842 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11843 else
11844 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11847 esac
11848 link_all_deplibs=yes
11851 sunos4*)
11852 if test "x$host_vendor" = xsequent; then
11853 # Use $CC to link under sequent, because it throws in some extra .o
11854 # files that make .init and .fini sections work.
11855 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11856 else
11857 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11859 hardcode_libdir_flag_spec='-L$libdir'
11860 hardcode_direct=yes
11861 hardcode_minus_L=yes
11862 hardcode_shlibpath_var=no
11865 sysv4)
11866 case $host_vendor in
11867 sni)
11868 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11869 hardcode_direct=yes # is this really true???
11871 siemens)
11872 ## LD is ld it makes a PLAMLIB
11873 ## CC just makes a GrossModule.
11874 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11875 reload_cmds='$CC -r -o $output$reload_objs'
11876 hardcode_direct=no
11878 motorola)
11879 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11880 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11882 esac
11883 runpath_var='LD_RUN_PATH'
11884 hardcode_shlibpath_var=no
11887 sysv4.3*)
11888 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11889 hardcode_shlibpath_var=no
11890 export_dynamic_flag_spec='-Bexport'
11893 sysv4*MP*)
11894 if test -d /usr/nec; then
11895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11896 hardcode_shlibpath_var=no
11897 runpath_var=LD_RUN_PATH
11898 hardcode_runpath_var=yes
11899 ld_shlibs=yes
11903 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11904 no_undefined_flag='${wl}-z,text'
11905 archive_cmds_need_lc=no
11906 hardcode_shlibpath_var=no
11907 runpath_var='LD_RUN_PATH'
11909 if test "$GCC" = yes; then
11910 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11911 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11912 else
11913 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11914 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11918 sysv5* | sco3.2v5* | sco5v6*)
11919 # Note: We can NOT use -z defs as we might desire, because we do not
11920 # link with -lc, and that would cause any symbols used from libc to
11921 # always be unresolved, which means just about no library would
11922 # ever link correctly. If we're not using GNU ld we use -z text
11923 # though, which does catch some bad symbols but isn't as heavy-handed
11924 # as -z defs.
11925 no_undefined_flag='${wl}-z,text'
11926 allow_undefined_flag='${wl}-z,nodefs'
11927 archive_cmds_need_lc=no
11928 hardcode_shlibpath_var=no
11929 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11930 hardcode_libdir_separator=':'
11931 link_all_deplibs=yes
11932 export_dynamic_flag_spec='${wl}-Bexport'
11933 runpath_var='LD_RUN_PATH'
11935 if test "$GCC" = yes; then
11936 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11937 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11938 else
11939 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11940 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11944 uts4*)
11945 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11946 hardcode_libdir_flag_spec='-L$libdir'
11947 hardcode_shlibpath_var=no
11951 ld_shlibs=no
11953 esac
11955 if test x$host_vendor = xsni; then
11956 case $host in
11957 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11958 export_dynamic_flag_spec='${wl}-Blargedynsym'
11960 esac
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11965 $as_echo "$ld_shlibs" >&6; }
11966 test "$ld_shlibs" = no && can_build_shared=no
11968 with_gnu_ld=$with_gnu_ld
11985 # Do we need to explicitly link libc?
11987 case "x$archive_cmds_need_lc" in
11988 x|xyes)
11989 # Assume -lc should be added
11990 archive_cmds_need_lc=yes
11992 if test "$enable_shared" = yes && test "$GCC" = yes; then
11993 case $archive_cmds in
11994 *'~'*)
11995 # FIXME: we may have to deal with multi-command sequences.
11997 '$CC '*)
11998 # Test whether the compiler implicitly links with -lc since on some
11999 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12000 # to ld, don't add -lc before -lgcc.
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12002 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12003 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
12004 $as_echo_n "(cached) " >&6
12005 else
12006 $RM conftest*
12007 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12010 (eval $ac_compile) 2>&5
12011 ac_status=$?
12012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12013 test $ac_status = 0; } 2>conftest.err; then
12014 soname=conftest
12015 lib=conftest
12016 libobjs=conftest.$ac_objext
12017 deplibs=
12018 wl=$lt_prog_compiler_wl
12019 pic_flag=$lt_prog_compiler_pic
12020 compiler_flags=-v
12021 linker_flags=-v
12022 verstring=
12023 output_objdir=.
12024 libname=conftest
12025 lt_save_allow_undefined_flag=$allow_undefined_flag
12026 allow_undefined_flag=
12027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12028 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12029 ac_status=$?
12030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12031 test $ac_status = 0; }
12032 then
12033 lt_cv_archive_cmds_need_lc=no
12034 else
12035 lt_cv_archive_cmds_need_lc=yes
12037 allow_undefined_flag=$lt_save_allow_undefined_flag
12038 else
12039 cat conftest.err 1>&5
12041 $RM conftest*
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12045 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12046 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12048 esac
12051 esac
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12210 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12212 if test "$GCC" = yes; then
12213 case $host_os in
12214 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12215 *) lt_awk_arg="/^libraries:/" ;;
12216 esac
12217 case $host_os in
12218 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12219 *) lt_sed_strip_eq="s,=/,/,g" ;;
12220 esac
12221 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12222 case $lt_search_path_spec in
12223 *\;*)
12224 # if the path contains ";" then we assume it to be the separator
12225 # otherwise default to the standard path separator (i.e. ":") - it is
12226 # assumed that no part of a normal pathname contains ";" but that should
12227 # okay in the real world where ";" in dirpaths is itself problematic.
12228 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12231 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12233 esac
12234 # Ok, now we have the path, separated by spaces, we can step through it
12235 # and add multilib dir if necessary.
12236 lt_tmp_lt_search_path_spec=
12237 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12238 for lt_sys_path in $lt_search_path_spec; do
12239 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12240 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12241 else
12242 test -d "$lt_sys_path" && \
12243 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12245 done
12246 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12247 BEGIN {RS=" "; FS="/|\n";} {
12248 lt_foo="";
12249 lt_count=0;
12250 for (lt_i = NF; lt_i > 0; lt_i--) {
12251 if ($lt_i != "" && $lt_i != ".") {
12252 if ($lt_i == "..") {
12253 lt_count++;
12254 } else {
12255 if (lt_count == 0) {
12256 lt_foo="/" $lt_i lt_foo;
12257 } else {
12258 lt_count--;
12263 if (lt_foo != "") { lt_freq[lt_foo]++; }
12264 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12266 # AWK program above erroneously prepends '/' to C:/dos/paths
12267 # for these hosts.
12268 case $host_os in
12269 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12270 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12271 esac
12272 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12273 else
12274 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12276 library_names_spec=
12277 libname_spec='lib$name'
12278 soname_spec=
12279 shrext_cmds=".so"
12280 postinstall_cmds=
12281 postuninstall_cmds=
12282 finish_cmds=
12283 finish_eval=
12284 shlibpath_var=
12285 shlibpath_overrides_runpath=unknown
12286 version_type=none
12287 dynamic_linker="$host_os ld.so"
12288 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12289 need_lib_prefix=unknown
12290 hardcode_into_libs=no
12292 # when you set need_version to no, make sure it does not cause -set_version
12293 # flags to be left without arguments
12294 need_version=unknown
12296 case $host_os in
12297 aix3*)
12298 version_type=linux
12299 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12300 shlibpath_var=LIBPATH
12302 # AIX 3 has no versioning support, so we append a major version to the name.
12303 soname_spec='${libname}${release}${shared_ext}$major'
12306 aix[4-9]*)
12307 version_type=linux
12308 need_lib_prefix=no
12309 need_version=no
12310 hardcode_into_libs=yes
12311 if test "$host_cpu" = ia64; then
12312 # AIX 5 supports IA64
12313 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12314 shlibpath_var=LD_LIBRARY_PATH
12315 else
12316 # With GCC up to 2.95.x, collect2 would create an import file
12317 # for dependence libraries. The import file would start with
12318 # the line `#! .'. This would cause the generated library to
12319 # depend on `.', always an invalid library. This was fixed in
12320 # development snapshots of GCC prior to 3.0.
12321 case $host_os in
12322 aix4 | aix4.[01] | aix4.[01].*)
12323 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12324 echo ' yes '
12325 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12327 else
12328 can_build_shared=no
12331 esac
12332 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12333 # soname into executable. Probably we can add versioning support to
12334 # collect2, so additional links can be useful in future.
12335 if test "$aix_use_runtimelinking" = yes; then
12336 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12337 # instead of lib<name>.a to let people know that these are not
12338 # typical AIX shared libraries.
12339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12340 else
12341 # We preserve .a as extension for shared libraries through AIX4.2
12342 # and later when we are not doing run time linking.
12343 library_names_spec='${libname}${release}.a $libname.a'
12344 soname_spec='${libname}${release}${shared_ext}$major'
12346 shlibpath_var=LIBPATH
12350 amigaos*)
12351 case $host_cpu in
12352 powerpc)
12353 # Since July 2007 AmigaOS4 officially supports .so libraries.
12354 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12357 m68k)
12358 library_names_spec='$libname.ixlibrary $libname.a'
12359 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12360 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'
12362 esac
12365 beos*)
12366 library_names_spec='${libname}${shared_ext}'
12367 dynamic_linker="$host_os ld.so"
12368 shlibpath_var=LIBRARY_PATH
12371 bsdi[45]*)
12372 version_type=linux
12373 need_version=no
12374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12375 soname_spec='${libname}${release}${shared_ext}$major'
12376 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12377 shlibpath_var=LD_LIBRARY_PATH
12378 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12379 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12380 # the default ld.so.conf also contains /usr/contrib/lib and
12381 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12382 # libtool to hard-code these into programs
12385 cygwin* | mingw* | pw32* | cegcc*)
12386 version_type=windows
12387 shrext_cmds=".dll"
12388 need_version=no
12389 need_lib_prefix=no
12391 case $GCC,$host_os in
12392 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12393 library_names_spec='$libname.dll.a'
12394 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12395 postinstall_cmds='base_file=`basename \${file}`~
12396 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12397 dldir=$destdir/`dirname \$dlpath`~
12398 test -d \$dldir || mkdir -p \$dldir~
12399 $install_prog $dir/$dlname \$dldir/$dlname~
12400 chmod a+x \$dldir/$dlname~
12401 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12402 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12404 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12405 dlpath=$dir/\$dldll~
12406 $RM \$dlpath'
12407 shlibpath_overrides_runpath=yes
12409 case $host_os in
12410 cygwin*)
12411 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12412 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12414 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12416 mingw* | cegcc*)
12417 # MinGW DLLs use traditional 'lib' prefix
12418 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12420 pw32*)
12421 # pw32 DLLs use 'pw' prefix rather than 'lib'
12422 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12424 esac
12428 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12430 esac
12431 dynamic_linker='Win32 ld.exe'
12432 # FIXME: first we should search . and the directory the executable is in
12433 shlibpath_var=PATH
12436 darwin* | rhapsody*)
12437 dynamic_linker="$host_os dyld"
12438 version_type=darwin
12439 need_lib_prefix=no
12440 need_version=no
12441 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12442 soname_spec='${libname}${release}${major}$shared_ext'
12443 shlibpath_overrides_runpath=yes
12444 shlibpath_var=DYLD_LIBRARY_PATH
12445 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12447 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12448 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12451 dgux*)
12452 version_type=linux
12453 need_lib_prefix=no
12454 need_version=no
12455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12456 soname_spec='${libname}${release}${shared_ext}$major'
12457 shlibpath_var=LD_LIBRARY_PATH
12460 freebsd1*)
12461 dynamic_linker=no
12464 freebsd* | dragonfly*)
12465 # DragonFly does not have aout. When/if they implement a new
12466 # versioning mechanism, adjust this.
12467 if test -x /usr/bin/objformat; then
12468 objformat=`/usr/bin/objformat`
12469 else
12470 case $host_os in
12471 freebsd[123]*) objformat=aout ;;
12472 *) objformat=elf ;;
12473 esac
12475 version_type=freebsd-$objformat
12476 case $version_type in
12477 freebsd-elf*)
12478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12479 need_version=no
12480 need_lib_prefix=no
12482 freebsd-*)
12483 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12484 need_version=yes
12486 esac
12487 shlibpath_var=LD_LIBRARY_PATH
12488 case $host_os in
12489 freebsd2*)
12490 shlibpath_overrides_runpath=yes
12492 freebsd3.[01]* | freebsdelf3.[01]*)
12493 shlibpath_overrides_runpath=yes
12494 hardcode_into_libs=yes
12496 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12497 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12498 shlibpath_overrides_runpath=no
12499 hardcode_into_libs=yes
12501 *) # from 4.6 on, and DragonFly
12502 shlibpath_overrides_runpath=yes
12503 hardcode_into_libs=yes
12505 esac
12508 gnu*)
12509 version_type=linux
12510 need_lib_prefix=no
12511 need_version=no
12512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12513 soname_spec='${libname}${release}${shared_ext}$major'
12514 shlibpath_var=LD_LIBRARY_PATH
12515 hardcode_into_libs=yes
12518 haiku*)
12519 version_type=linux
12520 need_lib_prefix=no
12521 need_version=no
12522 dynamic_linker="$host_os runtime_loader"
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=LIBRARY_PATH
12526 shlibpath_overrides_runpath=yes
12527 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
12528 hardcode_into_libs=yes
12531 hpux9* | hpux10* | hpux11*)
12532 # Give a soname corresponding to the major version so that dld.sl refuses to
12533 # link against other versions.
12534 version_type=sunos
12535 need_lib_prefix=no
12536 need_version=no
12537 case $host_cpu in
12538 ia64*)
12539 shrext_cmds='.so'
12540 hardcode_into_libs=yes
12541 dynamic_linker="$host_os dld.so"
12542 shlibpath_var=LD_LIBRARY_PATH
12543 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12545 soname_spec='${libname}${release}${shared_ext}$major'
12546 if test "X$HPUX_IA64_MODE" = X32; then
12547 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12548 else
12549 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12551 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12553 hppa*64*)
12554 shrext_cmds='.sl'
12555 hardcode_into_libs=yes
12556 dynamic_linker="$host_os dld.sl"
12557 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12558 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12560 soname_spec='${libname}${release}${shared_ext}$major'
12561 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12562 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12565 shrext_cmds='.sl'
12566 dynamic_linker="$host_os dld.sl"
12567 shlibpath_var=SHLIB_PATH
12568 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12570 soname_spec='${libname}${release}${shared_ext}$major'
12572 esac
12573 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12574 postinstall_cmds='chmod 555 $lib'
12575 # or fails outright, so override atomically:
12576 install_override_mode=555
12579 interix[3-9]*)
12580 version_type=linux
12581 need_lib_prefix=no
12582 need_version=no
12583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12584 soname_spec='${libname}${release}${shared_ext}$major'
12585 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12586 shlibpath_var=LD_LIBRARY_PATH
12587 shlibpath_overrides_runpath=no
12588 hardcode_into_libs=yes
12591 irix5* | irix6* | nonstopux*)
12592 case $host_os in
12593 nonstopux*) version_type=nonstopux ;;
12595 if test "$lt_cv_prog_gnu_ld" = yes; then
12596 version_type=linux
12597 else
12598 version_type=irix
12599 fi ;;
12600 esac
12601 need_lib_prefix=no
12602 need_version=no
12603 soname_spec='${libname}${release}${shared_ext}$major'
12604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12605 case $host_os in
12606 irix5* | nonstopux*)
12607 libsuff= shlibsuff=
12610 case $LD in # libtool.m4 will add one of these switches to LD
12611 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12612 libsuff= shlibsuff= libmagic=32-bit;;
12613 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12614 libsuff=32 shlibsuff=N32 libmagic=N32;;
12615 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12616 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12617 *) libsuff= shlibsuff= libmagic=never-match;;
12618 esac
12620 esac
12621 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12622 shlibpath_overrides_runpath=no
12623 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12624 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12625 hardcode_into_libs=yes
12628 # No shared lib support for Linux oldld, aout, or coff.
12629 linux*oldld* | linux*aout* | linux*coff*)
12630 dynamic_linker=no
12633 # This must be Linux ELF.
12634 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12635 version_type=linux
12636 need_lib_prefix=no
12637 need_version=no
12638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12639 soname_spec='${libname}${release}${shared_ext}$major'
12640 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12641 shlibpath_var=LD_LIBRARY_PATH
12642 shlibpath_overrides_runpath=no
12644 # Some binutils ld are patched to set DT_RUNPATH
12645 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
12646 $as_echo_n "(cached) " >&6
12647 else
12648 lt_cv_shlibpath_overrides_runpath=no
12649 save_LDFLAGS=$LDFLAGS
12650 save_libdir=$libdir
12651 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12652 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12653 if test x$gcc_no_link = xyes; then
12654 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12657 /* end confdefs.h. */
12660 main ()
12664 return 0;
12666 _ACEOF
12667 if ac_fn_c_try_link "$LINENO"; then :
12668 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12669 lt_cv_shlibpath_overrides_runpath=yes
12672 rm -f core conftest.err conftest.$ac_objext \
12673 conftest$ac_exeext conftest.$ac_ext
12674 LDFLAGS=$save_LDFLAGS
12675 libdir=$save_libdir
12679 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12681 # This implies no fast_install, which is unacceptable.
12682 # Some rework will be needed to allow for fast_install
12683 # before this can be enabled.
12684 hardcode_into_libs=yes
12686 # Append ld.so.conf contents to the search path
12687 if test -f /etc/ld.so.conf; then
12688 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' ' '`
12689 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12692 # We used to test for /lib/ld.so.1 and disable shared libraries on
12693 # powerpc, because MkLinux only supported shared libraries with the
12694 # GNU dynamic linker. Since this was broken with cross compilers,
12695 # most powerpc-linux boxes support dynamic linking these days and
12696 # people can always --disable-shared, the test was removed, and we
12697 # assume the GNU/Linux dynamic linker is in use.
12698 dynamic_linker='GNU/Linux ld.so'
12701 netbsd*)
12702 version_type=sunos
12703 need_lib_prefix=no
12704 need_version=no
12705 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12707 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12708 dynamic_linker='NetBSD (a.out) ld.so'
12709 else
12710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12711 soname_spec='${libname}${release}${shared_ext}$major'
12712 dynamic_linker='NetBSD ld.elf_so'
12714 shlibpath_var=LD_LIBRARY_PATH
12715 shlibpath_overrides_runpath=yes
12716 hardcode_into_libs=yes
12719 newsos6)
12720 version_type=linux
12721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12722 shlibpath_var=LD_LIBRARY_PATH
12723 shlibpath_overrides_runpath=yes
12726 *nto* | *qnx*)
12727 version_type=qnx
12728 need_lib_prefix=no
12729 need_version=no
12730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12731 soname_spec='${libname}${release}${shared_ext}$major'
12732 shlibpath_var=LD_LIBRARY_PATH
12733 shlibpath_overrides_runpath=no
12734 hardcode_into_libs=yes
12735 dynamic_linker='ldqnx.so'
12738 openbsd*)
12739 version_type=sunos
12740 sys_lib_dlsearch_path_spec="/usr/lib"
12741 need_lib_prefix=no
12742 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12743 case $host_os in
12744 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12745 *) need_version=no ;;
12746 esac
12747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12748 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12749 shlibpath_var=LD_LIBRARY_PATH
12750 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12751 case $host_os in
12752 openbsd2.[89] | openbsd2.[89].*)
12753 shlibpath_overrides_runpath=no
12756 shlibpath_overrides_runpath=yes
12758 esac
12759 else
12760 shlibpath_overrides_runpath=yes
12764 os2*)
12765 libname_spec='$name'
12766 shrext_cmds=".dll"
12767 need_lib_prefix=no
12768 library_names_spec='$libname${shared_ext} $libname.a'
12769 dynamic_linker='OS/2 ld.exe'
12770 shlibpath_var=LIBPATH
12773 osf3* | osf4* | osf5*)
12774 version_type=osf
12775 need_lib_prefix=no
12776 need_version=no
12777 soname_spec='${libname}${release}${shared_ext}$major'
12778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12779 shlibpath_var=LD_LIBRARY_PATH
12780 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12781 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12784 rdos*)
12785 dynamic_linker=no
12788 solaris*)
12789 version_type=linux
12790 need_lib_prefix=no
12791 need_version=no
12792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12793 soname_spec='${libname}${release}${shared_ext}$major'
12794 shlibpath_var=LD_LIBRARY_PATH
12795 shlibpath_overrides_runpath=yes
12796 hardcode_into_libs=yes
12797 # ldd complains unless libraries are executable
12798 postinstall_cmds='chmod +x $lib'
12801 sunos4*)
12802 version_type=sunos
12803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12804 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12805 shlibpath_var=LD_LIBRARY_PATH
12806 shlibpath_overrides_runpath=yes
12807 if test "$with_gnu_ld" = yes; then
12808 need_lib_prefix=no
12810 need_version=yes
12813 sysv4 | sysv4.3*)
12814 version_type=linux
12815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12816 soname_spec='${libname}${release}${shared_ext}$major'
12817 shlibpath_var=LD_LIBRARY_PATH
12818 case $host_vendor in
12819 sni)
12820 shlibpath_overrides_runpath=no
12821 need_lib_prefix=no
12822 runpath_var=LD_RUN_PATH
12824 siemens)
12825 need_lib_prefix=no
12827 motorola)
12828 need_lib_prefix=no
12829 need_version=no
12830 shlibpath_overrides_runpath=no
12831 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12833 esac
12836 sysv4*MP*)
12837 if test -d /usr/nec ;then
12838 version_type=linux
12839 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12840 soname_spec='$libname${shared_ext}.$major'
12841 shlibpath_var=LD_LIBRARY_PATH
12845 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12846 version_type=freebsd-elf
12847 need_lib_prefix=no
12848 need_version=no
12849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12850 soname_spec='${libname}${release}${shared_ext}$major'
12851 shlibpath_var=LD_LIBRARY_PATH
12852 shlibpath_overrides_runpath=yes
12853 hardcode_into_libs=yes
12854 if test "$with_gnu_ld" = yes; then
12855 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12856 else
12857 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12858 case $host_os in
12859 sco3.2v5*)
12860 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12862 esac
12864 sys_lib_dlsearch_path_spec='/usr/lib'
12867 tpf*)
12868 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12869 version_type=linux
12870 need_lib_prefix=no
12871 need_version=no
12872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12873 shlibpath_var=LD_LIBRARY_PATH
12874 shlibpath_overrides_runpath=no
12875 hardcode_into_libs=yes
12878 uts4*)
12879 version_type=linux
12880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12881 soname_spec='${libname}${release}${shared_ext}$major'
12882 shlibpath_var=LD_LIBRARY_PATH
12886 dynamic_linker=no
12888 esac
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12890 $as_echo "$dynamic_linker" >&6; }
12891 test "$dynamic_linker" = no && can_build_shared=no
12893 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12894 if test "$GCC" = yes; then
12895 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12898 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12899 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12901 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12902 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12997 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12998 hardcode_action=
12999 if test -n "$hardcode_libdir_flag_spec" ||
13000 test -n "$runpath_var" ||
13001 test "X$hardcode_automatic" = "Xyes" ; then
13003 # We can hardcode non-existent directories.
13004 if test "$hardcode_direct" != no &&
13005 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13006 # have to relink, otherwise we might link with an installed library
13007 # when we should be linking with a yet-to-be-installed one
13008 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13009 test "$hardcode_minus_L" != no; then
13010 # Linking always hardcodes the temporary library directory.
13011 hardcode_action=relink
13012 else
13013 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13014 hardcode_action=immediate
13016 else
13017 # We cannot hardcode anything, or else we can only hardcode existing
13018 # directories.
13019 hardcode_action=unsupported
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13022 $as_echo "$hardcode_action" >&6; }
13024 if test "$hardcode_action" = relink ||
13025 test "$inherit_rpath" = yes; then
13026 # Fast installation is not supported
13027 enable_fast_install=no
13028 elif test "$shlibpath_overrides_runpath" = yes ||
13029 test "$enable_shared" = no; then
13030 # Fast installation is not necessary
13031 enable_fast_install=needless
13039 if test "x$enable_dlopen" != xyes; then
13040 enable_dlopen=unknown
13041 enable_dlopen_self=unknown
13042 enable_dlopen_self_static=unknown
13043 else
13044 lt_cv_dlopen=no
13045 lt_cv_dlopen_libs=
13047 case $host_os in
13048 beos*)
13049 lt_cv_dlopen="load_add_on"
13050 lt_cv_dlopen_libs=
13051 lt_cv_dlopen_self=yes
13054 mingw* | pw32* | cegcc*)
13055 lt_cv_dlopen="LoadLibrary"
13056 lt_cv_dlopen_libs=
13059 cygwin*)
13060 lt_cv_dlopen="dlopen"
13061 lt_cv_dlopen_libs=
13064 darwin*)
13065 # if libdl is installed we need to link against it
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13067 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13068 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13069 $as_echo_n "(cached) " >&6
13070 else
13071 ac_check_lib_save_LIBS=$LIBS
13072 LIBS="-ldl $LIBS"
13073 if test x$gcc_no_link = xyes; then
13074 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13077 /* end confdefs.h. */
13079 /* Override any GCC internal prototype to avoid an error.
13080 Use char because int might match the return type of a GCC
13081 builtin and then its argument prototype would still apply. */
13082 #ifdef __cplusplus
13083 extern "C"
13084 #endif
13085 char dlopen ();
13087 main ()
13089 return dlopen ();
13091 return 0;
13093 _ACEOF
13094 if ac_fn_c_try_link "$LINENO"; then :
13095 ac_cv_lib_dl_dlopen=yes
13096 else
13097 ac_cv_lib_dl_dlopen=no
13099 rm -f core conftest.err conftest.$ac_objext \
13100 conftest$ac_exeext conftest.$ac_ext
13101 LIBS=$ac_check_lib_save_LIBS
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13104 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13105 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13106 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13107 else
13109 lt_cv_dlopen="dyld"
13110 lt_cv_dlopen_libs=
13111 lt_cv_dlopen_self=yes
13118 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13119 if test "x$ac_cv_func_shl_load" = x""yes; then :
13120 lt_cv_dlopen="shl_load"
13121 else
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13123 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13124 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13125 $as_echo_n "(cached) " >&6
13126 else
13127 ac_check_lib_save_LIBS=$LIBS
13128 LIBS="-ldld $LIBS"
13129 if test x$gcc_no_link = xyes; then
13130 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13133 /* end confdefs.h. */
13135 /* Override any GCC internal prototype to avoid an error.
13136 Use char because int might match the return type of a GCC
13137 builtin and then its argument prototype would still apply. */
13138 #ifdef __cplusplus
13139 extern "C"
13140 #endif
13141 char shl_load ();
13143 main ()
13145 return shl_load ();
13147 return 0;
13149 _ACEOF
13150 if ac_fn_c_try_link "$LINENO"; then :
13151 ac_cv_lib_dld_shl_load=yes
13152 else
13153 ac_cv_lib_dld_shl_load=no
13155 rm -f core conftest.err conftest.$ac_objext \
13156 conftest$ac_exeext conftest.$ac_ext
13157 LIBS=$ac_check_lib_save_LIBS
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13160 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13161 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13162 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13163 else
13164 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13165 if test "x$ac_cv_func_dlopen" = x""yes; then :
13166 lt_cv_dlopen="dlopen"
13167 else
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13169 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13170 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13171 $as_echo_n "(cached) " >&6
13172 else
13173 ac_check_lib_save_LIBS=$LIBS
13174 LIBS="-ldl $LIBS"
13175 if test x$gcc_no_link = xyes; then
13176 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13179 /* end confdefs.h. */
13181 /* Override any GCC internal prototype to avoid an error.
13182 Use char because int might match the return type of a GCC
13183 builtin and then its argument prototype would still apply. */
13184 #ifdef __cplusplus
13185 extern "C"
13186 #endif
13187 char dlopen ();
13189 main ()
13191 return dlopen ();
13193 return 0;
13195 _ACEOF
13196 if ac_fn_c_try_link "$LINENO"; then :
13197 ac_cv_lib_dl_dlopen=yes
13198 else
13199 ac_cv_lib_dl_dlopen=no
13201 rm -f core conftest.err conftest.$ac_objext \
13202 conftest$ac_exeext conftest.$ac_ext
13203 LIBS=$ac_check_lib_save_LIBS
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13206 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13207 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13208 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13209 else
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13211 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13212 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13213 $as_echo_n "(cached) " >&6
13214 else
13215 ac_check_lib_save_LIBS=$LIBS
13216 LIBS="-lsvld $LIBS"
13217 if test x$gcc_no_link = xyes; then
13218 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13221 /* end confdefs.h. */
13223 /* Override any GCC internal prototype to avoid an error.
13224 Use char because int might match the return type of a GCC
13225 builtin and then its argument prototype would still apply. */
13226 #ifdef __cplusplus
13227 extern "C"
13228 #endif
13229 char dlopen ();
13231 main ()
13233 return dlopen ();
13235 return 0;
13237 _ACEOF
13238 if ac_fn_c_try_link "$LINENO"; then :
13239 ac_cv_lib_svld_dlopen=yes
13240 else
13241 ac_cv_lib_svld_dlopen=no
13243 rm -f core conftest.err conftest.$ac_objext \
13244 conftest$ac_exeext conftest.$ac_ext
13245 LIBS=$ac_check_lib_save_LIBS
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13248 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13249 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13250 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13251 else
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13253 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13254 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13255 $as_echo_n "(cached) " >&6
13256 else
13257 ac_check_lib_save_LIBS=$LIBS
13258 LIBS="-ldld $LIBS"
13259 if test x$gcc_no_link = xyes; then
13260 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13263 /* end confdefs.h. */
13265 /* Override any GCC internal prototype to avoid an error.
13266 Use char because int might match the return type of a GCC
13267 builtin and then its argument prototype would still apply. */
13268 #ifdef __cplusplus
13269 extern "C"
13270 #endif
13271 char dld_link ();
13273 main ()
13275 return dld_link ();
13277 return 0;
13279 _ACEOF
13280 if ac_fn_c_try_link "$LINENO"; then :
13281 ac_cv_lib_dld_dld_link=yes
13282 else
13283 ac_cv_lib_dld_dld_link=no
13285 rm -f core conftest.err conftest.$ac_objext \
13286 conftest$ac_exeext conftest.$ac_ext
13287 LIBS=$ac_check_lib_save_LIBS
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13290 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13291 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13292 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13311 esac
13313 if test "x$lt_cv_dlopen" != xno; then
13314 enable_dlopen=yes
13315 else
13316 enable_dlopen=no
13319 case $lt_cv_dlopen in
13320 dlopen)
13321 save_CPPFLAGS="$CPPFLAGS"
13322 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13324 save_LDFLAGS="$LDFLAGS"
13325 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13327 save_LIBS="$LIBS"
13328 LIBS="$lt_cv_dlopen_libs $LIBS"
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13331 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13332 if test "${lt_cv_dlopen_self+set}" = set; then :
13333 $as_echo_n "(cached) " >&6
13334 else
13335 if test "$cross_compiling" = yes; then :
13336 lt_cv_dlopen_self=cross
13337 else
13338 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13339 lt_status=$lt_dlunknown
13340 cat > conftest.$ac_ext <<_LT_EOF
13341 #line 13341 "configure"
13342 #include "confdefs.h"
13344 #if HAVE_DLFCN_H
13345 #include <dlfcn.h>
13346 #endif
13348 #include <stdio.h>
13350 #ifdef RTLD_GLOBAL
13351 # define LT_DLGLOBAL RTLD_GLOBAL
13352 #else
13353 # ifdef DL_GLOBAL
13354 # define LT_DLGLOBAL DL_GLOBAL
13355 # else
13356 # define LT_DLGLOBAL 0
13357 # endif
13358 #endif
13360 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13361 find out it does not work in some platform. */
13362 #ifndef LT_DLLAZY_OR_NOW
13363 # ifdef RTLD_LAZY
13364 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13365 # else
13366 # ifdef DL_LAZY
13367 # define LT_DLLAZY_OR_NOW DL_LAZY
13368 # else
13369 # ifdef RTLD_NOW
13370 # define LT_DLLAZY_OR_NOW RTLD_NOW
13371 # else
13372 # ifdef DL_NOW
13373 # define LT_DLLAZY_OR_NOW DL_NOW
13374 # else
13375 # define LT_DLLAZY_OR_NOW 0
13376 # endif
13377 # endif
13378 # endif
13379 # endif
13380 #endif
13382 /* When -fvisbility=hidden is used, assume the code has been annotated
13383 correspondingly for the symbols needed. */
13384 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13385 void fnord () __attribute__((visibility("default")));
13386 #endif
13388 void fnord () { int i=42; }
13389 int main ()
13391 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13392 int status = $lt_dlunknown;
13394 if (self)
13396 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13397 else
13399 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13400 else puts (dlerror ());
13402 /* dlclose (self); */
13404 else
13405 puts (dlerror ());
13407 return status;
13409 _LT_EOF
13410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13411 (eval $ac_link) 2>&5
13412 ac_status=$?
13413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13414 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13415 (./conftest; exit; ) >&5 2>/dev/null
13416 lt_status=$?
13417 case x$lt_status in
13418 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13419 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13420 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13421 esac
13422 else :
13423 # compilation failed
13424 lt_cv_dlopen_self=no
13427 rm -fr conftest*
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13432 $as_echo "$lt_cv_dlopen_self" >&6; }
13434 if test "x$lt_cv_dlopen_self" = xyes; then
13435 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13437 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13438 if test "${lt_cv_dlopen_self_static+set}" = set; then :
13439 $as_echo_n "(cached) " >&6
13440 else
13441 if test "$cross_compiling" = yes; then :
13442 lt_cv_dlopen_self_static=cross
13443 else
13444 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13445 lt_status=$lt_dlunknown
13446 cat > conftest.$ac_ext <<_LT_EOF
13447 #line 13447 "configure"
13448 #include "confdefs.h"
13450 #if HAVE_DLFCN_H
13451 #include <dlfcn.h>
13452 #endif
13454 #include <stdio.h>
13456 #ifdef RTLD_GLOBAL
13457 # define LT_DLGLOBAL RTLD_GLOBAL
13458 #else
13459 # ifdef DL_GLOBAL
13460 # define LT_DLGLOBAL DL_GLOBAL
13461 # else
13462 # define LT_DLGLOBAL 0
13463 # endif
13464 #endif
13466 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13467 find out it does not work in some platform. */
13468 #ifndef LT_DLLAZY_OR_NOW
13469 # ifdef RTLD_LAZY
13470 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13471 # else
13472 # ifdef DL_LAZY
13473 # define LT_DLLAZY_OR_NOW DL_LAZY
13474 # else
13475 # ifdef RTLD_NOW
13476 # define LT_DLLAZY_OR_NOW RTLD_NOW
13477 # else
13478 # ifdef DL_NOW
13479 # define LT_DLLAZY_OR_NOW DL_NOW
13480 # else
13481 # define LT_DLLAZY_OR_NOW 0
13482 # endif
13483 # endif
13484 # endif
13485 # endif
13486 #endif
13488 /* When -fvisbility=hidden is used, assume the code has been annotated
13489 correspondingly for the symbols needed. */
13490 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13491 void fnord () __attribute__((visibility("default")));
13492 #endif
13494 void fnord () { int i=42; }
13495 int main ()
13497 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13498 int status = $lt_dlunknown;
13500 if (self)
13502 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13503 else
13505 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13506 else puts (dlerror ());
13508 /* dlclose (self); */
13510 else
13511 puts (dlerror ());
13513 return status;
13515 _LT_EOF
13516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13517 (eval $ac_link) 2>&5
13518 ac_status=$?
13519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13520 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13521 (./conftest; exit; ) >&5 2>/dev/null
13522 lt_status=$?
13523 case x$lt_status in
13524 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13525 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13526 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13527 esac
13528 else :
13529 # compilation failed
13530 lt_cv_dlopen_self_static=no
13533 rm -fr conftest*
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13538 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13541 CPPFLAGS="$save_CPPFLAGS"
13542 LDFLAGS="$save_LDFLAGS"
13543 LIBS="$save_LIBS"
13545 esac
13547 case $lt_cv_dlopen_self in
13548 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13549 *) enable_dlopen_self=unknown ;;
13550 esac
13552 case $lt_cv_dlopen_self_static in
13553 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13554 *) enable_dlopen_self_static=unknown ;;
13555 esac
13574 striplib=
13575 old_striplib=
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13577 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13578 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13579 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13580 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13582 $as_echo "yes" >&6; }
13583 else
13584 # FIXME - insert some real tests, host_os isn't really good enough
13585 case $host_os in
13586 darwin*)
13587 if test -n "$STRIP" ; then
13588 striplib="$STRIP -x"
13589 old_striplib="$STRIP -S"
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13591 $as_echo "yes" >&6; }
13592 else
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13594 $as_echo "no" >&6; }
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13599 $as_echo "no" >&6; }
13601 esac
13615 # Report which library types will actually be built
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13617 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13619 $as_echo "$can_build_shared" >&6; }
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13622 $as_echo_n "checking whether to build shared libraries... " >&6; }
13623 test "$can_build_shared" = "no" && enable_shared=no
13625 # On AIX, shared libraries and static libraries use the same namespace, and
13626 # are all built from PIC.
13627 case $host_os in
13628 aix3*)
13629 test "$enable_shared" = yes && enable_static=no
13630 if test -n "$RANLIB"; then
13631 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13632 postinstall_cmds='$RANLIB $lib'
13636 aix[4-9]*)
13637 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13638 test "$enable_shared" = yes && enable_static=no
13641 esac
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13643 $as_echo "$enable_shared" >&6; }
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13646 $as_echo_n "checking whether to build static libraries... " >&6; }
13647 # Make sure either enable_shared or enable_static is yes.
13648 test "$enable_shared" = yes || enable_static=yes
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13650 $as_echo "$enable_static" >&6; }
13656 ac_ext=c
13657 ac_cpp='$CPP $CPPFLAGS'
13658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13662 CC="$lt_save_CC"
13664 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13665 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13666 (test "X$CXX" != "Xg++"))) ; then
13667 ac_ext=cpp
13668 ac_cpp='$CXXCPP $CPPFLAGS'
13669 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13670 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13671 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13673 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13674 if test -z "$CXXCPP"; then
13675 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13676 $as_echo_n "(cached) " >&6
13677 else
13678 # Double quotes because CXXCPP needs to be expanded
13679 for CXXCPP in "$CXX -E" "/lib/cpp"
13681 ac_preproc_ok=false
13682 for ac_cxx_preproc_warn_flag in '' yes
13684 # Use a header file that comes with gcc, so configuring glibc
13685 # with a fresh cross-compiler works.
13686 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13687 # <limits.h> exists even on freestanding compilers.
13688 # On the NeXT, cc -E runs the code through the compiler's parser,
13689 # not just through cpp. "Syntax error" is here to catch this case.
13690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13691 /* end confdefs.h. */
13692 #ifdef __STDC__
13693 # include <limits.h>
13694 #else
13695 # include <assert.h>
13696 #endif
13697 Syntax error
13698 _ACEOF
13699 if ac_fn_cxx_try_cpp "$LINENO"; then :
13701 else
13702 # Broken: fails on valid input.
13703 continue
13705 rm -f conftest.err conftest.$ac_ext
13707 # OK, works on sane cases. Now check whether nonexistent headers
13708 # can be detected and how.
13709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13710 /* end confdefs.h. */
13711 #include <ac_nonexistent.h>
13712 _ACEOF
13713 if ac_fn_cxx_try_cpp "$LINENO"; then :
13714 # Broken: success on invalid input.
13715 continue
13716 else
13717 # Passes both tests.
13718 ac_preproc_ok=:
13719 break
13721 rm -f conftest.err conftest.$ac_ext
13723 done
13724 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13725 rm -f conftest.err conftest.$ac_ext
13726 if $ac_preproc_ok; then :
13727 break
13730 done
13731 ac_cv_prog_CXXCPP=$CXXCPP
13734 CXXCPP=$ac_cv_prog_CXXCPP
13735 else
13736 ac_cv_prog_CXXCPP=$CXXCPP
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13739 $as_echo "$CXXCPP" >&6; }
13740 ac_preproc_ok=false
13741 for ac_cxx_preproc_warn_flag in '' yes
13743 # Use a header file that comes with gcc, so configuring glibc
13744 # with a fresh cross-compiler works.
13745 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13746 # <limits.h> exists even on freestanding compilers.
13747 # On the NeXT, cc -E runs the code through the compiler's parser,
13748 # not just through cpp. "Syntax error" is here to catch this case.
13749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13750 /* end confdefs.h. */
13751 #ifdef __STDC__
13752 # include <limits.h>
13753 #else
13754 # include <assert.h>
13755 #endif
13756 Syntax error
13757 _ACEOF
13758 if ac_fn_cxx_try_cpp "$LINENO"; then :
13760 else
13761 # Broken: fails on valid input.
13762 continue
13764 rm -f conftest.err conftest.$ac_ext
13766 # OK, works on sane cases. Now check whether nonexistent headers
13767 # can be detected and how.
13768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13769 /* end confdefs.h. */
13770 #include <ac_nonexistent.h>
13771 _ACEOF
13772 if ac_fn_cxx_try_cpp "$LINENO"; then :
13773 # Broken: success on invalid input.
13774 continue
13775 else
13776 # Passes both tests.
13777 ac_preproc_ok=:
13778 break
13780 rm -f conftest.err conftest.$ac_ext
13782 done
13783 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13784 rm -f conftest.err conftest.$ac_ext
13785 if $ac_preproc_ok; then :
13787 else
13788 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13790 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
13791 See \`config.log' for more details." "$LINENO" 5; }
13794 ac_ext=c
13795 ac_cpp='$CPP $CPPFLAGS'
13796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13800 else
13801 _lt_caught_CXX_error=yes
13804 ac_ext=cpp
13805 ac_cpp='$CXXCPP $CPPFLAGS'
13806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13810 archive_cmds_need_lc_CXX=no
13811 allow_undefined_flag_CXX=
13812 always_export_symbols_CXX=no
13813 archive_expsym_cmds_CXX=
13814 compiler_needs_object_CXX=no
13815 export_dynamic_flag_spec_CXX=
13816 hardcode_direct_CXX=no
13817 hardcode_direct_absolute_CXX=no
13818 hardcode_libdir_flag_spec_CXX=
13819 hardcode_libdir_flag_spec_ld_CXX=
13820 hardcode_libdir_separator_CXX=
13821 hardcode_minus_L_CXX=no
13822 hardcode_shlibpath_var_CXX=unsupported
13823 hardcode_automatic_CXX=no
13824 inherit_rpath_CXX=no
13825 module_cmds_CXX=
13826 module_expsym_cmds_CXX=
13827 link_all_deplibs_CXX=unknown
13828 old_archive_cmds_CXX=$old_archive_cmds
13829 reload_flag_CXX=$reload_flag
13830 reload_cmds_CXX=$reload_cmds
13831 no_undefined_flag_CXX=
13832 whole_archive_flag_spec_CXX=
13833 enable_shared_with_static_runtimes_CXX=no
13835 # Source file extension for C++ test sources.
13836 ac_ext=cpp
13838 # Object file extension for compiled C++ test sources.
13839 objext=o
13840 objext_CXX=$objext
13842 # No sense in running all these tests if we already determined that
13843 # the CXX compiler isn't working. Some variables (like enable_shared)
13844 # are currently assumed to apply to all compilers on this platform,
13845 # and will be corrupted by setting them based on a non-working compiler.
13846 if test "$_lt_caught_CXX_error" != yes; then
13847 # Code to be used in simple compile tests
13848 lt_simple_compile_test_code="int some_variable = 0;"
13850 # Code to be used in simple link tests
13851 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13853 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13860 # If no C compiler was specified, use CC.
13861 LTCC=${LTCC-"$CC"}
13863 # If no C compiler flags were specified, use CFLAGS.
13864 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13866 # Allow CC to be a program name with arguments.
13867 compiler=$CC
13870 # save warnings/boilerplate of simple test code
13871 ac_outfile=conftest.$ac_objext
13872 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13873 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13874 _lt_compiler_boilerplate=`cat conftest.err`
13875 $RM conftest*
13877 ac_outfile=conftest.$ac_objext
13878 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13879 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13880 _lt_linker_boilerplate=`cat conftest.err`
13881 $RM -r conftest*
13884 # Allow CC to be a program name with arguments.
13885 lt_save_CC=$CC
13886 lt_save_LD=$LD
13887 lt_save_GCC=$GCC
13888 GCC=$GXX
13889 lt_save_with_gnu_ld=$with_gnu_ld
13890 lt_save_path_LD=$lt_cv_path_LD
13891 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13892 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13893 else
13894 $as_unset lt_cv_prog_gnu_ld
13896 if test -n "${lt_cv_path_LDCXX+set}"; then
13897 lt_cv_path_LD=$lt_cv_path_LDCXX
13898 else
13899 $as_unset lt_cv_path_LD
13901 test -z "${LDCXX+set}" || LD=$LDCXX
13902 CC=${CXX-"c++"}
13903 compiler=$CC
13904 compiler_CXX=$CC
13905 for cc_temp in $compiler""; do
13906 case $cc_temp in
13907 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13908 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13909 \-*) ;;
13910 *) break;;
13911 esac
13912 done
13913 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13916 if test -n "$compiler"; then
13917 # We don't want -fno-exception when compiling C++ code, so set the
13918 # no_builtin_flag separately
13919 if test "$GXX" = yes; then
13920 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13921 else
13922 lt_prog_compiler_no_builtin_flag_CXX=
13925 if test "$GXX" = yes; then
13926 # Set up default GNU C++ configuration
13930 # Check whether --with-gnu-ld was given.
13931 if test "${with_gnu_ld+set}" = set; then :
13932 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13933 else
13934 with_gnu_ld=no
13937 ac_prog=ld
13938 if test "$GCC" = yes; then
13939 # Check if gcc -print-prog-name=ld gives a path.
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13941 $as_echo_n "checking for ld used by $CC... " >&6; }
13942 case $host in
13943 *-*-mingw*)
13944 # gcc leaves a trailing carriage return which upsets mingw
13945 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13947 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13948 esac
13949 case $ac_prog in
13950 # Accept absolute paths.
13951 [\\/]* | ?:[\\/]*)
13952 re_direlt='/[^/][^/]*/\.\./'
13953 # Canonicalize the pathname of ld
13954 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13955 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13956 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13957 done
13958 test -z "$LD" && LD="$ac_prog"
13961 # If it fails, then pretend we aren't using GCC.
13962 ac_prog=ld
13965 # If it is relative, then search for the first ld in PATH.
13966 with_gnu_ld=unknown
13968 esac
13969 elif test "$with_gnu_ld" = yes; then
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13971 $as_echo_n "checking for GNU ld... " >&6; }
13972 else
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13974 $as_echo_n "checking for non-GNU ld... " >&6; }
13976 if test "${lt_cv_path_LD+set}" = set; then :
13977 $as_echo_n "(cached) " >&6
13978 else
13979 if test -z "$LD"; then
13980 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13981 for ac_dir in $PATH; do
13982 IFS="$lt_save_ifs"
13983 test -z "$ac_dir" && ac_dir=.
13984 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13985 lt_cv_path_LD="$ac_dir/$ac_prog"
13986 # Check to see if the program is GNU ld. I'd rather use --version,
13987 # but apparently some variants of GNU ld only accept -v.
13988 # Break only if it was the GNU/non-GNU ld that we prefer.
13989 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13990 *GNU* | *'with BFD'*)
13991 test "$with_gnu_ld" != no && break
13994 test "$with_gnu_ld" != yes && break
13996 esac
13998 done
13999 IFS="$lt_save_ifs"
14000 else
14001 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14005 LD="$lt_cv_path_LD"
14006 if test -n "$LD"; then
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14008 $as_echo "$LD" >&6; }
14009 else
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14011 $as_echo "no" >&6; }
14013 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14015 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14016 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14017 $as_echo_n "(cached) " >&6
14018 else
14019 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14020 case `$LD -v 2>&1 </dev/null` in
14021 *GNU* | *'with BFD'*)
14022 lt_cv_prog_gnu_ld=yes
14025 lt_cv_prog_gnu_ld=no
14027 esac
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14030 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14031 with_gnu_ld=$lt_cv_prog_gnu_ld
14039 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14040 # archiving commands below assume that GNU ld is being used.
14041 if test "$with_gnu_ld" = yes; then
14042 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14043 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'
14045 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14046 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14048 # If archive_cmds runs LD, not CC, wlarc should be empty
14049 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14050 # investigate it a little bit more. (MM)
14051 wlarc='${wl}'
14053 # ancient GNU ld didn't support --whole-archive et. al.
14054 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14055 $GREP 'no-whole-archive' > /dev/null; then
14056 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14057 else
14058 whole_archive_flag_spec_CXX=
14060 else
14061 with_gnu_ld=no
14062 wlarc=
14064 # A generic and very simple default shared library creation
14065 # command for GNU C++ for the case where it uses the native
14066 # linker, instead of GNU ld. If possible, this setting should
14067 # overridden to take advantage of the native linker features on
14068 # the platform it is being used on.
14069 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14072 # Commands to make compiler produce verbose output that lists
14073 # what "hidden" libraries, object files and flags are used when
14074 # linking a shared library.
14075 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14077 else
14078 GXX=no
14079 with_gnu_ld=no
14080 wlarc=
14083 # PORTME: fill in a description of your system's C++ link characteristics
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14085 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14086 ld_shlibs_CXX=yes
14087 case $host_os in
14088 aix3*)
14089 # FIXME: insert proper C++ library support
14090 ld_shlibs_CXX=no
14092 aix[4-9]*)
14093 if test "$host_cpu" = ia64; then
14094 # On IA64, the linker does run time linking by default, so we don't
14095 # have to do anything special.
14096 aix_use_runtimelinking=no
14097 exp_sym_flag='-Bexport'
14098 no_entry_flag=""
14099 else
14100 aix_use_runtimelinking=no
14102 # Test if we are trying to use run time linking or normal
14103 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14104 # need to do runtime linking.
14105 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14106 for ld_flag in $LDFLAGS; do
14107 case $ld_flag in
14108 *-brtl*)
14109 aix_use_runtimelinking=yes
14110 break
14112 esac
14113 done
14115 esac
14117 exp_sym_flag='-bexport'
14118 no_entry_flag='-bnoentry'
14121 # When large executables or shared objects are built, AIX ld can
14122 # have problems creating the table of contents. If linking a library
14123 # or program results in "error TOC overflow" add -mminimal-toc to
14124 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14125 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14127 archive_cmds_CXX=''
14128 hardcode_direct_CXX=yes
14129 hardcode_direct_absolute_CXX=yes
14130 hardcode_libdir_separator_CXX=':'
14131 link_all_deplibs_CXX=yes
14132 file_list_spec_CXX='${wl}-f,'
14134 if test "$GXX" = yes; then
14135 case $host_os in aix4.[012]|aix4.[012].*)
14136 # We only want to do this on AIX 4.2 and lower, the check
14137 # below for broken collect2 doesn't work under 4.3+
14138 collect2name=`${CC} -print-prog-name=collect2`
14139 if test -f "$collect2name" &&
14140 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14141 then
14142 # We have reworked collect2
14144 else
14145 # We have old collect2
14146 hardcode_direct_CXX=unsupported
14147 # It fails to find uninstalled libraries when the uninstalled
14148 # path is not listed in the libpath. Setting hardcode_minus_L
14149 # to unsupported forces relinking
14150 hardcode_minus_L_CXX=yes
14151 hardcode_libdir_flag_spec_CXX='-L$libdir'
14152 hardcode_libdir_separator_CXX=
14154 esac
14155 shared_flag='-shared'
14156 if test "$aix_use_runtimelinking" = yes; then
14157 shared_flag="$shared_flag "'${wl}-G'
14159 else
14160 # not using gcc
14161 if test "$host_cpu" = ia64; then
14162 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14163 # chokes on -Wl,-G. The following line is correct:
14164 shared_flag='-G'
14165 else
14166 if test "$aix_use_runtimelinking" = yes; then
14167 shared_flag='${wl}-G'
14168 else
14169 shared_flag='${wl}-bM:SRE'
14174 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14175 # It seems that -bexpall does not export symbols beginning with
14176 # underscore (_), so it is better to generate a list of symbols to
14177 # export.
14178 always_export_symbols_CXX=yes
14179 if test "$aix_use_runtimelinking" = yes; then
14180 # Warning - without using the other runtime loading flags (-brtl),
14181 # -berok will link without error, but may produce a broken library.
14182 allow_undefined_flag_CXX='-berok'
14183 # Determine the default libpath from the value encoded in an empty
14184 # executable.
14185 if test x$gcc_no_link = xyes; then
14186 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14189 /* end confdefs.h. */
14192 main ()
14196 return 0;
14198 _ACEOF
14199 if ac_fn_cxx_try_link "$LINENO"; then :
14201 lt_aix_libpath_sed='
14202 /Import File Strings/,/^$/ {
14203 /^0/ {
14204 s/^0 *\(.*\)$/\1/
14208 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14209 # Check for a 64-bit object if we didn't find anything.
14210 if test -z "$aix_libpath"; then
14211 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14214 rm -f core conftest.err conftest.$ac_objext \
14215 conftest$ac_exeext conftest.$ac_ext
14216 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14218 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14220 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"
14221 else
14222 if test "$host_cpu" = ia64; then
14223 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14224 allow_undefined_flag_CXX="-z nodefs"
14225 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"
14226 else
14227 # Determine the default libpath from the value encoded in an
14228 # empty executable.
14229 if test x$gcc_no_link = xyes; then
14230 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14233 /* end confdefs.h. */
14236 main ()
14240 return 0;
14242 _ACEOF
14243 if ac_fn_cxx_try_link "$LINENO"; then :
14245 lt_aix_libpath_sed='
14246 /Import File Strings/,/^$/ {
14247 /^0/ {
14248 s/^0 *\(.*\)$/\1/
14252 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14253 # Check for a 64-bit object if we didn't find anything.
14254 if test -z "$aix_libpath"; then
14255 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14258 rm -f core conftest.err conftest.$ac_objext \
14259 conftest$ac_exeext conftest.$ac_ext
14260 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14262 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14263 # Warning - without using the other run time loading flags,
14264 # -berok will link without error, but may produce a broken library.
14265 no_undefined_flag_CXX=' ${wl}-bernotok'
14266 allow_undefined_flag_CXX=' ${wl}-berok'
14267 if test "$with_gnu_ld" = yes; then
14268 # We only use this code for GNU lds that support --whole-archive.
14269 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14270 else
14271 # Exported symbols can be pulled into shared objects from archives
14272 whole_archive_flag_spec_CXX='$convenience'
14274 archive_cmds_need_lc_CXX=yes
14275 # This is similar to how AIX traditionally builds its shared
14276 # libraries.
14277 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'
14282 beos*)
14283 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14284 allow_undefined_flag_CXX=unsupported
14285 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14286 # support --undefined. This deserves some investigation. FIXME
14287 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14288 else
14289 ld_shlibs_CXX=no
14293 chorus*)
14294 case $cc_basename in
14296 # FIXME: insert proper C++ library support
14297 ld_shlibs_CXX=no
14299 esac
14302 cygwin* | mingw* | pw32* | cegcc*)
14303 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14304 # as there is no search path for DLLs.
14305 hardcode_libdir_flag_spec_CXX='-L$libdir'
14306 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14307 allow_undefined_flag_CXX=unsupported
14308 always_export_symbols_CXX=no
14309 enable_shared_with_static_runtimes_CXX=yes
14311 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14312 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'
14313 # If the export-symbols file already is a .def file (1st line
14314 # is EXPORTS), use it as is; otherwise, prepend...
14315 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14316 cp $export_symbols $output_objdir/$soname.def;
14317 else
14318 echo EXPORTS > $output_objdir/$soname.def;
14319 cat $export_symbols >> $output_objdir/$soname.def;
14321 $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'
14322 else
14323 ld_shlibs_CXX=no
14326 darwin* | rhapsody*)
14329 archive_cmds_need_lc_CXX=no
14330 hardcode_direct_CXX=no
14331 hardcode_automatic_CXX=yes
14332 hardcode_shlibpath_var_CXX=unsupported
14333 if test "$lt_cv_ld_force_load" = "yes"; then
14334 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\"`'
14335 else
14336 whole_archive_flag_spec_CXX=''
14338 link_all_deplibs_CXX=yes
14339 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14340 case $cc_basename in
14341 ifort*) _lt_dar_can_shared=yes ;;
14342 *) _lt_dar_can_shared=$GCC ;;
14343 esac
14344 if test "$_lt_dar_can_shared" = "yes"; then
14345 output_verbose_link_cmd=func_echo_all
14346 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}"
14347 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14348 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}"
14349 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}"
14350 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14351 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}"
14352 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}"
14355 else
14356 ld_shlibs_CXX=no
14361 dgux*)
14362 case $cc_basename in
14363 ec++*)
14364 # FIXME: insert proper C++ library support
14365 ld_shlibs_CXX=no
14367 ghcx*)
14368 # Green Hills C++ Compiler
14369 # FIXME: insert proper C++ library support
14370 ld_shlibs_CXX=no
14373 # FIXME: insert proper C++ library support
14374 ld_shlibs_CXX=no
14376 esac
14379 freebsd[12]*)
14380 # C++ shared libraries reported to be fairly broken before
14381 # switch to ELF
14382 ld_shlibs_CXX=no
14385 freebsd-elf*)
14386 archive_cmds_need_lc_CXX=no
14389 freebsd* | dragonfly*)
14390 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14391 # conventions
14392 ld_shlibs_CXX=yes
14395 gnu*)
14398 haiku*)
14399 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14400 link_all_deplibs_CXX=yes
14403 hpux9*)
14404 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14405 hardcode_libdir_separator_CXX=:
14406 export_dynamic_flag_spec_CXX='${wl}-E'
14407 hardcode_direct_CXX=yes
14408 hardcode_minus_L_CXX=yes # Not in the search PATH,
14409 # but as the default
14410 # location of the library.
14412 case $cc_basename in
14413 CC*)
14414 # FIXME: insert proper C++ library support
14415 ld_shlibs_CXX=no
14417 aCC*)
14418 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'
14419 # Commands to make compiler produce verbose output that lists
14420 # what "hidden" libraries, object files and flags are used when
14421 # linking a shared library.
14423 # There doesn't appear to be a way to prevent this compiler from
14424 # explicitly linking system object files so we need to strip them
14425 # from the output so that they don't get included in the library
14426 # dependencies.
14427 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"'
14430 if test "$GXX" = yes; then
14431 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'
14432 else
14433 # FIXME: insert proper C++ library support
14434 ld_shlibs_CXX=no
14437 esac
14440 hpux10*|hpux11*)
14441 if test $with_gnu_ld = no; then
14442 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14443 hardcode_libdir_separator_CXX=:
14445 case $host_cpu in
14446 hppa*64*|ia64*)
14449 export_dynamic_flag_spec_CXX='${wl}-E'
14451 esac
14453 case $host_cpu in
14454 hppa*64*|ia64*)
14455 hardcode_direct_CXX=no
14456 hardcode_shlibpath_var_CXX=no
14459 hardcode_direct_CXX=yes
14460 hardcode_direct_absolute_CXX=yes
14461 hardcode_minus_L_CXX=yes # Not in the search PATH,
14462 # but as the default
14463 # location of the library.
14465 esac
14467 case $cc_basename in
14468 CC*)
14469 # FIXME: insert proper C++ library support
14470 ld_shlibs_CXX=no
14472 aCC*)
14473 case $host_cpu in
14474 hppa*64*)
14475 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14477 ia64*)
14478 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14481 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14483 esac
14484 # Commands to make compiler produce verbose output that lists
14485 # what "hidden" libraries, object files and flags are used when
14486 # linking a shared library.
14488 # There doesn't appear to be a way to prevent this compiler from
14489 # explicitly linking system object files so we need to strip them
14490 # from the output so that they don't get included in the library
14491 # dependencies.
14492 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $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"'
14495 if test "$GXX" = yes; then
14496 if test $with_gnu_ld = no; then
14497 case $host_cpu in
14498 hppa*64*)
14499 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14501 ia64*)
14502 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14505 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'
14507 esac
14509 else
14510 # FIXME: insert proper C++ library support
14511 ld_shlibs_CXX=no
14514 esac
14517 interix[3-9]*)
14518 hardcode_direct_CXX=no
14519 hardcode_shlibpath_var_CXX=no
14520 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14521 export_dynamic_flag_spec_CXX='${wl}-E'
14522 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14523 # Instead, shared libraries are loaded at an image base (0x10000000 by
14524 # default) and relocated if they conflict, which is a slow very memory
14525 # consuming and fragmenting process. To avoid this, we pick a random,
14526 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14527 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14528 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'
14529 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'
14531 irix5* | irix6*)
14532 case $cc_basename in
14533 CC*)
14534 # SGI C++
14535 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'
14537 # Archives containing C++ object files must be created using
14538 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14539 # necessary to make sure instantiated templates are included
14540 # in the archive.
14541 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14544 if test "$GXX" = yes; then
14545 if test "$with_gnu_ld" = no; then
14546 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'
14547 else
14548 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'
14551 link_all_deplibs_CXX=yes
14553 esac
14554 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14555 hardcode_libdir_separator_CXX=:
14556 inherit_rpath_CXX=yes
14559 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14560 case $cc_basename in
14561 KCC*)
14562 # Kuck and Associates, Inc. (KAI) C++ Compiler
14564 # KCC will only create a shared library if the output file
14565 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14566 # to its proper name (with version) after linking.
14567 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'
14568 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'
14569 # Commands to make compiler produce verbose output that lists
14570 # what "hidden" libraries, object files and flags are used when
14571 # linking a shared library.
14573 # There doesn't appear to be a way to prevent this compiler from
14574 # explicitly linking system object files so we need to strip them
14575 # from the output so that they don't get included in the library
14576 # dependencies.
14577 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"'
14579 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14580 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14582 # Archives containing C++ object files must be created using
14583 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14584 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14586 icpc* | ecpc* )
14587 # Intel C++
14588 with_gnu_ld=yes
14589 # version 8.0 and above of icpc choke on multiply defined symbols
14590 # if we add $predep_objects and $postdep_objects, however 7.1 and
14591 # earlier do not add the objects themselves.
14592 case `$CC -V 2>&1` in
14593 *"Version 7."*)
14594 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14595 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'
14597 *) # Version 8.0 or newer
14598 tmp_idyn=
14599 case $host_cpu in
14600 ia64*) tmp_idyn=' -i_dynamic';;
14601 esac
14602 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14603 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'
14605 esac
14606 archive_cmds_need_lc_CXX=no
14607 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14608 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14609 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14611 pgCC* | pgcpp*)
14612 # Portland Group C++ compiler
14613 case `$CC -V` in
14614 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14615 prelink_cmds_CXX='tpldir=Template.dir~
14616 rm -rf $tpldir~
14617 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14618 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14619 old_archive_cmds_CXX='tpldir=Template.dir~
14620 rm -rf $tpldir~
14621 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14622 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14623 $RANLIB $oldlib'
14624 archive_cmds_CXX='tpldir=Template.dir~
14625 rm -rf $tpldir~
14626 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14627 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14628 archive_expsym_cmds_CXX='tpldir=Template.dir~
14629 rm -rf $tpldir~
14630 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14631 $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'
14633 *) # Version 6 and above use weak symbols
14634 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14635 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'
14637 esac
14639 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14640 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14641 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'
14643 cxx*)
14644 # Compaq C++
14645 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14646 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14648 runpath_var=LD_RUN_PATH
14649 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14650 hardcode_libdir_separator_CXX=:
14652 # Commands to make compiler produce verbose output that lists
14653 # what "hidden" libraries, object files and flags are used when
14654 # linking a shared library.
14656 # There doesn't appear to be a way to prevent this compiler from
14657 # explicitly linking system object files so we need to strip them
14658 # from the output so that they don't get included in the library
14659 # dependencies.
14660 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'
14662 xl* | mpixl* | bgxl*)
14663 # IBM XL 8.0 on PPC, with GNU ld
14664 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14665 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14666 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14667 if test "x$supports_anon_versioning" = xyes; then
14668 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14669 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14670 echo "local: *; };" >> $output_objdir/$libname.ver~
14671 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14675 case `$CC -V 2>&1 | sed 5q` in
14676 *Sun\ C*)
14677 # Sun C++ 5.9
14678 no_undefined_flag_CXX=' -zdefs'
14679 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14680 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'
14681 hardcode_libdir_flag_spec_CXX='-R$libdir'
14682 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'
14683 compiler_needs_object_CXX=yes
14685 # Not sure whether something based on
14686 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14687 # would be better.
14688 output_verbose_link_cmd='func_echo_all'
14690 # Archives containing C++ object files must be created using
14691 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14692 # necessary to make sure instantiated templates are included
14693 # in the archive.
14694 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14696 esac
14698 esac
14701 lynxos*)
14702 # FIXME: insert proper C++ library support
14703 ld_shlibs_CXX=no
14706 m88k*)
14707 # FIXME: insert proper C++ library support
14708 ld_shlibs_CXX=no
14711 mvs*)
14712 case $cc_basename in
14713 cxx*)
14714 # FIXME: insert proper C++ library support
14715 ld_shlibs_CXX=no
14718 # FIXME: insert proper C++ library support
14719 ld_shlibs_CXX=no
14721 esac
14724 netbsd*)
14725 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14726 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14727 wlarc=
14728 hardcode_libdir_flag_spec_CXX='-R$libdir'
14729 hardcode_direct_CXX=yes
14730 hardcode_shlibpath_var_CXX=no
14732 # Workaround some broken pre-1.5 toolchains
14733 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14736 *nto* | *qnx*)
14737 ld_shlibs_CXX=yes
14740 openbsd2*)
14741 # C++ shared libraries are fairly broken
14742 ld_shlibs_CXX=no
14745 openbsd*)
14746 if test -f /usr/libexec/ld.so; then
14747 hardcode_direct_CXX=yes
14748 hardcode_shlibpath_var_CXX=no
14749 hardcode_direct_absolute_CXX=yes
14750 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14751 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14752 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14753 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14754 export_dynamic_flag_spec_CXX='${wl}-E'
14755 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14757 output_verbose_link_cmd=func_echo_all
14758 else
14759 ld_shlibs_CXX=no
14763 osf3* | osf4* | osf5*)
14764 case $cc_basename in
14765 KCC*)
14766 # Kuck and Associates, Inc. (KAI) C++ Compiler
14768 # KCC will only create a shared library if the output file
14769 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14770 # to its proper name (with version) after linking.
14771 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'
14773 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14774 hardcode_libdir_separator_CXX=:
14776 # Archives containing C++ object files must be created using
14777 # the KAI C++ compiler.
14778 case $host in
14779 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14780 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14781 esac
14783 RCC*)
14784 # Rational C++ 2.4.1
14785 # FIXME: insert proper C++ library support
14786 ld_shlibs_CXX=no
14788 cxx*)
14789 case $host in
14790 osf3*)
14791 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14792 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'
14793 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14796 allow_undefined_flag_CXX=' -expect_unresolved \*'
14797 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'
14798 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14799 echo "-hidden">> $lib.exp~
14800 $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~
14801 $RM $lib.exp'
14802 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14804 esac
14806 hardcode_libdir_separator_CXX=:
14808 # Commands to make compiler produce verbose output that lists
14809 # what "hidden" libraries, object files and flags are used when
14810 # linking a shared library.
14812 # There doesn't appear to be a way to prevent this compiler from
14813 # explicitly linking system object files so we need to strip them
14814 # from the output so that they don't get included in the library
14815 # dependencies.
14816 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"'
14819 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14820 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14821 case $host in
14822 osf3*)
14823 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'
14826 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'
14828 esac
14830 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14831 hardcode_libdir_separator_CXX=:
14833 # Commands to make compiler produce verbose output that lists
14834 # what "hidden" libraries, object files and flags are used when
14835 # linking a shared library.
14836 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14838 else
14839 # FIXME: insert proper C++ library support
14840 ld_shlibs_CXX=no
14843 esac
14846 psos*)
14847 # FIXME: insert proper C++ library support
14848 ld_shlibs_CXX=no
14851 sunos4*)
14852 case $cc_basename in
14853 CC*)
14854 # Sun C++ 4.x
14855 # FIXME: insert proper C++ library support
14856 ld_shlibs_CXX=no
14858 lcc*)
14859 # Lucid
14860 # FIXME: insert proper C++ library support
14861 ld_shlibs_CXX=no
14864 # FIXME: insert proper C++ library support
14865 ld_shlibs_CXX=no
14867 esac
14870 solaris*)
14871 case $cc_basename in
14872 CC*)
14873 # Sun C++ 4.2, 5.x and Centerline C++
14874 archive_cmds_need_lc_CXX=yes
14875 no_undefined_flag_CXX=' -zdefs'
14876 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14877 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14878 $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'
14880 hardcode_libdir_flag_spec_CXX='-R$libdir'
14881 hardcode_shlibpath_var_CXX=no
14882 case $host_os in
14883 solaris2.[0-5] | solaris2.[0-5].*) ;;
14885 # The compiler driver will combine and reorder linker options,
14886 # but understands `-z linker_flag'.
14887 # Supported since Solaris 2.6 (maybe 2.5.1?)
14888 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14890 esac
14891 link_all_deplibs_CXX=yes
14893 output_verbose_link_cmd='func_echo_all'
14895 # Archives containing C++ object files must be created using
14896 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14897 # necessary to make sure instantiated templates are included
14898 # in the archive.
14899 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14901 gcx*)
14902 # Green Hills C++ Compiler
14903 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14905 # The C++ compiler must be used to create the archive.
14906 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14909 # GNU C++ compiler with Solaris linker
14910 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14911 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14912 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14913 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14914 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14915 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14917 # Commands to make compiler produce verbose output that lists
14918 # what "hidden" libraries, object files and flags are used when
14919 # linking a shared library.
14920 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14921 else
14922 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14923 # platform.
14924 archive_cmds_CXX='$CC -G -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 -G -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 -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14934 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14935 case $host_os in
14936 solaris2.[0-5] | solaris2.[0-5].*) ;;
14938 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14940 esac
14943 esac
14946 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14947 no_undefined_flag_CXX='${wl}-z,text'
14948 archive_cmds_need_lc_CXX=no
14949 hardcode_shlibpath_var_CXX=no
14950 runpath_var='LD_RUN_PATH'
14952 case $cc_basename in
14953 CC*)
14954 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14955 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14958 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14959 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14961 esac
14964 sysv5* | sco3.2v5* | sco5v6*)
14965 # Note: We can NOT use -z defs as we might desire, because we do not
14966 # link with -lc, and that would cause any symbols used from libc to
14967 # always be unresolved, which means just about no library would
14968 # ever link correctly. If we're not using GNU ld we use -z text
14969 # though, which does catch some bad symbols but isn't as heavy-handed
14970 # as -z defs.
14971 no_undefined_flag_CXX='${wl}-z,text'
14972 allow_undefined_flag_CXX='${wl}-z,nodefs'
14973 archive_cmds_need_lc_CXX=no
14974 hardcode_shlibpath_var_CXX=no
14975 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14976 hardcode_libdir_separator_CXX=':'
14977 link_all_deplibs_CXX=yes
14978 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14979 runpath_var='LD_RUN_PATH'
14981 case $cc_basename in
14982 CC*)
14983 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14984 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14985 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14986 '"$old_archive_cmds_CXX"
14987 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14988 '"$reload_cmds_CXX"
14991 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14992 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14994 esac
14997 tandem*)
14998 case $cc_basename in
14999 NCC*)
15000 # NonStop-UX NCC 3.20
15001 # FIXME: insert proper C++ library support
15002 ld_shlibs_CXX=no
15005 # FIXME: insert proper C++ library support
15006 ld_shlibs_CXX=no
15008 esac
15011 vxworks*)
15012 # FIXME: insert proper C++ library support
15013 ld_shlibs_CXX=no
15017 # FIXME: insert proper C++ library support
15018 ld_shlibs_CXX=no
15020 esac
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15023 $as_echo "$ld_shlibs_CXX" >&6; }
15024 test "$ld_shlibs_CXX" = no && can_build_shared=no
15026 GCC_CXX="$GXX"
15027 LD_CXX="$LD"
15029 ## CAVEAT EMPTOR:
15030 ## There is no encapsulation within the following macros, do not change
15031 ## the running order or otherwise move them around unless you know exactly
15032 ## what you are doing...
15033 # Dependencies to place before and after the object being linked:
15034 predep_objects_CXX=
15035 postdep_objects_CXX=
15036 predeps_CXX=
15037 postdeps_CXX=
15038 compiler_lib_search_path_CXX=
15040 cat > conftest.$ac_ext <<_LT_EOF
15041 class Foo
15043 public:
15044 Foo (void) { a = 0; }
15045 private:
15046 int a;
15048 _LT_EOF
15050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15051 (eval $ac_compile) 2>&5
15052 ac_status=$?
15053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15054 test $ac_status = 0; }; then
15055 # Parse the compiler output and extract the necessary
15056 # objects, libraries and library flags.
15058 # Sentinel used to keep track of whether or not we are before
15059 # the conftest object file.
15060 pre_test_object_deps_done=no
15062 for p in `eval "$output_verbose_link_cmd"`; do
15063 case $p in
15065 -L* | -R* | -l*)
15066 # Some compilers place space between "-{L,R}" and the path.
15067 # Remove the space.
15068 if test $p = "-L" ||
15069 test $p = "-R"; then
15070 prev=$p
15071 continue
15072 else
15073 prev=
15076 if test "$pre_test_object_deps_done" = no; then
15077 case $p in
15078 -L* | -R*)
15079 # Internal compiler library paths should come after those
15080 # provided the user. The postdeps already come after the
15081 # user supplied libs so there is no need to process them.
15082 if test -z "$compiler_lib_search_path_CXX"; then
15083 compiler_lib_search_path_CXX="${prev}${p}"
15084 else
15085 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15088 # The "-l" case would never come before the object being
15089 # linked, so don't bother handling this case.
15090 esac
15091 else
15092 if test -z "$postdeps_CXX"; then
15093 postdeps_CXX="${prev}${p}"
15094 else
15095 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15100 *.$objext)
15101 # This assumes that the test object file only shows up
15102 # once in the compiler output.
15103 if test "$p" = "conftest.$objext"; then
15104 pre_test_object_deps_done=yes
15105 continue
15108 if test "$pre_test_object_deps_done" = no; then
15109 if test -z "$predep_objects_CXX"; then
15110 predep_objects_CXX="$p"
15111 else
15112 predep_objects_CXX="$predep_objects_CXX $p"
15114 else
15115 if test -z "$postdep_objects_CXX"; then
15116 postdep_objects_CXX="$p"
15117 else
15118 postdep_objects_CXX="$postdep_objects_CXX $p"
15123 *) ;; # Ignore the rest.
15125 esac
15126 done
15128 # Clean up.
15129 rm -f a.out a.exe
15130 else
15131 echo "libtool.m4: error: problem compiling CXX test program"
15134 $RM -f confest.$objext
15136 # PORTME: override above test on systems where it is broken
15137 case $host_os in
15138 interix[3-9]*)
15139 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15140 # hack all around it, let's just trust "g++" to DTRT.
15141 predep_objects_CXX=
15142 postdep_objects_CXX=
15143 postdeps_CXX=
15146 linux*)
15147 case `$CC -V 2>&1 | sed 5q` in
15148 *Sun\ C*)
15149 # Sun C++ 5.9
15151 # The more standards-conforming stlport4 library is
15152 # incompatible with the Cstd library. Avoid specifying
15153 # it if it's in CXXFLAGS. Ignore libCrun as
15154 # -library=stlport4 depends on it.
15155 case " $CXX $CXXFLAGS " in
15156 *" -library=stlport4 "*)
15157 solaris_use_stlport4=yes
15159 esac
15161 if test "$solaris_use_stlport4" != yes; then
15162 postdeps_CXX='-library=Cstd -library=Crun'
15165 esac
15168 solaris*)
15169 case $cc_basename in
15170 CC*)
15171 # The more standards-conforming stlport4 library is
15172 # incompatible with the Cstd library. Avoid specifying
15173 # it if it's in CXXFLAGS. Ignore libCrun as
15174 # -library=stlport4 depends on it.
15175 case " $CXX $CXXFLAGS " in
15176 *" -library=stlport4 "*)
15177 solaris_use_stlport4=yes
15179 esac
15181 # Adding this requires a known-good setup of shared libraries for
15182 # Sun compiler versions before 5.6, else PIC objects from an old
15183 # archive will be linked into the output, leading to subtle bugs.
15184 if test "$solaris_use_stlport4" != yes; then
15185 postdeps_CXX='-library=Cstd -library=Crun'
15188 esac
15190 esac
15193 case " $postdeps_CXX " in
15194 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15195 esac
15196 compiler_lib_search_dirs_CXX=
15197 if test -n "${compiler_lib_search_path_CXX}"; then
15198 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15231 lt_prog_compiler_wl_CXX=
15232 lt_prog_compiler_pic_CXX=
15233 lt_prog_compiler_static_CXX=
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15236 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15238 # C++ specific cases for pic, static, wl, etc.
15239 if test "$GXX" = yes; then
15240 lt_prog_compiler_wl_CXX='-Wl,'
15241 lt_prog_compiler_static_CXX='-static'
15243 case $host_os in
15244 aix*)
15245 # All AIX code is PIC.
15246 if test "$host_cpu" = ia64; then
15247 # AIX 5 now supports IA64 processor
15248 lt_prog_compiler_static_CXX='-Bstatic'
15252 amigaos*)
15253 case $host_cpu in
15254 powerpc)
15255 # see comment about AmigaOS4 .so support
15256 lt_prog_compiler_pic_CXX='-fPIC'
15258 m68k)
15259 # FIXME: we need at least 68020 code to build shared libraries, but
15260 # adding the `-m68020' flag to GCC prevents building anything better,
15261 # like `-m68040'.
15262 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15264 esac
15267 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15268 # PIC is the default for these OSes.
15270 mingw* | cygwin* | os2* | pw32* | cegcc*)
15271 # This hack is so that the source file can tell whether it is being
15272 # built for inclusion in a dll (and should export symbols for example).
15273 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15274 # (--disable-auto-import) libraries
15275 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15277 darwin* | rhapsody*)
15278 # PIC is the default on this platform
15279 # Common symbols not allowed in MH_DYLIB files
15280 lt_prog_compiler_pic_CXX='-fno-common'
15282 *djgpp*)
15283 # DJGPP does not support shared libraries at all
15284 lt_prog_compiler_pic_CXX=
15286 haiku*)
15287 # PIC is the default for Haiku.
15288 # The "-static" flag exists, but is broken.
15289 lt_prog_compiler_static_CXX=
15291 interix[3-9]*)
15292 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15293 # Instead, we relocate shared libraries at runtime.
15295 sysv4*MP*)
15296 if test -d /usr/nec; then
15297 lt_prog_compiler_pic_CXX=-Kconform_pic
15300 hpux*)
15301 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15302 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15303 # sets the default TLS model and affects inlining.
15304 case $host_cpu in
15305 hppa*64*)
15308 lt_prog_compiler_pic_CXX='-fPIC'
15310 esac
15312 *qnx* | *nto*)
15313 # QNX uses GNU C++, but need to define -shared option too, otherwise
15314 # it will coredump.
15315 lt_prog_compiler_pic_CXX='-fPIC -shared'
15318 lt_prog_compiler_pic_CXX='-fPIC'
15320 esac
15321 else
15322 case $host_os in
15323 aix[4-9]*)
15324 # All AIX code is PIC.
15325 if test "$host_cpu" = ia64; then
15326 # AIX 5 now supports IA64 processor
15327 lt_prog_compiler_static_CXX='-Bstatic'
15328 else
15329 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15332 chorus*)
15333 case $cc_basename in
15334 cxch68*)
15335 # Green Hills C++ Compiler
15336 # _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"
15338 esac
15340 dgux*)
15341 case $cc_basename in
15342 ec++*)
15343 lt_prog_compiler_pic_CXX='-KPIC'
15345 ghcx*)
15346 # Green Hills C++ Compiler
15347 lt_prog_compiler_pic_CXX='-pic'
15351 esac
15353 freebsd* | dragonfly*)
15354 # FreeBSD uses GNU C++
15356 hpux9* | hpux10* | hpux11*)
15357 case $cc_basename in
15358 CC*)
15359 lt_prog_compiler_wl_CXX='-Wl,'
15360 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15361 if test "$host_cpu" != ia64; then
15362 lt_prog_compiler_pic_CXX='+Z'
15365 aCC*)
15366 lt_prog_compiler_wl_CXX='-Wl,'
15367 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15368 case $host_cpu in
15369 hppa*64*|ia64*)
15370 # +Z the default
15373 lt_prog_compiler_pic_CXX='+Z'
15375 esac
15379 esac
15381 interix*)
15382 # This is c89, which is MS Visual C++ (no shared libs)
15383 # Anyone wants to do a port?
15385 irix5* | irix6* | nonstopux*)
15386 case $cc_basename in
15387 CC*)
15388 lt_prog_compiler_wl_CXX='-Wl,'
15389 lt_prog_compiler_static_CXX='-non_shared'
15390 # CC pic flag -KPIC is the default.
15394 esac
15396 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15397 case $cc_basename in
15398 KCC*)
15399 # KAI C++ Compiler
15400 lt_prog_compiler_wl_CXX='--backend -Wl,'
15401 lt_prog_compiler_pic_CXX='-fPIC'
15403 ecpc* )
15404 # old Intel C++ for x86_64 which still supported -KPIC.
15405 lt_prog_compiler_wl_CXX='-Wl,'
15406 lt_prog_compiler_pic_CXX='-KPIC'
15407 lt_prog_compiler_static_CXX='-static'
15409 icpc* )
15410 # Intel C++, used to be incompatible with GCC.
15411 # ICC 10 doesn't accept -KPIC any more.
15412 lt_prog_compiler_wl_CXX='-Wl,'
15413 lt_prog_compiler_pic_CXX='-fPIC'
15414 lt_prog_compiler_static_CXX='-static'
15416 pgCC* | pgcpp*)
15417 # Portland Group C++ compiler
15418 lt_prog_compiler_wl_CXX='-Wl,'
15419 lt_prog_compiler_pic_CXX='-fpic'
15420 lt_prog_compiler_static_CXX='-Bstatic'
15422 cxx*)
15423 # Compaq C++
15424 # Make sure the PIC flag is empty. It appears that all Alpha
15425 # Linux and Compaq Tru64 Unix objects are PIC.
15426 lt_prog_compiler_pic_CXX=
15427 lt_prog_compiler_static_CXX='-non_shared'
15429 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15430 # IBM XL 8.0, 9.0 on PPC and BlueGene
15431 lt_prog_compiler_wl_CXX='-Wl,'
15432 lt_prog_compiler_pic_CXX='-qpic'
15433 lt_prog_compiler_static_CXX='-qstaticlink'
15436 case `$CC -V 2>&1 | sed 5q` in
15437 *Sun\ C*)
15438 # Sun C++ 5.9
15439 lt_prog_compiler_pic_CXX='-KPIC'
15440 lt_prog_compiler_static_CXX='-Bstatic'
15441 lt_prog_compiler_wl_CXX='-Qoption ld '
15443 esac
15445 esac
15447 lynxos*)
15449 m88k*)
15451 mvs*)
15452 case $cc_basename in
15453 cxx*)
15454 lt_prog_compiler_pic_CXX='-W c,exportall'
15458 esac
15460 netbsd*)
15462 *qnx* | *nto*)
15463 # QNX uses GNU C++, but need to define -shared option too, otherwise
15464 # it will coredump.
15465 lt_prog_compiler_pic_CXX='-fPIC -shared'
15467 osf3* | osf4* | osf5*)
15468 case $cc_basename in
15469 KCC*)
15470 lt_prog_compiler_wl_CXX='--backend -Wl,'
15472 RCC*)
15473 # Rational C++ 2.4.1
15474 lt_prog_compiler_pic_CXX='-pic'
15476 cxx*)
15477 # Digital/Compaq C++
15478 lt_prog_compiler_wl_CXX='-Wl,'
15479 # Make sure the PIC flag is empty. It appears that all Alpha
15480 # Linux and Compaq Tru64 Unix objects are PIC.
15481 lt_prog_compiler_pic_CXX=
15482 lt_prog_compiler_static_CXX='-non_shared'
15486 esac
15488 psos*)
15490 solaris*)
15491 case $cc_basename in
15492 CC*)
15493 # Sun C++ 4.2, 5.x and Centerline C++
15494 lt_prog_compiler_pic_CXX='-KPIC'
15495 lt_prog_compiler_static_CXX='-Bstatic'
15496 lt_prog_compiler_wl_CXX='-Qoption ld '
15498 gcx*)
15499 # Green Hills C++ Compiler
15500 lt_prog_compiler_pic_CXX='-PIC'
15504 esac
15506 sunos4*)
15507 case $cc_basename in
15508 CC*)
15509 # Sun C++ 4.x
15510 lt_prog_compiler_pic_CXX='-pic'
15511 lt_prog_compiler_static_CXX='-Bstatic'
15513 lcc*)
15514 # Lucid
15515 lt_prog_compiler_pic_CXX='-pic'
15519 esac
15521 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15522 case $cc_basename in
15523 CC*)
15524 lt_prog_compiler_wl_CXX='-Wl,'
15525 lt_prog_compiler_pic_CXX='-KPIC'
15526 lt_prog_compiler_static_CXX='-Bstatic'
15528 esac
15530 tandem*)
15531 case $cc_basename in
15532 NCC*)
15533 # NonStop-UX NCC 3.20
15534 lt_prog_compiler_pic_CXX='-KPIC'
15538 esac
15540 vxworks*)
15543 lt_prog_compiler_can_build_shared_CXX=no
15545 esac
15548 case $host_os in
15549 # For platforms which do not support PIC, -DPIC is meaningless:
15550 *djgpp*)
15551 lt_prog_compiler_pic_CXX=
15554 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15556 esac
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15558 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15563 # Check to make sure the PIC flag actually works.
15565 if test -n "$lt_prog_compiler_pic_CXX"; then
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15567 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15568 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15569 $as_echo_n "(cached) " >&6
15570 else
15571 lt_cv_prog_compiler_pic_works_CXX=no
15572 ac_outfile=conftest.$ac_objext
15573 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15574 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15575 # Insert the option either (1) after the last *FLAGS variable, or
15576 # (2) before a word containing "conftest.", or (3) at the end.
15577 # Note that $ac_compile itself does not contain backslashes and begins
15578 # with a dollar sign (not a hyphen), so the echo should work correctly.
15579 # The option is referenced via a variable to avoid confusing sed.
15580 lt_compile=`echo "$ac_compile" | $SED \
15581 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15582 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15583 -e 's:$: $lt_compiler_flag:'`
15584 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15585 (eval "$lt_compile" 2>conftest.err)
15586 ac_status=$?
15587 cat conftest.err >&5
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 if (exit $ac_status) && test -s "$ac_outfile"; then
15590 # The compiler can only warn and ignore the option if not recognized
15591 # So say no if there are warnings other than the usual output.
15592 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15593 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15594 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15595 lt_cv_prog_compiler_pic_works_CXX=yes
15598 $RM conftest*
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15602 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15604 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15605 case $lt_prog_compiler_pic_CXX in
15606 "" | " "*) ;;
15607 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15608 esac
15609 else
15610 lt_prog_compiler_pic_CXX=
15611 lt_prog_compiler_can_build_shared_CXX=no
15619 # Check to make sure the static flag actually works.
15621 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15623 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15624 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15625 $as_echo_n "(cached) " >&6
15626 else
15627 lt_cv_prog_compiler_static_works_CXX=no
15628 save_LDFLAGS="$LDFLAGS"
15629 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15630 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15631 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15632 # The linker can only warn and ignore the option if not recognized
15633 # So say no if there are warnings
15634 if test -s conftest.err; then
15635 # Append any errors to the config.log.
15636 cat conftest.err 1>&5
15637 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15638 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15639 if diff conftest.exp conftest.er2 >/dev/null; then
15640 lt_cv_prog_compiler_static_works_CXX=yes
15642 else
15643 lt_cv_prog_compiler_static_works_CXX=yes
15646 $RM -r conftest*
15647 LDFLAGS="$save_LDFLAGS"
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15651 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15653 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15655 else
15656 lt_prog_compiler_static_CXX=
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15663 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15664 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15665 $as_echo_n "(cached) " >&6
15666 else
15667 lt_cv_prog_compiler_c_o_CXX=no
15668 $RM -r conftest 2>/dev/null
15669 mkdir conftest
15670 cd conftest
15671 mkdir out
15672 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15674 lt_compiler_flag="-o out/conftest2.$ac_objext"
15675 # Insert the option either (1) after the last *FLAGS variable, or
15676 # (2) before a word containing "conftest.", or (3) at the end.
15677 # Note that $ac_compile itself does not contain backslashes and begins
15678 # with a dollar sign (not a hyphen), so the echo should work correctly.
15679 lt_compile=`echo "$ac_compile" | $SED \
15680 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15681 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15682 -e 's:$: $lt_compiler_flag:'`
15683 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15684 (eval "$lt_compile" 2>out/conftest.err)
15685 ac_status=$?
15686 cat out/conftest.err >&5
15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15689 then
15690 # The compiler can only warn and ignore the option if not recognized
15691 # So say no if there are warnings
15692 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15693 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15694 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15695 lt_cv_prog_compiler_c_o_CXX=yes
15698 chmod u+w . 2>&5
15699 $RM conftest*
15700 # SGI C++ compiler will create directory out/ii_files/ for
15701 # template instantiation
15702 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15703 $RM out/* && rmdir out
15704 cd ..
15705 $RM -r conftest
15706 $RM conftest*
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15710 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15715 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15716 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15717 $as_echo_n "(cached) " >&6
15718 else
15719 lt_cv_prog_compiler_c_o_CXX=no
15720 $RM -r conftest 2>/dev/null
15721 mkdir conftest
15722 cd conftest
15723 mkdir out
15724 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15726 lt_compiler_flag="-o out/conftest2.$ac_objext"
15727 # Insert the option either (1) after the last *FLAGS variable, or
15728 # (2) before a word containing "conftest.", or (3) at the end.
15729 # Note that $ac_compile itself does not contain backslashes and begins
15730 # with a dollar sign (not a hyphen), so the echo should work correctly.
15731 lt_compile=`echo "$ac_compile" | $SED \
15732 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15733 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15734 -e 's:$: $lt_compiler_flag:'`
15735 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15736 (eval "$lt_compile" 2>out/conftest.err)
15737 ac_status=$?
15738 cat out/conftest.err >&5
15739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15741 then
15742 # The compiler can only warn and ignore the option if not recognized
15743 # So say no if there are warnings
15744 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15745 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15746 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15747 lt_cv_prog_compiler_c_o_CXX=yes
15750 chmod u+w . 2>&5
15751 $RM conftest*
15752 # SGI C++ compiler will create directory out/ii_files/ for
15753 # template instantiation
15754 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15755 $RM out/* && rmdir out
15756 cd ..
15757 $RM -r conftest
15758 $RM conftest*
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15762 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15767 hard_links="nottested"
15768 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15769 # do not overwrite the value of need_locks provided by the user
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15771 $as_echo_n "checking if we can lock with hard links... " >&6; }
15772 hard_links=yes
15773 $RM conftest*
15774 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15775 touch conftest.a
15776 ln conftest.a conftest.b 2>&5 || hard_links=no
15777 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15779 $as_echo "$hard_links" >&6; }
15780 if test "$hard_links" = no; then
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15782 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15783 need_locks=warn
15785 else
15786 need_locks=no
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15792 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15794 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15795 case $host_os in
15796 aix[4-9]*)
15797 # If we're using GNU nm, then we don't want the "-C" option.
15798 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15799 # Also, AIX nm treats weak defined symbols like other global defined
15800 # symbols, whereas GNU nm marks them as "W".
15801 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15802 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'
15803 else
15804 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'
15807 pw32*)
15808 export_symbols_cmds_CXX="$ltdll_cmds"
15810 cygwin* | mingw* | cegcc*)
15811 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'
15814 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15816 esac
15817 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15820 $as_echo "$ld_shlibs_CXX" >&6; }
15821 test "$ld_shlibs_CXX" = no && can_build_shared=no
15823 with_gnu_ld_CXX=$with_gnu_ld
15831 # Do we need to explicitly link libc?
15833 case "x$archive_cmds_need_lc_CXX" in
15834 x|xyes)
15835 # Assume -lc should be added
15836 archive_cmds_need_lc_CXX=yes
15838 if test "$enable_shared" = yes && test "$GCC" = yes; then
15839 case $archive_cmds_CXX in
15840 *'~'*)
15841 # FIXME: we may have to deal with multi-command sequences.
15843 '$CC '*)
15844 # Test whether the compiler implicitly links with -lc since on some
15845 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15846 # to ld, don't add -lc before -lgcc.
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15848 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15849 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15850 $as_echo_n "(cached) " >&6
15851 else
15852 $RM conftest*
15853 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15855 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15856 (eval $ac_compile) 2>&5
15857 ac_status=$?
15858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15859 test $ac_status = 0; } 2>conftest.err; then
15860 soname=conftest
15861 lib=conftest
15862 libobjs=conftest.$ac_objext
15863 deplibs=
15864 wl=$lt_prog_compiler_wl_CXX
15865 pic_flag=$lt_prog_compiler_pic_CXX
15866 compiler_flags=-v
15867 linker_flags=-v
15868 verstring=
15869 output_objdir=.
15870 libname=conftest
15871 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15872 allow_undefined_flag_CXX=
15873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15874 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15875 ac_status=$?
15876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15877 test $ac_status = 0; }
15878 then
15879 lt_cv_archive_cmds_need_lc_CXX=no
15880 else
15881 lt_cv_archive_cmds_need_lc_CXX=yes
15883 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15884 else
15885 cat conftest.err 1>&5
15887 $RM conftest*
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15891 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15892 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15894 esac
15897 esac
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15963 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15965 library_names_spec=
15966 libname_spec='lib$name'
15967 soname_spec=
15968 shrext_cmds=".so"
15969 postinstall_cmds=
15970 postuninstall_cmds=
15971 finish_cmds=
15972 finish_eval=
15973 shlibpath_var=
15974 shlibpath_overrides_runpath=unknown
15975 version_type=none
15976 dynamic_linker="$host_os ld.so"
15977 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15978 need_lib_prefix=unknown
15979 hardcode_into_libs=no
15981 # when you set need_version to no, make sure it does not cause -set_version
15982 # flags to be left without arguments
15983 need_version=unknown
15985 case $host_os in
15986 aix3*)
15987 version_type=linux
15988 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15989 shlibpath_var=LIBPATH
15991 # AIX 3 has no versioning support, so we append a major version to the name.
15992 soname_spec='${libname}${release}${shared_ext}$major'
15995 aix[4-9]*)
15996 version_type=linux
15997 need_lib_prefix=no
15998 need_version=no
15999 hardcode_into_libs=yes
16000 if test "$host_cpu" = ia64; then
16001 # AIX 5 supports IA64
16002 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16003 shlibpath_var=LD_LIBRARY_PATH
16004 else
16005 # With GCC up to 2.95.x, collect2 would create an import file
16006 # for dependence libraries. The import file would start with
16007 # the line `#! .'. This would cause the generated library to
16008 # depend on `.', always an invalid library. This was fixed in
16009 # development snapshots of GCC prior to 3.0.
16010 case $host_os in
16011 aix4 | aix4.[01] | aix4.[01].*)
16012 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16013 echo ' yes '
16014 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16016 else
16017 can_build_shared=no
16020 esac
16021 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16022 # soname into executable. Probably we can add versioning support to
16023 # collect2, so additional links can be useful in future.
16024 if test "$aix_use_runtimelinking" = yes; then
16025 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16026 # instead of lib<name>.a to let people know that these are not
16027 # typical AIX shared libraries.
16028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16029 else
16030 # We preserve .a as extension for shared libraries through AIX4.2
16031 # and later when we are not doing run time linking.
16032 library_names_spec='${libname}${release}.a $libname.a'
16033 soname_spec='${libname}${release}${shared_ext}$major'
16035 shlibpath_var=LIBPATH
16039 amigaos*)
16040 case $host_cpu in
16041 powerpc)
16042 # Since July 2007 AmigaOS4 officially supports .so libraries.
16043 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16046 m68k)
16047 library_names_spec='$libname.ixlibrary $libname.a'
16048 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16049 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'
16051 esac
16054 beos*)
16055 library_names_spec='${libname}${shared_ext}'
16056 dynamic_linker="$host_os ld.so"
16057 shlibpath_var=LIBRARY_PATH
16060 bsdi[45]*)
16061 version_type=linux
16062 need_version=no
16063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16064 soname_spec='${libname}${release}${shared_ext}$major'
16065 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16066 shlibpath_var=LD_LIBRARY_PATH
16067 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16068 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16069 # the default ld.so.conf also contains /usr/contrib/lib and
16070 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16071 # libtool to hard-code these into programs
16074 cygwin* | mingw* | pw32* | cegcc*)
16075 version_type=windows
16076 shrext_cmds=".dll"
16077 need_version=no
16078 need_lib_prefix=no
16080 case $GCC,$host_os in
16081 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16082 library_names_spec='$libname.dll.a'
16083 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16084 postinstall_cmds='base_file=`basename \${file}`~
16085 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16086 dldir=$destdir/`dirname \$dlpath`~
16087 test -d \$dldir || mkdir -p \$dldir~
16088 $install_prog $dir/$dlname \$dldir/$dlname~
16089 chmod a+x \$dldir/$dlname~
16090 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16091 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16093 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16094 dlpath=$dir/\$dldll~
16095 $RM \$dlpath'
16096 shlibpath_overrides_runpath=yes
16098 case $host_os in
16099 cygwin*)
16100 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16101 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16104 mingw* | cegcc*)
16105 # MinGW DLLs use traditional 'lib' prefix
16106 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16108 pw32*)
16109 # pw32 DLLs use 'pw' prefix rather than 'lib'
16110 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16112 esac
16116 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16118 esac
16119 dynamic_linker='Win32 ld.exe'
16120 # FIXME: first we should search . and the directory the executable is in
16121 shlibpath_var=PATH
16124 darwin* | rhapsody*)
16125 dynamic_linker="$host_os dyld"
16126 version_type=darwin
16127 need_lib_prefix=no
16128 need_version=no
16129 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16130 soname_spec='${libname}${release}${major}$shared_ext'
16131 shlibpath_overrides_runpath=yes
16132 shlibpath_var=DYLD_LIBRARY_PATH
16133 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16135 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16138 dgux*)
16139 version_type=linux
16140 need_lib_prefix=no
16141 need_version=no
16142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16143 soname_spec='${libname}${release}${shared_ext}$major'
16144 shlibpath_var=LD_LIBRARY_PATH
16147 freebsd1*)
16148 dynamic_linker=no
16151 freebsd* | dragonfly*)
16152 # DragonFly does not have aout. When/if they implement a new
16153 # versioning mechanism, adjust this.
16154 if test -x /usr/bin/objformat; then
16155 objformat=`/usr/bin/objformat`
16156 else
16157 case $host_os in
16158 freebsd[123]*) objformat=aout ;;
16159 *) objformat=elf ;;
16160 esac
16162 version_type=freebsd-$objformat
16163 case $version_type in
16164 freebsd-elf*)
16165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16166 need_version=no
16167 need_lib_prefix=no
16169 freebsd-*)
16170 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16171 need_version=yes
16173 esac
16174 shlibpath_var=LD_LIBRARY_PATH
16175 case $host_os in
16176 freebsd2*)
16177 shlibpath_overrides_runpath=yes
16179 freebsd3.[01]* | freebsdelf3.[01]*)
16180 shlibpath_overrides_runpath=yes
16181 hardcode_into_libs=yes
16183 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16184 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16185 shlibpath_overrides_runpath=no
16186 hardcode_into_libs=yes
16188 *) # from 4.6 on, and DragonFly
16189 shlibpath_overrides_runpath=yes
16190 hardcode_into_libs=yes
16192 esac
16195 gnu*)
16196 version_type=linux
16197 need_lib_prefix=no
16198 need_version=no
16199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16200 soname_spec='${libname}${release}${shared_ext}$major'
16201 shlibpath_var=LD_LIBRARY_PATH
16202 hardcode_into_libs=yes
16205 haiku*)
16206 version_type=linux
16207 need_lib_prefix=no
16208 need_version=no
16209 dynamic_linker="$host_os runtime_loader"
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=LIBRARY_PATH
16213 shlibpath_overrides_runpath=yes
16214 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16215 hardcode_into_libs=yes
16218 hpux9* | hpux10* | hpux11*)
16219 # Give a soname corresponding to the major version so that dld.sl refuses to
16220 # link against other versions.
16221 version_type=sunos
16222 need_lib_prefix=no
16223 need_version=no
16224 case $host_cpu in
16225 ia64*)
16226 shrext_cmds='.so'
16227 hardcode_into_libs=yes
16228 dynamic_linker="$host_os dld.so"
16229 shlibpath_var=LD_LIBRARY_PATH
16230 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16232 soname_spec='${libname}${release}${shared_ext}$major'
16233 if test "X$HPUX_IA64_MODE" = X32; then
16234 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16235 else
16236 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16238 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16240 hppa*64*)
16241 shrext_cmds='.sl'
16242 hardcode_into_libs=yes
16243 dynamic_linker="$host_os dld.sl"
16244 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16245 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16247 soname_spec='${libname}${release}${shared_ext}$major'
16248 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16249 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16252 shrext_cmds='.sl'
16253 dynamic_linker="$host_os dld.sl"
16254 shlibpath_var=SHLIB_PATH
16255 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16257 soname_spec='${libname}${release}${shared_ext}$major'
16259 esac
16260 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16261 postinstall_cmds='chmod 555 $lib'
16262 # or fails outright, so override atomically:
16263 install_override_mode=555
16266 interix[3-9]*)
16267 version_type=linux
16268 need_lib_prefix=no
16269 need_version=no
16270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16271 soname_spec='${libname}${release}${shared_ext}$major'
16272 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16273 shlibpath_var=LD_LIBRARY_PATH
16274 shlibpath_overrides_runpath=no
16275 hardcode_into_libs=yes
16278 irix5* | irix6* | nonstopux*)
16279 case $host_os in
16280 nonstopux*) version_type=nonstopux ;;
16282 if test "$lt_cv_prog_gnu_ld" = yes; then
16283 version_type=linux
16284 else
16285 version_type=irix
16286 fi ;;
16287 esac
16288 need_lib_prefix=no
16289 need_version=no
16290 soname_spec='${libname}${release}${shared_ext}$major'
16291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16292 case $host_os in
16293 irix5* | nonstopux*)
16294 libsuff= shlibsuff=
16297 case $LD in # libtool.m4 will add one of these switches to LD
16298 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16299 libsuff= shlibsuff= libmagic=32-bit;;
16300 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16301 libsuff=32 shlibsuff=N32 libmagic=N32;;
16302 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16303 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16304 *) libsuff= shlibsuff= libmagic=never-match;;
16305 esac
16307 esac
16308 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16309 shlibpath_overrides_runpath=no
16310 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16311 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16312 hardcode_into_libs=yes
16315 # No shared lib support for Linux oldld, aout, or coff.
16316 linux*oldld* | linux*aout* | linux*coff*)
16317 dynamic_linker=no
16320 # This must be Linux ELF.
16321 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16322 version_type=linux
16323 need_lib_prefix=no
16324 need_version=no
16325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16326 soname_spec='${libname}${release}${shared_ext}$major'
16327 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16328 shlibpath_var=LD_LIBRARY_PATH
16329 shlibpath_overrides_runpath=no
16331 # Some binutils ld are patched to set DT_RUNPATH
16332 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16333 $as_echo_n "(cached) " >&6
16334 else
16335 lt_cv_shlibpath_overrides_runpath=no
16336 save_LDFLAGS=$LDFLAGS
16337 save_libdir=$libdir
16338 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16339 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16340 if test x$gcc_no_link = xyes; then
16341 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16344 /* end confdefs.h. */
16347 main ()
16351 return 0;
16353 _ACEOF
16354 if ac_fn_cxx_try_link "$LINENO"; then :
16355 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16356 lt_cv_shlibpath_overrides_runpath=yes
16359 rm -f core conftest.err conftest.$ac_objext \
16360 conftest$ac_exeext conftest.$ac_ext
16361 LDFLAGS=$save_LDFLAGS
16362 libdir=$save_libdir
16366 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16368 # This implies no fast_install, which is unacceptable.
16369 # Some rework will be needed to allow for fast_install
16370 # before this can be enabled.
16371 hardcode_into_libs=yes
16373 # Append ld.so.conf contents to the search path
16374 if test -f /etc/ld.so.conf; then
16375 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' ' '`
16376 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16379 # We used to test for /lib/ld.so.1 and disable shared libraries on
16380 # powerpc, because MkLinux only supported shared libraries with the
16381 # GNU dynamic linker. Since this was broken with cross compilers,
16382 # most powerpc-linux boxes support dynamic linking these days and
16383 # people can always --disable-shared, the test was removed, and we
16384 # assume the GNU/Linux dynamic linker is in use.
16385 dynamic_linker='GNU/Linux ld.so'
16388 netbsd*)
16389 version_type=sunos
16390 need_lib_prefix=no
16391 need_version=no
16392 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16394 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16395 dynamic_linker='NetBSD (a.out) ld.so'
16396 else
16397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16398 soname_spec='${libname}${release}${shared_ext}$major'
16399 dynamic_linker='NetBSD ld.elf_so'
16401 shlibpath_var=LD_LIBRARY_PATH
16402 shlibpath_overrides_runpath=yes
16403 hardcode_into_libs=yes
16406 newsos6)
16407 version_type=linux
16408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16409 shlibpath_var=LD_LIBRARY_PATH
16410 shlibpath_overrides_runpath=yes
16413 *nto* | *qnx*)
16414 version_type=qnx
16415 need_lib_prefix=no
16416 need_version=no
16417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16418 soname_spec='${libname}${release}${shared_ext}$major'
16419 shlibpath_var=LD_LIBRARY_PATH
16420 shlibpath_overrides_runpath=no
16421 hardcode_into_libs=yes
16422 dynamic_linker='ldqnx.so'
16425 openbsd*)
16426 version_type=sunos
16427 sys_lib_dlsearch_path_spec="/usr/lib"
16428 need_lib_prefix=no
16429 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16430 case $host_os in
16431 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16432 *) need_version=no ;;
16433 esac
16434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16436 shlibpath_var=LD_LIBRARY_PATH
16437 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16438 case $host_os in
16439 openbsd2.[89] | openbsd2.[89].*)
16440 shlibpath_overrides_runpath=no
16443 shlibpath_overrides_runpath=yes
16445 esac
16446 else
16447 shlibpath_overrides_runpath=yes
16451 os2*)
16452 libname_spec='$name'
16453 shrext_cmds=".dll"
16454 need_lib_prefix=no
16455 library_names_spec='$libname${shared_ext} $libname.a'
16456 dynamic_linker='OS/2 ld.exe'
16457 shlibpath_var=LIBPATH
16460 osf3* | osf4* | osf5*)
16461 version_type=osf
16462 need_lib_prefix=no
16463 need_version=no
16464 soname_spec='${libname}${release}${shared_ext}$major'
16465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16466 shlibpath_var=LD_LIBRARY_PATH
16467 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16468 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16471 rdos*)
16472 dynamic_linker=no
16475 solaris*)
16476 version_type=linux
16477 need_lib_prefix=no
16478 need_version=no
16479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16480 soname_spec='${libname}${release}${shared_ext}$major'
16481 shlibpath_var=LD_LIBRARY_PATH
16482 shlibpath_overrides_runpath=yes
16483 hardcode_into_libs=yes
16484 # ldd complains unless libraries are executable
16485 postinstall_cmds='chmod +x $lib'
16488 sunos4*)
16489 version_type=sunos
16490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16491 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16492 shlibpath_var=LD_LIBRARY_PATH
16493 shlibpath_overrides_runpath=yes
16494 if test "$with_gnu_ld" = yes; then
16495 need_lib_prefix=no
16497 need_version=yes
16500 sysv4 | sysv4.3*)
16501 version_type=linux
16502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16503 soname_spec='${libname}${release}${shared_ext}$major'
16504 shlibpath_var=LD_LIBRARY_PATH
16505 case $host_vendor in
16506 sni)
16507 shlibpath_overrides_runpath=no
16508 need_lib_prefix=no
16509 runpath_var=LD_RUN_PATH
16511 siemens)
16512 need_lib_prefix=no
16514 motorola)
16515 need_lib_prefix=no
16516 need_version=no
16517 shlibpath_overrides_runpath=no
16518 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16520 esac
16523 sysv4*MP*)
16524 if test -d /usr/nec ;then
16525 version_type=linux
16526 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16527 soname_spec='$libname${shared_ext}.$major'
16528 shlibpath_var=LD_LIBRARY_PATH
16532 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16533 version_type=freebsd-elf
16534 need_lib_prefix=no
16535 need_version=no
16536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16537 soname_spec='${libname}${release}${shared_ext}$major'
16538 shlibpath_var=LD_LIBRARY_PATH
16539 shlibpath_overrides_runpath=yes
16540 hardcode_into_libs=yes
16541 if test "$with_gnu_ld" = yes; then
16542 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16543 else
16544 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16545 case $host_os in
16546 sco3.2v5*)
16547 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16549 esac
16551 sys_lib_dlsearch_path_spec='/usr/lib'
16554 tpf*)
16555 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16556 version_type=linux
16557 need_lib_prefix=no
16558 need_version=no
16559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16560 shlibpath_var=LD_LIBRARY_PATH
16561 shlibpath_overrides_runpath=no
16562 hardcode_into_libs=yes
16565 uts4*)
16566 version_type=linux
16567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16568 soname_spec='${libname}${release}${shared_ext}$major'
16569 shlibpath_var=LD_LIBRARY_PATH
16573 dynamic_linker=no
16575 esac
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16577 $as_echo "$dynamic_linker" >&6; }
16578 test "$dynamic_linker" = no && can_build_shared=no
16580 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16581 if test "$GCC" = yes; then
16582 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16585 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16586 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16588 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16589 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16630 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16631 hardcode_action_CXX=
16632 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16633 test -n "$runpath_var_CXX" ||
16634 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16636 # We can hardcode non-existent directories.
16637 if test "$hardcode_direct_CXX" != no &&
16638 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16639 # have to relink, otherwise we might link with an installed library
16640 # when we should be linking with a yet-to-be-installed one
16641 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16642 test "$hardcode_minus_L_CXX" != no; then
16643 # Linking always hardcodes the temporary library directory.
16644 hardcode_action_CXX=relink
16645 else
16646 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16647 hardcode_action_CXX=immediate
16649 else
16650 # We cannot hardcode anything, or else we can only hardcode existing
16651 # directories.
16652 hardcode_action_CXX=unsupported
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16655 $as_echo "$hardcode_action_CXX" >&6; }
16657 if test "$hardcode_action_CXX" = relink ||
16658 test "$inherit_rpath_CXX" = yes; then
16659 # Fast installation is not supported
16660 enable_fast_install=no
16661 elif test "$shlibpath_overrides_runpath" = yes ||
16662 test "$enable_shared" = no; then
16663 # Fast installation is not necessary
16664 enable_fast_install=needless
16673 fi # test -n "$compiler"
16675 CC=$lt_save_CC
16676 LDCXX=$LD
16677 LD=$lt_save_LD
16678 GCC=$lt_save_GCC
16679 with_gnu_ld=$lt_save_with_gnu_ld
16680 lt_cv_path_LDCXX=$lt_cv_path_LD
16681 lt_cv_path_LD=$lt_save_path_LD
16682 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16683 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16684 fi # test "$_lt_caught_CXX_error" != yes
16686 ac_ext=c
16687 ac_cpp='$CPP $CPPFLAGS'
16688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16704 ac_config_commands="$ac_config_commands libtool"
16709 # Only expand once:
16713 if test -n "$ac_tool_prefix"; then
16714 for ac_prog in gcj
16716 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16717 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16719 $as_echo_n "checking for $ac_word... " >&6; }
16720 if test "${ac_cv_prog_GCJ+set}" = set; then :
16721 $as_echo_n "(cached) " >&6
16722 else
16723 if test -n "$GCJ"; then
16724 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16725 else
16726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16727 for as_dir in $PATH
16729 IFS=$as_save_IFS
16730 test -z "$as_dir" && as_dir=.
16731 for ac_exec_ext in '' $ac_executable_extensions; do
16732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16733 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
16734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16735 break 2
16737 done
16738 done
16739 IFS=$as_save_IFS
16743 GCJ=$ac_cv_prog_GCJ
16744 if test -n "$GCJ"; then
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16746 $as_echo "$GCJ" >&6; }
16747 else
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16749 $as_echo "no" >&6; }
16753 test -n "$GCJ" && break
16754 done
16756 if test -z "$GCJ"; then
16757 ac_ct_GCJ=$GCJ
16758 for ac_prog in gcj
16760 # Extract the first word of "$ac_prog", so it can be a program name with args.
16761 set dummy $ac_prog; ac_word=$2
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16763 $as_echo_n "checking for $ac_word... " >&6; }
16764 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
16765 $as_echo_n "(cached) " >&6
16766 else
16767 if test -n "$ac_ct_GCJ"; then
16768 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
16769 else
16770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16771 for as_dir in $PATH
16773 IFS=$as_save_IFS
16774 test -z "$as_dir" && as_dir=.
16775 for ac_exec_ext in '' $ac_executable_extensions; do
16776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16777 ac_cv_prog_ac_ct_GCJ="$ac_prog"
16778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16779 break 2
16781 done
16782 done
16783 IFS=$as_save_IFS
16787 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
16788 if test -n "$ac_ct_GCJ"; then
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
16790 $as_echo "$ac_ct_GCJ" >&6; }
16791 else
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16793 $as_echo "no" >&6; }
16797 test -n "$ac_ct_GCJ" && break
16798 done
16800 if test "x$ac_ct_GCJ" = x; then
16801 GCJ="gcj"
16802 else
16803 case $cross_compiling:$ac_tool_warned in
16804 yes:)
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16807 ac_tool_warned=yes ;;
16808 esac
16809 GCJ=$ac_ct_GCJ
16813 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
16814 if test "x${GCJFLAGS-unset}" = xunset; then
16815 GCJFLAGS="-g -O2"
16819 depcc="$GCJ" am_compiler_list='gcc3 gcc'
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16822 $as_echo_n "checking dependency style of $depcc... " >&6; }
16823 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16824 $as_echo_n "(cached) " >&6
16825 else
16826 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16827 # We make a subdir and do the tests there. Otherwise we can end up
16828 # making bogus files that we don't know about and never remove. For
16829 # instance it was reported that on HP-UX the gcc test will end up
16830 # making a dummy file named `D' -- because `-MD' means `put the output
16831 # in D'.
16832 mkdir conftest.dir
16833 # Copy depcomp to subdir because otherwise we won't find it if we're
16834 # using a relative directory.
16835 cp "$am_depcomp" conftest.dir
16836 cd conftest.dir
16837 # We will build objects and dependencies in a subdirectory because
16838 # it helps to detect inapplicable dependency modes. For instance
16839 # both Tru64's cc and ICC support -MD to output dependencies as a
16840 # side effect of compilation, but ICC will put the dependencies in
16841 # the current directory while Tru64 will put them in the object
16842 # directory.
16843 mkdir sub
16845 am_cv_GCJ_dependencies_compiler_type=none
16846 if test "$am_compiler_list" = ""; then
16847 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16849 am__universal=false
16852 for depmode in $am_compiler_list; do
16853 # Setup a source with many dependencies, because some compilers
16854 # like to wrap large dependency lists on column 80 (with \), and
16855 # we should not choose a depcomp mode which is confused by this.
16857 # We need to recreate these files for each test, as the compiler may
16858 # overwrite some of them when testing with obscure command lines.
16859 # This happens at least with the AIX C compiler.
16860 : > sub/conftest.c
16861 for i in 1 2 3 4 5 6; do
16862 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16863 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16864 # Solaris 8's {/usr,}/bin/sh.
16865 touch sub/conftst$i.h
16866 done
16867 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16869 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16870 # mode. It turns out that the SunPro C++ compiler does not properly
16871 # handle `-M -o', and we need to detect this. Also, some Intel
16872 # versions had trouble with output in subdirs
16873 am__obj=sub/conftest.${OBJEXT-o}
16874 am__minus_obj="-o $am__obj"
16875 case $depmode in
16876 gcc)
16877 # This depmode causes a compiler race in universal mode.
16878 test "$am__universal" = false || continue
16880 nosideeffect)
16881 # after this tag, mechanisms are not by side-effect, so they'll
16882 # only be used when explicitly requested
16883 if test "x$enable_dependency_tracking" = xyes; then
16884 continue
16885 else
16886 break
16889 msvisualcpp | msvcmsys)
16890 # This compiler won't grok `-c -o', but also, the minuso test has
16891 # not run yet. These depmodes are late enough in the game, and
16892 # so weak that their functioning should not be impacted.
16893 am__obj=conftest.${OBJEXT-o}
16894 am__minus_obj=
16896 none) break ;;
16897 esac
16898 if depmode=$depmode \
16899 source=sub/conftest.c object=$am__obj \
16900 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16901 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16902 >/dev/null 2>conftest.err &&
16903 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16904 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16905 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16906 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16907 # icc doesn't choke on unknown options, it will just issue warnings
16908 # or remarks (even with -Werror). So we grep stderr for any message
16909 # that says an option was ignored or not supported.
16910 # When given -MP, icc 7.0 and 7.1 complain thusly:
16911 # icc: Command line warning: ignoring option '-M'; no argument required
16912 # The diagnosis changed in icc 8.0:
16913 # icc: Command line remark: option '-MP' not supported
16914 if (grep 'ignoring option' conftest.err ||
16915 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16916 am_cv_GCJ_dependencies_compiler_type=$depmode
16917 break
16920 done
16922 cd ..
16923 rm -rf conftest.dir
16924 else
16925 am_cv_GCJ_dependencies_compiler_type=none
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16930 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
16931 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
16934 test "x$enable_dependency_tracking" != xno \
16935 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16936 am__fastdepGCJ_TRUE=
16937 am__fastdepGCJ_FALSE='#'
16938 else
16939 am__fastdepGCJ_TRUE='#'
16940 am__fastdepGCJ_FALSE=
16945 if test -n "$ac_tool_prefix"; then
16946 for ac_prog in gcj
16948 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16949 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16951 $as_echo_n "checking for $ac_word... " >&6; }
16952 if test "${ac_cv_prog_GCJ+set}" = set; then :
16953 $as_echo_n "(cached) " >&6
16954 else
16955 if test -n "$GCJ"; then
16956 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16957 else
16958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16959 for as_dir in $PATH
16961 IFS=$as_save_IFS
16962 test -z "$as_dir" && as_dir=.
16963 for ac_exec_ext in '' $ac_executable_extensions; do
16964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16965 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
16966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16967 break 2
16969 done
16970 done
16971 IFS=$as_save_IFS
16975 GCJ=$ac_cv_prog_GCJ
16976 if test -n "$GCJ"; then
16977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16978 $as_echo "$GCJ" >&6; }
16979 else
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16981 $as_echo "no" >&6; }
16985 test -n "$GCJ" && break
16986 done
16988 if test -z "$GCJ"; then
16989 ac_ct_GCJ=$GCJ
16990 for ac_prog in gcj
16992 # Extract the first word of "$ac_prog", so it can be a program name with args.
16993 set dummy $ac_prog; ac_word=$2
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16995 $as_echo_n "checking for $ac_word... " >&6; }
16996 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
16997 $as_echo_n "(cached) " >&6
16998 else
16999 if test -n "$ac_ct_GCJ"; then
17000 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
17001 else
17002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17003 for as_dir in $PATH
17005 IFS=$as_save_IFS
17006 test -z "$as_dir" && as_dir=.
17007 for ac_exec_ext in '' $ac_executable_extensions; do
17008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17009 ac_cv_prog_ac_ct_GCJ="$ac_prog"
17010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17011 break 2
17013 done
17014 done
17015 IFS=$as_save_IFS
17019 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
17020 if test -n "$ac_ct_GCJ"; then
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
17022 $as_echo "$ac_ct_GCJ" >&6; }
17023 else
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17025 $as_echo "no" >&6; }
17029 test -n "$ac_ct_GCJ" && break
17030 done
17032 if test "x$ac_ct_GCJ" = x; then
17033 GCJ="gcj"
17034 else
17035 case $cross_compiling:$ac_tool_warned in
17036 yes:)
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17039 ac_tool_warned=yes ;;
17040 esac
17041 GCJ=$ac_ct_GCJ
17045 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
17046 if test "x${GCJFLAGS-unset}" = xunset; then
17047 GCJFLAGS="-g -O2"
17051 depcc="$GCJ" am_compiler_list='gcc3 gcc'
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17054 $as_echo_n "checking dependency style of $depcc... " >&6; }
17055 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
17056 $as_echo_n "(cached) " >&6
17057 else
17058 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17059 # We make a subdir and do the tests there. Otherwise we can end up
17060 # making bogus files that we don't know about and never remove. For
17061 # instance it was reported that on HP-UX the gcc test will end up
17062 # making a dummy file named `D' -- because `-MD' means `put the output
17063 # in D'.
17064 mkdir conftest.dir
17065 # Copy depcomp to subdir because otherwise we won't find it if we're
17066 # using a relative directory.
17067 cp "$am_depcomp" conftest.dir
17068 cd conftest.dir
17069 # We will build objects and dependencies in a subdirectory because
17070 # it helps to detect inapplicable dependency modes. For instance
17071 # both Tru64's cc and ICC support -MD to output dependencies as a
17072 # side effect of compilation, but ICC will put the dependencies in
17073 # the current directory while Tru64 will put them in the object
17074 # directory.
17075 mkdir sub
17077 am_cv_GCJ_dependencies_compiler_type=none
17078 if test "$am_compiler_list" = ""; then
17079 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17081 am__universal=false
17084 for depmode in $am_compiler_list; do
17085 # Setup a source with many dependencies, because some compilers
17086 # like to wrap large dependency lists on column 80 (with \), and
17087 # we should not choose a depcomp mode which is confused by this.
17089 # We need to recreate these files for each test, as the compiler may
17090 # overwrite some of them when testing with obscure command lines.
17091 # This happens at least with the AIX C compiler.
17092 : > sub/conftest.c
17093 for i in 1 2 3 4 5 6; do
17094 echo '#include "conftst'$i'.h"' >> sub/conftest.c
17095 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17096 # Solaris 8's {/usr,}/bin/sh.
17097 touch sub/conftst$i.h
17098 done
17099 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17101 # We check with `-c' and `-o' for the sake of the "dashmstdout"
17102 # mode. It turns out that the SunPro C++ compiler does not properly
17103 # handle `-M -o', and we need to detect this. Also, some Intel
17104 # versions had trouble with output in subdirs
17105 am__obj=sub/conftest.${OBJEXT-o}
17106 am__minus_obj="-o $am__obj"
17107 case $depmode in
17108 gcc)
17109 # This depmode causes a compiler race in universal mode.
17110 test "$am__universal" = false || continue
17112 nosideeffect)
17113 # after this tag, mechanisms are not by side-effect, so they'll
17114 # only be used when explicitly requested
17115 if test "x$enable_dependency_tracking" = xyes; then
17116 continue
17117 else
17118 break
17121 msvisualcpp | msvcmsys)
17122 # This compiler won't grok `-c -o', but also, the minuso test has
17123 # not run yet. These depmodes are late enough in the game, and
17124 # so weak that their functioning should not be impacted.
17125 am__obj=conftest.${OBJEXT-o}
17126 am__minus_obj=
17128 none) break ;;
17129 esac
17130 if depmode=$depmode \
17131 source=sub/conftest.c object=$am__obj \
17132 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17133 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17134 >/dev/null 2>conftest.err &&
17135 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17136 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17137 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17138 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17139 # icc doesn't choke on unknown options, it will just issue warnings
17140 # or remarks (even with -Werror). So we grep stderr for any message
17141 # that says an option was ignored or not supported.
17142 # When given -MP, icc 7.0 and 7.1 complain thusly:
17143 # icc: Command line warning: ignoring option '-M'; no argument required
17144 # The diagnosis changed in icc 8.0:
17145 # icc: Command line remark: option '-MP' not supported
17146 if (grep 'ignoring option' conftest.err ||
17147 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17148 am_cv_GCJ_dependencies_compiler_type=$depmode
17149 break
17152 done
17154 cd ..
17155 rm -rf conftest.dir
17156 else
17157 am_cv_GCJ_dependencies_compiler_type=none
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
17162 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
17163 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
17166 test "x$enable_dependency_tracking" != xno \
17167 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
17168 am__fastdepGCJ_TRUE=
17169 am__fastdepGCJ_FALSE='#'
17170 else
17171 am__fastdepGCJ_TRUE='#'
17172 am__fastdepGCJ_FALSE=
17179 # Source file extension for Java test sources.
17180 ac_ext=c
17182 # Object file extension for compiled Java test sources.
17183 objext=o
17184 objext_GCJ=$objext
17186 # Code to be used in simple compile tests
17187 lt_simple_compile_test_code="int some_variable = 0;"
17189 # Code to be used in simple link tests
17190 lt_simple_link_test_code='int main(){return(0);}'
17192 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17199 # If no C compiler was specified, use CC.
17200 LTCC=${LTCC-"$CC"}
17202 # If no C compiler flags were specified, use CFLAGS.
17203 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17205 # Allow CC to be a program name with arguments.
17206 compiler=$CC
17209 # save warnings/boilerplate of simple test code
17210 ac_outfile=conftest.$ac_objext
17211 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17212 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17213 _lt_compiler_boilerplate=`cat conftest.err`
17214 $RM conftest*
17216 ac_outfile=conftest.$ac_objext
17217 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17218 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17219 _lt_linker_boilerplate=`cat conftest.err`
17220 $RM -r conftest*
17223 # Allow CC to be a program name with arguments.
17224 GCC=yes
17225 compiler=$CC
17226 compiler_GCJ=$CC
17227 for cc_temp in $compiler""; do
17228 case $cc_temp in
17229 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17230 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17231 \-*) ;;
17232 *) break;;
17233 esac
17234 done
17235 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17238 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17239 archive_cmds_need_lc_GCJ=no
17241 old_archive_cmds_GCJ=$old_archive_cmds
17243 ## CAVEAT EMPTOR:
17244 ## There is no encapsulation within the following macros, do not change
17245 ## the running order or otherwise move them around unless you know exactly
17246 ## what you are doing...
17247 if test -n "$compiler"; then
17249 lt_prog_compiler_no_builtin_flag_GCJ=
17251 if test "$GCC" = yes; then
17252 case $cc_basename in
17253 nvcc*)
17254 lt_prog_compiler_no_builtin_flag_GCJ=' -Xcompiler -fno-builtin' ;;
17256 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' ;;
17257 esac
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17260 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17261 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
17262 $as_echo_n "(cached) " >&6
17263 else
17264 lt_cv_prog_compiler_rtti_exceptions=no
17265 ac_outfile=conftest.$ac_objext
17266 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17267 lt_compiler_flag="-fno-rtti -fno-exceptions"
17268 # Insert the option either (1) after the last *FLAGS variable, or
17269 # (2) before a word containing "conftest.", or (3) at the end.
17270 # Note that $ac_compile itself does not contain backslashes and begins
17271 # with a dollar sign (not a hyphen), so the echo should work correctly.
17272 # The option is referenced via a variable to avoid confusing sed.
17273 lt_compile=`echo "$ac_compile" | $SED \
17274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17276 -e 's:$: $lt_compiler_flag:'`
17277 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17278 (eval "$lt_compile" 2>conftest.err)
17279 ac_status=$?
17280 cat conftest.err >&5
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 if (exit $ac_status) && test -s "$ac_outfile"; then
17283 # The compiler can only warn and ignore the option if not recognized
17284 # So say no if there are warnings other than the usual output.
17285 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17286 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17287 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17288 lt_cv_prog_compiler_rtti_exceptions=yes
17291 $RM conftest*
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17295 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17297 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17298 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17299 else
17307 lt_prog_compiler_wl_GCJ=
17308 lt_prog_compiler_pic_GCJ=
17309 lt_prog_compiler_static_GCJ=
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17312 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17314 if test "$GCC" = yes; then
17315 lt_prog_compiler_wl_GCJ='-Wl,'
17316 lt_prog_compiler_static_GCJ='-static'
17318 case $host_os in
17319 aix*)
17320 # All AIX code is PIC.
17321 if test "$host_cpu" = ia64; then
17322 # AIX 5 now supports IA64 processor
17323 lt_prog_compiler_static_GCJ='-Bstatic'
17327 amigaos*)
17328 case $host_cpu in
17329 powerpc)
17330 # see comment about AmigaOS4 .so support
17331 lt_prog_compiler_pic_GCJ='-fPIC'
17333 m68k)
17334 # FIXME: we need at least 68020 code to build shared libraries, but
17335 # adding the `-m68020' flag to GCC prevents building anything better,
17336 # like `-m68040'.
17337 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17339 esac
17342 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17343 # PIC is the default for these OSes.
17346 mingw* | cygwin* | pw32* | os2* | cegcc*)
17347 # This hack is so that the source file can tell whether it is being
17348 # built for inclusion in a dll (and should export symbols for example).
17349 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17350 # (--disable-auto-import) libraries
17354 darwin* | rhapsody*)
17355 # PIC is the default on this platform
17356 # Common symbols not allowed in MH_DYLIB files
17357 lt_prog_compiler_pic_GCJ='-fno-common'
17360 haiku*)
17361 # PIC is the default for Haiku.
17362 # The "-static" flag exists, but is broken.
17363 lt_prog_compiler_static_GCJ=
17366 hpux*)
17367 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17368 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17369 # sets the default TLS model and affects inlining.
17370 case $host_cpu in
17371 hppa*64*)
17372 # +Z the default
17375 lt_prog_compiler_pic_GCJ='-fPIC'
17377 esac
17380 interix[3-9]*)
17381 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17382 # Instead, we relocate shared libraries at runtime.
17385 msdosdjgpp*)
17386 # Just because we use GCC doesn't mean we suddenly get shared libraries
17387 # on systems that don't support them.
17388 lt_prog_compiler_can_build_shared_GCJ=no
17389 enable_shared=no
17392 *nto* | *qnx*)
17393 # QNX uses GNU C++, but need to define -shared option too, otherwise
17394 # it will coredump.
17395 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17398 sysv4*MP*)
17399 if test -d /usr/nec; then
17400 lt_prog_compiler_pic_GCJ=-Kconform_pic
17405 lt_prog_compiler_pic_GCJ='-fPIC'
17407 esac
17409 case $cc_basename in
17410 nvcc*) # Cuda Compiler Driver 2.2
17411 lt_prog_compiler_wl_GCJ='-Xlinker '
17412 lt_prog_compiler_pic_GCJ='-Xcompiler -fPIC'
17414 esac
17415 else
17416 # PORTME Check for flag to pass linker flags through the system compiler.
17417 case $host_os in
17418 aix*)
17419 lt_prog_compiler_wl_GCJ='-Wl,'
17420 if test "$host_cpu" = ia64; then
17421 # AIX 5 now supports IA64 processor
17422 lt_prog_compiler_static_GCJ='-Bstatic'
17423 else
17424 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17428 mingw* | cygwin* | pw32* | os2* | cegcc*)
17429 # This hack is so that the source file can tell whether it is being
17430 # built for inclusion in a dll (and should export symbols for example).
17434 hpux9* | hpux10* | hpux11*)
17435 lt_prog_compiler_wl_GCJ='-Wl,'
17436 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17437 # not for PA HP-UX.
17438 case $host_cpu in
17439 hppa*64*|ia64*)
17440 # +Z the default
17443 lt_prog_compiler_pic_GCJ='+Z'
17445 esac
17446 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17447 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17450 irix5* | irix6* | nonstopux*)
17451 lt_prog_compiler_wl_GCJ='-Wl,'
17452 # PIC (with -KPIC) is the default.
17453 lt_prog_compiler_static_GCJ='-non_shared'
17456 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17457 case $cc_basename in
17458 # old Intel for x86_64 which still supported -KPIC.
17459 ecc*)
17460 lt_prog_compiler_wl_GCJ='-Wl,'
17461 lt_prog_compiler_pic_GCJ='-KPIC'
17462 lt_prog_compiler_static_GCJ='-static'
17464 # icc used to be incompatible with GCC.
17465 # ICC 10 doesn't accept -KPIC any more.
17466 icc* | ifort*)
17467 lt_prog_compiler_wl_GCJ='-Wl,'
17468 lt_prog_compiler_pic_GCJ='-fPIC'
17469 lt_prog_compiler_static_GCJ='-static'
17471 # Lahey Fortran 8.1.
17472 lf95*)
17473 lt_prog_compiler_wl_GCJ='-Wl,'
17474 lt_prog_compiler_pic_GCJ='--shared'
17475 lt_prog_compiler_static_GCJ='--static'
17477 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17478 # Portland Group compilers (*not* the Pentium gcc compiler,
17479 # which looks to be a dead project)
17480 lt_prog_compiler_wl_GCJ='-Wl,'
17481 lt_prog_compiler_pic_GCJ='-fpic'
17482 lt_prog_compiler_static_GCJ='-Bstatic'
17484 ccc*)
17485 lt_prog_compiler_wl_GCJ='-Wl,'
17486 # All Alpha code is PIC.
17487 lt_prog_compiler_static_GCJ='-non_shared'
17489 xl* | bgxl* | bgf* | mpixl*)
17490 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17491 lt_prog_compiler_wl_GCJ='-Wl,'
17492 lt_prog_compiler_pic_GCJ='-qpic'
17493 lt_prog_compiler_static_GCJ='-qstaticlink'
17496 case `$CC -V 2>&1 | sed 5q` in
17497 *Sun\ F* | *Sun*Fortran*)
17498 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17499 lt_prog_compiler_pic_GCJ='-KPIC'
17500 lt_prog_compiler_static_GCJ='-Bstatic'
17501 lt_prog_compiler_wl_GCJ=''
17503 *Sun\ C*)
17504 # Sun C 5.9
17505 lt_prog_compiler_pic_GCJ='-KPIC'
17506 lt_prog_compiler_static_GCJ='-Bstatic'
17507 lt_prog_compiler_wl_GCJ='-Wl,'
17509 esac
17511 esac
17514 newsos6)
17515 lt_prog_compiler_pic_GCJ='-KPIC'
17516 lt_prog_compiler_static_GCJ='-Bstatic'
17519 *nto* | *qnx*)
17520 # QNX uses GNU C++, but need to define -shared option too, otherwise
17521 # it will coredump.
17522 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17525 osf3* | osf4* | osf5*)
17526 lt_prog_compiler_wl_GCJ='-Wl,'
17527 # All OSF/1 code is PIC.
17528 lt_prog_compiler_static_GCJ='-non_shared'
17531 rdos*)
17532 lt_prog_compiler_static_GCJ='-non_shared'
17535 solaris*)
17536 lt_prog_compiler_pic_GCJ='-KPIC'
17537 lt_prog_compiler_static_GCJ='-Bstatic'
17538 case $cc_basename in
17539 f77* | f90* | f95*)
17540 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17542 lt_prog_compiler_wl_GCJ='-Wl,';;
17543 esac
17546 sunos4*)
17547 lt_prog_compiler_wl_GCJ='-Qoption ld '
17548 lt_prog_compiler_pic_GCJ='-PIC'
17549 lt_prog_compiler_static_GCJ='-Bstatic'
17552 sysv4 | sysv4.2uw2* | sysv4.3*)
17553 lt_prog_compiler_wl_GCJ='-Wl,'
17554 lt_prog_compiler_pic_GCJ='-KPIC'
17555 lt_prog_compiler_static_GCJ='-Bstatic'
17558 sysv4*MP*)
17559 if test -d /usr/nec ;then
17560 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17561 lt_prog_compiler_static_GCJ='-Bstatic'
17565 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17566 lt_prog_compiler_wl_GCJ='-Wl,'
17567 lt_prog_compiler_pic_GCJ='-KPIC'
17568 lt_prog_compiler_static_GCJ='-Bstatic'
17571 unicos*)
17572 lt_prog_compiler_wl_GCJ='-Wl,'
17573 lt_prog_compiler_can_build_shared_GCJ=no
17576 uts4*)
17577 lt_prog_compiler_pic_GCJ='-pic'
17578 lt_prog_compiler_static_GCJ='-Bstatic'
17582 lt_prog_compiler_can_build_shared_GCJ=no
17584 esac
17587 case $host_os in
17588 # For platforms which do not support PIC, -DPIC is meaningless:
17589 *djgpp*)
17590 lt_prog_compiler_pic_GCJ=
17593 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17595 esac
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
17597 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17602 # Check to make sure the PIC flag actually works.
17604 if test -n "$lt_prog_compiler_pic_GCJ"; then
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17606 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17607 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
17608 $as_echo_n "(cached) " >&6
17609 else
17610 lt_cv_prog_compiler_pic_works_GCJ=no
17611 ac_outfile=conftest.$ac_objext
17612 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17613 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17614 # Insert the option either (1) after the last *FLAGS variable, or
17615 # (2) before a word containing "conftest.", or (3) at the end.
17616 # Note that $ac_compile itself does not contain backslashes and begins
17617 # with a dollar sign (not a hyphen), so the echo should work correctly.
17618 # The option is referenced via a variable to avoid confusing sed.
17619 lt_compile=`echo "$ac_compile" | $SED \
17620 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17621 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17622 -e 's:$: $lt_compiler_flag:'`
17623 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17624 (eval "$lt_compile" 2>conftest.err)
17625 ac_status=$?
17626 cat conftest.err >&5
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 if (exit $ac_status) && test -s "$ac_outfile"; then
17629 # The compiler can only warn and ignore the option if not recognized
17630 # So say no if there are warnings other than the usual output.
17631 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17632 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17633 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17634 lt_cv_prog_compiler_pic_works_GCJ=yes
17637 $RM conftest*
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17641 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17643 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17644 case $lt_prog_compiler_pic_GCJ in
17645 "" | " "*) ;;
17646 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17647 esac
17648 else
17649 lt_prog_compiler_pic_GCJ=
17650 lt_prog_compiler_can_build_shared_GCJ=no
17658 # Check to make sure the static flag actually works.
17660 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17662 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17663 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
17664 $as_echo_n "(cached) " >&6
17665 else
17666 lt_cv_prog_compiler_static_works_GCJ=no
17667 save_LDFLAGS="$LDFLAGS"
17668 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17669 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17670 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17671 # The linker can only warn and ignore the option if not recognized
17672 # So say no if there are warnings
17673 if test -s conftest.err; then
17674 # Append any errors to the config.log.
17675 cat conftest.err 1>&5
17676 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17677 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17678 if diff conftest.exp conftest.er2 >/dev/null; then
17679 lt_cv_prog_compiler_static_works_GCJ=yes
17681 else
17682 lt_cv_prog_compiler_static_works_GCJ=yes
17685 $RM -r conftest*
17686 LDFLAGS="$save_LDFLAGS"
17689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17690 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17692 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17694 else
17695 lt_prog_compiler_static_GCJ=
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17702 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17703 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17704 $as_echo_n "(cached) " >&6
17705 else
17706 lt_cv_prog_compiler_c_o_GCJ=no
17707 $RM -r conftest 2>/dev/null
17708 mkdir conftest
17709 cd conftest
17710 mkdir out
17711 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17713 lt_compiler_flag="-o out/conftest2.$ac_objext"
17714 # Insert the option either (1) after the last *FLAGS variable, or
17715 # (2) before a word containing "conftest.", or (3) at the end.
17716 # Note that $ac_compile itself does not contain backslashes and begins
17717 # with a dollar sign (not a hyphen), so the echo should work correctly.
17718 lt_compile=`echo "$ac_compile" | $SED \
17719 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17720 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17721 -e 's:$: $lt_compiler_flag:'`
17722 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17723 (eval "$lt_compile" 2>out/conftest.err)
17724 ac_status=$?
17725 cat out/conftest.err >&5
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17728 then
17729 # The compiler can only warn and ignore the option if not recognized
17730 # So say no if there are warnings
17731 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17732 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17733 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17734 lt_cv_prog_compiler_c_o_GCJ=yes
17737 chmod u+w . 2>&5
17738 $RM conftest*
17739 # SGI C++ compiler will create directory out/ii_files/ for
17740 # template instantiation
17741 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17742 $RM out/* && rmdir out
17743 cd ..
17744 $RM -r conftest
17745 $RM conftest*
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17749 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17754 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17755 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17756 $as_echo_n "(cached) " >&6
17757 else
17758 lt_cv_prog_compiler_c_o_GCJ=no
17759 $RM -r conftest 2>/dev/null
17760 mkdir conftest
17761 cd conftest
17762 mkdir out
17763 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17765 lt_compiler_flag="-o out/conftest2.$ac_objext"
17766 # Insert the option either (1) after the last *FLAGS variable, or
17767 # (2) before a word containing "conftest.", or (3) at the end.
17768 # Note that $ac_compile itself does not contain backslashes and begins
17769 # with a dollar sign (not a hyphen), so the echo should work correctly.
17770 lt_compile=`echo "$ac_compile" | $SED \
17771 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17772 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17773 -e 's:$: $lt_compiler_flag:'`
17774 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17775 (eval "$lt_compile" 2>out/conftest.err)
17776 ac_status=$?
17777 cat out/conftest.err >&5
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17780 then
17781 # The compiler can only warn and ignore the option if not recognized
17782 # So say no if there are warnings
17783 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17784 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17785 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17786 lt_cv_prog_compiler_c_o_GCJ=yes
17789 chmod u+w . 2>&5
17790 $RM conftest*
17791 # SGI C++ compiler will create directory out/ii_files/ for
17792 # template instantiation
17793 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17794 $RM out/* && rmdir out
17795 cd ..
17796 $RM -r conftest
17797 $RM conftest*
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17801 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17806 hard_links="nottested"
17807 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17808 # do not overwrite the value of need_locks provided by the user
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17810 $as_echo_n "checking if we can lock with hard links... " >&6; }
17811 hard_links=yes
17812 $RM conftest*
17813 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17814 touch conftest.a
17815 ln conftest.a conftest.b 2>&5 || hard_links=no
17816 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17818 $as_echo "$hard_links" >&6; }
17819 if test "$hard_links" = no; then
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17821 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17822 need_locks=warn
17824 else
17825 need_locks=no
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17831 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17833 runpath_var=
17834 allow_undefined_flag_GCJ=
17835 always_export_symbols_GCJ=no
17836 archive_cmds_GCJ=
17837 archive_expsym_cmds_GCJ=
17838 compiler_needs_object_GCJ=no
17839 enable_shared_with_static_runtimes_GCJ=no
17840 export_dynamic_flag_spec_GCJ=
17841 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17842 hardcode_automatic_GCJ=no
17843 hardcode_direct_GCJ=no
17844 hardcode_direct_absolute_GCJ=no
17845 hardcode_libdir_flag_spec_GCJ=
17846 hardcode_libdir_flag_spec_ld_GCJ=
17847 hardcode_libdir_separator_GCJ=
17848 hardcode_minus_L_GCJ=no
17849 hardcode_shlibpath_var_GCJ=unsupported
17850 inherit_rpath_GCJ=no
17851 link_all_deplibs_GCJ=unknown
17852 module_cmds_GCJ=
17853 module_expsym_cmds_GCJ=
17854 old_archive_from_new_cmds_GCJ=
17855 old_archive_from_expsyms_cmds_GCJ=
17856 thread_safe_flag_spec_GCJ=
17857 whole_archive_flag_spec_GCJ=
17858 # include_expsyms should be a list of space-separated symbols to be *always*
17859 # included in the symbol list
17860 include_expsyms_GCJ=
17861 # exclude_expsyms can be an extended regexp of symbols to exclude
17862 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17863 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17864 # as well as any symbol that contains `d'.
17865 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17866 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17867 # platforms (ab)use it in PIC code, but their linkers get confused if
17868 # the symbol is explicitly referenced. Since portable code cannot
17869 # rely on this symbol name, it's probably fine to never include it in
17870 # preloaded symbol tables.
17871 # Exclude shared library initialization/finalization symbols.
17872 extract_expsyms_cmds=
17874 case $host_os in
17875 cygwin* | mingw* | pw32* | cegcc*)
17876 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17877 # When not using gcc, we currently assume that we are using
17878 # Microsoft Visual C++.
17879 if test "$GCC" != yes; then
17880 with_gnu_ld=no
17883 interix*)
17884 # we just hope/assume this is gcc and not c89 (= MSVC++)
17885 with_gnu_ld=yes
17887 openbsd*)
17888 with_gnu_ld=no
17890 esac
17892 ld_shlibs_GCJ=yes
17894 # On some targets, GNU ld is compatible enough with the native linker
17895 # that we're better off using the native interface for both.
17896 lt_use_gnu_ld_interface=no
17897 if test "$with_gnu_ld" = yes; then
17898 case $host_os in
17899 aix*)
17900 # The AIX port of GNU ld has always aspired to compatibility
17901 # with the native linker. However, as the warning in the GNU ld
17902 # block says, versions before 2.19.5* couldn't really create working
17903 # shared libraries, regardless of the interface used.
17904 case `$LD -v 2>&1` in
17905 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17906 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17907 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17909 lt_use_gnu_ld_interface=yes
17911 esac
17914 lt_use_gnu_ld_interface=yes
17916 esac
17919 if test "$lt_use_gnu_ld_interface" = yes; then
17920 # If archive_cmds runs LD, not CC, wlarc should be empty
17921 wlarc='${wl}'
17923 # Set some defaults for GNU ld with shared library support. These
17924 # are reset later if shared libraries are not supported. Putting them
17925 # here allows them to be overridden if necessary.
17926 runpath_var=LD_RUN_PATH
17927 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17928 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17929 # ancient GNU ld didn't support --whole-archive et. al.
17930 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17931 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17932 else
17933 whole_archive_flag_spec_GCJ=
17935 supports_anon_versioning=no
17936 case `$LD -v 2>&1` in
17937 *GNU\ gold*) supports_anon_versioning=yes ;;
17938 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17939 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17940 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17941 *\ 2.11.*) ;; # other 2.11 versions
17942 *) supports_anon_versioning=yes ;;
17943 esac
17945 # See if GNU ld supports shared libraries.
17946 case $host_os in
17947 aix[3-9]*)
17948 # On AIX/PPC, the GNU linker is very broken
17949 if test "$host_cpu" != ia64; then
17950 ld_shlibs_GCJ=no
17951 cat <<_LT_EOF 1>&2
17953 *** Warning: the GNU linker, at least up to release 2.19, is reported
17954 *** to be unable to reliably create shared libraries on AIX.
17955 *** Therefore, libtool is disabling shared libraries support. If you
17956 *** really care for shared libraries, you may want to install binutils
17957 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17958 *** You will then need to restart the configuration process.
17960 _LT_EOF
17964 amigaos*)
17965 case $host_cpu in
17966 powerpc)
17967 # see comment about AmigaOS4 .so support
17968 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17969 archive_expsym_cmds_GCJ=''
17971 m68k)
17972 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)'
17973 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17974 hardcode_minus_L_GCJ=yes
17976 esac
17979 beos*)
17980 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17981 allow_undefined_flag_GCJ=unsupported
17982 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17983 # support --undefined. This deserves some investigation. FIXME
17984 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17985 else
17986 ld_shlibs_GCJ=no
17990 cygwin* | mingw* | pw32* | cegcc*)
17991 # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17992 # as there is no search path for DLLs.
17993 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17994 export_dynamic_flag_spec_GCJ='${wl}--export-all-symbols'
17995 allow_undefined_flag_GCJ=unsupported
17996 always_export_symbols_GCJ=no
17997 enable_shared_with_static_runtimes_GCJ=yes
17998 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18000 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18001 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18002 # If the export-symbols file already is a .def file (1st line
18003 # is EXPORTS), use it as is; otherwise, prepend...
18004 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18005 cp $export_symbols $output_objdir/$soname.def;
18006 else
18007 echo EXPORTS > $output_objdir/$soname.def;
18008 cat $export_symbols >> $output_objdir/$soname.def;
18010 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18011 else
18012 ld_shlibs_GCJ=no
18016 haiku*)
18017 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18018 link_all_deplibs_GCJ=yes
18021 interix[3-9]*)
18022 hardcode_direct_GCJ=no
18023 hardcode_shlibpath_var_GCJ=no
18024 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18025 export_dynamic_flag_spec_GCJ='${wl}-E'
18026 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18027 # Instead, shared libraries are loaded at an image base (0x10000000 by
18028 # default) and relocated if they conflict, which is a slow very memory
18029 # consuming and fragmenting process. To avoid this, we pick a random,
18030 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18031 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18032 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'
18033 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'
18036 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
18037 tmp_diet=no
18038 if test "$host_os" = linux-dietlibc; then
18039 case $cc_basename in
18040 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
18041 esac
18043 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
18044 && test "$tmp_diet" = no
18045 then
18046 tmp_addflag=
18047 tmp_sharedflag='-shared'
18048 case $cc_basename,$host_cpu in
18049 pgcc*) # Portland Group C compiler
18050 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'
18051 tmp_addflag=' $pic_flag'
18053 pgf77* | pgf90* | pgf95* | pgfortran*)
18054 # Portland Group f77 and f90 compilers
18055 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'
18056 tmp_addflag=' $pic_flag -Mnomain' ;;
18057 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18058 tmp_addflag=' -i_dynamic' ;;
18059 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18060 tmp_addflag=' -i_dynamic -nofor_main' ;;
18061 ifc* | ifort*) # Intel Fortran compiler
18062 tmp_addflag=' -nofor_main' ;;
18063 lf95*) # Lahey Fortran 8.1
18064 whole_archive_flag_spec_GCJ=
18065 tmp_sharedflag='--shared' ;;
18066 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
18067 tmp_sharedflag='-qmkshrobj'
18068 tmp_addflag= ;;
18069 nvcc*) # Cuda Compiler Driver 2.2
18070 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'
18071 compiler_needs_object_GCJ=yes
18073 esac
18074 case `$CC -V 2>&1 | sed 5q` in
18075 *Sun\ C*) # Sun C 5.9
18076 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'
18077 compiler_needs_object_GCJ=yes
18078 tmp_sharedflag='-G' ;;
18079 *Sun\ F*) # Sun Fortran 8.3
18080 tmp_sharedflag='-G' ;;
18081 esac
18082 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18084 if test "x$supports_anon_versioning" = xyes; then
18085 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18086 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18087 echo "local: *; };" >> $output_objdir/$libname.ver~
18088 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18091 case $cc_basename in
18092 xlf* | bgf* | bgxlf* | mpixlf*)
18093 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
18094 whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
18095 hardcode_libdir_flag_spec_GCJ=
18096 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18097 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
18098 if test "x$supports_anon_versioning" = xyes; then
18099 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18100 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18101 echo "local: *; };" >> $output_objdir/$libname.ver~
18102 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
18105 esac
18106 else
18107 ld_shlibs_GCJ=no
18111 netbsd*)
18112 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18113 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18114 wlarc=
18115 else
18116 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18117 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18121 solaris*)
18122 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
18123 ld_shlibs_GCJ=no
18124 cat <<_LT_EOF 1>&2
18126 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18127 *** create shared libraries on Solaris systems. Therefore, libtool
18128 *** is disabling shared libraries support. We urge you to upgrade GNU
18129 *** binutils to release 2.9.1 or newer. Another option is to modify
18130 *** your PATH or compiler configuration so that the native linker is
18131 *** used, and then restart.
18133 _LT_EOF
18134 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18135 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18136 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18137 else
18138 ld_shlibs_GCJ=no
18142 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18143 case `$LD -v 2>&1` in
18144 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18145 ld_shlibs_GCJ=no
18146 cat <<_LT_EOF 1>&2
18148 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18149 *** reliably create shared libraries on SCO systems. Therefore, libtool
18150 *** is disabling shared libraries support. We urge you to upgrade GNU
18151 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18152 *** your PATH or compiler configuration so that the native linker is
18153 *** used, and then restart.
18155 _LT_EOF
18158 # For security reasons, it is highly recommended that you always
18159 # use absolute paths for naming shared libraries, and exclude the
18160 # DT_RUNPATH tag from executables and libraries. But doing so
18161 # requires that you compile everything twice, which is a pain.
18162 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18163 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18164 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18165 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18166 else
18167 ld_shlibs_GCJ=no
18170 esac
18173 sunos4*)
18174 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18175 wlarc=
18176 hardcode_direct_GCJ=yes
18177 hardcode_shlibpath_var_GCJ=no
18181 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18182 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18183 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18184 else
18185 ld_shlibs_GCJ=no
18188 esac
18190 if test "$ld_shlibs_GCJ" = no; then
18191 runpath_var=
18192 hardcode_libdir_flag_spec_GCJ=
18193 export_dynamic_flag_spec_GCJ=
18194 whole_archive_flag_spec_GCJ=
18196 else
18197 # PORTME fill in a description of your system's linker (not GNU ld)
18198 case $host_os in
18199 aix3*)
18200 allow_undefined_flag_GCJ=unsupported
18201 always_export_symbols_GCJ=yes
18202 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'
18203 # Note: this linker hardcodes the directories in LIBPATH if there
18204 # are no directories specified by -L.
18205 hardcode_minus_L_GCJ=yes
18206 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18207 # Neither direct hardcoding nor static linking is supported with a
18208 # broken collect2.
18209 hardcode_direct_GCJ=unsupported
18213 aix[4-9]*)
18214 if test "$host_cpu" = ia64; then
18215 # On IA64, the linker does run time linking by default, so we don't
18216 # have to do anything special.
18217 aix_use_runtimelinking=no
18218 exp_sym_flag='-Bexport'
18219 no_entry_flag=""
18220 else
18221 # If we're using GNU nm, then we don't want the "-C" option.
18222 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18223 # Also, AIX nm treats weak defined symbols like other global
18224 # defined symbols, whereas GNU nm marks them as "W".
18225 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18226 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'
18227 else
18228 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'
18230 aix_use_runtimelinking=no
18232 # Test if we are trying to use run time linking or normal
18233 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18234 # need to do runtime linking.
18235 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18236 for ld_flag in $LDFLAGS; do
18237 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18238 aix_use_runtimelinking=yes
18239 break
18241 done
18243 esac
18245 exp_sym_flag='-bexport'
18246 no_entry_flag='-bnoentry'
18249 # When large executables or shared objects are built, AIX ld can
18250 # have problems creating the table of contents. If linking a library
18251 # or program results in "error TOC overflow" add -mminimal-toc to
18252 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18253 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18255 archive_cmds_GCJ=''
18256 hardcode_direct_GCJ=yes
18257 hardcode_direct_absolute_GCJ=yes
18258 hardcode_libdir_separator_GCJ=':'
18259 link_all_deplibs_GCJ=yes
18260 file_list_spec_GCJ='${wl}-f,'
18262 if test "$GCC" = yes; then
18263 case $host_os in aix4.[012]|aix4.[012].*)
18264 # We only want to do this on AIX 4.2 and lower, the check
18265 # below for broken collect2 doesn't work under 4.3+
18266 collect2name=`${CC} -print-prog-name=collect2`
18267 if test -f "$collect2name" &&
18268 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18269 then
18270 # We have reworked collect2
18272 else
18273 # We have old collect2
18274 hardcode_direct_GCJ=unsupported
18275 # It fails to find uninstalled libraries when the uninstalled
18276 # path is not listed in the libpath. Setting hardcode_minus_L
18277 # to unsupported forces relinking
18278 hardcode_minus_L_GCJ=yes
18279 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18280 hardcode_libdir_separator_GCJ=
18283 esac
18284 shared_flag='-shared'
18285 if test "$aix_use_runtimelinking" = yes; then
18286 shared_flag="$shared_flag "'${wl}-G'
18288 else
18289 # not using gcc
18290 if test "$host_cpu" = ia64; then
18291 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18292 # chokes on -Wl,-G. The following line is correct:
18293 shared_flag='-G'
18294 else
18295 if test "$aix_use_runtimelinking" = yes; then
18296 shared_flag='${wl}-G'
18297 else
18298 shared_flag='${wl}-bM:SRE'
18303 export_dynamic_flag_spec_GCJ='${wl}-bexpall'
18304 # It seems that -bexpall does not export symbols beginning with
18305 # underscore (_), so it is better to generate a list of symbols to export.
18306 always_export_symbols_GCJ=yes
18307 if test "$aix_use_runtimelinking" = yes; then
18308 # Warning - without using the other runtime loading flags (-brtl),
18309 # -berok will link without error, but may produce a broken library.
18310 allow_undefined_flag_GCJ='-berok'
18311 # Determine the default libpath from the value encoded in an
18312 # empty executable.
18313 if test x$gcc_no_link = xyes; then
18314 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18317 /* end confdefs.h. */
18320 main ()
18324 return 0;
18326 _ACEOF
18327 if ac_fn_c_try_link "$LINENO"; then :
18329 lt_aix_libpath_sed='
18330 /Import File Strings/,/^$/ {
18331 /^0/ {
18332 s/^0 *\(.*\)$/\1/
18336 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18337 # Check for a 64-bit object if we didn't find anything.
18338 if test -z "$aix_libpath"; then
18339 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18342 rm -f core conftest.err conftest.$ac_objext \
18343 conftest$ac_exeext conftest.$ac_ext
18344 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18346 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18347 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"
18348 else
18349 if test "$host_cpu" = ia64; then
18350 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18351 allow_undefined_flag_GCJ="-z nodefs"
18352 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"
18353 else
18354 # Determine the default libpath from the value encoded in an
18355 # empty executable.
18356 if test x$gcc_no_link = xyes; then
18357 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18360 /* end confdefs.h. */
18363 main ()
18367 return 0;
18369 _ACEOF
18370 if ac_fn_c_try_link "$LINENO"; then :
18372 lt_aix_libpath_sed='
18373 /Import File Strings/,/^$/ {
18374 /^0/ {
18375 s/^0 *\(.*\)$/\1/
18379 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18380 # Check for a 64-bit object if we didn't find anything.
18381 if test -z "$aix_libpath"; then
18382 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18385 rm -f core conftest.err conftest.$ac_objext \
18386 conftest$ac_exeext conftest.$ac_ext
18387 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18389 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18390 # Warning - without using the other run time loading flags,
18391 # -berok will link without error, but may produce a broken library.
18392 no_undefined_flag_GCJ=' ${wl}-bernotok'
18393 allow_undefined_flag_GCJ=' ${wl}-berok'
18394 if test "$with_gnu_ld" = yes; then
18395 # We only use this code for GNU lds that support --whole-archive.
18396 whole_archive_flag_spec_GCJ='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18397 else
18398 # Exported symbols can be pulled into shared objects from archives
18399 whole_archive_flag_spec_GCJ='$convenience'
18401 archive_cmds_need_lc_GCJ=yes
18402 # This is similar to how AIX traditionally builds its shared libraries.
18403 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'
18408 amigaos*)
18409 case $host_cpu in
18410 powerpc)
18411 # see comment about AmigaOS4 .so support
18412 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18413 archive_expsym_cmds_GCJ=''
18415 m68k)
18416 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)'
18417 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18418 hardcode_minus_L_GCJ=yes
18420 esac
18423 bsdi[45]*)
18424 export_dynamic_flag_spec_GCJ=-rdynamic
18427 cygwin* | mingw* | pw32* | cegcc*)
18428 # When not using gcc, we currently assume that we are using
18429 # Microsoft Visual C++.
18430 # hardcode_libdir_flag_spec is actually meaningless, as there is
18431 # no search path for DLLs.
18432 hardcode_libdir_flag_spec_GCJ=' '
18433 allow_undefined_flag_GCJ=unsupported
18434 # Tell ltmain to make .lib files, not .a files.
18435 libext=lib
18436 # Tell ltmain to make .dll files, not .so files.
18437 shrext_cmds=".dll"
18438 # FIXME: Setting linknames here is a bad hack.
18439 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18440 # The linker will automatically build a .lib file if we build a DLL.
18441 old_archive_from_new_cmds_GCJ='true'
18442 # FIXME: Should let the user specify the lib program.
18443 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18444 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18445 enable_shared_with_static_runtimes_GCJ=yes
18448 darwin* | rhapsody*)
18451 archive_cmds_need_lc_GCJ=no
18452 hardcode_direct_GCJ=no
18453 hardcode_automatic_GCJ=yes
18454 hardcode_shlibpath_var_GCJ=unsupported
18455 if test "$lt_cv_ld_force_load" = "yes"; then
18456 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\"`'
18457 else
18458 whole_archive_flag_spec_GCJ=''
18460 link_all_deplibs_GCJ=yes
18461 allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
18462 case $cc_basename in
18463 ifort*) _lt_dar_can_shared=yes ;;
18464 *) _lt_dar_can_shared=$GCC ;;
18465 esac
18466 if test "$_lt_dar_can_shared" = "yes"; then
18467 output_verbose_link_cmd=func_echo_all
18468 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}"
18469 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18470 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}"
18471 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}"
18473 else
18474 ld_shlibs_GCJ=no
18479 dgux*)
18480 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18481 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18482 hardcode_shlibpath_var_GCJ=no
18485 freebsd1*)
18486 ld_shlibs_GCJ=no
18489 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18490 # support. Future versions do this automatically, but an explicit c++rt0.o
18491 # does not break anything, and helps significantly (at the cost of a little
18492 # extra space).
18493 freebsd2.2*)
18494 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18495 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18496 hardcode_direct_GCJ=yes
18497 hardcode_shlibpath_var_GCJ=no
18500 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18501 freebsd2*)
18502 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18503 hardcode_direct_GCJ=yes
18504 hardcode_minus_L_GCJ=yes
18505 hardcode_shlibpath_var_GCJ=no
18508 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18509 freebsd* | dragonfly*)
18510 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18511 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18512 hardcode_direct_GCJ=yes
18513 hardcode_shlibpath_var_GCJ=no
18516 hpux9*)
18517 if test "$GCC" = yes; then
18518 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'
18519 else
18520 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'
18522 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18523 hardcode_libdir_separator_GCJ=:
18524 hardcode_direct_GCJ=yes
18526 # hardcode_minus_L: Not really in the search PATH,
18527 # but as the default location of the library.
18528 hardcode_minus_L_GCJ=yes
18529 export_dynamic_flag_spec_GCJ='${wl}-E'
18532 hpux10*)
18533 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18534 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18535 else
18536 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18538 if test "$with_gnu_ld" = no; then
18539 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18540 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18541 hardcode_libdir_separator_GCJ=:
18542 hardcode_direct_GCJ=yes
18543 hardcode_direct_absolute_GCJ=yes
18544 export_dynamic_flag_spec_GCJ='${wl}-E'
18545 # hardcode_minus_L: Not really in the search PATH,
18546 # but as the default location of the library.
18547 hardcode_minus_L_GCJ=yes
18551 hpux11*)
18552 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18553 case $host_cpu in
18554 hppa*64*)
18555 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18557 ia64*)
18558 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18561 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18563 esac
18564 else
18565 case $host_cpu in
18566 hppa*64*)
18567 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18569 ia64*)
18570 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18573 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18575 esac
18577 if test "$with_gnu_ld" = no; then
18578 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18579 hardcode_libdir_separator_GCJ=:
18581 case $host_cpu in
18582 hppa*64*|ia64*)
18583 hardcode_direct_GCJ=no
18584 hardcode_shlibpath_var_GCJ=no
18587 hardcode_direct_GCJ=yes
18588 hardcode_direct_absolute_GCJ=yes
18589 export_dynamic_flag_spec_GCJ='${wl}-E'
18591 # hardcode_minus_L: Not really in the search PATH,
18592 # but as the default location of the library.
18593 hardcode_minus_L_GCJ=yes
18595 esac
18599 irix5* | irix6* | nonstopux*)
18600 if test "$GCC" = yes; then
18601 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'
18602 # Try to use the -exported_symbol ld option, if it does not
18603 # work, assume that -exports_file does not work either and
18604 # implicitly export all symbols.
18605 save_LDFLAGS="$LDFLAGS"
18606 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18607 if test x$gcc_no_link = xyes; then
18608 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18611 /* end confdefs.h. */
18612 int foo(void) {}
18613 _ACEOF
18614 if ac_fn_c_try_link "$LINENO"; then :
18615 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'
18618 rm -f core conftest.err conftest.$ac_objext \
18619 conftest$ac_exeext conftest.$ac_ext
18620 LDFLAGS="$save_LDFLAGS"
18621 else
18622 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'
18623 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'
18625 archive_cmds_need_lc_GCJ='no'
18626 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18627 hardcode_libdir_separator_GCJ=:
18628 inherit_rpath_GCJ=yes
18629 link_all_deplibs_GCJ=yes
18632 netbsd*)
18633 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18634 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18635 else
18636 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18638 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18639 hardcode_direct_GCJ=yes
18640 hardcode_shlibpath_var_GCJ=no
18643 newsos6)
18644 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18645 hardcode_direct_GCJ=yes
18646 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18647 hardcode_libdir_separator_GCJ=:
18648 hardcode_shlibpath_var_GCJ=no
18651 *nto* | *qnx*)
18654 openbsd*)
18655 if test -f /usr/libexec/ld.so; then
18656 hardcode_direct_GCJ=yes
18657 hardcode_shlibpath_var_GCJ=no
18658 hardcode_direct_absolute_GCJ=yes
18659 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18660 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18661 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18662 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18663 export_dynamic_flag_spec_GCJ='${wl}-E'
18664 else
18665 case $host_os in
18666 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18667 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18668 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18671 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18672 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18674 esac
18676 else
18677 ld_shlibs_GCJ=no
18681 os2*)
18682 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18683 hardcode_minus_L_GCJ=yes
18684 allow_undefined_flag_GCJ=unsupported
18685 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'
18686 old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18689 osf3*)
18690 if test "$GCC" = yes; then
18691 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18692 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'
18693 else
18694 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18695 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'
18697 archive_cmds_need_lc_GCJ='no'
18698 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18699 hardcode_libdir_separator_GCJ=:
18702 osf4* | osf5*) # as osf3* with the addition of -msym flag
18703 if test "$GCC" = yes; then
18704 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18705 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'
18706 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18707 else
18708 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18709 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'
18710 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~
18711 $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'
18713 # Both c and cxx compiler support -rpath directly
18714 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18716 archive_cmds_need_lc_GCJ='no'
18717 hardcode_libdir_separator_GCJ=:
18720 solaris*)
18721 no_undefined_flag_GCJ=' -z defs'
18722 if test "$GCC" = yes; then
18723 wlarc='${wl}'
18724 archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18725 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18726 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18727 else
18728 case `$CC -V 2>&1` in
18729 *"Compilers 5.0"*)
18730 wlarc=''
18731 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18732 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18733 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18736 wlarc='${wl}'
18737 archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18738 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18739 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18741 esac
18743 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18744 hardcode_shlibpath_var_GCJ=no
18745 case $host_os in
18746 solaris2.[0-5] | solaris2.[0-5].*) ;;
18748 # The compiler driver will combine and reorder linker options,
18749 # but understands `-z linker_flag'. GCC discards it without `$wl',
18750 # but is careful enough not to reorder.
18751 # Supported since Solaris 2.6 (maybe 2.5.1?)
18752 if test "$GCC" = yes; then
18753 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18754 else
18755 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18758 esac
18759 link_all_deplibs_GCJ=yes
18762 sunos4*)
18763 if test "x$host_vendor" = xsequent; then
18764 # Use $CC to link under sequent, because it throws in some extra .o
18765 # files that make .init and .fini sections work.
18766 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18767 else
18768 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18770 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18771 hardcode_direct_GCJ=yes
18772 hardcode_minus_L_GCJ=yes
18773 hardcode_shlibpath_var_GCJ=no
18776 sysv4)
18777 case $host_vendor in
18778 sni)
18779 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18780 hardcode_direct_GCJ=yes # is this really true???
18782 siemens)
18783 ## LD is ld it makes a PLAMLIB
18784 ## CC just makes a GrossModule.
18785 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18786 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18787 hardcode_direct_GCJ=no
18789 motorola)
18790 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18791 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18793 esac
18794 runpath_var='LD_RUN_PATH'
18795 hardcode_shlibpath_var_GCJ=no
18798 sysv4.3*)
18799 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18800 hardcode_shlibpath_var_GCJ=no
18801 export_dynamic_flag_spec_GCJ='-Bexport'
18804 sysv4*MP*)
18805 if test -d /usr/nec; then
18806 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18807 hardcode_shlibpath_var_GCJ=no
18808 runpath_var=LD_RUN_PATH
18809 hardcode_runpath_var=yes
18810 ld_shlibs_GCJ=yes
18814 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18815 no_undefined_flag_GCJ='${wl}-z,text'
18816 archive_cmds_need_lc_GCJ=no
18817 hardcode_shlibpath_var_GCJ=no
18818 runpath_var='LD_RUN_PATH'
18820 if test "$GCC" = yes; then
18821 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18822 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18823 else
18824 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18825 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18829 sysv5* | sco3.2v5* | sco5v6*)
18830 # Note: We can NOT use -z defs as we might desire, because we do not
18831 # link with -lc, and that would cause any symbols used from libc to
18832 # always be unresolved, which means just about no library would
18833 # ever link correctly. If we're not using GNU ld we use -z text
18834 # though, which does catch some bad symbols but isn't as heavy-handed
18835 # as -z defs.
18836 no_undefined_flag_GCJ='${wl}-z,text'
18837 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18838 archive_cmds_need_lc_GCJ=no
18839 hardcode_shlibpath_var_GCJ=no
18840 hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
18841 hardcode_libdir_separator_GCJ=':'
18842 link_all_deplibs_GCJ=yes
18843 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18844 runpath_var='LD_RUN_PATH'
18846 if test "$GCC" = yes; then
18847 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18848 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18849 else
18850 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18851 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18855 uts4*)
18856 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18857 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18858 hardcode_shlibpath_var_GCJ=no
18862 ld_shlibs_GCJ=no
18864 esac
18866 if test x$host_vendor = xsni; then
18867 case $host in
18868 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18869 export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
18871 esac
18875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
18876 $as_echo "$ld_shlibs_GCJ" >&6; }
18877 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18879 with_gnu_ld_GCJ=$with_gnu_ld
18887 # Do we need to explicitly link libc?
18889 case "x$archive_cmds_need_lc_GCJ" in
18890 x|xyes)
18891 # Assume -lc should be added
18892 archive_cmds_need_lc_GCJ=yes
18894 if test "$enable_shared" = yes && test "$GCC" = yes; then
18895 case $archive_cmds_GCJ in
18896 *'~'*)
18897 # FIXME: we may have to deal with multi-command sequences.
18899 '$CC '*)
18900 # Test whether the compiler implicitly links with -lc since on some
18901 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18902 # to ld, don't add -lc before -lgcc.
18903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18904 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18905 if test "${lt_cv_archive_cmds_need_lc_GCJ+set}" = set; then :
18906 $as_echo_n "(cached) " >&6
18907 else
18908 $RM conftest*
18909 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18912 (eval $ac_compile) 2>&5
18913 ac_status=$?
18914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18915 test $ac_status = 0; } 2>conftest.err; then
18916 soname=conftest
18917 lib=conftest
18918 libobjs=conftest.$ac_objext
18919 deplibs=
18920 wl=$lt_prog_compiler_wl_GCJ
18921 pic_flag=$lt_prog_compiler_pic_GCJ
18922 compiler_flags=-v
18923 linker_flags=-v
18924 verstring=
18925 output_objdir=.
18926 libname=conftest
18927 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18928 allow_undefined_flag_GCJ=
18929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18930 (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18931 ac_status=$?
18932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18933 test $ac_status = 0; }
18934 then
18935 lt_cv_archive_cmds_need_lc_GCJ=no
18936 else
18937 lt_cv_archive_cmds_need_lc_GCJ=yes
18939 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18940 else
18941 cat conftest.err 1>&5
18943 $RM conftest*
18946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GCJ" >&5
18947 $as_echo "$lt_cv_archive_cmds_need_lc_GCJ" >&6; }
18948 archive_cmds_need_lc_GCJ=$lt_cv_archive_cmds_need_lc_GCJ
18950 esac
18953 esac
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19019 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19020 hardcode_action_GCJ=
19021 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
19022 test -n "$runpath_var_GCJ" ||
19023 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19025 # We can hardcode non-existent directories.
19026 if test "$hardcode_direct_GCJ" != no &&
19027 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19028 # have to relink, otherwise we might link with an installed library
19029 # when we should be linking with a yet-to-be-installed one
19030 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19031 test "$hardcode_minus_L_GCJ" != no; then
19032 # Linking always hardcodes the temporary library directory.
19033 hardcode_action_GCJ=relink
19034 else
19035 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19036 hardcode_action_GCJ=immediate
19038 else
19039 # We cannot hardcode anything, or else we can only hardcode existing
19040 # directories.
19041 hardcode_action_GCJ=unsupported
19043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
19044 $as_echo "$hardcode_action_GCJ" >&6; }
19046 if test "$hardcode_action_GCJ" = relink ||
19047 test "$inherit_rpath_GCJ" = yes; then
19048 # Fast installation is not supported
19049 enable_fast_install=no
19050 elif test "$shlibpath_overrides_runpath" = yes ||
19051 test "$enable_shared" = no; then
19052 # Fast installation is not necessary
19053 enable_fast_install=needless
19064 compiler_GCJ=${GCJ-gcj}
19065 ac_ext=c
19066 ac_cpp='$CPP $CPPFLAGS'
19067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19072 if test "x$CC" != xcc; then
19073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
19074 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
19075 else
19076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
19077 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
19079 set dummy $CC; ac_cc=`$as_echo "$2" |
19080 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19081 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
19082 $as_echo_n "(cached) " >&6
19083 else
19084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19085 /* end confdefs.h. */
19088 main ()
19092 return 0;
19094 _ACEOF
19095 # Make sure it works both with $CC and with simple cc.
19096 # We do the test twice because some compilers refuse to overwrite an
19097 # existing .o file with -o, though they will create one.
19098 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19099 rm -f conftest2.*
19100 if { { case "(($ac_try" in
19101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102 *) ac_try_echo=$ac_try;;
19103 esac
19104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19105 $as_echo "$ac_try_echo"; } >&5
19106 (eval "$ac_try") 2>&5
19107 ac_status=$?
19108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19109 test $ac_status = 0; } &&
19110 test -f conftest2.$ac_objext && { { case "(($ac_try" in
19111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19112 *) ac_try_echo=$ac_try;;
19113 esac
19114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19115 $as_echo "$ac_try_echo"; } >&5
19116 (eval "$ac_try") 2>&5
19117 ac_status=$?
19118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19119 test $ac_status = 0; };
19120 then
19121 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
19122 if test "x$CC" != xcc; then
19123 # Test first that cc exists at all.
19124 if { ac_try='cc -c conftest.$ac_ext >&5'
19125 { { case "(($ac_try" in
19126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19127 *) ac_try_echo=$ac_try;;
19128 esac
19129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19130 $as_echo "$ac_try_echo"; } >&5
19131 (eval "$ac_try") 2>&5
19132 ac_status=$?
19133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19134 test $ac_status = 0; }; }; then
19135 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19136 rm -f conftest2.*
19137 if { { case "(($ac_try" in
19138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19139 *) ac_try_echo=$ac_try;;
19140 esac
19141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19142 $as_echo "$ac_try_echo"; } >&5
19143 (eval "$ac_try") 2>&5
19144 ac_status=$?
19145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19146 test $ac_status = 0; } &&
19147 test -f conftest2.$ac_objext && { { case "(($ac_try" in
19148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19149 *) ac_try_echo=$ac_try;;
19150 esac
19151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19152 $as_echo "$ac_try_echo"; } >&5
19153 (eval "$ac_try") 2>&5
19154 ac_status=$?
19155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19156 test $ac_status = 0; };
19157 then
19158 # cc works too.
19160 else
19161 # cc exists but doesn't like -o.
19162 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19166 else
19167 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19169 rm -f core conftest*
19172 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
19173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19174 $as_echo "yes" >&6; }
19175 else
19176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19177 $as_echo "no" >&6; }
19179 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
19183 # FIXME: we rely on the cache variable name because
19184 # there is no other way.
19185 set dummy $CC
19186 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19187 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
19188 if test "$am_t" != yes; then
19189 # Losing compiler, so override with the script.
19190 # FIXME: It is wrong to rewrite CC.
19191 # But if we don't then we get into trouble of one sort or another.
19192 # A longer-term fix would be to have automake use am__CC in this case,
19193 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19194 CC="$am_aux_dir/compile $CC"
19201 subdirs="$subdirs classpath libltdl"
19204 # The -no-testsuite modules omit the test subdir.
19205 if test -d $srcdir/testsuite; then
19206 TESTSUBDIR_TRUE=
19207 TESTSUBDIR_FALSE='#'
19208 else
19209 TESTSUBDIR_TRUE='#'
19210 TESTSUBDIR_FALSE=
19214 # Should the runtime set system properties by examining the
19215 # environment variable GCJ_PROPERTIES?
19216 # Check whether --enable-getenv-properties was given.
19217 if test "${enable_getenv_properties+set}" = set; then :
19218 enableval=$enable_getenv_properties;
19222 # Whether GCJ_PROPERTIES is used depends on the target.
19223 if test -z "$enable_getenv_properties"; then
19224 enable_getenv_properties=${enable_getenv_properties_default-yes}
19226 if test "$enable_getenv_properties" = no; then
19228 $as_echo "#define DISABLE_GETENV_PROPERTIES 1" >>confdefs.h
19232 # Whether we should use arguments to main()
19233 if test -z "$enable_main_args"; then
19234 enable_main_args=${enable_main_args_default-yes}
19236 if test "$enable_main_args" = no; then
19238 $as_echo "#define DISABLE_MAIN_ARGS 1" >>confdefs.h
19243 # Should we use hashtable-based synchronization?
19244 # Currently works only for Linux X86/ia64
19245 # Typically faster and more space-efficient
19246 # Check whether --enable-hash-synchronization was given.
19247 if test "${enable_hash_synchronization+set}" = set; then :
19248 enableval=$enable_hash_synchronization;
19252 if test -z "$enable_hash_synchronization"; then
19253 enable_hash_synchronization=$enable_hash_synchronization_default
19257 install_ecj_jar=no
19258 ECJ_BUILD_JAR=
19259 ECJ_JAR=
19261 # Check whether --with-ecj-jar was given.
19262 if test "${with_ecj_jar+set}" = set; then :
19263 withval=$with_ecj_jar; ECJ_JAR=$withval
19264 else
19265 if test -f $multi_basedir/ecj.jar; then
19266 ECJ_BUILD_JAR=$multi_basedir/ecj.jar
19267 ECJ_JAR='$(jardir)/ecj.jar'
19268 install_ecj_jar=yes
19274 if test "$ECJ_JAR" != ""; then
19275 BUILD_ECJ1_TRUE=
19276 BUILD_ECJ1_FALSE='#'
19277 else
19278 BUILD_ECJ1_TRUE='#'
19279 BUILD_ECJ1_FALSE=
19282 if test $install_ecj_jar = yes; then
19283 INSTALL_ECJ_JAR_TRUE=
19284 INSTALL_ECJ_JAR_FALSE='#'
19285 else
19286 INSTALL_ECJ_JAR_TRUE='#'
19287 INSTALL_ECJ_JAR_FALSE=
19292 # Check whether --with-java-home was given.
19293 if test "${with_java_home+set}" = set; then :
19294 withval=$with_java_home; JAVA_HOME="${withval}"
19295 else
19296 JAVA_HOME=""
19299 if test ! -z "$JAVA_HOME"; then
19300 JAVA_HOME_SET_TRUE=
19301 JAVA_HOME_SET_FALSE='#'
19302 else
19303 JAVA_HOME_SET_TRUE='#'
19304 JAVA_HOME_SET_FALSE=
19309 suppress_libgcj_bc=no
19310 # Check whether --enable-libgcj-bc was given.
19311 if test "${enable_libgcj_bc+set}" = set; then :
19312 enableval=$enable_libgcj_bc; if test "$enable_libgcj_bc" = "no"; then
19313 suppress_libgcj_bc=yes
19317 if test "$suppress_libgcj_bc" = "yes"; then
19318 SUPPRESS_LIBGCJ_BC_TRUE=
19319 SUPPRESS_LIBGCJ_BC_FALSE='#'
19320 else
19321 SUPPRESS_LIBGCJ_BC_TRUE='#'
19322 SUPPRESS_LIBGCJ_BC_FALSE=
19326 build_libgcj_reduced_reflection=no
19327 # Check whether --enable-reduced-reflection was given.
19328 if test "${enable_reduced_reflection+set}" = set; then :
19329 enableval=$enable_reduced_reflection; if test "$enable_reduced_reflection" = "yes"; then
19330 build_libgcj_reduced_reflection=yes
19334 if test "$build_libgcj_reduced_reflection" = "yes"; then
19335 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE=
19336 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE='#'
19337 else
19338 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE='#'
19339 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE=
19343 # What is the native OS API for MinGW?
19345 # Check whether --with-win32-nlsapi was given.
19346 if test "${with_win32_nlsapi+set}" = set; then :
19347 withval=$with_win32_nlsapi; case "${withval}" in
19348 ansi) with_win32_nlsapi=ansi ;;
19349 unicows) with_win32_nlsapi=unicows ;;
19350 unicode) with_win32_nlsapi=unicode ;;
19351 *) as_fn_error "Bad value ${withval} for --with-win32-nlsapi." "$LINENO" 5 ;;
19352 esac
19353 else
19354 with_win32_nlsapi=ansi
19358 case "${with_win32_nlsapi}" in
19359 unicows | unicode)
19361 $as_echo "#define MINGW_LIBGCJ_UNICODE 1" >>confdefs.h
19364 esac
19366 # configure.host sets slow_pthread_self if the synchronization code should
19367 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
19368 if test "${slow_pthread_self}" = "yes"; then
19370 $as_echo "#define SLOW_PTHREAD_SELF 1" >>confdefs.h
19374 # Check for gc debugging. This option is handled both here and in the GC.
19375 # Check whether --enable-gc-debug was given.
19376 if test "${enable_gc_debug+set}" = set; then :
19377 enableval=$enable_gc_debug; if test "$enable_gc_debug" = "yes"; then
19379 $as_echo "#define LIBGCJ_GC_DEBUG 1" >>confdefs.h
19385 # See if the user has the interpreter included.
19386 # Check whether --enable-interpreter was given.
19387 if test "${enable_interpreter+set}" = set; then :
19388 enableval=$enable_interpreter; if test "$enable_interpreter" = yes; then
19389 # This can also be set in configure.host.
19390 libgcj_interpreter=yes
19391 elif test "$enable_interpreter" = no; then
19392 libgcj_interpreter=no
19397 if test "$libgcj_interpreter" = yes; then
19399 $as_echo "#define INTERPRETER 1" >>confdefs.h
19402 INTERPRETER="$libgcj_interpreter"
19404 if test "$libgcj_interpreter" = yes; then
19405 INTERPRETER_TRUE=
19406 INTERPRETER_FALSE='#'
19407 else
19408 INTERPRETER_TRUE='#'
19409 INTERPRETER_FALSE=
19413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception model to use" >&5
19414 $as_echo_n "checking for exception model to use... " >&6; }
19415 ac_ext=cpp
19416 ac_cpp='$CXXCPP $CPPFLAGS'
19417 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19418 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19419 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19421 # Check whether --enable-sjlj-exceptions was given.
19422 if test "${enable_sjlj_exceptions+set}" = set; then :
19423 enableval=$enable_sjlj_exceptions; :
19424 else
19425 cat > conftest.$ac_ext << EOF
19426 #line 19426 "configure"
19427 struct S { ~S(); };
19428 void bar();
19429 void foo()
19431 S s;
19432 bar();
19435 old_CXXFLAGS="$CXXFLAGS"
19436 CXXFLAGS=-S
19437 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19438 (eval $ac_compile) 2>&5
19439 ac_status=$?
19440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19441 test $ac_status = 0; }; then
19442 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
19443 enable_sjlj_exceptions=yes
19444 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
19445 enable_sjlj_exceptions=no
19446 elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then
19447 # ARM EH ABI.
19448 enable_sjlj_exceptions=no
19451 CXXFLAGS="$old_CXXFLAGS"
19452 rm -f conftest*
19455 if test x$enable_sjlj_exceptions = xyes; then
19457 $as_echo "#define SJLJ_EXCEPTIONS 1" >>confdefs.h
19459 ac_exception_model_name=sjlj
19460 elif test x$enable_sjlj_exceptions = xno; then
19461 ac_exception_model_name="call frame"
19462 else
19463 as_fn_error "unable to detect exception model" "$LINENO" 5
19465 ac_ext=c
19466 ac_cpp='$CPP $CPPFLAGS'
19467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_exception_model_name" >&5
19472 $as_echo "$ac_exception_model_name" >&6; }
19474 # If we are non using SJLJ exceptions, and this host does not have support
19475 # for unwinding from a signal handler, enable checked dereferences and divides.
19476 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
19477 CHECKREFSPEC=-fcheck-references
19478 DIVIDESPEC=-fuse-divide-subroutine
19479 EXCEPTIONSPEC=
19482 # See if the user wants to disable java.net. This is the mildly
19483 # ugly way that we admit that target-side configuration sucks.
19484 # Check whether --enable-java-net was given.
19485 if test "${enable_java_net+set}" = set; then :
19486 enableval=$enable_java_net;
19490 # Whether java.net is built by default can depend on the target.
19491 if test -z "$enable_java_net"; then
19492 enable_java_net=${enable_java_net_default-yes}
19494 if test "$enable_java_net" = no; then
19496 $as_echo "#define DISABLE_JAVA_NET 1" >>confdefs.h
19500 # See if the user wants to configure without libffi. Some
19501 # architectures don't support it, and default values are set in
19502 # configure.host.
19504 # Check whether --with-libffi was given.
19505 if test "${with_libffi+set}" = set; then :
19506 withval=$with_libffi; :
19507 else
19508 with_libffi=${with_libffi_default-yes}
19512 LIBFFI=
19513 LIBFFIINCS=
19514 if test "$with_libffi" != no; then
19516 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
19518 LIBFFI=../libffi/libffi_convenience.la
19519 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
19524 # See if the user wants to disable JVMPI support.
19525 # Check whether --enable-jvmpi was given.
19526 if test "${enable_jvmpi+set}" = set; then :
19527 enableval=$enable_jvmpi;
19531 if test "$enable_jvmpi" != no; then
19533 $as_echo "#define ENABLE_JVMPI 1" >>confdefs.h
19537 # If the target is an eCos system, use the appropriate eCos
19538 # I/O routines.
19539 # FIXME: this should not be a local option but a global target
19540 # system; at present there is no eCos target.
19541 TARGET_ECOS=${PROCESS-"no"}
19543 # Check whether --with-ecos was given.
19544 if test "${with_ecos+set}" = set; then :
19545 withval=$with_ecos; TARGET_ECOS="$with_ecos"
19550 case "$TARGET_ECOS" in
19551 no) case "$host" in
19552 *mingw*)
19553 PLATFORM=Win32
19554 PLATFORMNET=Win32
19555 PLATFORMH=win32.h
19557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'ld' is at least 2.13" >&5
19558 $as_echo_n "checking whether 'ld' is at least 2.13... " >&6; }
19559 LD_PROG=`$CC --print-prog-name=ld`
19560 LD_VERSION=`$LD_PROG --version`
19561 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
19562 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
19563 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
19564 LD_OK="ok"
19565 else
19566 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
19567 LD_OK="ok"
19570 if test "x$LD_OK" != x; then
19571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19572 $as_echo "yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19573 else
19574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19575 $as_echo "no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
19577 $as_echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
19579 $as_echo "#define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1" >>confdefs.h
19584 PLATFORM=Posix
19585 PLATFORMNET=Posix
19586 PLATFORMH=posix.h
19588 esac
19591 PLATFORM=Ecos
19592 PLATFORMNET=NoNet
19594 $as_echo "#define ECOS 1" >>confdefs.h
19596 PLATFORMH=posix.h
19598 esac
19600 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
19603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19604 /* end confdefs.h. */
19605 #include <stdint.h>
19607 _ACEOF
19608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19609 $EGREP "uint32_t" >/dev/null 2>&1; then :
19611 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19614 rm -f conftest*
19616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19617 /* end confdefs.h. */
19618 #include <inttypes.h>
19620 _ACEOF
19621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19622 $EGREP "uint32_t" >/dev/null 2>&1; then :
19624 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19627 rm -f conftest*
19629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19630 /* end confdefs.h. */
19631 #include <sys/types.h>
19633 _ACEOF
19634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19635 $EGREP "u_int32_t" >/dev/null 2>&1; then :
19637 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19640 rm -f conftest*
19642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19643 /* end confdefs.h. */
19644 #include <sys/config.h>
19646 _ACEOF
19647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19648 $EGREP "u_int32_t" >/dev/null 2>&1; then :
19650 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19653 rm -f conftest*
19656 if test "$PLATFORM" = Win32; then
19657 USING_WIN32_PLATFORM_TRUE=
19658 USING_WIN32_PLATFORM_FALSE='#'
19659 else
19660 USING_WIN32_PLATFORM_TRUE='#'
19661 USING_WIN32_PLATFORM_FALSE=
19664 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
19665 USING_POSIX_PLATFORM_TRUE=
19666 USING_POSIX_PLATFORM_FALSE='#'
19667 else
19668 USING_POSIX_PLATFORM_TRUE='#'
19669 USING_POSIX_PLATFORM_FALSE=
19673 case "$host" in
19674 *-darwin*) DARWIN_CRT=true ;;
19675 *) DARWIN_CRT=false ;;
19676 esac
19677 if $DARWIN_CRT; then
19678 USING_DARWIN_CRT_TRUE=
19679 USING_DARWIN_CRT_FALSE='#'
19680 else
19681 USING_DARWIN_CRT_TRUE='#'
19682 USING_DARWIN_CRT_FALSE=
19686 # This may not be defined in a non-ANS conformant embedded system.
19687 # FIXME: Should these case a runtime exception in that case?
19688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19689 /* end confdefs.h. */
19690 #include <time.h>
19692 _ACEOF
19693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19694 $EGREP "localtime" >/dev/null 2>&1; then :
19696 $as_echo "#define HAVE_LOCALTIME 1" >>confdefs.h
19699 rm -f conftest*
19702 # Create the subdirectory for natFile.cc, or the attempt
19703 # to create the link will fail.
19704 test -d java || mkdir java
19705 test -d java/io || mkdir java/io
19706 test -d gnu || mkdir gnu
19707 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
19710 # Likewise for natConcreteProcess.cc.
19711 test -d java/lang || mkdir java/lang
19712 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
19715 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
19716 test -d java/net || mkdir java/net
19717 ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
19719 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
19722 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
19723 test -d gnu/java || mkdir gnu/java
19724 test -d gnu/java/net || mkdir gnu/java/net
19725 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
19727 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
19730 # Likewise for natVMPipe.cc and natVMSelector.cc.
19731 test -d gnu/java/nio || mkdir gnu/java/nio
19732 ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
19734 ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
19737 # Likewise for natFileChannelImpl.cc
19738 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
19739 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
19742 # Likewise for natVMSecureRandom.cc
19743 test -d gnu/java/security || mkdir gnu/java/security
19744 test -d gnu/java/security/jce || mkdir gnu/java/security/jce
19745 test -d gnu/java/security/jce/prng || mkdir gnu/java/security/jce/prng
19746 ac_config_links="$ac_config_links gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc"
19749 case "${host}" in
19750 *mingw*)
19751 SYSTEMSPEC="-lgdi32 -lws2_32"
19752 if test "${with_win32_nlsapi}" = "unicows"; then
19753 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
19756 *-*-darwin[912]*)
19757 SYSTEMSPEC="-allow_stack_execute"
19760 SYSTEMSPEC=
19762 esac
19766 # Check whether --with-system-zlib was given.
19767 if test "${with_system_zlib+set}" = set; then :
19768 withval=$with_system_zlib;
19771 ZLIBSPEC=
19773 ZLIBTESTSPEC=
19776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19777 $as_echo_n "checking for X... " >&6; }
19780 # Check whether --with-x was given.
19781 if test "${with_x+set}" = set; then :
19782 withval=$with_x;
19785 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19786 if test "x$with_x" = xno; then
19787 # The user explicitly disabled X.
19788 have_x=disabled
19789 else
19790 case $x_includes,$x_libraries in #(
19791 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
19792 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
19793 $as_echo_n "(cached) " >&6
19794 else
19795 # One or both of the vars are not set, and there is no cached value.
19796 ac_x_includes=no ac_x_libraries=no
19797 rm -f -r conftest.dir
19798 if mkdir conftest.dir; then
19799 cd conftest.dir
19800 cat >Imakefile <<'_ACEOF'
19801 incroot:
19802 @echo incroot='${INCROOT}'
19803 usrlibdir:
19804 @echo usrlibdir='${USRLIBDIR}'
19805 libdir:
19806 @echo libdir='${LIBDIR}'
19807 _ACEOF
19808 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19809 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19810 for ac_var in incroot usrlibdir libdir; do
19811 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19812 done
19813 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19814 for ac_extension in a so sl dylib la dll; do
19815 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19816 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19817 ac_im_usrlibdir=$ac_im_libdir; break
19819 done
19820 # Screen out bogus values from the imake configuration. They are
19821 # bogus both because they are the default anyway, and because
19822 # using them would break gcc on systems where it needs fixed includes.
19823 case $ac_im_incroot in
19824 /usr/include) ac_x_includes= ;;
19825 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19826 esac
19827 case $ac_im_usrlibdir in
19828 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19829 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19830 esac
19832 cd ..
19833 rm -f -r conftest.dir
19836 # Standard set of common directories for X headers.
19837 # Check X11 before X11Rn because it is often a symlink to the current release.
19838 ac_x_header_dirs='
19839 /usr/X11/include
19840 /usr/X11R7/include
19841 /usr/X11R6/include
19842 /usr/X11R5/include
19843 /usr/X11R4/include
19845 /usr/include/X11
19846 /usr/include/X11R7
19847 /usr/include/X11R6
19848 /usr/include/X11R5
19849 /usr/include/X11R4
19851 /usr/local/X11/include
19852 /usr/local/X11R7/include
19853 /usr/local/X11R6/include
19854 /usr/local/X11R5/include
19855 /usr/local/X11R4/include
19857 /usr/local/include/X11
19858 /usr/local/include/X11R7
19859 /usr/local/include/X11R6
19860 /usr/local/include/X11R5
19861 /usr/local/include/X11R4
19863 /usr/X386/include
19864 /usr/x386/include
19865 /usr/XFree86/include/X11
19867 /usr/include
19868 /usr/local/include
19869 /usr/unsupported/include
19870 /usr/athena/include
19871 /usr/local/x11r5/include
19872 /usr/lpp/Xamples/include
19874 /usr/openwin/include
19875 /usr/openwin/share/include'
19877 if test "$ac_x_includes" = no; then
19878 # Guess where to find include files, by looking for Xlib.h.
19879 # First, try using that file with no special directory specified.
19880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19881 /* end confdefs.h. */
19882 #include <X11/Xlib.h>
19883 _ACEOF
19884 if ac_fn_c_try_cpp "$LINENO"; then :
19885 # We can compile using X headers with no special include directory.
19886 ac_x_includes=
19887 else
19888 for ac_dir in $ac_x_header_dirs; do
19889 if test -r "$ac_dir/X11/Xlib.h"; then
19890 ac_x_includes=$ac_dir
19891 break
19893 done
19895 rm -f conftest.err conftest.$ac_ext
19896 fi # $ac_x_includes = no
19898 if test "$ac_x_libraries" = no; then
19899 # Check for the libraries.
19900 # See if we find them without any special options.
19901 # Don't add to $LIBS permanently.
19902 ac_save_LIBS=$LIBS
19903 LIBS="-lX11 $LIBS"
19904 if test x$gcc_no_link = xyes; then
19905 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19908 /* end confdefs.h. */
19909 #include <X11/Xlib.h>
19911 main ()
19913 XrmInitialize ()
19915 return 0;
19917 _ACEOF
19918 if ac_fn_c_try_link "$LINENO"; then :
19919 LIBS=$ac_save_LIBS
19920 # We can link X programs with no special library path.
19921 ac_x_libraries=
19922 else
19923 LIBS=$ac_save_LIBS
19924 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19926 # Don't even attempt the hair of trying to link an X program!
19927 for ac_extension in a so sl dylib la dll; do
19928 if test -r "$ac_dir/libX11.$ac_extension"; then
19929 ac_x_libraries=$ac_dir
19930 break 2
19932 done
19933 done
19935 rm -f core conftest.err conftest.$ac_objext \
19936 conftest$ac_exeext conftest.$ac_ext
19937 fi # $ac_x_libraries = no
19939 case $ac_x_includes,$ac_x_libraries in #(
19940 no,* | *,no | *\'*)
19941 # Didn't find X, or a directory has "'" in its name.
19942 ac_cv_have_x="have_x=no";; #(
19944 # Record where we found X for the cache.
19945 ac_cv_have_x="have_x=yes\
19946 ac_x_includes='$ac_x_includes'\
19947 ac_x_libraries='$ac_x_libraries'"
19948 esac
19950 ;; #(
19951 *) have_x=yes;;
19952 esac
19953 eval "$ac_cv_have_x"
19954 fi # $with_x != no
19956 if test "$have_x" != yes; then
19957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19958 $as_echo "$have_x" >&6; }
19959 no_x=yes
19960 else
19961 # If each of the values was on the command line, it overrides each guess.
19962 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19963 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19964 # Update the cache value to reflect the command line values.
19965 ac_cv_have_x="have_x=yes\
19966 ac_x_includes='$x_includes'\
19967 ac_x_libraries='$x_libraries'"
19968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19969 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
19972 if test "$no_x" = yes; then
19973 # Not all programs may use this symbol, but it does not hurt to define it.
19975 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
19977 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19978 else
19979 if test -n "$x_includes"; then
19980 X_CFLAGS="$X_CFLAGS -I$x_includes"
19983 # It would also be nice to do this for all -L options, not just this one.
19984 if test -n "$x_libraries"; then
19985 X_LIBS="$X_LIBS -L$x_libraries"
19986 # For Solaris; some versions of Sun CC require a space after -R and
19987 # others require no space. Words are not sufficient . . . .
19988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
19989 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
19990 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19991 ac_xsave_c_werror_flag=$ac_c_werror_flag
19992 ac_c_werror_flag=yes
19993 if test x$gcc_no_link = xyes; then
19994 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19997 /* end confdefs.h. */
20000 main ()
20004 return 0;
20006 _ACEOF
20007 if ac_fn_c_try_link "$LINENO"; then :
20008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20009 $as_echo "no" >&6; }
20010 X_LIBS="$X_LIBS -R$x_libraries"
20011 else
20012 LIBS="$ac_xsave_LIBS -R $x_libraries"
20013 if test x$gcc_no_link = xyes; then
20014 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20017 /* end confdefs.h. */
20020 main ()
20024 return 0;
20026 _ACEOF
20027 if ac_fn_c_try_link "$LINENO"; then :
20028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20029 $as_echo "yes" >&6; }
20030 X_LIBS="$X_LIBS -R $x_libraries"
20031 else
20032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
20033 $as_echo "neither works" >&6; }
20035 rm -f core conftest.err conftest.$ac_objext \
20036 conftest$ac_exeext conftest.$ac_ext
20038 rm -f core conftest.err conftest.$ac_objext \
20039 conftest$ac_exeext conftest.$ac_ext
20040 ac_c_werror_flag=$ac_xsave_c_werror_flag
20041 LIBS=$ac_xsave_LIBS
20044 # Check for system-dependent libraries X programs must link with.
20045 # Do this before checking for the system-independent R6 libraries
20046 # (-lICE), since we may need -lsocket or whatever for X linking.
20048 if test "$ISC" = yes; then
20049 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20050 else
20051 # Martyn Johnson says this is needed for Ultrix, if the X
20052 # libraries were built with DECnet support. And Karl Berry says
20053 # the Alpha needs dnet_stub (dnet does not exist).
20054 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20055 if test x$gcc_no_link = xyes; then
20056 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20059 /* end confdefs.h. */
20061 /* Override any GCC internal prototype to avoid an error.
20062 Use char because int might match the return type of a GCC
20063 builtin and then its argument prototype would still apply. */
20064 #ifdef __cplusplus
20065 extern "C"
20066 #endif
20067 char XOpenDisplay ();
20069 main ()
20071 return XOpenDisplay ();
20073 return 0;
20075 _ACEOF
20076 if ac_fn_c_try_link "$LINENO"; then :
20078 else
20079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
20080 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
20081 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
20082 $as_echo_n "(cached) " >&6
20083 else
20084 ac_check_lib_save_LIBS=$LIBS
20085 LIBS="-ldnet $LIBS"
20086 if test x$gcc_no_link = xyes; then
20087 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20090 /* end confdefs.h. */
20092 /* Override any GCC internal prototype to avoid an error.
20093 Use char because int might match the return type of a GCC
20094 builtin and then its argument prototype would still apply. */
20095 #ifdef __cplusplus
20096 extern "C"
20097 #endif
20098 char dnet_ntoa ();
20100 main ()
20102 return dnet_ntoa ();
20104 return 0;
20106 _ACEOF
20107 if ac_fn_c_try_link "$LINENO"; then :
20108 ac_cv_lib_dnet_dnet_ntoa=yes
20109 else
20110 ac_cv_lib_dnet_dnet_ntoa=no
20112 rm -f core conftest.err conftest.$ac_objext \
20113 conftest$ac_exeext conftest.$ac_ext
20114 LIBS=$ac_check_lib_save_LIBS
20116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20117 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20118 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
20119 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20122 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
20124 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
20125 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
20126 $as_echo_n "(cached) " >&6
20127 else
20128 ac_check_lib_save_LIBS=$LIBS
20129 LIBS="-ldnet_stub $LIBS"
20130 if test x$gcc_no_link = xyes; then
20131 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20134 /* end confdefs.h. */
20136 /* Override any GCC internal prototype to avoid an error.
20137 Use char because int might match the return type of a GCC
20138 builtin and then its argument prototype would still apply. */
20139 #ifdef __cplusplus
20140 extern "C"
20141 #endif
20142 char dnet_ntoa ();
20144 main ()
20146 return dnet_ntoa ();
20148 return 0;
20150 _ACEOF
20151 if ac_fn_c_try_link "$LINENO"; then :
20152 ac_cv_lib_dnet_stub_dnet_ntoa=yes
20153 else
20154 ac_cv_lib_dnet_stub_dnet_ntoa=no
20156 rm -f core conftest.err conftest.$ac_objext \
20157 conftest$ac_exeext conftest.$ac_ext
20158 LIBS=$ac_check_lib_save_LIBS
20160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20161 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20162 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
20163 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20168 rm -f core conftest.err conftest.$ac_objext \
20169 conftest$ac_exeext conftest.$ac_ext
20170 LIBS="$ac_xsave_LIBS"
20172 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20173 # to get the SysV transport functions.
20174 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20175 # needs -lnsl.
20176 # The nsl library prevents programs from opening the X display
20177 # on Irix 5.2, according to T.E. Dickey.
20178 # The functions gethostbyname, getservbyname, and inet_addr are
20179 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20180 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
20181 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
20185 if test $ac_cv_func_gethostbyname = no; then
20186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20187 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20188 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
20189 $as_echo_n "(cached) " >&6
20190 else
20191 ac_check_lib_save_LIBS=$LIBS
20192 LIBS="-lnsl $LIBS"
20193 if test x$gcc_no_link = xyes; then
20194 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20197 /* end confdefs.h. */
20199 /* Override any GCC internal prototype to avoid an error.
20200 Use char because int might match the return type of a GCC
20201 builtin and then its argument prototype would still apply. */
20202 #ifdef __cplusplus
20203 extern "C"
20204 #endif
20205 char gethostbyname ();
20207 main ()
20209 return gethostbyname ();
20211 return 0;
20213 _ACEOF
20214 if ac_fn_c_try_link "$LINENO"; then :
20215 ac_cv_lib_nsl_gethostbyname=yes
20216 else
20217 ac_cv_lib_nsl_gethostbyname=no
20219 rm -f core conftest.err conftest.$ac_objext \
20220 conftest$ac_exeext conftest.$ac_ext
20221 LIBS=$ac_check_lib_save_LIBS
20223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20224 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20225 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
20226 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20229 if test $ac_cv_lib_nsl_gethostbyname = no; then
20230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20231 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20232 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
20233 $as_echo_n "(cached) " >&6
20234 else
20235 ac_check_lib_save_LIBS=$LIBS
20236 LIBS="-lbsd $LIBS"
20237 if test x$gcc_no_link = xyes; then
20238 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20241 /* end confdefs.h. */
20243 /* Override any GCC internal prototype to avoid an error.
20244 Use char because int might match the return type of a GCC
20245 builtin and then its argument prototype would still apply. */
20246 #ifdef __cplusplus
20247 extern "C"
20248 #endif
20249 char gethostbyname ();
20251 main ()
20253 return gethostbyname ();
20255 return 0;
20257 _ACEOF
20258 if ac_fn_c_try_link "$LINENO"; then :
20259 ac_cv_lib_bsd_gethostbyname=yes
20260 else
20261 ac_cv_lib_bsd_gethostbyname=no
20263 rm -f core conftest.err conftest.$ac_objext \
20264 conftest$ac_exeext conftest.$ac_ext
20265 LIBS=$ac_check_lib_save_LIBS
20267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
20268 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
20269 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
20270 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20276 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20277 # socket/setsockopt and other routines are undefined under SCO ODT
20278 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20279 # on later versions), says Simon Leinen: it contains gethostby*
20280 # variants that don't use the name server (or something). -lsocket
20281 # must be given before -lnsl if both are needed. We assume that
20282 # if connect needs -lnsl, so does gethostbyname.
20283 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
20284 if test "x$ac_cv_func_connect" = x""yes; then :
20288 if test $ac_cv_func_connect = no; then
20289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
20290 $as_echo_n "checking for connect in -lsocket... " >&6; }
20291 if test "${ac_cv_lib_socket_connect+set}" = set; then :
20292 $as_echo_n "(cached) " >&6
20293 else
20294 ac_check_lib_save_LIBS=$LIBS
20295 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20296 if test x$gcc_no_link = xyes; then
20297 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20300 /* end confdefs.h. */
20302 /* Override any GCC internal prototype to avoid an error.
20303 Use char because int might match the return type of a GCC
20304 builtin and then its argument prototype would still apply. */
20305 #ifdef __cplusplus
20306 extern "C"
20307 #endif
20308 char connect ();
20310 main ()
20312 return connect ();
20314 return 0;
20316 _ACEOF
20317 if ac_fn_c_try_link "$LINENO"; then :
20318 ac_cv_lib_socket_connect=yes
20319 else
20320 ac_cv_lib_socket_connect=no
20322 rm -f core conftest.err conftest.$ac_objext \
20323 conftest$ac_exeext conftest.$ac_ext
20324 LIBS=$ac_check_lib_save_LIBS
20326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
20327 $as_echo "$ac_cv_lib_socket_connect" >&6; }
20328 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
20329 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20334 # Guillermo Gomez says -lposix is necessary on A/UX.
20335 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
20336 if test "x$ac_cv_func_remove" = x""yes; then :
20340 if test $ac_cv_func_remove = no; then
20341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
20342 $as_echo_n "checking for remove in -lposix... " >&6; }
20343 if test "${ac_cv_lib_posix_remove+set}" = set; then :
20344 $as_echo_n "(cached) " >&6
20345 else
20346 ac_check_lib_save_LIBS=$LIBS
20347 LIBS="-lposix $LIBS"
20348 if test x$gcc_no_link = xyes; then
20349 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20352 /* end confdefs.h. */
20354 /* Override any GCC internal prototype to avoid an error.
20355 Use char because int might match the return type of a GCC
20356 builtin and then its argument prototype would still apply. */
20357 #ifdef __cplusplus
20358 extern "C"
20359 #endif
20360 char remove ();
20362 main ()
20364 return remove ();
20366 return 0;
20368 _ACEOF
20369 if ac_fn_c_try_link "$LINENO"; then :
20370 ac_cv_lib_posix_remove=yes
20371 else
20372 ac_cv_lib_posix_remove=no
20374 rm -f core conftest.err conftest.$ac_objext \
20375 conftest$ac_exeext conftest.$ac_ext
20376 LIBS=$ac_check_lib_save_LIBS
20378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
20379 $as_echo "$ac_cv_lib_posix_remove" >&6; }
20380 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
20381 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20386 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20387 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20388 if test "x$ac_cv_func_shmat" = x""yes; then :
20392 if test $ac_cv_func_shmat = no; then
20393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
20394 $as_echo_n "checking for shmat in -lipc... " >&6; }
20395 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
20396 $as_echo_n "(cached) " >&6
20397 else
20398 ac_check_lib_save_LIBS=$LIBS
20399 LIBS="-lipc $LIBS"
20400 if test x$gcc_no_link = xyes; then
20401 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20404 /* end confdefs.h. */
20406 /* Override any GCC internal prototype to avoid an error.
20407 Use char because int might match the return type of a GCC
20408 builtin and then its argument prototype would still apply. */
20409 #ifdef __cplusplus
20410 extern "C"
20411 #endif
20412 char shmat ();
20414 main ()
20416 return shmat ();
20418 return 0;
20420 _ACEOF
20421 if ac_fn_c_try_link "$LINENO"; then :
20422 ac_cv_lib_ipc_shmat=yes
20423 else
20424 ac_cv_lib_ipc_shmat=no
20426 rm -f core conftest.err conftest.$ac_objext \
20427 conftest$ac_exeext conftest.$ac_ext
20428 LIBS=$ac_check_lib_save_LIBS
20430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
20431 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20432 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
20433 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20439 # Check for libraries that X11R6 Xt/Xaw programs need.
20440 ac_save_LDFLAGS=$LDFLAGS
20441 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20442 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20443 # check for ICE first), but we must link in the order -lSM -lICE or
20444 # we get undefined symbols. So assume we have SM if we have ICE.
20445 # These have to be linked with before -lX11, unlike the other
20446 # libraries we check for below, so use a different variable.
20447 # John Interrante, Karl Berry
20448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
20449 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20450 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
20451 $as_echo_n "(cached) " >&6
20452 else
20453 ac_check_lib_save_LIBS=$LIBS
20454 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20455 if test x$gcc_no_link = xyes; then
20456 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20459 /* end confdefs.h. */
20461 /* Override any GCC internal prototype to avoid an error.
20462 Use char because int might match the return type of a GCC
20463 builtin and then its argument prototype would still apply. */
20464 #ifdef __cplusplus
20465 extern "C"
20466 #endif
20467 char IceConnectionNumber ();
20469 main ()
20471 return IceConnectionNumber ();
20473 return 0;
20475 _ACEOF
20476 if ac_fn_c_try_link "$LINENO"; then :
20477 ac_cv_lib_ICE_IceConnectionNumber=yes
20478 else
20479 ac_cv_lib_ICE_IceConnectionNumber=no
20481 rm -f core conftest.err conftest.$ac_objext \
20482 conftest$ac_exeext conftest.$ac_ext
20483 LIBS=$ac_check_lib_save_LIBS
20485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20486 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20487 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
20488 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20491 LDFLAGS=$ac_save_LDFLAGS
20496 # FIXME: this should be _libs on some hosts.
20497 libsubdir=.libs
20499 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20501 LIBSTDCXXSPEC=
20502 # extra LD Flags which are required for targets
20503 case "${host}" in
20504 *-*-darwin[0-7].*)
20505 # For now we have to disable it on darwin[8-9] because it slows down
20506 # the linking phase. A possible bug in ld?
20507 # on Darwin -single_module speeds up loading of the dynamic libraries.
20508 extra_ldflags_libjava=-Wl,-single_module
20510 arm*linux*eabi)
20511 # Some of the ARM unwinder code is actually in libstdc++. We
20512 # could in principle replicate it in libgcj, but it's better to
20513 # have a dependency on libstdc++.
20514 extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20515 LIBSTDCXXSPEC=-lstdc++
20516 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20518 *-*-cygwin)
20519 extra_ldflags_libjava=-liconv
20521 esac
20528 # Allow the GC to be disabled. Can be useful when debugging.
20529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for garbage collector to use" >&5
20530 $as_echo_n "checking for garbage collector to use... " >&6; }
20531 # Check whether --enable-java-gc was given.
20532 if test "${enable_java_gc+set}" = set; then :
20533 enableval=$enable_java_gc; GC=$enableval
20534 else
20535 GC=boehm
20538 GCLIBS=
20539 GCINCS=
20540 GCDEPS=
20541 GCSPEC=
20542 JC1GCSPEC=
20543 GCTESTSPEC=
20544 case "$GC" in
20545 boehm)
20546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: boehm" >&5
20547 $as_echo "boehm" >&6; }
20548 GCLIBS=../boehm-gc/libgcjgc_convenience.la
20549 JC1GCSPEC='-fuse-boehm-gc'
20550 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20551 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20552 GCOBJS=boehm.lo
20553 GCHDR=boehm-gc.h
20554 # The POSIX thread support needs to know this.
20556 $as_echo "#define HAVE_BOEHM_GC 1" >>confdefs.h
20560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
20561 $as_echo "none" >&6; }
20562 GCHDR=no-gc.h
20565 as_fn_error "unrecognized collector \"$GC\"" "$LINENO" 5
20567 esac
20574 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20576 if test "$GC" = boehm; then
20577 USING_BOEHMGC_TRUE=
20578 USING_BOEHMGC_FALSE='#'
20579 else
20580 USING_BOEHMGC_TRUE='#'
20581 USING_BOEHMGC_FALSE=
20584 if test "$GC" = no; then
20585 USING_NOGC_TRUE=
20586 USING_NOGC_FALSE='#'
20587 else
20588 USING_NOGC_TRUE='#'
20589 USING_NOGC_FALSE=
20594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
20595 $as_echo_n "checking for thread model used by GCC... " >&6; }
20596 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
20598 $as_echo "$THREADS" >&6; }
20600 case "$THREADS" in
20601 no | none | single)
20602 THREADS=none
20604 aix | posix | posix95 | pthreads)
20605 THREADS=posix
20606 case "$host" in
20607 *-*-linux*)
20609 $as_echo "#define LINUX_THREADS 1" >>confdefs.h
20612 esac
20614 win32)
20616 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
20617 as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
20620 as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
20622 esac
20624 THREADCXXFLAGS=
20625 THREADLDFLAGS=
20626 THREADLIBS=
20627 THREADINCS=
20628 THREADDEPS=
20629 THREADH=
20630 THREADSPEC=
20631 THREADSTARTFILESPEC=
20632 case "$THREADS" in
20633 posix)
20634 case "$host" in
20635 *-*-cygwin*)
20636 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
20638 *-*-freebsd[1234]*)
20639 # Before FreeBSD 5, it didn't have -lpthread (or any library which
20640 # merely adds pthread_* functions) but it does have a -pthread switch
20641 # which is required at link-time to select -lc_r *instead* of -lc.
20642 THREADLDFLAGS=-pthread
20643 # Don't set THREADSPEC here as might be expected since -pthread is
20644 # not processed when found within a spec file, it must come from
20645 # the command line. For now, the user must provide the -pthread
20646 # switch to link code compiled with gcj. In future, consider adding
20647 # support for weak references to pthread_* functions ala gthr.h API.
20648 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20650 *-*-freebsd*)
20651 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20652 # systems which support threads and -lpthread.
20653 THREADLDFLAGS=-pthread
20654 THREADSPEC=-lpthread
20656 alpha*-dec-osf* | hppa*-hp-hpux*)
20657 THREADCXXFLAGS=-pthread
20658 # boehm-gc needs some functions from librt, so link that too.
20659 THREADLIBS='-lpthread -lrt'
20660 THREADSPEC='-lpthread -lrt'
20663 THREADLIBS=-lpthread
20664 THREADSPEC=-lpthread
20666 esac
20667 THREADH=posix-threads.h
20668 # MIT pthreads doesn't seem to have the mutexattr functions.
20669 # But for now we don't check for it. We just assume you aren't
20670 # using MIT pthreads.
20672 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20675 # If we're using the Boehm GC, then we happen to know that it
20676 # defines _REENTRANT, so we don't bother. Eww.
20677 if test "$GC" != boehm; then
20679 $as_echo "#define _REENTRANT 1" >>confdefs.h
20683 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
20687 win32)
20688 THREADH=win32-threads.h
20689 THREADCXXFLAGS=-mthreads
20690 # We need thread-safe exception handling so _CRT_MT should be set to 1.
20691 # But we do not want the executables created to be dependent on
20692 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20693 # exception handling contexts. The following kludge achieves this effect
20694 # and causes a dummy __mingwthr_key_dtor() to be linked in from
20695 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
20696 # A workaround is to explicitly use -mthreads while linking Java programs.
20697 # See PR libgcj/28263.
20699 # FIXME: In Java we are able to detect thread death at the end of
20700 # Thread.run() so we should be able to clean up the exception handling
20701 # contexts ourselves.
20702 THREADSTARTFILESPEC='crtmt%O%s'
20705 none)
20706 THREADH=no-threads.h
20708 esac
20709 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20718 if test "$THREADS" = posix; then
20719 USING_POSIX_THREADS_TRUE=
20720 USING_POSIX_THREADS_FALSE='#'
20721 else
20722 USING_POSIX_THREADS_TRUE='#'
20723 USING_POSIX_THREADS_FALSE=
20726 if test "$THREADS" = win32; then
20727 USING_WIN32_THREADS_TRUE=
20728 USING_WIN32_THREADS_FALSE='#'
20729 else
20730 USING_WIN32_THREADS_TRUE='#'
20731 USING_WIN32_THREADS_FALSE=
20734 if test "$THREADS" = none; then
20735 USING_NO_THREADS_TRUE=
20736 USING_NO_THREADS_FALSE='#'
20737 else
20738 USING_NO_THREADS_TRUE='#'
20739 USING_NO_THREADS_FALSE=
20742 if test "$enable_shared" != yes; then
20743 use_libgcj_bc=no
20745 if test "$use_libgcj_bc" = yes; then
20746 USE_LIBGCJ_BC_TRUE=
20747 USE_LIBGCJ_BC_FALSE='#'
20748 else
20749 USE_LIBGCJ_BC_TRUE='#'
20750 USE_LIBGCJ_BC_FALSE=
20754 if test -d sysdep; then true; else mkdir sysdep; fi
20755 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20757 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20759 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20762 LIBGCJ_SPEC_LGCJ=-lgcj
20763 LIBGCJ_SPEC_LGCJ_BC=-lgcj_bc
20764 if test x"$libgcj_spec_lgcj_override" != x ; then
20765 LIBGCJ_SPEC_LGCJ=$libgcj_spec_lgcj_override
20767 if test x"$libgcj_spec_lgcj_bc_override" != x ; then
20768 LIBGCJ_SPEC_LGCJ_BC=$libgcj_spec_lgcj_bc_override
20770 LIBGCJ_SPEC="%{s-bc-abi:} $LIBGCJ_SPEC_LGCJ"
20771 if test "$use_libgcj_bc" = yes; then
20772 LIBGCJ_SPEC="%{static|static-libgcj|!s-bc-abi:$LIBGCJ_SPEC_LGCJ;:$LIBGCJ_SPEC_LGCJ_BC}"
20773 LIBGCJ_BC_SPEC="%{findirect-dispatch:-fPIC}"
20778 HASH_SYNC_SPEC=
20779 # Hash synchronization is only useful with posix threads right now.
20780 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20781 HASH_SYNC_SPEC=-fhash-synchronization
20783 $as_echo "#define JV_HASH_SYNCHRONIZATION 1" >>confdefs.h
20788 if test "$GCC" = yes; then
20789 USING_GCC_TRUE=
20790 USING_GCC_FALSE='#'
20791 else
20792 USING_GCC_TRUE='#'
20793 USING_GCC_FALSE=
20797 # We're in the tree with gcc, and need to include some of its headers.
20798 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
20800 if test "x${with_newlib}" = "xyes"; then
20801 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
20802 # may not work correctly, because the compiler may not be able to
20803 # link executables.
20805 # We assume newlib. This lets us hard-code the functions we know
20806 # we'll have.
20808 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20811 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
20814 $as_echo "#define HAVE_TIME 1" >>confdefs.h
20817 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20820 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
20823 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
20825 # This is only for POSIX threads.
20827 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20830 # Assume we do not have getuid and friends.
20832 $as_echo "#define NO_GETUID 1" >>confdefs.h
20834 PLATFORMNET=NoNet
20835 else
20836 for ac_func in strerror_r select fstat open fsync sleep opendir \
20837 localtime_r getpwuid_r getcwd \
20838 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20839 nl_langinfo setlocale \
20840 inet_pton uname inet_ntoa \
20841 getrlimit sigaction ftruncate mmap \
20842 getifaddrs
20843 do :
20844 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20845 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20846 eval as_val=\$$as_ac_var
20847 if test "x$as_val" = x""yes; then :
20848 cat >>confdefs.h <<_ACEOF
20849 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20850 _ACEOF
20853 done
20855 for ac_func in inet_aton inet_addr
20856 do :
20857 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20858 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20859 eval as_val=\$$as_ac_var
20860 if test "x$as_val" = x""yes; then :
20861 cat >>confdefs.h <<_ACEOF
20862 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20863 _ACEOF
20864 break
20866 done
20868 for ac_header in unistd.h dlfcn.h sys/resource.h
20869 do :
20870 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20871 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20872 eval as_val=\$$as_ac_Header
20873 if test "x$as_val" = x""yes; then :
20874 cat >>confdefs.h <<_ACEOF
20875 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20876 _ACEOF
20880 done
20882 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
20883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5
20884 $as_echo_n "checking for dladdr in -ldl... " >&6; }
20885 if test "${ac_cv_lib_dl_dladdr+set}" = set; then :
20886 $as_echo_n "(cached) " >&6
20887 else
20888 ac_check_lib_save_LIBS=$LIBS
20889 LIBS="-ldl $LIBS"
20890 if test x$gcc_no_link = xyes; then
20891 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20894 /* end confdefs.h. */
20896 /* Override any GCC internal prototype to avoid an error.
20897 Use char because int might match the return type of a GCC
20898 builtin and then its argument prototype would still apply. */
20899 #ifdef __cplusplus
20900 extern "C"
20901 #endif
20902 char dladdr ();
20904 main ()
20906 return dladdr ();
20908 return 0;
20910 _ACEOF
20911 if ac_fn_c_try_link "$LINENO"; then :
20912 ac_cv_lib_dl_dladdr=yes
20913 else
20914 ac_cv_lib_dl_dladdr=no
20916 rm -f core conftest.err conftest.$ac_objext \
20917 conftest$ac_exeext conftest.$ac_ext
20918 LIBS=$ac_check_lib_save_LIBS
20920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
20921 $as_echo "$ac_cv_lib_dl_dladdr" >&6; }
20922 if test "x$ac_cv_lib_dl_dladdr" = x""yes; then :
20925 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
20927 else
20929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldld" >&5
20930 $as_echo_n "checking for dladdr in -ldld... " >&6; }
20931 if test "${ac_cv_lib_dld_dladdr+set}" = set; then :
20932 $as_echo_n "(cached) " >&6
20933 else
20934 ac_check_lib_save_LIBS=$LIBS
20935 LIBS="-ldld $LIBS"
20936 if test x$gcc_no_link = xyes; then
20937 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20940 /* end confdefs.h. */
20942 /* Override any GCC internal prototype to avoid an error.
20943 Use char because int might match the return type of a GCC
20944 builtin and then its argument prototype would still apply. */
20945 #ifdef __cplusplus
20946 extern "C"
20947 #endif
20948 char dladdr ();
20950 main ()
20952 return dladdr ();
20954 return 0;
20956 _ACEOF
20957 if ac_fn_c_try_link "$LINENO"; then :
20958 ac_cv_lib_dld_dladdr=yes
20959 else
20960 ac_cv_lib_dld_dladdr=no
20962 rm -f core conftest.err conftest.$ac_objext \
20963 conftest$ac_exeext conftest.$ac_ext
20964 LIBS=$ac_check_lib_save_LIBS
20966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dladdr" >&5
20967 $as_echo "$ac_cv_lib_dld_dladdr" >&6; }
20968 if test "x$ac_cv_lib_dld_dladdr" = x""yes; then :
20971 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
20978 if test x"$cross_compiling" = x"no"; then
20979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/exe" >&5
20980 $as_echo_n "checking for /proc/self/exe... " >&6; }
20981 if test "${ac_cv_file__proc_self_exe+set}" = set; then :
20982 $as_echo_n "(cached) " >&6
20983 else
20984 test "$cross_compiling" = yes &&
20985 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
20986 if test -r "/proc/self/exe"; then
20987 ac_cv_file__proc_self_exe=yes
20988 else
20989 ac_cv_file__proc_self_exe=no
20992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_exe" >&5
20993 $as_echo "$ac_cv_file__proc_self_exe" >&6; }
20994 if test "x$ac_cv_file__proc_self_exe" = x""yes; then :
20996 cat >>confdefs.h <<_ACEOF
20997 #define HAVE__PROC_SELF_EXE 1
20998 _ACEOF
21001 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
21005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/maps" >&5
21006 $as_echo_n "checking for /proc/self/maps... " >&6; }
21007 if test "${ac_cv_file__proc_self_maps+set}" = set; then :
21008 $as_echo_n "(cached) " >&6
21009 else
21010 test "$cross_compiling" = yes &&
21011 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
21012 if test -r "/proc/self/maps"; then
21013 ac_cv_file__proc_self_maps=yes
21014 else
21015 ac_cv_file__proc_self_maps=no
21018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_maps" >&5
21019 $as_echo "$ac_cv_file__proc_self_maps" >&6; }
21020 if test "x$ac_cv_file__proc_self_maps" = x""yes; then :
21022 cat >>confdefs.h <<_ACEOF
21023 #define HAVE__PROC_SELF_MAPS 1
21024 _ACEOF
21027 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
21031 else
21032 case $host in
21033 *-linux*)
21035 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
21038 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
21041 esac
21045 if test "X$prefix" = "XNONE"; then
21046 acl_final_prefix="$ac_default_prefix"
21047 else
21048 acl_final_prefix="$prefix"
21050 if test "X$exec_prefix" = "XNONE"; then
21051 acl_final_exec_prefix='${prefix}'
21052 else
21053 acl_final_exec_prefix="$exec_prefix"
21055 acl_save_prefix="$prefix"
21056 prefix="$acl_final_prefix"
21057 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21058 prefix="$acl_save_prefix"
21061 # Check whether --with-gnu-ld was given.
21062 if test "${with_gnu_ld+set}" = set; then :
21063 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
21064 else
21065 with_gnu_ld=no
21068 # Prepare PATH_SEPARATOR.
21069 # The user is always right.
21070 if test "${PATH_SEPARATOR+set}" != set; then
21071 echo "#! /bin/sh" >conf$$.sh
21072 echo "exit 0" >>conf$$.sh
21073 chmod +x conf$$.sh
21074 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21075 PATH_SEPARATOR=';'
21076 else
21077 PATH_SEPARATOR=:
21079 rm -f conf$$.sh
21081 ac_prog=ld
21082 if test "$GCC" = yes; then
21083 # Check if gcc -print-prog-name=ld gives a path.
21084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
21085 $as_echo_n "checking for ld used by GCC... " >&6; }
21086 case $host in
21087 *-*-mingw*)
21088 # gcc leaves a trailing carriage return which upsets mingw
21089 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21091 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21092 esac
21093 case $ac_prog in
21094 # Accept absolute paths.
21095 [\\/]* | [A-Za-z]:[\\/]*)
21096 re_direlt='/[^/][^/]*/\.\./'
21097 # Canonicalize the path of ld
21098 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21099 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21100 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21101 done
21102 test -z "$LD" && LD="$ac_prog"
21105 # If it fails, then pretend we aren't using GCC.
21106 ac_prog=ld
21109 # If it is relative, then search for the first ld in PATH.
21110 with_gnu_ld=unknown
21112 esac
21113 elif test "$with_gnu_ld" = yes; then
21114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
21115 $as_echo_n "checking for GNU ld... " >&6; }
21116 else
21117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
21118 $as_echo_n "checking for non-GNU ld... " >&6; }
21120 if test "${acl_cv_path_LD+set}" = set; then :
21121 $as_echo_n "(cached) " >&6
21122 else
21123 if test -z "$LD"; then
21124 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21125 for ac_dir in $PATH; do
21126 test -z "$ac_dir" && ac_dir=.
21127 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21128 acl_cv_path_LD="$ac_dir/$ac_prog"
21129 # Check to see if the program is GNU ld. I'd rather use --version,
21130 # but apparently some GNU ld's only accept -v.
21131 # Break only if it was the GNU/non-GNU ld that we prefer.
21132 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
21133 test "$with_gnu_ld" != no && break
21134 else
21135 test "$with_gnu_ld" != yes && break
21138 done
21139 IFS="$ac_save_ifs"
21140 else
21141 acl_cv_path_LD="$LD" # Let the user override the test with a path.
21145 LD="$acl_cv_path_LD"
21146 if test -n "$LD"; then
21147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
21148 $as_echo "$LD" >&6; }
21149 else
21150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21151 $as_echo "no" >&6; }
21153 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
21154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
21155 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
21156 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
21157 $as_echo_n "(cached) " >&6
21158 else
21159 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21160 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
21161 acl_cv_prog_gnu_ld=yes
21162 else
21163 acl_cv_prog_gnu_ld=no
21166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
21167 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
21168 with_gnu_ld=$acl_cv_prog_gnu_ld
21172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
21173 $as_echo_n "checking for shared library run path origin... " >&6; }
21174 if test "${acl_cv_rpath+set}" = set; then :
21175 $as_echo_n "(cached) " >&6
21176 else
21178 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21179 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21180 . ./conftest.sh
21181 rm -f ./conftest.sh
21182 acl_cv_rpath=done
21185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
21186 $as_echo "$acl_cv_rpath" >&6; }
21187 wl="$acl_cv_wl"
21188 libext="$acl_cv_libext"
21189 shlibext="$acl_cv_shlibext"
21190 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21191 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21192 hardcode_direct="$acl_cv_hardcode_direct"
21193 hardcode_minus_L="$acl_cv_hardcode_minus_L"
21194 # Check whether --enable-rpath was given.
21195 if test "${enable_rpath+set}" = set; then :
21196 enableval=$enable_rpath; :
21197 else
21198 enable_rpath=yes
21208 use_additional=yes
21210 acl_save_prefix="$prefix"
21211 prefix="$acl_final_prefix"
21212 acl_save_exec_prefix="$exec_prefix"
21213 exec_prefix="$acl_final_exec_prefix"
21215 eval additional_includedir=\"$includedir\"
21216 eval additional_libdir=\"$libdir\"
21218 exec_prefix="$acl_save_exec_prefix"
21219 prefix="$acl_save_prefix"
21222 # Check whether --with-libiconv-prefix was given.
21223 if test "${with_libiconv_prefix+set}" = set; then :
21224 withval=$with_libiconv_prefix;
21225 if test "X$withval" = "Xno"; then
21226 use_additional=no
21227 else
21228 if test "X$withval" = "X"; then
21230 acl_save_prefix="$prefix"
21231 prefix="$acl_final_prefix"
21232 acl_save_exec_prefix="$exec_prefix"
21233 exec_prefix="$acl_final_exec_prefix"
21235 eval additional_includedir=\"$includedir\"
21236 eval additional_libdir=\"$libdir\"
21238 exec_prefix="$acl_save_exec_prefix"
21239 prefix="$acl_save_prefix"
21241 else
21242 additional_includedir="$withval/include"
21243 additional_libdir="$withval/lib"
21249 LIBICONV=
21250 LTLIBICONV=
21251 INCICONV=
21252 rpathdirs=
21253 ltrpathdirs=
21254 names_already_handled=
21255 names_next_round='iconv '
21256 while test -n "$names_next_round"; do
21257 names_this_round="$names_next_round"
21258 names_next_round=
21259 for name in $names_this_round; do
21260 already_handled=
21261 for n in $names_already_handled; do
21262 if test "$n" = "$name"; then
21263 already_handled=yes
21264 break
21266 done
21267 if test -z "$already_handled"; then
21268 names_already_handled="$names_already_handled $name"
21269 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21270 eval value=\"\$HAVE_LIB$uppername\"
21271 if test -n "$value"; then
21272 if test "$value" = yes; then
21273 eval value=\"\$LIB$uppername\"
21274 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21275 eval value=\"\$LTLIB$uppername\"
21276 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21277 else
21280 else
21281 found_dir=
21282 found_la=
21283 found_so=
21284 found_a=
21285 if test $use_additional = yes; then
21286 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21287 found_dir="$additional_libdir"
21288 found_so="$additional_libdir/lib$name.$shlibext"
21289 if test -f "$additional_libdir/lib$name.la"; then
21290 found_la="$additional_libdir/lib$name.la"
21292 else
21293 if test -f "$additional_libdir/lib$name.$libext"; then
21294 found_dir="$additional_libdir"
21295 found_a="$additional_libdir/lib$name.$libext"
21296 if test -f "$additional_libdir/lib$name.la"; then
21297 found_la="$additional_libdir/lib$name.la"
21302 if test "X$found_dir" = "X"; then
21303 for x in $LDFLAGS $LTLIBICONV; do
21305 acl_save_prefix="$prefix"
21306 prefix="$acl_final_prefix"
21307 acl_save_exec_prefix="$exec_prefix"
21308 exec_prefix="$acl_final_exec_prefix"
21309 eval x=\"$x\"
21310 exec_prefix="$acl_save_exec_prefix"
21311 prefix="$acl_save_prefix"
21313 case "$x" in
21314 -L*)
21315 dir=`echo "X$x" | sed -e 's/^X-L//'`
21316 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21317 found_dir="$dir"
21318 found_so="$dir/lib$name.$shlibext"
21319 if test -f "$dir/lib$name.la"; then
21320 found_la="$dir/lib$name.la"
21322 else
21323 if test -f "$dir/lib$name.$libext"; then
21324 found_dir="$dir"
21325 found_a="$dir/lib$name.$libext"
21326 if test -f "$dir/lib$name.la"; then
21327 found_la="$dir/lib$name.la"
21332 esac
21333 if test "X$found_dir" != "X"; then
21334 break
21336 done
21338 if test "X$found_dir" != "X"; then
21339 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21340 if test "X$found_so" != "X"; then
21341 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21342 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21343 else
21344 haveit=
21345 for x in $ltrpathdirs; do
21346 if test "X$x" = "X$found_dir"; then
21347 haveit=yes
21348 break
21350 done
21351 if test -z "$haveit"; then
21352 ltrpathdirs="$ltrpathdirs $found_dir"
21354 if test "$hardcode_direct" = yes; then
21355 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21356 else
21357 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21358 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21359 haveit=
21360 for x in $rpathdirs; do
21361 if test "X$x" = "X$found_dir"; then
21362 haveit=yes
21363 break
21365 done
21366 if test -z "$haveit"; then
21367 rpathdirs="$rpathdirs $found_dir"
21369 else
21370 haveit=
21371 for x in $LDFLAGS $LIBICONV; do
21373 acl_save_prefix="$prefix"
21374 prefix="$acl_final_prefix"
21375 acl_save_exec_prefix="$exec_prefix"
21376 exec_prefix="$acl_final_exec_prefix"
21377 eval x=\"$x\"
21378 exec_prefix="$acl_save_exec_prefix"
21379 prefix="$acl_save_prefix"
21381 if test "X$x" = "X-L$found_dir"; then
21382 haveit=yes
21383 break
21385 done
21386 if test -z "$haveit"; then
21387 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21389 if test "$hardcode_minus_L" != no; then
21390 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21391 else
21392 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21397 else
21398 if test "X$found_a" != "X"; then
21399 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21400 else
21401 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21404 additional_includedir=
21405 case "$found_dir" in
21406 */lib | */lib/)
21407 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21408 additional_includedir="$basedir/include"
21410 esac
21411 if test "X$additional_includedir" != "X"; then
21412 if test "X$additional_includedir" != "X/usr/include"; then
21413 haveit=
21414 if test "X$additional_includedir" = "X/usr/local/include"; then
21415 if test -n "$GCC"; then
21416 case $host_os in
21417 linux*) haveit=yes;;
21418 esac
21421 if test -z "$haveit"; then
21422 for x in $CPPFLAGS $INCICONV; do
21424 acl_save_prefix="$prefix"
21425 prefix="$acl_final_prefix"
21426 acl_save_exec_prefix="$exec_prefix"
21427 exec_prefix="$acl_final_exec_prefix"
21428 eval x=\"$x\"
21429 exec_prefix="$acl_save_exec_prefix"
21430 prefix="$acl_save_prefix"
21432 if test "X$x" = "X-I$additional_includedir"; then
21433 haveit=yes
21434 break
21436 done
21437 if test -z "$haveit"; then
21438 if test -d "$additional_includedir"; then
21439 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21445 if test -n "$found_la"; then
21446 save_libdir="$libdir"
21447 case "$found_la" in
21448 */* | *\\*) . "$found_la" ;;
21449 *) . "./$found_la" ;;
21450 esac
21451 libdir="$save_libdir"
21452 for dep in $dependency_libs; do
21453 case "$dep" in
21454 -L*)
21455 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21456 if test "X$additional_libdir" != "X/usr/lib"; then
21457 haveit=
21458 if test "X$additional_libdir" = "X/usr/local/lib"; then
21459 if test -n "$GCC"; then
21460 case $host_os in
21461 linux*) haveit=yes;;
21462 esac
21465 if test -z "$haveit"; then
21466 haveit=
21467 for x in $LDFLAGS $LIBICONV; do
21469 acl_save_prefix="$prefix"
21470 prefix="$acl_final_prefix"
21471 acl_save_exec_prefix="$exec_prefix"
21472 exec_prefix="$acl_final_exec_prefix"
21473 eval x=\"$x\"
21474 exec_prefix="$acl_save_exec_prefix"
21475 prefix="$acl_save_prefix"
21477 if test "X$x" = "X-L$additional_libdir"; then
21478 haveit=yes
21479 break
21481 done
21482 if test -z "$haveit"; then
21483 if test -d "$additional_libdir"; then
21484 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21487 haveit=
21488 for x in $LDFLAGS $LTLIBICONV; 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-L$additional_libdir"; then
21499 haveit=yes
21500 break
21502 done
21503 if test -z "$haveit"; then
21504 if test -d "$additional_libdir"; then
21505 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21511 -R*)
21512 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21513 if test "$enable_rpath" != no; then
21514 haveit=
21515 for x in $rpathdirs; do
21516 if test "X$x" = "X$dir"; then
21517 haveit=yes
21518 break
21520 done
21521 if test -z "$haveit"; then
21522 rpathdirs="$rpathdirs $dir"
21524 haveit=
21525 for x in $ltrpathdirs; do
21526 if test "X$x" = "X$dir"; then
21527 haveit=yes
21528 break
21530 done
21531 if test -z "$haveit"; then
21532 ltrpathdirs="$ltrpathdirs $dir"
21536 -l*)
21537 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21539 *.la)
21540 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21543 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21544 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21546 esac
21547 done
21549 else
21550 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21551 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21555 done
21556 done
21557 if test "X$rpathdirs" != "X"; then
21558 if test -n "$hardcode_libdir_separator"; then
21559 alldirs=
21560 for found_dir in $rpathdirs; do
21561 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21562 done
21563 acl_save_libdir="$libdir"
21564 libdir="$alldirs"
21565 eval flag=\"$hardcode_libdir_flag_spec\"
21566 libdir="$acl_save_libdir"
21567 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21568 else
21569 for found_dir in $rpathdirs; do
21570 acl_save_libdir="$libdir"
21571 libdir="$found_dir"
21572 eval flag=\"$hardcode_libdir_flag_spec\"
21573 libdir="$acl_save_libdir"
21574 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21575 done
21578 if test "X$ltrpathdirs" != "X"; then
21579 for found_dir in $ltrpathdirs; do
21580 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21581 done
21590 am_save_CPPFLAGS="$CPPFLAGS"
21592 for element in $INCICONV; do
21593 haveit=
21594 for x in $CPPFLAGS; do
21596 acl_save_prefix="$prefix"
21597 prefix="$acl_final_prefix"
21598 acl_save_exec_prefix="$exec_prefix"
21599 exec_prefix="$acl_final_exec_prefix"
21600 eval x=\"$x\"
21601 exec_prefix="$acl_save_exec_prefix"
21602 prefix="$acl_save_prefix"
21604 if test "X$x" = "X$element"; then
21605 haveit=yes
21606 break
21608 done
21609 if test -z "$haveit"; then
21610 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21612 done
21615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
21616 $as_echo_n "checking for iconv... " >&6; }
21617 if test "${am_cv_func_iconv+set}" = set; then :
21618 $as_echo_n "(cached) " >&6
21619 else
21621 am_cv_func_iconv="no, consider installing GNU libiconv"
21622 am_cv_lib_iconv=no
21623 if test x$gcc_no_link = xyes; then
21624 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21627 /* end confdefs.h. */
21628 #include <stdlib.h>
21629 #include <iconv.h>
21631 main ()
21633 iconv_t cd = iconv_open("","");
21634 iconv(cd,NULL,NULL,NULL,NULL);
21635 iconv_close(cd);
21637 return 0;
21639 _ACEOF
21640 if ac_fn_c_try_link "$LINENO"; then :
21641 am_cv_func_iconv=yes
21643 rm -f core conftest.err conftest.$ac_objext \
21644 conftest$ac_exeext conftest.$ac_ext
21645 if test "$am_cv_func_iconv" != yes; then
21646 am_save_LIBS="$LIBS"
21647 LIBS="$LIBS $LIBICONV"
21648 if test x$gcc_no_link = xyes; then
21649 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21652 /* end confdefs.h. */
21653 #include <stdlib.h>
21654 #include <iconv.h>
21656 main ()
21658 iconv_t cd = iconv_open("","");
21659 iconv(cd,NULL,NULL,NULL,NULL);
21660 iconv_close(cd);
21662 return 0;
21664 _ACEOF
21665 if ac_fn_c_try_link "$LINENO"; then :
21666 am_cv_lib_iconv=yes
21667 am_cv_func_iconv=yes
21669 rm -f core conftest.err conftest.$ac_objext \
21670 conftest$ac_exeext conftest.$ac_ext
21671 LIBS="$am_save_LIBS"
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
21676 $as_echo "$am_cv_func_iconv" >&6; }
21677 if test "$am_cv_func_iconv" = yes; then
21679 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
21682 if test "$am_cv_lib_iconv" = yes; then
21683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
21684 $as_echo_n "checking how to link with libiconv... " >&6; }
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
21686 $as_echo "$LIBICONV" >&6; }
21687 else
21688 CPPFLAGS="$am_save_CPPFLAGS"
21689 LIBICONV=
21690 LTLIBICONV=
21695 if test "$am_cv_func_iconv" = yes; then
21696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
21697 $as_echo_n "checking for iconv declaration... " >&6; }
21698 if test "${am_cv_proto_iconv+set}" = set; then :
21699 $as_echo_n "(cached) " >&6
21700 else
21702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21703 /* end confdefs.h. */
21705 #include <stdlib.h>
21706 #include <iconv.h>
21707 extern
21708 #ifdef __cplusplus
21710 #endif
21711 #if defined(__STDC__) || defined(__cplusplus)
21712 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21713 #else
21714 size_t iconv();
21715 #endif
21718 main ()
21722 return 0;
21724 _ACEOF
21725 if ac_fn_c_try_compile "$LINENO"; then :
21726 am_cv_proto_iconv_arg1=""
21727 else
21728 am_cv_proto_iconv_arg1="const"
21730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21731 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);"
21734 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
21736 }$am_cv_proto_iconv" >&5
21737 $as_echo "${ac_t:-
21738 }$am_cv_proto_iconv" >&6; }
21740 cat >>confdefs.h <<_ACEOF
21741 #define ICONV_CONST $am_cv_proto_iconv_arg1
21742 _ACEOF
21747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
21748 $as_echo_n "checking for LC_MESSAGES... " >&6; }
21749 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
21750 $as_echo_n "(cached) " >&6
21751 else
21752 if test x$gcc_no_link = xyes; then
21753 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21756 /* end confdefs.h. */
21757 #include <locale.h>
21759 main ()
21761 return LC_MESSAGES
21763 return 0;
21765 _ACEOF
21766 if ac_fn_c_try_link "$LINENO"; then :
21767 am_cv_val_LC_MESSAGES=yes
21768 else
21769 am_cv_val_LC_MESSAGES=no
21771 rm -f core conftest.err conftest.$ac_objext \
21772 conftest$ac_exeext conftest.$ac_ext
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
21775 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
21776 if test $am_cv_val_LC_MESSAGES = yes; then
21778 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
21782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21783 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21784 if test "${ac_cv_struct_tm+set}" = set; then :
21785 $as_echo_n "(cached) " >&6
21786 else
21787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21788 /* end confdefs.h. */
21789 #include <sys/types.h>
21790 #include <time.h>
21793 main ()
21795 struct tm tm;
21796 int *p = &tm.tm_sec;
21797 return !p;
21799 return 0;
21801 _ACEOF
21802 if ac_fn_c_try_compile "$LINENO"; then :
21803 ac_cv_struct_tm=time.h
21804 else
21805 ac_cv_struct_tm=sys/time.h
21807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21810 $as_echo "$ac_cv_struct_tm" >&6; }
21811 if test $ac_cv_struct_tm = sys/time.h; then
21813 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21817 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21818 #include <$ac_cv_struct_tm>
21821 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21823 cat >>confdefs.h <<_ACEOF
21824 #define HAVE_STRUCT_TM_TM_ZONE 1
21825 _ACEOF
21830 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21832 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21834 else
21835 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21837 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21838 ac_have_decl=1
21839 else
21840 ac_have_decl=0
21843 cat >>confdefs.h <<_ACEOF
21844 #define HAVE_DECL_TZNAME $ac_have_decl
21845 _ACEOF
21847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21848 $as_echo_n "checking for tzname... " >&6; }
21849 if test "${ac_cv_var_tzname+set}" = set; then :
21850 $as_echo_n "(cached) " >&6
21851 else
21852 if test x$gcc_no_link = xyes; then
21853 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21856 /* end confdefs.h. */
21857 #include <time.h>
21858 #if !HAVE_DECL_TZNAME
21859 extern char *tzname[];
21860 #endif
21863 main ()
21865 return tzname[0][0];
21867 return 0;
21869 _ACEOF
21870 if ac_fn_c_try_link "$LINENO"; then :
21871 ac_cv_var_tzname=yes
21872 else
21873 ac_cv_var_tzname=no
21875 rm -f core conftest.err conftest.$ac_objext \
21876 conftest$ac_exeext conftest.$ac_ext
21878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21879 $as_echo "$ac_cv_var_tzname" >&6; }
21880 if test $ac_cv_var_tzname = yes; then
21882 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21888 for ac_func in gethostbyname_r
21889 do :
21890 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
21891 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
21892 cat >>confdefs.h <<_ACEOF
21893 #define HAVE_GETHOSTBYNAME_R 1
21894 _ACEOF
21897 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
21899 # There are two different kinds of gethostbyname_r.
21900 # We look for the one that returns `int'.
21901 # Hopefully this check is robust enough.
21902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21903 /* end confdefs.h. */
21904 #include <netdb.h>
21906 _ACEOF
21907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21908 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then :
21911 $as_echo "#define GETHOSTBYNAME_R_RETURNS_INT 1" >>confdefs.h
21914 rm -f conftest*
21917 case " $GCINCS " in
21918 *" -D_REENTRANT "*) ;;
21920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
21921 $as_echo_n "checking whether gethostbyname_r declaration requires -D_REENTRANT... " >&6; }
21922 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then :
21923 $as_echo_n "(cached) " >&6
21924 else
21925 ac_ext=cpp
21926 ac_cpp='$CXXCPP $CPPFLAGS'
21927 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21928 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21929 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21932 /* end confdefs.h. */
21933 #include <netdb.h>
21935 main ()
21937 gethostbyname_r("", 0, 0);
21939 return 0;
21941 _ACEOF
21942 if ac_fn_cxx_try_compile "$LINENO"; then :
21943 libjava_cv_gethostbyname_r_needs_reentrant=no
21944 else
21945 CPPFLAGS_SAVE="$CPPFLAGS"
21946 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
21947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21948 /* end confdefs.h. */
21949 #include <netdb.h>
21951 main ()
21953 gethostbyname_r("", 0, 0);
21955 return 0;
21957 _ACEOF
21958 if ac_fn_cxx_try_compile "$LINENO"; then :
21959 libjava_cv_gethostbyname_r_needs_reentrant=yes
21960 else
21961 libjava_cv_gethostbyname_r_needs_reentrant=fail
21963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21964 CPPFLAGS="$CPPFLAGS_SAVE"
21967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21968 ac_ext=c
21969 ac_cpp='$CPP $CPPFLAGS'
21970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
21977 $as_echo "$libjava_cv_gethostbyname_r_needs_reentrant" >&6; }
21978 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
21980 $as_echo "#define _REENTRANT 1" >>confdefs.h
21984 esac
21986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct hostent_data" >&5
21987 $as_echo_n "checking for struct hostent_data... " >&6; }
21988 if test "${libjava_cv_struct_hostent_data+set}" = set; then :
21989 $as_echo_n "(cached) " >&6
21990 else
21991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21992 /* end confdefs.h. */
21994 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
21995 # define _REENTRANT 1
21996 #endif
21997 #include <netdb.h>
21999 main ()
22001 struct hostent_data data;
22003 return 0;
22005 _ACEOF
22006 if ac_fn_c_try_compile "$LINENO"; then :
22007 libjava_cv_struct_hostent_data=yes
22008 else
22009 libjava_cv_struct_hostent_data=no
22011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_struct_hostent_data" >&5
22014 $as_echo "$libjava_cv_struct_hostent_data" >&6; }
22015 if test "x$libjava_cv_struct_hostent_data" = xyes; then
22017 $as_echo "#define HAVE_STRUCT_HOSTENT_DATA 1" >>confdefs.h
22022 done
22025 # FIXME: libjava source code expects to find a prototype for
22026 # gethostbyaddr_r in netdb.h. The outer check ensures that
22027 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
22028 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
22029 # linkage check is enough, yet C++ code requires proper prototypes.)
22030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22031 /* end confdefs.h. */
22032 #include <netdb.h>
22034 _ACEOF
22035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22036 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
22038 for ac_func in gethostbyaddr_r
22039 do :
22040 ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
22041 if test "x$ac_cv_func_gethostbyaddr_r" = x""yes; then :
22042 cat >>confdefs.h <<_ACEOF
22043 #define HAVE_GETHOSTBYADDR_R 1
22044 _ACEOF
22047 $as_echo "#define HAVE_GETHOSTBYADDR_R 1" >>confdefs.h
22049 # There are two different kinds of gethostbyaddr_r.
22050 # We look for the one that returns `int'.
22051 # Hopefully this check is robust enough.
22052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22053 /* end confdefs.h. */
22054 #include <netdb.h>
22056 _ACEOF
22057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22058 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then :
22061 $as_echo "#define GETHOSTBYADDR_R_RETURNS_INT 1" >>confdefs.h
22064 rm -f conftest*
22067 done
22070 rm -f conftest*
22073 for ac_func in gethostname
22074 do :
22075 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
22076 if test "x$ac_cv_func_gethostname" = x""yes; then :
22077 cat >>confdefs.h <<_ACEOF
22078 #define HAVE_GETHOSTNAME 1
22079 _ACEOF
22082 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
22084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22085 /* end confdefs.h. */
22086 #include <unistd.h>
22088 _ACEOF
22089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22090 $EGREP "gethostname" >/dev/null 2>&1; then :
22093 $as_echo "#define HAVE_GETHOSTNAME_DECL 1" >>confdefs.h
22096 rm -f conftest*
22099 done
22102 for ac_func in usleep
22103 do :
22104 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
22105 if test "x$ac_cv_func_usleep" = x""yes; then :
22106 cat >>confdefs.h <<_ACEOF
22107 #define HAVE_USLEEP 1
22108 _ACEOF
22110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22111 /* end confdefs.h. */
22112 #include <unistd.h>
22114 _ACEOF
22115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22116 $EGREP "usleep" >/dev/null 2>&1; then :
22119 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
22122 rm -f conftest*
22125 done
22128 # Look for these functions in the thread library, but only bother
22129 # if using POSIX threads.
22130 if test "$THREADS" = posix; then
22131 save_LIBS="$LIBS"
22132 LIBS="$LIBS $THREADLIBS"
22134 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
22135 # Solaris 7 the name librt is preferred.
22136 for ac_func in sched_yield
22137 do :
22138 ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
22139 if test "x$ac_cv_func_sched_yield" = x""yes; then :
22140 cat >>confdefs.h <<_ACEOF
22141 #define HAVE_SCHED_YIELD 1
22142 _ACEOF
22144 else
22146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
22147 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
22148 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
22149 $as_echo_n "(cached) " >&6
22150 else
22151 ac_check_lib_save_LIBS=$LIBS
22152 LIBS="-lrt $LIBS"
22153 if test x$gcc_no_link = xyes; then
22154 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22157 /* end confdefs.h. */
22159 /* Override any GCC internal prototype to avoid an error.
22160 Use char because int might match the return type of a GCC
22161 builtin and then its argument prototype would still apply. */
22162 #ifdef __cplusplus
22163 extern "C"
22164 #endif
22165 char sched_yield ();
22167 main ()
22169 return sched_yield ();
22171 return 0;
22173 _ACEOF
22174 if ac_fn_c_try_link "$LINENO"; then :
22175 ac_cv_lib_rt_sched_yield=yes
22176 else
22177 ac_cv_lib_rt_sched_yield=no
22179 rm -f core conftest.err conftest.$ac_objext \
22180 conftest$ac_exeext conftest.$ac_ext
22181 LIBS=$ac_check_lib_save_LIBS
22183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
22184 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
22185 if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
22187 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22189 THREADLIBS="$THREADLIBS -lrt"
22190 THREADSPEC="$THREADSPEC -lrt"
22191 else
22193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
22194 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
22195 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then :
22196 $as_echo_n "(cached) " >&6
22197 else
22198 ac_check_lib_save_LIBS=$LIBS
22199 LIBS="-lposix4 $LIBS"
22200 if test x$gcc_no_link = xyes; then
22201 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22204 /* end confdefs.h. */
22206 /* Override any GCC internal prototype to avoid an error.
22207 Use char because int might match the return type of a GCC
22208 builtin and then its argument prototype would still apply. */
22209 #ifdef __cplusplus
22210 extern "C"
22211 #endif
22212 char sched_yield ();
22214 main ()
22216 return sched_yield ();
22218 return 0;
22220 _ACEOF
22221 if ac_fn_c_try_link "$LINENO"; then :
22222 ac_cv_lib_posix4_sched_yield=yes
22223 else
22224 ac_cv_lib_posix4_sched_yield=no
22226 rm -f core conftest.err conftest.$ac_objext \
22227 conftest$ac_exeext conftest.$ac_ext
22228 LIBS=$ac_check_lib_save_LIBS
22230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
22231 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
22232 if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then :
22234 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22236 THREADLIBS="$THREADLIBS -lposix4"
22237 THREADSPEC="$THREADSPEC -lposix4"
22243 done
22246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22247 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22248 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
22249 $as_echo_n "(cached) " >&6
22250 else
22251 ac_check_lib_save_LIBS=$LIBS
22252 LIBS="-lrt $LIBS"
22253 if test x$gcc_no_link = xyes; then
22254 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22257 /* end confdefs.h. */
22259 /* Override any GCC internal prototype to avoid an error.
22260 Use char because int might match the return type of a GCC
22261 builtin and then its argument prototype would still apply. */
22262 #ifdef __cplusplus
22263 extern "C"
22264 #endif
22265 char clock_gettime ();
22267 main ()
22269 return clock_gettime ();
22271 return 0;
22273 _ACEOF
22274 if ac_fn_c_try_link "$LINENO"; then :
22275 ac_cv_lib_rt_clock_gettime=yes
22276 else
22277 ac_cv_lib_rt_clock_gettime=no
22279 rm -f core conftest.err conftest.$ac_objext \
22280 conftest$ac_exeext conftest.$ac_ext
22281 LIBS=$ac_check_lib_save_LIBS
22283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22284 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22285 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
22288 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22290 case "$THREADSPEC" in
22291 *-lrt*) ;;
22293 THREADSPEC="$THREADSPEC -lrt"
22294 THREADLIBS="$THREADLIBS -lrt"
22296 esac
22300 LIBS="$save_LIBS"
22302 # We can save a little space at runtime if the mutex has m_count
22303 # or __m_count. This is a nice hack for Linux.
22304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22305 /* end confdefs.h. */
22306 #include <pthread.h>
22308 main ()
22311 extern pthread_mutex_t *mutex; int q = mutex->m_count;
22314 return 0;
22316 _ACEOF
22317 if ac_fn_c_try_compile "$LINENO"; then :
22319 $as_echo "#define PTHREAD_MUTEX_HAVE_M_COUNT 1" >>confdefs.h
22321 else
22323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22324 /* end confdefs.h. */
22325 #include <pthread.h>
22327 main ()
22330 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
22333 return 0;
22335 _ACEOF
22336 if ac_fn_c_try_compile "$LINENO"; then :
22338 $as_echo "#define PTHREAD_MUTEX_HAVE___M_COUNT 1" >>confdefs.h
22341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22346 # We require a way to get the time.
22347 time_found=no
22348 for ac_func in gettimeofday time ftime
22349 do :
22350 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22351 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22352 eval as_val=\$$as_ac_var
22353 if test "x$as_val" = x""yes; then :
22354 cat >>confdefs.h <<_ACEOF
22355 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22356 _ACEOF
22357 time_found=yes
22359 done
22361 if test "$time_found" = no; then
22362 as_fn_error "no function found to get the time" "$LINENO" 5
22365 for ac_func in memmove
22366 do :
22367 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22368 if test "x$ac_cv_func_memmove" = x""yes; then :
22369 cat >>confdefs.h <<_ACEOF
22370 #define HAVE_MEMMOVE 1
22371 _ACEOF
22374 done
22377 # We require memcpy.
22378 memcpy_found=no
22379 for ac_func in memcpy
22380 do :
22381 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
22382 if test "x$ac_cv_func_memcpy" = x""yes; then :
22383 cat >>confdefs.h <<_ACEOF
22384 #define HAVE_MEMCPY 1
22385 _ACEOF
22386 memcpy_found=yes
22388 done
22390 if test "$memcpy_found" = no; then
22391 as_fn_error "memcpy is required" "$LINENO" 5
22393 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
22394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22395 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22396 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
22397 $as_echo_n "(cached) " >&6
22398 else
22399 ac_check_lib_save_LIBS=$LIBS
22400 LIBS="-ldl $LIBS"
22401 if test x$gcc_no_link = xyes; then
22402 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22405 /* end confdefs.h. */
22407 /* Override any GCC internal prototype to avoid an error.
22408 Use char because int might match the return type of a GCC
22409 builtin and then its argument prototype would still apply. */
22410 #ifdef __cplusplus
22411 extern "C"
22412 #endif
22413 char dlopen ();
22415 main ()
22417 return dlopen ();
22419 return 0;
22421 _ACEOF
22422 if ac_fn_c_try_link "$LINENO"; then :
22423 ac_cv_lib_dl_dlopen=yes
22424 else
22425 ac_cv_lib_dl_dlopen=no
22427 rm -f core conftest.err conftest.$ac_objext \
22428 conftest$ac_exeext conftest.$ac_ext
22429 LIBS=$ac_check_lib_save_LIBS
22431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22432 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22433 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
22436 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22438 else
22440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldld" >&5
22441 $as_echo_n "checking for dlopen in -ldld... " >&6; }
22442 if test "${ac_cv_lib_dld_dlopen+set}" = set; then :
22443 $as_echo_n "(cached) " >&6
22444 else
22445 ac_check_lib_save_LIBS=$LIBS
22446 LIBS="-ldld $LIBS"
22447 if test x$gcc_no_link = xyes; then
22448 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22451 /* end confdefs.h. */
22453 /* Override any GCC internal prototype to avoid an error.
22454 Use char because int might match the return type of a GCC
22455 builtin and then its argument prototype would still apply. */
22456 #ifdef __cplusplus
22457 extern "C"
22458 #endif
22459 char dlopen ();
22461 main ()
22463 return dlopen ();
22465 return 0;
22467 _ACEOF
22468 if ac_fn_c_try_link "$LINENO"; then :
22469 ac_cv_lib_dld_dlopen=yes
22470 else
22471 ac_cv_lib_dld_dlopen=no
22473 rm -f core conftest.err conftest.$ac_objext \
22474 conftest$ac_exeext conftest.$ac_ext
22475 LIBS=$ac_check_lib_save_LIBS
22477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dlopen" >&5
22478 $as_echo "$ac_cv_lib_dld_dlopen" >&6; }
22479 if test "x$ac_cv_lib_dld_dlopen" = x""yes; then :
22482 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22489 # Some library-finding code we stole from Tcl.
22490 #--------------------------------------------------------------------
22491 # Check for the existence of the -lsocket and -lnsl libraries.
22492 # The order here is important, so that they end up in the right
22493 # order in the command line generated by make. Here are some
22494 # special considerations:
22495 # 1. Use "connect" and "accept" to check for -lsocket, and
22496 # "gethostbyname" to check for -lnsl.
22497 # 2. Use each function name only once: can't redo a check because
22498 # autoconf caches the results of the last check and won't redo it.
22499 # 3. Use -lnsl and -lsocket only if they supply procedures that
22500 # aren't already present in the normal libraries. This is because
22501 # IRIX 5.2 has libraries, but they aren't needed and they're
22502 # bogus: they goof up name resolution if used.
22503 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
22504 # To get around this problem, check for both libraries together
22505 # if -lsocket doesn't work by itself.
22506 #--------------------------------------------------------------------
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
22509 $as_echo_n "checking for socket libraries... " >&6; }
22510 if test "${gcj_cv_lib_sockets+set}" = set; then :
22511 $as_echo_n "(cached) " >&6
22512 else
22513 gcj_cv_lib_sockets=
22514 gcj_checkBoth=0
22515 unset ac_cv_func_connect
22516 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
22517 if test "x$ac_cv_func_connect" = x""yes; then :
22518 gcj_checkSocket=0
22519 else
22520 gcj_checkSocket=1
22523 if test "$gcj_checkSocket" = 1; then
22524 unset ac_cv_func_connect
22525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
22526 $as_echo_n "checking for main in -lsocket... " >&6; }
22527 if test "${ac_cv_lib_socket_main+set}" = set; then :
22528 $as_echo_n "(cached) " >&6
22529 else
22530 ac_check_lib_save_LIBS=$LIBS
22531 LIBS="-lsocket $LIBS"
22532 if test x$gcc_no_link = xyes; then
22533 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22536 /* end confdefs.h. */
22540 main ()
22542 return main ();
22544 return 0;
22546 _ACEOF
22547 if ac_fn_c_try_link "$LINENO"; then :
22548 ac_cv_lib_socket_main=yes
22549 else
22550 ac_cv_lib_socket_main=no
22552 rm -f core conftest.err conftest.$ac_objext \
22553 conftest$ac_exeext conftest.$ac_ext
22554 LIBS=$ac_check_lib_save_LIBS
22556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
22557 $as_echo "$ac_cv_lib_socket_main" >&6; }
22558 if test "x$ac_cv_lib_socket_main" = x""yes; then :
22559 gcj_cv_lib_sockets="-lsocket"
22560 else
22561 gcj_checkBoth=1
22565 if test "$gcj_checkBoth" = 1; then
22566 gcj_oldLibs=$LIBS
22567 LIBS="$LIBS -lsocket -lnsl"
22568 unset ac_cv_func_accept
22569 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
22570 if test "x$ac_cv_func_accept" = x""yes; then :
22571 gcj_checkNsl=0
22572 gcj_cv_lib_sockets="-lsocket -lnsl"
22575 unset ac_cv_func_accept
22576 LIBS=$gcj_oldLibs
22578 unset ac_cv_func_gethostbyname
22579 gcj_oldLibs=$LIBS
22580 LIBS="$LIBS $gcj_cv_lib_sockets"
22581 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22582 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
22584 else
22585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
22586 $as_echo_n "checking for main in -lnsl... " >&6; }
22587 if test "${ac_cv_lib_nsl_main+set}" = set; then :
22588 $as_echo_n "(cached) " >&6
22589 else
22590 ac_check_lib_save_LIBS=$LIBS
22591 LIBS="-lnsl $LIBS"
22592 if test x$gcc_no_link = xyes; then
22593 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22596 /* end confdefs.h. */
22600 main ()
22602 return main ();
22604 return 0;
22606 _ACEOF
22607 if ac_fn_c_try_link "$LINENO"; then :
22608 ac_cv_lib_nsl_main=yes
22609 else
22610 ac_cv_lib_nsl_main=no
22612 rm -f core conftest.err conftest.$ac_objext \
22613 conftest$ac_exeext conftest.$ac_ext
22614 LIBS=$ac_check_lib_save_LIBS
22616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
22617 $as_echo "$ac_cv_lib_nsl_main" >&6; }
22618 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
22619 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
22624 unset ac_cv_func_gethostbyname
22625 LIBS=$gcj_oldLIBS
22628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcj_cv_lib_sockets" >&5
22629 $as_echo "$gcj_cv_lib_sockets" >&6; }
22630 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
22632 if test "$with_system_zlib" = yes; then
22633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
22634 $as_echo_n "checking for deflate in -lz... " >&6; }
22635 if test "${ac_cv_lib_z_deflate+set}" = set; then :
22636 $as_echo_n "(cached) " >&6
22637 else
22638 ac_check_lib_save_LIBS=$LIBS
22639 LIBS="-lz $LIBS"
22640 if test x$gcc_no_link = xyes; then
22641 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22644 /* end confdefs.h. */
22646 /* Override any GCC internal prototype to avoid an error.
22647 Use char because int might match the return type of a GCC
22648 builtin and then its argument prototype would still apply. */
22649 #ifdef __cplusplus
22650 extern "C"
22651 #endif
22652 char deflate ();
22654 main ()
22656 return deflate ();
22658 return 0;
22660 _ACEOF
22661 if ac_fn_c_try_link "$LINENO"; then :
22662 ac_cv_lib_z_deflate=yes
22663 else
22664 ac_cv_lib_z_deflate=no
22666 rm -f core conftest.err conftest.$ac_objext \
22667 conftest$ac_exeext conftest.$ac_ext
22668 LIBS=$ac_check_lib_save_LIBS
22670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
22671 $as_echo "$ac_cv_lib_z_deflate" >&6; }
22672 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
22673 ZLIBSPEC=-lz
22674 else
22675 ZLIBSPEC=
22680 # Test for Gtk stuff, if asked for.
22681 if test "$use_gtk_awt" = yes; then
22683 succeeded=no
22685 if test -z "$PKG_CONFIG"; then
22686 # Extract the first word of "pkg-config", so it can be a program name with args.
22687 set dummy pkg-config; ac_word=$2
22688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22689 $as_echo_n "checking for $ac_word... " >&6; }
22690 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22691 $as_echo_n "(cached) " >&6
22692 else
22693 case $PKG_CONFIG in
22694 [\\/]* | ?:[\\/]*)
22695 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22699 for as_dir in $PATH
22701 IFS=$as_save_IFS
22702 test -z "$as_dir" && as_dir=.
22703 for ac_exec_ext in '' $ac_executable_extensions; do
22704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22705 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22707 break 2
22709 done
22710 done
22711 IFS=$as_save_IFS
22713 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22715 esac
22717 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22718 if test -n "$PKG_CONFIG"; then
22719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22720 $as_echo "$PKG_CONFIG" >&6; }
22721 else
22722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22723 $as_echo "no" >&6; }
22729 if test "$PKG_CONFIG" = "no" ; then
22730 echo "*** The pkg-config script could not be found. Make sure it is"
22731 echo "*** in your path, or set the PKG_CONFIG environment variable"
22732 echo "*** to the full path to pkg-config."
22733 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22734 else
22735 PKG_CONFIG_MIN_VERSION=0.9.0
22736 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.4" >&5
22738 $as_echo_n "checking for gtk+-2.0 >= 2.4... " >&6; }
22740 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
22741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22742 $as_echo "yes" >&6; }
22743 succeeded=yes
22745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
22746 $as_echo_n "checking GTK_CFLAGS... " >&6; }
22747 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
22748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
22749 $as_echo "$GTK_CFLAGS" >&6; }
22751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
22752 $as_echo_n "checking GTK_LIBS... " >&6; }
22753 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
22754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
22755 $as_echo "$GTK_LIBS" >&6; }
22756 else
22757 GTK_CFLAGS=""
22758 GTK_LIBS=""
22759 ## If we have a custom action on failure, don't print errors, but
22760 ## do set a variable so people can do so.
22761 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
22762 echo $GTK_PKG_ERRORS
22767 else
22768 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22769 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22773 if test $succeeded = yes; then
22775 else
22776 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
22783 succeeded=no
22785 if test -z "$PKG_CONFIG"; then
22786 # Extract the first word of "pkg-config", so it can be a program name with args.
22787 set dummy pkg-config; ac_word=$2
22788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22789 $as_echo_n "checking for $ac_word... " >&6; }
22790 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22791 $as_echo_n "(cached) " >&6
22792 else
22793 case $PKG_CONFIG in
22794 [\\/]* | ?:[\\/]*)
22795 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22799 for as_dir in $PATH
22801 IFS=$as_save_IFS
22802 test -z "$as_dir" && as_dir=.
22803 for ac_exec_ext in '' $ac_executable_extensions; do
22804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22805 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22807 break 2
22809 done
22810 done
22811 IFS=$as_save_IFS
22813 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22815 esac
22817 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22818 if test -n "$PKG_CONFIG"; then
22819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22820 $as_echo "$PKG_CONFIG" >&6; }
22821 else
22822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22823 $as_echo "no" >&6; }
22829 if test "$PKG_CONFIG" = "no" ; then
22830 echo "*** The pkg-config script could not be found. Make sure it is"
22831 echo "*** in your path, or set the PKG_CONFIG environment variable"
22832 echo "*** to the full path to pkg-config."
22833 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22834 else
22835 PKG_CONFIG_MIN_VERSION=0.9.0
22836 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
22838 $as_echo_n "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... " >&6; }
22840 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
22841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22842 $as_echo "yes" >&6; }
22843 succeeded=yes
22845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
22846 $as_echo_n "checking GLIB_CFLAGS... " >&6; }
22847 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
22849 $as_echo "$GLIB_CFLAGS" >&6; }
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
22852 $as_echo_n "checking GLIB_LIBS... " >&6; }
22853 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
22855 $as_echo "$GLIB_LIBS" >&6; }
22856 else
22857 GLIB_CFLAGS=""
22858 GLIB_LIBS=""
22859 ## If we have a custom action on failure, don't print errors, but
22860 ## do set a variable so people can do so.
22861 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22862 echo $GLIB_PKG_ERRORS
22867 else
22868 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22869 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22873 if test $succeeded = yes; then
22875 else
22876 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
22883 succeeded=no
22885 if test -z "$PKG_CONFIG"; then
22886 # Extract the first word of "pkg-config", so it can be a program name with args.
22887 set dummy pkg-config; ac_word=$2
22888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22889 $as_echo_n "checking for $ac_word... " >&6; }
22890 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22891 $as_echo_n "(cached) " >&6
22892 else
22893 case $PKG_CONFIG in
22894 [\\/]* | ?:[\\/]*)
22895 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22899 for as_dir in $PATH
22901 IFS=$as_save_IFS
22902 test -z "$as_dir" && as_dir=.
22903 for ac_exec_ext in '' $ac_executable_extensions; do
22904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22905 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22907 break 2
22909 done
22910 done
22911 IFS=$as_save_IFS
22913 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22915 esac
22917 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22918 if test -n "$PKG_CONFIG"; then
22919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22920 $as_echo "$PKG_CONFIG" >&6; }
22921 else
22922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22923 $as_echo "no" >&6; }
22929 if test "$PKG_CONFIG" = "no" ; then
22930 echo "*** The pkg-config script could not be found. Make sure it is"
22931 echo "*** in your path, or set the PKG_CONFIG environment variable"
22932 echo "*** to the full path to pkg-config."
22933 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22934 else
22935 PKG_CONFIG_MIN_VERSION=0.9.0
22936 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libart-2.0 >= 2.1" >&5
22938 $as_echo_n "checking for libart-2.0 >= 2.1... " >&6; }
22940 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
22941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22942 $as_echo "yes" >&6; }
22943 succeeded=yes
22945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_CFLAGS" >&5
22946 $as_echo_n "checking LIBART_CFLAGS... " >&6; }
22947 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_CFLAGS" >&5
22949 $as_echo "$LIBART_CFLAGS" >&6; }
22951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_LIBS" >&5
22952 $as_echo_n "checking LIBART_LIBS... " >&6; }
22953 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
22954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_LIBS" >&5
22955 $as_echo "$LIBART_LIBS" >&6; }
22956 else
22957 LIBART_CFLAGS=""
22958 LIBART_LIBS=""
22959 ## If we have a custom action on failure, don't print errors, but
22960 ## do set a variable so people can do so.
22961 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
22962 echo $LIBART_PKG_ERRORS
22967 else
22968 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22969 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22973 if test $succeeded = yes; then
22975 else
22976 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
22982 # We require the XTest Extension to support java.awt.Robot.
22983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
22984 $as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
22985 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
22986 $as_echo_n "(cached) " >&6
22987 else
22988 ac_check_lib_save_LIBS=$LIBS
22989 LIBS="-lXtst ${X_LIBS} $LIBS"
22990 if test x$gcc_no_link = xyes; then
22991 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22994 /* end confdefs.h. */
22996 /* Override any GCC internal prototype to avoid an error.
22997 Use char because int might match the return type of a GCC
22998 builtin and then its argument prototype would still apply. */
22999 #ifdef __cplusplus
23000 extern "C"
23001 #endif
23002 char XTestQueryExtension ();
23004 main ()
23006 return XTestQueryExtension ();
23008 return 0;
23010 _ACEOF
23011 if ac_fn_c_try_link "$LINENO"; then :
23012 ac_cv_lib_Xtst_XTestQueryExtension=yes
23013 else
23014 ac_cv_lib_Xtst_XTestQueryExtension=no
23016 rm -f core conftest.err conftest.$ac_objext \
23017 conftest$ac_exeext conftest.$ac_ext
23018 LIBS=$ac_check_lib_save_LIBS
23020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
23021 $as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
23022 if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
23023 true
23024 else
23025 as_fn_error "libXtst not found, required by java.awt.Robot" "$LINENO" 5
23030 # On Solaris, and maybe other architectures, the Boehm collector
23031 # requires -ldl.
23032 if test "$GC" = boehm; then
23033 case "${host}" in
23034 mips-sgi-irix6*)
23035 # IRIX 6 lacks a N64 libdl.so, but only the N32 (default multilib)
23036 # libgcj.spec is used, so override here
23037 SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}"
23040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
23041 $as_echo_n "checking for main in -ldl... " >&6; }
23042 if test "${ac_cv_lib_dl_main+set}" = set; then :
23043 $as_echo_n "(cached) " >&6
23044 else
23045 ac_check_lib_save_LIBS=$LIBS
23046 LIBS="-ldl $LIBS"
23047 if test x$gcc_no_link = xyes; then
23048 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23051 /* end confdefs.h. */
23055 main ()
23057 return main ();
23059 return 0;
23061 _ACEOF
23062 if ac_fn_c_try_link "$LINENO"; then :
23063 ac_cv_lib_dl_main=yes
23064 else
23065 ac_cv_lib_dl_main=no
23067 rm -f core conftest.err conftest.$ac_objext \
23068 conftest$ac_exeext conftest.$ac_ext
23069 LIBS=$ac_check_lib_save_LIBS
23071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
23072 $as_echo "$ac_cv_lib_dl_main" >&6; }
23073 if test "x$ac_cv_lib_dl_main" = x""yes; then :
23074 SYSTEMSPEC="$SYSTEMSPEC -ldl"
23078 esac
23082 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
23083 case $build in
23084 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
23085 *) CLASSPATH_SEPARATOR=':' ;;
23086 esac
23089 # We must search the source tree for java.lang, since we still don't
23090 # have libgcj.jar nor java/lang/*.class
23091 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
23092 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
23094 # Since some classes depend on this one, we need its source available
23095 # before we can do any GCJ compilation test :-(
23096 if test ! -f gnu/classpath/Configuration.java; then
23097 test -d gnu || mkdir gnu
23098 test -d gnu/classpath || mkdir gnu/classpath
23099 # Note that it is not crucial that all the values here be correct.
23100 sed -e "s,@prefix@,$expanded_prefix," \
23101 -e "s,@VERSION@,$VERSION," \
23102 -e "s,@LIBDEBUG@,false," \
23103 -e "s,@INIT_LOAD_LIBRARY@,false," \
23104 -e "s,@@,$LIBGCJDEBUG," \
23105 -e "s,@default_toolkit@,$TOOLKIT," \
23106 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
23107 -e "s,@GTK_CAIRO_ENABLED@,false," \
23108 -e "s,@ECJ_JAR@,," \
23109 -e "s,@WANT_NATIVE_BIG_INTEGER@,false," \
23110 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
23111 > gnu/classpath/Configuration.java
23112 # We do not want to redirect the output of the grep below to /dev/null,
23113 # but we add /dev/null to the input list so that grep will print the
23114 # filename of Configuration.java in case it finds any matches.
23115 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
23116 as_fn_error "configure.ac is missing the substitutions above" "$LINENO" 5
23121 if test -n "$ac_tool_prefix"; then
23122 for ac_prog in gcj
23124 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23125 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23127 $as_echo_n "checking for $ac_word... " >&6; }
23128 if test "${ac_cv_prog_GCJ+set}" = set; then :
23129 $as_echo_n "(cached) " >&6
23130 else
23131 if test -n "$GCJ"; then
23132 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
23133 else
23134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23135 for as_dir in $PATH
23137 IFS=$as_save_IFS
23138 test -z "$as_dir" && as_dir=.
23139 for ac_exec_ext in '' $ac_executable_extensions; do
23140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23141 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
23142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23143 break 2
23145 done
23146 done
23147 IFS=$as_save_IFS
23151 GCJ=$ac_cv_prog_GCJ
23152 if test -n "$GCJ"; then
23153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
23154 $as_echo "$GCJ" >&6; }
23155 else
23156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23157 $as_echo "no" >&6; }
23161 test -n "$GCJ" && break
23162 done
23164 if test -z "$GCJ"; then
23165 ac_ct_GCJ=$GCJ
23166 for ac_prog in gcj
23168 # Extract the first word of "$ac_prog", so it can be a program name with args.
23169 set dummy $ac_prog; ac_word=$2
23170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23171 $as_echo_n "checking for $ac_word... " >&6; }
23172 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
23173 $as_echo_n "(cached) " >&6
23174 else
23175 if test -n "$ac_ct_GCJ"; then
23176 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
23177 else
23178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23179 for as_dir in $PATH
23181 IFS=$as_save_IFS
23182 test -z "$as_dir" && as_dir=.
23183 for ac_exec_ext in '' $ac_executable_extensions; do
23184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23185 ac_cv_prog_ac_ct_GCJ="$ac_prog"
23186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23187 break 2
23189 done
23190 done
23191 IFS=$as_save_IFS
23195 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
23196 if test -n "$ac_ct_GCJ"; then
23197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
23198 $as_echo "$ac_ct_GCJ" >&6; }
23199 else
23200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23201 $as_echo "no" >&6; }
23205 test -n "$ac_ct_GCJ" && break
23206 done
23208 if test "x$ac_ct_GCJ" = x; then
23209 GCJ="gcj"
23210 else
23211 case $cross_compiling:$ac_tool_warned in
23212 yes:)
23213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23215 ac_tool_warned=yes ;;
23216 esac
23217 GCJ=$ac_ct_GCJ
23221 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
23222 if test "x${GCJFLAGS-unset}" = xunset; then
23223 GCJFLAGS="-g -O2"
23227 depcc="$GCJ" am_compiler_list='gcc3 gcc'
23229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23230 $as_echo_n "checking dependency style of $depcc... " >&6; }
23231 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
23232 $as_echo_n "(cached) " >&6
23233 else
23234 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23235 # We make a subdir and do the tests there. Otherwise we can end up
23236 # making bogus files that we don't know about and never remove. For
23237 # instance it was reported that on HP-UX the gcc test will end up
23238 # making a dummy file named `D' -- because `-MD' means `put the output
23239 # in D'.
23240 mkdir conftest.dir
23241 # Copy depcomp to subdir because otherwise we won't find it if we're
23242 # using a relative directory.
23243 cp "$am_depcomp" conftest.dir
23244 cd conftest.dir
23245 # We will build objects and dependencies in a subdirectory because
23246 # it helps to detect inapplicable dependency modes. For instance
23247 # both Tru64's cc and ICC support -MD to output dependencies as a
23248 # side effect of compilation, but ICC will put the dependencies in
23249 # the current directory while Tru64 will put them in the object
23250 # directory.
23251 mkdir sub
23253 am_cv_GCJ_dependencies_compiler_type=none
23254 if test "$am_compiler_list" = ""; then
23255 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23257 am__universal=false
23260 for depmode in $am_compiler_list; do
23261 # Setup a source with many dependencies, because some compilers
23262 # like to wrap large dependency lists on column 80 (with \), and
23263 # we should not choose a depcomp mode which is confused by this.
23265 # We need to recreate these files for each test, as the compiler may
23266 # overwrite some of them when testing with obscure command lines.
23267 # This happens at least with the AIX C compiler.
23268 : > sub/conftest.c
23269 for i in 1 2 3 4 5 6; do
23270 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23271 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23272 # Solaris 8's {/usr,}/bin/sh.
23273 touch sub/conftst$i.h
23274 done
23275 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23277 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23278 # mode. It turns out that the SunPro C++ compiler does not properly
23279 # handle `-M -o', and we need to detect this. Also, some Intel
23280 # versions had trouble with output in subdirs
23281 am__obj=sub/conftest.${OBJEXT-o}
23282 am__minus_obj="-o $am__obj"
23283 case $depmode in
23284 gcc)
23285 # This depmode causes a compiler race in universal mode.
23286 test "$am__universal" = false || continue
23288 nosideeffect)
23289 # after this tag, mechanisms are not by side-effect, so they'll
23290 # only be used when explicitly requested
23291 if test "x$enable_dependency_tracking" = xyes; then
23292 continue
23293 else
23294 break
23297 msvisualcpp | msvcmsys)
23298 # This compiler won't grok `-c -o', but also, the minuso test has
23299 # not run yet. These depmodes are late enough in the game, and
23300 # so weak that their functioning should not be impacted.
23301 am__obj=conftest.${OBJEXT-o}
23302 am__minus_obj=
23304 none) break ;;
23305 esac
23306 if depmode=$depmode \
23307 source=sub/conftest.c object=$am__obj \
23308 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23309 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23310 >/dev/null 2>conftest.err &&
23311 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23312 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23313 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23314 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23315 # icc doesn't choke on unknown options, it will just issue warnings
23316 # or remarks (even with -Werror). So we grep stderr for any message
23317 # that says an option was ignored or not supported.
23318 # When given -MP, icc 7.0 and 7.1 complain thusly:
23319 # icc: Command line warning: ignoring option '-M'; no argument required
23320 # The diagnosis changed in icc 8.0:
23321 # icc: Command line remark: option '-MP' not supported
23322 if (grep 'ignoring option' conftest.err ||
23323 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23324 am_cv_GCJ_dependencies_compiler_type=$depmode
23325 break
23328 done
23330 cd ..
23331 rm -rf conftest.dir
23332 else
23333 am_cv_GCJ_dependencies_compiler_type=none
23337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
23338 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
23339 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
23342 test "x$enable_dependency_tracking" != xno \
23343 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
23344 am__fastdepGCJ_TRUE=
23345 am__fastdepGCJ_FALSE='#'
23346 else
23347 am__fastdepGCJ_TRUE='#'
23348 am__fastdepGCJ_FALSE=
23354 # Now remove it.
23355 rm -f gnu/classpath/Configuration.java
23357 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
23359 # The cast to long int works around a bug in the HP C Compiler
23360 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23361 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23362 # This bug is HP SR number 8606223364.
23363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
23364 $as_echo_n "checking size of void *... " >&6; }
23365 if test "${ac_cv_sizeof_void_p+set}" = set; then :
23366 $as_echo_n "(cached) " >&6
23367 else
23368 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
23370 else
23371 if test "$ac_cv_type_void_p" = yes; then
23372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23374 { as_fn_set_status 77
23375 as_fn_error "cannot compute sizeof (void *)
23376 See \`config.log' for more details." "$LINENO" 5; }; }
23377 else
23378 ac_cv_sizeof_void_p=0
23383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
23384 $as_echo "$ac_cv_sizeof_void_p" >&6; }
23388 cat >>confdefs.h <<_ACEOF
23389 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23390 _ACEOF
23394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23395 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23396 if test "${ac_cv_c_bigendian+set}" = set; then :
23397 $as_echo_n "(cached) " >&6
23398 else
23399 ac_cv_c_bigendian=unknown
23400 # See if we're dealing with a universal compiler.
23401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23402 /* end confdefs.h. */
23403 #ifndef __APPLE_CC__
23404 not a universal capable compiler
23405 #endif
23406 typedef int dummy;
23408 _ACEOF
23409 if ac_fn_c_try_compile "$LINENO"; then :
23411 # Check for potential -arch flags. It is not universal unless
23412 # there are at least two -arch flags with different values.
23413 ac_arch=
23414 ac_prev=
23415 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23416 if test -n "$ac_prev"; then
23417 case $ac_word in
23418 i?86 | x86_64 | ppc | ppc64)
23419 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23420 ac_arch=$ac_word
23421 else
23422 ac_cv_c_bigendian=universal
23423 break
23426 esac
23427 ac_prev=
23428 elif test "x$ac_word" = "x-arch"; then
23429 ac_prev=arch
23431 done
23433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23434 if test $ac_cv_c_bigendian = unknown; then
23435 # See if sys/param.h defines the BYTE_ORDER macro.
23436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23437 /* end confdefs.h. */
23438 #include <sys/types.h>
23439 #include <sys/param.h>
23442 main ()
23444 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23445 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23446 && LITTLE_ENDIAN)
23447 bogus endian macros
23448 #endif
23451 return 0;
23453 _ACEOF
23454 if ac_fn_c_try_compile "$LINENO"; then :
23455 # It does; now see whether it defined to BIG_ENDIAN or not.
23456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23457 /* end confdefs.h. */
23458 #include <sys/types.h>
23459 #include <sys/param.h>
23462 main ()
23464 #if BYTE_ORDER != BIG_ENDIAN
23465 not big endian
23466 #endif
23469 return 0;
23471 _ACEOF
23472 if ac_fn_c_try_compile "$LINENO"; then :
23473 ac_cv_c_bigendian=yes
23474 else
23475 ac_cv_c_bigendian=no
23477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23481 if test $ac_cv_c_bigendian = unknown; then
23482 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23484 /* end confdefs.h. */
23485 #include <limits.h>
23488 main ()
23490 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23491 bogus endian macros
23492 #endif
23495 return 0;
23497 _ACEOF
23498 if ac_fn_c_try_compile "$LINENO"; then :
23499 # It does; now see whether it defined to _BIG_ENDIAN or not.
23500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23501 /* end confdefs.h. */
23502 #include <limits.h>
23505 main ()
23507 #ifndef _BIG_ENDIAN
23508 not big endian
23509 #endif
23512 return 0;
23514 _ACEOF
23515 if ac_fn_c_try_compile "$LINENO"; then :
23516 ac_cv_c_bigendian=yes
23517 else
23518 ac_cv_c_bigendian=no
23520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23524 if test $ac_cv_c_bigendian = unknown; then
23525 # Compile a test program.
23526 if test "$cross_compiling" = yes; then :
23527 # Try to guess by grepping values from an object file.
23528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23529 /* end confdefs.h. */
23530 short int ascii_mm[] =
23531 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23532 short int ascii_ii[] =
23533 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23534 int use_ascii (int i) {
23535 return ascii_mm[i] + ascii_ii[i];
23537 short int ebcdic_ii[] =
23538 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23539 short int ebcdic_mm[] =
23540 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23541 int use_ebcdic (int i) {
23542 return ebcdic_mm[i] + ebcdic_ii[i];
23544 extern int foo;
23547 main ()
23549 return use_ascii (foo) == use_ebcdic (foo);
23551 return 0;
23553 _ACEOF
23554 if ac_fn_c_try_compile "$LINENO"; then :
23555 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23556 ac_cv_c_bigendian=yes
23558 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23559 if test "$ac_cv_c_bigendian" = unknown; then
23560 ac_cv_c_bigendian=no
23561 else
23562 # finding both strings is unlikely to happen, but who knows?
23563 ac_cv_c_bigendian=unknown
23567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23568 else
23569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23570 /* end confdefs.h. */
23571 $ac_includes_default
23573 main ()
23576 /* Are we little or big endian? From Harbison&Steele. */
23577 union
23579 long int l;
23580 char c[sizeof (long int)];
23581 } u;
23582 u.l = 1;
23583 return u.c[sizeof (long int) - 1] == 1;
23586 return 0;
23588 _ACEOF
23589 if ac_fn_c_try_run "$LINENO"; then :
23590 ac_cv_c_bigendian=no
23591 else
23592 ac_cv_c_bigendian=yes
23594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23595 conftest.$ac_objext conftest.beam conftest.$ac_ext
23600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23601 $as_echo "$ac_cv_c_bigendian" >&6; }
23602 case $ac_cv_c_bigendian in #(
23603 yes)
23604 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23605 ;; #(
23607 ;; #(
23608 universal)
23610 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23612 ;; #(
23614 as_fn_error "unknown endianness
23615 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23616 esac
23619 ZLIBS=
23620 SYS_ZLIBS=
23621 ZINCS=
23623 if test -z "$ZLIBSPEC"; then
23624 # Use zlib from the GCC tree.
23625 ZINCS='-I$(top_srcdir)/../zlib'
23626 ZLIBS=../zlib/libzgcj_convenience.la
23627 else
23628 # System's zlib.
23629 SYS_ZLIBS="$ZLIBSPEC"
23641 if test "$NATIVE" = yes; then
23642 NATIVE_TRUE=
23643 NATIVE_FALSE='#'
23644 else
23645 NATIVE_TRUE='#'
23646 NATIVE_FALSE=
23649 if test "$enable_shared" = yes; then
23650 ENABLE_SHARED_TRUE=
23651 ENABLE_SHARED_FALSE='#'
23652 else
23653 ENABLE_SHARED_TRUE='#'
23654 ENABLE_SHARED_FALSE=
23657 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
23658 NEEDS_DATA_START_TRUE=
23659 NEEDS_DATA_START_FALSE='#'
23660 else
23661 NEEDS_DATA_START_TRUE='#'
23662 NEEDS_DATA_START_FALSE=
23665 if test -z "${with_multisubdir}"; then
23666 INSTALL_BINARIES_TRUE=
23667 INSTALL_BINARIES_FALSE='#'
23668 else
23669 INSTALL_BINARIES_TRUE='#'
23670 INSTALL_BINARIES_FALSE=
23675 # Process the option "--enable-version-specific-runtime-libs"
23676 # Calculate toolexeclibdir
23677 case ${version_specific_libs} in
23678 yes)
23679 # Need the gcc compiler version to know where to install libraries
23680 # and header files if --enable-version-specific-runtime-libs option
23681 # is selected.
23682 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
23683 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
23684 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
23685 toolexeclibdir=$toolexecmainlibdir
23688 if test -n "$with_cross_host" &&
23689 test x"$with_cross_host" != x"no"; then
23690 # Install a library built with a cross compiler in tooldir, not libdir.
23691 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
23692 toolexecmainlibdir='$(toolexecdir)/lib'
23693 else
23694 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
23695 toolexecmainlibdir='$(libdir)'
23697 multi_os_directory=`$CC -print-multi-os-directory`
23698 case $multi_os_directory in
23699 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
23700 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
23701 esac
23703 esac
23708 # Determine gcj and libgcj version number.
23709 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
23710 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
23711 GCJVERSION=$gcjversion
23714 cat >>confdefs.h <<_ACEOF
23715 #define GCJVERSION "$GCJVERSION"
23716 _ACEOF
23719 # Determine where the standard .db file and GNU Classpath JNI
23720 # libraries are found.
23721 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
23722 multi_os_directory=`$CC -print-multi-os-directory`
23723 case $multi_os_directory in
23725 dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
23728 dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
23730 esac
23735 $as_echo "#define JV_VERSION \"1.5.0\"" >>confdefs.h
23738 $as_echo "#define JV_API_VERSION \"1.5\"" >>confdefs.h
23742 case "${with_gxx_include_dir}" in
23743 yes)
23744 as_fn_error "--with-gxx-include-dir=[dir] requires a directory" "$LINENO" 5
23746 no | "")
23747 case "${enable_version_specific_runtime_libs}" in
23748 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
23750 libstdcxx_incdir='c++/$(gcc_version)'
23751 gxx_include_dir='include/$(libstdcxx_incdir)'
23752 if test -n "$with_cross_host" &&
23753 test x"$with_cross_host" != x"no"; then
23754 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
23755 else
23756 gxx_include_dir='${prefix}/'"$gxx_include_dir"
23757 fi;;
23758 esac ;;
23759 *) gxx_include_dir=${with_gxx_include_dir} ;;
23760 esac
23765 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
23766 # On that system, sys/ioctl.h will not include sys/filio.h unless
23767 # BSD_COMP is defined; just including sys/filio.h is simpler.
23768 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
23769 # for now. If you change this, you also must update natFile.cc.
23770 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
23771 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
23772 sys/socket.h netinet/in.h arpa/inet.h netdb.h \
23773 pwd.h sys/config.h stdint.h langinfo.h locale.h \
23774 dirent.h sys/rw_lock.h magic.h ifaddrs.h
23775 do :
23776 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23777 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23778 eval as_val=\$$as_ac_Header
23779 if test "x$as_val" = x""yes; then :
23780 cat >>confdefs.h <<_ACEOF
23781 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23782 _ACEOF
23786 done
23789 # sys/socket.h is a prerequisite for net/if.h on Solaris.
23790 for ac_header in net/if.h
23791 do :
23792 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
23793 #ifdef HAVE_SYS_SOCKET_H
23794 #include <sys/socket.h>
23795 #endif
23798 if test "x$ac_cv_header_net_if_h" = x""yes; then :
23799 cat >>confdefs.h <<_ACEOF
23800 #define HAVE_NET_IF_H 1
23801 _ACEOF
23805 done
23808 for ac_header in inttypes.h
23809 do :
23810 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
23811 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
23812 cat >>confdefs.h <<_ACEOF
23813 #define HAVE_INTTYPES_H 1
23814 _ACEOF
23817 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
23820 $as_echo "#define JV_HAVE_INTTYPES_H 1" >>confdefs.h
23825 done
23828 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23829 if test "x$ac_cv_type_ssize_t" = x""yes; then :
23831 else
23833 cat >>confdefs.h <<_ACEOF
23834 #define ssize_t int
23835 _ACEOF
23839 ac_fn_c_check_type "$LINENO" "magic_t" "ac_cv_type_magic_t" "
23840 #ifdef HAVE_MAGIC_H
23841 #include <magic.h>
23842 #endif
23844 if test "x$ac_cv_type_magic_t" = x""yes; then :
23847 $as_echo "#define HAVE_MAGIC_T 1" >>confdefs.h
23852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5
23853 $as_echo_n "checking for in_addr_t... " >&6; }
23854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23855 /* end confdefs.h. */
23856 #include <sys/types.h>
23857 #if STDC_HEADERS
23858 #include <stdlib.h>
23859 #include <stddef.h>
23860 #endif
23861 #if HAVE_NETINET_IN_H
23862 #include <netinet/in.h>
23863 #endif
23865 main ()
23867 in_addr_t foo;
23869 return 0;
23871 _ACEOF
23872 if ac_fn_c_try_compile "$LINENO"; then :
23874 $as_echo "#define HAVE_IN_ADDR_T 1" >>confdefs.h
23876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23877 $as_echo "yes" >&6; }
23878 else
23879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23880 $as_echo "no" >&6; }
23882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ip_mreq is in netinet/in.h" >&5
23885 $as_echo_n "checking whether struct ip_mreq is in netinet/in.h... " >&6; }
23886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23887 /* end confdefs.h. */
23888 #include <netinet/in.h>
23890 main ()
23892 struct ip_mreq mreq;
23894 return 0;
23896 _ACEOF
23897 if ac_fn_c_try_compile "$LINENO"; then :
23899 $as_echo "#define HAVE_STRUCT_IP_MREQ 1" >>confdefs.h
23901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23902 $as_echo "yes" >&6; }
23903 else
23904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23905 $as_echo "no" >&6; }
23907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ipv6_mreq is in netinet/in.h" >&5
23910 $as_echo_n "checking whether struct ipv6_mreq is in netinet/in.h... " >&6; }
23911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23912 /* end confdefs.h. */
23913 #include <netinet/in.h>
23915 main ()
23917 struct ipv6_mreq mreq6;
23919 return 0;
23921 _ACEOF
23922 if ac_fn_c_try_compile "$LINENO"; then :
23924 $as_echo "#define HAVE_STRUCT_IPV6_MREQ 1" >>confdefs.h
23926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23927 $as_echo "yes" >&6; }
23928 else
23929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23930 $as_echo "no" >&6; }
23932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
23935 $as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
23936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23937 /* end confdefs.h. */
23938 #include <netinet/in.h>
23940 main ()
23942 struct sockaddr_in6 addr6;
23944 return 0;
23946 _ACEOF
23947 if ac_fn_c_try_compile "$LINENO"; then :
23949 $as_echo "#define HAVE_INET6 1" >>confdefs.h
23951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23952 $as_echo "yes" >&6; }
23953 else
23954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23955 $as_echo "no" >&6; }
23957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
23960 $as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
23961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23962 /* end confdefs.h. */
23963 #define _POSIX_PII_SOCKET
23964 #include <sys/types.h>
23965 #include <sys/socket.h>
23967 main ()
23969 socklen_t x = 5;
23971 return 0;
23973 _ACEOF
23974 if ac_fn_c_try_compile "$LINENO"; then :
23976 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
23978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23979 $as_echo "yes" >&6; }
23980 else
23981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23982 $as_echo "no" >&6; }
23984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
23987 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
23988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23989 /* end confdefs.h. */
23990 #include <time.h>
23992 main ()
23994 struct tm tim; tim.tm_gmtoff = 0;
23996 return 0;
23998 _ACEOF
23999 if ac_fn_c_try_compile "$LINENO"; then :
24001 $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
24003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24004 $as_echo "yes" >&6; }
24005 else
24006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24007 $as_echo "no" >&6; }
24008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
24009 $as_echo_n "checking for global timezone variable... " >&6; }
24010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24011 /* end confdefs.h. */
24012 #include <time.h>
24014 main ()
24016 void i(){long z2 = 2*timezone;}
24018 return 0;
24020 _ACEOF
24021 if ac_fn_c_try_compile "$LINENO"; then :
24023 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
24025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24026 $as_echo "yes" >&6; }
24027 else
24028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24029 $as_echo "no" >&6; }
24030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
24031 $as_echo_n "checking for global _timezone variable... " >&6; }
24032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24033 /* end confdefs.h. */
24034 #include <time.h>
24036 main ()
24038 long z2 = _timezone;
24040 return 0;
24042 _ACEOF
24043 if ac_fn_c_try_compile "$LINENO"; then :
24045 $as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
24047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24048 $as_echo "yes" >&6; }
24049 else
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24051 $as_echo "no" >&6; }
24053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24059 for ac_prog in perl
24061 # Extract the first word of "$ac_prog", so it can be a program name with args.
24062 set dummy $ac_prog; ac_word=$2
24063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24064 $as_echo_n "checking for $ac_word... " >&6; }
24065 if test "${ac_cv_prog_PERL+set}" = set; then :
24066 $as_echo_n "(cached) " >&6
24067 else
24068 if test -n "$PERL"; then
24069 ac_cv_prog_PERL="$PERL" # Let the user override the test.
24070 else
24071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24072 for as_dir in $PATH
24074 IFS=$as_save_IFS
24075 test -z "$as_dir" && as_dir=.
24076 for ac_exec_ext in '' $ac_executable_extensions; do
24077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24078 ac_cv_prog_PERL="$ac_prog"
24079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24080 break 2
24082 done
24083 done
24084 IFS=$as_save_IFS
24088 PERL=$ac_cv_prog_PERL
24089 if test -n "$PERL"; then
24090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
24091 $as_echo "$PERL" >&6; }
24092 else
24093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24094 $as_echo "no" >&6; }
24098 test -n "$PERL" && break
24099 done
24100 test -n "$PERL" || PERL="false"
24103 SYSDEP_SOURCES=
24104 SIGNAL_HANDLER_AUX=
24106 case "${host}" in
24107 i?86-*-linux*)
24108 SIGNAL_HANDLER=include/i386-signal.h
24110 sparc*-sun-solaris*)
24111 SIGNAL_HANDLER=include/sparc-signal.h
24113 # ia64-*)
24114 # SYSDEP_SOURCES=sysdep/ia64.c
24115 # test -d sysdep || mkdir sysdep
24116 # ;;
24117 hppa*-*-linux*)
24118 SIGNAL_HANDLER=include/pa-signal.h
24120 hppa*-hp-hpux*)
24121 SIGNAL_HANDLER=include/hppa-signal.h
24123 ia64-*-linux*)
24124 SIGNAL_HANDLER=include/dwarf2-signal.h
24126 powerpc*-*-linux*)
24127 SIGNAL_HANDLER=include/powerpc-signal.h
24129 alpha*-*-linux*)
24130 SIGNAL_HANDLER=include/dwarf2-signal.h
24132 s390*-*-linux*)
24133 SIGNAL_HANDLER=include/s390-signal.h
24135 x86_64*-*-linux*)
24136 SIGNAL_HANDLER=include/x86_64-signal.h
24137 SIGNAL_HANDLER_AUX=include/i386-signal.h
24139 sparc*-*-linux*)
24140 SIGNAL_HANDLER=include/dwarf2-signal.h
24142 sh*-*-linux*)
24143 SIGNAL_HANDLER=include/sh-signal.h
24145 *mingw*)
24146 SIGNAL_HANDLER=include/win32-signal.h
24148 mips*-*-linux*)
24149 SIGNAL_HANDLER=include/mips-signal.h
24151 m68*-*-linux*)
24152 SIGNAL_HANDLER=include/dwarf2-signal.h
24154 powerpc*-*-darwin* | i?86-*-darwin[912]* | x86_64-*-darwin[912]*)
24155 SIGNAL_HANDLER=include/darwin-signal.h
24157 powerpc*-*-aix*)
24158 SIGNAL_HANDLER=include/aix-signal.h
24161 SIGNAL_HANDLER=include/default-signal.h
24163 esac
24165 # If we're using sjlj exceptions, forget what we just learned.
24166 if test "$enable_sjlj_exceptions" = yes; then
24167 SIGNAL_HANDLER=include/default-signal.h
24168 SIGNAL_HANDLER_AUX=
24173 if test -z "$SIGNAL_HANDLER_AUX"; then
24174 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
24177 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
24180 if test "${multilib}" = "yes"; then
24181 multilib_arg="--enable-multilib"
24182 else
24183 multilib_arg=
24186 # See if we support thread-local storage.
24189 # Check whether --enable-tls was given.
24190 if test "${enable_tls+set}" = set; then :
24191 enableval=$enable_tls;
24192 case "$enableval" in
24193 yes|no) ;;
24194 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
24195 esac
24197 else
24198 enable_tls=yes
24202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
24203 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
24204 if test "${gcc_cv_have_tls+set}" = set; then :
24205 $as_echo_n "(cached) " >&6
24206 else
24208 if test "$cross_compiling" = yes; then :
24209 if test x$gcc_no_link = xyes; then
24210 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24213 /* end confdefs.h. */
24214 __thread int a; int b; int main() { return a = b; }
24215 _ACEOF
24216 if ac_fn_c_try_link "$LINENO"; then :
24217 chktls_save_LDFLAGS="$LDFLAGS"
24218 case $host in
24219 *-*-linux*)
24220 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
24222 esac
24223 chktls_save_CFLAGS="$CFLAGS"
24224 CFLAGS="-fPIC $CFLAGS"
24225 if test x$gcc_no_link = xyes; then
24226 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24229 /* end confdefs.h. */
24230 int f() { return 0; }
24231 _ACEOF
24232 if ac_fn_c_try_link "$LINENO"; then :
24233 if test x$gcc_no_link = xyes; then
24234 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24237 /* end confdefs.h. */
24238 __thread int a; int b; int f() { return a = b; }
24239 _ACEOF
24240 if ac_fn_c_try_link "$LINENO"; then :
24241 gcc_cv_have_tls=yes
24242 else
24243 gcc_cv_have_tls=no
24245 rm -f core conftest.err conftest.$ac_objext \
24246 conftest$ac_exeext conftest.$ac_ext
24247 else
24248 gcc_cv_have_tls=yes
24250 rm -f core conftest.err conftest.$ac_objext \
24251 conftest$ac_exeext conftest.$ac_ext
24252 CFLAGS="$chktls_save_CFLAGS"
24253 LDFLAGS="$chktls_save_LDFLAGS"
24254 else
24255 gcc_cv_have_tls=no
24257 rm -f core conftest.err conftest.$ac_objext \
24258 conftest$ac_exeext conftest.$ac_ext
24261 else
24262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24263 /* end confdefs.h. */
24264 __thread int a; int b; int main() { return a = b; }
24265 _ACEOF
24266 if ac_fn_c_try_run "$LINENO"; then :
24267 chktls_save_LDFLAGS="$LDFLAGS"
24268 LDFLAGS="-static $LDFLAGS"
24269 if test x$gcc_no_link = xyes; then
24270 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24273 /* end confdefs.h. */
24274 int main() { return 0; }
24275 _ACEOF
24276 if ac_fn_c_try_link "$LINENO"; then :
24277 if test "$cross_compiling" = yes; then :
24278 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24280 as_fn_error "cannot run test program while cross compiling
24281 See \`config.log' for more details." "$LINENO" 5; }
24282 else
24283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24284 /* end confdefs.h. */
24285 __thread int a; int b; int main() { return a = b; }
24286 _ACEOF
24287 if ac_fn_c_try_run "$LINENO"; then :
24288 gcc_cv_have_tls=yes
24289 else
24290 gcc_cv_have_tls=no
24292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24293 conftest.$ac_objext conftest.beam conftest.$ac_ext
24296 else
24297 gcc_cv_have_tls=yes
24299 rm -f core conftest.err conftest.$ac_objext \
24300 conftest$ac_exeext conftest.$ac_ext
24301 LDFLAGS="$chktls_save_LDFLAGS"
24302 if test $gcc_cv_have_tls = yes; then
24303 chktls_save_CFLAGS="$CFLAGS"
24304 thread_CFLAGS=failed
24305 for flag in '' '-pthread' '-lpthread'; do
24306 CFLAGS="$flag $chktls_save_CFLAGS"
24307 if test x$gcc_no_link = xyes; then
24308 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24311 /* end confdefs.h. */
24312 #include <pthread.h>
24313 void *g(void *d) { return NULL; }
24315 main ()
24317 pthread_t t; pthread_create(&t,NULL,g,NULL);
24319 return 0;
24321 _ACEOF
24322 if ac_fn_c_try_link "$LINENO"; then :
24323 thread_CFLAGS="$flag"
24325 rm -f core conftest.err conftest.$ac_objext \
24326 conftest$ac_exeext conftest.$ac_ext
24327 if test "X$thread_CFLAGS" != Xfailed; then
24328 break
24330 done
24331 CFLAGS="$chktls_save_CFLAGS"
24332 if test "X$thread_CFLAGS" != Xfailed; then
24333 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
24334 if test "$cross_compiling" = yes; then :
24335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24337 as_fn_error "cannot run test program while cross compiling
24338 See \`config.log' for more details." "$LINENO" 5; }
24339 else
24340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24341 /* end confdefs.h. */
24342 #include <pthread.h>
24343 __thread int a;
24344 static int *a_in_other_thread;
24345 static void *
24346 thread_func (void *arg)
24348 a_in_other_thread = &a;
24349 return (void *)0;
24352 main ()
24354 pthread_t thread;
24355 void *thread_retval;
24356 int *a_in_main_thread;
24357 if (pthread_create (&thread, (pthread_attr_t *)0,
24358 thread_func, (void *)0))
24359 return 0;
24360 a_in_main_thread = &a;
24361 if (pthread_join (thread, &thread_retval))
24362 return 0;
24363 return (a_in_other_thread == a_in_main_thread);
24365 return 0;
24367 _ACEOF
24368 if ac_fn_c_try_run "$LINENO"; then :
24369 gcc_cv_have_tls=yes
24370 else
24371 gcc_cv_have_tls=no
24373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24374 conftest.$ac_objext conftest.beam conftest.$ac_ext
24377 CFLAGS="$chktls_save_CFLAGS"
24380 else
24381 gcc_cv_have_tls=no
24383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24384 conftest.$ac_objext conftest.beam conftest.$ac_ext
24388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
24389 $as_echo "$gcc_cv_have_tls" >&6; }
24390 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
24392 $as_echo "#define HAVE_TLS 1" >>confdefs.h
24396 # For _Unwind_GetIPInfo.
24399 # Check whether --with-system-libunwind was given.
24400 if test "${with_system_libunwind+set}" = set; then :
24401 withval=$with_system_libunwind;
24404 # If system-libunwind was not specifically set, pick a default setting.
24405 if test x$with_system_libunwind = x; then
24406 case ${target} in
24407 ia64-*-hpux*) with_system_libunwind=yes ;;
24408 *) with_system_libunwind=no ;;
24409 esac
24411 # Based on system-libunwind and target, do we have ipinfo?
24412 if test x$with_system_libunwind = xyes; then
24413 case ${target} in
24414 ia64-*-*) have_unwind_getipinfo=no ;;
24415 *) have_unwind_getipinfo=yes ;;
24416 esac
24417 else
24418 # Darwin before version 9 does not have _Unwind_GetIPInfo.
24420 case ${target} in
24421 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
24422 *) have_unwind_getipinfo=yes ;;
24423 esac
24427 if test x$have_unwind_getipinfo = xyes; then
24429 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
24434 # See if linker supports anonymous version scripts.
24435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous version scripts" >&5
24436 $as_echo_n "checking whether ld supports anonymous version scripts... " >&6; }
24437 if test "${libjava_cv_anon_version_script+set}" = set; then :
24438 $as_echo_n "(cached) " >&6
24439 else
24440 save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
24441 libjava_cv_anon_version_script=no
24442 CFLAGS="$CFLAGS -fPIC"; LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
24443 echo '{ global: globalsymb*; local: *; };' > conftest.map
24444 if test x$gcc_no_link = xyes; then
24445 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24448 /* end confdefs.h. */
24449 void globalsymbol (void) {} void localsymbol (void) {}
24451 main ()
24455 return 0;
24457 _ACEOF
24458 if ac_fn_c_try_link "$LINENO"; then :
24459 libjava_cv_anon_version_script=yes
24461 rm -f core conftest.err conftest.$ac_objext \
24462 conftest$ac_exeext conftest.$ac_ext
24463 CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
24466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_anon_version_script" >&5
24467 $as_echo "$libjava_cv_anon_version_script" >&6; }
24468 if test "$libjava_cv_anon_version_script" = yes; then
24469 ANONVERSCRIPT_TRUE=
24470 ANONVERSCRIPT_FALSE='#'
24471 else
24472 ANONVERSCRIPT_TRUE='#'
24473 ANONVERSCRIPT_FALSE=
24477 # Check if linker supports static linking on a per library basis
24478 LD_START_STATIC_SPEC=
24479 LD_FINISH_STATIC_SPEC=
24480 if $LD --help 2>&1 | grep -q -e -call_shared ; then
24481 if $LD --help 2>&1 | grep -q -e -non_shared ; then
24482 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
24483 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
24489 here=`${PWDCMD-pwd}`
24492 # We get this from the environment.
24496 # Check whether --with-python-dir was given.
24497 if test "${with_python_dir+set}" = set; then :
24498 withval=$with_python_dir; with_python_dir=$withval
24499 else
24500 with_python_dir=""
24504 if test "x${with_python_dir}" = "x"
24505 then
24506 # Needed for installing Python modules during make install.
24507 python_mod_dir="\${prefix}/share/python"
24508 # Needed for substituting into aot-compile*
24509 python_mod_dir_expanded="${expanded_prefix}/share/python"
24510 else
24511 python_mod_dir="\${prefix}${with_python_dir}"
24512 python_mod_dir_expanded="${expanded_prefix}${with_python_dir}"
24514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Python modules dir: ${python_mod_dir_expanded}" >&5
24515 $as_echo "Python modules dir: ${python_mod_dir_expanded}" >&6; };
24519 # needed for aot-compile-rpm
24520 MAKE=`which make`
24523 # Check whether --enable-aot-compile-rpm was given.
24524 if test "${enable_aot_compile_rpm+set}" = set; then :
24525 enableval=$enable_aot_compile_rpm; case "${enableval}" in
24526 yes) AOT_RPM_ENABLED=yes ;;
24527 no) AOT_RPM_ENABLED=no ;;
24528 *) as_fn_error "Unknown argument to enable/disable aot-compile-rpm" "$LINENO" 5 ;;
24529 esac
24530 else
24531 AOT_RPM_ENABLED=no
24535 if test "x${AOT_RPM_ENABLED}" = xyes; then
24536 INSTALL_AOT_RPM_TRUE=
24537 INSTALL_AOT_RPM_FALSE='#'
24538 else
24539 INSTALL_AOT_RPM_TRUE='#'
24540 INSTALL_AOT_RPM_FALSE=
24544 # Check whether --enable-java-home was given.
24545 if test "${enable_java_home+set}" = set; then :
24546 enableval=$enable_java_home; case "${enableval}" in
24547 yes) JAVA_HOME_ENABLED=yes ;;
24548 no) JAVA_HOME_ENABLED=no ;;
24549 *) as_fn_error "Unknown argument to enable/disable java-home" "$LINENO" 5 ;;
24550 esac
24551 else
24552 JAVA_HOME_ENABLED=no
24556 if test "x${JAVA_HOME_ENABLED}" = xyes; then
24557 CREATE_JAVA_HOME_TRUE=
24558 CREATE_JAVA_HOME_FALSE='#'
24559 else
24560 CREATE_JAVA_HOME_TRUE='#'
24561 CREATE_JAVA_HOME_FALSE=
24565 # Only do these checks if java-home above is enabled.
24566 if test "x${JAVA_HOME_ENABLED}" = xyes
24567 then
24570 # Check whether --with-gcc-suffix was given.
24571 if test "${with_gcc_suffix+set}" = set; then :
24572 withval=$with_gcc_suffix; gcc_suffix=$withval
24573 else
24574 gcc_suffix=""
24577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCC suffix: ${gcc_suffix}" >&5
24578 $as_echo "GCC suffix: ${gcc_suffix}" >&6; }
24582 # Check whether --with-arch-directory was given.
24583 if test "${with_arch_directory+set}" = set; then :
24584 withval=$with_arch_directory; host_cpu=$withval
24585 else
24586 host_cpu=""
24591 # Check whether --with-os-directory was given.
24592 if test "${with_os_directory+set}" = set; then :
24593 withval=$with_os_directory; host_os=$withval
24594 else
24595 host_os=""
24600 # Check whether --with-origin-name was given.
24601 if test "${with_origin_name+set}" = set; then :
24602 withval=$with_origin_name; origin_name=$withval
24603 else
24604 origin_name=gcj${gcc_suffix}
24607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JPackage origin name: ${origin_name}" >&5
24608 $as_echo "JPackage origin name: ${origin_name}" >&6; }
24611 # Check whether --with-arch-suffix was given.
24612 if test "${with_arch_suffix+set}" = set; then :
24613 withval=$with_arch_suffix; arch_suffix=$withval
24614 else
24615 arch_suffix=""
24618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch suffix: ${arch_suffix}" >&5
24619 $as_echo "arch suffix: ${arch_suffix}" >&6; }
24622 # Check whether --with-jvm-root-dir was given.
24623 if test "${with_jvm_root_dir+set}" = set; then :
24624 withval=$with_jvm_root_dir; jvm_root_dir=$withval
24625 else
24626 jvm_root_dir="\${prefix}/lib/jvm"
24629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM root installation directory: ${jvm_root_dir}" >&5
24630 $as_echo "JVM root installation directory: ${jvm_root_dir}" >&6; }
24633 # Check whether --with-jvm-jar-dir was given.
24634 if test "${with_jvm_jar_dir+set}" = set; then :
24635 withval=$with_jvm_jar_dir; jvm_jar_dir=$withval
24636 else
24637 jvm_jar_dir=\${prefix}/lib/jvm-exports
24640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JAR root installation directory: ${jvm_jar_dir}" >&5
24641 $as_echo "JAR root installation directory: ${jvm_jar_dir}" >&6; }
24643 JAVA_VERSION=1.5.0
24644 BUILD_VERSION=0
24647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Java version: ${JAVA_VERSION}" >&5
24648 $as_echo "Java version: ${JAVA_VERSION}" >&6; }
24650 jre_dir=jre
24651 jre_lnk=jre-${JAVA_VERSION}-${origin_name}
24652 sdk_lnk=java-${JAVA_VERSION}-${origin_name}
24654 JVM_ROOT_DIR=${jvm_root_dir}
24656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5
24657 $as_echo "JVM ROOT directory: ${JVM_ROOT_DIR}" >&6; }
24659 JVM_JAR_ROOT_DIR=${jvm_jar_dir}
24661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5
24662 $as_echo "JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6; }
24664 JVM_JAR_DIR=${jvm_jar_dir}
24666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5
24667 $as_echo "JVM JAR directory: ${JVM_JAR_DIR}" >&6; }
24669 JRE_DIR=${jre_dir}
24672 JRE_LNK=${jre_lnk}
24675 SDK_LNK=${sdk_lnk}
24678 SDK_BIN_DIR=${jvm_root_dir}/bin
24680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK tools directory: ${SDK_BIN_DIR}" >&5
24681 $as_echo "SDK tools directory: ${SDK_BIN_DIR}" >&6; }
24683 SDK_LIB_DIR=${jvm_root_dir}/lib
24685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK jar directory: ${SDK_LIB_DIR}" >&5
24686 $as_echo "SDK jar directory: ${SDK_LIB_DIR}" >&6; }
24688 SDK_INCLUDE_DIR=${jvm_root_dir}/include
24690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5
24691 $as_echo "SDK include directory: ${SDK_INCLUDE_DIR}" >&6; }
24693 JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin
24695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE tools directory: ${JRE_BIN_DIR}" >&5
24696 $as_echo "JRE tools directory: ${JRE_BIN_DIR}" >&6; }
24698 JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib
24700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE lib directory: ${JRE_LIB_DIR}" >&5
24701 $as_echo "JRE lib directory: ${JRE_LIB_DIR}" >&6; }
24703 # Find gcj prefix using gcj found in PATH.
24704 gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"`
24706 # Where do the gcj binaries live?
24707 # For jhbuild based builds, they all live in a sibling of bin called
24708 # gcj-bin. Check for gcj-bin first, and use bin otherwise.
24709 GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi`
24711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5
24712 $as_echo "GCJ tools directory: ${GCJ_BIN_DIR}" >&6; }
24714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host is ${host}" >&5
24715 $as_echo "host is ${host}" >&6; }
24716 if test "x${host_cpu}" = "x"
24717 then
24718 case ${host} in
24719 *-mingw* | *-cygwin*)
24720 host_cpu=x86;;
24721 i486-* | i586-* | i686-*)
24722 host_cpu=i386;;
24723 x86_64-*)
24724 host_cpu=amd64;;
24726 host_cpu=${host_cpu};;
24727 esac
24729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch directory: ${host_cpu}" >&5
24730 $as_echo "arch directory: ${host_cpu}" >&6; }
24731 CPU=${host_cpu}
24734 if test "x${host_os}" = "x"
24735 then
24736 case ${host} in
24737 *-mingw* | *-cygwin*)
24738 host_os=win32;;
24739 *-linux*)
24740 host_os=linux;;
24742 host_os=${host_os};;
24743 esac
24745 echo os directory: ${host_os}
24746 OS=${host_os}
24749 # make an expanded $libdir, for substituting into
24750 # scripts (and other non-Makefile things).
24751 LIBDIR=$libdir
24752 if test "x${exec_prefix}" = "xNONE"
24753 then
24754 lib_exec_prefix=$expanded_prefix
24755 else
24756 lib_exec_prefix=$exec_prefix
24758 LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"`
24762 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"
24765 if test ${multilib} = yes; then
24766 multilib_arg="--enable-multilib"
24767 else
24768 multilib_arg=
24771 ac_config_files="$ac_config_files scripts/jar"
24773 cat >confcache <<\_ACEOF
24774 # This file is a shell script that caches the results of configure
24775 # tests run on this system so they can be shared between configure
24776 # scripts and configure runs, see configure's option --config-cache.
24777 # It is not useful on other systems. If it contains results you don't
24778 # want to keep, you may remove or edit it.
24780 # config.status only pays attention to the cache file if you give it
24781 # the --recheck option to rerun configure.
24783 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24784 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24785 # following values.
24787 _ACEOF
24789 # The following way of writing the cache mishandles newlines in values,
24790 # but we know of no workaround that is simple, portable, and efficient.
24791 # So, we kill variables containing newlines.
24792 # Ultrix sh set writes to stderr and can't be redirected directly,
24793 # and sets the high bit in the cache file unless we assign to the vars.
24795 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24796 eval ac_val=\$$ac_var
24797 case $ac_val in #(
24798 *${as_nl}*)
24799 case $ac_var in #(
24800 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24801 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24802 esac
24803 case $ac_var in #(
24804 _ | IFS | as_nl) ;; #(
24805 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24806 *) { eval $ac_var=; unset $ac_var;} ;;
24807 esac ;;
24808 esac
24809 done
24811 (set) 2>&1 |
24812 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24813 *${as_nl}ac_space=\ *)
24814 # `set' does not quote correctly, so add quotes: double-quote
24815 # substitution turns \\\\ into \\, and sed turns \\ into \.
24816 sed -n \
24817 "s/'/'\\\\''/g;
24818 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24819 ;; #(
24821 # `set' quotes correctly as required by POSIX, so do not add quotes.
24822 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24824 esac |
24825 sort
24827 sed '
24828 /^ac_cv_env_/b end
24829 t clear
24830 :clear
24831 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24832 t end
24833 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24834 :end' >>confcache
24835 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24836 if test -w "$cache_file"; then
24837 test "x$cache_file" != "x/dev/null" &&
24838 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24839 $as_echo "$as_me: updating cache $cache_file" >&6;}
24840 cat confcache >$cache_file
24841 else
24842 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24843 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24846 rm -f confcache
24848 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24849 # Let make expand exec_prefix.
24850 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24852 DEFS=-DHAVE_CONFIG_H
24854 ac_libobjs=
24855 ac_ltlibobjs=
24856 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24857 # 1. Remove the extension, and $U if already installed.
24858 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24859 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24860 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24861 # will be set to the directory where LIBOBJS objects are built.
24862 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24863 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24864 done
24865 LIBOBJS=$ac_libobjs
24867 LTLIBOBJS=$ac_ltlibobjs
24870 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
24871 as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
24872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24874 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
24875 as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
24876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24878 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24879 as_fn_error "conditional \"AMDEP\" was never defined.
24880 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24882 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24883 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24884 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24886 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24887 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
24888 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24890 if test -n "$EXEEXT"; then
24891 am__EXEEXT_TRUE=
24892 am__EXEEXT_FALSE='#'
24893 else
24894 am__EXEEXT_TRUE='#'
24895 am__EXEEXT_FALSE=
24898 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24899 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
24900 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24902 if test -z "${BUILD_SUBLIBS_TRUE}" && test -z "${BUILD_SUBLIBS_FALSE}"; then
24903 as_fn_error "conditional \"BUILD_SUBLIBS\" was never defined.
24904 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24906 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
24907 as_fn_error "conditional \"XLIB_AWT\" was never defined.
24908 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24910 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
24911 as_fn_error "conditional \"X_AWT\" was never defined.
24912 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24914 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24915 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24916 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24918 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24919 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24920 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24922 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
24923 as_fn_error "conditional \"TESTSUBDIR\" was never defined.
24924 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24926 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
24927 as_fn_error "conditional \"BUILD_ECJ1\" was never defined.
24928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24930 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
24931 as_fn_error "conditional \"INSTALL_ECJ_JAR\" was never defined.
24932 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24934 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
24935 as_fn_error "conditional \"JAVA_HOME_SET\" was never defined.
24936 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24938 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
24939 as_fn_error "conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
24940 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24942 if test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE}" && test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE}"; then
24943 as_fn_error "conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
24944 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24946 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
24947 as_fn_error "conditional \"INTERPRETER\" was never defined.
24948 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24950 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
24951 as_fn_error "conditional \"USING_WIN32_PLATFORM\" was never defined.
24952 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24954 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
24955 as_fn_error "conditional \"USING_POSIX_PLATFORM\" was never defined.
24956 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24958 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
24959 as_fn_error "conditional \"USING_DARWIN_CRT\" was never defined.
24960 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24962 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
24963 as_fn_error "conditional \"USING_BOEHMGC\" was never defined.
24964 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24966 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
24967 as_fn_error "conditional \"USING_NOGC\" was never defined.
24968 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24970 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
24971 as_fn_error "conditional \"USING_POSIX_THREADS\" was never defined.
24972 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24974 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
24975 as_fn_error "conditional \"USING_WIN32_THREADS\" was never defined.
24976 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24978 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
24979 as_fn_error "conditional \"USING_NO_THREADS\" was never defined.
24980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24982 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
24983 as_fn_error "conditional \"USE_LIBGCJ_BC\" was never defined.
24984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24986 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
24987 as_fn_error "conditional \"USING_GCC\" was never defined.
24988 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24990 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24991 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24992 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24995 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
24996 as_fn_error "conditional \"NATIVE\" was never defined.
24997 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24999 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
25000 as_fn_error "conditional \"ENABLE_SHARED\" was never defined.
25001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25003 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
25004 as_fn_error "conditional \"NEEDS_DATA_START\" was never defined.
25005 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25007 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
25008 as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
25009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25011 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
25012 as_fn_error "conditional \"ANONVERSCRIPT\" was never defined.
25013 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25015 if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then
25016 as_fn_error "conditional \"INSTALL_AOT_RPM\" was never defined.
25017 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25019 if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then
25020 as_fn_error "conditional \"CREATE_JAVA_HOME\" was never defined.
25021 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25024 : ${CONFIG_STATUS=./config.status}
25025 ac_write_fail=0
25026 ac_clean_files_save=$ac_clean_files
25027 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25028 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25029 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25030 as_write_fail=0
25031 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25032 #! $SHELL
25033 # Generated by $as_me.
25034 # Run this file to recreate the current configuration.
25035 # Compiler output produced by configure, useful for debugging
25036 # configure, is in config.log if it exists.
25038 debug=false
25039 ac_cs_recheck=false
25040 ac_cs_silent=false
25042 SHELL=\${CONFIG_SHELL-$SHELL}
25043 export SHELL
25044 _ASEOF
25045 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25046 ## -------------------- ##
25047 ## M4sh Initialization. ##
25048 ## -------------------- ##
25050 # Be more Bourne compatible
25051 DUALCASE=1; export DUALCASE # for MKS sh
25052 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25053 emulate sh
25054 NULLCMD=:
25055 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25056 # is contrary to our usage. Disable this feature.
25057 alias -g '${1+"$@"}'='"$@"'
25058 setopt NO_GLOB_SUBST
25059 else
25060 case `(set -o) 2>/dev/null` in #(
25061 *posix*) :
25062 set -o posix ;; #(
25063 *) :
25065 esac
25069 as_nl='
25071 export as_nl
25072 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25073 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25074 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25075 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25076 # Prefer a ksh shell builtin over an external printf program on Solaris,
25077 # but without wasting forks for bash or zsh.
25078 if test -z "$BASH_VERSION$ZSH_VERSION" \
25079 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25080 as_echo='print -r --'
25081 as_echo_n='print -rn --'
25082 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25083 as_echo='printf %s\n'
25084 as_echo_n='printf %s'
25085 else
25086 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25087 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25088 as_echo_n='/usr/ucb/echo -n'
25089 else
25090 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25091 as_echo_n_body='eval
25092 arg=$1;
25093 case $arg in #(
25094 *"$as_nl"*)
25095 expr "X$arg" : "X\\(.*\\)$as_nl";
25096 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25097 esac;
25098 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25100 export as_echo_n_body
25101 as_echo_n='sh -c $as_echo_n_body as_echo'
25103 export as_echo_body
25104 as_echo='sh -c $as_echo_body as_echo'
25107 # The user is always right.
25108 if test "${PATH_SEPARATOR+set}" != set; then
25109 PATH_SEPARATOR=:
25110 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25111 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25112 PATH_SEPARATOR=';'
25117 # IFS
25118 # We need space, tab and new line, in precisely that order. Quoting is
25119 # there to prevent editors from complaining about space-tab.
25120 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25121 # splitting by setting IFS to empty value.)
25122 IFS=" "" $as_nl"
25124 # Find who we are. Look in the path if we contain no directory separator.
25125 case $0 in #((
25126 *[\\/]* ) as_myself=$0 ;;
25127 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25128 for as_dir in $PATH
25130 IFS=$as_save_IFS
25131 test -z "$as_dir" && as_dir=.
25132 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25133 done
25134 IFS=$as_save_IFS
25137 esac
25138 # We did not find ourselves, most probably we were run as `sh COMMAND'
25139 # in which case we are not to be found in the path.
25140 if test "x$as_myself" = x; then
25141 as_myself=$0
25143 if test ! -f "$as_myself"; then
25144 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25145 exit 1
25148 # Unset variables that we do not need and which cause bugs (e.g. in
25149 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25150 # suppresses any "Segmentation fault" message there. '((' could
25151 # trigger a bug in pdksh 5.2.14.
25152 for as_var in BASH_ENV ENV MAIL MAILPATH
25153 do eval test x\${$as_var+set} = xset \
25154 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25155 done
25156 PS1='$ '
25157 PS2='> '
25158 PS4='+ '
25160 # NLS nuisances.
25161 LC_ALL=C
25162 export LC_ALL
25163 LANGUAGE=C
25164 export LANGUAGE
25166 # CDPATH.
25167 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25170 # as_fn_error ERROR [LINENO LOG_FD]
25171 # ---------------------------------
25172 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25173 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25174 # script with status $?, using 1 if that was 0.
25175 as_fn_error ()
25177 as_status=$?; test $as_status -eq 0 && as_status=1
25178 if test "$3"; then
25179 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25180 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25182 $as_echo "$as_me: error: $1" >&2
25183 as_fn_exit $as_status
25184 } # as_fn_error
25187 # as_fn_set_status STATUS
25188 # -----------------------
25189 # Set $? to STATUS, without forking.
25190 as_fn_set_status ()
25192 return $1
25193 } # as_fn_set_status
25195 # as_fn_exit STATUS
25196 # -----------------
25197 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25198 as_fn_exit ()
25200 set +e
25201 as_fn_set_status $1
25202 exit $1
25203 } # as_fn_exit
25205 # as_fn_unset VAR
25206 # ---------------
25207 # Portably unset VAR.
25208 as_fn_unset ()
25210 { eval $1=; unset $1;}
25212 as_unset=as_fn_unset
25213 # as_fn_append VAR VALUE
25214 # ----------------------
25215 # Append the text in VALUE to the end of the definition contained in VAR. Take
25216 # advantage of any shell optimizations that allow amortized linear growth over
25217 # repeated appends, instead of the typical quadratic growth present in naive
25218 # implementations.
25219 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25220 eval 'as_fn_append ()
25222 eval $1+=\$2
25224 else
25225 as_fn_append ()
25227 eval $1=\$$1\$2
25229 fi # as_fn_append
25231 # as_fn_arith ARG...
25232 # ------------------
25233 # Perform arithmetic evaluation on the ARGs, and store the result in the
25234 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25235 # must be portable across $(()) and expr.
25236 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25237 eval 'as_fn_arith ()
25239 as_val=$(( $* ))
25241 else
25242 as_fn_arith ()
25244 as_val=`expr "$@" || test $? -eq 1`
25246 fi # as_fn_arith
25249 if expr a : '\(a\)' >/dev/null 2>&1 &&
25250 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25251 as_expr=expr
25252 else
25253 as_expr=false
25256 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25257 as_basename=basename
25258 else
25259 as_basename=false
25262 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25263 as_dirname=dirname
25264 else
25265 as_dirname=false
25268 as_me=`$as_basename -- "$0" ||
25269 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25270 X"$0" : 'X\(//\)$' \| \
25271 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25272 $as_echo X/"$0" |
25273 sed '/^.*\/\([^/][^/]*\)\/*$/{
25274 s//\1/
25277 /^X\/\(\/\/\)$/{
25278 s//\1/
25281 /^X\/\(\/\).*/{
25282 s//\1/
25285 s/.*/./; q'`
25287 # Avoid depending upon Character Ranges.
25288 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25289 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25290 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25291 as_cr_digits='0123456789'
25292 as_cr_alnum=$as_cr_Letters$as_cr_digits
25294 ECHO_C= ECHO_N= ECHO_T=
25295 case `echo -n x` in #(((((
25296 -n*)
25297 case `echo 'xy\c'` in
25298 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25299 xy) ECHO_C='\c';;
25300 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25301 ECHO_T=' ';;
25302 esac;;
25304 ECHO_N='-n';;
25305 esac
25307 rm -f conf$$ conf$$.exe conf$$.file
25308 if test -d conf$$.dir; then
25309 rm -f conf$$.dir/conf$$.file
25310 else
25311 rm -f conf$$.dir
25312 mkdir conf$$.dir 2>/dev/null
25314 if (echo >conf$$.file) 2>/dev/null; then
25315 if ln -s conf$$.file conf$$ 2>/dev/null; then
25316 as_ln_s='ln -s'
25317 # ... but there are two gotchas:
25318 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25319 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25320 # In both cases, we have to default to `cp -p'.
25321 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25322 as_ln_s='cp -p'
25323 elif ln conf$$.file conf$$ 2>/dev/null; then
25324 as_ln_s=ln
25325 else
25326 as_ln_s='cp -p'
25328 else
25329 as_ln_s='cp -p'
25331 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25332 rmdir conf$$.dir 2>/dev/null
25335 # as_fn_mkdir_p
25336 # -------------
25337 # Create "$as_dir" as a directory, including parents if necessary.
25338 as_fn_mkdir_p ()
25341 case $as_dir in #(
25342 -*) as_dir=./$as_dir;;
25343 esac
25344 test -d "$as_dir" || eval $as_mkdir_p || {
25345 as_dirs=
25346 while :; do
25347 case $as_dir in #(
25348 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25349 *) as_qdir=$as_dir;;
25350 esac
25351 as_dirs="'$as_qdir' $as_dirs"
25352 as_dir=`$as_dirname -- "$as_dir" ||
25353 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25354 X"$as_dir" : 'X\(//\)[^/]' \| \
25355 X"$as_dir" : 'X\(//\)$' \| \
25356 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25357 $as_echo X"$as_dir" |
25358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25359 s//\1/
25362 /^X\(\/\/\)[^/].*/{
25363 s//\1/
25366 /^X\(\/\/\)$/{
25367 s//\1/
25370 /^X\(\/\).*/{
25371 s//\1/
25374 s/.*/./; q'`
25375 test -d "$as_dir" && break
25376 done
25377 test -z "$as_dirs" || eval "mkdir $as_dirs"
25378 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25381 } # as_fn_mkdir_p
25382 if mkdir -p . 2>/dev/null; then
25383 as_mkdir_p='mkdir -p "$as_dir"'
25384 else
25385 test -d ./-p && rmdir ./-p
25386 as_mkdir_p=false
25389 if test -x / >/dev/null 2>&1; then
25390 as_test_x='test -x'
25391 else
25392 if ls -dL / >/dev/null 2>&1; then
25393 as_ls_L_option=L
25394 else
25395 as_ls_L_option=
25397 as_test_x='
25398 eval sh -c '\''
25399 if test -d "$1"; then
25400 test -d "$1/.";
25401 else
25402 case $1 in #(
25403 -*)set "./$1";;
25404 esac;
25405 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25406 ???[sx]*):;;*)false;;esac;fi
25407 '\'' sh
25410 as_executable_p=$as_test_x
25412 # Sed expression to map a string onto a valid CPP name.
25413 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25415 # Sed expression to map a string onto a valid variable name.
25416 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25419 exec 6>&1
25420 ## ----------------------------------- ##
25421 ## Main body of $CONFIG_STATUS script. ##
25422 ## ----------------------------------- ##
25423 _ASEOF
25424 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25427 # Save the log message, to keep $0 and so on meaningful, and to
25428 # report actual input values of CONFIG_FILES etc. instead of their
25429 # values after options handling.
25430 ac_log="
25431 This file was extended by libjava $as_me version-unused, which was
25432 generated by GNU Autoconf 2.64. Invocation command line was
25434 CONFIG_FILES = $CONFIG_FILES
25435 CONFIG_HEADERS = $CONFIG_HEADERS
25436 CONFIG_LINKS = $CONFIG_LINKS
25437 CONFIG_COMMANDS = $CONFIG_COMMANDS
25438 $ $0 $@
25440 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25443 _ACEOF
25445 case $ac_config_files in *"
25446 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25447 esac
25449 case $ac_config_headers in *"
25450 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25451 esac
25454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25455 # Files that config.status was made for.
25456 config_files="$ac_config_files"
25457 config_headers="$ac_config_headers"
25458 config_links="$ac_config_links"
25459 config_commands="$ac_config_commands"
25461 _ACEOF
25463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25464 ac_cs_usage="\
25465 \`$as_me' instantiates files and other configuration actions
25466 from templates according to the current configuration. Unless the files
25467 and actions are specified as TAGs, all are instantiated by default.
25469 Usage: $0 [OPTION]... [TAG]...
25471 -h, --help print this help, then exit
25472 -V, --version print version number and configuration settings, then exit
25473 -q, --quiet, --silent
25474 do not print progress messages
25475 -d, --debug don't remove temporary files
25476 --recheck update $as_me by reconfiguring in the same conditions
25477 --file=FILE[:TEMPLATE]
25478 instantiate the configuration file FILE
25479 --header=FILE[:TEMPLATE]
25480 instantiate the configuration header FILE
25482 Configuration files:
25483 $config_files
25485 Configuration headers:
25486 $config_headers
25488 Configuration links:
25489 $config_links
25491 Configuration commands:
25492 $config_commands
25494 Report bugs to the package provider."
25496 _ACEOF
25497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25498 ac_cs_version="\\
25499 libjava config.status version-unused
25500 configured by $0, generated by GNU Autoconf 2.64,
25501 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25503 Copyright (C) 2009 Free Software Foundation, Inc.
25504 This config.status script is free software; the Free Software Foundation
25505 gives unlimited permission to copy, distribute and modify it."
25507 ac_pwd='$ac_pwd'
25508 srcdir='$srcdir'
25509 INSTALL='$INSTALL'
25510 MKDIR_P='$MKDIR_P'
25511 AWK='$AWK'
25512 test -n "\$AWK" || AWK=awk
25513 _ACEOF
25515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25516 # The default lists apply if the user does not specify any file.
25517 ac_need_defaults=:
25518 while test $# != 0
25520 case $1 in
25521 --*=*)
25522 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25523 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25524 ac_shift=:
25527 ac_option=$1
25528 ac_optarg=$2
25529 ac_shift=shift
25531 esac
25533 case $ac_option in
25534 # Handling of the options.
25535 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25536 ac_cs_recheck=: ;;
25537 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25538 $as_echo "$ac_cs_version"; exit ;;
25539 --debug | --debu | --deb | --de | --d | -d )
25540 debug=: ;;
25541 --file | --fil | --fi | --f )
25542 $ac_shift
25543 case $ac_optarg in
25544 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25545 esac
25546 as_fn_append CONFIG_FILES " '$ac_optarg'"
25547 ac_need_defaults=false;;
25548 --header | --heade | --head | --hea )
25549 $ac_shift
25550 case $ac_optarg in
25551 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25552 esac
25553 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25554 ac_need_defaults=false;;
25555 --he | --h)
25556 # Conflict between --help and --header
25557 as_fn_error "ambiguous option: \`$1'
25558 Try \`$0 --help' for more information.";;
25559 --help | --hel | -h )
25560 $as_echo "$ac_cs_usage"; exit ;;
25561 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25562 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25563 ac_cs_silent=: ;;
25565 # This is an error.
25566 -*) as_fn_error "unrecognized option: \`$1'
25567 Try \`$0 --help' for more information." ;;
25569 *) as_fn_append ac_config_targets " $1"
25570 ac_need_defaults=false ;;
25572 esac
25573 shift
25574 done
25576 ac_configure_extra_args=
25578 if $ac_cs_silent; then
25579 exec 6>/dev/null
25580 ac_configure_extra_args="$ac_configure_extra_args --silent"
25583 _ACEOF
25584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25585 if \$ac_cs_recheck; then
25586 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25587 shift
25588 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25589 CONFIG_SHELL='$SHELL'
25590 export CONFIG_SHELL
25591 exec "\$@"
25594 _ACEOF
25595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25596 exec 5>>config.log
25598 echo
25599 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25600 ## Running $as_me. ##
25601 _ASBOX
25602 $as_echo "$ac_log"
25603 } >&5
25605 _ACEOF
25606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25608 # INIT-COMMANDS
25611 srcdir="$srcdir"
25612 host="$host"
25613 target="$target"
25614 with_multisubdir="$with_multisubdir"
25615 with_multisrctop="$with_multisrctop"
25616 with_target_subdir="$with_target_subdir"
25617 ac_configure_args="${multilib_arg} ${ac_configure_args}"
25618 multi_basedir="$multi_basedir"
25619 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
25620 CC="$CC"
25621 CXX="$CXX"
25622 GFORTRAN="$GFORTRAN"
25623 GCJ="$GCJ"
25624 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25627 # The HP-UX ksh and POSIX shell print the target directory to stdout
25628 # if CDPATH is set.
25629 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25631 sed_quote_subst='$sed_quote_subst'
25632 double_quote_subst='$double_quote_subst'
25633 delay_variable_subst='$delay_variable_subst'
25634 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25635 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25636 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25637 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25638 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25639 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25640 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25641 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25642 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25643 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25644 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25645 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25646 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25647 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25648 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25649 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25650 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25651 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25652 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25653 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25654 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25655 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25656 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25657 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25658 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25659 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25660 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25661 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25662 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25663 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25664 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25665 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25666 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25667 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25668 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25669 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25670 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25671 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25672 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25673 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25674 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25675 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25676 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25677 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25678 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25679 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25680 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25681 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25682 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"`'
25683 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25684 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25685 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25686 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25687 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25688 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25689 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25690 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25691 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25692 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25693 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25694 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25695 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25696 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25697 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25698 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25699 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25700 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25701 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25702 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25703 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25704 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25705 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25706 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25707 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25708 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25709 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25710 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25711 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25712 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25713 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25714 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
25715 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25716 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25717 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25718 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25719 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25720 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25721 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25722 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25723 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
25724 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25725 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25726 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25727 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25728 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25729 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25730 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25731 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25732 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25733 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25734 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25735 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25736 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25737 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25738 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25739 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25740 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25741 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25742 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25743 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25744 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25745 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25746 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25747 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25748 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25749 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25750 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25751 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25752 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25753 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25754 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25755 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25756 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25757 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25758 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25759 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25760 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25761 LD_GCJ='`$ECHO "$LD_GCJ" | $SED "$delay_single_quote_subst"`'
25762 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25763 reload_flag_GCJ='`$ECHO "$reload_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25764 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25765 reload_cmds_GCJ='`$ECHO "$reload_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25766 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25767 old_archive_cmds_GCJ='`$ECHO "$old_archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25768 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25769 compiler_GCJ='`$ECHO "$compiler_GCJ" | $SED "$delay_single_quote_subst"`'
25770 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25771 GCC_GCJ='`$ECHO "$GCC_GCJ" | $SED "$delay_single_quote_subst"`'
25772 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25773 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "$lt_prog_compiler_no_builtin_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25774 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25775 lt_prog_compiler_wl_GCJ='`$ECHO "$lt_prog_compiler_wl_GCJ" | $SED "$delay_single_quote_subst"`'
25776 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25777 lt_prog_compiler_pic_GCJ='`$ECHO "$lt_prog_compiler_pic_GCJ" | $SED "$delay_single_quote_subst"`'
25778 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25779 lt_prog_compiler_static_GCJ='`$ECHO "$lt_prog_compiler_static_GCJ" | $SED "$delay_single_quote_subst"`'
25780 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25781 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "$lt_cv_prog_compiler_c_o_GCJ" | $SED "$delay_single_quote_subst"`'
25782 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25783 archive_cmds_need_lc_GCJ='`$ECHO "$archive_cmds_need_lc_GCJ" | $SED "$delay_single_quote_subst"`'
25784 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25785 enable_shared_with_static_runtimes_GCJ='`$ECHO "$enable_shared_with_static_runtimes_GCJ" | $SED "$delay_single_quote_subst"`'
25786 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25787 export_dynamic_flag_spec_GCJ='`$ECHO "$export_dynamic_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25788 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25789 whole_archive_flag_spec_GCJ='`$ECHO "$whole_archive_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25790 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25791 compiler_needs_object_GCJ='`$ECHO "$compiler_needs_object_GCJ" | $SED "$delay_single_quote_subst"`'
25792 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25793 old_archive_from_new_cmds_GCJ='`$ECHO "$old_archive_from_new_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25794 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25795 old_archive_from_expsyms_cmds_GCJ='`$ECHO "$old_archive_from_expsyms_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25796 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25797 archive_cmds_GCJ='`$ECHO "$archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25798 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25799 archive_expsym_cmds_GCJ='`$ECHO "$archive_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25800 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25801 module_cmds_GCJ='`$ECHO "$module_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25802 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25803 module_expsym_cmds_GCJ='`$ECHO "$module_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25804 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25805 with_gnu_ld_GCJ='`$ECHO "$with_gnu_ld_GCJ" | $SED "$delay_single_quote_subst"`'
25806 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25807 allow_undefined_flag_GCJ='`$ECHO "$allow_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25808 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25809 no_undefined_flag_GCJ='`$ECHO "$no_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25810 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25811 hardcode_libdir_flag_spec_GCJ='`$ECHO "$hardcode_libdir_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25812 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
25813 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "$hardcode_libdir_flag_spec_ld_GCJ" | $SED "$delay_single_quote_subst"`'
25814 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25815 hardcode_libdir_separator_GCJ='`$ECHO "$hardcode_libdir_separator_GCJ" | $SED "$delay_single_quote_subst"`'
25816 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25817 hardcode_direct_GCJ='`$ECHO "$hardcode_direct_GCJ" | $SED "$delay_single_quote_subst"`'
25818 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25819 hardcode_direct_absolute_GCJ='`$ECHO "$hardcode_direct_absolute_GCJ" | $SED "$delay_single_quote_subst"`'
25820 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25821 hardcode_minus_L_GCJ='`$ECHO "$hardcode_minus_L_GCJ" | $SED "$delay_single_quote_subst"`'
25822 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25823 hardcode_shlibpath_var_GCJ='`$ECHO "$hardcode_shlibpath_var_GCJ" | $SED "$delay_single_quote_subst"`'
25824 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25825 hardcode_automatic_GCJ='`$ECHO "$hardcode_automatic_GCJ" | $SED "$delay_single_quote_subst"`'
25826 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25827 inherit_rpath_GCJ='`$ECHO "$inherit_rpath_GCJ" | $SED "$delay_single_quote_subst"`'
25828 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25829 link_all_deplibs_GCJ='`$ECHO "$link_all_deplibs_GCJ" | $SED "$delay_single_quote_subst"`'
25830 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
25831 fix_srcfile_path_GCJ='`$ECHO "$fix_srcfile_path_GCJ" | $SED "$delay_single_quote_subst"`'
25832 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
25833 always_export_symbols_GCJ='`$ECHO "$always_export_symbols_GCJ" | $SED "$delay_single_quote_subst"`'
25834 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25835 export_symbols_cmds_GCJ='`$ECHO "$export_symbols_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25836 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25837 exclude_expsyms_GCJ='`$ECHO "$exclude_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
25838 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25839 include_expsyms_GCJ='`$ECHO "$include_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
25840 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25841 prelink_cmds_GCJ='`$ECHO "$prelink_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25842 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
25843 file_list_spec_GCJ='`$ECHO "$file_list_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25844 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
25845 hardcode_action_GCJ='`$ECHO "$hardcode_action_GCJ" | $SED "$delay_single_quote_subst"`'
25846 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
25847 compiler_lib_search_dirs_GCJ='`$ECHO "$compiler_lib_search_dirs_GCJ" | $SED "$delay_single_quote_subst"`'
25848 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25849 predep_objects_GCJ='`$ECHO "$predep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
25850 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25851 postdep_objects_GCJ='`$ECHO "$postdep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
25852 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
25853 predeps_GCJ='`$ECHO "$predeps_GCJ" | $SED "$delay_single_quote_subst"`'
25854 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
25855 postdeps_GCJ='`$ECHO "$postdeps_GCJ" | $SED "$delay_single_quote_subst"`'
25856 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
25857 compiler_lib_search_path_GCJ='`$ECHO "$compiler_lib_search_path_GCJ" | $SED "$delay_single_quote_subst"`'
25859 LTCC='$LTCC'
25860 LTCFLAGS='$LTCFLAGS'
25861 compiler='$compiler_DEFAULT'
25863 # A function that is used when there is no print builtin or printf.
25864 func_fallback_echo ()
25866 eval 'cat <<_LTECHO_EOF
25868 _LTECHO_EOF'
25871 # Quote evaled strings.
25872 for var in SHELL \
25873 ECHO \
25874 SED \
25875 GREP \
25876 EGREP \
25877 FGREP \
25878 LD \
25879 NM \
25880 LN_S \
25881 lt_SP2NL \
25882 lt_NL2SP \
25883 reload_flag \
25884 OBJDUMP \
25885 deplibs_check_method \
25886 file_magic_cmd \
25887 AR \
25888 AR_FLAGS \
25889 STRIP \
25890 RANLIB \
25891 CC \
25892 CFLAGS \
25893 compiler \
25894 lt_cv_sys_global_symbol_pipe \
25895 lt_cv_sys_global_symbol_to_cdecl \
25896 lt_cv_sys_global_symbol_to_c_name_address \
25897 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25898 lt_prog_compiler_no_builtin_flag \
25899 lt_prog_compiler_wl \
25900 lt_prog_compiler_pic \
25901 lt_prog_compiler_static \
25902 lt_cv_prog_compiler_c_o \
25903 need_locks \
25904 DSYMUTIL \
25905 NMEDIT \
25906 LIPO \
25907 OTOOL \
25908 OTOOL64 \
25909 shrext_cmds \
25910 export_dynamic_flag_spec \
25911 whole_archive_flag_spec \
25912 compiler_needs_object \
25913 with_gnu_ld \
25914 allow_undefined_flag \
25915 no_undefined_flag \
25916 hardcode_libdir_flag_spec \
25917 hardcode_libdir_flag_spec_ld \
25918 hardcode_libdir_separator \
25919 fix_srcfile_path \
25920 exclude_expsyms \
25921 include_expsyms \
25922 file_list_spec \
25923 variables_saved_for_relink \
25924 libname_spec \
25925 library_names_spec \
25926 soname_spec \
25927 install_override_mode \
25928 finish_eval \
25929 old_striplib \
25930 striplib \
25931 compiler_lib_search_dirs \
25932 predep_objects \
25933 postdep_objects \
25934 predeps \
25935 postdeps \
25936 compiler_lib_search_path \
25937 LD_CXX \
25938 LD_GCJ \
25939 reload_flag_CXX \
25940 reload_flag_GCJ \
25941 compiler_CXX \
25942 compiler_GCJ \
25943 lt_prog_compiler_no_builtin_flag_CXX \
25944 lt_prog_compiler_no_builtin_flag_GCJ \
25945 lt_prog_compiler_wl_CXX \
25946 lt_prog_compiler_wl_GCJ \
25947 lt_prog_compiler_pic_CXX \
25948 lt_prog_compiler_pic_GCJ \
25949 lt_prog_compiler_static_CXX \
25950 lt_prog_compiler_static_GCJ \
25951 lt_cv_prog_compiler_c_o_CXX \
25952 lt_cv_prog_compiler_c_o_GCJ \
25953 export_dynamic_flag_spec_CXX \
25954 export_dynamic_flag_spec_GCJ \
25955 whole_archive_flag_spec_CXX \
25956 whole_archive_flag_spec_GCJ \
25957 compiler_needs_object_CXX \
25958 compiler_needs_object_GCJ \
25959 with_gnu_ld_CXX \
25960 with_gnu_ld_GCJ \
25961 allow_undefined_flag_CXX \
25962 allow_undefined_flag_GCJ \
25963 no_undefined_flag_CXX \
25964 no_undefined_flag_GCJ \
25965 hardcode_libdir_flag_spec_CXX \
25966 hardcode_libdir_flag_spec_GCJ \
25967 hardcode_libdir_flag_spec_ld_CXX \
25968 hardcode_libdir_flag_spec_ld_GCJ \
25969 hardcode_libdir_separator_CXX \
25970 hardcode_libdir_separator_GCJ \
25971 fix_srcfile_path_CXX \
25972 fix_srcfile_path_GCJ \
25973 exclude_expsyms_CXX \
25974 exclude_expsyms_GCJ \
25975 include_expsyms_CXX \
25976 include_expsyms_GCJ \
25977 file_list_spec_CXX \
25978 file_list_spec_GCJ \
25979 compiler_lib_search_dirs_CXX \
25980 compiler_lib_search_dirs_GCJ \
25981 predep_objects_CXX \
25982 predep_objects_GCJ \
25983 postdep_objects_CXX \
25984 postdep_objects_GCJ \
25985 predeps_CXX \
25986 predeps_GCJ \
25987 postdeps_CXX \
25988 postdeps_GCJ \
25989 compiler_lib_search_path_CXX \
25990 compiler_lib_search_path_GCJ; do
25991 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25992 *[\\\\\\\`\\"\\\$]*)
25993 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
25996 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25998 esac
25999 done
26001 # Double-quote double-evaled strings.
26002 for var in reload_cmds \
26003 old_postinstall_cmds \
26004 old_postuninstall_cmds \
26005 old_archive_cmds \
26006 extract_expsyms_cmds \
26007 old_archive_from_new_cmds \
26008 old_archive_from_expsyms_cmds \
26009 archive_cmds \
26010 archive_expsym_cmds \
26011 module_cmds \
26012 module_expsym_cmds \
26013 export_symbols_cmds \
26014 prelink_cmds \
26015 postinstall_cmds \
26016 postuninstall_cmds \
26017 finish_cmds \
26018 sys_lib_search_path_spec \
26019 sys_lib_dlsearch_path_spec \
26020 reload_cmds_CXX \
26021 reload_cmds_GCJ \
26022 old_archive_cmds_CXX \
26023 old_archive_cmds_GCJ \
26024 old_archive_from_new_cmds_CXX \
26025 old_archive_from_new_cmds_GCJ \
26026 old_archive_from_expsyms_cmds_CXX \
26027 old_archive_from_expsyms_cmds_GCJ \
26028 archive_cmds_CXX \
26029 archive_cmds_GCJ \
26030 archive_expsym_cmds_CXX \
26031 archive_expsym_cmds_GCJ \
26032 module_cmds_CXX \
26033 module_cmds_GCJ \
26034 module_expsym_cmds_CXX \
26035 module_expsym_cmds_GCJ \
26036 export_symbols_cmds_CXX \
26037 export_symbols_cmds_GCJ \
26038 prelink_cmds_CXX \
26039 prelink_cmds_GCJ; do
26040 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26041 *[\\\\\\\`\\"\\\$]*)
26042 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26045 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26047 esac
26048 done
26050 ac_aux_dir='$ac_aux_dir'
26051 xsi_shell='$xsi_shell'
26052 lt_shell_append='$lt_shell_append'
26054 # See if we are running on zsh, and set the options which allow our
26055 # commands through without removal of \ escapes INIT.
26056 if test -n "\${ZSH_VERSION+set}" ; then
26057 setopt NO_GLOB_SUBST
26061 PACKAGE='$PACKAGE'
26062 VERSION='$VERSION'
26063 TIMESTAMP='$TIMESTAMP'
26064 RM='$RM'
26065 ofile='$ofile'
26074 _ACEOF
26076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26078 # Handling of arguments.
26079 for ac_config_target in $ac_config_targets
26081 case $ac_config_target in
26082 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
26083 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26084 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
26085 "gcj/libgcj-config.h") CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
26086 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26087 "include/platform.h") CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
26088 "java/io/natFile.cc") CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
26089 "java/lang/natConcreteProcess.cc") CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
26090 "java/net/natVMInetAddress.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
26091 "java/net/natVMNetworkInterface.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
26092 "gnu/java/net/natPlainSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
26093 "gnu/java/net/natPlainDatagramSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
26094 "gnu/java/nio/natVMPipe.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
26095 "gnu/java/nio/natVMSelector.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
26096 "gnu/java/nio/channels/natFileChannelImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
26097 "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" ;;
26098 "include/java-gc.h") CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
26099 "include/java-threads.h") CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
26100 "sysdep/locks.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
26101 "sysdep/backtrace.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
26102 "sysdep/descriptor.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
26103 "include/java-signal.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
26104 "include/java-signal-aux.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
26105 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26106 "libgcj.pc") CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
26107 "libgcj.spec") CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
26108 "libgcj-test.spec") CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
26109 "gcj/Makefile") CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
26110 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26111 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
26112 "contrib/aotcompile.py") CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;;
26113 "contrib/aot-compile") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;;
26114 "contrib/aot-compile-rpm") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;;
26115 "contrib/generate-cacerts.pl") CONFIG_FILES="$CONFIG_FILES contrib/generate-cacerts.pl" ;;
26116 "contrib/rebuild-gcj-db") CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;;
26117 "scripts/jar") CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
26119 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26120 esac
26121 done
26124 # If the user did not use the arguments to specify the items to instantiate,
26125 # then the envvar interface is used. Set only those that are not.
26126 # We use the long form for the default assignment because of an extremely
26127 # bizarre bug on SunOS 4.1.3.
26128 if $ac_need_defaults; then
26129 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26130 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26131 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26132 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26135 # Have a temporary directory for convenience. Make it in the build tree
26136 # simply because there is no reason against having it here, and in addition,
26137 # creating and moving files from /tmp can sometimes cause problems.
26138 # Hook for its removal unless debugging.
26139 # Note that there is a small window in which the directory will not be cleaned:
26140 # after its creation but before its name has been assigned to `$tmp'.
26141 $debug ||
26143 tmp=
26144 trap 'exit_status=$?
26145 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26147 trap 'as_fn_exit 1' 1 2 13 15
26149 # Create a (secure) tmp directory for tmp files.
26152 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26153 test -n "$tmp" && test -d "$tmp"
26154 } ||
26156 tmp=./conf$$-$RANDOM
26157 (umask 077 && mkdir "$tmp")
26158 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26160 # Set up the scripts for CONFIG_FILES section.
26161 # No need to generate them if there are no CONFIG_FILES.
26162 # This happens for instance with `./config.status config.h'.
26163 if test -n "$CONFIG_FILES"; then
26166 ac_cr=`echo X | tr X '\015'`
26167 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26168 # But we know of no other shell where ac_cr would be empty at this
26169 # point, so we can use a bashism as a fallback.
26170 if test "x$ac_cr" = x; then
26171 eval ac_cr=\$\'\\r\'
26173 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26174 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26175 ac_cs_awk_cr='\r'
26176 else
26177 ac_cs_awk_cr=$ac_cr
26180 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26181 _ACEOF
26185 echo "cat >conf$$subs.awk <<_ACEOF" &&
26186 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26187 echo "_ACEOF"
26188 } >conf$$subs.sh ||
26189 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26190 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26191 ac_delim='%!_!# '
26192 for ac_last_try in false false false false false :; do
26193 . ./conf$$subs.sh ||
26194 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26196 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26197 if test $ac_delim_n = $ac_delim_num; then
26198 break
26199 elif $ac_last_try; then
26200 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26201 else
26202 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26204 done
26205 rm -f conf$$subs.sh
26207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26208 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26209 _ACEOF
26210 sed -n '
26212 s/^/S["/; s/!.*/"]=/
26215 s/^[^!]*!//
26216 :repl
26217 t repl
26218 s/'"$ac_delim"'$//
26219 t delim
26222 s/\(.\{148\}\).*/\1/
26223 t more1
26224 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26227 b repl
26228 :more1
26229 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26232 s/.\{148\}//
26233 t nl
26234 :delim
26236 s/\(.\{148\}\).*/\1/
26237 t more2
26238 s/["\\]/\\&/g; s/^/"/; s/$/"/
26241 :more2
26242 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26245 s/.\{148\}//
26246 t delim
26247 ' <conf$$subs.awk | sed '
26248 /^[^""]/{
26250 s/\n//
26252 ' >>$CONFIG_STATUS || ac_write_fail=1
26253 rm -f conf$$subs.awk
26254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26255 _ACAWK
26256 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26257 for (key in S) S_is_set[key] = 1
26258 FS = "\a"
26262 line = $ 0
26263 nfields = split(line, field, "@")
26264 substed = 0
26265 len = length(field[1])
26266 for (i = 2; i < nfields; i++) {
26267 key = field[i]
26268 keylen = length(key)
26269 if (S_is_set[key]) {
26270 value = S[key]
26271 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26272 len += length(value) + length(field[++i])
26273 substed = 1
26274 } else
26275 len += 1 + keylen
26278 print line
26281 _ACAWK
26282 _ACEOF
26283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26284 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26285 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26286 else
26288 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26289 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26290 _ACEOF
26292 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26293 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26294 # trailing colons and then remove the whole line if VPATH becomes empty
26295 # (actually we leave an empty line to preserve line numbers).
26296 if test "x$srcdir" = x.; then
26297 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26298 s/:*\$(srcdir):*/:/
26299 s/:*\${srcdir}:*/:/
26300 s/:*@srcdir@:*/:/
26301 s/^\([^=]*=[ ]*\):*/\1/
26302 s/:*$//
26303 s/^[^=]*=[ ]*$//
26307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26308 fi # test -n "$CONFIG_FILES"
26310 # Set up the scripts for CONFIG_HEADERS section.
26311 # No need to generate them if there are no CONFIG_HEADERS.
26312 # This happens for instance with `./config.status Makefile'.
26313 if test -n "$CONFIG_HEADERS"; then
26314 cat >"$tmp/defines.awk" <<\_ACAWK ||
26315 BEGIN {
26316 _ACEOF
26318 # Transform confdefs.h into an awk script `defines.awk', embedded as
26319 # here-document in config.status, that substitutes the proper values into
26320 # config.h.in to produce config.h.
26322 # Create a delimiter string that does not exist in confdefs.h, to ease
26323 # handling of long lines.
26324 ac_delim='%!_!# '
26325 for ac_last_try in false false :; do
26326 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26327 if test -z "$ac_t"; then
26328 break
26329 elif $ac_last_try; then
26330 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26331 else
26332 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26334 done
26336 # For the awk script, D is an array of macro values keyed by name,
26337 # likewise P contains macro parameters if any. Preserve backslash
26338 # newline sequences.
26340 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26341 sed -n '
26342 s/.\{148\}/&'"$ac_delim"'/g
26343 t rset
26344 :rset
26345 s/^[ ]*#[ ]*define[ ][ ]*/ /
26346 t def
26348 :def
26349 s/\\$//
26350 t bsnl
26351 s/["\\]/\\&/g
26352 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26353 D["\1"]=" \3"/p
26354 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26356 :bsnl
26357 s/["\\]/\\&/g
26358 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26359 D["\1"]=" \3\\\\\\n"\\/p
26360 t cont
26361 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26362 t cont
26364 :cont
26366 s/.\{148\}/&'"$ac_delim"'/g
26367 t clear
26368 :clear
26369 s/\\$//
26370 t bsnlc
26371 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26373 :bsnlc
26374 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26375 b cont
26376 ' <confdefs.h | sed '
26377 s/'"$ac_delim"'/"\\\
26378 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26381 for (key in D) D_is_set[key] = 1
26382 FS = "\a"
26384 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26385 line = \$ 0
26386 split(line, arg, " ")
26387 if (arg[1] == "#") {
26388 defundef = arg[2]
26389 mac1 = arg[3]
26390 } else {
26391 defundef = substr(arg[1], 2)
26392 mac1 = arg[2]
26394 split(mac1, mac2, "(") #)
26395 macro = mac2[1]
26396 prefix = substr(line, 1, index(line, defundef) - 1)
26397 if (D_is_set[macro]) {
26398 # Preserve the white space surrounding the "#".
26399 print prefix "define", macro P[macro] D[macro]
26400 next
26401 } else {
26402 # Replace #undef with comments. This is necessary, for example,
26403 # in the case of _POSIX_SOURCE, which is predefined and required
26404 # on some systems where configure will not decide to define it.
26405 if (defundef == "undef") {
26406 print "/*", prefix defundef, macro, "*/"
26407 next
26411 { print }
26412 _ACAWK
26413 _ACEOF
26414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26415 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26416 fi # test -n "$CONFIG_HEADERS"
26419 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
26420 shift
26421 for ac_tag
26423 case $ac_tag in
26424 :[FHLC]) ac_mode=$ac_tag; continue;;
26425 esac
26426 case $ac_mode$ac_tag in
26427 :[FHL]*:*);;
26428 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26429 :[FH]-) ac_tag=-:-;;
26430 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26431 esac
26432 ac_save_IFS=$IFS
26433 IFS=:
26434 set x $ac_tag
26435 IFS=$ac_save_IFS
26436 shift
26437 ac_file=$1
26438 shift
26440 case $ac_mode in
26441 :L) ac_source=$1;;
26442 :[FH])
26443 ac_file_inputs=
26444 for ac_f
26446 case $ac_f in
26447 -) ac_f="$tmp/stdin";;
26448 *) # Look for the file first in the build tree, then in the source tree
26449 # (if the path is not absolute). The absolute path cannot be DOS-style,
26450 # because $ac_f cannot contain `:'.
26451 test -f "$ac_f" ||
26452 case $ac_f in
26453 [\\/$]*) false;;
26454 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26455 esac ||
26456 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26457 esac
26458 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26459 as_fn_append ac_file_inputs " '$ac_f'"
26460 done
26462 # Let's still pretend it is `configure' which instantiates (i.e., don't
26463 # use $as_me), people would be surprised to read:
26464 # /* config.h. Generated by config.status. */
26465 configure_input='Generated from '`
26466 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26467 `' by configure.'
26468 if test x"$ac_file" != x-; then
26469 configure_input="$ac_file. $configure_input"
26470 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26471 $as_echo "$as_me: creating $ac_file" >&6;}
26473 # Neutralize special characters interpreted by sed in replacement strings.
26474 case $configure_input in #(
26475 *\&* | *\|* | *\\* )
26476 ac_sed_conf_input=`$as_echo "$configure_input" |
26477 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26478 *) ac_sed_conf_input=$configure_input;;
26479 esac
26481 case $ac_tag in
26482 *:-:* | *:-) cat >"$tmp/stdin" \
26483 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26484 esac
26486 esac
26488 ac_dir=`$as_dirname -- "$ac_file" ||
26489 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26490 X"$ac_file" : 'X\(//\)[^/]' \| \
26491 X"$ac_file" : 'X\(//\)$' \| \
26492 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26493 $as_echo X"$ac_file" |
26494 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26495 s//\1/
26498 /^X\(\/\/\)[^/].*/{
26499 s//\1/
26502 /^X\(\/\/\)$/{
26503 s//\1/
26506 /^X\(\/\).*/{
26507 s//\1/
26510 s/.*/./; q'`
26511 as_dir="$ac_dir"; as_fn_mkdir_p
26512 ac_builddir=.
26514 case "$ac_dir" in
26515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26517 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26518 # A ".." for each directory in $ac_dir_suffix.
26519 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26520 case $ac_top_builddir_sub in
26521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26523 esac ;;
26524 esac
26525 ac_abs_top_builddir=$ac_pwd
26526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26527 # for backward compatibility:
26528 ac_top_builddir=$ac_top_build_prefix
26530 case $srcdir in
26531 .) # We are building in place.
26532 ac_srcdir=.
26533 ac_top_srcdir=$ac_top_builddir_sub
26534 ac_abs_top_srcdir=$ac_pwd ;;
26535 [\\/]* | ?:[\\/]* ) # Absolute name.
26536 ac_srcdir=$srcdir$ac_dir_suffix;
26537 ac_top_srcdir=$srcdir
26538 ac_abs_top_srcdir=$srcdir ;;
26539 *) # Relative name.
26540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26541 ac_top_srcdir=$ac_top_build_prefix$srcdir
26542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26543 esac
26544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26547 case $ac_mode in
26550 # CONFIG_FILE
26553 case $INSTALL in
26554 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26555 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26556 esac
26557 ac_MKDIR_P=$MKDIR_P
26558 case $MKDIR_P in
26559 [\\/$]* | ?:[\\/]* ) ;;
26560 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26561 esac
26562 _ACEOF
26564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26565 # If the template does not know about datarootdir, expand it.
26566 # FIXME: This hack should be removed a few years after 2.60.
26567 ac_datarootdir_hack=; ac_datarootdir_seen=
26568 ac_sed_dataroot='
26569 /datarootdir/ {
26573 /@datadir@/p
26574 /@docdir@/p
26575 /@infodir@/p
26576 /@localedir@/p
26577 /@mandir@/p'
26578 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26579 *datarootdir*) ac_datarootdir_seen=yes;;
26580 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26582 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26583 _ACEOF
26584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26585 ac_datarootdir_hack='
26586 s&@datadir@&$datadir&g
26587 s&@docdir@&$docdir&g
26588 s&@infodir@&$infodir&g
26589 s&@localedir@&$localedir&g
26590 s&@mandir@&$mandir&g
26591 s&\\\${datarootdir}&$datarootdir&g' ;;
26592 esac
26593 _ACEOF
26595 # Neutralize VPATH when `$srcdir' = `.'.
26596 # Shell code in configure.ac might set extrasub.
26597 # FIXME: do we really want to maintain this feature?
26598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26599 ac_sed_extra="$ac_vpsub
26600 $extrasub
26601 _ACEOF
26602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26604 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26605 s|@configure_input@|$ac_sed_conf_input|;t t
26606 s&@top_builddir@&$ac_top_builddir_sub&;t t
26607 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26608 s&@srcdir@&$ac_srcdir&;t t
26609 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26610 s&@top_srcdir@&$ac_top_srcdir&;t t
26611 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26612 s&@builddir@&$ac_builddir&;t t
26613 s&@abs_builddir@&$ac_abs_builddir&;t t
26614 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26615 s&@INSTALL@&$ac_INSTALL&;t t
26616 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26617 $ac_datarootdir_hack
26619 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26620 || as_fn_error "could not create $ac_file" "$LINENO" 5
26622 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26623 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26624 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26626 which seems to be undefined. Please make sure it is defined." >&5
26627 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26628 which seems to be undefined. Please make sure it is defined." >&2;}
26630 rm -f "$tmp/stdin"
26631 case $ac_file in
26632 -) cat "$tmp/out" && rm -f "$tmp/out";;
26633 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26634 esac \
26635 || as_fn_error "could not create $ac_file" "$LINENO" 5
26639 # CONFIG_HEADER
26641 if test x"$ac_file" != x-; then
26643 $as_echo "/* $configure_input */" \
26644 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26645 } >"$tmp/config.h" \
26646 || as_fn_error "could not create $ac_file" "$LINENO" 5
26647 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26648 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26649 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26650 else
26651 rm -f "$ac_file"
26652 mv "$tmp/config.h" "$ac_file" \
26653 || as_fn_error "could not create $ac_file" "$LINENO" 5
26655 else
26656 $as_echo "/* $configure_input */" \
26657 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26658 || as_fn_error "could not create -" "$LINENO" 5
26660 # Compute "$ac_file"'s index in $config_headers.
26661 _am_arg="$ac_file"
26662 _am_stamp_count=1
26663 for _am_header in $config_headers :; do
26664 case $_am_header in
26665 $_am_arg | $_am_arg:* )
26666 break ;;
26668 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26669 esac
26670 done
26671 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26672 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26673 X"$_am_arg" : 'X\(//\)[^/]' \| \
26674 X"$_am_arg" : 'X\(//\)$' \| \
26675 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26676 $as_echo X"$_am_arg" |
26677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26678 s//\1/
26681 /^X\(\/\/\)[^/].*/{
26682 s//\1/
26685 /^X\(\/\/\)$/{
26686 s//\1/
26689 /^X\(\/\).*/{
26690 s//\1/
26693 s/.*/./; q'`/stamp-h$_am_stamp_count
26697 # CONFIG_LINK
26700 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
26702 else
26703 # Prefer the file from the source tree if names are identical.
26704 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
26705 ac_source=$srcdir/$ac_source
26708 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
26709 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
26711 if test ! -r "$ac_source"; then
26712 as_fn_error "$ac_source: file not found" "$LINENO" 5
26714 rm -f "$ac_file"
26716 # Try a relative symlink, then a hard link, then a copy.
26717 case $srcdir in
26718 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
26719 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
26720 esac
26721 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26722 ln "$ac_source" "$ac_file" 2>/dev/null ||
26723 cp -p "$ac_source" "$ac_file" ||
26724 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
26727 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26728 $as_echo "$as_me: executing $ac_file commands" >&6;}
26730 esac
26733 case $ac_file$ac_mode in
26734 "default-1":C)
26735 # Only add multilib support code if we just rebuilt the top-level
26736 # Makefile.
26737 case " $CONFIG_FILES " in
26738 *" Makefile "*)
26739 ac_file=Makefile . ${multi_basedir}/config-ml.in
26741 esac ;;
26742 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26743 # Autoconf 2.62 quotes --file arguments for eval, but not when files
26744 # are listed without --file. Let's play safe and only enable the eval
26745 # if we detect the quoting.
26746 case $CONFIG_FILES in
26747 *\'*) eval set x "$CONFIG_FILES" ;;
26748 *) set x $CONFIG_FILES ;;
26749 esac
26750 shift
26751 for mf
26753 # Strip MF so we end up with the name of the file.
26754 mf=`echo "$mf" | sed -e 's/:.*$//'`
26755 # Check whether this is an Automake generated Makefile or not.
26756 # We used to match only the files named `Makefile.in', but
26757 # some people rename them; so instead we look at the file content.
26758 # Grep'ing the first line is not enough: some people post-process
26759 # each Makefile.in and add a new line on top of each file to say so.
26760 # Grep'ing the whole file is not good either: AIX grep has a line
26761 # limit of 2048, but all sed's we know have understand at least 4000.
26762 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26763 dirpart=`$as_dirname -- "$mf" ||
26764 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26765 X"$mf" : 'X\(//\)[^/]' \| \
26766 X"$mf" : 'X\(//\)$' \| \
26767 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26768 $as_echo X"$mf" |
26769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26770 s//\1/
26773 /^X\(\/\/\)[^/].*/{
26774 s//\1/
26777 /^X\(\/\/\)$/{
26778 s//\1/
26781 /^X\(\/\).*/{
26782 s//\1/
26785 s/.*/./; q'`
26786 else
26787 continue
26789 # Extract the definition of DEPDIR, am__include, and am__quote
26790 # from the Makefile without running `make'.
26791 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26792 test -z "$DEPDIR" && continue
26793 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26794 test -z "am__include" && continue
26795 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26796 # When using ansi2knr, U may be empty or an underscore; expand it
26797 U=`sed -n 's/^U = //p' < "$mf"`
26798 # Find all dependency output files, they are included files with
26799 # $(DEPDIR) in their names. We invoke sed twice because it is the
26800 # simplest approach to changing $(DEPDIR) to its actual value in the
26801 # expansion.
26802 for file in `sed -n "
26803 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26804 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26805 # Make sure the directory exists.
26806 test -f "$dirpart/$file" && continue
26807 fdir=`$as_dirname -- "$file" ||
26808 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26809 X"$file" : 'X\(//\)[^/]' \| \
26810 X"$file" : 'X\(//\)$' \| \
26811 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26812 $as_echo X"$file" |
26813 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26814 s//\1/
26817 /^X\(\/\/\)[^/].*/{
26818 s//\1/
26821 /^X\(\/\/\)$/{
26822 s//\1/
26825 /^X\(\/\).*/{
26826 s//\1/
26829 s/.*/./; q'`
26830 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26831 # echo "creating $dirpart/$file"
26832 echo '# dummy' > "$dirpart/$file"
26833 done
26834 done
26837 "libtool":C)
26839 # See if we are running on zsh, and set the options which allow our
26840 # commands through without removal of \ escapes.
26841 if test -n "${ZSH_VERSION+set}" ; then
26842 setopt NO_GLOB_SUBST
26845 cfgfile="${ofile}T"
26846 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26847 $RM "$cfgfile"
26849 cat <<_LT_EOF >> "$cfgfile"
26850 #! $SHELL
26852 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26853 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26854 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26855 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26857 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26858 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
26859 # Written by Gordon Matzigkeit, 1996
26861 # This file is part of GNU Libtool.
26863 # GNU Libtool is free software; you can redistribute it and/or
26864 # modify it under the terms of the GNU General Public License as
26865 # published by the Free Software Foundation; either version 2 of
26866 # the License, or (at your option) any later version.
26868 # As a special exception to the GNU General Public License,
26869 # if you distribute this file as part of a program or library that
26870 # is built using GNU Libtool, you may include this file under the
26871 # same distribution terms that you use for the rest of that program.
26873 # GNU Libtool is distributed in the hope that it will be useful,
26874 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26875 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26876 # GNU General Public License for more details.
26878 # You should have received a copy of the GNU General Public License
26879 # along with GNU Libtool; see the file COPYING. If not, a copy
26880 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26881 # obtained by writing to the Free Software Foundation, Inc.,
26882 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26885 # The names of the tagged configurations supported by this script.
26886 available_tags="CXX GCJ "
26888 # ### BEGIN LIBTOOL CONFIG
26890 # Which release of libtool.m4 was used?
26891 macro_version=$macro_version
26892 macro_revision=$macro_revision
26894 # Whether or not to build shared libraries.
26895 build_libtool_libs=$enable_shared
26897 # Whether or not to build static libraries.
26898 build_old_libs=$enable_static
26900 # What type of objects to build.
26901 pic_mode=$pic_mode
26903 # Whether or not to optimize for fast installation.
26904 fast_install=$enable_fast_install
26906 # Shell to use when invoking shell scripts.
26907 SHELL=$lt_SHELL
26909 # An echo program that protects backslashes.
26910 ECHO=$lt_ECHO
26912 # The host system.
26913 host_alias=$host_alias
26914 host=$host
26915 host_os=$host_os
26917 # The build system.
26918 build_alias=$build_alias
26919 build=$build
26920 build_os=$build_os
26922 # A sed program that does not truncate output.
26923 SED=$lt_SED
26925 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26926 Xsed="\$SED -e 1s/^X//"
26928 # A grep program that handles long lines.
26929 GREP=$lt_GREP
26931 # An ERE matcher.
26932 EGREP=$lt_EGREP
26934 # A literal string matcher.
26935 FGREP=$lt_FGREP
26937 # A BSD- or MS-compatible name lister.
26938 NM=$lt_NM
26940 # Whether we need soft or hard links.
26941 LN_S=$lt_LN_S
26943 # What is the maximum length of a command?
26944 max_cmd_len=$max_cmd_len
26946 # Object file suffix (normally "o").
26947 objext=$ac_objext
26949 # Executable file suffix (normally "").
26950 exeext=$exeext
26952 # whether the shell understands "unset".
26953 lt_unset=$lt_unset
26955 # turn spaces into newlines.
26956 SP2NL=$lt_lt_SP2NL
26958 # turn newlines into spaces.
26959 NL2SP=$lt_lt_NL2SP
26961 # An object symbol dumper.
26962 OBJDUMP=$lt_OBJDUMP
26964 # Method to check whether dependent libraries are shared objects.
26965 deplibs_check_method=$lt_deplibs_check_method
26967 # Command to use when deplibs_check_method == "file_magic".
26968 file_magic_cmd=$lt_file_magic_cmd
26970 # The archiver.
26971 AR=$lt_AR
26972 AR_FLAGS=$lt_AR_FLAGS
26974 # A symbol stripping program.
26975 STRIP=$lt_STRIP
26977 # Commands used to install an old-style archive.
26978 RANLIB=$lt_RANLIB
26979 old_postinstall_cmds=$lt_old_postinstall_cmds
26980 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26982 # Whether to use a lock for old archive extraction.
26983 lock_old_archive_extraction=$lock_old_archive_extraction
26985 # A C compiler.
26986 LTCC=$lt_CC
26988 # LTCC compiler flags.
26989 LTCFLAGS=$lt_CFLAGS
26991 # Take the output of nm and produce a listing of raw symbols and C names.
26992 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26994 # Transform the output of nm in a proper C declaration.
26995 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26997 # Transform the output of nm in a C name address pair.
26998 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27000 # Transform the output of nm in a C name address pair when lib prefix is needed.
27001 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27003 # The name of the directory that contains temporary libtool files.
27004 objdir=$objdir
27006 # Used to examine libraries when file_magic_cmd begins with "file".
27007 MAGIC_CMD=$MAGIC_CMD
27009 # Must we lock files when doing compilation?
27010 need_locks=$lt_need_locks
27012 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27013 DSYMUTIL=$lt_DSYMUTIL
27015 # Tool to change global to local symbols on Mac OS X.
27016 NMEDIT=$lt_NMEDIT
27018 # Tool to manipulate fat objects and archives on Mac OS X.
27019 LIPO=$lt_LIPO
27021 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27022 OTOOL=$lt_OTOOL
27024 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27025 OTOOL64=$lt_OTOOL64
27027 # Old archive suffix (normally "a").
27028 libext=$libext
27030 # Shared library suffix (normally ".so").
27031 shrext_cmds=$lt_shrext_cmds
27033 # The commands to extract the exported symbol list from a shared archive.
27034 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27036 # Variables whose values should be saved in libtool wrapper scripts and
27037 # restored at link time.
27038 variables_saved_for_relink=$lt_variables_saved_for_relink
27040 # Do we need the "lib" prefix for modules?
27041 need_lib_prefix=$need_lib_prefix
27043 # Do we need a version for libraries?
27044 need_version=$need_version
27046 # Library versioning type.
27047 version_type=$version_type
27049 # Shared library runtime path variable.
27050 runpath_var=$runpath_var
27052 # Shared library path variable.
27053 shlibpath_var=$shlibpath_var
27055 # Is shlibpath searched before the hard-coded library search path?
27056 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27058 # Format of library name prefix.
27059 libname_spec=$lt_libname_spec
27061 # List of archive names. First name is the real one, the rest are links.
27062 # The last name is the one that the linker finds with -lNAME
27063 library_names_spec=$lt_library_names_spec
27065 # The coded name of the library, if different from the real name.
27066 soname_spec=$lt_soname_spec
27068 # Permission mode override for installation of shared libraries.
27069 install_override_mode=$lt_install_override_mode
27071 # Command to use after installation of a shared archive.
27072 postinstall_cmds=$lt_postinstall_cmds
27074 # Command to use after uninstallation of a shared archive.
27075 postuninstall_cmds=$lt_postuninstall_cmds
27077 # Commands used to finish a libtool library installation in a directory.
27078 finish_cmds=$lt_finish_cmds
27080 # As "finish_cmds", except a single script fragment to be evaled but
27081 # not shown.
27082 finish_eval=$lt_finish_eval
27084 # Whether we should hardcode library paths into libraries.
27085 hardcode_into_libs=$hardcode_into_libs
27087 # Compile-time system search path for libraries.
27088 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27090 # Run-time system search path for libraries.
27091 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27093 # Whether dlopen is supported.
27094 dlopen_support=$enable_dlopen
27096 # Whether dlopen of programs is supported.
27097 dlopen_self=$enable_dlopen_self
27099 # Whether dlopen of statically linked programs is supported.
27100 dlopen_self_static=$enable_dlopen_self_static
27102 # Commands to strip libraries.
27103 old_striplib=$lt_old_striplib
27104 striplib=$lt_striplib
27107 # The linker used to build libraries.
27108 LD=$lt_LD
27110 # How to create reloadable object files.
27111 reload_flag=$lt_reload_flag
27112 reload_cmds=$lt_reload_cmds
27114 # Commands used to build an old-style archive.
27115 old_archive_cmds=$lt_old_archive_cmds
27117 # A language specific compiler.
27118 CC=$lt_compiler
27120 # Is the compiler the GNU compiler?
27121 with_gcc=$GCC
27123 # Compiler flag to turn off builtin functions.
27124 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27126 # How to pass a linker flag through the compiler.
27127 wl=$lt_lt_prog_compiler_wl
27129 # Additional compiler flags for building library objects.
27130 pic_flag=$lt_lt_prog_compiler_pic
27132 # Compiler flag to prevent dynamic linking.
27133 link_static_flag=$lt_lt_prog_compiler_static
27135 # Does compiler simultaneously support -c and -o options?
27136 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27138 # Whether or not to add -lc for building shared libraries.
27139 build_libtool_need_lc=$archive_cmds_need_lc
27141 # Whether or not to disallow shared libs when runtime libs are static.
27142 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27144 # Compiler flag to allow reflexive dlopens.
27145 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27147 # Compiler flag to generate shared objects directly from archives.
27148 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27150 # Whether the compiler copes with passing no objects directly.
27151 compiler_needs_object=$lt_compiler_needs_object
27153 # Create an old-style archive from a shared archive.
27154 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27156 # Create a temporary old-style archive to link instead of a shared archive.
27157 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27159 # Commands used to build a shared archive.
27160 archive_cmds=$lt_archive_cmds
27161 archive_expsym_cmds=$lt_archive_expsym_cmds
27163 # Commands used to build a loadable module if different from building
27164 # a shared archive.
27165 module_cmds=$lt_module_cmds
27166 module_expsym_cmds=$lt_module_expsym_cmds
27168 # Whether we are building with GNU ld or not.
27169 with_gnu_ld=$lt_with_gnu_ld
27171 # Flag that allows shared libraries with undefined symbols to be built.
27172 allow_undefined_flag=$lt_allow_undefined_flag
27174 # Flag that enforces no undefined symbols.
27175 no_undefined_flag=$lt_no_undefined_flag
27177 # Flag to hardcode \$libdir into a binary during linking.
27178 # This must work even if \$libdir does not exist
27179 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27181 # If ld is used when linking, flag to hardcode \$libdir into a binary
27182 # during linking. This must work even if \$libdir does not exist.
27183 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
27185 # Whether we need a single "-rpath" flag with a separated argument.
27186 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27188 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27189 # DIR into the resulting binary.
27190 hardcode_direct=$hardcode_direct
27192 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27193 # DIR into the resulting binary and the resulting library dependency is
27194 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27195 # library is relocated.
27196 hardcode_direct_absolute=$hardcode_direct_absolute
27198 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27199 # into the resulting binary.
27200 hardcode_minus_L=$hardcode_minus_L
27202 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27203 # into the resulting binary.
27204 hardcode_shlibpath_var=$hardcode_shlibpath_var
27206 # Set to "yes" if building a shared library automatically hardcodes DIR
27207 # into the library and all subsequent libraries and executables linked
27208 # against it.
27209 hardcode_automatic=$hardcode_automatic
27211 # Set to yes if linker adds runtime paths of dependent libraries
27212 # to runtime path list.
27213 inherit_rpath=$inherit_rpath
27215 # Whether libtool must link a program against all its dependency libraries.
27216 link_all_deplibs=$link_all_deplibs
27218 # Fix the shell variable \$srcfile for the compiler.
27219 fix_srcfile_path=$lt_fix_srcfile_path
27221 # Set to "yes" if exported symbols are required.
27222 always_export_symbols=$always_export_symbols
27224 # The commands to list exported symbols.
27225 export_symbols_cmds=$lt_export_symbols_cmds
27227 # Symbols that should not be listed in the preloaded symbols.
27228 exclude_expsyms=$lt_exclude_expsyms
27230 # Symbols that must always be exported.
27231 include_expsyms=$lt_include_expsyms
27233 # Commands necessary for linking programs (against libraries) with templates.
27234 prelink_cmds=$lt_prelink_cmds
27236 # Specify filename containing input files.
27237 file_list_spec=$lt_file_list_spec
27239 # How to hardcode a shared library path into an executable.
27240 hardcode_action=$hardcode_action
27242 # The directories searched by this compiler when creating a shared library.
27243 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27245 # Dependencies to place before and after the objects being linked to
27246 # create a shared library.
27247 predep_objects=$lt_predep_objects
27248 postdep_objects=$lt_postdep_objects
27249 predeps=$lt_predeps
27250 postdeps=$lt_postdeps
27252 # The library search path used internally by the compiler when linking
27253 # a shared library.
27254 compiler_lib_search_path=$lt_compiler_lib_search_path
27256 # ### END LIBTOOL CONFIG
27258 _LT_EOF
27260 case $host_os in
27261 aix3*)
27262 cat <<\_LT_EOF >> "$cfgfile"
27263 # AIX sometimes has problems with the GCC collect2 program. For some
27264 # reason, if we set the COLLECT_NAMES environment variable, the problems
27265 # vanish in a puff of smoke.
27266 if test "X${COLLECT_NAMES+set}" != Xset; then
27267 COLLECT_NAMES=
27268 export COLLECT_NAMES
27270 _LT_EOF
27272 esac
27275 ltmain="$ac_aux_dir/ltmain.sh"
27278 # We use sed instead of cat because bash on DJGPP gets confused if
27279 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27280 # text mode, it properly converts lines to CR/LF. This bash problem
27281 # is reportedly fixed, but why not run on old versions too?
27282 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27283 || (rm -f "$cfgfile"; exit 1)
27285 case $xsi_shell in
27286 yes)
27287 cat << \_LT_EOF >> "$cfgfile"
27289 # func_dirname file append nondir_replacement
27290 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27291 # otherwise set result to NONDIR_REPLACEMENT.
27292 func_dirname ()
27294 case ${1} in
27295 */*) func_dirname_result="${1%/*}${2}" ;;
27296 * ) func_dirname_result="${3}" ;;
27297 esac
27300 # func_basename file
27301 func_basename ()
27303 func_basename_result="${1##*/}"
27306 # func_dirname_and_basename file append nondir_replacement
27307 # perform func_basename and func_dirname in a single function
27308 # call:
27309 # dirname: Compute the dirname of FILE. If nonempty,
27310 # add APPEND to the result, otherwise set result
27311 # to NONDIR_REPLACEMENT.
27312 # value returned in "$func_dirname_result"
27313 # basename: Compute filename of FILE.
27314 # value retuned in "$func_basename_result"
27315 # Implementation must be kept synchronized with func_dirname
27316 # and func_basename. For efficiency, we do not delegate to
27317 # those functions but instead duplicate the functionality here.
27318 func_dirname_and_basename ()
27320 case ${1} in
27321 */*) func_dirname_result="${1%/*}${2}" ;;
27322 * ) func_dirname_result="${3}" ;;
27323 esac
27324 func_basename_result="${1##*/}"
27327 # func_stripname prefix suffix name
27328 # strip PREFIX and SUFFIX off of NAME.
27329 # PREFIX and SUFFIX must not contain globbing or regex special
27330 # characters, hashes, percent signs, but SUFFIX may contain a leading
27331 # dot (in which case that matches only a dot).
27332 func_stripname ()
27334 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27335 # positional parameters, so assign one to ordinary parameter first.
27336 func_stripname_result=${3}
27337 func_stripname_result=${func_stripname_result#"${1}"}
27338 func_stripname_result=${func_stripname_result%"${2}"}
27341 # func_opt_split
27342 func_opt_split ()
27344 func_opt_split_opt=${1%%=*}
27345 func_opt_split_arg=${1#*=}
27348 # func_lo2o object
27349 func_lo2o ()
27351 case ${1} in
27352 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27353 *) func_lo2o_result=${1} ;;
27354 esac
27357 # func_xform libobj-or-source
27358 func_xform ()
27360 func_xform_result=${1%.*}.lo
27363 # func_arith arithmetic-term...
27364 func_arith ()
27366 func_arith_result=$(( $* ))
27369 # func_len string
27370 # STRING may not start with a hyphen.
27371 func_len ()
27373 func_len_result=${#1}
27376 _LT_EOF
27378 *) # Bourne compatible functions.
27379 cat << \_LT_EOF >> "$cfgfile"
27381 # func_dirname file append nondir_replacement
27382 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27383 # otherwise set result to NONDIR_REPLACEMENT.
27384 func_dirname ()
27386 # Extract subdirectory from the argument.
27387 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
27388 if test "X$func_dirname_result" = "X${1}"; then
27389 func_dirname_result="${3}"
27390 else
27391 func_dirname_result="$func_dirname_result${2}"
27395 # func_basename file
27396 func_basename ()
27398 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
27402 # func_stripname prefix suffix name
27403 # strip PREFIX and SUFFIX off of NAME.
27404 # PREFIX and SUFFIX must not contain globbing or regex special
27405 # characters, hashes, percent signs, but SUFFIX may contain a leading
27406 # dot (in which case that matches only a dot).
27407 # func_strip_suffix prefix name
27408 func_stripname ()
27410 case ${2} in
27411 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
27412 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
27413 esac
27416 # sed scripts:
27417 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27418 my_sed_long_arg='1s/^-[^=]*=//'
27420 # func_opt_split
27421 func_opt_split ()
27423 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
27424 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
27427 # func_lo2o object
27428 func_lo2o ()
27430 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
27433 # func_xform libobj-or-source
27434 func_xform ()
27436 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
27439 # func_arith arithmetic-term...
27440 func_arith ()
27442 func_arith_result=`expr "$@"`
27445 # func_len string
27446 # STRING may not start with a hyphen.
27447 func_len ()
27449 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27452 _LT_EOF
27453 esac
27455 case $lt_shell_append in
27456 yes)
27457 cat << \_LT_EOF >> "$cfgfile"
27459 # func_append var value
27460 # Append VALUE to the end of shell variable VAR.
27461 func_append ()
27463 eval "$1+=\$2"
27465 _LT_EOF
27468 cat << \_LT_EOF >> "$cfgfile"
27470 # func_append var value
27471 # Append VALUE to the end of shell variable VAR.
27472 func_append ()
27474 eval "$1=\$$1\$2"
27477 _LT_EOF
27479 esac
27482 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27483 || (rm -f "$cfgfile"; exit 1)
27485 mv -f "$cfgfile" "$ofile" ||
27486 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27487 chmod +x "$ofile"
27490 cat <<_LT_EOF >> "$ofile"
27492 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27494 # The linker used to build libraries.
27495 LD=$lt_LD_CXX
27497 # How to create reloadable object files.
27498 reload_flag=$lt_reload_flag_CXX
27499 reload_cmds=$lt_reload_cmds_CXX
27501 # Commands used to build an old-style archive.
27502 old_archive_cmds=$lt_old_archive_cmds_CXX
27504 # A language specific compiler.
27505 CC=$lt_compiler_CXX
27507 # Is the compiler the GNU compiler?
27508 with_gcc=$GCC_CXX
27510 # Compiler flag to turn off builtin functions.
27511 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27513 # How to pass a linker flag through the compiler.
27514 wl=$lt_lt_prog_compiler_wl_CXX
27516 # Additional compiler flags for building library objects.
27517 pic_flag=$lt_lt_prog_compiler_pic_CXX
27519 # Compiler flag to prevent dynamic linking.
27520 link_static_flag=$lt_lt_prog_compiler_static_CXX
27522 # Does compiler simultaneously support -c and -o options?
27523 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27525 # Whether or not to add -lc for building shared libraries.
27526 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27528 # Whether or not to disallow shared libs when runtime libs are static.
27529 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27531 # Compiler flag to allow reflexive dlopens.
27532 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27534 # Compiler flag to generate shared objects directly from archives.
27535 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27537 # Whether the compiler copes with passing no objects directly.
27538 compiler_needs_object=$lt_compiler_needs_object_CXX
27540 # Create an old-style archive from a shared archive.
27541 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27543 # Create a temporary old-style archive to link instead of a shared archive.
27544 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27546 # Commands used to build a shared archive.
27547 archive_cmds=$lt_archive_cmds_CXX
27548 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27550 # Commands used to build a loadable module if different from building
27551 # a shared archive.
27552 module_cmds=$lt_module_cmds_CXX
27553 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27555 # Whether we are building with GNU ld or not.
27556 with_gnu_ld=$lt_with_gnu_ld_CXX
27558 # Flag that allows shared libraries with undefined symbols to be built.
27559 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27561 # Flag that enforces no undefined symbols.
27562 no_undefined_flag=$lt_no_undefined_flag_CXX
27564 # Flag to hardcode \$libdir into a binary during linking.
27565 # This must work even if \$libdir does not exist
27566 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27568 # If ld is used when linking, flag to hardcode \$libdir into a binary
27569 # during linking. This must work even if \$libdir does not exist.
27570 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27572 # Whether we need a single "-rpath" flag with a separated argument.
27573 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27575 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27576 # DIR into the resulting binary.
27577 hardcode_direct=$hardcode_direct_CXX
27579 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27580 # DIR into the resulting binary and the resulting library dependency is
27581 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27582 # library is relocated.
27583 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27585 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27586 # into the resulting binary.
27587 hardcode_minus_L=$hardcode_minus_L_CXX
27589 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27590 # into the resulting binary.
27591 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27593 # Set to "yes" if building a shared library automatically hardcodes DIR
27594 # into the library and all subsequent libraries and executables linked
27595 # against it.
27596 hardcode_automatic=$hardcode_automatic_CXX
27598 # Set to yes if linker adds runtime paths of dependent libraries
27599 # to runtime path list.
27600 inherit_rpath=$inherit_rpath_CXX
27602 # Whether libtool must link a program against all its dependency libraries.
27603 link_all_deplibs=$link_all_deplibs_CXX
27605 # Fix the shell variable \$srcfile for the compiler.
27606 fix_srcfile_path=$lt_fix_srcfile_path_CXX
27608 # Set to "yes" if exported symbols are required.
27609 always_export_symbols=$always_export_symbols_CXX
27611 # The commands to list exported symbols.
27612 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27614 # Symbols that should not be listed in the preloaded symbols.
27615 exclude_expsyms=$lt_exclude_expsyms_CXX
27617 # Symbols that must always be exported.
27618 include_expsyms=$lt_include_expsyms_CXX
27620 # Commands necessary for linking programs (against libraries) with templates.
27621 prelink_cmds=$lt_prelink_cmds_CXX
27623 # Specify filename containing input files.
27624 file_list_spec=$lt_file_list_spec_CXX
27626 # How to hardcode a shared library path into an executable.
27627 hardcode_action=$hardcode_action_CXX
27629 # The directories searched by this compiler when creating a shared library.
27630 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27632 # Dependencies to place before and after the objects being linked to
27633 # create a shared library.
27634 predep_objects=$lt_predep_objects_CXX
27635 postdep_objects=$lt_postdep_objects_CXX
27636 predeps=$lt_predeps_CXX
27637 postdeps=$lt_postdeps_CXX
27639 # The library search path used internally by the compiler when linking
27640 # a shared library.
27641 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27643 # ### END LIBTOOL TAG CONFIG: CXX
27644 _LT_EOF
27647 cat <<_LT_EOF >> "$ofile"
27649 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
27651 # The linker used to build libraries.
27652 LD=$lt_LD_GCJ
27654 # How to create reloadable object files.
27655 reload_flag=$lt_reload_flag_GCJ
27656 reload_cmds=$lt_reload_cmds_GCJ
27658 # Commands used to build an old-style archive.
27659 old_archive_cmds=$lt_old_archive_cmds_GCJ
27661 # A language specific compiler.
27662 CC=$lt_compiler_GCJ
27664 # Is the compiler the GNU compiler?
27665 with_gcc=$GCC_GCJ
27667 # Compiler flag to turn off builtin functions.
27668 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
27670 # How to pass a linker flag through the compiler.
27671 wl=$lt_lt_prog_compiler_wl_GCJ
27673 # Additional compiler flags for building library objects.
27674 pic_flag=$lt_lt_prog_compiler_pic_GCJ
27676 # Compiler flag to prevent dynamic linking.
27677 link_static_flag=$lt_lt_prog_compiler_static_GCJ
27679 # Does compiler simultaneously support -c and -o options?
27680 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
27682 # Whether or not to add -lc for building shared libraries.
27683 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
27685 # Whether or not to disallow shared libs when runtime libs are static.
27686 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
27688 # Compiler flag to allow reflexive dlopens.
27689 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
27691 # Compiler flag to generate shared objects directly from archives.
27692 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
27694 # Whether the compiler copes with passing no objects directly.
27695 compiler_needs_object=$lt_compiler_needs_object_GCJ
27697 # Create an old-style archive from a shared archive.
27698 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
27700 # Create a temporary old-style archive to link instead of a shared archive.
27701 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
27703 # Commands used to build a shared archive.
27704 archive_cmds=$lt_archive_cmds_GCJ
27705 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
27707 # Commands used to build a loadable module if different from building
27708 # a shared archive.
27709 module_cmds=$lt_module_cmds_GCJ
27710 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
27712 # Whether we are building with GNU ld or not.
27713 with_gnu_ld=$lt_with_gnu_ld_GCJ
27715 # Flag that allows shared libraries with undefined symbols to be built.
27716 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
27718 # Flag that enforces no undefined symbols.
27719 no_undefined_flag=$lt_no_undefined_flag_GCJ
27721 # Flag to hardcode \$libdir into a binary during linking.
27722 # This must work even if \$libdir does not exist
27723 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
27725 # If ld is used when linking, flag to hardcode \$libdir into a binary
27726 # during linking. This must work even if \$libdir does not exist.
27727 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
27729 # Whether we need a single "-rpath" flag with a separated argument.
27730 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
27732 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27733 # DIR into the resulting binary.
27734 hardcode_direct=$hardcode_direct_GCJ
27736 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27737 # DIR into the resulting binary and the resulting library dependency is
27738 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27739 # library is relocated.
27740 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
27742 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27743 # into the resulting binary.
27744 hardcode_minus_L=$hardcode_minus_L_GCJ
27746 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27747 # into the resulting binary.
27748 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
27750 # Set to "yes" if building a shared library automatically hardcodes DIR
27751 # into the library and all subsequent libraries and executables linked
27752 # against it.
27753 hardcode_automatic=$hardcode_automatic_GCJ
27755 # Set to yes if linker adds runtime paths of dependent libraries
27756 # to runtime path list.
27757 inherit_rpath=$inherit_rpath_GCJ
27759 # Whether libtool must link a program against all its dependency libraries.
27760 link_all_deplibs=$link_all_deplibs_GCJ
27762 # Fix the shell variable \$srcfile for the compiler.
27763 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
27765 # Set to "yes" if exported symbols are required.
27766 always_export_symbols=$always_export_symbols_GCJ
27768 # The commands to list exported symbols.
27769 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
27771 # Symbols that should not be listed in the preloaded symbols.
27772 exclude_expsyms=$lt_exclude_expsyms_GCJ
27774 # Symbols that must always be exported.
27775 include_expsyms=$lt_include_expsyms_GCJ
27777 # Commands necessary for linking programs (against libraries) with templates.
27778 prelink_cmds=$lt_prelink_cmds_GCJ
27780 # Specify filename containing input files.
27781 file_list_spec=$lt_file_list_spec_GCJ
27783 # How to hardcode a shared library path into an executable.
27784 hardcode_action=$hardcode_action_GCJ
27786 # The directories searched by this compiler when creating a shared library.
27787 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
27789 # Dependencies to place before and after the objects being linked to
27790 # create a shared library.
27791 predep_objects=$lt_predep_objects_GCJ
27792 postdep_objects=$lt_postdep_objects_GCJ
27793 predeps=$lt_predeps_GCJ
27794 postdeps=$lt_postdeps_GCJ
27796 # The library search path used internally by the compiler when linking
27797 # a shared library.
27798 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
27800 # ### END LIBTOOL TAG CONFIG: GCJ
27801 _LT_EOF
27804 "scripts/jar":F) chmod +x scripts/jar ;;
27806 esac
27807 done # for ac_tag
27810 as_fn_exit 0
27811 _ACEOF
27812 ac_clean_files=$ac_clean_files_save
27814 test $ac_write_fail = 0 ||
27815 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27818 # configure is writing to config.log, and then calls config.status.
27819 # config.status does its own redirection, appending to config.log.
27820 # Unfortunately, on DOS this fails, as config.log is still kept open
27821 # by configure, so config.status won't be able to write to it; its
27822 # output is simply discarded. So we exec the FD to /dev/null,
27823 # effectively closing config.log, so it can be properly (re)opened and
27824 # appended to by config.status. When coming back to configure, we
27825 # need to make the FD available again.
27826 if test "$no_create" != yes; then
27827 ac_cs_success=:
27828 ac_config_status_args=
27829 test "$silent" = yes &&
27830 ac_config_status_args="$ac_config_status_args --quiet"
27831 exec 5>/dev/null
27832 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27833 exec 5>>config.log
27834 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27835 # would make configure fail if this is the last instruction.
27836 $ac_cs_success || as_fn_exit $?
27840 # CONFIG_SUBDIRS section.
27842 if test "$no_recursion" != yes; then
27844 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
27845 # so they do not pile up.
27846 ac_sub_configure_args=
27847 ac_prev=
27848 eval "set x $ac_configure_args"
27849 shift
27850 for ac_arg
27852 if test -n "$ac_prev"; then
27853 ac_prev=
27854 continue
27856 case $ac_arg in
27857 -cache-file | --cache-file | --cache-fil | --cache-fi \
27858 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27859 ac_prev=cache_file ;;
27860 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27861 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27862 | --c=*)
27864 --config-cache | -C)
27866 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27867 ac_prev=srcdir ;;
27868 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27870 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27871 ac_prev=prefix ;;
27872 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27874 --disable-option-checking)
27877 case $ac_arg in
27878 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27879 esac
27880 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
27881 esac
27882 done
27884 # Always prepend --prefix to ensure using the same prefix
27885 # in subdir configurations.
27886 ac_arg="--prefix=$prefix"
27887 case $ac_arg in
27888 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27889 esac
27890 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
27892 # Pass --silent
27893 if test "$silent" = yes; then
27894 ac_sub_configure_args="--silent $ac_sub_configure_args"
27897 # Always prepend --disable-option-checking to silence warnings, since
27898 # different subdirs can have different --enable and --with options.
27899 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
27901 ac_popdir=`pwd`
27902 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27904 # Do not complain, so a configure script can configure whichever
27905 # parts of a large source tree are present.
27906 test -d "$srcdir/$ac_dir" || continue
27908 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
27909 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
27910 $as_echo "$ac_msg" >&6
27911 as_dir="$ac_dir"; as_fn_mkdir_p
27912 ac_builddir=.
27914 case "$ac_dir" in
27915 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27917 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27918 # A ".." for each directory in $ac_dir_suffix.
27919 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27920 case $ac_top_builddir_sub in
27921 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27922 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27923 esac ;;
27924 esac
27925 ac_abs_top_builddir=$ac_pwd
27926 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27927 # for backward compatibility:
27928 ac_top_builddir=$ac_top_build_prefix
27930 case $srcdir in
27931 .) # We are building in place.
27932 ac_srcdir=.
27933 ac_top_srcdir=$ac_top_builddir_sub
27934 ac_abs_top_srcdir=$ac_pwd ;;
27935 [\\/]* | ?:[\\/]* ) # Absolute name.
27936 ac_srcdir=$srcdir$ac_dir_suffix;
27937 ac_top_srcdir=$srcdir
27938 ac_abs_top_srcdir=$srcdir ;;
27939 *) # Relative name.
27940 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27941 ac_top_srcdir=$ac_top_build_prefix$srcdir
27942 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27943 esac
27944 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27947 cd "$ac_dir"
27949 # Check for guested configure; otherwise get Cygnus style configure.
27950 if test -f "$ac_srcdir/configure.gnu"; then
27951 ac_sub_configure=$ac_srcdir/configure.gnu
27952 elif test -f "$ac_srcdir/configure"; then
27953 ac_sub_configure=$ac_srcdir/configure
27954 elif test -f "$ac_srcdir/configure.in"; then
27955 # This should be Cygnus configure.
27956 ac_sub_configure=$ac_aux_dir/configure
27957 else
27958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
27959 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27960 ac_sub_configure=
27963 # The recursion is here.
27964 if test -n "$ac_sub_configure"; then
27965 # Make the cache file name correct relative to the subdirectory.
27966 case $cache_file in
27967 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27968 *) # Relative name.
27969 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
27970 esac
27972 { $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
27973 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27974 # The eval makes quoting arguments work.
27975 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27976 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27977 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
27980 cd "$ac_popdir"
27981 done
27983 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27985 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}