combine.c (try_combine): Fix formatting issues, improve comments and fix a pasto.
[official-gcc.git] / libjava / configure
blob80a59d6eeff182e25a31ae9af4642cb7534c6780
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for libjava version-unused.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='libjava'
558 PACKAGE_TARNAME='libjava'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='libjava version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
564 ac_unique_file="java/lang/System.java"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 enable_option_checking=no
602 ac_c_werror_flag=
603 ac_subst_vars='am__EXEEXT_FALSE
604 am__EXEEXT_TRUE
605 LTLIBOBJS
606 LIBOBJS
607 LIBDIR
610 GCJ_BIN_DIR
611 JRE_LIB_DIR
612 JRE_BIN_DIR
613 SDK_INCLUDE_DIR
614 SDK_LIB_DIR
615 SDK_BIN_DIR
616 SDK_LNK
617 JRE_LNK
618 JRE_DIR
619 JVM_JAR_DIR
620 JVM_JAR_ROOT_DIR
621 JVM_ROOT_DIR
622 BUILD_VERSION
623 JAVA_VERSION
624 gcc_suffix
625 CREATE_JAVA_HOME_FALSE
626 CREATE_JAVA_HOME_TRUE
627 INSTALL_AOT_RPM_FALSE
628 INSTALL_AOT_RPM_TRUE
629 MAKE
630 python_mod_dir_expanded
631 python_mod_dir
632 here
633 LD_FINISH_STATIC_SPEC
634 LD_START_STATIC_SPEC
635 ANONVERSCRIPT_SUN_FALSE
636 ANONVERSCRIPT_SUN_TRUE
637 ANONVERSCRIPT_GNU_FALSE
638 ANONVERSCRIPT_GNU_TRUE
639 ANONVERSCRIPT_FALSE
640 ANONVERSCRIPT_TRUE
641 SYSDEP_SOURCES
642 PERL
643 libstdcxx_incdir
644 gxx_include_dir
645 gcjsubdir
646 dbexecdir
647 GCJVERSION
648 toolexeclibdir
649 toolexecmainlibdir
650 toolexecdir
651 GCC_UNWIND_INCLUDE
652 INSTALL_BINARIES_FALSE
653 INSTALL_BINARIES_TRUE
654 NEEDS_DATA_START_FALSE
655 NEEDS_DATA_START_TRUE
656 ENABLE_SHARED_FALSE
657 ENABLE_SHARED_TRUE
658 NATIVE_FALSE
659 NATIVE_TRUE
660 ATOMICSPEC
661 IEEESPEC
662 BACKTRACESPEC
663 EXCEPTIONSPEC
664 CHECKREFSPEC
665 DIVIDESPEC
666 ZINCS
667 SYS_ZLIBS
668 ZLIBS
669 CLASSPATH_SEPARATOR
670 LIBART_LIBS
671 LIBART_CFLAGS
672 GLIB_LIBS
673 GLIB_CFLAGS
674 GTK_LIBS
675 GTK_CFLAGS
676 PKG_CONFIG
677 LTLIBICONV
678 LIBICONV
679 USING_GCC_FALSE
680 USING_GCC_TRUE
681 HASH_SYNC_SPEC
682 LIBGCJ_BC_SPEC
683 LIBGCJ_SPEC
684 USE_LIBGCJ_BC_FALSE
685 USE_LIBGCJ_BC_TRUE
686 USING_NO_THREADS_FALSE
687 USING_NO_THREADS_TRUE
688 USING_WIN32_THREADS_FALSE
689 USING_WIN32_THREADS_TRUE
690 USING_POSIX_THREADS_FALSE
691 USING_POSIX_THREADS_TRUE
692 THREADCXXFLAGS
693 THREADLDFLAGS
694 THREADSTARTFILESPEC
695 THREADSPEC
696 THREADDEPS
697 THREADINCS
698 THREADLIBS
699 USING_NOGC_FALSE
700 USING_NOGC_TRUE
701 USING_BOEHMGC_FALSE
702 USING_BOEHMGC_TRUE
703 GCTESTSPEC
704 JC1GCSPEC
705 GCSPEC
706 GCDEPS
707 GCINCS
708 GCLIBS
709 LIBGCJTESTSPEC
710 LIBMATHSPEC
711 LIBSTDCXXSPEC
712 extra_ldflags
713 extra_ldflags_libjava
714 X_EXTRA_LIBS
715 X_LIBS
716 X_PRE_LIBS
717 X_CFLAGS
718 XMKMF
719 ZLIBTESTSPEC
720 ZLIBSPEC
721 SYSTEMSPEC
722 USING_DARWIN_CRT_FALSE
723 USING_DARWIN_CRT_TRUE
724 USING_POSIX_PLATFORM_FALSE
725 USING_POSIX_PLATFORM_TRUE
726 USING_WIN32_PLATFORM_FALSE
727 USING_WIN32_PLATFORM_TRUE
728 PLATFORM
729 LIBFFIINCS
730 LIBFFI
731 INTERPRETER_FALSE
732 INTERPRETER_TRUE
733 INTERPRETER
734 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE
735 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE
736 SUPPRESS_LIBGCJ_BC_FALSE
737 SUPPRESS_LIBGCJ_BC_TRUE
738 JAVA_HOME
739 JAVA_HOME_SET_FALSE
740 JAVA_HOME_SET_TRUE
741 INSTALL_ECJ_JAR_FALSE
742 INSTALL_ECJ_JAR_TRUE
743 BUILD_ECJ1_FALSE
744 BUILD_ECJ1_TRUE
745 ECJ_JAR
746 ECJ_BUILD_JAR
747 TESTSUBDIR_FALSE
748 TESTSUBDIR_TRUE
749 subdirs
750 am__fastdepGCJ_FALSE
751 am__fastdepGCJ_TRUE
752 GCJDEPMODE
753 GCJFLAGS
754 ac_ct_GCJ
756 CXXCPP
758 OTOOL64
759 OTOOL
760 LIPO
761 NMEDIT
762 DSYMUTIL
763 OBJDUMP
765 ac_ct_DUMPBIN
766 DUMPBIN
767 FGREP
768 EGREP
769 GREP
771 LIBTOOL
772 DIRLTDL
773 LIBLTDL
774 INCLTDL
775 host_exeext
776 GCJH
777 GCC_FOR_ECJX
778 GCJ_FOR_ECJX
779 X_AWT_FALSE
780 X_AWT_TRUE
781 XLIB_AWT_FALSE
782 XLIB_AWT_TRUE
783 TOOLKIT
784 LIBGCJDEBUG
785 BUILD_SUBLIBS_FALSE
786 BUILD_SUBLIBS_TRUE
787 LIBGCJ_LD_SYMBOLIC_FUNCTIONS
788 LIBGCJ_LD_SYMBOLIC
789 LIBGCJ_SUBLIB_CORE_EXTRA_DEPS
790 LIBGCJ_SUBLIB_LTFLAGS
791 LIBGCJ_JAVAFLAGS
792 LIBGCJ_CXXFLAGS
793 LIBGCJ_CFLAGS
794 MAINT
795 MAINTAINER_MODE_FALSE
796 MAINTAINER_MODE_TRUE
797 UNZIP
800 DLLTOOL
801 RANLIB
805 am__fastdepCXX_FALSE
806 am__fastdepCXX_TRUE
807 CXXDEPMODE
808 am__fastdepCC_FALSE
809 am__fastdepCC_TRUE
810 CCDEPMODE
811 AMDEPBACKSLASH
812 AMDEP_FALSE
813 AMDEP_TRUE
814 am__quote
815 am__include
816 DEPDIR
817 am__untar
818 am__tar
819 AMTAR
820 am__leading_dot
821 SET_MAKE
823 mkdir_p
824 MKDIR_P
825 INSTALL_STRIP_PROGRAM
826 STRIP
827 install_sh
828 MAKEINFO
829 AUTOHEADER
830 AUTOMAKE
831 AUTOCONF
832 ACLOCAL
833 VERSION
834 PACKAGE
835 CYGPATH_W
836 am__isrc
837 INSTALL_DATA
838 INSTALL_SCRIPT
839 INSTALL_PROGRAM
840 ac_ct_CXX
841 CXXFLAGS
843 OBJEXT
844 EXEEXT
845 ac_ct_CC
846 CPPFLAGS
847 LDFLAGS
848 CFLAGS
850 JAVA_MAINTAINER_MODE_FALSE
851 JAVA_MAINTAINER_MODE_TRUE
852 CREATE_GJDOC_FALSE
853 CREATE_GJDOC_TRUE
854 ANTLR_JAR
855 mkinstalldirs
856 LN_S
857 target_noncanonical
858 target_os
859 target_vendor
860 target_cpu
861 target
862 host_os
863 host_vendor
864 host_cpu
865 host
866 multi_basedir
867 target_subdir
868 host_subdir
869 build_subdir
870 build_libsubdir
871 build_os
872 build_vendor
873 build_cpu
874 build
875 target_alias
876 host_alias
877 build_alias
878 LIBS
879 ECHO_T
880 ECHO_N
881 ECHO_C
882 DEFS
883 mandir
884 localedir
885 libdir
886 psdir
887 pdfdir
888 dvidir
889 htmldir
890 infodir
891 docdir
892 oldincludedir
893 includedir
894 localstatedir
895 sharedstatedir
896 sysconfdir
897 datadir
898 datarootdir
899 libexecdir
900 sbindir
901 bindir
902 program_transform_name
903 prefix
904 exec_prefix
905 PACKAGE_URL
906 PACKAGE_BUGREPORT
907 PACKAGE_STRING
908 PACKAGE_VERSION
909 PACKAGE_TARNAME
910 PACKAGE_NAME
911 PATH_SEPARATOR
912 SHELL'
913 ac_subst_files=''
914 ac_user_opts='
915 enable_option_checking
916 with_build_libsubdir
917 with_target_subdir
918 enable_multilib
919 with_cross_host
920 with_newlib
921 enable_version_specific_runtime_libs
922 enable_browser_plugin
923 enable_gconf_peer
924 with_antlr_jar
925 enable_gjdoc
926 enable_java_maintainer_mode
927 enable_dependency_tracking
928 enable_maintainer_mode
929 enable_libgcj_sublibs
930 enable_libgcj_debug
931 with_escher
932 enable_java_awt
933 enable_shared
934 enable_static
935 with_pic
936 enable_fast_install
937 with_gnu_ld
938 enable_libtool_lock
939 enable_getenv_properties
940 enable_hash_synchronization
941 with_ecj_jar
942 with_java_home
943 enable_libgcj_bc
944 enable_reduced_reflection
945 with_win32_nlsapi
946 enable_gc_debug
947 enable_interpreter
948 enable_sjlj_exceptions
949 enable_java_net
950 with_libffi
951 enable_jvmpi
952 with_ecos
953 with_system_zlib
954 with_x
955 enable_java_gc
956 enable_rpath
957 with_libiconv_prefix
958 enable_tls
959 with_system_libunwind
960 with_python_dir
961 enable_aot_compile_rpm
962 enable_java_home
963 with_gcc_suffix
964 with_arch_directory
965 with_os_directory
966 with_origin_name
967 with_arch_suffix
968 with_jvm_root_dir
969 with_jvm_jar_dir
971 ac_precious_vars='build_alias
972 host_alias
973 target_alias
975 CFLAGS
976 LDFLAGS
977 LIBS
978 CPPFLAGS
980 CXXFLAGS
983 CXXCPP
984 XMKMF'
985 ac_subdirs_all='classpath libltdl'
987 # Initialize some variables set by options.
988 ac_init_help=
989 ac_init_version=false
990 ac_unrecognized_opts=
991 ac_unrecognized_sep=
992 # The variables have the same names as the options, with
993 # dashes changed to underlines.
994 cache_file=/dev/null
995 exec_prefix=NONE
996 no_create=
997 no_recursion=
998 prefix=NONE
999 program_prefix=NONE
1000 program_suffix=NONE
1001 program_transform_name=s,x,x,
1002 silent=
1003 site=
1004 srcdir=
1005 verbose=
1006 x_includes=NONE
1007 x_libraries=NONE
1009 # Installation directory options.
1010 # These are left unexpanded so users can "make install exec_prefix=/foo"
1011 # and all the variables that are supposed to be based on exec_prefix
1012 # by default will actually change.
1013 # Use braces instead of parens because sh, perl, etc. also accept them.
1014 # (The list follows the same order as the GNU Coding Standards.)
1015 bindir='${exec_prefix}/bin'
1016 sbindir='${exec_prefix}/sbin'
1017 libexecdir='${exec_prefix}/libexec'
1018 datarootdir='${prefix}/share'
1019 datadir='${datarootdir}'
1020 sysconfdir='${prefix}/etc'
1021 sharedstatedir='${prefix}/com'
1022 localstatedir='${prefix}/var'
1023 includedir='${prefix}/include'
1024 oldincludedir='/usr/include'
1025 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1026 infodir='${datarootdir}/info'
1027 htmldir='${docdir}'
1028 dvidir='${docdir}'
1029 pdfdir='${docdir}'
1030 psdir='${docdir}'
1031 libdir='${exec_prefix}/lib'
1032 localedir='${datarootdir}/locale'
1033 mandir='${datarootdir}/man'
1035 ac_prev=
1036 ac_dashdash=
1037 for ac_option
1039 # If the previous option needs an argument, assign it.
1040 if test -n "$ac_prev"; then
1041 eval $ac_prev=\$ac_option
1042 ac_prev=
1043 continue
1046 case $ac_option in
1047 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1048 *) ac_optarg=yes ;;
1049 esac
1051 # Accept the important Cygnus configure options, so we can diagnose typos.
1053 case $ac_dashdash$ac_option in
1055 ac_dashdash=yes ;;
1057 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1058 ac_prev=bindir ;;
1059 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1060 bindir=$ac_optarg ;;
1062 -build | --build | --buil | --bui | --bu)
1063 ac_prev=build_alias ;;
1064 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1065 build_alias=$ac_optarg ;;
1067 -cache-file | --cache-file | --cache-fil | --cache-fi \
1068 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1069 ac_prev=cache_file ;;
1070 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1071 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1072 cache_file=$ac_optarg ;;
1074 --config-cache | -C)
1075 cache_file=config.cache ;;
1077 -datadir | --datadir | --datadi | --datad)
1078 ac_prev=datadir ;;
1079 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1080 datadir=$ac_optarg ;;
1082 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1083 | --dataroo | --dataro | --datar)
1084 ac_prev=datarootdir ;;
1085 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1086 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1087 datarootdir=$ac_optarg ;;
1089 -disable-* | --disable-*)
1090 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1091 # Reject names that are not valid shell variable names.
1092 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1093 as_fn_error "invalid feature name: $ac_useropt"
1094 ac_useropt_orig=$ac_useropt
1095 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096 case $ac_user_opts in
1098 "enable_$ac_useropt"
1099 "*) ;;
1100 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1101 ac_unrecognized_sep=', ';;
1102 esac
1103 eval enable_$ac_useropt=no ;;
1105 -docdir | --docdir | --docdi | --doc | --do)
1106 ac_prev=docdir ;;
1107 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1108 docdir=$ac_optarg ;;
1110 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1111 ac_prev=dvidir ;;
1112 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1113 dvidir=$ac_optarg ;;
1115 -enable-* | --enable-*)
1116 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119 as_fn_error "invalid feature name: $ac_useropt"
1120 ac_useropt_orig=$ac_useropt
1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1124 "enable_$ac_useropt"
1125 "*) ;;
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1127 ac_unrecognized_sep=', ';;
1128 esac
1129 eval enable_$ac_useropt=\$ac_optarg ;;
1131 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1132 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1133 | --exec | --exe | --ex)
1134 ac_prev=exec_prefix ;;
1135 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1136 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1137 | --exec=* | --exe=* | --ex=*)
1138 exec_prefix=$ac_optarg ;;
1140 -gas | --gas | --ga | --g)
1141 # Obsolete; use --with-gas.
1142 with_gas=yes ;;
1144 -help | --help | --hel | --he | -h)
1145 ac_init_help=long ;;
1146 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1147 ac_init_help=recursive ;;
1148 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1149 ac_init_help=short ;;
1151 -host | --host | --hos | --ho)
1152 ac_prev=host_alias ;;
1153 -host=* | --host=* | --hos=* | --ho=*)
1154 host_alias=$ac_optarg ;;
1156 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1157 ac_prev=htmldir ;;
1158 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1159 | --ht=*)
1160 htmldir=$ac_optarg ;;
1162 -includedir | --includedir | --includedi | --included | --include \
1163 | --includ | --inclu | --incl | --inc)
1164 ac_prev=includedir ;;
1165 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1166 | --includ=* | --inclu=* | --incl=* | --inc=*)
1167 includedir=$ac_optarg ;;
1169 -infodir | --infodir | --infodi | --infod | --info | --inf)
1170 ac_prev=infodir ;;
1171 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1172 infodir=$ac_optarg ;;
1174 -libdir | --libdir | --libdi | --libd)
1175 ac_prev=libdir ;;
1176 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1177 libdir=$ac_optarg ;;
1179 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1180 | --libexe | --libex | --libe)
1181 ac_prev=libexecdir ;;
1182 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1183 | --libexe=* | --libex=* | --libe=*)
1184 libexecdir=$ac_optarg ;;
1186 -localedir | --localedir | --localedi | --localed | --locale)
1187 ac_prev=localedir ;;
1188 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1189 localedir=$ac_optarg ;;
1191 -localstatedir | --localstatedir | --localstatedi | --localstated \
1192 | --localstate | --localstat | --localsta | --localst | --locals)
1193 ac_prev=localstatedir ;;
1194 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1195 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1196 localstatedir=$ac_optarg ;;
1198 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1199 ac_prev=mandir ;;
1200 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1201 mandir=$ac_optarg ;;
1203 -nfp | --nfp | --nf)
1204 # Obsolete; use --without-fp.
1205 with_fp=no ;;
1207 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1208 | --no-cr | --no-c | -n)
1209 no_create=yes ;;
1211 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1212 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1213 no_recursion=yes ;;
1215 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1216 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1217 | --oldin | --oldi | --old | --ol | --o)
1218 ac_prev=oldincludedir ;;
1219 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1220 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1221 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1222 oldincludedir=$ac_optarg ;;
1224 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1225 ac_prev=prefix ;;
1226 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1227 prefix=$ac_optarg ;;
1229 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1230 | --program-pre | --program-pr | --program-p)
1231 ac_prev=program_prefix ;;
1232 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1233 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1234 program_prefix=$ac_optarg ;;
1236 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1237 | --program-suf | --program-su | --program-s)
1238 ac_prev=program_suffix ;;
1239 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1240 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1241 program_suffix=$ac_optarg ;;
1243 -program-transform-name | --program-transform-name \
1244 | --program-transform-nam | --program-transform-na \
1245 | --program-transform-n | --program-transform- \
1246 | --program-transform | --program-transfor \
1247 | --program-transfo | --program-transf \
1248 | --program-trans | --program-tran \
1249 | --progr-tra | --program-tr | --program-t)
1250 ac_prev=program_transform_name ;;
1251 -program-transform-name=* | --program-transform-name=* \
1252 | --program-transform-nam=* | --program-transform-na=* \
1253 | --program-transform-n=* | --program-transform-=* \
1254 | --program-transform=* | --program-transfor=* \
1255 | --program-transfo=* | --program-transf=* \
1256 | --program-trans=* | --program-tran=* \
1257 | --progr-tra=* | --program-tr=* | --program-t=*)
1258 program_transform_name=$ac_optarg ;;
1260 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1261 ac_prev=pdfdir ;;
1262 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1263 pdfdir=$ac_optarg ;;
1265 -psdir | --psdir | --psdi | --psd | --ps)
1266 ac_prev=psdir ;;
1267 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1268 psdir=$ac_optarg ;;
1270 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1271 | -silent | --silent | --silen | --sile | --sil)
1272 silent=yes ;;
1274 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1275 ac_prev=sbindir ;;
1276 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1277 | --sbi=* | --sb=*)
1278 sbindir=$ac_optarg ;;
1280 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1281 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1282 | --sharedst | --shareds | --shared | --share | --shar \
1283 | --sha | --sh)
1284 ac_prev=sharedstatedir ;;
1285 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1286 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1287 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1288 | --sha=* | --sh=*)
1289 sharedstatedir=$ac_optarg ;;
1291 -site | --site | --sit)
1292 ac_prev=site ;;
1293 -site=* | --site=* | --sit=*)
1294 site=$ac_optarg ;;
1296 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1297 ac_prev=srcdir ;;
1298 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1299 srcdir=$ac_optarg ;;
1301 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1302 | --syscon | --sysco | --sysc | --sys | --sy)
1303 ac_prev=sysconfdir ;;
1304 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1305 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1306 sysconfdir=$ac_optarg ;;
1308 -target | --target | --targe | --targ | --tar | --ta | --t)
1309 ac_prev=target_alias ;;
1310 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1311 target_alias=$ac_optarg ;;
1313 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1314 verbose=yes ;;
1316 -version | --version | --versio | --versi | --vers | -V)
1317 ac_init_version=: ;;
1319 -with-* | --with-*)
1320 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1321 # Reject names that are not valid shell variable names.
1322 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1323 as_fn_error "invalid package name: $ac_useropt"
1324 ac_useropt_orig=$ac_useropt
1325 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1326 case $ac_user_opts in
1328 "with_$ac_useropt"
1329 "*) ;;
1330 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1331 ac_unrecognized_sep=', ';;
1332 esac
1333 eval with_$ac_useropt=\$ac_optarg ;;
1335 -without-* | --without-*)
1336 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1337 # Reject names that are not valid shell variable names.
1338 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1339 as_fn_error "invalid package name: $ac_useropt"
1340 ac_useropt_orig=$ac_useropt
1341 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1342 case $ac_user_opts in
1344 "with_$ac_useropt"
1345 "*) ;;
1346 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1347 ac_unrecognized_sep=', ';;
1348 esac
1349 eval with_$ac_useropt=no ;;
1351 --x)
1352 # Obsolete; use --with-x.
1353 with_x=yes ;;
1355 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1356 | --x-incl | --x-inc | --x-in | --x-i)
1357 ac_prev=x_includes ;;
1358 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1359 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1360 x_includes=$ac_optarg ;;
1362 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1363 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1364 ac_prev=x_libraries ;;
1365 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1366 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1367 x_libraries=$ac_optarg ;;
1369 -*) as_fn_error "unrecognized option: \`$ac_option'
1370 Try \`$0 --help' for more information."
1373 *=*)
1374 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1375 # Reject names that are not valid shell variable names.
1376 case $ac_envvar in #(
1377 '' | [0-9]* | *[!_$as_cr_alnum]* )
1378 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1379 esac
1380 eval $ac_envvar=\$ac_optarg
1381 export $ac_envvar ;;
1384 # FIXME: should be removed in autoconf 3.0.
1385 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1386 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1387 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1388 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1391 esac
1392 done
1394 if test -n "$ac_prev"; then
1395 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1396 as_fn_error "missing argument to $ac_option"
1399 if test -n "$ac_unrecognized_opts"; then
1400 case $enable_option_checking in
1401 no) ;;
1402 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1403 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1404 esac
1407 # Check all directory arguments for consistency.
1408 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1409 datadir sysconfdir sharedstatedir localstatedir includedir \
1410 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1411 libdir localedir mandir
1413 eval ac_val=\$$ac_var
1414 # Remove trailing slashes.
1415 case $ac_val in
1416 */ )
1417 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1418 eval $ac_var=\$ac_val;;
1419 esac
1420 # Be sure to have absolute directory names.
1421 case $ac_val in
1422 [\\/$]* | ?:[\\/]* ) continue;;
1423 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1424 esac
1425 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1426 done
1428 # There might be people who depend on the old broken behavior: `$host'
1429 # used to hold the argument of --host etc.
1430 # FIXME: To remove some day.
1431 build=$build_alias
1432 host=$host_alias
1433 target=$target_alias
1435 # FIXME: To remove some day.
1436 if test "x$host_alias" != x; then
1437 if test "x$build_alias" = x; then
1438 cross_compiling=maybe
1439 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1440 If a cross compiler is detected then cross compile mode will be used." >&2
1441 elif test "x$build_alias" != "x$host_alias"; then
1442 cross_compiling=yes
1446 ac_tool_prefix=
1447 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1449 test "$silent" = yes && exec 6>/dev/null
1452 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1453 ac_ls_di=`ls -di .` &&
1454 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1455 as_fn_error "working directory cannot be determined"
1456 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1457 as_fn_error "pwd does not report name of working directory"
1460 # Find the source files, if location was not specified.
1461 if test -z "$srcdir"; then
1462 ac_srcdir_defaulted=yes
1463 # Try the directory containing this script, then the parent directory.
1464 ac_confdir=`$as_dirname -- "$as_myself" ||
1465 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1466 X"$as_myself" : 'X\(//\)[^/]' \| \
1467 X"$as_myself" : 'X\(//\)$' \| \
1468 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1469 $as_echo X"$as_myself" |
1470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1471 s//\1/
1474 /^X\(\/\/\)[^/].*/{
1475 s//\1/
1478 /^X\(\/\/\)$/{
1479 s//\1/
1482 /^X\(\/\).*/{
1483 s//\1/
1486 s/.*/./; q'`
1487 srcdir=$ac_confdir
1488 if test ! -r "$srcdir/$ac_unique_file"; then
1489 srcdir=..
1491 else
1492 ac_srcdir_defaulted=no
1494 if test ! -r "$srcdir/$ac_unique_file"; then
1495 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1496 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1498 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1499 ac_abs_confdir=`(
1500 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1501 pwd)`
1502 # When building in place, set srcdir=.
1503 if test "$ac_abs_confdir" = "$ac_pwd"; then
1504 srcdir=.
1506 # Remove unnecessary trailing slashes from srcdir.
1507 # Double slashes in file names in object file debugging info
1508 # mess up M-x gdb in Emacs.
1509 case $srcdir in
1510 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1511 esac
1512 for ac_var in $ac_precious_vars; do
1513 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1514 eval ac_env_${ac_var}_value=\$${ac_var}
1515 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1516 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1517 done
1520 # Report the --help message.
1522 if test "$ac_init_help" = "long"; then
1523 # Omit some internal or obsolete options to make the list less imposing.
1524 # This message is too long to be a string in the A/UX 3.1 sh.
1525 cat <<_ACEOF
1526 \`configure' configures libjava version-unused to adapt to many kinds of systems.
1528 Usage: $0 [OPTION]... [VAR=VALUE]...
1530 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1531 VAR=VALUE. See below for descriptions of some of the useful variables.
1533 Defaults for the options are specified in brackets.
1535 Configuration:
1536 -h, --help display this help and exit
1537 --help=short display options specific to this package
1538 --help=recursive display the short help of all the included packages
1539 -V, --version display version information and exit
1540 -q, --quiet, --silent do not print \`checking...' messages
1541 --cache-file=FILE cache test results in FILE [disabled]
1542 -C, --config-cache alias for \`--cache-file=config.cache'
1543 -n, --no-create do not create output files
1544 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1546 Installation directories:
1547 --prefix=PREFIX install architecture-independent files in PREFIX
1548 [$ac_default_prefix]
1549 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1550 [PREFIX]
1552 By default, \`make install' will install all the files in
1553 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1554 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1555 for instance \`--prefix=\$HOME'.
1557 For better control, use the options below.
1559 Fine tuning of the installation directories:
1560 --bindir=DIR user executables [EPREFIX/bin]
1561 --sbindir=DIR system admin executables [EPREFIX/sbin]
1562 --libexecdir=DIR program executables [EPREFIX/libexec]
1563 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1564 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1565 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1566 --libdir=DIR object code libraries [EPREFIX/lib]
1567 --includedir=DIR C header files [PREFIX/include]
1568 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1569 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1570 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1571 --infodir=DIR info documentation [DATAROOTDIR/info]
1572 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1573 --mandir=DIR man documentation [DATAROOTDIR/man]
1574 --docdir=DIR documentation root [DATAROOTDIR/doc/libjava]
1575 --htmldir=DIR html documentation [DOCDIR]
1576 --dvidir=DIR dvi documentation [DOCDIR]
1577 --pdfdir=DIR pdf documentation [DOCDIR]
1578 --psdir=DIR ps documentation [DOCDIR]
1579 _ACEOF
1581 cat <<\_ACEOF
1583 Program names:
1584 --program-prefix=PREFIX prepend PREFIX to installed program names
1585 --program-suffix=SUFFIX append SUFFIX to installed program names
1586 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1588 X features:
1589 --x-includes=DIR X include files are in DIR
1590 --x-libraries=DIR X library files are in DIR
1592 System types:
1593 --build=BUILD configure for building on BUILD [guessed]
1594 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1595 --target=TARGET configure for building compilers for TARGET [HOST]
1596 _ACEOF
1599 if test -n "$ac_init_help"; then
1600 case $ac_init_help in
1601 short | recursive ) echo "Configuration of libjava version-unused:";;
1602 esac
1603 cat <<\_ACEOF
1605 Optional Features:
1606 --disable-option-checking ignore unrecognized --enable/--with options
1607 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1608 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1609 --enable-multilib build many library versions (default)
1610 --enable-version-specific-runtime-libs
1611 specify that runtime libraries should be installed
1612 in a compiler-specific directory
1613 --enable-browser-plugin build gcjwebplugin web browser plugin
1614 --enable-gconf-peer compile GConf native peers for util.preferences
1615 --disable-gjdoc compile GJDoc (disabled by --disable-gjdoc)
1616 default=yes
1617 --enable-java-maintainer-mode
1618 allow rebuilding of .class and .h files
1619 --disable-dependency-tracking speeds up one-time build
1620 --enable-dependency-tracking do not reject slow dependency extractors
1621 --enable-maintainer-mode enable make rules and dependencies not useful
1622 (and sometimes confusing) to the casual installer
1623 --enable-libgcj-sublibs build libgcj as many sub-libraries
1624 --enable-libgcj-debug enable runtime debugging code
1625 --enable-java-awt list of AWT peer implementations to be built
1626 --enable-shared[=PKGS] build shared libraries [default=yes]
1627 --enable-static[=PKGS] build static libraries [default=yes]
1628 --enable-fast-install[=PKGS]
1629 optimize for fast installation [default=yes]
1630 --disable-libtool-lock avoid locking (might break parallel builds)
1631 --disable-getenv-properties
1632 don't set system properties from GCJ_PROPERTIES
1633 --enable-hash-synchronization
1634 use global hash table for monitor locks
1635 --enable-libgcj-bc enable(default) or disable BC ABI for portions of
1636 libgcj
1637 --enable-reduced-reflection
1638 enable or disable(default) -freduced-reflection when
1639 building portions of libgcj
1640 --enable-gc-debug include full support for pointer backtracing etc.
1641 --enable-interpreter enable interpreter
1642 --enable-sjlj-exceptions
1643 force use of builtin_setjmp for exceptions
1644 --disable-java-net disable java.net
1645 --disable-jvmpi disable JVMPI support
1646 --enable-java-gc=TYPE choose garbage collector (default is boehm)
1647 --disable-rpath do not hardcode runtime library paths
1648 --enable-tls Use thread-local storage [default=yes]
1649 --enable-aot-compile-rpm
1650 enable installation of aot-compile-rpm [default=no]
1651 --enable-java-home create a standard JDK-style directory layout in the
1652 install tree [default=no]
1654 Optional Packages:
1655 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1656 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1657 --with-build-libsubdir=DIR Directory where to find libraries for build system
1658 --with-target-subdir=SUBDIR
1659 configure in a subdirectory
1660 --with-cross-host=HOST configure with a cross compiler from HOST
1661 --with-newlib configure with newlib
1662 --with-antlr-jar=file Use ANTLR from the specified jar file
1663 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
1664 --with-pic try to use only PIC/non-PIC objects [default=use
1665 both]
1666 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1667 --with-ecj-jar=FILE use preinstalled ecj jar
1668 --with-java-home=DIRECTORY
1669 value of java.home system property
1670 --with-win32-nlsapi=ansi or unicows or unicode
1671 native MinGW libgcj Win32 OS API (default is ansi)
1672 --without-libffi don't use libffi
1673 --with-ecos enable runtime eCos target support
1674 --with-system-zlib use installed libz
1675 --with-x use the X Window System
1676 --with-gnu-ld assume the C compiler uses GNU ld default=no
1677 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1678 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1679 --with-system-libunwind use installed libunwind
1680 --with-python-dir the location to install Python modules. This path
1681 should NOT include the prefix.
1682 --with-gcc-suffix the GCC tool suffix (defaults to empty string)
1683 --with-arch-directory the arch directory under jre/lib (defaults to
1684 auto-detect)
1685 --with-os-directory the os directory under include (defaults to
1686 auto-detect)
1687 --with-origin-name the JPackage origin name of this package (default is
1688 gcj${gcc_suffix}
1689 --with-arch-suffix the arch directory suffix (default is the empty
1690 string
1691 --with-jvm-root-dir where to install SDK (default is ${prefix}/lib/jvm)
1692 --with-jvm-jar-dir where to install jars (default is
1693 ${prefix}/lib/jvm-exports)
1695 Some influential environment variables:
1696 CC C compiler command
1697 CFLAGS C compiler flags
1698 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1699 nonstandard directory <lib dir>
1700 LIBS libraries to pass to the linker, e.g. -l<library>
1701 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1702 you have headers in a nonstandard directory <include dir>
1703 CXX C++ compiler command
1704 CXXFLAGS C++ compiler flags
1705 CPP C preprocessor
1706 CXXCPP C++ preprocessor
1707 XMKMF Path to xmkmf, Makefile generator for X Window System
1709 Use these variables to override the choices made by `configure' or to help
1710 it to find libraries and programs with nonstandard names/locations.
1712 Report bugs to the package provider.
1713 _ACEOF
1714 ac_status=$?
1717 if test "$ac_init_help" = "recursive"; then
1718 # If there are subdirs, report their specific --help.
1719 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1720 test -d "$ac_dir" ||
1721 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1722 continue
1723 ac_builddir=.
1725 case "$ac_dir" in
1726 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1728 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1729 # A ".." for each directory in $ac_dir_suffix.
1730 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1731 case $ac_top_builddir_sub in
1732 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1733 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1734 esac ;;
1735 esac
1736 ac_abs_top_builddir=$ac_pwd
1737 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1738 # for backward compatibility:
1739 ac_top_builddir=$ac_top_build_prefix
1741 case $srcdir in
1742 .) # We are building in place.
1743 ac_srcdir=.
1744 ac_top_srcdir=$ac_top_builddir_sub
1745 ac_abs_top_srcdir=$ac_pwd ;;
1746 [\\/]* | ?:[\\/]* ) # Absolute name.
1747 ac_srcdir=$srcdir$ac_dir_suffix;
1748 ac_top_srcdir=$srcdir
1749 ac_abs_top_srcdir=$srcdir ;;
1750 *) # Relative name.
1751 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1752 ac_top_srcdir=$ac_top_build_prefix$srcdir
1753 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1754 esac
1755 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1757 cd "$ac_dir" || { ac_status=$?; continue; }
1758 # Check for guested configure.
1759 if test -f "$ac_srcdir/configure.gnu"; then
1760 echo &&
1761 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1762 elif test -f "$ac_srcdir/configure"; then
1763 echo &&
1764 $SHELL "$ac_srcdir/configure" --help=recursive
1765 else
1766 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1767 fi || ac_status=$?
1768 cd "$ac_pwd" || { ac_status=$?; break; }
1769 done
1772 test -n "$ac_init_help" && exit $ac_status
1773 if $ac_init_version; then
1774 cat <<\_ACEOF
1775 libjava configure version-unused
1776 generated by GNU Autoconf 2.64
1778 Copyright (C) 2009 Free Software Foundation, Inc.
1779 This configure script is free software; the Free Software Foundation
1780 gives unlimited permission to copy, distribute and modify it.
1781 _ACEOF
1782 exit
1785 ## ------------------------ ##
1786 ## Autoconf initialization. ##
1787 ## ------------------------ ##
1789 # ac_fn_c_try_compile LINENO
1790 # --------------------------
1791 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1792 ac_fn_c_try_compile ()
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 rm -f conftest.$ac_objext
1796 if { { ac_try="$ac_compile"
1797 case "(($ac_try" in
1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1800 esac
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_compile") 2>conftest.err
1804 ac_status=$?
1805 if test -s conftest.err; then
1806 grep -v '^ *+' conftest.err >conftest.er1
1807 cat conftest.er1 >&5
1808 mv -f conftest.er1 conftest.err
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; } && {
1812 test -z "$ac_c_werror_flag" ||
1813 test ! -s conftest.err
1814 } && test -s conftest.$ac_objext; then :
1815 ac_retval=0
1816 else
1817 $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1820 ac_retval=1
1822 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1823 return $ac_retval
1825 } # ac_fn_c_try_compile
1827 # ac_fn_cxx_try_compile LINENO
1828 # ----------------------------
1829 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1830 ac_fn_cxx_try_compile ()
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 rm -f conftest.$ac_objext
1834 if { { ac_try="$ac_compile"
1835 case "(($ac_try" in
1836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837 *) ac_try_echo=$ac_try;;
1838 esac
1839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 $as_echo "$ac_try_echo"; } >&5
1841 (eval "$ac_compile") 2>conftest.err
1842 ac_status=$?
1843 if test -s conftest.err; then
1844 grep -v '^ *+' conftest.err >conftest.er1
1845 cat conftest.er1 >&5
1846 mv -f conftest.er1 conftest.err
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; } && {
1850 test -z "$ac_cxx_werror_flag" ||
1851 test ! -s conftest.err
1852 } && test -s conftest.$ac_objext; then :
1853 ac_retval=0
1854 else
1855 $as_echo "$as_me: failed program was:" >&5
1856 sed 's/^/| /' conftest.$ac_ext >&5
1858 ac_retval=1
1860 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1861 return $ac_retval
1863 } # ac_fn_cxx_try_compile
1865 # ac_fn_c_try_link LINENO
1866 # -----------------------
1867 # Try to link conftest.$ac_ext, and return whether this succeeded.
1868 ac_fn_c_try_link ()
1870 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871 rm -f conftest.$ac_objext conftest$ac_exeext
1872 if { { ac_try="$ac_link"
1873 case "(($ac_try" in
1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1876 esac
1877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878 $as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_link") 2>conftest.err
1880 ac_status=$?
1881 if test -s conftest.err; then
1882 grep -v '^ *+' conftest.err >conftest.er1
1883 cat conftest.er1 >&5
1884 mv -f conftest.er1 conftest.err
1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887 test $ac_status = 0; } && {
1888 test -z "$ac_c_werror_flag" ||
1889 test ! -s conftest.err
1890 } && test -s conftest$ac_exeext && {
1891 test "$cross_compiling" = yes ||
1892 $as_test_x conftest$ac_exeext
1893 }; then :
1894 ac_retval=0
1895 else
1896 $as_echo "$as_me: failed program was:" >&5
1897 sed 's/^/| /' conftest.$ac_ext >&5
1899 ac_retval=1
1901 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1902 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1903 # interfere with the next link command; also delete a directory that is
1904 # left behind by Apple's compiler. We do this before executing the actions.
1905 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1906 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1907 return $ac_retval
1909 } # ac_fn_c_try_link
1911 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1912 # -------------------------------------------------------
1913 # Tests whether HEADER exists and can be compiled using the include files in
1914 # INCLUDES, setting the cache variable VAR accordingly.
1915 ac_fn_c_check_header_compile ()
1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919 $as_echo_n "checking for $2... " >&6; }
1920 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1921 $as_echo_n "(cached) " >&6
1922 else
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1926 #include <$2>
1927 _ACEOF
1928 if ac_fn_c_try_compile "$LINENO"; then :
1929 eval "$3=yes"
1930 else
1931 eval "$3=no"
1933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1935 eval ac_res=\$$3
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937 $as_echo "$ac_res" >&6; }
1938 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1940 } # ac_fn_c_check_header_compile
1942 # ac_fn_c_try_cpp LINENO
1943 # ----------------------
1944 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1945 ac_fn_c_try_cpp ()
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 if { { ac_try="$ac_cpp conftest.$ac_ext"
1949 case "(($ac_try" in
1950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1951 *) ac_try_echo=$ac_try;;
1952 esac
1953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954 $as_echo "$ac_try_echo"; } >&5
1955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1956 ac_status=$?
1957 if test -s conftest.err; then
1958 grep -v '^ *+' conftest.err >conftest.er1
1959 cat conftest.er1 >&5
1960 mv -f conftest.er1 conftest.err
1962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963 test $ac_status = 0; } >/dev/null && {
1964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1965 test ! -s conftest.err
1966 }; then :
1967 ac_retval=0
1968 else
1969 $as_echo "$as_me: failed program was:" >&5
1970 sed 's/^/| /' conftest.$ac_ext >&5
1972 ac_retval=1
1974 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1975 return $ac_retval
1977 } # ac_fn_c_try_cpp
1979 # ac_fn_c_try_run LINENO
1980 # ----------------------
1981 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1982 # that executables *can* be run.
1983 ac_fn_c_try_run ()
1985 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986 if { { ac_try="$ac_link"
1987 case "(($ac_try" in
1988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1989 *) ac_try_echo=$ac_try;;
1990 esac
1991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1992 $as_echo "$ac_try_echo"; } >&5
1993 (eval "$ac_link") 2>&5
1994 ac_status=$?
1995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1996 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1997 { { case "(($ac_try" in
1998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1999 *) ac_try_echo=$ac_try;;
2000 esac
2001 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2002 $as_echo "$ac_try_echo"; } >&5
2003 (eval "$ac_try") 2>&5
2004 ac_status=$?
2005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2006 test $ac_status = 0; }; }; then :
2007 ac_retval=0
2008 else
2009 $as_echo "$as_me: program exited with status $ac_status" >&5
2010 $as_echo "$as_me: failed program was:" >&5
2011 sed 's/^/| /' conftest.$ac_ext >&5
2013 ac_retval=$ac_status
2015 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2016 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2017 return $ac_retval
2019 } # ac_fn_c_try_run
2021 # ac_fn_c_check_func LINENO FUNC VAR
2022 # ----------------------------------
2023 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2024 ac_fn_c_check_func ()
2026 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2028 $as_echo_n "checking for $2... " >&6; }
2029 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2030 $as_echo_n "(cached) " >&6
2031 else
2032 if test x$gcc_no_link = xyes; then
2033 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h. */
2037 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2039 #define $2 innocuous_$2
2041 /* System header to define __stub macros and hopefully few prototypes,
2042 which can conflict with char $2 (); below.
2043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2044 <limits.h> exists even on freestanding compilers. */
2046 #ifdef __STDC__
2047 # include <limits.h>
2048 #else
2049 # include <assert.h>
2050 #endif
2052 #undef $2
2054 /* Override any GCC internal prototype to avoid an error.
2055 Use char because int might match the return type of a GCC
2056 builtin and then its argument prototype would still apply. */
2057 #ifdef __cplusplus
2058 extern "C"
2059 #endif
2060 char $2 ();
2061 /* The GNU C library defines this for functions which it implements
2062 to always fail with ENOSYS. Some functions are actually named
2063 something starting with __ and the normal name is an alias. */
2064 #if defined __stub_$2 || defined __stub___$2
2065 choke me
2066 #endif
2069 main ()
2071 return $2 ();
2073 return 0;
2075 _ACEOF
2076 if ac_fn_c_try_link "$LINENO"; then :
2077 eval "$3=yes"
2078 else
2079 eval "$3=no"
2081 rm -f core conftest.err conftest.$ac_objext \
2082 conftest$ac_exeext conftest.$ac_ext
2084 eval ac_res=\$$3
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2086 $as_echo "$ac_res" >&6; }
2087 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2089 } # ac_fn_c_check_func
2091 # ac_fn_cxx_try_cpp LINENO
2092 # ------------------------
2093 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2094 ac_fn_cxx_try_cpp ()
2096 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2097 if { { ac_try="$ac_cpp conftest.$ac_ext"
2098 case "(($ac_try" in
2099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2100 *) ac_try_echo=$ac_try;;
2101 esac
2102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2103 $as_echo "$ac_try_echo"; } >&5
2104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2105 ac_status=$?
2106 if test -s conftest.err; then
2107 grep -v '^ *+' conftest.err >conftest.er1
2108 cat conftest.er1 >&5
2109 mv -f conftest.er1 conftest.err
2111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2112 test $ac_status = 0; } >/dev/null && {
2113 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2114 test ! -s conftest.err
2115 }; then :
2116 ac_retval=0
2117 else
2118 $as_echo "$as_me: failed program was:" >&5
2119 sed 's/^/| /' conftest.$ac_ext >&5
2121 ac_retval=1
2123 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2124 return $ac_retval
2126 } # ac_fn_cxx_try_cpp
2128 # ac_fn_cxx_try_link LINENO
2129 # -------------------------
2130 # Try to link conftest.$ac_ext, and return whether this succeeded.
2131 ac_fn_cxx_try_link ()
2133 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2134 rm -f conftest.$ac_objext conftest$ac_exeext
2135 if { { ac_try="$ac_link"
2136 case "(($ac_try" in
2137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2138 *) ac_try_echo=$ac_try;;
2139 esac
2140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2141 $as_echo "$ac_try_echo"; } >&5
2142 (eval "$ac_link") 2>conftest.err
2143 ac_status=$?
2144 if test -s conftest.err; then
2145 grep -v '^ *+' conftest.err >conftest.er1
2146 cat conftest.er1 >&5
2147 mv -f conftest.er1 conftest.err
2149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2150 test $ac_status = 0; } && {
2151 test -z "$ac_cxx_werror_flag" ||
2152 test ! -s conftest.err
2153 } && test -s conftest$ac_exeext && {
2154 test "$cross_compiling" = yes ||
2155 $as_test_x conftest$ac_exeext
2156 }; then :
2157 ac_retval=0
2158 else
2159 $as_echo "$as_me: failed program was:" >&5
2160 sed 's/^/| /' conftest.$ac_ext >&5
2162 ac_retval=1
2164 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2165 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2166 # interfere with the next link command; also delete a directory that is
2167 # left behind by Apple's compiler. We do this before executing the actions.
2168 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2169 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2170 return $ac_retval
2172 } # ac_fn_cxx_try_link
2174 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2175 # -------------------------------------------------------
2176 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2177 # the include files in INCLUDES and setting the cache variable VAR
2178 # accordingly.
2179 ac_fn_c_check_header_mongrel ()
2181 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2182 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2184 $as_echo_n "checking for $2... " >&6; }
2185 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2186 $as_echo_n "(cached) " >&6
2188 eval ac_res=\$$3
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2190 $as_echo "$ac_res" >&6; }
2191 else
2192 # Is the header compilable?
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2194 $as_echo_n "checking $2 usability... " >&6; }
2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196 /* end confdefs.h. */
2198 #include <$2>
2199 _ACEOF
2200 if ac_fn_c_try_compile "$LINENO"; then :
2201 ac_header_compiler=yes
2202 else
2203 ac_header_compiler=no
2205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2207 $as_echo "$ac_header_compiler" >&6; }
2209 # Is the header present?
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2211 $as_echo_n "checking $2 presence... " >&6; }
2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h. */
2214 #include <$2>
2215 _ACEOF
2216 if ac_fn_c_try_cpp "$LINENO"; then :
2217 ac_header_preproc=yes
2218 else
2219 ac_header_preproc=no
2221 rm -f conftest.err conftest.$ac_ext
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2223 $as_echo "$ac_header_preproc" >&6; }
2225 # So? What about this header?
2226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2227 yes:no: )
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2229 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2231 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2233 no:yes:* )
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2235 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2237 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2239 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2241 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2243 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2245 esac
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2247 $as_echo_n "checking for $2... " >&6; }
2248 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2249 $as_echo_n "(cached) " >&6
2250 else
2251 eval "$3=\$ac_header_compiler"
2253 eval ac_res=\$$3
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2255 $as_echo "$ac_res" >&6; }
2257 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2259 } # ac_fn_c_check_header_mongrel
2261 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2262 # ----------------------------------------------------
2263 # Tries to find if the field MEMBER exists in type AGGR, after including
2264 # INCLUDES, setting cache variable VAR accordingly.
2265 ac_fn_c_check_member ()
2267 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2269 $as_echo_n "checking for $2.$3... " >&6; }
2270 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2271 $as_echo_n "(cached) " >&6
2272 else
2273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274 /* end confdefs.h. */
2277 main ()
2279 static $2 ac_aggr;
2280 if (ac_aggr.$3)
2281 return 0;
2283 return 0;
2285 _ACEOF
2286 if ac_fn_c_try_compile "$LINENO"; then :
2287 eval "$4=yes"
2288 else
2289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2290 /* end confdefs.h. */
2293 main ()
2295 static $2 ac_aggr;
2296 if (sizeof ac_aggr.$3)
2297 return 0;
2299 return 0;
2301 _ACEOF
2302 if ac_fn_c_try_compile "$LINENO"; then :
2303 eval "$4=yes"
2304 else
2305 eval "$4=no"
2307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311 eval ac_res=\$$4
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2313 $as_echo "$ac_res" >&6; }
2314 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2316 } # ac_fn_c_check_member
2318 # ac_fn_c_check_decl LINENO SYMBOL VAR
2319 # ------------------------------------
2320 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2321 ac_fn_c_check_decl ()
2323 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2324 as_decl_name=`echo $2|sed 's/ *(.*//'`
2325 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2327 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2328 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2329 $as_echo_n "(cached) " >&6
2330 else
2331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2332 /* end confdefs.h. */
2335 main ()
2337 #ifndef $as_decl_name
2338 #ifdef __cplusplus
2339 (void) $as_decl_use;
2340 #else
2341 (void) $as_decl_name;
2342 #endif
2343 #endif
2346 return 0;
2348 _ACEOF
2349 if ac_fn_c_try_compile "$LINENO"; then :
2350 eval "$3=yes"
2351 else
2352 eval "$3=no"
2354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2356 eval ac_res=\$$3
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2358 $as_echo "$ac_res" >&6; }
2359 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2361 } # ac_fn_c_check_decl
2363 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2364 # --------------------------------------------
2365 # Tries to find the compile-time value of EXPR in a program that includes
2366 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2367 # computed
2368 ac_fn_c_compute_int ()
2370 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2371 if test "$cross_compiling" = yes; then
2372 # Depending upon the size, compute the lo and hi bounds.
2373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2374 /* end confdefs.h. */
2377 main ()
2379 static int test_array [1 - 2 * !(($2) >= 0)];
2380 test_array [0] = 0
2383 return 0;
2385 _ACEOF
2386 if ac_fn_c_try_compile "$LINENO"; then :
2387 ac_lo=0 ac_mid=0
2388 while :; do
2389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2390 /* end confdefs.h. */
2393 main ()
2395 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2396 test_array [0] = 0
2399 return 0;
2401 _ACEOF
2402 if ac_fn_c_try_compile "$LINENO"; then :
2403 ac_hi=$ac_mid; break
2404 else
2405 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2406 if test $ac_lo -le $ac_mid; then
2407 ac_lo= ac_hi=
2408 break
2410 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2413 done
2414 else
2415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2416 /* end confdefs.h. */
2419 main ()
2421 static int test_array [1 - 2 * !(($2) < 0)];
2422 test_array [0] = 0
2425 return 0;
2427 _ACEOF
2428 if ac_fn_c_try_compile "$LINENO"; then :
2429 ac_hi=-1 ac_mid=-1
2430 while :; do
2431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2432 /* end confdefs.h. */
2435 main ()
2437 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2438 test_array [0] = 0
2441 return 0;
2443 _ACEOF
2444 if ac_fn_c_try_compile "$LINENO"; then :
2445 ac_lo=$ac_mid; break
2446 else
2447 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2448 if test $ac_mid -le $ac_hi; then
2449 ac_lo= ac_hi=
2450 break
2452 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2455 done
2456 else
2457 ac_lo= ac_hi=
2459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2462 # Binary search between lo and hi bounds.
2463 while test "x$ac_lo" != "x$ac_hi"; do
2464 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2466 /* end confdefs.h. */
2469 main ()
2471 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2472 test_array [0] = 0
2475 return 0;
2477 _ACEOF
2478 if ac_fn_c_try_compile "$LINENO"; then :
2479 ac_hi=$ac_mid
2480 else
2481 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2484 done
2485 case $ac_lo in #((
2486 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2487 '') ac_retval=1 ;;
2488 esac
2489 else
2490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2491 /* end confdefs.h. */
2493 static long int longval () { return $2; }
2494 static unsigned long int ulongval () { return $2; }
2495 #include <stdio.h>
2496 #include <stdlib.h>
2498 main ()
2501 FILE *f = fopen ("conftest.val", "w");
2502 if (! f)
2503 return 1;
2504 if (($2) < 0)
2506 long int i = longval ();
2507 if (i != ($2))
2508 return 1;
2509 fprintf (f, "%ld", i);
2511 else
2513 unsigned long int i = ulongval ();
2514 if (i != ($2))
2515 return 1;
2516 fprintf (f, "%lu", i);
2518 /* Do not output a trailing newline, as this causes \r\n confusion
2519 on some platforms. */
2520 return ferror (f) || fclose (f) != 0;
2523 return 0;
2525 _ACEOF
2526 if ac_fn_c_try_run "$LINENO"; then :
2527 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2528 else
2529 ac_retval=1
2531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2532 conftest.$ac_objext conftest.beam conftest.$ac_ext
2533 rm -f conftest.val
2536 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2537 return $ac_retval
2539 } # ac_fn_c_compute_int
2541 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2542 # -------------------------------------------
2543 # Tests whether TYPE exists after having included INCLUDES, setting cache
2544 # variable VAR accordingly.
2545 ac_fn_c_check_type ()
2547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2549 $as_echo_n "checking for $2... " >&6; }
2550 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2551 $as_echo_n "(cached) " >&6
2552 else
2553 eval "$3=no"
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 :
2567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2568 /* end confdefs.h. */
2571 main ()
2573 if (sizeof (($2)))
2574 return 0;
2576 return 0;
2578 _ACEOF
2579 if ac_fn_c_try_compile "$LINENO"; then :
2581 else
2582 eval "$3=yes"
2584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2588 eval ac_res=\$$3
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2590 $as_echo "$ac_res" >&6; }
2591 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2593 } # ac_fn_c_check_type
2594 cat >config.log <<_ACEOF
2595 This file contains any messages produced by compilers while
2596 running configure, to aid debugging if configure makes a mistake.
2598 It was created by libjava $as_me version-unused, which was
2599 generated by GNU Autoconf 2.64. Invocation command line was
2601 $ $0 $@
2603 _ACEOF
2604 exec 5>>config.log
2606 cat <<_ASUNAME
2607 ## --------- ##
2608 ## Platform. ##
2609 ## --------- ##
2611 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2612 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2613 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2614 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2615 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2617 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2618 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2620 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2621 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2622 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2623 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2624 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2625 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2626 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2628 _ASUNAME
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 for as_dir in $PATH
2633 IFS=$as_save_IFS
2634 test -z "$as_dir" && as_dir=.
2635 $as_echo "PATH: $as_dir"
2636 done
2637 IFS=$as_save_IFS
2639 } >&5
2641 cat >&5 <<_ACEOF
2644 ## ----------- ##
2645 ## Core tests. ##
2646 ## ----------- ##
2648 _ACEOF
2651 # Keep a trace of the command line.
2652 # Strip out --no-create and --no-recursion so they do not pile up.
2653 # Strip out --silent because we don't want to record it for future runs.
2654 # Also quote any args containing shell meta-characters.
2655 # Make two passes to allow for proper duplicate-argument suppression.
2656 ac_configure_args=
2657 ac_configure_args0=
2658 ac_configure_args1=
2659 ac_must_keep_next=false
2660 for ac_pass in 1 2
2662 for ac_arg
2664 case $ac_arg in
2665 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2666 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2667 | -silent | --silent | --silen | --sile | --sil)
2668 continue ;;
2669 *\'*)
2670 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2671 esac
2672 case $ac_pass in
2673 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2675 as_fn_append ac_configure_args1 " '$ac_arg'"
2676 if test $ac_must_keep_next = true; then
2677 ac_must_keep_next=false # Got value, back to normal.
2678 else
2679 case $ac_arg in
2680 *=* | --config-cache | -C | -disable-* | --disable-* \
2681 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2682 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2683 | -with-* | --with-* | -without-* | --without-* | --x)
2684 case "$ac_configure_args0 " in
2685 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2686 esac
2688 -* ) ac_must_keep_next=true ;;
2689 esac
2691 as_fn_append ac_configure_args " '$ac_arg'"
2693 esac
2694 done
2695 done
2696 { ac_configure_args0=; unset ac_configure_args0;}
2697 { ac_configure_args1=; unset ac_configure_args1;}
2699 # When interrupted or exit'd, cleanup temporary files, and complete
2700 # config.log. We remove comments because anyway the quotes in there
2701 # would cause problems or look ugly.
2702 # WARNING: Use '\'' to represent an apostrophe within the trap.
2703 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2704 trap 'exit_status=$?
2705 # Save into config.log some information that might help in debugging.
2707 echo
2709 cat <<\_ASBOX
2710 ## ---------------- ##
2711 ## Cache variables. ##
2712 ## ---------------- ##
2713 _ASBOX
2714 echo
2715 # The following way of writing the cache mishandles newlines in values,
2717 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2718 eval ac_val=\$$ac_var
2719 case $ac_val in #(
2720 *${as_nl}*)
2721 case $ac_var in #(
2722 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2723 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2724 esac
2725 case $ac_var in #(
2726 _ | IFS | as_nl) ;; #(
2727 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2728 *) { eval $ac_var=; unset $ac_var;} ;;
2729 esac ;;
2730 esac
2731 done
2732 (set) 2>&1 |
2733 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2734 *${as_nl}ac_space=\ *)
2735 sed -n \
2736 "s/'\''/'\''\\\\'\'''\''/g;
2737 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2738 ;; #(
2740 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2742 esac |
2743 sort
2745 echo
2747 cat <<\_ASBOX
2748 ## ----------------- ##
2749 ## Output variables. ##
2750 ## ----------------- ##
2751 _ASBOX
2752 echo
2753 for ac_var in $ac_subst_vars
2755 eval ac_val=\$$ac_var
2756 case $ac_val in
2757 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2758 esac
2759 $as_echo "$ac_var='\''$ac_val'\''"
2760 done | sort
2761 echo
2763 if test -n "$ac_subst_files"; then
2764 cat <<\_ASBOX
2765 ## ------------------- ##
2766 ## File substitutions. ##
2767 ## ------------------- ##
2768 _ASBOX
2769 echo
2770 for ac_var in $ac_subst_files
2772 eval ac_val=\$$ac_var
2773 case $ac_val in
2774 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2775 esac
2776 $as_echo "$ac_var='\''$ac_val'\''"
2777 done | sort
2778 echo
2781 if test -s confdefs.h; then
2782 cat <<\_ASBOX
2783 ## ----------- ##
2784 ## confdefs.h. ##
2785 ## ----------- ##
2786 _ASBOX
2787 echo
2788 cat confdefs.h
2789 echo
2791 test "$ac_signal" != 0 &&
2792 $as_echo "$as_me: caught signal $ac_signal"
2793 $as_echo "$as_me: exit $exit_status"
2794 } >&5
2795 rm -f core *.core core.conftest.* &&
2796 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2797 exit $exit_status
2799 for ac_signal in 1 2 13 15; do
2800 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2801 done
2802 ac_signal=0
2804 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2805 rm -f -r conftest* confdefs.h
2807 $as_echo "/* confdefs.h */" > confdefs.h
2809 # Predefined preprocessor variables.
2811 cat >>confdefs.h <<_ACEOF
2812 #define PACKAGE_NAME "$PACKAGE_NAME"
2813 _ACEOF
2815 cat >>confdefs.h <<_ACEOF
2816 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2817 _ACEOF
2819 cat >>confdefs.h <<_ACEOF
2820 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2821 _ACEOF
2823 cat >>confdefs.h <<_ACEOF
2824 #define PACKAGE_STRING "$PACKAGE_STRING"
2825 _ACEOF
2827 cat >>confdefs.h <<_ACEOF
2828 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2829 _ACEOF
2831 cat >>confdefs.h <<_ACEOF
2832 #define PACKAGE_URL "$PACKAGE_URL"
2833 _ACEOF
2836 # Let the site file select an alternate cache file if it wants to.
2837 # Prefer an explicitly selected file to automatically selected ones.
2838 ac_site_file1=NONE
2839 ac_site_file2=NONE
2840 if test -n "$CONFIG_SITE"; then
2841 ac_site_file1=$CONFIG_SITE
2842 elif test "x$prefix" != xNONE; then
2843 ac_site_file1=$prefix/share/config.site
2844 ac_site_file2=$prefix/etc/config.site
2845 else
2846 ac_site_file1=$ac_default_prefix/share/config.site
2847 ac_site_file2=$ac_default_prefix/etc/config.site
2849 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2851 test "x$ac_site_file" = xNONE && continue
2852 if test -r "$ac_site_file"; then
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2854 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2855 sed 's/^/| /' "$ac_site_file" >&5
2856 . "$ac_site_file"
2858 done
2860 if test -r "$cache_file"; then
2861 # Some versions of bash will fail to source /dev/null (special
2862 # files actually), so we avoid doing that.
2863 if test -f "$cache_file"; then
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2865 $as_echo "$as_me: loading cache $cache_file" >&6;}
2866 case $cache_file in
2867 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2868 *) . "./$cache_file";;
2869 esac
2871 else
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2873 $as_echo "$as_me: creating cache $cache_file" >&6;}
2874 >$cache_file
2877 # Check that the precious variables saved in the cache have kept the same
2878 # value.
2879 ac_cache_corrupted=false
2880 for ac_var in $ac_precious_vars; do
2881 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2882 eval ac_new_set=\$ac_env_${ac_var}_set
2883 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2884 eval ac_new_val=\$ac_env_${ac_var}_value
2885 case $ac_old_set,$ac_new_set in
2886 set,)
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2888 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2889 ac_cache_corrupted=: ;;
2890 ,set)
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2892 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2893 ac_cache_corrupted=: ;;
2894 ,);;
2896 if test "x$ac_old_val" != "x$ac_new_val"; then
2897 # differences in whitespace do not lead to failure.
2898 ac_old_val_w=`echo x $ac_old_val`
2899 ac_new_val_w=`echo x $ac_new_val`
2900 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2902 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2903 ac_cache_corrupted=:
2904 else
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2906 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2907 eval $ac_var=\$ac_old_val
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2910 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2912 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2913 fi;;
2914 esac
2915 # Pass precious variables to config.status.
2916 if test "$ac_new_set" = set; then
2917 case $ac_new_val in
2918 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2919 *) ac_arg=$ac_var=$ac_new_val ;;
2920 esac
2921 case " $ac_configure_args " in
2922 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2923 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2924 esac
2926 done
2927 if $ac_cache_corrupted; then
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2931 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2932 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2934 ## -------------------- ##
2935 ## Main body of script. ##
2936 ## -------------------- ##
2938 ac_ext=c
2939 ac_cpp='$CPP $CPPFLAGS'
2940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2951 ac_aux_dir=
2952 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2953 for ac_t in install-sh install.sh shtool; do
2954 if test -f "$ac_dir/$ac_t"; then
2955 ac_aux_dir=$ac_dir
2956 ac_install_sh="$ac_aux_dir/$ac_t -c"
2957 break 2
2959 done
2960 done
2961 if test -z "$ac_aux_dir"; then
2962 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2965 # These three variables are undocumented and unsupported,
2966 # and are intended to be withdrawn in a future Autoconf release.
2967 # They can cause serious problems if a builder's source tree is in a directory
2968 # whose full name contains unusual characters.
2969 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2970 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2971 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2974 # Make sure we can run config.sub.
2975 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2976 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2979 $as_echo_n "checking build system type... " >&6; }
2980 if test "${ac_cv_build+set}" = set; then :
2981 $as_echo_n "(cached) " >&6
2982 else
2983 ac_build_alias=$build_alias
2984 test "x$ac_build_alias" = x &&
2985 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2986 test "x$ac_build_alias" = x &&
2987 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2988 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2989 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2993 $as_echo "$ac_cv_build" >&6; }
2994 case $ac_cv_build in
2995 *-*-*) ;;
2996 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2997 esac
2998 build=$ac_cv_build
2999 ac_save_IFS=$IFS; IFS='-'
3000 set x $ac_cv_build
3001 shift
3002 build_cpu=$1
3003 build_vendor=$2
3004 shift; shift
3005 # Remember, the first character of IFS is used to create $*,
3006 # except with old shells:
3007 build_os=$*
3008 IFS=$ac_save_IFS
3009 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3012 case ${build_alias} in
3013 "") build_noncanonical=${build} ;;
3014 *) build_noncanonical=${build_alias} ;;
3015 esac
3017 case ${host_alias} in
3018 "") host_noncanonical=${build_noncanonical} ;;
3019 *) host_noncanonical=${host_alias} ;;
3020 esac
3022 case ${target_alias} in
3023 "") target_noncanonical=${host_noncanonical} ;;
3024 *) target_noncanonical=${target_alias} ;;
3025 esac
3028 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3029 # have matching libraries, they should use host libraries: Makefile.tpl
3030 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3031 # However, they still use the build modules, because the corresponding
3032 # host modules (e.g. bison) are only built for the host when bootstrap
3033 # finishes. So:
3034 # - build_subdir is where we find build modules, and never changes.
3035 # - build_libsubdir is where we find build libraries, and can be overridden.
3037 # Prefix 'build-' so this never conflicts with target_subdir.
3038 build_subdir="build-${build_noncanonical}"
3040 # Check whether --with-build-libsubdir was given.
3041 if test "${with_build_libsubdir+set}" = set; then :
3042 withval=$with_build_libsubdir; build_libsubdir="$withval"
3043 else
3044 build_libsubdir="$build_subdir"
3047 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3048 if ( test $srcdir = . && test -d gcc ) \
3049 || test -d $srcdir/../host-${host_noncanonical}; then
3050 host_subdir="host-${host_noncanonical}"
3051 else
3052 host_subdir=.
3054 # No prefix.
3055 target_subdir=${target_noncanonical}
3058 # We use these options to decide which functions to include.
3060 # Check whether --with-target-subdir was given.
3061 if test "${with_target_subdir+set}" = set; then :
3062 withval=$with_target_subdir;
3066 # We may get other options which we don't document:
3067 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3069 # Find the rest of the source tree framework.
3070 # Default to --enable-multilib
3071 # Check whether --enable-multilib was given.
3072 if test "${enable_multilib+set}" = set; then :
3073 enableval=$enable_multilib; case "$enableval" in
3074 yes) multilib=yes ;;
3075 no) multilib=no ;;
3076 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3077 esac
3078 else
3079 multilib=yes
3083 # We may get other options which we leave undocumented:
3084 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3085 # See config-ml.in if you want the gory details.
3087 if test "$srcdir" = "."; then
3088 if test "$with_target_subdir" != "."; then
3089 multi_basedir="$srcdir/$with_multisrctop../.."
3090 else
3091 multi_basedir="$srcdir/$with_multisrctop.."
3093 else
3094 multi_basedir="$srcdir/.."
3098 # Even if the default multilib is not a cross compilation,
3099 # it may be that some of the other multilibs are.
3100 if test $cross_compiling = no && test $multilib = yes \
3101 && test "x${with_multisubdir}" != x ; then
3102 cross_compiling=maybe
3105 ac_config_commands="$ac_config_commands default-1"
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3109 $as_echo_n "checking host system type... " >&6; }
3110 if test "${ac_cv_host+set}" = set; then :
3111 $as_echo_n "(cached) " >&6
3112 else
3113 if test "x$host_alias" = x; then
3114 ac_cv_host=$ac_cv_build
3115 else
3116 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3117 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3122 $as_echo "$ac_cv_host" >&6; }
3123 case $ac_cv_host in
3124 *-*-*) ;;
3125 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3126 esac
3127 host=$ac_cv_host
3128 ac_save_IFS=$IFS; IFS='-'
3129 set x $ac_cv_host
3130 shift
3131 host_cpu=$1
3132 host_vendor=$2
3133 shift; shift
3134 # Remember, the first character of IFS is used to create $*,
3135 # except with old shells:
3136 host_os=$*
3137 IFS=$ac_save_IFS
3138 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3142 $as_echo_n "checking target system type... " >&6; }
3143 if test "${ac_cv_target+set}" = set; then :
3144 $as_echo_n "(cached) " >&6
3145 else
3146 if test "x$target_alias" = x; then
3147 ac_cv_target=$ac_cv_host
3148 else
3149 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3150 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3155 $as_echo "$ac_cv_target" >&6; }
3156 case $ac_cv_target in
3157 *-*-*) ;;
3158 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3159 esac
3160 target=$ac_cv_target
3161 ac_save_IFS=$IFS; IFS='-'
3162 set x $ac_cv_target
3163 shift
3164 target_cpu=$1
3165 target_vendor=$2
3166 shift; shift
3167 # Remember, the first character of IFS is used to create $*,
3168 # except with old shells:
3169 target_os=$*
3170 IFS=$ac_save_IFS
3171 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3174 # The aliases save the names the user supplied, while $host etc.
3175 # will get canonicalized.
3176 test -n "$target_alias" &&
3177 test "$program_prefix$program_suffix$program_transform_name" = \
3178 NONENONEs,x,x, &&
3179 program_prefix=${target_alias}-
3181 case ${build_alias} in
3182 "") build_noncanonical=${build} ;;
3183 *) build_noncanonical=${build_alias} ;;
3184 esac
3186 case ${target_alias} in
3187 "") target_noncanonical=${host_noncanonical} ;;
3188 *) target_noncanonical=${target_alias} ;;
3189 esac
3194 # This works around the fact that libtool configuration may change LD
3195 # for this particular configuration, but some shells, instead of
3196 # keeping the changes in LD private, export them just because LD is
3197 # exported.
3198 ORIGINAL_LD_FOR_MULTILIBS=$LD
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3201 $as_echo_n "checking whether ln -s works... " >&6; }
3202 LN_S=$as_ln_s
3203 if test "$LN_S" = "ln -s"; then
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3205 $as_echo "yes" >&6; }
3206 else
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3208 $as_echo "no, using $LN_S" >&6; }
3212 # This works around an automake problem.
3213 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
3217 # Check whether --with-cross-host was given.
3218 if test "${with_cross_host+set}" = set; then :
3219 withval=$with_cross_host;
3224 # Check whether --with-newlib was given.
3225 if test "${with_newlib+set}" = set; then :
3226 withval=$with_newlib;
3230 # Check whether --enable-version-specific-runtime-libs was given.
3231 if test "${enable_version_specific_runtime_libs+set}" = set; then :
3232 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
3233 yes) version_specific_libs=yes ;;
3234 no) version_specific_libs=no ;;
3235 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3236 esac
3237 else
3238 version_specific_libs=no
3243 # Check whether --enable-browser-plugin was given.
3244 if test "${enable_browser_plugin+set}" = set; then :
3245 enableval=$enable_browser_plugin; case "$enableval" in
3246 yes) browser_plugin_enabled=yes ;;
3247 no) browser_plugin_enabled=no ;;
3248 *) as_fn_error "Unknown argument to enable/disable browser plugin" "$LINENO" 5;;
3249 esac
3250 else
3251 browser_plugin_enabled=no
3256 # Check whether --enable-gconf-peer was given.
3257 if test "${enable_gconf_peer+set}" = set; then :
3258 enableval=$enable_gconf_peer; case "$enableval" in
3259 yes) gconf_enabled=yes ;;
3260 no) gconf_enabled=no ;;
3261 *) as_fn_error "Unknown argument to enable/disable gconf-peer" "$LINENO" 5;;
3262 esac
3263 else
3264 gconf_enabled=no
3270 # Check whether --with-antlr-jar was given.
3271 if test "${with_antlr_jar+set}" = set; then :
3272 withval=$with_antlr_jar;
3273 ANTLR_JAR=$withval
3275 else
3277 ANTLR_JAR=
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr.jar" >&5
3283 $as_echo_n "checking for antlr.jar... " >&6; }
3284 if test "x$ANTLR_JAR" = x; then
3285 for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
3286 /usr/share/antlr/lib /usr/share/java /usr/lib;
3288 if test -f "$antlr_lib_home/antlr.jar"; then
3289 # FIXME: version check for antlr needed without using a VM
3290 ANTLR_JAR="$antlr_lib_home/antlr.jar"
3291 break
3293 done
3294 if test "x$ANTLR_JAR" = x; then
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
3296 $as_echo "not found" >&6; }
3297 else
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3299 $as_echo "$ANTLR_JAR" >&6; }
3301 else
3302 if test -f "${ANTLR_JAR}"; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3304 $as_echo "$ANTLR_JAR" >&6; }
3305 else
3306 as_fn_error "antlr jar file not found: $ANTLR_JAR" "$LINENO" 5
3311 # Check whether --enable-gjdoc was given.
3312 if test "${enable_gjdoc+set}" = set; then :
3313 enableval=$enable_gjdoc; case "${enableval}" in
3314 yes) BUILD_GJDOC=yes ;;
3315 no) BUILD_GJDOC=no ;;
3316 *) BUILD_GJDOC=yes ;;
3317 esac
3318 else
3319 BUILD_GJDOC=maybe
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gjdoc" >&5
3324 $as_echo_n "checking whether to build gjdoc... " >&6; }
3325 if test "x$BUILD_GJDOC" = xmaybe; then
3326 if test -f "${ANTLR_JAR}"; then
3327 BUILD_GJDOC=yes
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3329 $as_echo "yes" >&6; }
3330 else
3331 BUILD_GJDOC=no
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, antlr.jar not found" >&5
3333 $as_echo "no, antlr.jar not found" >&6; }
3335 else
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_GJDOC" >&5
3337 $as_echo "$BUILD_GJDOC" >&6; }
3339 if test "x${BUILD_GJDOC}" = xyes; then
3340 CREATE_GJDOC_TRUE=
3341 CREATE_GJDOC_FALSE='#'
3342 else
3343 CREATE_GJDOC_TRUE='#'
3344 CREATE_GJDOC_FALSE=
3348 # Check whether --enable-java-maintainer-mode was given.
3349 if test "${enable_java_maintainer_mode+set}" = set; then :
3350 enableval=$enable_java_maintainer_mode;
3353 if test "$enable_java_maintainer_mode" = yes; then
3354 JAVA_MAINTAINER_MODE_TRUE=
3355 JAVA_MAINTAINER_MODE_FALSE='#'
3356 else
3357 JAVA_MAINTAINER_MODE_TRUE='#'
3358 JAVA_MAINTAINER_MODE_FALSE=
3362 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
3365 # For libstdc++-v3, -fno-builtin must be present here so that a
3366 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
3367 # used in later tests. This may not be necessary in libjava; I don't know.
3368 save_CXXFLAGS="$CXXFLAGS"
3369 CXXFLAGS="$CXXFLAGS -fno-builtin"
3370 ac_ext=c
3371 ac_cpp='$CPP $CPPFLAGS'
3372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3375 if test -n "$ac_tool_prefix"; then
3376 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3377 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3379 $as_echo_n "checking for $ac_word... " >&6; }
3380 if test "${ac_cv_prog_CC+set}" = set; then :
3381 $as_echo_n "(cached) " >&6
3382 else
3383 if test -n "$CC"; then
3384 ac_cv_prog_CC="$CC" # Let the user override the test.
3385 else
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 for as_dir in $PATH
3389 IFS=$as_save_IFS
3390 test -z "$as_dir" && as_dir=.
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3393 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3395 break 2
3397 done
3398 done
3399 IFS=$as_save_IFS
3403 CC=$ac_cv_prog_CC
3404 if test -n "$CC"; then
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3406 $as_echo "$CC" >&6; }
3407 else
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409 $as_echo "no" >&6; }
3414 if test -z "$ac_cv_prog_CC"; then
3415 ac_ct_CC=$CC
3416 # Extract the first word of "gcc", so it can be a program name with args.
3417 set dummy gcc; ac_word=$2
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3419 $as_echo_n "checking for $ac_word... " >&6; }
3420 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3421 $as_echo_n "(cached) " >&6
3422 else
3423 if test -n "$ac_ct_CC"; then
3424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3425 else
3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 for as_dir in $PATH
3429 IFS=$as_save_IFS
3430 test -z "$as_dir" && as_dir=.
3431 for ac_exec_ext in '' $ac_executable_extensions; do
3432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3433 ac_cv_prog_ac_ct_CC="gcc"
3434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 break 2
3437 done
3438 done
3439 IFS=$as_save_IFS
3443 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3444 if test -n "$ac_ct_CC"; then
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3446 $as_echo "$ac_ct_CC" >&6; }
3447 else
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3449 $as_echo "no" >&6; }
3452 if test "x$ac_ct_CC" = x; then
3453 CC=""
3454 else
3455 case $cross_compiling:$ac_tool_warned in
3456 yes:)
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3459 ac_tool_warned=yes ;;
3460 esac
3461 CC=$ac_ct_CC
3463 else
3464 CC="$ac_cv_prog_CC"
3467 if test -z "$CC"; then
3468 if test -n "$ac_tool_prefix"; then
3469 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3470 set dummy ${ac_tool_prefix}cc; ac_word=$2
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3472 $as_echo_n "checking for $ac_word... " >&6; }
3473 if test "${ac_cv_prog_CC+set}" = set; then :
3474 $as_echo_n "(cached) " >&6
3475 else
3476 if test -n "$CC"; then
3477 ac_cv_prog_CC="$CC" # Let the user override the test.
3478 else
3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 for as_dir in $PATH
3482 IFS=$as_save_IFS
3483 test -z "$as_dir" && as_dir=.
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3486 ac_cv_prog_CC="${ac_tool_prefix}cc"
3487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3488 break 2
3490 done
3491 done
3492 IFS=$as_save_IFS
3496 CC=$ac_cv_prog_CC
3497 if test -n "$CC"; then
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3499 $as_echo "$CC" >&6; }
3500 else
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3502 $as_echo "no" >&6; }
3508 if test -z "$CC"; then
3509 # Extract the first word of "cc", so it can be a program name with args.
3510 set dummy cc; ac_word=$2
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3512 $as_echo_n "checking for $ac_word... " >&6; }
3513 if test "${ac_cv_prog_CC+set}" = set; then :
3514 $as_echo_n "(cached) " >&6
3515 else
3516 if test -n "$CC"; then
3517 ac_cv_prog_CC="$CC" # Let the user override the test.
3518 else
3519 ac_prog_rejected=no
3520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521 for as_dir in $PATH
3523 IFS=$as_save_IFS
3524 test -z "$as_dir" && as_dir=.
3525 for ac_exec_ext in '' $ac_executable_extensions; do
3526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3527 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3528 ac_prog_rejected=yes
3529 continue
3531 ac_cv_prog_CC="cc"
3532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3533 break 2
3535 done
3536 done
3537 IFS=$as_save_IFS
3539 if test $ac_prog_rejected = yes; then
3540 # We found a bogon in the path, so make sure we never use it.
3541 set dummy $ac_cv_prog_CC
3542 shift
3543 if test $# != 0; then
3544 # We chose a different compiler from the bogus one.
3545 # However, it has the same basename, so the bogon will be chosen
3546 # first if we set CC to just the basename; use the full file name.
3547 shift
3548 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3553 CC=$ac_cv_prog_CC
3554 if test -n "$CC"; then
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3556 $as_echo "$CC" >&6; }
3557 else
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559 $as_echo "no" >&6; }
3564 if test -z "$CC"; then
3565 if test -n "$ac_tool_prefix"; then
3566 for ac_prog in cl.exe
3568 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3569 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3571 $as_echo_n "checking for $ac_word... " >&6; }
3572 if test "${ac_cv_prog_CC+set}" = set; then :
3573 $as_echo_n "(cached) " >&6
3574 else
3575 if test -n "$CC"; then
3576 ac_cv_prog_CC="$CC" # Let the user override the test.
3577 else
3578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579 for as_dir in $PATH
3581 IFS=$as_save_IFS
3582 test -z "$as_dir" && as_dir=.
3583 for ac_exec_ext in '' $ac_executable_extensions; do
3584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3585 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3587 break 2
3589 done
3590 done
3591 IFS=$as_save_IFS
3595 CC=$ac_cv_prog_CC
3596 if test -n "$CC"; then
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3598 $as_echo "$CC" >&6; }
3599 else
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3601 $as_echo "no" >&6; }
3605 test -n "$CC" && break
3606 done
3608 if test -z "$CC"; then
3609 ac_ct_CC=$CC
3610 for ac_prog in cl.exe
3612 # Extract the first word of "$ac_prog", so it can be a program name with args.
3613 set dummy $ac_prog; ac_word=$2
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3615 $as_echo_n "checking for $ac_word... " >&6; }
3616 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3617 $as_echo_n "(cached) " >&6
3618 else
3619 if test -n "$ac_ct_CC"; then
3620 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3621 else
3622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623 for as_dir in $PATH
3625 IFS=$as_save_IFS
3626 test -z "$as_dir" && as_dir=.
3627 for ac_exec_ext in '' $ac_executable_extensions; do
3628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3629 ac_cv_prog_ac_ct_CC="$ac_prog"
3630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3631 break 2
3633 done
3634 done
3635 IFS=$as_save_IFS
3639 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3640 if test -n "$ac_ct_CC"; then
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3642 $as_echo "$ac_ct_CC" >&6; }
3643 else
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3645 $as_echo "no" >&6; }
3649 test -n "$ac_ct_CC" && break
3650 done
3652 if test "x$ac_ct_CC" = x; then
3653 CC=""
3654 else
3655 case $cross_compiling:$ac_tool_warned in
3656 yes:)
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3659 ac_tool_warned=yes ;;
3660 esac
3661 CC=$ac_ct_CC
3668 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3670 as_fn_error "no acceptable C compiler found in \$PATH
3671 See \`config.log' for more details." "$LINENO" 5; }
3673 # Provide some information about the compiler.
3674 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3675 set X $ac_compile
3676 ac_compiler=$2
3677 for ac_option in --version -v -V -qversion; do
3678 { { ac_try="$ac_compiler $ac_option >&5"
3679 case "(($ac_try" in
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3682 esac
3683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3684 $as_echo "$ac_try_echo"; } >&5
3685 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3686 ac_status=$?
3687 if test -s conftest.err; then
3688 sed '10a\
3689 ... rest of stderr output deleted ...
3690 10q' conftest.err >conftest.er1
3691 cat conftest.er1 >&5
3692 rm -f conftest.er1 conftest.err
3694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3695 test $ac_status = 0; }
3696 done
3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699 /* end confdefs.h. */
3702 main ()
3706 return 0;
3708 _ACEOF
3709 # FIXME: Cleanup?
3710 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3711 (eval $ac_link) 2>&5
3712 ac_status=$?
3713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3714 test $ac_status = 0; }; then :
3715 gcc_no_link=no
3716 else
3717 gcc_no_link=yes
3719 if test x$gcc_no_link = xyes; then
3720 # Setting cross_compile will disable run tests; it will
3721 # also disable AC_CHECK_FILE but that's generally
3722 # correct if we can't link.
3723 cross_compiling=yes
3724 EXEEXT=
3725 else
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3730 main ()
3734 return 0;
3736 _ACEOF
3737 ac_clean_files_save=$ac_clean_files
3738 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3739 # Try to create an executable without -o first, disregard a.out.
3740 # It will help us diagnose broken compilers, and finding out an intuition
3741 # of exeext.
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3743 $as_echo_n "checking for C compiler default output file name... " >&6; }
3744 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3746 # The possible output files:
3747 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3749 ac_rmfiles=
3750 for ac_file in $ac_files
3752 case $ac_file in
3753 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3754 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3755 esac
3756 done
3757 rm -f $ac_rmfiles
3759 if { { ac_try="$ac_link_default"
3760 case "(($ac_try" in
3761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3762 *) ac_try_echo=$ac_try;;
3763 esac
3764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3765 $as_echo "$ac_try_echo"; } >&5
3766 (eval "$ac_link_default") 2>&5
3767 ac_status=$?
3768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3769 test $ac_status = 0; }; then :
3770 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3771 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3772 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3773 # so that the user can short-circuit this test for compilers unknown to
3774 # Autoconf.
3775 for ac_file in $ac_files ''
3777 test -f "$ac_file" || continue
3778 case $ac_file in
3779 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3781 [ab].out )
3782 # We found the default executable, but exeext='' is most
3783 # certainly right.
3784 break;;
3785 *.* )
3786 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3787 then :; else
3788 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3790 # We set ac_cv_exeext here because the later test for it is not
3791 # safe: cross compilers may not add the suffix if given an `-o'
3792 # argument, so we may need to know it at that point already.
3793 # Even if this section looks crufty: it has the advantage of
3794 # actually working.
3795 break;;
3797 break;;
3798 esac
3799 done
3800 test "$ac_cv_exeext" = no && ac_cv_exeext=
3802 else
3803 ac_file=''
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3806 $as_echo "$ac_file" >&6; }
3807 if test -z "$ac_file"; then :
3808 $as_echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3813 { as_fn_set_status 77
3814 as_fn_error "C compiler cannot create executables
3815 See \`config.log' for more details." "$LINENO" 5; }; }
3817 ac_exeext=$ac_cv_exeext
3819 # Check that the compiler produces executables we can run. If not, either
3820 # the compiler is broken, or we cross compile.
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3822 $as_echo_n "checking whether the C compiler works... " >&6; }
3823 # If not cross compiling, check that we can run a simple program.
3824 if test "$cross_compiling" != yes; then
3825 if { ac_try='./$ac_file'
3826 { { case "(($ac_try" in
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3829 esac
3830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3831 $as_echo "$ac_try_echo"; } >&5
3832 (eval "$ac_try") 2>&5
3833 ac_status=$?
3834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3835 test $ac_status = 0; }; }; then
3836 cross_compiling=no
3837 else
3838 if test "$cross_compiling" = maybe; then
3839 cross_compiling=yes
3840 else
3841 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3842 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3843 as_fn_error "cannot run C compiled programs.
3844 If you meant to cross compile, use \`--host'.
3845 See \`config.log' for more details." "$LINENO" 5; }
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3850 $as_echo "yes" >&6; }
3852 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3853 ac_clean_files=$ac_clean_files_save
3854 # Check that the compiler produces executables we can run. If not, either
3855 # the compiler is broken, or we cross compile.
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3857 $as_echo_n "checking whether we are cross compiling... " >&6; }
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3859 $as_echo "$cross_compiling" >&6; }
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3862 $as_echo_n "checking for suffix of executables... " >&6; }
3863 if { { ac_try="$ac_link"
3864 case "(($ac_try" in
3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3867 esac
3868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3869 $as_echo "$ac_try_echo"; } >&5
3870 (eval "$ac_link") 2>&5
3871 ac_status=$?
3872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3873 test $ac_status = 0; }; then :
3874 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3875 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3876 # work properly (i.e., refer to `conftest.exe'), while it won't with
3877 # `rm'.
3878 for ac_file in conftest.exe conftest conftest.*; do
3879 test -f "$ac_file" || continue
3880 case $ac_file in
3881 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3882 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3883 break;;
3884 * ) break;;
3885 esac
3886 done
3887 else
3888 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3890 as_fn_error "cannot compute suffix of executables: cannot compile and link
3891 See \`config.log' for more details." "$LINENO" 5; }
3893 rm -f conftest$ac_cv_exeext
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3895 $as_echo "$ac_cv_exeext" >&6; }
3897 rm -f conftest.$ac_ext
3898 EXEEXT=$ac_cv_exeext
3899 ac_exeext=$EXEEXT
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3902 $as_echo_n "checking for suffix of object files... " >&6; }
3903 if test "${ac_cv_objext+set}" = set; then :
3904 $as_echo_n "(cached) " >&6
3905 else
3906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3907 /* end confdefs.h. */
3910 main ()
3914 return 0;
3916 _ACEOF
3917 rm -f conftest.o conftest.obj
3918 if { { ac_try="$ac_compile"
3919 case "(($ac_try" in
3920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921 *) ac_try_echo=$ac_try;;
3922 esac
3923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3924 $as_echo "$ac_try_echo"; } >&5
3925 (eval "$ac_compile") 2>&5
3926 ac_status=$?
3927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3928 test $ac_status = 0; }; then :
3929 for ac_file in conftest.o conftest.obj conftest.*; do
3930 test -f "$ac_file" || continue;
3931 case $ac_file in
3932 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3933 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3934 break;;
3935 esac
3936 done
3937 else
3938 $as_echo "$as_me: failed program was:" >&5
3939 sed 's/^/| /' conftest.$ac_ext >&5
3941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3943 as_fn_error "cannot compute suffix of object files: cannot compile
3944 See \`config.log' for more details." "$LINENO" 5; }
3946 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3949 $as_echo "$ac_cv_objext" >&6; }
3950 OBJEXT=$ac_cv_objext
3951 ac_objext=$OBJEXT
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3953 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3954 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3955 $as_echo_n "(cached) " >&6
3956 else
3957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3958 /* end confdefs.h. */
3961 main ()
3963 #ifndef __GNUC__
3964 choke me
3965 #endif
3968 return 0;
3970 _ACEOF
3971 if ac_fn_c_try_compile "$LINENO"; then :
3972 ac_compiler_gnu=yes
3973 else
3974 ac_compiler_gnu=no
3976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3977 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3981 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3982 if test $ac_compiler_gnu = yes; then
3983 GCC=yes
3984 else
3985 GCC=
3987 ac_test_CFLAGS=${CFLAGS+set}
3988 ac_save_CFLAGS=$CFLAGS
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3990 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3991 if test "${ac_cv_prog_cc_g+set}" = set; then :
3992 $as_echo_n "(cached) " >&6
3993 else
3994 ac_save_c_werror_flag=$ac_c_werror_flag
3995 ac_c_werror_flag=yes
3996 ac_cv_prog_cc_g=no
3997 CFLAGS="-g"
3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h. */
4002 main ()
4006 return 0;
4008 _ACEOF
4009 if ac_fn_c_try_compile "$LINENO"; then :
4010 ac_cv_prog_cc_g=yes
4011 else
4012 CFLAGS=""
4013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014 /* end confdefs.h. */
4017 main ()
4021 return 0;
4023 _ACEOF
4024 if ac_fn_c_try_compile "$LINENO"; then :
4026 else
4027 ac_c_werror_flag=$ac_save_c_werror_flag
4028 CFLAGS="-g"
4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h. */
4033 main ()
4037 return 0;
4039 _ACEOF
4040 if ac_fn_c_try_compile "$LINENO"; then :
4041 ac_cv_prog_cc_g=yes
4043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4048 ac_c_werror_flag=$ac_save_c_werror_flag
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4051 $as_echo "$ac_cv_prog_cc_g" >&6; }
4052 if test "$ac_test_CFLAGS" = set; then
4053 CFLAGS=$ac_save_CFLAGS
4054 elif test $ac_cv_prog_cc_g = yes; then
4055 if test "$GCC" = yes; then
4056 CFLAGS="-g -O2"
4057 else
4058 CFLAGS="-g"
4060 else
4061 if test "$GCC" = yes; then
4062 CFLAGS="-O2"
4063 else
4064 CFLAGS=
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4068 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4069 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4070 $as_echo_n "(cached) " >&6
4071 else
4072 ac_cv_prog_cc_c89=no
4073 ac_save_CC=$CC
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4076 #include <stdarg.h>
4077 #include <stdio.h>
4078 #include <sys/types.h>
4079 #include <sys/stat.h>
4080 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4081 struct buf { int x; };
4082 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4083 static char *e (p, i)
4084 char **p;
4085 int i;
4087 return p[i];
4089 static char *f (char * (*g) (char **, int), char **p, ...)
4091 char *s;
4092 va_list v;
4093 va_start (v,p);
4094 s = g (p, va_arg (v,int));
4095 va_end (v);
4096 return s;
4099 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4100 function prototypes and stuff, but not '\xHH' hex character constants.
4101 These don't provoke an error unfortunately, instead are silently treated
4102 as 'x'. The following induces an error, until -std is added to get
4103 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4104 array size at least. It's necessary to write '\x00'==0 to get something
4105 that's true only with -std. */
4106 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4108 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4109 inside strings and character constants. */
4110 #define FOO(x) 'x'
4111 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4113 int test (int i, double x);
4114 struct s1 {int (*f) (int a);};
4115 struct s2 {int (*f) (double a);};
4116 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4117 int argc;
4118 char **argv;
4120 main ()
4122 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4124 return 0;
4126 _ACEOF
4127 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4128 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4130 CC="$ac_save_CC $ac_arg"
4131 if ac_fn_c_try_compile "$LINENO"; then :
4132 ac_cv_prog_cc_c89=$ac_arg
4134 rm -f core conftest.err conftest.$ac_objext
4135 test "x$ac_cv_prog_cc_c89" != "xno" && break
4136 done
4137 rm -f conftest.$ac_ext
4138 CC=$ac_save_CC
4141 # AC_CACHE_VAL
4142 case "x$ac_cv_prog_cc_c89" in
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4145 $as_echo "none needed" >&6; } ;;
4146 xno)
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4148 $as_echo "unsupported" >&6; } ;;
4150 CC="$CC $ac_cv_prog_cc_c89"
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4152 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4153 esac
4154 if test "x$ac_cv_prog_cc_c89" != xno; then :
4158 ac_ext=c
4159 ac_cpp='$CPP $CPPFLAGS'
4160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4164 ac_ext=cpp
4165 ac_cpp='$CXXCPP $CPPFLAGS'
4166 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4167 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4168 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4169 if test -z "$CXX"; then
4170 if test -n "$CCC"; then
4171 CXX=$CCC
4172 else
4173 if test -n "$ac_tool_prefix"; then
4174 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4176 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4177 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4179 $as_echo_n "checking for $ac_word... " >&6; }
4180 if test "${ac_cv_prog_CXX+set}" = set; then :
4181 $as_echo_n "(cached) " >&6
4182 else
4183 if test -n "$CXX"; then
4184 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4185 else
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 for as_dir in $PATH
4189 IFS=$as_save_IFS
4190 test -z "$as_dir" && as_dir=.
4191 for ac_exec_ext in '' $ac_executable_extensions; do
4192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4193 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4195 break 2
4197 done
4198 done
4199 IFS=$as_save_IFS
4203 CXX=$ac_cv_prog_CXX
4204 if test -n "$CXX"; then
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4206 $as_echo "$CXX" >&6; }
4207 else
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4209 $as_echo "no" >&6; }
4213 test -n "$CXX" && break
4214 done
4216 if test -z "$CXX"; then
4217 ac_ct_CXX=$CXX
4218 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4220 # Extract the first word of "$ac_prog", so it can be a program name with args.
4221 set dummy $ac_prog; ac_word=$2
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4223 $as_echo_n "checking for $ac_word... " >&6; }
4224 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4225 $as_echo_n "(cached) " >&6
4226 else
4227 if test -n "$ac_ct_CXX"; then
4228 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4229 else
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231 for as_dir in $PATH
4233 IFS=$as_save_IFS
4234 test -z "$as_dir" && as_dir=.
4235 for ac_exec_ext in '' $ac_executable_extensions; do
4236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4237 ac_cv_prog_ac_ct_CXX="$ac_prog"
4238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4239 break 2
4241 done
4242 done
4243 IFS=$as_save_IFS
4247 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4248 if test -n "$ac_ct_CXX"; then
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4250 $as_echo "$ac_ct_CXX" >&6; }
4251 else
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253 $as_echo "no" >&6; }
4257 test -n "$ac_ct_CXX" && break
4258 done
4260 if test "x$ac_ct_CXX" = x; then
4261 CXX="g++"
4262 else
4263 case $cross_compiling:$ac_tool_warned in
4264 yes:)
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4267 ac_tool_warned=yes ;;
4268 esac
4269 CXX=$ac_ct_CXX
4275 # Provide some information about the compiler.
4276 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4277 set X $ac_compile
4278 ac_compiler=$2
4279 for ac_option in --version -v -V -qversion; do
4280 { { ac_try="$ac_compiler $ac_option >&5"
4281 case "(($ac_try" in
4282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4284 esac
4285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4286 $as_echo "$ac_try_echo"; } >&5
4287 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4288 ac_status=$?
4289 if test -s conftest.err; then
4290 sed '10a\
4291 ... rest of stderr output deleted ...
4292 10q' conftest.err >conftest.er1
4293 cat conftest.er1 >&5
4294 rm -f conftest.er1 conftest.err
4296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4297 test $ac_status = 0; }
4298 done
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4301 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4302 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4303 $as_echo_n "(cached) " >&6
4304 else
4305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306 /* end confdefs.h. */
4309 main ()
4311 #ifndef __GNUC__
4312 choke me
4313 #endif
4316 return 0;
4318 _ACEOF
4319 if ac_fn_cxx_try_compile "$LINENO"; then :
4320 ac_compiler_gnu=yes
4321 else
4322 ac_compiler_gnu=no
4324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4325 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4329 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4330 if test $ac_compiler_gnu = yes; then
4331 GXX=yes
4332 else
4333 GXX=
4335 ac_test_CXXFLAGS=${CXXFLAGS+set}
4336 ac_save_CXXFLAGS=$CXXFLAGS
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4338 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4339 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4340 $as_echo_n "(cached) " >&6
4341 else
4342 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4343 ac_cxx_werror_flag=yes
4344 ac_cv_prog_cxx_g=no
4345 CXXFLAGS="-g"
4346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4347 /* end confdefs.h. */
4350 main ()
4354 return 0;
4356 _ACEOF
4357 if ac_fn_cxx_try_compile "$LINENO"; then :
4358 ac_cv_prog_cxx_g=yes
4359 else
4360 CXXFLAGS=""
4361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362 /* end confdefs.h. */
4365 main ()
4369 return 0;
4371 _ACEOF
4372 if ac_fn_cxx_try_compile "$LINENO"; then :
4374 else
4375 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4376 CXXFLAGS="-g"
4377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4378 /* end confdefs.h. */
4381 main ()
4385 return 0;
4387 _ACEOF
4388 if ac_fn_cxx_try_compile "$LINENO"; then :
4389 ac_cv_prog_cxx_g=yes
4391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4399 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4400 if test "$ac_test_CXXFLAGS" = set; then
4401 CXXFLAGS=$ac_save_CXXFLAGS
4402 elif test $ac_cv_prog_cxx_g = yes; then
4403 if test "$GXX" = yes; then
4404 CXXFLAGS="-g -O2"
4405 else
4406 CXXFLAGS="-g"
4408 else
4409 if test "$GXX" = yes; then
4410 CXXFLAGS="-O2"
4411 else
4412 CXXFLAGS=
4415 ac_ext=c
4416 ac_cpp='$CPP $CPPFLAGS'
4417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4421 CXXFLAGS="$save_CXXFLAGS"
4423 am__api_version='1.11'
4425 # Find a good install program. We prefer a C program (faster),
4426 # so one script is as good as another. But avoid the broken or
4427 # incompatible versions:
4428 # SysV /etc/install, /usr/sbin/install
4429 # SunOS /usr/etc/install
4430 # IRIX /sbin/install
4431 # AIX /bin/install
4432 # AmigaOS /C/install, which installs bootblocks on floppy discs
4433 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4434 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4435 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4436 # OS/2's system install, which has a completely different semantic
4437 # ./install, which can be erroneously created by make from ./install.sh.
4438 # Reject install programs that cannot install multiple files.
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4440 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4441 if test -z "$INSTALL"; then
4442 if test "${ac_cv_path_install+set}" = set; then :
4443 $as_echo_n "(cached) " >&6
4444 else
4445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446 for as_dir in $PATH
4448 IFS=$as_save_IFS
4449 test -z "$as_dir" && as_dir=.
4450 # Account for people who put trailing slashes in PATH elements.
4451 case $as_dir/ in #((
4452 ./ | .// | /[cC]/* | \
4453 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4454 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4455 /usr/ucb/* ) ;;
4457 # OSF1 and SCO ODT 3.0 have their own names for install.
4458 # Don't use installbsd from OSF since it installs stuff as root
4459 # by default.
4460 for ac_prog in ginstall scoinst install; do
4461 for ac_exec_ext in '' $ac_executable_extensions; do
4462 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4463 if test $ac_prog = install &&
4464 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4465 # AIX install. It has an incompatible calling convention.
4467 elif test $ac_prog = install &&
4468 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4469 # program-specific install script used by HP pwplus--don't use.
4471 else
4472 rm -rf conftest.one conftest.two conftest.dir
4473 echo one > conftest.one
4474 echo two > conftest.two
4475 mkdir conftest.dir
4476 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4477 test -s conftest.one && test -s conftest.two &&
4478 test -s conftest.dir/conftest.one &&
4479 test -s conftest.dir/conftest.two
4480 then
4481 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4482 break 3
4486 done
4487 done
4489 esac
4491 done
4492 IFS=$as_save_IFS
4494 rm -rf conftest.one conftest.two conftest.dir
4497 if test "${ac_cv_path_install+set}" = set; then
4498 INSTALL=$ac_cv_path_install
4499 else
4500 # As a last resort, use the slow shell script. Don't cache a
4501 # value for INSTALL within a source directory, because that will
4502 # break other packages using the cache if that directory is
4503 # removed, or if the value is a relative name.
4504 INSTALL=$ac_install_sh
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4508 $as_echo "$INSTALL" >&6; }
4510 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4511 # It thinks the first close brace ends the variable substitution.
4512 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4514 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4516 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4519 $as_echo_n "checking whether build environment is sane... " >&6; }
4520 # Just in case
4521 sleep 1
4522 echo timestamp > conftest.file
4523 # Reject unsafe characters in $srcdir or the absolute working directory
4524 # name. Accept space and tab only in the latter.
4525 am_lf='
4527 case `pwd` in
4528 *[\\\"\#\$\&\'\`$am_lf]*)
4529 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4530 esac
4531 case $srcdir in
4532 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4533 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4534 esac
4536 # Do `set' in a subshell so we don't clobber the current shell's
4537 # arguments. Must try -L first in case configure is actually a
4538 # symlink; some systems play weird games with the mod time of symlinks
4539 # (eg FreeBSD returns the mod time of the symlink's containing
4540 # directory).
4541 if (
4542 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4543 if test "$*" = "X"; then
4544 # -L didn't work.
4545 set X `ls -t "$srcdir/configure" conftest.file`
4547 rm -f conftest.file
4548 if test "$*" != "X $srcdir/configure conftest.file" \
4549 && test "$*" != "X conftest.file $srcdir/configure"; then
4551 # If neither matched, then we have a broken ls. This can happen
4552 # if, for instance, CONFIG_SHELL is bash and it inherits a
4553 # broken ls alias from the environment. This has actually
4554 # happened. Such a system could not be considered "sane".
4555 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4556 alias in your environment" "$LINENO" 5
4559 test "$2" = conftest.file
4561 then
4562 # Ok.
4564 else
4565 as_fn_error "newly created file is older than distributed files!
4566 Check your system clock" "$LINENO" 5
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4569 $as_echo "yes" >&6; }
4570 test "$program_prefix" != NONE &&
4571 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4572 # Use a double $ so make ignores it.
4573 test "$program_suffix" != NONE &&
4574 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4575 # Double any \ or $.
4576 # By default was `s,x,x', remove it if useless.
4577 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4578 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4580 # expand $ac_aux_dir to an absolute path
4581 am_aux_dir=`cd $ac_aux_dir && pwd`
4583 if test x"${MISSING+set}" != xset; then
4584 case $am_aux_dir in
4585 *\ * | *\ *)
4586 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4588 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4589 esac
4591 # Use eval to expand $SHELL
4592 if eval "$MISSING --run true"; then
4593 am_missing_run="$MISSING --run "
4594 else
4595 am_missing_run=
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4597 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4600 if test x"${install_sh}" != xset; then
4601 case $am_aux_dir in
4602 *\ * | *\ *)
4603 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4605 install_sh="\${SHELL} $am_aux_dir/install-sh"
4606 esac
4609 # Installed binaries are usually stripped using `strip' when the user
4610 # run `make install-strip'. However `strip' might not be the right
4611 # tool to use in cross-compilation environments, therefore Automake
4612 # will honor the `STRIP' environment variable to overrule this program.
4613 if test "$cross_compiling" != no; then
4614 if test -n "$ac_tool_prefix"; then
4615 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4616 set dummy ${ac_tool_prefix}strip; ac_word=$2
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4618 $as_echo_n "checking for $ac_word... " >&6; }
4619 if test "${ac_cv_prog_STRIP+set}" = set; then :
4620 $as_echo_n "(cached) " >&6
4621 else
4622 if test -n "$STRIP"; then
4623 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4624 else
4625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626 for as_dir in $PATH
4628 IFS=$as_save_IFS
4629 test -z "$as_dir" && as_dir=.
4630 for ac_exec_ext in '' $ac_executable_extensions; do
4631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4632 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4634 break 2
4636 done
4637 done
4638 IFS=$as_save_IFS
4642 STRIP=$ac_cv_prog_STRIP
4643 if test -n "$STRIP"; then
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4645 $as_echo "$STRIP" >&6; }
4646 else
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4648 $as_echo "no" >&6; }
4653 if test -z "$ac_cv_prog_STRIP"; then
4654 ac_ct_STRIP=$STRIP
4655 # Extract the first word of "strip", so it can be a program name with args.
4656 set dummy strip; ac_word=$2
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4658 $as_echo_n "checking for $ac_word... " >&6; }
4659 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4660 $as_echo_n "(cached) " >&6
4661 else
4662 if test -n "$ac_ct_STRIP"; then
4663 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4664 else
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666 for as_dir in $PATH
4668 IFS=$as_save_IFS
4669 test -z "$as_dir" && as_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4672 ac_cv_prog_ac_ct_STRIP="strip"
4673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 break 2
4676 done
4677 done
4678 IFS=$as_save_IFS
4682 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4683 if test -n "$ac_ct_STRIP"; then
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4685 $as_echo "$ac_ct_STRIP" >&6; }
4686 else
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4688 $as_echo "no" >&6; }
4691 if test "x$ac_ct_STRIP" = x; then
4692 STRIP=":"
4693 else
4694 case $cross_compiling:$ac_tool_warned in
4695 yes:)
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4698 ac_tool_warned=yes ;;
4699 esac
4700 STRIP=$ac_ct_STRIP
4702 else
4703 STRIP="$ac_cv_prog_STRIP"
4707 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4710 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4711 if test -z "$MKDIR_P"; then
4712 if test "${ac_cv_path_mkdir+set}" = set; then :
4713 $as_echo_n "(cached) " >&6
4714 else
4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4718 IFS=$as_save_IFS
4719 test -z "$as_dir" && as_dir=.
4720 for ac_prog in mkdir gmkdir; do
4721 for ac_exec_ext in '' $ac_executable_extensions; do
4722 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4723 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4724 'mkdir (GNU coreutils) '* | \
4725 'mkdir (coreutils) '* | \
4726 'mkdir (fileutils) '4.1*)
4727 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4728 break 3;;
4729 esac
4730 done
4731 done
4732 done
4733 IFS=$as_save_IFS
4737 if test "${ac_cv_path_mkdir+set}" = set; then
4738 MKDIR_P="$ac_cv_path_mkdir -p"
4739 else
4740 # As a last resort, use the slow shell script. Don't cache a
4741 # value for MKDIR_P within a source directory, because that will
4742 # break other packages using the cache if that directory is
4743 # removed, or if the value is a relative name.
4744 test -d ./--version && rmdir ./--version
4745 MKDIR_P="$ac_install_sh -d"
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4749 $as_echo "$MKDIR_P" >&6; }
4751 mkdir_p="$MKDIR_P"
4752 case $mkdir_p in
4753 [\\/$]* | ?:[\\/]*) ;;
4754 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4755 esac
4757 for ac_prog in gawk mawk nawk awk
4759 # Extract the first word of "$ac_prog", so it can be a program name with args.
4760 set dummy $ac_prog; ac_word=$2
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4762 $as_echo_n "checking for $ac_word... " >&6; }
4763 if test "${ac_cv_prog_AWK+set}" = set; then :
4764 $as_echo_n "(cached) " >&6
4765 else
4766 if test -n "$AWK"; then
4767 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4768 else
4769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770 for as_dir in $PATH
4772 IFS=$as_save_IFS
4773 test -z "$as_dir" && as_dir=.
4774 for ac_exec_ext in '' $ac_executable_extensions; do
4775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4776 ac_cv_prog_AWK="$ac_prog"
4777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4778 break 2
4780 done
4781 done
4782 IFS=$as_save_IFS
4786 AWK=$ac_cv_prog_AWK
4787 if test -n "$AWK"; then
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4789 $as_echo "$AWK" >&6; }
4790 else
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4792 $as_echo "no" >&6; }
4796 test -n "$AWK" && break
4797 done
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4800 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4801 set x ${MAKE-make}
4802 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4803 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4804 $as_echo_n "(cached) " >&6
4805 else
4806 cat >conftest.make <<\_ACEOF
4807 SHELL = /bin/sh
4808 all:
4809 @echo '@@@%%%=$(MAKE)=@@@%%%'
4810 _ACEOF
4811 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4812 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4813 *@@@%%%=?*=@@@%%%*)
4814 eval ac_cv_prog_make_${ac_make}_set=yes;;
4816 eval ac_cv_prog_make_${ac_make}_set=no;;
4817 esac
4818 rm -f conftest.make
4820 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4822 $as_echo "yes" >&6; }
4823 SET_MAKE=
4824 else
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4826 $as_echo "no" >&6; }
4827 SET_MAKE="MAKE=${MAKE-make}"
4830 rm -rf .tst 2>/dev/null
4831 mkdir .tst 2>/dev/null
4832 if test -d .tst; then
4833 am__leading_dot=.
4834 else
4835 am__leading_dot=_
4837 rmdir .tst 2>/dev/null
4839 DEPDIR="${am__leading_dot}deps"
4841 ac_config_commands="$ac_config_commands depfiles"
4844 am_make=${MAKE-make}
4845 cat > confinc << 'END'
4846 am__doit:
4847 @echo this is the am__doit target
4848 .PHONY: am__doit
4850 # If we don't find an include directive, just comment out the code.
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4852 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4853 am__include="#"
4854 am__quote=
4855 _am_result=none
4856 # First try GNU make style include.
4857 echo "include confinc" > confmf
4858 # Ignore all kinds of additional output from `make'.
4859 case `$am_make -s -f confmf 2> /dev/null` in #(
4860 *the\ am__doit\ target*)
4861 am__include=include
4862 am__quote=
4863 _am_result=GNU
4865 esac
4866 # Now try BSD make style include.
4867 if test "$am__include" = "#"; then
4868 echo '.include "confinc"' > confmf
4869 case `$am_make -s -f confmf 2> /dev/null` in #(
4870 *the\ am__doit\ target*)
4871 am__include=.include
4872 am__quote="\""
4873 _am_result=BSD
4875 esac
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4880 $as_echo "$_am_result" >&6; }
4881 rm -f confinc confmf
4883 # Check whether --enable-dependency-tracking was given.
4884 if test "${enable_dependency_tracking+set}" = set; then :
4885 enableval=$enable_dependency_tracking;
4888 if test "x$enable_dependency_tracking" != xno; then
4889 am_depcomp="$ac_aux_dir/depcomp"
4890 AMDEPBACKSLASH='\'
4892 if test "x$enable_dependency_tracking" != xno; then
4893 AMDEP_TRUE=
4894 AMDEP_FALSE='#'
4895 else
4896 AMDEP_TRUE='#'
4897 AMDEP_FALSE=
4901 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4902 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4903 # is not polluted with repeated "-I."
4904 am__isrc=' -I$(srcdir)'
4905 # test to see if srcdir already configured
4906 if test -f $srcdir/config.status; then
4907 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4911 # test whether we have cygpath
4912 if test -z "$CYGPATH_W"; then
4913 if (cygpath --version) >/dev/null 2>/dev/null; then
4914 CYGPATH_W='cygpath -w'
4915 else
4916 CYGPATH_W=echo
4921 # Define the identity of the package.
4922 PACKAGE='libjava'
4923 VERSION='version-unused'
4926 cat >>confdefs.h <<_ACEOF
4927 #define PACKAGE "$PACKAGE"
4928 _ACEOF
4931 cat >>confdefs.h <<_ACEOF
4932 #define VERSION "$VERSION"
4933 _ACEOF
4935 # Some tools Automake needs.
4937 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4940 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4943 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4946 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4949 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4951 # We need awk for the "check" target. The system "awk" is bad on
4952 # some platforms.
4953 # Always define AMTAR for backward compatibility.
4955 AMTAR=${AMTAR-"${am_missing_run}tar"}
4957 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4962 depcc="$CC" am_compiler_list=
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4965 $as_echo_n "checking dependency style of $depcc... " >&6; }
4966 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4967 $as_echo_n "(cached) " >&6
4968 else
4969 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4970 # We make a subdir and do the tests there. Otherwise we can end up
4971 # making bogus files that we don't know about and never remove. For
4972 # instance it was reported that on HP-UX the gcc test will end up
4973 # making a dummy file named `D' -- because `-MD' means `put the output
4974 # in D'.
4975 mkdir conftest.dir
4976 # Copy depcomp to subdir because otherwise we won't find it if we're
4977 # using a relative directory.
4978 cp "$am_depcomp" conftest.dir
4979 cd conftest.dir
4980 # We will build objects and dependencies in a subdirectory because
4981 # it helps to detect inapplicable dependency modes. For instance
4982 # both Tru64's cc and ICC support -MD to output dependencies as a
4983 # side effect of compilation, but ICC will put the dependencies in
4984 # the current directory while Tru64 will put them in the object
4985 # directory.
4986 mkdir sub
4988 am_cv_CC_dependencies_compiler_type=none
4989 if test "$am_compiler_list" = ""; then
4990 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4992 am__universal=false
4993 case " $depcc " in #(
4994 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4995 esac
4997 for depmode in $am_compiler_list; do
4998 # Setup a source with many dependencies, because some compilers
4999 # like to wrap large dependency lists on column 80 (with \), and
5000 # we should not choose a depcomp mode which is confused by this.
5002 # We need to recreate these files for each test, as the compiler may
5003 # overwrite some of them when testing with obscure command lines.
5004 # This happens at least with the AIX C compiler.
5005 : > sub/conftest.c
5006 for i in 1 2 3 4 5 6; do
5007 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5008 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5009 # Solaris 8's {/usr,}/bin/sh.
5010 touch sub/conftst$i.h
5011 done
5012 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5014 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5015 # mode. It turns out that the SunPro C++ compiler does not properly
5016 # handle `-M -o', and we need to detect this. Also, some Intel
5017 # versions had trouble with output in subdirs
5018 am__obj=sub/conftest.${OBJEXT-o}
5019 am__minus_obj="-o $am__obj"
5020 case $depmode in
5021 gcc)
5022 # This depmode causes a compiler race in universal mode.
5023 test "$am__universal" = false || continue
5025 nosideeffect)
5026 # after this tag, mechanisms are not by side-effect, so they'll
5027 # only be used when explicitly requested
5028 if test "x$enable_dependency_tracking" = xyes; then
5029 continue
5030 else
5031 break
5034 msvisualcpp | msvcmsys)
5035 # This compiler won't grok `-c -o', but also, the minuso test has
5036 # not run yet. These depmodes are late enough in the game, and
5037 # so weak that their functioning should not be impacted.
5038 am__obj=conftest.${OBJEXT-o}
5039 am__minus_obj=
5041 none) break ;;
5042 esac
5043 if depmode=$depmode \
5044 source=sub/conftest.c object=$am__obj \
5045 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5046 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5047 >/dev/null 2>conftest.err &&
5048 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5049 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5050 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5051 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5052 # icc doesn't choke on unknown options, it will just issue warnings
5053 # or remarks (even with -Werror). So we grep stderr for any message
5054 # that says an option was ignored or not supported.
5055 # When given -MP, icc 7.0 and 7.1 complain thusly:
5056 # icc: Command line warning: ignoring option '-M'; no argument required
5057 # The diagnosis changed in icc 8.0:
5058 # icc: Command line remark: option '-MP' not supported
5059 if (grep 'ignoring option' conftest.err ||
5060 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5061 am_cv_CC_dependencies_compiler_type=$depmode
5062 break
5065 done
5067 cd ..
5068 rm -rf conftest.dir
5069 else
5070 am_cv_CC_dependencies_compiler_type=none
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5075 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5076 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5079 test "x$enable_dependency_tracking" != xno \
5080 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5081 am__fastdepCC_TRUE=
5082 am__fastdepCC_FALSE='#'
5083 else
5084 am__fastdepCC_TRUE='#'
5085 am__fastdepCC_FALSE=
5089 depcc="$CXX" am_compiler_list=
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5092 $as_echo_n "checking dependency style of $depcc... " >&6; }
5093 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5094 $as_echo_n "(cached) " >&6
5095 else
5096 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5097 # We make a subdir and do the tests there. Otherwise we can end up
5098 # making bogus files that we don't know about and never remove. For
5099 # instance it was reported that on HP-UX the gcc test will end up
5100 # making a dummy file named `D' -- because `-MD' means `put the output
5101 # in D'.
5102 mkdir conftest.dir
5103 # Copy depcomp to subdir because otherwise we won't find it if we're
5104 # using a relative directory.
5105 cp "$am_depcomp" conftest.dir
5106 cd conftest.dir
5107 # We will build objects and dependencies in a subdirectory because
5108 # it helps to detect inapplicable dependency modes. For instance
5109 # both Tru64's cc and ICC support -MD to output dependencies as a
5110 # side effect of compilation, but ICC will put the dependencies in
5111 # the current directory while Tru64 will put them in the object
5112 # directory.
5113 mkdir sub
5115 am_cv_CXX_dependencies_compiler_type=none
5116 if test "$am_compiler_list" = ""; then
5117 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5119 am__universal=false
5120 case " $depcc " in #(
5121 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5122 esac
5124 for depmode in $am_compiler_list; do
5125 # Setup a source with many dependencies, because some compilers
5126 # like to wrap large dependency lists on column 80 (with \), and
5127 # we should not choose a depcomp mode which is confused by this.
5129 # We need to recreate these files for each test, as the compiler may
5130 # overwrite some of them when testing with obscure command lines.
5131 # This happens at least with the AIX C compiler.
5132 : > sub/conftest.c
5133 for i in 1 2 3 4 5 6; do
5134 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5135 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5136 # Solaris 8's {/usr,}/bin/sh.
5137 touch sub/conftst$i.h
5138 done
5139 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5141 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5142 # mode. It turns out that the SunPro C++ compiler does not properly
5143 # handle `-M -o', and we need to detect this. Also, some Intel
5144 # versions had trouble with output in subdirs
5145 am__obj=sub/conftest.${OBJEXT-o}
5146 am__minus_obj="-o $am__obj"
5147 case $depmode in
5148 gcc)
5149 # This depmode causes a compiler race in universal mode.
5150 test "$am__universal" = false || continue
5152 nosideeffect)
5153 # after this tag, mechanisms are not by side-effect, so they'll
5154 # only be used when explicitly requested
5155 if test "x$enable_dependency_tracking" = xyes; then
5156 continue
5157 else
5158 break
5161 msvisualcpp | msvcmsys)
5162 # This compiler won't grok `-c -o', but also, the minuso test has
5163 # not run yet. These depmodes are late enough in the game, and
5164 # so weak that their functioning should not be impacted.
5165 am__obj=conftest.${OBJEXT-o}
5166 am__minus_obj=
5168 none) break ;;
5169 esac
5170 if depmode=$depmode \
5171 source=sub/conftest.c object=$am__obj \
5172 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5173 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5174 >/dev/null 2>conftest.err &&
5175 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5176 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5177 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5178 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5179 # icc doesn't choke on unknown options, it will just issue warnings
5180 # or remarks (even with -Werror). So we grep stderr for any message
5181 # that says an option was ignored or not supported.
5182 # When given -MP, icc 7.0 and 7.1 complain thusly:
5183 # icc: Command line warning: ignoring option '-M'; no argument required
5184 # The diagnosis changed in icc 8.0:
5185 # icc: Command line remark: option '-MP' not supported
5186 if (grep 'ignoring option' conftest.err ||
5187 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5188 am_cv_CXX_dependencies_compiler_type=$depmode
5189 break
5192 done
5194 cd ..
5195 rm -rf conftest.dir
5196 else
5197 am_cv_CXX_dependencies_compiler_type=none
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5202 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5203 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5206 test "x$enable_dependency_tracking" != xno \
5207 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5208 am__fastdepCXX_TRUE=
5209 am__fastdepCXX_FALSE='#'
5210 else
5211 am__fastdepCXX_TRUE='#'
5212 am__fastdepCXX_FALSE=
5218 if test -n "$ac_tool_prefix"; then
5219 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5220 set dummy ${ac_tool_prefix}as; ac_word=$2
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5222 $as_echo_n "checking for $ac_word... " >&6; }
5223 if test "${ac_cv_prog_AS+set}" = set; then :
5224 $as_echo_n "(cached) " >&6
5225 else
5226 if test -n "$AS"; then
5227 ac_cv_prog_AS="$AS" # Let the user override the test.
5228 else
5229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5230 for as_dir in $PATH
5232 IFS=$as_save_IFS
5233 test -z "$as_dir" && as_dir=.
5234 for ac_exec_ext in '' $ac_executable_extensions; do
5235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5236 ac_cv_prog_AS="${ac_tool_prefix}as"
5237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5238 break 2
5240 done
5241 done
5242 IFS=$as_save_IFS
5246 AS=$ac_cv_prog_AS
5247 if test -n "$AS"; then
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5249 $as_echo "$AS" >&6; }
5250 else
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252 $as_echo "no" >&6; }
5257 if test -z "$ac_cv_prog_AS"; then
5258 ac_ct_AS=$AS
5259 # Extract the first word of "as", so it can be a program name with args.
5260 set dummy as; ac_word=$2
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5262 $as_echo_n "checking for $ac_word... " >&6; }
5263 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5264 $as_echo_n "(cached) " >&6
5265 else
5266 if test -n "$ac_ct_AS"; then
5267 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5268 else
5269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270 for as_dir in $PATH
5272 IFS=$as_save_IFS
5273 test -z "$as_dir" && as_dir=.
5274 for ac_exec_ext in '' $ac_executable_extensions; do
5275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5276 ac_cv_prog_ac_ct_AS="as"
5277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5278 break 2
5280 done
5281 done
5282 IFS=$as_save_IFS
5286 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5287 if test -n "$ac_ct_AS"; then
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5289 $as_echo "$ac_ct_AS" >&6; }
5290 else
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5292 $as_echo "no" >&6; }
5295 if test "x$ac_ct_AS" = x; then
5296 AS=""
5297 else
5298 case $cross_compiling:$ac_tool_warned in
5299 yes:)
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5302 ac_tool_warned=yes ;;
5303 esac
5304 AS=$ac_ct_AS
5306 else
5307 AS="$ac_cv_prog_AS"
5310 if test -n "$ac_tool_prefix"; then
5311 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5312 set dummy ${ac_tool_prefix}ld; ac_word=$2
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5314 $as_echo_n "checking for $ac_word... " >&6; }
5315 if test "${ac_cv_prog_LD+set}" = set; then :
5316 $as_echo_n "(cached) " >&6
5317 else
5318 if test -n "$LD"; then
5319 ac_cv_prog_LD="$LD" # Let the user override the test.
5320 else
5321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322 for as_dir in $PATH
5324 IFS=$as_save_IFS
5325 test -z "$as_dir" && as_dir=.
5326 for ac_exec_ext in '' $ac_executable_extensions; do
5327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5328 ac_cv_prog_LD="${ac_tool_prefix}ld"
5329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5330 break 2
5332 done
5333 done
5334 IFS=$as_save_IFS
5338 LD=$ac_cv_prog_LD
5339 if test -n "$LD"; then
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5341 $as_echo "$LD" >&6; }
5342 else
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5344 $as_echo "no" >&6; }
5349 if test -z "$ac_cv_prog_LD"; then
5350 ac_ct_LD=$LD
5351 # Extract the first word of "ld", so it can be a program name with args.
5352 set dummy ld; ac_word=$2
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5354 $as_echo_n "checking for $ac_word... " >&6; }
5355 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
5356 $as_echo_n "(cached) " >&6
5357 else
5358 if test -n "$ac_ct_LD"; then
5359 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5360 else
5361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362 for as_dir in $PATH
5364 IFS=$as_save_IFS
5365 test -z "$as_dir" && as_dir=.
5366 for ac_exec_ext in '' $ac_executable_extensions; do
5367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5368 ac_cv_prog_ac_ct_LD="ld"
5369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5370 break 2
5372 done
5373 done
5374 IFS=$as_save_IFS
5378 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5379 if test -n "$ac_ct_LD"; then
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
5381 $as_echo "$ac_ct_LD" >&6; }
5382 else
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384 $as_echo "no" >&6; }
5387 if test "x$ac_ct_LD" = x; then
5388 LD=""
5389 else
5390 case $cross_compiling:$ac_tool_warned in
5391 yes:)
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5394 ac_tool_warned=yes ;;
5395 esac
5396 LD=$ac_ct_LD
5398 else
5399 LD="$ac_cv_prog_LD"
5402 if test -n "$ac_tool_prefix"; then
5403 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5404 set dummy ${ac_tool_prefix}ar; ac_word=$2
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5406 $as_echo_n "checking for $ac_word... " >&6; }
5407 if test "${ac_cv_prog_AR+set}" = set; then :
5408 $as_echo_n "(cached) " >&6
5409 else
5410 if test -n "$AR"; then
5411 ac_cv_prog_AR="$AR" # Let the user override the test.
5412 else
5413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414 for as_dir in $PATH
5416 IFS=$as_save_IFS
5417 test -z "$as_dir" && as_dir=.
5418 for ac_exec_ext in '' $ac_executable_extensions; do
5419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5420 ac_cv_prog_AR="${ac_tool_prefix}ar"
5421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5422 break 2
5424 done
5425 done
5426 IFS=$as_save_IFS
5430 AR=$ac_cv_prog_AR
5431 if test -n "$AR"; then
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5433 $as_echo "$AR" >&6; }
5434 else
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5436 $as_echo "no" >&6; }
5441 if test -z "$ac_cv_prog_AR"; then
5442 ac_ct_AR=$AR
5443 # Extract the first word of "ar", so it can be a program name with args.
5444 set dummy ar; ac_word=$2
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5446 $as_echo_n "checking for $ac_word... " >&6; }
5447 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5448 $as_echo_n "(cached) " >&6
5449 else
5450 if test -n "$ac_ct_AR"; then
5451 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5452 else
5453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5454 for as_dir in $PATH
5456 IFS=$as_save_IFS
5457 test -z "$as_dir" && as_dir=.
5458 for ac_exec_ext in '' $ac_executable_extensions; do
5459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5460 ac_cv_prog_ac_ct_AR="ar"
5461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5462 break 2
5464 done
5465 done
5466 IFS=$as_save_IFS
5470 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5471 if test -n "$ac_ct_AR"; then
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5473 $as_echo "$ac_ct_AR" >&6; }
5474 else
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5476 $as_echo "no" >&6; }
5479 if test "x$ac_ct_AR" = x; then
5480 AR=""
5481 else
5482 case $cross_compiling:$ac_tool_warned in
5483 yes:)
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5486 ac_tool_warned=yes ;;
5487 esac
5488 AR=$ac_ct_AR
5490 else
5491 AR="$ac_cv_prog_AR"
5494 if test -n "$ac_tool_prefix"; then
5495 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5496 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5498 $as_echo_n "checking for $ac_word... " >&6; }
5499 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5500 $as_echo_n "(cached) " >&6
5501 else
5502 if test -n "$RANLIB"; then
5503 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5504 else
5505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 for as_dir in $PATH
5508 IFS=$as_save_IFS
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5512 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5514 break 2
5516 done
5517 done
5518 IFS=$as_save_IFS
5522 RANLIB=$ac_cv_prog_RANLIB
5523 if test -n "$RANLIB"; then
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5525 $as_echo "$RANLIB" >&6; }
5526 else
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528 $as_echo "no" >&6; }
5533 if test -z "$ac_cv_prog_RANLIB"; then
5534 ac_ct_RANLIB=$RANLIB
5535 # Extract the first word of "ranlib", so it can be a program name with args.
5536 set dummy ranlib; ac_word=$2
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5538 $as_echo_n "checking for $ac_word... " >&6; }
5539 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5540 $as_echo_n "(cached) " >&6
5541 else
5542 if test -n "$ac_ct_RANLIB"; then
5543 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5544 else
5545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546 for as_dir in $PATH
5548 IFS=$as_save_IFS
5549 test -z "$as_dir" && as_dir=.
5550 for ac_exec_ext in '' $ac_executable_extensions; do
5551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5552 ac_cv_prog_ac_ct_RANLIB="ranlib"
5553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5554 break 2
5556 done
5557 done
5558 IFS=$as_save_IFS
5562 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5563 if test -n "$ac_ct_RANLIB"; then
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5565 $as_echo "$ac_ct_RANLIB" >&6; }
5566 else
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5568 $as_echo "no" >&6; }
5571 if test "x$ac_ct_RANLIB" = x; then
5572 RANLIB=":"
5573 else
5574 case $cross_compiling:$ac_tool_warned in
5575 yes:)
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5578 ac_tool_warned=yes ;;
5579 esac
5580 RANLIB=$ac_ct_RANLIB
5582 else
5583 RANLIB="$ac_cv_prog_RANLIB"
5586 if test -n "$ac_tool_prefix"; then
5587 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5588 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5590 $as_echo_n "checking for $ac_word... " >&6; }
5591 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5592 $as_echo_n "(cached) " >&6
5593 else
5594 if test -n "$DLLTOOL"; then
5595 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5596 else
5597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5598 for as_dir in $PATH
5600 IFS=$as_save_IFS
5601 test -z "$as_dir" && as_dir=.
5602 for ac_exec_ext in '' $ac_executable_extensions; do
5603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5604 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5606 break 2
5608 done
5609 done
5610 IFS=$as_save_IFS
5614 DLLTOOL=$ac_cv_prog_DLLTOOL
5615 if test -n "$DLLTOOL"; then
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5617 $as_echo "$DLLTOOL" >&6; }
5618 else
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5620 $as_echo "no" >&6; }
5625 if test -z "$ac_cv_prog_DLLTOOL"; then
5626 ac_ct_DLLTOOL=$DLLTOOL
5627 # Extract the first word of "dlltool", so it can be a program name with args.
5628 set dummy dlltool; ac_word=$2
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5630 $as_echo_n "checking for $ac_word... " >&6; }
5631 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5632 $as_echo_n "(cached) " >&6
5633 else
5634 if test -n "$ac_ct_DLLTOOL"; then
5635 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5636 else
5637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638 for as_dir in $PATH
5640 IFS=$as_save_IFS
5641 test -z "$as_dir" && as_dir=.
5642 for ac_exec_ext in '' $ac_executable_extensions; do
5643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5644 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5646 break 2
5648 done
5649 done
5650 IFS=$as_save_IFS
5654 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5655 if test -n "$ac_ct_DLLTOOL"; then
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5657 $as_echo "$ac_ct_DLLTOOL" >&6; }
5658 else
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5660 $as_echo "no" >&6; }
5663 if test "x$ac_ct_DLLTOOL" = x; then
5664 DLLTOOL=":"
5665 else
5666 case $cross_compiling:$ac_tool_warned in
5667 yes:)
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5670 ac_tool_warned=yes ;;
5671 esac
5672 DLLTOOL=$ac_ct_DLLTOOL
5674 else
5675 DLLTOOL="$ac_cv_prog_DLLTOOL"
5678 for ac_prog in gawk mawk nawk awk
5680 # Extract the first word of "$ac_prog", so it can be a program name with args.
5681 set dummy $ac_prog; ac_word=$2
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5683 $as_echo_n "checking for $ac_word... " >&6; }
5684 if test "${ac_cv_prog_AWK+set}" = set; then :
5685 $as_echo_n "(cached) " >&6
5686 else
5687 if test -n "$AWK"; then
5688 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5689 else
5690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691 for as_dir in $PATH
5693 IFS=$as_save_IFS
5694 test -z "$as_dir" && as_dir=.
5695 for ac_exec_ext in '' $ac_executable_extensions; do
5696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5697 ac_cv_prog_AWK="$ac_prog"
5698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5699 break 2
5701 done
5702 done
5703 IFS=$as_save_IFS
5707 AWK=$ac_cv_prog_AWK
5708 if test -n "$AWK"; then
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5710 $as_echo "$AWK" >&6; }
5711 else
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5713 $as_echo "no" >&6; }
5717 test -n "$AWK" && break
5718 done
5720 for ac_prog in jar fastjar gjar
5722 # Extract the first word of "$ac_prog", so it can be a program name with args.
5723 set dummy $ac_prog; ac_word=$2
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5725 $as_echo_n "checking for $ac_word... " >&6; }
5726 if test "${ac_cv_prog_JAR+set}" = set; then :
5727 $as_echo_n "(cached) " >&6
5728 else
5729 if test -n "$JAR"; then
5730 ac_cv_prog_JAR="$JAR" # Let the user override the test.
5731 else
5732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5733 for as_dir in $PATH
5735 IFS=$as_save_IFS
5736 test -z "$as_dir" && as_dir=.
5737 for ac_exec_ext in '' $ac_executable_extensions; do
5738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5739 ac_cv_prog_JAR="$ac_prog"
5740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5741 break 2
5743 done
5744 done
5745 IFS=$as_save_IFS
5749 JAR=$ac_cv_prog_JAR
5750 if test -n "$JAR"; then
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
5752 $as_echo "$JAR" >&6; }
5753 else
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5755 $as_echo "no" >&6; }
5759 test -n "$JAR" && break
5760 done
5761 test -n "$JAR" || JAR="no"
5763 # Extract the first word of "zip", so it can be a program name with args.
5764 set dummy zip; ac_word=$2
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5766 $as_echo_n "checking for $ac_word... " >&6; }
5767 if test "${ac_cv_path_ZIP+set}" = set; then :
5768 $as_echo_n "(cached) " >&6
5769 else
5770 case $ZIP in
5771 [\\/]* | ?:[\\/]*)
5772 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 for as_dir in $PATH
5778 IFS=$as_save_IFS
5779 test -z "$as_dir" && as_dir=.
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5782 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5784 break 2
5786 done
5787 done
5788 IFS=$as_save_IFS
5790 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
5792 esac
5794 ZIP=$ac_cv_path_ZIP
5795 if test -n "$ZIP"; then
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
5797 $as_echo "$ZIP" >&6; }
5798 else
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5800 $as_echo "no" >&6; }
5804 # Extract the first word of "unzip", so it can be a program name with args.
5805 set dummy unzip; ac_word=$2
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5807 $as_echo_n "checking for $ac_word... " >&6; }
5808 if test "${ac_cv_path_UNZIP+set}" = set; then :
5809 $as_echo_n "(cached) " >&6
5810 else
5811 case $UNZIP in
5812 [\\/]* | ?:[\\/]*)
5813 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
5816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817 for as_dir in $PATH
5819 IFS=$as_save_IFS
5820 test -z "$as_dir" && as_dir=.
5821 for ac_exec_ext in '' $ac_executable_extensions; do
5822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5823 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
5824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5825 break 2
5827 done
5828 done
5829 IFS=$as_save_IFS
5831 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
5833 esac
5835 UNZIP=$ac_cv_path_UNZIP
5836 if test -n "$UNZIP"; then
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
5838 $as_echo "$UNZIP" >&6; }
5839 else
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5841 $as_echo "no" >&6; }
5846 # We need a jar that supports -@. This is a GNU extension.
5847 if test "$JAR" != no; then
5848 rm -f config-test.jar
5849 echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
5850 if test -f config-test.jar; then
5851 rm -f config-test.jar
5852 else
5853 JAR=no
5857 # Prefer the jar we found, but fall back to our jar script.
5858 if test "$JAR" = no; then
5859 if test "$ZIP" = no; then
5860 as_fn_error "cannot find neither zip nor jar, cannot continue" "$LINENO" 5
5861 else
5862 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
5863 JAR=`pwd`/scripts/jar
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5871 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5872 # Check whether --enable-maintainer-mode was given.
5873 if test "${enable_maintainer_mode+set}" = set; then :
5874 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5875 else
5876 USE_MAINTAINER_MODE=no
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5880 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5881 if test $USE_MAINTAINER_MODE = yes; then
5882 MAINTAINER_MODE_TRUE=
5883 MAINTAINER_MODE_FALSE='#'
5884 else
5885 MAINTAINER_MODE_TRUE='#'
5886 MAINTAINER_MODE_FALSE=
5889 MAINT=$MAINTAINER_MODE_TRUE
5895 # configure.host sets the following important variables
5896 # libgcj_cflags - host specific C compiler flags
5897 # libgcj_cxxflags - host specific C++ compiler flags
5898 # libgcj_javaflags - host specific Java compiler flags
5899 # libgcj_sublib_ltflags - host specific Libtool flags
5900 # libgcj_sublib_core_extra_deps - host specific extra
5901 # dependencies for core sublib
5902 # (these last two only used when building sublibs)
5903 # and a number of others; see the list at the start of the file.
5905 libgcj_cflags=
5906 libgcj_cxxflags=
5907 libgcj_javaflags=
5908 libgcj_sublib_ltflags=
5909 libgcj_sublib_core_extra_deps=
5911 . ${srcdir}/configure.host
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5914 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5915 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5916 $as_echo_n "(cached) " >&6
5917 else
5918 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5919 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5920 acl_cv_prog_gnu_ld=yes
5921 else
5922 acl_cv_prog_gnu_ld=no
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5926 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5927 with_gnu_ld=$acl_cv_prog_gnu_ld
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
5930 $as_echo_n "checking if the GNU linker ($LD) supports -Bsymbolic-functions... " >&6; }
5931 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then :
5932 $as_echo_n "(cached) " >&6
5933 else
5935 acl_cv_prog_gnu_ld_symbolic=no
5937 if test x"$with_gnu_ld" = x"yes"; then
5938 if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
5939 acl_cv_prog_gnu_ld_symbolic=yes
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld_symbolic" >&5
5944 $as_echo "$acl_cv_prog_gnu_ld_symbolic" >&6; }
5945 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
5946 SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
5947 else
5948 SYMBOLIC_LDFLAGS=''
5951 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
5952 if test -z "$libgcj_ld_symbolic"; then
5953 libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
5956 LIBGCJ_CFLAGS="${libgcj_cflags}"
5957 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
5958 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
5959 LIBGCJ_SUBLIB_LTFLAGS="${libgcj_sublib_ltflags}"
5960 LIBGCJ_SUBLIB_CORE_EXTRA_DEPS="${libgcj_sublib_core_extra_deps}"
5961 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
5962 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
5971 # Only use libltdl for non-newlib builds.
5972 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
5974 $as_echo_n "checking dynamic linker characteristics... " >&6; }
5975 library_names_spec=
5976 libname_spec='lib$name'
5977 soname_spec=
5978 shrext=".so"
5979 postinstall_cmds=
5980 postuninstall_cmds=
5981 finish_cmds=
5982 finish_eval=
5983 shlibpath_var=
5984 shlibpath_overrides_runpath=unknown
5985 version_type=none
5986 dynamic_linker="$host_os ld.so"
5987 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5988 if test "$GCC" = yes; then
5989 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
5990 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
5991 # if the path contains ";" then we assume it to be the separator
5992 # otherwise default to the standard path separator (i.e. ":") - it is
5993 # assumed that no part of a normal pathname contains ";" but that should
5994 # okay in the real world where ";" in dirpaths is itself problematic.
5995 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
5996 else
5997 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
5999 else
6000 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6002 need_lib_prefix=unknown
6003 hardcode_into_libs=no
6005 # when you set need_version to no, make sure it does not cause -set_version
6006 # flags to be left without arguments
6007 need_version=unknown
6009 case $host_os in
6010 aix3*)
6011 version_type=linux
6012 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6013 shlibpath_var=LIBPATH
6015 # AIX 3 has no versioning support, so we append a major version to the name.
6016 soname_spec='${libname}${release}${shared_ext}$major'
6019 aix[4-9]*)
6020 version_type=linux
6021 need_lib_prefix=no
6022 need_version=no
6023 hardcode_into_libs=yes
6024 if test "$host_cpu" = ia64; then
6025 # AIX 5 supports IA64
6026 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6027 shlibpath_var=LD_LIBRARY_PATH
6028 else
6029 # With GCC up to 2.95.x, collect2 would create an import file
6030 # for dependence libraries. The import file would start with
6031 # the line `#! .'. This would cause the generated library to
6032 # depend on `.', always an invalid library. This was fixed in
6033 # development snapshots of GCC prior to 3.0.
6034 case $host_os in
6035 aix4 | aix4.[01] | aix4.[01].*)
6036 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6037 echo ' yes '
6038 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6040 else
6041 can_build_shared=no
6044 esac
6045 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6046 # soname into executable. Probably we can add versioning support to
6047 # collect2, so additional links can be useful in future.
6048 if test "$aix_use_runtimelinking" = yes; then
6049 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6050 # instead of lib<name>.a to let people know that these are not
6051 # typical AIX shared libraries.
6052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6053 else
6054 # We preserve .a as extension for shared libraries through AIX4.2
6055 # and later when we are not doing run time linking.
6056 library_names_spec='${libname}${release}.a $libname.a'
6057 soname_spec='${libname}${release}${shared_ext}$major'
6059 shlibpath_var=LIBPATH
6063 amigaos*)
6064 library_names_spec='$libname.ixlibrary $libname.a'
6065 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6066 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'
6069 beos*)
6070 library_names_spec='${libname}${shared_ext}'
6071 dynamic_linker="$host_os ld.so"
6072 shlibpath_var=LIBRARY_PATH
6075 bsdi4*)
6076 version_type=linux
6077 need_version=no
6078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6079 soname_spec='${libname}${release}${shared_ext}$major'
6080 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6081 shlibpath_var=LD_LIBRARY_PATH
6082 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6083 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6084 # the default ld.so.conf also contains /usr/contrib/lib and
6085 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6086 # libtool to hard-code these into programs
6089 cygwin* | mingw* | pw32*)
6090 version_type=windows
6091 shrext=".dll"
6092 need_version=no
6093 need_lib_prefix=no
6095 case $GCC,$host_os in
6096 yes,cygwin* | yes,mingw* | yes,pw32*)
6097 library_names_spec='$libname.dll.a'
6098 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6099 postinstall_cmds='base_file=`basename \${file}`~
6100 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6101 dldir=$destdir/`dirname \$dlpath`~
6102 test -d \$dldir || mkdir -p \$dldir~
6103 $install_prog $dir/$dlname \$dldir/$dlname'
6104 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6105 dlpath=$dir/\$dldll~
6106 $rm \$dlpath'
6107 shlibpath_overrides_runpath=yes
6109 case $host_os in
6110 cygwin*)
6111 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6112 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6113 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
6115 mingw*)
6116 # MinGW DLLs use traditional 'lib' prefix
6117 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6118 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
6119 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6120 # It is most probably a Windows format PATH printed by
6121 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6122 # path with ; separators, and with drive letters. We can handle the
6123 # drive letters (cygwin fileutils understands them), so leave them,
6124 # especially as we might pass files found there to a mingw objdump,
6125 # which wouldn't understand a cygwinified path. Ahh.
6126 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6127 else
6128 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6131 pw32*)
6132 # pw32 DLLs use 'pw' prefix rather than 'lib'
6133 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
6135 esac
6139 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6141 esac
6142 dynamic_linker='Win32 ld.exe'
6143 # FIXME: first we should search . and the directory the executable is in
6144 shlibpath_var=PATH
6147 darwin* | rhapsody*)
6148 dynamic_linker="$host_os dyld"
6149 version_type=darwin
6150 need_lib_prefix=no
6151 need_version=no
6152 # FIXME: Relying on posixy $() will cause problems for
6153 # cross-compilation, but unfortunately the echo tests do not
6154 # yet detect zsh echo's removal of \ escapes.
6155 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6156 soname_spec='${libname}${release}${major}$shared_ext'
6157 shlibpath_overrides_runpath=yes
6158 shlibpath_var=DYLD_LIBRARY_PATH
6159 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
6160 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6161 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6162 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"`
6164 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6167 dgux*)
6168 version_type=linux
6169 need_lib_prefix=no
6170 need_version=no
6171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6172 soname_spec='${libname}${release}${shared_ext}$major'
6173 shlibpath_var=LD_LIBRARY_PATH
6176 freebsd1*)
6177 dynamic_linker=no
6180 freebsd*)
6181 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6182 version_type=freebsd-$objformat
6183 case $version_type in
6184 freebsd-elf*)
6185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6186 need_version=no
6187 need_lib_prefix=no
6189 freebsd-*)
6190 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6191 need_version=yes
6193 esac
6194 shlibpath_var=LD_LIBRARY_PATH
6195 case $host_os in
6196 freebsd2*)
6197 shlibpath_overrides_runpath=yes
6199 freebsd3.01* | freebsdelf3.01*)
6200 shlibpath_overrides_runpath=yes
6201 hardcode_into_libs=yes
6203 *) # from 3.2 on
6204 shlibpath_overrides_runpath=no
6205 hardcode_into_libs=yes
6207 esac
6210 gnu*)
6211 version_type=linux
6212 need_lib_prefix=no
6213 need_version=no
6214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6215 soname_spec='${libname}${release}${shared_ext}$major'
6216 shlibpath_var=LD_LIBRARY_PATH
6217 hardcode_into_libs=yes
6220 hpux9* | hpux10* | hpux11*)
6221 # Give a soname corresponding to the major version so that dld.sl refuses to
6222 # link against other versions.
6223 version_type=sunos
6224 need_lib_prefix=no
6225 need_version=no
6226 case "$host_cpu" in
6227 ia64*)
6228 shrext='.so'
6229 hardcode_into_libs=yes
6230 dynamic_linker="$host_os dld.so"
6231 shlibpath_var=LD_LIBRARY_PATH
6232 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6234 soname_spec='${libname}${release}${shared_ext}$major'
6235 if test "X$HPUX_IA64_MODE" = X32; then
6236 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6237 else
6238 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6240 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6242 hppa*64*)
6243 shrext='.sl'
6244 hardcode_into_libs=yes
6245 dynamic_linker="$host_os dld.sl"
6246 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6247 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6249 soname_spec='${libname}${release}${shared_ext}$major'
6250 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6251 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6254 shrext='.sl'
6255 dynamic_linker="$host_os dld.sl"
6256 shlibpath_var=SHLIB_PATH
6257 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6259 soname_spec='${libname}${release}${shared_ext}$major'
6261 esac
6262 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6263 postinstall_cmds='chmod 555 $lib'
6266 irix5* | irix6* | nonstopux*)
6267 case $host_os in
6268 nonstopux*) version_type=nonstopux ;;
6270 if test "$lt_cv_prog_gnu_ld" = yes; then
6271 version_type=linux
6272 else
6273 version_type=irix
6274 fi ;;
6275 esac
6276 need_lib_prefix=no
6277 need_version=no
6278 soname_spec='${libname}${release}${shared_ext}$major'
6279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6280 case $host_os in
6281 irix5* | nonstopux*)
6282 libsuff= shlibsuff=
6285 case $LD in # libtool.m4 will add one of these switches to LD
6286 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6287 libsuff= shlibsuff= libmagic=32-bit;;
6288 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6289 libsuff=32 shlibsuff=N32 libmagic=N32;;
6290 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6291 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6292 *) libsuff= shlibsuff= libmagic=never-match;;
6293 esac
6295 esac
6296 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6297 shlibpath_overrides_runpath=no
6298 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6299 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6300 hardcode_into_libs=yes
6303 # No shared lib support for Linux oldld, aout, or coff.
6304 linux*oldld* | linux*aout* | linux*coff*)
6305 dynamic_linker=no
6308 # This must be Linux ELF.
6309 linux*|k*bsd*-gnu)
6310 version_type=linux
6311 need_lib_prefix=no
6312 need_version=no
6313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6314 soname_spec='${libname}${release}${shared_ext}$major'
6315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6316 shlibpath_var=LD_LIBRARY_PATH
6317 shlibpath_overrides_runpath=no
6318 # This implies no fast_install, which is unacceptable.
6319 # Some rework will be needed to allow for fast_install
6320 # before this can be enabled.
6321 hardcode_into_libs=yes
6323 # We used to test for /lib/ld.so.1 and disable shared libraries on
6324 # powerpc, because MkLinux only supported shared libraries with the
6325 # GNU dynamic linker. Since this was broken with cross compilers,
6326 # most powerpc-linux boxes support dynamic linking these days and
6327 # people can always --disable-shared, the test was removed, and we
6328 # assume the GNU/Linux dynamic linker is in use.
6329 dynamic_linker='GNU/Linux ld.so'
6332 netbsd*)
6333 version_type=sunos
6334 need_lib_prefix=no
6335 need_version=no
6336 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6338 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6339 dynamic_linker='NetBSD (a.out) ld.so'
6340 else
6341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
6342 soname_spec='${libname}${release}${shared_ext}$major'
6343 dynamic_linker='NetBSD ld.elf_so'
6345 shlibpath_var=LD_LIBRARY_PATH
6346 shlibpath_overrides_runpath=yes
6347 hardcode_into_libs=yes
6350 newsos6)
6351 version_type=linux
6352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6353 shlibpath_var=LD_LIBRARY_PATH
6354 shlibpath_overrides_runpath=yes
6357 nto-qnx)
6358 version_type=linux
6359 need_lib_prefix=no
6360 need_version=no
6361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6362 soname_spec='${libname}${release}${shared_ext}$major'
6363 shlibpath_var=LD_LIBRARY_PATH
6364 shlibpath_overrides_runpath=yes
6367 openbsd*)
6368 version_type=sunos
6369 need_lib_prefix=no
6370 need_version=no
6371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6372 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6373 shlibpath_var=LD_LIBRARY_PATH
6374 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6375 case $host_os in
6376 openbsd2.[89] | openbsd2.[89].*)
6377 shlibpath_overrides_runpath=no
6380 shlibpath_overrides_runpath=yes
6382 esac
6383 else
6384 shlibpath_overrides_runpath=yes
6388 os2*)
6389 libname_spec='$name'
6390 shrext=".dll"
6391 need_lib_prefix=no
6392 library_names_spec='$libname${shared_ext} $libname.a'
6393 dynamic_linker='OS/2 ld.exe'
6394 shlibpath_var=LIBPATH
6397 osf3* | osf4* | osf5*)
6398 version_type=osf
6399 need_lib_prefix=no
6400 need_version=no
6401 soname_spec='${libname}${release}${shared_ext}$major'
6402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6403 shlibpath_var=LD_LIBRARY_PATH
6404 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6405 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6408 sco3.2v5*)
6409 version_type=osf
6410 soname_spec='${libname}${release}${shared_ext}$major'
6411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6412 shlibpath_var=LD_LIBRARY_PATH
6415 solaris*)
6416 version_type=linux
6417 need_lib_prefix=no
6418 need_version=no
6419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6420 soname_spec='${libname}${release}${shared_ext}$major'
6421 shlibpath_var=LD_LIBRARY_PATH
6422 shlibpath_overrides_runpath=yes
6423 hardcode_into_libs=yes
6424 # ldd complains unless libraries are executable
6425 postinstall_cmds='chmod +x $lib'
6428 sunos4*)
6429 version_type=sunos
6430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6431 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6432 shlibpath_var=LD_LIBRARY_PATH
6433 shlibpath_overrides_runpath=yes
6434 if test "$with_gnu_ld" = yes; then
6435 need_lib_prefix=no
6437 need_version=yes
6440 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6441 version_type=linux
6442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6443 soname_spec='${libname}${release}${shared_ext}$major'
6444 shlibpath_var=LD_LIBRARY_PATH
6445 case $host_vendor in
6446 sni)
6447 shlibpath_overrides_runpath=no
6448 need_lib_prefix=no
6449 export_dynamic_flag_spec='${wl}-Blargedynsym'
6450 runpath_var=LD_RUN_PATH
6452 siemens)
6453 need_lib_prefix=no
6455 motorola)
6456 need_lib_prefix=no
6457 need_version=no
6458 shlibpath_overrides_runpath=no
6459 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6461 esac
6464 sysv4*MP*)
6465 if test -d /usr/nec ;then
6466 version_type=linux
6467 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
6468 soname_spec='$libname${shared_ext}.$major'
6469 shlibpath_var=LD_LIBRARY_PATH
6473 uts4*)
6474 version_type=linux
6475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6476 soname_spec='${libname}${release}${shared_ext}$major'
6477 shlibpath_var=LD_LIBRARY_PATH
6481 dynamic_linker=no
6483 esac
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
6485 $as_echo "$dynamic_linker" >&6; }
6486 test "$dynamic_linker" = no && can_build_shared=no
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
6490 $as_echo_n "checking which variable specifies run-time library path... " >&6; }
6491 if test "${libltdl_cv_shlibpath_var+set}" = set; then :
6492 $as_echo_n "(cached) " >&6
6493 else
6494 libltdl_cv_shlibpath_var="$shlibpath_var"
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
6497 $as_echo "$libltdl_cv_shlibpath_var" >&6; }
6498 if test -n "$libltdl_cv_shlibpath_var"; then
6500 cat >>confdefs.h <<_ACEOF
6501 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
6502 _ACEOF
6508 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
6511 # Possibly build libgcj as many sub-libraries.
6512 # Check whether --enable-libgcj-sublibs was given.
6513 if test "${enable_libgcj_sublibs+set}" = set; then :
6514 enableval=$enable_libgcj_sublibs;
6518 if test -z "$enable_libgcj_sublibs"; then
6519 enable_libgcj_sublibs=$enable_libgcj_sublibs_default
6521 if test "$enable_libgcj_sublibs" = yes; then
6522 BUILD_SUBLIBS_TRUE=
6523 BUILD_SUBLIBS_FALSE='#'
6524 else
6525 BUILD_SUBLIBS_TRUE='#'
6526 BUILD_SUBLIBS_FALSE=
6529 if test "$enable_libgcj_sublibs" = yes ; then
6530 # In theory we could make do with only one override and simply
6531 # tag "_bc" onto the end of it when we use it to generate the
6532 # spec, but that's an ugly thing to do when there are multiple
6533 # words in the string and you're relying on the ordering to
6534 # append the correct one.
6535 libgcj_spec_lgcj_override="-lgcj-noncore -lgcj"
6536 libgcj_spec_lgcj_bc_override="-lgcj-noncore -lgcj_bc"
6540 # See if the user has requested runtime debugging.
6541 LIBGCJDEBUG="disable"
6543 # Check whether --enable-libgcj-debug was given.
6544 if test "${enable_libgcj_debug+set}" = set; then :
6545 enableval=$enable_libgcj_debug; if test "$enable_libgcj_debug" = yes; then
6547 $as_echo "#define __GCJ_DEBUG 1" >>confdefs.h
6549 LIBGCJDEBUG="enable"
6555 # Check whether --with-escher was given.
6556 if test "${with_escher+set}" = set; then :
6557 withval=$with_escher;
6560 case "$with_escher" in
6562 use_escher=false
6564 "no")
6565 use_escher=false
6567 "yes")
6568 as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
6571 use_escher=true
6573 esac
6575 # Determine which AWT peer libraries to build
6576 # Check whether --enable-java-awt was given.
6577 if test "${enable_java_awt+set}" = set; then :
6578 enableval=$enable_java_awt;
6582 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6583 use_xlib_awt=""
6584 use_gtk_awt=""
6585 use_qt_awt=""
6586 use_x_awt=""
6587 # The default toolkit to use is the first one specified.
6588 TOOLKIT=
6591 for peer in $peerlibs ; do
6592 case $peer in
6593 xlib)
6594 if test "$no_x" = yes; then
6595 echo "*** xlib peers requested but no X library available" 1>&2
6596 exit 1
6597 else
6598 use_xlib_awt="yes"
6599 if test -z "$TOOLKIT"; then
6600 TOOLKIT=gnu.awt.xlib.XToolkit
6604 gtk)
6605 if test "$no_x" = yes; then
6606 echo "*** gtk peers requested but no X library available" 1>&2
6607 exit 1
6608 else
6609 use_gtk_awt=yes
6610 if test -z "$TOOLKIT"; then
6611 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
6616 if test "$no_x" = yes; then
6617 # Perhaps we should admit the possibility of embedded Qt.
6618 echo "*** Qt peers requested but no X library available" 1>&2
6619 exit 1
6620 else
6621 use_qt_awt=yes
6622 if test -z "$TOOLKIT"; then
6623 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
6628 use_x_awt=yes
6629 if test -z "$TOOLKIT"; then
6630 TOOLKIT=gnu.java.awt.peer.x.XToolkit
6634 use_xlib_awt=
6635 use_gtk_awt=
6636 use_qt_awt=
6637 use_x_awt=
6638 break
6641 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
6642 exit 1
6643 esac
6644 done
6646 if test "$use_xlib_awt" = yes; then
6647 XLIB_AWT_TRUE=
6648 XLIB_AWT_FALSE='#'
6649 else
6650 XLIB_AWT_TRUE='#'
6651 XLIB_AWT_FALSE=
6654 if test "$use_x_awt" = yes; then
6655 X_AWT_TRUE=
6656 X_AWT_FALSE='#'
6657 else
6658 X_AWT_TRUE='#'
6659 X_AWT_FALSE=
6664 cat >>confdefs.h <<_ACEOF
6665 #define AWT_TOOLKIT "$TOOLKIT"
6666 _ACEOF
6669 expanded_prefix=$prefix
6670 if test "X$prefix" = XNONE; then
6671 expanded_prefix=${ac_default_prefix}
6675 cat >>confdefs.h <<_ACEOF
6676 #define LIBGCJ_PREFIX "$expanded_prefix"
6677 _ACEOF
6680 # Create standard.omit based on decisions we just made.
6681 cp $srcdir/standard.omit.in standard.omit
6682 if test "$use_xlib_awt" != yes; then
6683 echo gnu/awt/xlib >> standard.omit
6684 echo gnu/gcj/xlib >> standard.omit
6686 if test "$use_x_awt" != yes; then
6687 echo gnu/java/awt/peer/x >> standard.omit
6690 # Tools that need to be compiled against classpath's tools classes
6691 : > vm-tools-packages
6692 for package in gnu/gcj/tools/gc_analyze ; do
6693 echo $package >> standard.omit
6694 echo $package >> vm-tools-packages
6695 done
6697 if test -z "${with_multisubdir}"; then
6698 builddotdot=.
6699 else
6700 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
6703 NATIVE=yes
6705 # Which gcj and host gcj (for ecjx) do we use?
6706 which_gcj=default
6707 host_exeext=${ac_exeext}
6708 GCJ_FOR_ECJX='$(GCJ)'
6709 GCC_FOR_ECJX='$(CXX)'
6710 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
6711 if test -n "${with_cross_host}"; then
6712 # We are being configured with a cross compiler. We can't
6713 # use ac_exeext, because that is for the target platform.
6714 NATIVE=no
6715 cross_host_exeext=
6716 GCJ_FOR_ECJX="${with_cross_host}-gcj"
6717 GCC_FOR_ECJX="${with_cross_host}-gcc"
6718 case "${with_cross_host}" in
6719 *mingw* | *cygwin*)
6720 cross_host_exeext=.exe
6722 esac
6723 host_exeext=${cross_host_exeext}
6724 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
6725 if test x"$build_noncanonical" = x"$with_cross_host"; then
6726 # Ordinary cross (host!=target and host=build)
6727 which_gcj=built
6728 else
6729 # Canadian cross (host!=target and host!=build)
6730 which_gcj=cross
6732 else
6733 which_gcj=cross
6735 else
6736 # We are being configured with a native or crossed-native compiler
6737 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
6738 if test x"$build" = x"$host"; then
6739 # True native build (host=target and host=build)
6740 which_gcj=built
6741 else
6742 # Crossed-native build (host=target and host!=build)
6743 which_gcj=cross
6745 else
6746 which_gcj=path
6749 libgcjdir=`${PWDCMD-pwd}`
6750 case $GCJ in
6751 *" -B"*)
6752 # Just in case there is a comma in the build dir, quote it for the
6753 # sed command below.
6754 case $libgcjdir in
6755 *[,\\]*) qlibgcjdir=`echo "$libgcjdir" | sed 's:[,\\]:\\&:g'`;;
6756 *) qlibgcjdir=$libgcjdir;;
6757 esac
6758 GCJ=`echo "$GCJ" | sed "s, -B, -B$qlibgcjdir/&,"`
6761 GCJ=$GCJ" -B$libgcjdir/"
6763 esac
6764 case "${which_gcj}" in
6765 built)
6766 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
6768 cross)
6769 if test "x${with_newlib}" = "xyes"; then
6770 # FIXME (comment): Why is this needed?
6771 GCC_UNWIND_INCLUDE=
6773 GCJH='$(target_noncanonical)-gcjh'
6775 path)
6776 GCJH=gcjh
6778 esac
6779 JAVAC="$GCJ -C"
6780 export JAVAC
6787 # Create it, so that compile/link tests don't fail
6788 test -f libgcj.spec || touch libgcj.spec
6792 # Set up to configure Classpath.
6793 # FIXME: no supported way to pass args in autoconf.
6794 # Disable tool wrappers to avoid ltdl.h configure check.
6795 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
6796 ac_configure_args="$ac_configure_args --disable-load-library"
6797 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
6798 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
6799 dir1=`cd $srcdir && pwd`
6800 dir2=`pwd`
6801 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
6802 ac_configure_args="$ac_configure_args --disable-core-jni"
6803 ac_configure_args="$ac_configure_args --disable-examples"
6804 ac_configure_args="$ac_configure_args --with-glibj=build"
6805 if test "$browser_plugin_enabled" != yes; then
6806 ac_configure_args="$ac_configure_args --disable-plugin"
6807 else
6808 ac_configure_args="$ac_configure_args --enable-plugin"
6810 if test "$gconf_enabled" != yes; then
6811 ac_configure_args="$ac_configure_args --disable-gconf-peer"
6812 ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
6814 if test "$use_gtk_awt" != yes; then
6815 ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
6817 if test "$use_qt_awt" != yes; then
6818 ac_configure_args="$ac_configure_args --disable-qt-peer"
6819 else
6820 # We need this as qt is disabled by default in classpath.
6821 ac_configure_args="$ac_configure_args --enable-qt-peer"
6823 if test "$use_x_awt" != yes; then
6824 ac_configure_args="$ac_configure_args --without-escher"
6825 else
6826 # We need this as escher is disabled by default in classpath.
6827 if test "$use_escher" != true; then
6828 as_fn_error "Please supply an absolute path to the Escher library" "$LINENO" 5
6829 else
6830 ac_configure_args="$ac_configure_args --with-escher=$with_escher"
6833 if test "x$BUILD_GJDOC" = xno; then
6834 ac_configure_args="$ac_configure_args --disable-gjdoc"
6836 # -Werror causes unavoidable problems in code using alsa.
6837 ac_configure_args="$ac_configure_args --disable-regen-headers"
6838 ac_configure_args="$ac_configure_args --disable-Werror"
6840 # Only use libltdl for non-newlib builds.
6841 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
6842 case $enable_ltdl_convenience in
6843 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
6844 "") enable_ltdl_convenience=yes
6845 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
6846 esac
6847 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
6848 LTDLINCL='-I${top_srcdir}/''libltdl'
6849 # For backwards non-gettext consistent compatibility...
6850 INCLTDL="$LTDLINCL"
6852 enable_dlopen=yes
6856 DIRLTDL=libltdl
6858 $as_echo "#define USE_LTDL 1" >>confdefs.h
6860 # Sigh. Libtool's macro doesn't do the right thing.
6861 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
6862 # FIXME: this is a hack.
6863 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
6864 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
6869 case `pwd` in
6870 *\ * | *\ *)
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6872 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6873 esac
6877 macro_version='2.2.7a'
6878 macro_revision='1.3134'
6892 ltmain="$ac_aux_dir/ltmain.sh"
6894 # Backslashify metacharacters that are still active within
6895 # double-quoted strings.
6896 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6898 # Same as above, but do not quote variable references.
6899 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6901 # Sed substitution to delay expansion of an escaped shell variable in a
6902 # double_quote_subst'ed string.
6903 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6905 # Sed substitution to delay expansion of an escaped single quote.
6906 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6908 # Sed substitution to avoid accidental globbing in evaled expressions
6909 no_glob_subst='s/\*/\\\*/g'
6911 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6912 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6913 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6916 $as_echo_n "checking how to print strings... " >&6; }
6917 # Test print first, because it will be a builtin if present.
6918 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6919 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6920 ECHO='print -r --'
6921 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6922 ECHO='printf %s\n'
6923 else
6924 # Use this function as a fallback that always works.
6925 func_fallback_echo ()
6927 eval 'cat <<_LTECHO_EOF
6929 _LTECHO_EOF'
6931 ECHO='func_fallback_echo'
6934 # func_echo_all arg...
6935 # Invoke $ECHO with all args, space-separated.
6936 func_echo_all ()
6938 $ECHO ""
6941 case "$ECHO" in
6942 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6943 $as_echo "printf" >&6; } ;;
6944 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6945 $as_echo "print -r" >&6; } ;;
6946 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6947 $as_echo "cat" >&6; } ;;
6948 esac
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6964 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6965 if test "${ac_cv_path_SED+set}" = set; then :
6966 $as_echo_n "(cached) " >&6
6967 else
6968 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6969 for ac_i in 1 2 3 4 5 6 7; do
6970 ac_script="$ac_script$as_nl$ac_script"
6971 done
6972 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6973 { ac_script=; unset ac_script;}
6974 if test -z "$SED"; then
6975 ac_path_SED_found=false
6976 # Loop through the user's path and test for each of PROGNAME-LIST
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 for as_dir in $PATH
6980 IFS=$as_save_IFS
6981 test -z "$as_dir" && as_dir=.
6982 for ac_prog in sed gsed; do
6983 for ac_exec_ext in '' $ac_executable_extensions; do
6984 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6985 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6986 # Check for GNU ac_path_SED and select it if it is found.
6987 # Check for GNU $ac_path_SED
6988 case `"$ac_path_SED" --version 2>&1` in
6989 *GNU*)
6990 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6992 ac_count=0
6993 $as_echo_n 0123456789 >"conftest.in"
6994 while :
6996 cat "conftest.in" "conftest.in" >"conftest.tmp"
6997 mv "conftest.tmp" "conftest.in"
6998 cp "conftest.in" "conftest.nl"
6999 $as_echo '' >> "conftest.nl"
7000 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7001 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7002 as_fn_arith $ac_count + 1 && ac_count=$as_val
7003 if test $ac_count -gt ${ac_path_SED_max-0}; then
7004 # Best one so far, save it but keep looking for a better one
7005 ac_cv_path_SED="$ac_path_SED"
7006 ac_path_SED_max=$ac_count
7008 # 10*(2^10) chars as input seems more than enough
7009 test $ac_count -gt 10 && break
7010 done
7011 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7012 esac
7014 $ac_path_SED_found && break 3
7015 done
7016 done
7017 done
7018 IFS=$as_save_IFS
7019 if test -z "$ac_cv_path_SED"; then
7020 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7022 else
7023 ac_cv_path_SED=$SED
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7028 $as_echo "$ac_cv_path_SED" >&6; }
7029 SED="$ac_cv_path_SED"
7030 rm -f conftest.sed
7032 test -z "$SED" && SED=sed
7033 Xsed="$SED -e 1s/^X//"
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7046 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7047 if test "${ac_cv_path_GREP+set}" = set; then :
7048 $as_echo_n "(cached) " >&6
7049 else
7050 if test -z "$GREP"; then
7051 ac_path_GREP_found=false
7052 # Loop through the user's path and test for each of PROGNAME-LIST
7053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7056 IFS=$as_save_IFS
7057 test -z "$as_dir" && as_dir=.
7058 for ac_prog in grep ggrep; do
7059 for ac_exec_ext in '' $ac_executable_extensions; do
7060 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7061 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7062 # Check for GNU ac_path_GREP and select it if it is found.
7063 # Check for GNU $ac_path_GREP
7064 case `"$ac_path_GREP" --version 2>&1` in
7065 *GNU*)
7066 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7068 ac_count=0
7069 $as_echo_n 0123456789 >"conftest.in"
7070 while :
7072 cat "conftest.in" "conftest.in" >"conftest.tmp"
7073 mv "conftest.tmp" "conftest.in"
7074 cp "conftest.in" "conftest.nl"
7075 $as_echo 'GREP' >> "conftest.nl"
7076 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7077 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7078 as_fn_arith $ac_count + 1 && ac_count=$as_val
7079 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7080 # Best one so far, save it but keep looking for a better one
7081 ac_cv_path_GREP="$ac_path_GREP"
7082 ac_path_GREP_max=$ac_count
7084 # 10*(2^10) chars as input seems more than enough
7085 test $ac_count -gt 10 && break
7086 done
7087 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7088 esac
7090 $ac_path_GREP_found && break 3
7091 done
7092 done
7093 done
7094 IFS=$as_save_IFS
7095 if test -z "$ac_cv_path_GREP"; then
7096 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7098 else
7099 ac_cv_path_GREP=$GREP
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7104 $as_echo "$ac_cv_path_GREP" >&6; }
7105 GREP="$ac_cv_path_GREP"
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7109 $as_echo_n "checking for egrep... " >&6; }
7110 if test "${ac_cv_path_EGREP+set}" = set; then :
7111 $as_echo_n "(cached) " >&6
7112 else
7113 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7114 then ac_cv_path_EGREP="$GREP -E"
7115 else
7116 if test -z "$EGREP"; then
7117 ac_path_EGREP_found=false
7118 # Loop through the user's path and test for each of PROGNAME-LIST
7119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7122 IFS=$as_save_IFS
7123 test -z "$as_dir" && as_dir=.
7124 for ac_prog in egrep; do
7125 for ac_exec_ext in '' $ac_executable_extensions; do
7126 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7127 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7128 # Check for GNU ac_path_EGREP and select it if it is found.
7129 # Check for GNU $ac_path_EGREP
7130 case `"$ac_path_EGREP" --version 2>&1` in
7131 *GNU*)
7132 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7134 ac_count=0
7135 $as_echo_n 0123456789 >"conftest.in"
7136 while :
7138 cat "conftest.in" "conftest.in" >"conftest.tmp"
7139 mv "conftest.tmp" "conftest.in"
7140 cp "conftest.in" "conftest.nl"
7141 $as_echo 'EGREP' >> "conftest.nl"
7142 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7143 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7144 as_fn_arith $ac_count + 1 && ac_count=$as_val
7145 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7146 # Best one so far, save it but keep looking for a better one
7147 ac_cv_path_EGREP="$ac_path_EGREP"
7148 ac_path_EGREP_max=$ac_count
7150 # 10*(2^10) chars as input seems more than enough
7151 test $ac_count -gt 10 && break
7152 done
7153 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7154 esac
7156 $ac_path_EGREP_found && break 3
7157 done
7158 done
7159 done
7160 IFS=$as_save_IFS
7161 if test -z "$ac_cv_path_EGREP"; then
7162 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7164 else
7165 ac_cv_path_EGREP=$EGREP
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7171 $as_echo "$ac_cv_path_EGREP" >&6; }
7172 EGREP="$ac_cv_path_EGREP"
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7176 $as_echo_n "checking for fgrep... " >&6; }
7177 if test "${ac_cv_path_FGREP+set}" = set; then :
7178 $as_echo_n "(cached) " >&6
7179 else
7180 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7181 then ac_cv_path_FGREP="$GREP -F"
7182 else
7183 if test -z "$FGREP"; then
7184 ac_path_FGREP_found=false
7185 # Loop through the user's path and test for each of PROGNAME-LIST
7186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7189 IFS=$as_save_IFS
7190 test -z "$as_dir" && as_dir=.
7191 for ac_prog in fgrep; do
7192 for ac_exec_ext in '' $ac_executable_extensions; do
7193 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7194 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7195 # Check for GNU ac_path_FGREP and select it if it is found.
7196 # Check for GNU $ac_path_FGREP
7197 case `"$ac_path_FGREP" --version 2>&1` in
7198 *GNU*)
7199 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7201 ac_count=0
7202 $as_echo_n 0123456789 >"conftest.in"
7203 while :
7205 cat "conftest.in" "conftest.in" >"conftest.tmp"
7206 mv "conftest.tmp" "conftest.in"
7207 cp "conftest.in" "conftest.nl"
7208 $as_echo 'FGREP' >> "conftest.nl"
7209 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7210 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7211 as_fn_arith $ac_count + 1 && ac_count=$as_val
7212 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7213 # Best one so far, save it but keep looking for a better one
7214 ac_cv_path_FGREP="$ac_path_FGREP"
7215 ac_path_FGREP_max=$ac_count
7217 # 10*(2^10) chars as input seems more than enough
7218 test $ac_count -gt 10 && break
7219 done
7220 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7221 esac
7223 $ac_path_FGREP_found && break 3
7224 done
7225 done
7226 done
7227 IFS=$as_save_IFS
7228 if test -z "$ac_cv_path_FGREP"; then
7229 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7231 else
7232 ac_cv_path_FGREP=$FGREP
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7238 $as_echo "$ac_cv_path_FGREP" >&6; }
7239 FGREP="$ac_cv_path_FGREP"
7242 test -z "$GREP" && GREP=grep
7262 # Check whether --with-gnu-ld was given.
7263 if test "${with_gnu_ld+set}" = set; then :
7264 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7265 else
7266 with_gnu_ld=no
7269 ac_prog=ld
7270 if test "$GCC" = yes; then
7271 # Check if gcc -print-prog-name=ld gives a path.
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7273 $as_echo_n "checking for ld used by $CC... " >&6; }
7274 case $host in
7275 *-*-mingw*)
7276 # gcc leaves a trailing carriage return which upsets mingw
7277 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7279 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7280 esac
7281 case $ac_prog in
7282 # Accept absolute paths.
7283 [\\/]* | ?:[\\/]*)
7284 re_direlt='/[^/][^/]*/\.\./'
7285 # Canonicalize the pathname of ld
7286 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7287 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7288 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7289 done
7290 test -z "$LD" && LD="$ac_prog"
7293 # If it fails, then pretend we aren't using GCC.
7294 ac_prog=ld
7297 # If it is relative, then search for the first ld in PATH.
7298 with_gnu_ld=unknown
7300 esac
7301 elif test "$with_gnu_ld" = yes; then
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7303 $as_echo_n "checking for GNU ld... " >&6; }
7304 else
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7306 $as_echo_n "checking for non-GNU ld... " >&6; }
7308 if test "${lt_cv_path_LD+set}" = set; then :
7309 $as_echo_n "(cached) " >&6
7310 else
7311 if test -z "$LD"; then
7312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7313 for ac_dir in $PATH; do
7314 IFS="$lt_save_ifs"
7315 test -z "$ac_dir" && ac_dir=.
7316 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7317 lt_cv_path_LD="$ac_dir/$ac_prog"
7318 # Check to see if the program is GNU ld. I'd rather use --version,
7319 # but apparently some variants of GNU ld only accept -v.
7320 # Break only if it was the GNU/non-GNU ld that we prefer.
7321 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7322 *GNU* | *'with BFD'*)
7323 test "$with_gnu_ld" != no && break
7326 test "$with_gnu_ld" != yes && break
7328 esac
7330 done
7331 IFS="$lt_save_ifs"
7332 else
7333 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7337 LD="$lt_cv_path_LD"
7338 if test -n "$LD"; then
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7340 $as_echo "$LD" >&6; }
7341 else
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7343 $as_echo "no" >&6; }
7345 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7347 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7348 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7349 $as_echo_n "(cached) " >&6
7350 else
7351 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7352 case `$LD -v 2>&1 </dev/null` in
7353 *GNU* | *'with BFD'*)
7354 lt_cv_prog_gnu_ld=yes
7357 lt_cv_prog_gnu_ld=no
7359 esac
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7362 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7363 with_gnu_ld=$lt_cv_prog_gnu_ld
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7374 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7375 if test "${lt_cv_path_NM+set}" = set; then :
7376 $as_echo_n "(cached) " >&6
7377 else
7378 if test -n "$NM"; then
7379 # Let the user override the test.
7380 lt_cv_path_NM="$NM"
7381 else
7382 lt_nm_to_check="${ac_tool_prefix}nm"
7383 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7384 lt_nm_to_check="$lt_nm_to_check nm"
7386 for lt_tmp_nm in $lt_nm_to_check; do
7387 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7388 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7389 IFS="$lt_save_ifs"
7390 test -z "$ac_dir" && ac_dir=.
7391 tmp_nm="$ac_dir/$lt_tmp_nm"
7392 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7393 # Check to see if the nm accepts a BSD-compat flag.
7394 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7395 # nm: unknown option "B" ignored
7396 # Tru64's nm complains that /dev/null is an invalid object file
7397 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7398 */dev/null* | *'Invalid file or object type'*)
7399 lt_cv_path_NM="$tmp_nm -B"
7400 break
7403 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7404 */dev/null*)
7405 lt_cv_path_NM="$tmp_nm -p"
7406 break
7409 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7410 continue # so that we can try to find one that supports BSD flags
7412 esac
7414 esac
7416 done
7417 IFS="$lt_save_ifs"
7418 done
7419 : ${lt_cv_path_NM=no}
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7423 $as_echo "$lt_cv_path_NM" >&6; }
7424 if test "$lt_cv_path_NM" != "no"; then
7425 NM="$lt_cv_path_NM"
7426 else
7427 # Didn't find any BSD compatible name lister, look for dumpbin.
7428 if test -n "$DUMPBIN"; then :
7429 # Let the user override the test.
7430 else
7431 if test -n "$ac_tool_prefix"; then
7432 for ac_prog in dumpbin "link -dump"
7434 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7435 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437 $as_echo_n "checking for $ac_word... " >&6; }
7438 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7439 $as_echo_n "(cached) " >&6
7440 else
7441 if test -n "$DUMPBIN"; then
7442 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7443 else
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 for as_dir in $PATH
7447 IFS=$as_save_IFS
7448 test -z "$as_dir" && as_dir=.
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7451 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 break 2
7455 done
7456 done
7457 IFS=$as_save_IFS
7461 DUMPBIN=$ac_cv_prog_DUMPBIN
7462 if test -n "$DUMPBIN"; then
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7464 $as_echo "$DUMPBIN" >&6; }
7465 else
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467 $as_echo "no" >&6; }
7471 test -n "$DUMPBIN" && break
7472 done
7474 if test -z "$DUMPBIN"; then
7475 ac_ct_DUMPBIN=$DUMPBIN
7476 for ac_prog in dumpbin "link -dump"
7478 # Extract the first word of "$ac_prog", so it can be a program name with args.
7479 set dummy $ac_prog; ac_word=$2
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7481 $as_echo_n "checking for $ac_word... " >&6; }
7482 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7483 $as_echo_n "(cached) " >&6
7484 else
7485 if test -n "$ac_ct_DUMPBIN"; then
7486 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7487 else
7488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489 for as_dir in $PATH
7491 IFS=$as_save_IFS
7492 test -z "$as_dir" && as_dir=.
7493 for ac_exec_ext in '' $ac_executable_extensions; do
7494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7495 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7497 break 2
7499 done
7500 done
7501 IFS=$as_save_IFS
7505 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7506 if test -n "$ac_ct_DUMPBIN"; then
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7508 $as_echo "$ac_ct_DUMPBIN" >&6; }
7509 else
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7511 $as_echo "no" >&6; }
7515 test -n "$ac_ct_DUMPBIN" && break
7516 done
7518 if test "x$ac_ct_DUMPBIN" = x; then
7519 DUMPBIN=":"
7520 else
7521 case $cross_compiling:$ac_tool_warned in
7522 yes:)
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7525 ac_tool_warned=yes ;;
7526 esac
7527 DUMPBIN=$ac_ct_DUMPBIN
7531 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7532 *COFF*)
7533 DUMPBIN="$DUMPBIN -symbols"
7536 DUMPBIN=:
7538 esac
7541 if test "$DUMPBIN" != ":"; then
7542 NM="$DUMPBIN"
7545 test -z "$NM" && NM=nm
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7553 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7554 if test "${lt_cv_nm_interface+set}" = set; then :
7555 $as_echo_n "(cached) " >&6
7556 else
7557 lt_cv_nm_interface="BSD nm"
7558 echo "int some_variable = 0;" > conftest.$ac_ext
7559 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7560 (eval "$ac_compile" 2>conftest.err)
7561 cat conftest.err >&5
7562 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7563 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7564 cat conftest.err >&5
7565 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7566 cat conftest.out >&5
7567 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7568 lt_cv_nm_interface="MS dumpbin"
7570 rm -f conftest*
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7573 $as_echo "$lt_cv_nm_interface" >&6; }
7575 # find the maximum length of command line arguments
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7577 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7578 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7579 $as_echo_n "(cached) " >&6
7580 else
7582 teststring="ABCD"
7584 case $build_os in
7585 msdosdjgpp*)
7586 # On DJGPP, this test can blow up pretty badly due to problems in libc
7587 # (any single argument exceeding 2000 bytes causes a buffer overrun
7588 # during glob expansion). Even if it were fixed, the result of this
7589 # check would be larger than it should be.
7590 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7593 gnu*)
7594 # Under GNU Hurd, this test is not required because there is
7595 # no limit to the length of command line arguments.
7596 # Libtool will interpret -1 as no limit whatsoever
7597 lt_cv_sys_max_cmd_len=-1;
7600 cygwin* | mingw* | cegcc*)
7601 # On Win9x/ME, this test blows up -- it succeeds, but takes
7602 # about 5 minutes as the teststring grows exponentially.
7603 # Worse, since 9x/ME are not pre-emptively multitasking,
7604 # you end up with a "frozen" computer, even though with patience
7605 # the test eventually succeeds (with a max line length of 256k).
7606 # Instead, let's just punt: use the minimum linelength reported by
7607 # all of the supported platforms: 8192 (on NT/2K/XP).
7608 lt_cv_sys_max_cmd_len=8192;
7611 mint*)
7612 # On MiNT this can take a long time and run out of memory.
7613 lt_cv_sys_max_cmd_len=8192;
7616 amigaos*)
7617 # On AmigaOS with pdksh, this test takes hours, literally.
7618 # So we just punt and use a minimum line length of 8192.
7619 lt_cv_sys_max_cmd_len=8192;
7622 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7623 # This has been around since 386BSD, at least. Likely further.
7624 if test -x /sbin/sysctl; then
7625 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7626 elif test -x /usr/sbin/sysctl; then
7627 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7628 else
7629 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7631 # And add a safety zone
7632 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7633 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7636 interix*)
7637 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7638 lt_cv_sys_max_cmd_len=196608
7641 osf*)
7642 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7643 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7644 # nice to cause kernel panics so lets avoid the loop below.
7645 # First set a reasonable default.
7646 lt_cv_sys_max_cmd_len=16384
7648 if test -x /sbin/sysconfig; then
7649 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7650 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7651 esac
7654 sco3.2v5*)
7655 lt_cv_sys_max_cmd_len=102400
7657 sysv5* | sco5v6* | sysv4.2uw2*)
7658 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7659 if test -n "$kargmax"; then
7660 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7661 else
7662 lt_cv_sys_max_cmd_len=32768
7666 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7667 if test -n "$lt_cv_sys_max_cmd_len"; then
7668 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7669 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7670 else
7671 # Make teststring a little bigger before we do anything with it.
7672 # a 1K string should be a reasonable start.
7673 for i in 1 2 3 4 5 6 7 8 ; do
7674 teststring=$teststring$teststring
7675 done
7676 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7677 # If test is not a shell built-in, we'll probably end up computing a
7678 # maximum length that is only half of the actual maximum length, but
7679 # we can't tell.
7680 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7681 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7682 test $i != 17 # 1/2 MB should be enough
7684 i=`expr $i + 1`
7685 teststring=$teststring$teststring
7686 done
7687 # Only check the string length outside the loop.
7688 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7689 teststring=
7690 # Add a significant safety factor because C++ compilers can tack on
7691 # massive amounts of additional arguments before passing them to the
7692 # linker. It appears as though 1/2 is a usable value.
7693 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7696 esac
7700 if test -n $lt_cv_sys_max_cmd_len ; then
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7702 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7703 else
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7705 $as_echo "none" >&6; }
7707 max_cmd_len=$lt_cv_sys_max_cmd_len
7714 : ${CP="cp -f"}
7715 : ${MV="mv -f"}
7716 : ${RM="rm -f"}
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7719 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7720 # Try some XSI features
7721 xsi_shell=no
7722 ( _lt_dummy="a/b/c"
7723 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7724 = c,a/b,, \
7725 && eval 'test $(( 1 + 1 )) -eq 2 \
7726 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7727 && xsi_shell=yes
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7729 $as_echo "$xsi_shell" >&6; }
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7733 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7734 lt_shell_append=no
7735 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7736 >/dev/null 2>&1 \
7737 && lt_shell_append=yes
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7739 $as_echo "$lt_shell_append" >&6; }
7742 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7743 lt_unset=unset
7744 else
7745 lt_unset=false
7752 # test EBCDIC or ASCII
7753 case `echo X|tr X '\101'` in
7754 A) # ASCII based system
7755 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7756 lt_SP2NL='tr \040 \012'
7757 lt_NL2SP='tr \015\012 \040\040'
7759 *) # EBCDIC based system
7760 lt_SP2NL='tr \100 \n'
7761 lt_NL2SP='tr \r\n \100\100'
7763 esac
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7774 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7775 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7776 $as_echo_n "(cached) " >&6
7777 else
7778 lt_cv_ld_reload_flag='-r'
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7781 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7782 reload_flag=$lt_cv_ld_reload_flag
7783 case $reload_flag in
7784 "" | " "*) ;;
7785 *) reload_flag=" $reload_flag" ;;
7786 esac
7787 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7788 case $host_os in
7789 darwin*)
7790 if test "$GCC" = yes; then
7791 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7792 else
7793 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7796 esac
7806 if test -n "$ac_tool_prefix"; then
7807 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7808 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7810 $as_echo_n "checking for $ac_word... " >&6; }
7811 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7812 $as_echo_n "(cached) " >&6
7813 else
7814 if test -n "$OBJDUMP"; then
7815 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7816 else
7817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7818 for as_dir in $PATH
7820 IFS=$as_save_IFS
7821 test -z "$as_dir" && as_dir=.
7822 for ac_exec_ext in '' $ac_executable_extensions; do
7823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7824 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7826 break 2
7828 done
7829 done
7830 IFS=$as_save_IFS
7834 OBJDUMP=$ac_cv_prog_OBJDUMP
7835 if test -n "$OBJDUMP"; then
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7837 $as_echo "$OBJDUMP" >&6; }
7838 else
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7840 $as_echo "no" >&6; }
7845 if test -z "$ac_cv_prog_OBJDUMP"; then
7846 ac_ct_OBJDUMP=$OBJDUMP
7847 # Extract the first word of "objdump", so it can be a program name with args.
7848 set dummy objdump; ac_word=$2
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7850 $as_echo_n "checking for $ac_word... " >&6; }
7851 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7852 $as_echo_n "(cached) " >&6
7853 else
7854 if test -n "$ac_ct_OBJDUMP"; then
7855 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7856 else
7857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858 for as_dir in $PATH
7860 IFS=$as_save_IFS
7861 test -z "$as_dir" && as_dir=.
7862 for ac_exec_ext in '' $ac_executable_extensions; do
7863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7864 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7866 break 2
7868 done
7869 done
7870 IFS=$as_save_IFS
7874 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7875 if test -n "$ac_ct_OBJDUMP"; then
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7877 $as_echo "$ac_ct_OBJDUMP" >&6; }
7878 else
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7880 $as_echo "no" >&6; }
7883 if test "x$ac_ct_OBJDUMP" = x; then
7884 OBJDUMP="false"
7885 else
7886 case $cross_compiling:$ac_tool_warned in
7887 yes:)
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7890 ac_tool_warned=yes ;;
7891 esac
7892 OBJDUMP=$ac_ct_OBJDUMP
7894 else
7895 OBJDUMP="$ac_cv_prog_OBJDUMP"
7898 test -z "$OBJDUMP" && OBJDUMP=objdump
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7909 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7910 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7911 $as_echo_n "(cached) " >&6
7912 else
7913 lt_cv_file_magic_cmd='$MAGIC_CMD'
7914 lt_cv_file_magic_test_file=
7915 lt_cv_deplibs_check_method='unknown'
7916 # Need to set the preceding variable on all platforms that support
7917 # interlibrary dependencies.
7918 # 'none' -- dependencies not supported.
7919 # `unknown' -- same as none, but documents that we really don't know.
7920 # 'pass_all' -- all dependencies passed with no checks.
7921 # 'test_compile' -- check by making test program.
7922 # 'file_magic [[regex]]' -- check by looking for files in library path
7923 # which responds to the $file_magic_cmd with a given extended regex.
7924 # If you have `file' or equivalent on your system and you're not sure
7925 # whether `pass_all' will *always* work, you probably want this one.
7927 case $host_os in
7928 aix[4-9]*)
7929 lt_cv_deplibs_check_method=pass_all
7932 beos*)
7933 lt_cv_deplibs_check_method=pass_all
7936 bsdi[45]*)
7937 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7938 lt_cv_file_magic_cmd='/usr/bin/file -L'
7939 lt_cv_file_magic_test_file=/shlib/libc.so
7942 cygwin*)
7943 # func_win32_libid is a shell function defined in ltmain.sh
7944 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7945 lt_cv_file_magic_cmd='func_win32_libid'
7948 mingw* | pw32*)
7949 # Base MSYS/MinGW do not provide the 'file' command needed by
7950 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7951 # unless we find 'file', for example because we are cross-compiling.
7952 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7953 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7954 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7955 lt_cv_file_magic_cmd='func_win32_libid'
7956 else
7957 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7958 lt_cv_file_magic_cmd='$OBJDUMP -f'
7962 cegcc*)
7963 # use the weaker test based on 'objdump'. See mingw*.
7964 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7965 lt_cv_file_magic_cmd='$OBJDUMP -f'
7968 darwin* | rhapsody*)
7969 lt_cv_deplibs_check_method=pass_all
7972 freebsd* | dragonfly*)
7973 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7974 case $host_cpu in
7975 i*86 )
7976 # Not sure whether the presence of OpenBSD here was a mistake.
7977 # Let's accept both of them until this is cleared up.
7978 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7979 lt_cv_file_magic_cmd=/usr/bin/file
7980 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7982 esac
7983 else
7984 lt_cv_deplibs_check_method=pass_all
7988 gnu*)
7989 lt_cv_deplibs_check_method=pass_all
7992 haiku*)
7993 lt_cv_deplibs_check_method=pass_all
7996 hpux10.20* | hpux11*)
7997 lt_cv_file_magic_cmd=/usr/bin/file
7998 case $host_cpu in
7999 ia64*)
8000 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8001 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8003 hppa*64*)
8004 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]'
8005 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8008 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8009 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8011 esac
8014 interix[3-9]*)
8015 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8016 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8019 irix5* | irix6* | nonstopux*)
8020 case $LD in
8021 *-32|*"-32 ") libmagic=32-bit;;
8022 *-n32|*"-n32 ") libmagic=N32;;
8023 *-64|*"-64 ") libmagic=64-bit;;
8024 *) libmagic=never-match;;
8025 esac
8026 lt_cv_deplibs_check_method=pass_all
8029 # This must be Linux ELF.
8030 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8031 lt_cv_deplibs_check_method=pass_all
8034 netbsd*)
8035 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8036 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8037 else
8038 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8042 newos6*)
8043 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8044 lt_cv_file_magic_cmd=/usr/bin/file
8045 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8048 *nto* | *qnx*)
8049 lt_cv_deplibs_check_method=pass_all
8052 openbsd*)
8053 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8054 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8055 else
8056 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8060 osf3* | osf4* | osf5*)
8061 lt_cv_deplibs_check_method=pass_all
8064 rdos*)
8065 lt_cv_deplibs_check_method=pass_all
8068 solaris*)
8069 lt_cv_deplibs_check_method=pass_all
8072 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8073 lt_cv_deplibs_check_method=pass_all
8076 sysv4 | sysv4.3*)
8077 case $host_vendor in
8078 motorola)
8079 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]'
8080 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8082 ncr)
8083 lt_cv_deplibs_check_method=pass_all
8085 sequent)
8086 lt_cv_file_magic_cmd='/bin/file'
8087 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8089 sni)
8090 lt_cv_file_magic_cmd='/bin/file'
8091 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8092 lt_cv_file_magic_test_file=/lib/libc.so
8094 siemens)
8095 lt_cv_deplibs_check_method=pass_all
8098 lt_cv_deplibs_check_method=pass_all
8100 esac
8103 tpf*)
8104 lt_cv_deplibs_check_method=pass_all
8106 esac
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8110 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8111 file_magic_cmd=$lt_cv_file_magic_cmd
8112 deplibs_check_method=$lt_cv_deplibs_check_method
8113 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8126 if test -n "$ac_tool_prefix"; then
8127 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8128 set dummy ${ac_tool_prefix}ar; ac_word=$2
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8130 $as_echo_n "checking for $ac_word... " >&6; }
8131 if test "${ac_cv_prog_AR+set}" = set; then :
8132 $as_echo_n "(cached) " >&6
8133 else
8134 if test -n "$AR"; then
8135 ac_cv_prog_AR="$AR" # Let the user override the test.
8136 else
8137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8138 for as_dir in $PATH
8140 IFS=$as_save_IFS
8141 test -z "$as_dir" && as_dir=.
8142 for ac_exec_ext in '' $ac_executable_extensions; do
8143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8144 ac_cv_prog_AR="${ac_tool_prefix}ar"
8145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8146 break 2
8148 done
8149 done
8150 IFS=$as_save_IFS
8154 AR=$ac_cv_prog_AR
8155 if test -n "$AR"; then
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8157 $as_echo "$AR" >&6; }
8158 else
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160 $as_echo "no" >&6; }
8165 if test -z "$ac_cv_prog_AR"; then
8166 ac_ct_AR=$AR
8167 # Extract the first word of "ar", so it can be a program name with args.
8168 set dummy ar; ac_word=$2
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8170 $as_echo_n "checking for $ac_word... " >&6; }
8171 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8172 $as_echo_n "(cached) " >&6
8173 else
8174 if test -n "$ac_ct_AR"; then
8175 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8176 else
8177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8178 for as_dir in $PATH
8180 IFS=$as_save_IFS
8181 test -z "$as_dir" && as_dir=.
8182 for ac_exec_ext in '' $ac_executable_extensions; do
8183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8184 ac_cv_prog_ac_ct_AR="ar"
8185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8186 break 2
8188 done
8189 done
8190 IFS=$as_save_IFS
8194 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8195 if test -n "$ac_ct_AR"; then
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8197 $as_echo "$ac_ct_AR" >&6; }
8198 else
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8200 $as_echo "no" >&6; }
8203 if test "x$ac_ct_AR" = x; then
8204 AR="false"
8205 else
8206 case $cross_compiling:$ac_tool_warned in
8207 yes:)
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8210 ac_tool_warned=yes ;;
8211 esac
8212 AR=$ac_ct_AR
8214 else
8215 AR="$ac_cv_prog_AR"
8218 test -z "$AR" && AR=ar
8219 test -z "$AR_FLAGS" && AR_FLAGS=cru
8231 if test -n "$ac_tool_prefix"; then
8232 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8233 set dummy ${ac_tool_prefix}strip; ac_word=$2
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8235 $as_echo_n "checking for $ac_word... " >&6; }
8236 if test "${ac_cv_prog_STRIP+set}" = set; then :
8237 $as_echo_n "(cached) " >&6
8238 else
8239 if test -n "$STRIP"; then
8240 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8241 else
8242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8243 for as_dir in $PATH
8245 IFS=$as_save_IFS
8246 test -z "$as_dir" && as_dir=.
8247 for ac_exec_ext in '' $ac_executable_extensions; do
8248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8249 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8251 break 2
8253 done
8254 done
8255 IFS=$as_save_IFS
8259 STRIP=$ac_cv_prog_STRIP
8260 if test -n "$STRIP"; then
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8262 $as_echo "$STRIP" >&6; }
8263 else
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8265 $as_echo "no" >&6; }
8270 if test -z "$ac_cv_prog_STRIP"; then
8271 ac_ct_STRIP=$STRIP
8272 # Extract the first word of "strip", so it can be a program name with args.
8273 set dummy strip; ac_word=$2
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8275 $as_echo_n "checking for $ac_word... " >&6; }
8276 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8277 $as_echo_n "(cached) " >&6
8278 else
8279 if test -n "$ac_ct_STRIP"; then
8280 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8281 else
8282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8283 for as_dir in $PATH
8285 IFS=$as_save_IFS
8286 test -z "$as_dir" && as_dir=.
8287 for ac_exec_ext in '' $ac_executable_extensions; do
8288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8289 ac_cv_prog_ac_ct_STRIP="strip"
8290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8291 break 2
8293 done
8294 done
8295 IFS=$as_save_IFS
8299 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8300 if test -n "$ac_ct_STRIP"; then
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8302 $as_echo "$ac_ct_STRIP" >&6; }
8303 else
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305 $as_echo "no" >&6; }
8308 if test "x$ac_ct_STRIP" = x; then
8309 STRIP=":"
8310 else
8311 case $cross_compiling:$ac_tool_warned in
8312 yes:)
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8315 ac_tool_warned=yes ;;
8316 esac
8317 STRIP=$ac_ct_STRIP
8319 else
8320 STRIP="$ac_cv_prog_STRIP"
8323 test -z "$STRIP" && STRIP=:
8330 if test -n "$ac_tool_prefix"; then
8331 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8332 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8334 $as_echo_n "checking for $ac_word... " >&6; }
8335 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8336 $as_echo_n "(cached) " >&6
8337 else
8338 if test -n "$RANLIB"; then
8339 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8340 else
8341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8342 for as_dir in $PATH
8344 IFS=$as_save_IFS
8345 test -z "$as_dir" && as_dir=.
8346 for ac_exec_ext in '' $ac_executable_extensions; do
8347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8348 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8350 break 2
8352 done
8353 done
8354 IFS=$as_save_IFS
8358 RANLIB=$ac_cv_prog_RANLIB
8359 if test -n "$RANLIB"; then
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8361 $as_echo "$RANLIB" >&6; }
8362 else
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364 $as_echo "no" >&6; }
8369 if test -z "$ac_cv_prog_RANLIB"; then
8370 ac_ct_RANLIB=$RANLIB
8371 # Extract the first word of "ranlib", so it can be a program name with args.
8372 set dummy ranlib; ac_word=$2
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8374 $as_echo_n "checking for $ac_word... " >&6; }
8375 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8376 $as_echo_n "(cached) " >&6
8377 else
8378 if test -n "$ac_ct_RANLIB"; then
8379 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8380 else
8381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8382 for as_dir in $PATH
8384 IFS=$as_save_IFS
8385 test -z "$as_dir" && as_dir=.
8386 for ac_exec_ext in '' $ac_executable_extensions; do
8387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8388 ac_cv_prog_ac_ct_RANLIB="ranlib"
8389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8390 break 2
8392 done
8393 done
8394 IFS=$as_save_IFS
8398 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8399 if test -n "$ac_ct_RANLIB"; then
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8401 $as_echo "$ac_ct_RANLIB" >&6; }
8402 else
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8404 $as_echo "no" >&6; }
8407 if test "x$ac_ct_RANLIB" = x; then
8408 RANLIB=":"
8409 else
8410 case $cross_compiling:$ac_tool_warned in
8411 yes:)
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8414 ac_tool_warned=yes ;;
8415 esac
8416 RANLIB=$ac_ct_RANLIB
8418 else
8419 RANLIB="$ac_cv_prog_RANLIB"
8422 test -z "$RANLIB" && RANLIB=:
8429 # Determine commands to create old-style static archives.
8430 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8431 old_postinstall_cmds='chmod 644 $oldlib'
8432 old_postuninstall_cmds=
8434 if test -n "$RANLIB"; then
8435 case $host_os in
8436 openbsd*)
8437 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8440 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8442 esac
8443 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8446 case $host_os in
8447 darwin*)
8448 lock_old_archive_extraction=yes ;;
8450 lock_old_archive_extraction=no ;;
8451 esac
8491 # If no C compiler was specified, use CC.
8492 LTCC=${LTCC-"$CC"}
8494 # If no C compiler flags were specified, use CFLAGS.
8495 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8497 # Allow CC to be a program name with arguments.
8498 compiler=$CC
8501 # Check for command to grab the raw symbol name followed by C symbol from nm.
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8503 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8504 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8505 $as_echo_n "(cached) " >&6
8506 else
8508 # These are sane defaults that work on at least a few old systems.
8509 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8511 # Character class describing NM global symbol codes.
8512 symcode='[BCDEGRST]'
8514 # Regexp to match symbols that can be accessed directly from C.
8515 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8517 # Define system-specific variables.
8518 case $host_os in
8519 aix*)
8520 symcode='[BCDT]'
8522 cygwin* | mingw* | pw32* | cegcc*)
8523 symcode='[ABCDGISTW]'
8525 hpux*)
8526 if test "$host_cpu" = ia64; then
8527 symcode='[ABCDEGRST]'
8530 irix* | nonstopux*)
8531 symcode='[BCDEGRST]'
8533 osf*)
8534 symcode='[BCDEGQRST]'
8536 solaris*)
8537 symcode='[BDRT]'
8539 sco3.2v5*)
8540 symcode='[DT]'
8542 sysv4.2uw2*)
8543 symcode='[DT]'
8545 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8546 symcode='[ABDT]'
8548 sysv4)
8549 symcode='[DFNSTU]'
8551 esac
8553 # If we're using GNU nm, then use its standard symbol codes.
8554 case `$NM -V 2>&1` in
8555 *GNU* | *'with BFD'*)
8556 symcode='[ABCDGIRSTW]' ;;
8557 esac
8559 # Transform an extracted symbol line into a proper C declaration.
8560 # Some systems (esp. on ia64) link data and code symbols differently,
8561 # so use this general approach.
8562 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8564 # Transform an extracted symbol line into symbol name and symbol address
8565 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8566 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'"
8568 # Handle CRLF in mingw tool chain
8569 opt_cr=
8570 case $build_os in
8571 mingw*)
8572 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8574 esac
8576 # Try without a prefix underscore, then with it.
8577 for ac_symprfx in "" "_"; do
8579 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8580 symxfrm="\\1 $ac_symprfx\\2 \\2"
8582 # Write the raw and C identifiers.
8583 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8584 # Fake it for dumpbin and say T for any non-static function
8585 # and D for any global variable.
8586 # Also find C++ and __fastcall symbols from MSVC++,
8587 # which start with @ or ?.
8588 lt_cv_sys_global_symbol_pipe="$AWK '"\
8589 " {last_section=section; section=\$ 3};"\
8590 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8591 " \$ 0!~/External *\|/{next};"\
8592 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8593 " {if(hide[section]) next};"\
8594 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8595 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8596 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8597 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8598 " ' prfx=^$ac_symprfx"
8599 else
8600 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8603 # Check to see that the pipe works correctly.
8604 pipe_works=no
8606 rm -f conftest*
8607 cat > conftest.$ac_ext <<_LT_EOF
8608 #ifdef __cplusplus
8609 extern "C" {
8610 #endif
8611 char nm_test_var;
8612 void nm_test_func(void);
8613 void nm_test_func(void){}
8614 #ifdef __cplusplus
8616 #endif
8617 int main(){nm_test_var='a';nm_test_func();return(0);}
8618 _LT_EOF
8620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8621 (eval $ac_compile) 2>&5
8622 ac_status=$?
8623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8624 test $ac_status = 0; }; then
8625 # Now try to grab the symbols.
8626 nlist=conftest.nm
8627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8628 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8629 ac_status=$?
8630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8631 test $ac_status = 0; } && test -s "$nlist"; then
8632 # Try sorting and uniquifying the output.
8633 if sort "$nlist" | uniq > "$nlist"T; then
8634 mv -f "$nlist"T "$nlist"
8635 else
8636 rm -f "$nlist"T
8639 # Make sure that we snagged all the symbols we need.
8640 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8641 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8642 cat <<_LT_EOF > conftest.$ac_ext
8643 #ifdef __cplusplus
8644 extern "C" {
8645 #endif
8647 _LT_EOF
8648 # Now generate the symbol file.
8649 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8651 cat <<_LT_EOF >> conftest.$ac_ext
8653 /* The mapping between symbol names and symbols. */
8654 const struct {
8655 const char *name;
8656 void *address;
8658 lt__PROGRAM__LTX_preloaded_symbols[] =
8660 { "@PROGRAM@", (void *) 0 },
8661 _LT_EOF
8662 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8663 cat <<\_LT_EOF >> conftest.$ac_ext
8664 {0, (void *) 0}
8667 /* This works around a problem in FreeBSD linker */
8668 #ifdef FREEBSD_WORKAROUND
8669 static const void *lt_preloaded_setup() {
8670 return lt__PROGRAM__LTX_preloaded_symbols;
8672 #endif
8674 #ifdef __cplusplus
8676 #endif
8677 _LT_EOF
8678 # Now try linking the two files.
8679 mv conftest.$ac_objext conftstm.$ac_objext
8680 lt_save_LIBS="$LIBS"
8681 lt_save_CFLAGS="$CFLAGS"
8682 LIBS="conftstm.$ac_objext"
8683 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8685 (eval $ac_link) 2>&5
8686 ac_status=$?
8687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8688 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8689 pipe_works=yes
8691 LIBS="$lt_save_LIBS"
8692 CFLAGS="$lt_save_CFLAGS"
8693 else
8694 echo "cannot find nm_test_func in $nlist" >&5
8696 else
8697 echo "cannot find nm_test_var in $nlist" >&5
8699 else
8700 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8702 else
8703 echo "$progname: failed program was:" >&5
8704 cat conftest.$ac_ext >&5
8706 rm -rf conftest* conftst*
8708 # Do not use the global_symbol_pipe unless it works.
8709 if test "$pipe_works" = yes; then
8710 break
8711 else
8712 lt_cv_sys_global_symbol_pipe=
8714 done
8718 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8719 lt_cv_sys_global_symbol_to_cdecl=
8721 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8723 $as_echo "failed" >&6; }
8724 else
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8726 $as_echo "ok" >&6; }
8751 # Check whether --enable-libtool-lock was given.
8752 if test "${enable_libtool_lock+set}" = set; then :
8753 enableval=$enable_libtool_lock;
8756 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8758 # Some flags need to be propagated to the compiler or linker for good
8759 # libtool support.
8760 case $host in
8761 ia64-*-hpux*)
8762 # Find out which ABI we are using.
8763 echo 'int i;' > conftest.$ac_ext
8764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8765 (eval $ac_compile) 2>&5
8766 ac_status=$?
8767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8768 test $ac_status = 0; }; then
8769 case `/usr/bin/file conftest.$ac_objext` in
8770 *ELF-32*)
8771 HPUX_IA64_MODE="32"
8773 *ELF-64*)
8774 HPUX_IA64_MODE="64"
8776 esac
8778 rm -rf conftest*
8780 *-*-irix6*)
8781 # Find out which ABI we are using.
8782 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8784 (eval $ac_compile) 2>&5
8785 ac_status=$?
8786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8787 test $ac_status = 0; }; then
8788 if test "$lt_cv_prog_gnu_ld" = yes; then
8789 case `/usr/bin/file conftest.$ac_objext` in
8790 *32-bit*)
8791 LD="${LD-ld} -melf32bsmip"
8793 *N32*)
8794 LD="${LD-ld} -melf32bmipn32"
8796 *64-bit*)
8797 LD="${LD-ld} -melf64bmip"
8799 esac
8800 else
8801 case `/usr/bin/file conftest.$ac_objext` in
8802 *32-bit*)
8803 LD="${LD-ld} -32"
8805 *N32*)
8806 LD="${LD-ld} -n32"
8808 *64-bit*)
8809 LD="${LD-ld} -64"
8811 esac
8814 rm -rf conftest*
8817 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8818 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8819 # Find out which ABI we are using.
8820 echo 'int i;' > conftest.$ac_ext
8821 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8822 (eval $ac_compile) 2>&5
8823 ac_status=$?
8824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8825 test $ac_status = 0; }; then
8826 case `/usr/bin/file conftest.o` in
8827 *32-bit*)
8828 case $host in
8829 x86_64-*kfreebsd*-gnu)
8830 LD="${LD-ld} -m elf_i386_fbsd"
8832 x86_64-*linux*)
8833 LD="${LD-ld} -m elf_i386"
8835 ppc64-*linux*|powerpc64-*linux*)
8836 LD="${LD-ld} -m elf32ppclinux"
8838 s390x-*linux*)
8839 LD="${LD-ld} -m elf_s390"
8841 sparc64-*linux*)
8842 LD="${LD-ld} -m elf32_sparc"
8844 esac
8846 *64-bit*)
8847 case $host in
8848 x86_64-*kfreebsd*-gnu)
8849 LD="${LD-ld} -m elf_x86_64_fbsd"
8851 x86_64-*linux*)
8852 LD="${LD-ld} -m elf_x86_64"
8854 ppc*-*linux*|powerpc*-*linux*)
8855 LD="${LD-ld} -m elf64ppc"
8857 s390*-*linux*|s390*-*tpf*)
8858 LD="${LD-ld} -m elf64_s390"
8860 sparc*-*linux*)
8861 LD="${LD-ld} -m elf64_sparc"
8863 esac
8865 esac
8867 rm -rf conftest*
8870 *-*-sco3.2v5*)
8871 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8872 SAVE_CFLAGS="$CFLAGS"
8873 CFLAGS="$CFLAGS -belf"
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8875 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8876 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8877 $as_echo_n "(cached) " >&6
8878 else
8879 ac_ext=c
8880 ac_cpp='$CPP $CPPFLAGS'
8881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8885 if test x$gcc_no_link = xyes; then
8886 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8889 /* end confdefs.h. */
8892 main ()
8896 return 0;
8898 _ACEOF
8899 if ac_fn_c_try_link "$LINENO"; then :
8900 lt_cv_cc_needs_belf=yes
8901 else
8902 lt_cv_cc_needs_belf=no
8904 rm -f core conftest.err conftest.$ac_objext \
8905 conftest$ac_exeext conftest.$ac_ext
8906 ac_ext=c
8907 ac_cpp='$CPP $CPPFLAGS'
8908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8914 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8915 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8916 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8917 CFLAGS="$SAVE_CFLAGS"
8920 sparc*-*solaris*)
8921 # Find out which ABI we are using.
8922 echo 'int i;' > conftest.$ac_ext
8923 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8924 (eval $ac_compile) 2>&5
8925 ac_status=$?
8926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8927 test $ac_status = 0; }; then
8928 case `/usr/bin/file conftest.o` in
8929 *64-bit*)
8930 case $lt_cv_prog_gnu_ld in
8931 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8933 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8934 LD="${LD-ld} -64"
8937 esac
8939 esac
8941 rm -rf conftest*
8943 esac
8945 need_locks="$enable_libtool_lock"
8948 case $host_os in
8949 rhapsody* | darwin*)
8950 if test -n "$ac_tool_prefix"; then
8951 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8952 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8954 $as_echo_n "checking for $ac_word... " >&6; }
8955 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8956 $as_echo_n "(cached) " >&6
8957 else
8958 if test -n "$DSYMUTIL"; then
8959 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8960 else
8961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8962 for as_dir in $PATH
8964 IFS=$as_save_IFS
8965 test -z "$as_dir" && as_dir=.
8966 for ac_exec_ext in '' $ac_executable_extensions; do
8967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8968 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8970 break 2
8972 done
8973 done
8974 IFS=$as_save_IFS
8978 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8979 if test -n "$DSYMUTIL"; then
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8981 $as_echo "$DSYMUTIL" >&6; }
8982 else
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8984 $as_echo "no" >&6; }
8989 if test -z "$ac_cv_prog_DSYMUTIL"; then
8990 ac_ct_DSYMUTIL=$DSYMUTIL
8991 # Extract the first word of "dsymutil", so it can be a program name with args.
8992 set dummy dsymutil; ac_word=$2
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8994 $as_echo_n "checking for $ac_word... " >&6; }
8995 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8996 $as_echo_n "(cached) " >&6
8997 else
8998 if test -n "$ac_ct_DSYMUTIL"; then
8999 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9000 else
9001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9002 for as_dir in $PATH
9004 IFS=$as_save_IFS
9005 test -z "$as_dir" && as_dir=.
9006 for ac_exec_ext in '' $ac_executable_extensions; do
9007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9008 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9010 break 2
9012 done
9013 done
9014 IFS=$as_save_IFS
9018 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9019 if test -n "$ac_ct_DSYMUTIL"; then
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9021 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9022 else
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9024 $as_echo "no" >&6; }
9027 if test "x$ac_ct_DSYMUTIL" = x; then
9028 DSYMUTIL=":"
9029 else
9030 case $cross_compiling:$ac_tool_warned in
9031 yes:)
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9034 ac_tool_warned=yes ;;
9035 esac
9036 DSYMUTIL=$ac_ct_DSYMUTIL
9038 else
9039 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9042 if test -n "$ac_tool_prefix"; then
9043 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9044 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9046 $as_echo_n "checking for $ac_word... " >&6; }
9047 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
9048 $as_echo_n "(cached) " >&6
9049 else
9050 if test -n "$NMEDIT"; then
9051 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9052 else
9053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9054 for as_dir in $PATH
9056 IFS=$as_save_IFS
9057 test -z "$as_dir" && as_dir=.
9058 for ac_exec_ext in '' $ac_executable_extensions; do
9059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9060 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9062 break 2
9064 done
9065 done
9066 IFS=$as_save_IFS
9070 NMEDIT=$ac_cv_prog_NMEDIT
9071 if test -n "$NMEDIT"; then
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9073 $as_echo "$NMEDIT" >&6; }
9074 else
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9076 $as_echo "no" >&6; }
9081 if test -z "$ac_cv_prog_NMEDIT"; then
9082 ac_ct_NMEDIT=$NMEDIT
9083 # Extract the first word of "nmedit", so it can be a program name with args.
9084 set dummy nmedit; ac_word=$2
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9086 $as_echo_n "checking for $ac_word... " >&6; }
9087 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9088 $as_echo_n "(cached) " >&6
9089 else
9090 if test -n "$ac_ct_NMEDIT"; then
9091 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9092 else
9093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9094 for as_dir in $PATH
9096 IFS=$as_save_IFS
9097 test -z "$as_dir" && as_dir=.
9098 for ac_exec_ext in '' $ac_executable_extensions; do
9099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9100 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9102 break 2
9104 done
9105 done
9106 IFS=$as_save_IFS
9110 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9111 if test -n "$ac_ct_NMEDIT"; then
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9113 $as_echo "$ac_ct_NMEDIT" >&6; }
9114 else
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9116 $as_echo "no" >&6; }
9119 if test "x$ac_ct_NMEDIT" = x; then
9120 NMEDIT=":"
9121 else
9122 case $cross_compiling:$ac_tool_warned in
9123 yes:)
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9126 ac_tool_warned=yes ;;
9127 esac
9128 NMEDIT=$ac_ct_NMEDIT
9130 else
9131 NMEDIT="$ac_cv_prog_NMEDIT"
9134 if test -n "$ac_tool_prefix"; then
9135 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9136 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9138 $as_echo_n "checking for $ac_word... " >&6; }
9139 if test "${ac_cv_prog_LIPO+set}" = set; then :
9140 $as_echo_n "(cached) " >&6
9141 else
9142 if test -n "$LIPO"; then
9143 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9144 else
9145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9146 for as_dir in $PATH
9148 IFS=$as_save_IFS
9149 test -z "$as_dir" && as_dir=.
9150 for ac_exec_ext in '' $ac_executable_extensions; do
9151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9152 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9154 break 2
9156 done
9157 done
9158 IFS=$as_save_IFS
9162 LIPO=$ac_cv_prog_LIPO
9163 if test -n "$LIPO"; then
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9165 $as_echo "$LIPO" >&6; }
9166 else
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9168 $as_echo "no" >&6; }
9173 if test -z "$ac_cv_prog_LIPO"; then
9174 ac_ct_LIPO=$LIPO
9175 # Extract the first word of "lipo", so it can be a program name with args.
9176 set dummy lipo; ac_word=$2
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9178 $as_echo_n "checking for $ac_word... " >&6; }
9179 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9180 $as_echo_n "(cached) " >&6
9181 else
9182 if test -n "$ac_ct_LIPO"; then
9183 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9184 else
9185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9186 for as_dir in $PATH
9188 IFS=$as_save_IFS
9189 test -z "$as_dir" && as_dir=.
9190 for ac_exec_ext in '' $ac_executable_extensions; do
9191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9192 ac_cv_prog_ac_ct_LIPO="lipo"
9193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9194 break 2
9196 done
9197 done
9198 IFS=$as_save_IFS
9202 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9203 if test -n "$ac_ct_LIPO"; then
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9205 $as_echo "$ac_ct_LIPO" >&6; }
9206 else
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9208 $as_echo "no" >&6; }
9211 if test "x$ac_ct_LIPO" = x; then
9212 LIPO=":"
9213 else
9214 case $cross_compiling:$ac_tool_warned in
9215 yes:)
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9218 ac_tool_warned=yes ;;
9219 esac
9220 LIPO=$ac_ct_LIPO
9222 else
9223 LIPO="$ac_cv_prog_LIPO"
9226 if test -n "$ac_tool_prefix"; then
9227 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9228 set dummy ${ac_tool_prefix}otool; ac_word=$2
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9230 $as_echo_n "checking for $ac_word... " >&6; }
9231 if test "${ac_cv_prog_OTOOL+set}" = set; then :
9232 $as_echo_n "(cached) " >&6
9233 else
9234 if test -n "$OTOOL"; then
9235 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9236 else
9237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9238 for as_dir in $PATH
9240 IFS=$as_save_IFS
9241 test -z "$as_dir" && as_dir=.
9242 for ac_exec_ext in '' $ac_executable_extensions; do
9243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9244 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9246 break 2
9248 done
9249 done
9250 IFS=$as_save_IFS
9254 OTOOL=$ac_cv_prog_OTOOL
9255 if test -n "$OTOOL"; then
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9257 $as_echo "$OTOOL" >&6; }
9258 else
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9260 $as_echo "no" >&6; }
9265 if test -z "$ac_cv_prog_OTOOL"; then
9266 ac_ct_OTOOL=$OTOOL
9267 # Extract the first word of "otool", so it can be a program name with args.
9268 set dummy otool; ac_word=$2
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9270 $as_echo_n "checking for $ac_word... " >&6; }
9271 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9272 $as_echo_n "(cached) " >&6
9273 else
9274 if test -n "$ac_ct_OTOOL"; then
9275 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9276 else
9277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9278 for as_dir in $PATH
9280 IFS=$as_save_IFS
9281 test -z "$as_dir" && as_dir=.
9282 for ac_exec_ext in '' $ac_executable_extensions; do
9283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9284 ac_cv_prog_ac_ct_OTOOL="otool"
9285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9286 break 2
9288 done
9289 done
9290 IFS=$as_save_IFS
9294 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9295 if test -n "$ac_ct_OTOOL"; then
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9297 $as_echo "$ac_ct_OTOOL" >&6; }
9298 else
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9300 $as_echo "no" >&6; }
9303 if test "x$ac_ct_OTOOL" = x; then
9304 OTOOL=":"
9305 else
9306 case $cross_compiling:$ac_tool_warned in
9307 yes:)
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9310 ac_tool_warned=yes ;;
9311 esac
9312 OTOOL=$ac_ct_OTOOL
9314 else
9315 OTOOL="$ac_cv_prog_OTOOL"
9318 if test -n "$ac_tool_prefix"; then
9319 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9320 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9322 $as_echo_n "checking for $ac_word... " >&6; }
9323 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9324 $as_echo_n "(cached) " >&6
9325 else
9326 if test -n "$OTOOL64"; then
9327 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9328 else
9329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9330 for as_dir in $PATH
9332 IFS=$as_save_IFS
9333 test -z "$as_dir" && as_dir=.
9334 for ac_exec_ext in '' $ac_executable_extensions; do
9335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9336 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9338 break 2
9340 done
9341 done
9342 IFS=$as_save_IFS
9346 OTOOL64=$ac_cv_prog_OTOOL64
9347 if test -n "$OTOOL64"; then
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9349 $as_echo "$OTOOL64" >&6; }
9350 else
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9352 $as_echo "no" >&6; }
9357 if test -z "$ac_cv_prog_OTOOL64"; then
9358 ac_ct_OTOOL64=$OTOOL64
9359 # Extract the first word of "otool64", so it can be a program name with args.
9360 set dummy otool64; ac_word=$2
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9362 $as_echo_n "checking for $ac_word... " >&6; }
9363 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9364 $as_echo_n "(cached) " >&6
9365 else
9366 if test -n "$ac_ct_OTOOL64"; then
9367 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9368 else
9369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9370 for as_dir in $PATH
9372 IFS=$as_save_IFS
9373 test -z "$as_dir" && as_dir=.
9374 for ac_exec_ext in '' $ac_executable_extensions; do
9375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9376 ac_cv_prog_ac_ct_OTOOL64="otool64"
9377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9378 break 2
9380 done
9381 done
9382 IFS=$as_save_IFS
9386 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9387 if test -n "$ac_ct_OTOOL64"; then
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9389 $as_echo "$ac_ct_OTOOL64" >&6; }
9390 else
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9392 $as_echo "no" >&6; }
9395 if test "x$ac_ct_OTOOL64" = x; then
9396 OTOOL64=":"
9397 else
9398 case $cross_compiling:$ac_tool_warned in
9399 yes:)
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9402 ac_tool_warned=yes ;;
9403 esac
9404 OTOOL64=$ac_ct_OTOOL64
9406 else
9407 OTOOL64="$ac_cv_prog_OTOOL64"
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9437 $as_echo_n "checking for -single_module linker flag... " >&6; }
9438 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9439 $as_echo_n "(cached) " >&6
9440 else
9441 lt_cv_apple_cc_single_mod=no
9442 if test -z "${LT_MULTI_MODULE}"; then
9443 # By default we will add the -single_module flag. You can override
9444 # by either setting the environment variable LT_MULTI_MODULE
9445 # non-empty at configure time, or by adding -multi_module to the
9446 # link flags.
9447 rm -rf libconftest.dylib*
9448 echo "int foo(void){return 1;}" > conftest.c
9449 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9450 -dynamiclib -Wl,-single_module conftest.c" >&5
9451 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9452 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9453 _lt_result=$?
9454 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9455 lt_cv_apple_cc_single_mod=yes
9456 else
9457 cat conftest.err >&5
9459 rm -rf libconftest.dylib*
9460 rm -f conftest.*
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9464 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9466 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9467 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9468 $as_echo_n "(cached) " >&6
9469 else
9470 lt_cv_ld_exported_symbols_list=no
9471 save_LDFLAGS=$LDFLAGS
9472 echo "_main" > conftest.sym
9473 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9474 if test x$gcc_no_link = xyes; then
9475 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9478 /* end confdefs.h. */
9481 main ()
9485 return 0;
9487 _ACEOF
9488 if ac_fn_c_try_link "$LINENO"; then :
9489 lt_cv_ld_exported_symbols_list=yes
9490 else
9491 lt_cv_ld_exported_symbols_list=no
9493 rm -f core conftest.err conftest.$ac_objext \
9494 conftest$ac_exeext conftest.$ac_ext
9495 LDFLAGS="$save_LDFLAGS"
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9499 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9501 $as_echo_n "checking for -force_load linker flag... " >&6; }
9502 if test "${lt_cv_ld_force_load+set}" = set; then :
9503 $as_echo_n "(cached) " >&6
9504 else
9505 lt_cv_ld_force_load=no
9506 cat > conftest.c << _LT_EOF
9507 int forced_loaded() { return 2;}
9508 _LT_EOF
9509 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9510 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9511 echo "$AR cru libconftest.a conftest.o" >&5
9512 $AR cru libconftest.a conftest.o 2>&5
9513 cat > conftest.c << _LT_EOF
9514 int main() { return 0;}
9515 _LT_EOF
9516 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9517 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9518 _lt_result=$?
9519 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9520 lt_cv_ld_force_load=yes
9521 else
9522 cat conftest.err >&5
9524 rm -f conftest.err libconftest.a conftest conftest.c
9525 rm -rf conftest.dSYM
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9529 $as_echo "$lt_cv_ld_force_load" >&6; }
9530 case $host_os in
9531 rhapsody* | darwin1.[012])
9532 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9533 darwin1.*)
9534 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9535 darwin*) # darwin 5.x on
9536 # if running on 10.5 or later, the deployment target defaults
9537 # to the OS version, if on x86, and 10.4, the deployment
9538 # target defaults to 10.4. Don't you love it?
9539 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9540 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9541 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9542 10.[012]*)
9543 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9544 10.*)
9545 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9546 esac
9548 esac
9549 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9550 _lt_dar_single_mod='$single_module'
9552 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9553 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9554 else
9555 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9557 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9558 _lt_dsymutil='~$DSYMUTIL $lib || :'
9559 else
9560 _lt_dsymutil=
9563 esac
9565 ac_ext=c
9566 ac_cpp='$CPP $CPPFLAGS'
9567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9571 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9572 # On Suns, sometimes $CPP names a directory.
9573 if test -n "$CPP" && test -d "$CPP"; then
9574 CPP=
9576 if test -z "$CPP"; then
9577 if test "${ac_cv_prog_CPP+set}" = set; then :
9578 $as_echo_n "(cached) " >&6
9579 else
9580 # Double quotes because CPP needs to be expanded
9581 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9583 ac_preproc_ok=false
9584 for ac_c_preproc_warn_flag in '' yes
9586 # Use a header file that comes with gcc, so configuring glibc
9587 # with a fresh cross-compiler works.
9588 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9589 # <limits.h> exists even on freestanding compilers.
9590 # On the NeXT, cc -E runs the code through the compiler's parser,
9591 # not just through cpp. "Syntax error" is here to catch this case.
9592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9593 /* end confdefs.h. */
9594 #ifdef __STDC__
9595 # include <limits.h>
9596 #else
9597 # include <assert.h>
9598 #endif
9599 Syntax error
9600 _ACEOF
9601 if ac_fn_c_try_cpp "$LINENO"; then :
9603 else
9604 # Broken: fails on valid input.
9605 continue
9607 rm -f conftest.err conftest.$ac_ext
9609 # OK, works on sane cases. Now check whether nonexistent headers
9610 # can be detected and how.
9611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9612 /* end confdefs.h. */
9613 #include <ac_nonexistent.h>
9614 _ACEOF
9615 if ac_fn_c_try_cpp "$LINENO"; then :
9616 # Broken: success on invalid input.
9617 continue
9618 else
9619 # Passes both tests.
9620 ac_preproc_ok=:
9621 break
9623 rm -f conftest.err conftest.$ac_ext
9625 done
9626 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9627 rm -f conftest.err conftest.$ac_ext
9628 if $ac_preproc_ok; then :
9629 break
9632 done
9633 ac_cv_prog_CPP=$CPP
9636 CPP=$ac_cv_prog_CPP
9637 else
9638 ac_cv_prog_CPP=$CPP
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9641 $as_echo "$CPP" >&6; }
9642 ac_preproc_ok=false
9643 for ac_c_preproc_warn_flag in '' yes
9645 # Use a header file that comes with gcc, so configuring glibc
9646 # with a fresh cross-compiler works.
9647 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9648 # <limits.h> exists even on freestanding compilers.
9649 # On the NeXT, cc -E runs the code through the compiler's parser,
9650 # not just through cpp. "Syntax error" is here to catch this case.
9651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9652 /* end confdefs.h. */
9653 #ifdef __STDC__
9654 # include <limits.h>
9655 #else
9656 # include <assert.h>
9657 #endif
9658 Syntax error
9659 _ACEOF
9660 if ac_fn_c_try_cpp "$LINENO"; then :
9662 else
9663 # Broken: fails on valid input.
9664 continue
9666 rm -f conftest.err conftest.$ac_ext
9668 # OK, works on sane cases. Now check whether nonexistent headers
9669 # can be detected and how.
9670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9671 /* end confdefs.h. */
9672 #include <ac_nonexistent.h>
9673 _ACEOF
9674 if ac_fn_c_try_cpp "$LINENO"; then :
9675 # Broken: success on invalid input.
9676 continue
9677 else
9678 # Passes both tests.
9679 ac_preproc_ok=:
9680 break
9682 rm -f conftest.err conftest.$ac_ext
9684 done
9685 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9686 rm -f conftest.err conftest.$ac_ext
9687 if $ac_preproc_ok; then :
9689 else
9690 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9692 as_fn_error "C preprocessor \"$CPP\" fails sanity check
9693 See \`config.log' for more details." "$LINENO" 5; }
9696 ac_ext=c
9697 ac_cpp='$CPP $CPPFLAGS'
9698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9704 $as_echo_n "checking for ANSI C header files... " >&6; }
9705 if test "${ac_cv_header_stdc+set}" = set; then :
9706 $as_echo_n "(cached) " >&6
9707 else
9708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9709 /* end confdefs.h. */
9710 #include <stdlib.h>
9711 #include <stdarg.h>
9712 #include <string.h>
9713 #include <float.h>
9716 main ()
9720 return 0;
9722 _ACEOF
9723 if ac_fn_c_try_compile "$LINENO"; then :
9724 ac_cv_header_stdc=yes
9725 else
9726 ac_cv_header_stdc=no
9728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9730 if test $ac_cv_header_stdc = yes; then
9731 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9733 /* end confdefs.h. */
9734 #include <string.h>
9736 _ACEOF
9737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9738 $EGREP "memchr" >/dev/null 2>&1; then :
9740 else
9741 ac_cv_header_stdc=no
9743 rm -f conftest*
9747 if test $ac_cv_header_stdc = yes; then
9748 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9750 /* end confdefs.h. */
9751 #include <stdlib.h>
9753 _ACEOF
9754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9755 $EGREP "free" >/dev/null 2>&1; then :
9757 else
9758 ac_cv_header_stdc=no
9760 rm -f conftest*
9764 if test $ac_cv_header_stdc = yes; then
9765 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9766 if test "$cross_compiling" = yes; then :
9768 else
9769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9770 /* end confdefs.h. */
9771 #include <ctype.h>
9772 #include <stdlib.h>
9773 #if ((' ' & 0x0FF) == 0x020)
9774 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9775 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9776 #else
9777 # define ISLOWER(c) \
9778 (('a' <= (c) && (c) <= 'i') \
9779 || ('j' <= (c) && (c) <= 'r') \
9780 || ('s' <= (c) && (c) <= 'z'))
9781 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9782 #endif
9784 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9786 main ()
9788 int i;
9789 for (i = 0; i < 256; i++)
9790 if (XOR (islower (i), ISLOWER (i))
9791 || toupper (i) != TOUPPER (i))
9792 return 2;
9793 return 0;
9795 _ACEOF
9796 if ac_fn_c_try_run "$LINENO"; then :
9798 else
9799 ac_cv_header_stdc=no
9801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9802 conftest.$ac_objext conftest.beam conftest.$ac_ext
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9808 $as_echo "$ac_cv_header_stdc" >&6; }
9809 if test $ac_cv_header_stdc = yes; then
9811 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9815 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9816 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9817 inttypes.h stdint.h unistd.h
9818 do :
9819 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9820 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9822 eval as_val=\$$as_ac_Header
9823 if test "x$as_val" = x""yes; then :
9824 cat >>confdefs.h <<_ACEOF
9825 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9826 _ACEOF
9830 done
9833 for ac_header in dlfcn.h
9834 do :
9835 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9837 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9838 cat >>confdefs.h <<_ACEOF
9839 #define HAVE_DLFCN_H 1
9840 _ACEOF
9844 done
9851 # Set options
9856 enable_win32_dll=no
9859 # Check whether --enable-shared was given.
9860 if test "${enable_shared+set}" = set; then :
9861 enableval=$enable_shared; p=${PACKAGE-default}
9862 case $enableval in
9863 yes) enable_shared=yes ;;
9864 no) enable_shared=no ;;
9866 enable_shared=no
9867 # Look at the argument we got. We use all the common list separators.
9868 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9869 for pkg in $enableval; do
9870 IFS="$lt_save_ifs"
9871 if test "X$pkg" = "X$p"; then
9872 enable_shared=yes
9874 done
9875 IFS="$lt_save_ifs"
9877 esac
9878 else
9879 enable_shared=yes
9890 # Check whether --enable-static was given.
9891 if test "${enable_static+set}" = set; then :
9892 enableval=$enable_static; p=${PACKAGE-default}
9893 case $enableval in
9894 yes) enable_static=yes ;;
9895 no) enable_static=no ;;
9897 enable_static=no
9898 # Look at the argument we got. We use all the common list separators.
9899 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9900 for pkg in $enableval; do
9901 IFS="$lt_save_ifs"
9902 if test "X$pkg" = "X$p"; then
9903 enable_static=yes
9905 done
9906 IFS="$lt_save_ifs"
9908 esac
9909 else
9910 enable_static=yes
9922 # Check whether --with-pic was given.
9923 if test "${with_pic+set}" = set; then :
9924 withval=$with_pic; pic_mode="$withval"
9925 else
9926 pic_mode=default
9930 test -z "$pic_mode" && pic_mode=default
9938 # Check whether --enable-fast-install was given.
9939 if test "${enable_fast_install+set}" = set; then :
9940 enableval=$enable_fast_install; p=${PACKAGE-default}
9941 case $enableval in
9942 yes) enable_fast_install=yes ;;
9943 no) enable_fast_install=no ;;
9945 enable_fast_install=no
9946 # Look at the argument we got. We use all the common list separators.
9947 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9948 for pkg in $enableval; do
9949 IFS="$lt_save_ifs"
9950 if test "X$pkg" = "X$p"; then
9951 enable_fast_install=yes
9953 done
9954 IFS="$lt_save_ifs"
9956 esac
9957 else
9958 enable_fast_install=yes
9971 # This can be used to rebuild libtool when needed
9972 LIBTOOL_DEPS="$ltmain"
9974 # Always use our own libtool.
9975 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10002 test -z "$LN_S" && LN_S="ln -s"
10017 if test -n "${ZSH_VERSION+set}" ; then
10018 setopt NO_GLOB_SUBST
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10022 $as_echo_n "checking for objdir... " >&6; }
10023 if test "${lt_cv_objdir+set}" = set; then :
10024 $as_echo_n "(cached) " >&6
10025 else
10026 rm -f .libs 2>/dev/null
10027 mkdir .libs 2>/dev/null
10028 if test -d .libs; then
10029 lt_cv_objdir=.libs
10030 else
10031 # MS-DOS does not allow filenames that begin with a dot.
10032 lt_cv_objdir=_libs
10034 rmdir .libs 2>/dev/null
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10037 $as_echo "$lt_cv_objdir" >&6; }
10038 objdir=$lt_cv_objdir
10044 cat >>confdefs.h <<_ACEOF
10045 #define LT_OBJDIR "$lt_cv_objdir/"
10046 _ACEOF
10051 case $host_os in
10052 aix3*)
10053 # AIX sometimes has problems with the GCC collect2 program. For some
10054 # reason, if we set the COLLECT_NAMES environment variable, the problems
10055 # vanish in a puff of smoke.
10056 if test "X${COLLECT_NAMES+set}" != Xset; then
10057 COLLECT_NAMES=
10058 export COLLECT_NAMES
10061 esac
10063 # Global variables:
10064 ofile=libtool
10065 can_build_shared=yes
10067 # All known linkers require a `.a' archive for static linking (except MSVC,
10068 # which needs '.lib').
10069 libext=a
10071 with_gnu_ld="$lt_cv_prog_gnu_ld"
10073 old_CC="$CC"
10074 old_CFLAGS="$CFLAGS"
10076 # Set sane defaults for various variables
10077 test -z "$CC" && CC=cc
10078 test -z "$LTCC" && LTCC=$CC
10079 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10080 test -z "$LD" && LD=ld
10081 test -z "$ac_objext" && ac_objext=o
10083 for cc_temp in $compiler""; do
10084 case $cc_temp in
10085 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10086 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10087 \-*) ;;
10088 *) break;;
10089 esac
10090 done
10091 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10094 # Only perform the check for file, if the check method requires it
10095 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10096 case $deplibs_check_method in
10097 file_magic*)
10098 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10100 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10101 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10102 $as_echo_n "(cached) " >&6
10103 else
10104 case $MAGIC_CMD in
10105 [\\/*] | ?:[\\/]*)
10106 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10109 lt_save_MAGIC_CMD="$MAGIC_CMD"
10110 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10111 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10112 for ac_dir in $ac_dummy; do
10113 IFS="$lt_save_ifs"
10114 test -z "$ac_dir" && ac_dir=.
10115 if test -f $ac_dir/${ac_tool_prefix}file; then
10116 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10117 if test -n "$file_magic_test_file"; then
10118 case $deplibs_check_method in
10119 "file_magic "*)
10120 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10121 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10122 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10123 $EGREP "$file_magic_regex" > /dev/null; then
10125 else
10126 cat <<_LT_EOF 1>&2
10128 *** Warning: the command libtool uses to detect shared libraries,
10129 *** $file_magic_cmd, produces output that libtool cannot recognize.
10130 *** The result is that libtool may fail to recognize shared libraries
10131 *** as such. This will affect the creation of libtool libraries that
10132 *** depend on shared libraries, but programs linked with such libtool
10133 *** libraries will work regardless of this problem. Nevertheless, you
10134 *** may want to report the problem to your system manager and/or to
10135 *** bug-libtool@gnu.org
10137 _LT_EOF
10138 fi ;;
10139 esac
10141 break
10143 done
10144 IFS="$lt_save_ifs"
10145 MAGIC_CMD="$lt_save_MAGIC_CMD"
10147 esac
10150 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10151 if test -n "$MAGIC_CMD"; then
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10153 $as_echo "$MAGIC_CMD" >&6; }
10154 else
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10156 $as_echo "no" >&6; }
10163 if test -z "$lt_cv_path_MAGIC_CMD"; then
10164 if test -n "$ac_tool_prefix"; then
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10166 $as_echo_n "checking for file... " >&6; }
10167 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10168 $as_echo_n "(cached) " >&6
10169 else
10170 case $MAGIC_CMD in
10171 [\\/*] | ?:[\\/]*)
10172 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10175 lt_save_MAGIC_CMD="$MAGIC_CMD"
10176 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10177 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10178 for ac_dir in $ac_dummy; do
10179 IFS="$lt_save_ifs"
10180 test -z "$ac_dir" && ac_dir=.
10181 if test -f $ac_dir/file; then
10182 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10183 if test -n "$file_magic_test_file"; then
10184 case $deplibs_check_method in
10185 "file_magic "*)
10186 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10187 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10188 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10189 $EGREP "$file_magic_regex" > /dev/null; then
10191 else
10192 cat <<_LT_EOF 1>&2
10194 *** Warning: the command libtool uses to detect shared libraries,
10195 *** $file_magic_cmd, produces output that libtool cannot recognize.
10196 *** The result is that libtool may fail to recognize shared libraries
10197 *** as such. This will affect the creation of libtool libraries that
10198 *** depend on shared libraries, but programs linked with such libtool
10199 *** libraries will work regardless of this problem. Nevertheless, you
10200 *** may want to report the problem to your system manager and/or to
10201 *** bug-libtool@gnu.org
10203 _LT_EOF
10204 fi ;;
10205 esac
10207 break
10209 done
10210 IFS="$lt_save_ifs"
10211 MAGIC_CMD="$lt_save_MAGIC_CMD"
10213 esac
10216 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10217 if test -n "$MAGIC_CMD"; then
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10219 $as_echo "$MAGIC_CMD" >&6; }
10220 else
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10222 $as_echo "no" >&6; }
10226 else
10227 MAGIC_CMD=:
10233 esac
10235 # Use C for the default configuration in the libtool script
10237 lt_save_CC="$CC"
10238 ac_ext=c
10239 ac_cpp='$CPP $CPPFLAGS'
10240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10245 # Source file extension for C test sources.
10246 ac_ext=c
10248 # Object file extension for compiled C test sources.
10249 objext=o
10250 objext=$objext
10252 # Code to be used in simple compile tests
10253 lt_simple_compile_test_code="int some_variable = 0;"
10255 # Code to be used in simple link tests
10256 lt_simple_link_test_code='int main(){return(0);}'
10264 # If no C compiler was specified, use CC.
10265 LTCC=${LTCC-"$CC"}
10267 # If no C compiler flags were specified, use CFLAGS.
10268 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10270 # Allow CC to be a program name with arguments.
10271 compiler=$CC
10273 # Save the default compiler, since it gets overwritten when the other
10274 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10275 compiler_DEFAULT=$CC
10277 # save warnings/boilerplate of simple test code
10278 ac_outfile=conftest.$ac_objext
10279 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10280 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10281 _lt_compiler_boilerplate=`cat conftest.err`
10282 $RM conftest*
10284 ac_outfile=conftest.$ac_objext
10285 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10286 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10287 _lt_linker_boilerplate=`cat conftest.err`
10288 $RM -r conftest*
10291 ## CAVEAT EMPTOR:
10292 ## There is no encapsulation within the following macros, do not change
10293 ## the running order or otherwise move them around unless you know exactly
10294 ## what you are doing...
10295 if test -n "$compiler"; then
10297 lt_prog_compiler_no_builtin_flag=
10299 if test "$GCC" = yes; then
10300 case $cc_basename in
10301 nvcc*)
10302 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10304 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10305 esac
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10308 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10309 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10310 $as_echo_n "(cached) " >&6
10311 else
10312 lt_cv_prog_compiler_rtti_exceptions=no
10313 ac_outfile=conftest.$ac_objext
10314 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10315 lt_compiler_flag="-fno-rtti -fno-exceptions"
10316 # Insert the option either (1) after the last *FLAGS variable, or
10317 # (2) before a word containing "conftest.", or (3) at the end.
10318 # Note that $ac_compile itself does not contain backslashes and begins
10319 # with a dollar sign (not a hyphen), so the echo should work correctly.
10320 # The option is referenced via a variable to avoid confusing sed.
10321 lt_compile=`echo "$ac_compile" | $SED \
10322 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10323 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10324 -e 's:$: $lt_compiler_flag:'`
10325 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10326 (eval "$lt_compile" 2>conftest.err)
10327 ac_status=$?
10328 cat conftest.err >&5
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 if (exit $ac_status) && test -s "$ac_outfile"; then
10331 # The compiler can only warn and ignore the option if not recognized
10332 # So say no if there are warnings other than the usual output.
10333 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10334 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10335 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10336 lt_cv_prog_compiler_rtti_exceptions=yes
10339 $RM conftest*
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10343 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10345 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10346 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10347 else
10358 lt_prog_compiler_wl=
10359 lt_prog_compiler_pic=
10360 lt_prog_compiler_static=
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10363 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10365 if test "$GCC" = yes; then
10366 lt_prog_compiler_wl='-Wl,'
10367 lt_prog_compiler_static='-static'
10369 case $host_os in
10370 aix*)
10371 # All AIX code is PIC.
10372 if test "$host_cpu" = ia64; then
10373 # AIX 5 now supports IA64 processor
10374 lt_prog_compiler_static='-Bstatic'
10378 amigaos*)
10379 case $host_cpu in
10380 powerpc)
10381 # see comment about AmigaOS4 .so support
10382 lt_prog_compiler_pic='-fPIC'
10384 m68k)
10385 # FIXME: we need at least 68020 code to build shared libraries, but
10386 # adding the `-m68020' flag to GCC prevents building anything better,
10387 # like `-m68040'.
10388 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10390 esac
10393 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10394 # PIC is the default for these OSes.
10397 mingw* | cygwin* | pw32* | os2* | cegcc*)
10398 # This hack is so that the source file can tell whether it is being
10399 # built for inclusion in a dll (and should export symbols for example).
10400 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10401 # (--disable-auto-import) libraries
10402 lt_prog_compiler_pic='-DDLL_EXPORT'
10405 darwin* | rhapsody*)
10406 # PIC is the default on this platform
10407 # Common symbols not allowed in MH_DYLIB files
10408 lt_prog_compiler_pic='-fno-common'
10411 haiku*)
10412 # PIC is the default for Haiku.
10413 # The "-static" flag exists, but is broken.
10414 lt_prog_compiler_static=
10417 hpux*)
10418 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10419 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10420 # sets the default TLS model and affects inlining.
10421 case $host_cpu in
10422 hppa*64*)
10423 # +Z the default
10426 lt_prog_compiler_pic='-fPIC'
10428 esac
10431 interix[3-9]*)
10432 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10433 # Instead, we relocate shared libraries at runtime.
10436 msdosdjgpp*)
10437 # Just because we use GCC doesn't mean we suddenly get shared libraries
10438 # on systems that don't support them.
10439 lt_prog_compiler_can_build_shared=no
10440 enable_shared=no
10443 *nto* | *qnx*)
10444 # QNX uses GNU C++, but need to define -shared option too, otherwise
10445 # it will coredump.
10446 lt_prog_compiler_pic='-fPIC -shared'
10449 sysv4*MP*)
10450 if test -d /usr/nec; then
10451 lt_prog_compiler_pic=-Kconform_pic
10456 lt_prog_compiler_pic='-fPIC'
10458 esac
10460 case $cc_basename in
10461 nvcc*) # Cuda Compiler Driver 2.2
10462 lt_prog_compiler_wl='-Xlinker '
10463 lt_prog_compiler_pic='-Xcompiler -fPIC'
10465 esac
10466 else
10467 # PORTME Check for flag to pass linker flags through the system compiler.
10468 case $host_os in
10469 aix*)
10470 lt_prog_compiler_wl='-Wl,'
10471 if test "$host_cpu" = ia64; then
10472 # AIX 5 now supports IA64 processor
10473 lt_prog_compiler_static='-Bstatic'
10474 else
10475 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10479 mingw* | cygwin* | pw32* | os2* | cegcc*)
10480 # This hack is so that the source file can tell whether it is being
10481 # built for inclusion in a dll (and should export symbols for example).
10482 lt_prog_compiler_pic='-DDLL_EXPORT'
10485 hpux9* | hpux10* | hpux11*)
10486 lt_prog_compiler_wl='-Wl,'
10487 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10488 # not for PA HP-UX.
10489 case $host_cpu in
10490 hppa*64*|ia64*)
10491 # +Z the default
10494 lt_prog_compiler_pic='+Z'
10496 esac
10497 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10498 lt_prog_compiler_static='${wl}-a ${wl}archive'
10501 irix5* | irix6* | nonstopux*)
10502 lt_prog_compiler_wl='-Wl,'
10503 # PIC (with -KPIC) is the default.
10504 lt_prog_compiler_static='-non_shared'
10507 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10508 case $cc_basename in
10509 # old Intel for x86_64 which still supported -KPIC.
10510 ecc*)
10511 lt_prog_compiler_wl='-Wl,'
10512 lt_prog_compiler_pic='-KPIC'
10513 lt_prog_compiler_static='-static'
10515 # icc used to be incompatible with GCC.
10516 # ICC 10 doesn't accept -KPIC any more.
10517 icc* | ifort*)
10518 lt_prog_compiler_wl='-Wl,'
10519 lt_prog_compiler_pic='-fPIC'
10520 lt_prog_compiler_static='-static'
10522 # Lahey Fortran 8.1.
10523 lf95*)
10524 lt_prog_compiler_wl='-Wl,'
10525 lt_prog_compiler_pic='--shared'
10526 lt_prog_compiler_static='--static'
10528 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10529 # Portland Group compilers (*not* the Pentium gcc compiler,
10530 # which looks to be a dead project)
10531 lt_prog_compiler_wl='-Wl,'
10532 lt_prog_compiler_pic='-fpic'
10533 lt_prog_compiler_static='-Bstatic'
10535 ccc*)
10536 lt_prog_compiler_wl='-Wl,'
10537 # All Alpha code is PIC.
10538 lt_prog_compiler_static='-non_shared'
10540 xl* | bgxl* | bgf* | mpixl*)
10541 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10542 lt_prog_compiler_wl='-Wl,'
10543 lt_prog_compiler_pic='-qpic'
10544 lt_prog_compiler_static='-qstaticlink'
10547 case `$CC -V 2>&1 | sed 5q` in
10548 *Sun\ F* | *Sun*Fortran*)
10549 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10550 lt_prog_compiler_pic='-KPIC'
10551 lt_prog_compiler_static='-Bstatic'
10552 lt_prog_compiler_wl=''
10554 *Sun\ C*)
10555 # Sun C 5.9
10556 lt_prog_compiler_pic='-KPIC'
10557 lt_prog_compiler_static='-Bstatic'
10558 lt_prog_compiler_wl='-Wl,'
10560 esac
10562 esac
10565 newsos6)
10566 lt_prog_compiler_pic='-KPIC'
10567 lt_prog_compiler_static='-Bstatic'
10570 *nto* | *qnx*)
10571 # QNX uses GNU C++, but need to define -shared option too, otherwise
10572 # it will coredump.
10573 lt_prog_compiler_pic='-fPIC -shared'
10576 osf3* | osf4* | osf5*)
10577 lt_prog_compiler_wl='-Wl,'
10578 # All OSF/1 code is PIC.
10579 lt_prog_compiler_static='-non_shared'
10582 rdos*)
10583 lt_prog_compiler_static='-non_shared'
10586 solaris*)
10587 lt_prog_compiler_pic='-KPIC'
10588 lt_prog_compiler_static='-Bstatic'
10589 case $cc_basename in
10590 f77* | f90* | f95*)
10591 lt_prog_compiler_wl='-Qoption ld ';;
10593 lt_prog_compiler_wl='-Wl,';;
10594 esac
10597 sunos4*)
10598 lt_prog_compiler_wl='-Qoption ld '
10599 lt_prog_compiler_pic='-PIC'
10600 lt_prog_compiler_static='-Bstatic'
10603 sysv4 | sysv4.2uw2* | sysv4.3*)
10604 lt_prog_compiler_wl='-Wl,'
10605 lt_prog_compiler_pic='-KPIC'
10606 lt_prog_compiler_static='-Bstatic'
10609 sysv4*MP*)
10610 if test -d /usr/nec ;then
10611 lt_prog_compiler_pic='-Kconform_pic'
10612 lt_prog_compiler_static='-Bstatic'
10616 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10617 lt_prog_compiler_wl='-Wl,'
10618 lt_prog_compiler_pic='-KPIC'
10619 lt_prog_compiler_static='-Bstatic'
10622 unicos*)
10623 lt_prog_compiler_wl='-Wl,'
10624 lt_prog_compiler_can_build_shared=no
10627 uts4*)
10628 lt_prog_compiler_pic='-pic'
10629 lt_prog_compiler_static='-Bstatic'
10633 lt_prog_compiler_can_build_shared=no
10635 esac
10638 case $host_os in
10639 # For platforms which do not support PIC, -DPIC is meaningless:
10640 *djgpp*)
10641 lt_prog_compiler_pic=
10644 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10646 esac
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10648 $as_echo "$lt_prog_compiler_pic" >&6; }
10656 # Check to make sure the PIC flag actually works.
10658 if test -n "$lt_prog_compiler_pic"; then
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10660 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10661 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10662 $as_echo_n "(cached) " >&6
10663 else
10664 lt_cv_prog_compiler_pic_works=no
10665 ac_outfile=conftest.$ac_objext
10666 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10667 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10668 # Insert the option either (1) after the last *FLAGS variable, or
10669 # (2) before a word containing "conftest.", or (3) at the end.
10670 # Note that $ac_compile itself does not contain backslashes and begins
10671 # with a dollar sign (not a hyphen), so the echo should work correctly.
10672 # The option is referenced via a variable to avoid confusing sed.
10673 lt_compile=`echo "$ac_compile" | $SED \
10674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10676 -e 's:$: $lt_compiler_flag:'`
10677 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10678 (eval "$lt_compile" 2>conftest.err)
10679 ac_status=$?
10680 cat conftest.err >&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 if (exit $ac_status) && test -s "$ac_outfile"; then
10683 # The compiler can only warn and ignore the option if not recognized
10684 # So say no if there are warnings other than the usual output.
10685 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10686 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10687 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10688 lt_cv_prog_compiler_pic_works=yes
10691 $RM conftest*
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10695 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10697 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10698 case $lt_prog_compiler_pic in
10699 "" | " "*) ;;
10700 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10701 esac
10702 else
10703 lt_prog_compiler_pic=
10704 lt_prog_compiler_can_build_shared=no
10715 # Check to make sure the static flag actually works.
10717 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10719 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10720 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10721 $as_echo_n "(cached) " >&6
10722 else
10723 lt_cv_prog_compiler_static_works=no
10724 save_LDFLAGS="$LDFLAGS"
10725 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10726 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10727 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10728 # The linker can only warn and ignore the option if not recognized
10729 # So say no if there are warnings
10730 if test -s conftest.err; then
10731 # Append any errors to the config.log.
10732 cat conftest.err 1>&5
10733 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10734 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10735 if diff conftest.exp conftest.er2 >/dev/null; then
10736 lt_cv_prog_compiler_static_works=yes
10738 else
10739 lt_cv_prog_compiler_static_works=yes
10742 $RM -r conftest*
10743 LDFLAGS="$save_LDFLAGS"
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10747 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10749 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10751 else
10752 lt_prog_compiler_static=
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10762 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10763 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10764 $as_echo_n "(cached) " >&6
10765 else
10766 lt_cv_prog_compiler_c_o=no
10767 $RM -r conftest 2>/dev/null
10768 mkdir conftest
10769 cd conftest
10770 mkdir out
10771 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10773 lt_compiler_flag="-o out/conftest2.$ac_objext"
10774 # Insert the option either (1) after the last *FLAGS variable, or
10775 # (2) before a word containing "conftest.", or (3) at the end.
10776 # Note that $ac_compile itself does not contain backslashes and begins
10777 # with a dollar sign (not a hyphen), so the echo should work correctly.
10778 lt_compile=`echo "$ac_compile" | $SED \
10779 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10781 -e 's:$: $lt_compiler_flag:'`
10782 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10783 (eval "$lt_compile" 2>out/conftest.err)
10784 ac_status=$?
10785 cat out/conftest.err >&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10788 then
10789 # The compiler can only warn and ignore the option if not recognized
10790 # So say no if there are warnings
10791 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10792 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10793 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10794 lt_cv_prog_compiler_c_o=yes
10797 chmod u+w . 2>&5
10798 $RM conftest*
10799 # SGI C++ compiler will create directory out/ii_files/ for
10800 # template instantiation
10801 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10802 $RM out/* && rmdir out
10803 cd ..
10804 $RM -r conftest
10805 $RM conftest*
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10809 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10817 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10818 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10819 $as_echo_n "(cached) " >&6
10820 else
10821 lt_cv_prog_compiler_c_o=no
10822 $RM -r conftest 2>/dev/null
10823 mkdir conftest
10824 cd conftest
10825 mkdir out
10826 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10828 lt_compiler_flag="-o out/conftest2.$ac_objext"
10829 # Insert the option either (1) after the last *FLAGS variable, or
10830 # (2) before a word containing "conftest.", or (3) at the end.
10831 # Note that $ac_compile itself does not contain backslashes and begins
10832 # with a dollar sign (not a hyphen), so the echo should work correctly.
10833 lt_compile=`echo "$ac_compile" | $SED \
10834 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10835 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10836 -e 's:$: $lt_compiler_flag:'`
10837 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10838 (eval "$lt_compile" 2>out/conftest.err)
10839 ac_status=$?
10840 cat out/conftest.err >&5
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10843 then
10844 # The compiler can only warn and ignore the option if not recognized
10845 # So say no if there are warnings
10846 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10847 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10848 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10849 lt_cv_prog_compiler_c_o=yes
10852 chmod u+w . 2>&5
10853 $RM conftest*
10854 # SGI C++ compiler will create directory out/ii_files/ for
10855 # template instantiation
10856 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10857 $RM out/* && rmdir out
10858 cd ..
10859 $RM -r conftest
10860 $RM conftest*
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10864 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10869 hard_links="nottested"
10870 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10871 # do not overwrite the value of need_locks provided by the user
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10873 $as_echo_n "checking if we can lock with hard links... " >&6; }
10874 hard_links=yes
10875 $RM conftest*
10876 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10877 touch conftest.a
10878 ln conftest.a conftest.b 2>&5 || hard_links=no
10879 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10881 $as_echo "$hard_links" >&6; }
10882 if test "$hard_links" = no; then
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10884 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10885 need_locks=warn
10887 else
10888 need_locks=no
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10897 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10899 runpath_var=
10900 allow_undefined_flag=
10901 always_export_symbols=no
10902 archive_cmds=
10903 archive_expsym_cmds=
10904 compiler_needs_object=no
10905 enable_shared_with_static_runtimes=no
10906 export_dynamic_flag_spec=
10907 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10908 hardcode_automatic=no
10909 hardcode_direct=no
10910 hardcode_direct_absolute=no
10911 hardcode_libdir_flag_spec=
10912 hardcode_libdir_flag_spec_ld=
10913 hardcode_libdir_separator=
10914 hardcode_minus_L=no
10915 hardcode_shlibpath_var=unsupported
10916 inherit_rpath=no
10917 link_all_deplibs=unknown
10918 module_cmds=
10919 module_expsym_cmds=
10920 old_archive_from_new_cmds=
10921 old_archive_from_expsyms_cmds=
10922 thread_safe_flag_spec=
10923 whole_archive_flag_spec=
10924 # include_expsyms should be a list of space-separated symbols to be *always*
10925 # included in the symbol list
10926 include_expsyms=
10927 # exclude_expsyms can be an extended regexp of symbols to exclude
10928 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10929 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10930 # as well as any symbol that contains `d'.
10931 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10932 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10933 # platforms (ab)use it in PIC code, but their linkers get confused if
10934 # the symbol is explicitly referenced. Since portable code cannot
10935 # rely on this symbol name, it's probably fine to never include it in
10936 # preloaded symbol tables.
10937 # Exclude shared library initialization/finalization symbols.
10938 extract_expsyms_cmds=
10940 case $host_os in
10941 cygwin* | mingw* | pw32* | cegcc*)
10942 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10943 # When not using gcc, we currently assume that we are using
10944 # Microsoft Visual C++.
10945 if test "$GCC" != yes; then
10946 with_gnu_ld=no
10949 interix*)
10950 # we just hope/assume this is gcc and not c89 (= MSVC++)
10951 with_gnu_ld=yes
10953 openbsd*)
10954 with_gnu_ld=no
10956 esac
10958 ld_shlibs=yes
10960 # On some targets, GNU ld is compatible enough with the native linker
10961 # that we're better off using the native interface for both.
10962 lt_use_gnu_ld_interface=no
10963 if test "$with_gnu_ld" = yes; then
10964 case $host_os in
10965 aix*)
10966 # The AIX port of GNU ld has always aspired to compatibility
10967 # with the native linker. However, as the warning in the GNU ld
10968 # block says, versions before 2.19.5* couldn't really create working
10969 # shared libraries, regardless of the interface used.
10970 case `$LD -v 2>&1` in
10971 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10972 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10973 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10975 lt_use_gnu_ld_interface=yes
10977 esac
10980 lt_use_gnu_ld_interface=yes
10982 esac
10985 if test "$lt_use_gnu_ld_interface" = yes; then
10986 # If archive_cmds runs LD, not CC, wlarc should be empty
10987 wlarc='${wl}'
10989 # Set some defaults for GNU ld with shared library support. These
10990 # are reset later if shared libraries are not supported. Putting them
10991 # here allows them to be overridden if necessary.
10992 runpath_var=LD_RUN_PATH
10993 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10994 export_dynamic_flag_spec='${wl}--export-dynamic'
10995 # ancient GNU ld didn't support --whole-archive et. al.
10996 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10997 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10998 else
10999 whole_archive_flag_spec=
11001 supports_anon_versioning=no
11002 case `$LD -v 2>&1` in
11003 *GNU\ gold*) supports_anon_versioning=yes ;;
11004 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11005 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11006 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11007 *\ 2.11.*) ;; # other 2.11 versions
11008 *) supports_anon_versioning=yes ;;
11009 esac
11011 # See if GNU ld supports shared libraries.
11012 case $host_os in
11013 aix[3-9]*)
11014 # On AIX/PPC, the GNU linker is very broken
11015 if test "$host_cpu" != ia64; then
11016 ld_shlibs=no
11017 cat <<_LT_EOF 1>&2
11019 *** Warning: the GNU linker, at least up to release 2.19, is reported
11020 *** to be unable to reliably create shared libraries on AIX.
11021 *** Therefore, libtool is disabling shared libraries support. If you
11022 *** really care for shared libraries, you may want to install binutils
11023 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11024 *** You will then need to restart the configuration process.
11026 _LT_EOF
11030 amigaos*)
11031 case $host_cpu in
11032 powerpc)
11033 # see comment about AmigaOS4 .so support
11034 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11035 archive_expsym_cmds=''
11037 m68k)
11038 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)'
11039 hardcode_libdir_flag_spec='-L$libdir'
11040 hardcode_minus_L=yes
11042 esac
11045 beos*)
11046 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11047 allow_undefined_flag=unsupported
11048 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11049 # support --undefined. This deserves some investigation. FIXME
11050 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11051 else
11052 ld_shlibs=no
11056 cygwin* | mingw* | pw32* | cegcc*)
11057 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11058 # as there is no search path for DLLs.
11059 hardcode_libdir_flag_spec='-L$libdir'
11060 export_dynamic_flag_spec='${wl}--export-all-symbols'
11061 allow_undefined_flag=unsupported
11062 always_export_symbols=no
11063 enable_shared_with_static_runtimes=yes
11064 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11066 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11067 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11068 # If the export-symbols file already is a .def file (1st line
11069 # is EXPORTS), use it as is; otherwise, prepend...
11070 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11071 cp $export_symbols $output_objdir/$soname.def;
11072 else
11073 echo EXPORTS > $output_objdir/$soname.def;
11074 cat $export_symbols >> $output_objdir/$soname.def;
11076 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11077 else
11078 ld_shlibs=no
11082 haiku*)
11083 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11084 link_all_deplibs=yes
11087 interix[3-9]*)
11088 hardcode_direct=no
11089 hardcode_shlibpath_var=no
11090 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11091 export_dynamic_flag_spec='${wl}-E'
11092 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11093 # Instead, shared libraries are loaded at an image base (0x10000000 by
11094 # default) and relocated if they conflict, which is a slow very memory
11095 # consuming and fragmenting process. To avoid this, we pick a random,
11096 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11097 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11098 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11099 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'
11102 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11103 tmp_diet=no
11104 if test "$host_os" = linux-dietlibc; then
11105 case $cc_basename in
11106 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11107 esac
11109 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11110 && test "$tmp_diet" = no
11111 then
11112 tmp_addflag=
11113 tmp_sharedflag='-shared'
11114 case $cc_basename,$host_cpu in
11115 pgcc*) # Portland Group C compiler
11116 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11117 tmp_addflag=' $pic_flag'
11119 pgf77* | pgf90* | pgf95* | pgfortran*)
11120 # Portland Group f77 and f90 compilers
11121 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'
11122 tmp_addflag=' $pic_flag -Mnomain' ;;
11123 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11124 tmp_addflag=' -i_dynamic' ;;
11125 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11126 tmp_addflag=' -i_dynamic -nofor_main' ;;
11127 ifc* | ifort*) # Intel Fortran compiler
11128 tmp_addflag=' -nofor_main' ;;
11129 lf95*) # Lahey Fortran 8.1
11130 whole_archive_flag_spec=
11131 tmp_sharedflag='--shared' ;;
11132 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11133 tmp_sharedflag='-qmkshrobj'
11134 tmp_addflag= ;;
11135 nvcc*) # Cuda Compiler Driver 2.2
11136 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'
11137 compiler_needs_object=yes
11139 esac
11140 case `$CC -V 2>&1 | sed 5q` in
11141 *Sun\ C*) # Sun C 5.9
11142 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'
11143 compiler_needs_object=yes
11144 tmp_sharedflag='-G' ;;
11145 *Sun\ F*) # Sun Fortran 8.3
11146 tmp_sharedflag='-G' ;;
11147 esac
11148 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11150 if test "x$supports_anon_versioning" = xyes; then
11151 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11152 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11153 echo "local: *; };" >> $output_objdir/$libname.ver~
11154 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11157 case $cc_basename in
11158 xlf* | bgf* | bgxlf* | mpixlf*)
11159 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11160 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11161 hardcode_libdir_flag_spec=
11162 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11163 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11164 if test "x$supports_anon_versioning" = xyes; then
11165 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11166 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11167 echo "local: *; };" >> $output_objdir/$libname.ver~
11168 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11171 esac
11172 else
11173 ld_shlibs=no
11177 netbsd*)
11178 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11179 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11180 wlarc=
11181 else
11182 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11183 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11187 solaris*)
11188 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11189 ld_shlibs=no
11190 cat <<_LT_EOF 1>&2
11192 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11193 *** create shared libraries on Solaris systems. Therefore, libtool
11194 *** is disabling shared libraries support. We urge you to upgrade GNU
11195 *** binutils to release 2.9.1 or newer. Another option is to modify
11196 *** your PATH or compiler configuration so that the native linker is
11197 *** used, and then restart.
11199 _LT_EOF
11200 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11201 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11202 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11203 else
11204 ld_shlibs=no
11208 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11209 case `$LD -v 2>&1` in
11210 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11211 ld_shlibs=no
11212 cat <<_LT_EOF 1>&2
11214 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11215 *** reliably create shared libraries on SCO systems. Therefore, libtool
11216 *** is disabling shared libraries support. We urge you to upgrade GNU
11217 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11218 *** your PATH or compiler configuration so that the native linker is
11219 *** used, and then restart.
11221 _LT_EOF
11224 # For security reasons, it is highly recommended that you always
11225 # use absolute paths for naming shared libraries, and exclude the
11226 # DT_RUNPATH tag from executables and libraries. But doing so
11227 # requires that you compile everything twice, which is a pain.
11228 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11229 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11230 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11231 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11232 else
11233 ld_shlibs=no
11236 esac
11239 sunos4*)
11240 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11241 wlarc=
11242 hardcode_direct=yes
11243 hardcode_shlibpath_var=no
11247 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11248 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11249 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11250 else
11251 ld_shlibs=no
11254 esac
11256 if test "$ld_shlibs" = no; then
11257 runpath_var=
11258 hardcode_libdir_flag_spec=
11259 export_dynamic_flag_spec=
11260 whole_archive_flag_spec=
11262 else
11263 # PORTME fill in a description of your system's linker (not GNU ld)
11264 case $host_os in
11265 aix3*)
11266 allow_undefined_flag=unsupported
11267 always_export_symbols=yes
11268 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'
11269 # Note: this linker hardcodes the directories in LIBPATH if there
11270 # are no directories specified by -L.
11271 hardcode_minus_L=yes
11272 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11273 # Neither direct hardcoding nor static linking is supported with a
11274 # broken collect2.
11275 hardcode_direct=unsupported
11279 aix[4-9]*)
11280 if test "$host_cpu" = ia64; then
11281 # On IA64, the linker does run time linking by default, so we don't
11282 # have to do anything special.
11283 aix_use_runtimelinking=no
11284 exp_sym_flag='-Bexport'
11285 no_entry_flag=""
11286 else
11287 # If we're using GNU nm, then we don't want the "-C" option.
11288 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11289 # Also, AIX nm treats weak defined symbols like other global
11290 # defined symbols, whereas GNU nm marks them as "W".
11291 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11292 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'
11293 else
11294 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'
11296 aix_use_runtimelinking=no
11298 # Test if we are trying to use run time linking or normal
11299 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11300 # need to do runtime linking.
11301 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11302 for ld_flag in $LDFLAGS; do
11303 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11304 aix_use_runtimelinking=yes
11305 break
11307 done
11309 esac
11311 exp_sym_flag='-bexport'
11312 no_entry_flag='-bnoentry'
11315 # When large executables or shared objects are built, AIX ld can
11316 # have problems creating the table of contents. If linking a library
11317 # or program results in "error TOC overflow" add -mminimal-toc to
11318 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11319 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11321 archive_cmds=''
11322 hardcode_direct=yes
11323 hardcode_direct_absolute=yes
11324 hardcode_libdir_separator=':'
11325 link_all_deplibs=yes
11326 file_list_spec='${wl}-f,'
11328 if test "$GCC" = yes; then
11329 case $host_os in aix4.[012]|aix4.[012].*)
11330 # We only want to do this on AIX 4.2 and lower, the check
11331 # below for broken collect2 doesn't work under 4.3+
11332 collect2name=`${CC} -print-prog-name=collect2`
11333 if test -f "$collect2name" &&
11334 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11335 then
11336 # We have reworked collect2
11338 else
11339 # We have old collect2
11340 hardcode_direct=unsupported
11341 # It fails to find uninstalled libraries when the uninstalled
11342 # path is not listed in the libpath. Setting hardcode_minus_L
11343 # to unsupported forces relinking
11344 hardcode_minus_L=yes
11345 hardcode_libdir_flag_spec='-L$libdir'
11346 hardcode_libdir_separator=
11349 esac
11350 shared_flag='-shared'
11351 if test "$aix_use_runtimelinking" = yes; then
11352 shared_flag="$shared_flag "'${wl}-G'
11354 else
11355 # not using gcc
11356 if test "$host_cpu" = ia64; then
11357 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11358 # chokes on -Wl,-G. The following line is correct:
11359 shared_flag='-G'
11360 else
11361 if test "$aix_use_runtimelinking" = yes; then
11362 shared_flag='${wl}-G'
11363 else
11364 shared_flag='${wl}-bM:SRE'
11369 export_dynamic_flag_spec='${wl}-bexpall'
11370 # It seems that -bexpall does not export symbols beginning with
11371 # underscore (_), so it is better to generate a list of symbols to export.
11372 always_export_symbols=yes
11373 if test "$aix_use_runtimelinking" = yes; then
11374 # Warning - without using the other runtime loading flags (-brtl),
11375 # -berok will link without error, but may produce a broken library.
11376 allow_undefined_flag='-berok'
11377 # Determine the default libpath from the value encoded in an
11378 # empty executable.
11379 if test x$gcc_no_link = xyes; then
11380 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11383 /* end confdefs.h. */
11386 main ()
11390 return 0;
11392 _ACEOF
11393 if ac_fn_c_try_link "$LINENO"; then :
11395 lt_aix_libpath_sed='
11396 /Import File Strings/,/^$/ {
11397 /^0/ {
11398 s/^0 *\(.*\)$/\1/
11402 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11403 # Check for a 64-bit object if we didn't find anything.
11404 if test -z "$aix_libpath"; then
11405 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11408 rm -f core conftest.err conftest.$ac_objext \
11409 conftest$ac_exeext conftest.$ac_ext
11410 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11412 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11413 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"
11414 else
11415 if test "$host_cpu" = ia64; then
11416 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11417 allow_undefined_flag="-z nodefs"
11418 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"
11419 else
11420 # Determine the default libpath from the value encoded in an
11421 # empty executable.
11422 if test x$gcc_no_link = xyes; then
11423 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11426 /* end confdefs.h. */
11429 main ()
11433 return 0;
11435 _ACEOF
11436 if ac_fn_c_try_link "$LINENO"; then :
11438 lt_aix_libpath_sed='
11439 /Import File Strings/,/^$/ {
11440 /^0/ {
11441 s/^0 *\(.*\)$/\1/
11445 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11446 # Check for a 64-bit object if we didn't find anything.
11447 if test -z "$aix_libpath"; then
11448 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11451 rm -f core conftest.err conftest.$ac_objext \
11452 conftest$ac_exeext conftest.$ac_ext
11453 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11455 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11456 # Warning - without using the other run time loading flags,
11457 # -berok will link without error, but may produce a broken library.
11458 no_undefined_flag=' ${wl}-bernotok'
11459 allow_undefined_flag=' ${wl}-berok'
11460 if test "$with_gnu_ld" = yes; then
11461 # We only use this code for GNU lds that support --whole-archive.
11462 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11463 else
11464 # Exported symbols can be pulled into shared objects from archives
11465 whole_archive_flag_spec='$convenience'
11467 archive_cmds_need_lc=yes
11468 # This is similar to how AIX traditionally builds its shared libraries.
11469 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'
11474 amigaos*)
11475 case $host_cpu in
11476 powerpc)
11477 # see comment about AmigaOS4 .so support
11478 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11479 archive_expsym_cmds=''
11481 m68k)
11482 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)'
11483 hardcode_libdir_flag_spec='-L$libdir'
11484 hardcode_minus_L=yes
11486 esac
11489 bsdi[45]*)
11490 export_dynamic_flag_spec=-rdynamic
11493 cygwin* | mingw* | pw32* | cegcc*)
11494 # When not using gcc, we currently assume that we are using
11495 # Microsoft Visual C++.
11496 # hardcode_libdir_flag_spec is actually meaningless, as there is
11497 # no search path for DLLs.
11498 hardcode_libdir_flag_spec=' '
11499 allow_undefined_flag=unsupported
11500 # Tell ltmain to make .lib files, not .a files.
11501 libext=lib
11502 # Tell ltmain to make .dll files, not .so files.
11503 shrext_cmds=".dll"
11504 # FIXME: Setting linknames here is a bad hack.
11505 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11506 # The linker will automatically build a .lib file if we build a DLL.
11507 old_archive_from_new_cmds='true'
11508 # FIXME: Should let the user specify the lib program.
11509 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11510 fix_srcfile_path='`cygpath -w "$srcfile"`'
11511 enable_shared_with_static_runtimes=yes
11514 darwin* | rhapsody*)
11517 archive_cmds_need_lc=no
11518 hardcode_direct=no
11519 hardcode_automatic=yes
11520 hardcode_shlibpath_var=unsupported
11521 if test "$lt_cv_ld_force_load" = "yes"; then
11522 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\"`'
11523 else
11524 whole_archive_flag_spec=''
11526 link_all_deplibs=yes
11527 allow_undefined_flag="$_lt_dar_allow_undefined"
11528 case $cc_basename in
11529 ifort*) _lt_dar_can_shared=yes ;;
11530 *) _lt_dar_can_shared=$GCC ;;
11531 esac
11532 if test "$_lt_dar_can_shared" = "yes"; then
11533 output_verbose_link_cmd=func_echo_all
11534 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11535 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11536 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}"
11537 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}"
11539 else
11540 ld_shlibs=no
11545 dgux*)
11546 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11547 hardcode_libdir_flag_spec='-L$libdir'
11548 hardcode_shlibpath_var=no
11551 freebsd1*)
11552 ld_shlibs=no
11555 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11556 # support. Future versions do this automatically, but an explicit c++rt0.o
11557 # does not break anything, and helps significantly (at the cost of a little
11558 # extra space).
11559 freebsd2.2*)
11560 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11561 hardcode_libdir_flag_spec='-R$libdir'
11562 hardcode_direct=yes
11563 hardcode_shlibpath_var=no
11566 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11567 freebsd2*)
11568 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11569 hardcode_direct=yes
11570 hardcode_minus_L=yes
11571 hardcode_shlibpath_var=no
11574 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11575 freebsd* | dragonfly*)
11576 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11577 hardcode_libdir_flag_spec='-R$libdir'
11578 hardcode_direct=yes
11579 hardcode_shlibpath_var=no
11582 hpux9*)
11583 if test "$GCC" = yes; then
11584 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'
11585 else
11586 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'
11588 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11589 hardcode_libdir_separator=:
11590 hardcode_direct=yes
11592 # hardcode_minus_L: Not really in the search PATH,
11593 # but as the default location of the library.
11594 hardcode_minus_L=yes
11595 export_dynamic_flag_spec='${wl}-E'
11598 hpux10*)
11599 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11600 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11601 else
11602 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11604 if test "$with_gnu_ld" = no; then
11605 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11606 hardcode_libdir_flag_spec_ld='+b $libdir'
11607 hardcode_libdir_separator=:
11608 hardcode_direct=yes
11609 hardcode_direct_absolute=yes
11610 export_dynamic_flag_spec='${wl}-E'
11611 # hardcode_minus_L: Not really in the search PATH,
11612 # but as the default location of the library.
11613 hardcode_minus_L=yes
11617 hpux11*)
11618 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11619 case $host_cpu in
11620 hppa*64*)
11621 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11623 ia64*)
11624 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11627 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11629 esac
11630 else
11631 case $host_cpu in
11632 hppa*64*)
11633 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11635 ia64*)
11636 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11640 # Older versions of the 11.00 compiler do not understand -b yet
11641 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11643 $as_echo_n "checking if $CC understands -b... " >&6; }
11644 if test "${lt_cv_prog_compiler__b+set}" = set; then :
11645 $as_echo_n "(cached) " >&6
11646 else
11647 lt_cv_prog_compiler__b=no
11648 save_LDFLAGS="$LDFLAGS"
11649 LDFLAGS="$LDFLAGS -b"
11650 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11651 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11652 # The linker can only warn and ignore the option if not recognized
11653 # So say no if there are warnings
11654 if test -s conftest.err; then
11655 # Append any errors to the config.log.
11656 cat conftest.err 1>&5
11657 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11658 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11659 if diff conftest.exp conftest.er2 >/dev/null; then
11660 lt_cv_prog_compiler__b=yes
11662 else
11663 lt_cv_prog_compiler__b=yes
11666 $RM -r conftest*
11667 LDFLAGS="$save_LDFLAGS"
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11671 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11673 if test x"$lt_cv_prog_compiler__b" = xyes; then
11674 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11675 else
11676 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11680 esac
11682 if test "$with_gnu_ld" = no; then
11683 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11684 hardcode_libdir_separator=:
11686 case $host_cpu in
11687 hppa*64*|ia64*)
11688 hardcode_direct=no
11689 hardcode_shlibpath_var=no
11692 hardcode_direct=yes
11693 hardcode_direct_absolute=yes
11694 export_dynamic_flag_spec='${wl}-E'
11696 # hardcode_minus_L: Not really in the search PATH,
11697 # but as the default location of the library.
11698 hardcode_minus_L=yes
11700 esac
11704 irix5* | irix6* | nonstopux*)
11705 if test "$GCC" = yes; then
11706 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'
11707 # Try to use the -exported_symbol ld option, if it does not
11708 # work, assume that -exports_file does not work either and
11709 # implicitly export all symbols.
11710 save_LDFLAGS="$LDFLAGS"
11711 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11712 if test x$gcc_no_link = xyes; then
11713 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11716 /* end confdefs.h. */
11717 int foo(void) {}
11718 _ACEOF
11719 if ac_fn_c_try_link "$LINENO"; then :
11720 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'
11723 rm -f core conftest.err conftest.$ac_objext \
11724 conftest$ac_exeext conftest.$ac_ext
11725 LDFLAGS="$save_LDFLAGS"
11726 else
11727 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'
11728 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'
11730 archive_cmds_need_lc='no'
11731 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11732 hardcode_libdir_separator=:
11733 inherit_rpath=yes
11734 link_all_deplibs=yes
11737 netbsd*)
11738 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11739 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11740 else
11741 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11743 hardcode_libdir_flag_spec='-R$libdir'
11744 hardcode_direct=yes
11745 hardcode_shlibpath_var=no
11748 newsos6)
11749 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11750 hardcode_direct=yes
11751 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11752 hardcode_libdir_separator=:
11753 hardcode_shlibpath_var=no
11756 *nto* | *qnx*)
11759 openbsd*)
11760 if test -f /usr/libexec/ld.so; then
11761 hardcode_direct=yes
11762 hardcode_shlibpath_var=no
11763 hardcode_direct_absolute=yes
11764 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11765 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11766 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11767 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11768 export_dynamic_flag_spec='${wl}-E'
11769 else
11770 case $host_os in
11771 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11772 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11773 hardcode_libdir_flag_spec='-R$libdir'
11776 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11777 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11779 esac
11781 else
11782 ld_shlibs=no
11786 os2*)
11787 hardcode_libdir_flag_spec='-L$libdir'
11788 hardcode_minus_L=yes
11789 allow_undefined_flag=unsupported
11790 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'
11791 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11794 osf3*)
11795 if test "$GCC" = yes; then
11796 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11797 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'
11798 else
11799 allow_undefined_flag=' -expect_unresolved \*'
11800 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'
11802 archive_cmds_need_lc='no'
11803 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11804 hardcode_libdir_separator=:
11807 osf4* | osf5*) # as osf3* with the addition of -msym flag
11808 if test "$GCC" = yes; then
11809 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11810 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'
11811 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11812 else
11813 allow_undefined_flag=' -expect_unresolved \*'
11814 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'
11815 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~
11816 $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'
11818 # Both c and cxx compiler support -rpath directly
11819 hardcode_libdir_flag_spec='-rpath $libdir'
11821 archive_cmds_need_lc='no'
11822 hardcode_libdir_separator=:
11825 solaris*)
11826 no_undefined_flag=' -z defs'
11827 if test "$GCC" = yes; then
11828 wlarc='${wl}'
11829 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11830 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11831 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11832 else
11833 case `$CC -V 2>&1` in
11834 *"Compilers 5.0"*)
11835 wlarc=''
11836 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11837 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11838 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11841 wlarc='${wl}'
11842 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11843 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11844 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11846 esac
11848 hardcode_libdir_flag_spec='-R$libdir'
11849 hardcode_shlibpath_var=no
11850 case $host_os in
11851 solaris2.[0-5] | solaris2.[0-5].*) ;;
11853 # The compiler driver will combine and reorder linker options,
11854 # but understands `-z linker_flag'. GCC discards it without `$wl',
11855 # but is careful enough not to reorder.
11856 # Supported since Solaris 2.6 (maybe 2.5.1?)
11857 if test "$GCC" = yes; then
11858 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11859 else
11860 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11863 esac
11864 link_all_deplibs=yes
11867 sunos4*)
11868 if test "x$host_vendor" = xsequent; then
11869 # Use $CC to link under sequent, because it throws in some extra .o
11870 # files that make .init and .fini sections work.
11871 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11872 else
11873 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11875 hardcode_libdir_flag_spec='-L$libdir'
11876 hardcode_direct=yes
11877 hardcode_minus_L=yes
11878 hardcode_shlibpath_var=no
11881 sysv4)
11882 case $host_vendor in
11883 sni)
11884 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11885 hardcode_direct=yes # is this really true???
11887 siemens)
11888 ## LD is ld it makes a PLAMLIB
11889 ## CC just makes a GrossModule.
11890 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11891 reload_cmds='$CC -r -o $output$reload_objs'
11892 hardcode_direct=no
11894 motorola)
11895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11896 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11898 esac
11899 runpath_var='LD_RUN_PATH'
11900 hardcode_shlibpath_var=no
11903 sysv4.3*)
11904 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11905 hardcode_shlibpath_var=no
11906 export_dynamic_flag_spec='-Bexport'
11909 sysv4*MP*)
11910 if test -d /usr/nec; then
11911 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11912 hardcode_shlibpath_var=no
11913 runpath_var=LD_RUN_PATH
11914 hardcode_runpath_var=yes
11915 ld_shlibs=yes
11919 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11920 no_undefined_flag='${wl}-z,text'
11921 archive_cmds_need_lc=no
11922 hardcode_shlibpath_var=no
11923 runpath_var='LD_RUN_PATH'
11925 if test "$GCC" = yes; then
11926 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11927 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11928 else
11929 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11930 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11934 sysv5* | sco3.2v5* | sco5v6*)
11935 # Note: We can NOT use -z defs as we might desire, because we do not
11936 # link with -lc, and that would cause any symbols used from libc to
11937 # always be unresolved, which means just about no library would
11938 # ever link correctly. If we're not using GNU ld we use -z text
11939 # though, which does catch some bad symbols but isn't as heavy-handed
11940 # as -z defs.
11941 no_undefined_flag='${wl}-z,text'
11942 allow_undefined_flag='${wl}-z,nodefs'
11943 archive_cmds_need_lc=no
11944 hardcode_shlibpath_var=no
11945 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11946 hardcode_libdir_separator=':'
11947 link_all_deplibs=yes
11948 export_dynamic_flag_spec='${wl}-Bexport'
11949 runpath_var='LD_RUN_PATH'
11951 if test "$GCC" = yes; then
11952 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11953 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11954 else
11955 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11956 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11960 uts4*)
11961 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11962 hardcode_libdir_flag_spec='-L$libdir'
11963 hardcode_shlibpath_var=no
11967 ld_shlibs=no
11969 esac
11971 if test x$host_vendor = xsni; then
11972 case $host in
11973 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11974 export_dynamic_flag_spec='${wl}-Blargedynsym'
11976 esac
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11981 $as_echo "$ld_shlibs" >&6; }
11982 test "$ld_shlibs" = no && can_build_shared=no
11984 with_gnu_ld=$with_gnu_ld
12001 # Do we need to explicitly link libc?
12003 case "x$archive_cmds_need_lc" in
12004 x|xyes)
12005 # Assume -lc should be added
12006 archive_cmds_need_lc=yes
12008 if test "$enable_shared" = yes && test "$GCC" = yes; then
12009 case $archive_cmds in
12010 *'~'*)
12011 # FIXME: we may have to deal with multi-command sequences.
12013 '$CC '*)
12014 # Test whether the compiler implicitly links with -lc since on some
12015 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12016 # to ld, don't add -lc before -lgcc.
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12018 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12019 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
12020 $as_echo_n "(cached) " >&6
12021 else
12022 $RM conftest*
12023 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12025 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12026 (eval $ac_compile) 2>&5
12027 ac_status=$?
12028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12029 test $ac_status = 0; } 2>conftest.err; then
12030 soname=conftest
12031 lib=conftest
12032 libobjs=conftest.$ac_objext
12033 deplibs=
12034 wl=$lt_prog_compiler_wl
12035 pic_flag=$lt_prog_compiler_pic
12036 compiler_flags=-v
12037 linker_flags=-v
12038 verstring=
12039 output_objdir=.
12040 libname=conftest
12041 lt_save_allow_undefined_flag=$allow_undefined_flag
12042 allow_undefined_flag=
12043 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12044 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12045 ac_status=$?
12046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12047 test $ac_status = 0; }
12048 then
12049 lt_cv_archive_cmds_need_lc=no
12050 else
12051 lt_cv_archive_cmds_need_lc=yes
12053 allow_undefined_flag=$lt_save_allow_undefined_flag
12054 else
12055 cat conftest.err 1>&5
12057 $RM conftest*
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12061 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12062 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12064 esac
12067 esac
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12226 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12228 if test "$GCC" = yes; then
12229 case $host_os in
12230 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12231 *) lt_awk_arg="/^libraries:/" ;;
12232 esac
12233 case $host_os in
12234 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12235 *) lt_sed_strip_eq="s,=/,/,g" ;;
12236 esac
12237 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12238 case $lt_search_path_spec in
12239 *\;*)
12240 # if the path contains ";" then we assume it to be the separator
12241 # otherwise default to the standard path separator (i.e. ":") - it is
12242 # assumed that no part of a normal pathname contains ";" but that should
12243 # okay in the real world where ";" in dirpaths is itself problematic.
12244 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12247 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12249 esac
12250 # Ok, now we have the path, separated by spaces, we can step through it
12251 # and add multilib dir if necessary.
12252 lt_tmp_lt_search_path_spec=
12253 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12254 for lt_sys_path in $lt_search_path_spec; do
12255 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12256 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12257 else
12258 test -d "$lt_sys_path" && \
12259 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12261 done
12262 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12263 BEGIN {RS=" "; FS="/|\n";} {
12264 lt_foo="";
12265 lt_count=0;
12266 for (lt_i = NF; lt_i > 0; lt_i--) {
12267 if ($lt_i != "" && $lt_i != ".") {
12268 if ($lt_i == "..") {
12269 lt_count++;
12270 } else {
12271 if (lt_count == 0) {
12272 lt_foo="/" $lt_i lt_foo;
12273 } else {
12274 lt_count--;
12279 if (lt_foo != "") { lt_freq[lt_foo]++; }
12280 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12282 # AWK program above erroneously prepends '/' to C:/dos/paths
12283 # for these hosts.
12284 case $host_os in
12285 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12286 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12287 esac
12288 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12289 else
12290 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12292 library_names_spec=
12293 libname_spec='lib$name'
12294 soname_spec=
12295 shrext_cmds=".so"
12296 postinstall_cmds=
12297 postuninstall_cmds=
12298 finish_cmds=
12299 finish_eval=
12300 shlibpath_var=
12301 shlibpath_overrides_runpath=unknown
12302 version_type=none
12303 dynamic_linker="$host_os ld.so"
12304 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12305 need_lib_prefix=unknown
12306 hardcode_into_libs=no
12308 # when you set need_version to no, make sure it does not cause -set_version
12309 # flags to be left without arguments
12310 need_version=unknown
12312 case $host_os in
12313 aix3*)
12314 version_type=linux
12315 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12316 shlibpath_var=LIBPATH
12318 # AIX 3 has no versioning support, so we append a major version to the name.
12319 soname_spec='${libname}${release}${shared_ext}$major'
12322 aix[4-9]*)
12323 version_type=linux
12324 need_lib_prefix=no
12325 need_version=no
12326 hardcode_into_libs=yes
12327 if test "$host_cpu" = ia64; then
12328 # AIX 5 supports IA64
12329 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12330 shlibpath_var=LD_LIBRARY_PATH
12331 else
12332 # With GCC up to 2.95.x, collect2 would create an import file
12333 # for dependence libraries. The import file would start with
12334 # the line `#! .'. This would cause the generated library to
12335 # depend on `.', always an invalid library. This was fixed in
12336 # development snapshots of GCC prior to 3.0.
12337 case $host_os in
12338 aix4 | aix4.[01] | aix4.[01].*)
12339 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12340 echo ' yes '
12341 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12343 else
12344 can_build_shared=no
12347 esac
12348 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12349 # soname into executable. Probably we can add versioning support to
12350 # collect2, so additional links can be useful in future.
12351 if test "$aix_use_runtimelinking" = yes; then
12352 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12353 # instead of lib<name>.a to let people know that these are not
12354 # typical AIX shared libraries.
12355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12356 else
12357 # We preserve .a as extension for shared libraries through AIX4.2
12358 # and later when we are not doing run time linking.
12359 library_names_spec='${libname}${release}.a $libname.a'
12360 soname_spec='${libname}${release}${shared_ext}$major'
12362 shlibpath_var=LIBPATH
12366 amigaos*)
12367 case $host_cpu in
12368 powerpc)
12369 # Since July 2007 AmigaOS4 officially supports .so libraries.
12370 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12373 m68k)
12374 library_names_spec='$libname.ixlibrary $libname.a'
12375 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12376 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'
12378 esac
12381 beos*)
12382 library_names_spec='${libname}${shared_ext}'
12383 dynamic_linker="$host_os ld.so"
12384 shlibpath_var=LIBRARY_PATH
12387 bsdi[45]*)
12388 version_type=linux
12389 need_version=no
12390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12391 soname_spec='${libname}${release}${shared_ext}$major'
12392 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12393 shlibpath_var=LD_LIBRARY_PATH
12394 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12395 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12396 # the default ld.so.conf also contains /usr/contrib/lib and
12397 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12398 # libtool to hard-code these into programs
12401 cygwin* | mingw* | pw32* | cegcc*)
12402 version_type=windows
12403 shrext_cmds=".dll"
12404 need_version=no
12405 need_lib_prefix=no
12407 case $GCC,$host_os in
12408 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12409 library_names_spec='$libname.dll.a'
12410 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12411 postinstall_cmds='base_file=`basename \${file}`~
12412 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12413 dldir=$destdir/`dirname \$dlpath`~
12414 test -d \$dldir || mkdir -p \$dldir~
12415 $install_prog $dir/$dlname \$dldir/$dlname~
12416 chmod a+x \$dldir/$dlname~
12417 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12418 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12420 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12421 dlpath=$dir/\$dldll~
12422 $RM \$dlpath'
12423 shlibpath_overrides_runpath=yes
12425 case $host_os in
12426 cygwin*)
12427 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12428 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12430 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12432 mingw* | cegcc*)
12433 # MinGW DLLs use traditional 'lib' prefix
12434 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12436 pw32*)
12437 # pw32 DLLs use 'pw' prefix rather than 'lib'
12438 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12440 esac
12444 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12446 esac
12447 dynamic_linker='Win32 ld.exe'
12448 # FIXME: first we should search . and the directory the executable is in
12449 shlibpath_var=PATH
12452 darwin* | rhapsody*)
12453 dynamic_linker="$host_os dyld"
12454 version_type=darwin
12455 need_lib_prefix=no
12456 need_version=no
12457 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12458 soname_spec='${libname}${release}${major}$shared_ext'
12459 shlibpath_overrides_runpath=yes
12460 shlibpath_var=DYLD_LIBRARY_PATH
12461 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12463 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12464 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12467 dgux*)
12468 version_type=linux
12469 need_lib_prefix=no
12470 need_version=no
12471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12472 soname_spec='${libname}${release}${shared_ext}$major'
12473 shlibpath_var=LD_LIBRARY_PATH
12476 freebsd1*)
12477 dynamic_linker=no
12480 freebsd* | dragonfly*)
12481 # DragonFly does not have aout. When/if they implement a new
12482 # versioning mechanism, adjust this.
12483 if test -x /usr/bin/objformat; then
12484 objformat=`/usr/bin/objformat`
12485 else
12486 case $host_os in
12487 freebsd[123]*) objformat=aout ;;
12488 *) objformat=elf ;;
12489 esac
12491 version_type=freebsd-$objformat
12492 case $version_type in
12493 freebsd-elf*)
12494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12495 need_version=no
12496 need_lib_prefix=no
12498 freebsd-*)
12499 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12500 need_version=yes
12502 esac
12503 shlibpath_var=LD_LIBRARY_PATH
12504 case $host_os in
12505 freebsd2*)
12506 shlibpath_overrides_runpath=yes
12508 freebsd3.[01]* | freebsdelf3.[01]*)
12509 shlibpath_overrides_runpath=yes
12510 hardcode_into_libs=yes
12512 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12513 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12514 shlibpath_overrides_runpath=no
12515 hardcode_into_libs=yes
12517 *) # from 4.6 on, and DragonFly
12518 shlibpath_overrides_runpath=yes
12519 hardcode_into_libs=yes
12521 esac
12524 gnu*)
12525 version_type=linux
12526 need_lib_prefix=no
12527 need_version=no
12528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12529 soname_spec='${libname}${release}${shared_ext}$major'
12530 shlibpath_var=LD_LIBRARY_PATH
12531 hardcode_into_libs=yes
12534 haiku*)
12535 version_type=linux
12536 need_lib_prefix=no
12537 need_version=no
12538 dynamic_linker="$host_os runtime_loader"
12539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12540 soname_spec='${libname}${release}${shared_ext}$major'
12541 shlibpath_var=LIBRARY_PATH
12542 shlibpath_overrides_runpath=yes
12543 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
12544 hardcode_into_libs=yes
12547 hpux9* | hpux10* | hpux11*)
12548 # Give a soname corresponding to the major version so that dld.sl refuses to
12549 # link against other versions.
12550 version_type=sunos
12551 need_lib_prefix=no
12552 need_version=no
12553 case $host_cpu in
12554 ia64*)
12555 shrext_cmds='.so'
12556 hardcode_into_libs=yes
12557 dynamic_linker="$host_os dld.so"
12558 shlibpath_var=LD_LIBRARY_PATH
12559 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12561 soname_spec='${libname}${release}${shared_ext}$major'
12562 if test "X$HPUX_IA64_MODE" = X32; then
12563 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12564 else
12565 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12567 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12569 hppa*64*)
12570 shrext_cmds='.sl'
12571 hardcode_into_libs=yes
12572 dynamic_linker="$host_os dld.sl"
12573 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12574 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12576 soname_spec='${libname}${release}${shared_ext}$major'
12577 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12578 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12581 shrext_cmds='.sl'
12582 dynamic_linker="$host_os dld.sl"
12583 shlibpath_var=SHLIB_PATH
12584 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12586 soname_spec='${libname}${release}${shared_ext}$major'
12588 esac
12589 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12590 postinstall_cmds='chmod 555 $lib'
12591 # or fails outright, so override atomically:
12592 install_override_mode=555
12595 interix[3-9]*)
12596 version_type=linux
12597 need_lib_prefix=no
12598 need_version=no
12599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12600 soname_spec='${libname}${release}${shared_ext}$major'
12601 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12602 shlibpath_var=LD_LIBRARY_PATH
12603 shlibpath_overrides_runpath=no
12604 hardcode_into_libs=yes
12607 irix5* | irix6* | nonstopux*)
12608 case $host_os in
12609 nonstopux*) version_type=nonstopux ;;
12611 if test "$lt_cv_prog_gnu_ld" = yes; then
12612 version_type=linux
12613 else
12614 version_type=irix
12615 fi ;;
12616 esac
12617 need_lib_prefix=no
12618 need_version=no
12619 soname_spec='${libname}${release}${shared_ext}$major'
12620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12621 case $host_os in
12622 irix5* | nonstopux*)
12623 libsuff= shlibsuff=
12626 case $LD in # libtool.m4 will add one of these switches to LD
12627 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12628 libsuff= shlibsuff= libmagic=32-bit;;
12629 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12630 libsuff=32 shlibsuff=N32 libmagic=N32;;
12631 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12632 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12633 *) libsuff= shlibsuff= libmagic=never-match;;
12634 esac
12636 esac
12637 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12638 shlibpath_overrides_runpath=no
12639 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12640 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12641 hardcode_into_libs=yes
12644 # No shared lib support for Linux oldld, aout, or coff.
12645 linux*oldld* | linux*aout* | linux*coff*)
12646 dynamic_linker=no
12649 # This must be Linux ELF.
12650 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12651 version_type=linux
12652 need_lib_prefix=no
12653 need_version=no
12654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12655 soname_spec='${libname}${release}${shared_ext}$major'
12656 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12657 shlibpath_var=LD_LIBRARY_PATH
12658 shlibpath_overrides_runpath=no
12660 # Some binutils ld are patched to set DT_RUNPATH
12661 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
12662 $as_echo_n "(cached) " >&6
12663 else
12664 lt_cv_shlibpath_overrides_runpath=no
12665 save_LDFLAGS=$LDFLAGS
12666 save_libdir=$libdir
12667 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12668 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12669 if test x$gcc_no_link = xyes; then
12670 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12673 /* end confdefs.h. */
12676 main ()
12680 return 0;
12682 _ACEOF
12683 if ac_fn_c_try_link "$LINENO"; then :
12684 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12685 lt_cv_shlibpath_overrides_runpath=yes
12688 rm -f core conftest.err conftest.$ac_objext \
12689 conftest$ac_exeext conftest.$ac_ext
12690 LDFLAGS=$save_LDFLAGS
12691 libdir=$save_libdir
12695 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12697 # This implies no fast_install, which is unacceptable.
12698 # Some rework will be needed to allow for fast_install
12699 # before this can be enabled.
12700 hardcode_into_libs=yes
12702 # Append ld.so.conf contents to the search path
12703 if test -f /etc/ld.so.conf; then
12704 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' ' '`
12705 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12708 # We used to test for /lib/ld.so.1 and disable shared libraries on
12709 # powerpc, because MkLinux only supported shared libraries with the
12710 # GNU dynamic linker. Since this was broken with cross compilers,
12711 # most powerpc-linux boxes support dynamic linking these days and
12712 # people can always --disable-shared, the test was removed, and we
12713 # assume the GNU/Linux dynamic linker is in use.
12714 dynamic_linker='GNU/Linux ld.so'
12717 netbsd*)
12718 version_type=sunos
12719 need_lib_prefix=no
12720 need_version=no
12721 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12723 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12724 dynamic_linker='NetBSD (a.out) ld.so'
12725 else
12726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12727 soname_spec='${libname}${release}${shared_ext}$major'
12728 dynamic_linker='NetBSD ld.elf_so'
12730 shlibpath_var=LD_LIBRARY_PATH
12731 shlibpath_overrides_runpath=yes
12732 hardcode_into_libs=yes
12735 newsos6)
12736 version_type=linux
12737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12738 shlibpath_var=LD_LIBRARY_PATH
12739 shlibpath_overrides_runpath=yes
12742 *nto* | *qnx*)
12743 version_type=qnx
12744 need_lib_prefix=no
12745 need_version=no
12746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12747 soname_spec='${libname}${release}${shared_ext}$major'
12748 shlibpath_var=LD_LIBRARY_PATH
12749 shlibpath_overrides_runpath=no
12750 hardcode_into_libs=yes
12751 dynamic_linker='ldqnx.so'
12754 openbsd*)
12755 version_type=sunos
12756 sys_lib_dlsearch_path_spec="/usr/lib"
12757 need_lib_prefix=no
12758 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12759 case $host_os in
12760 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12761 *) need_version=no ;;
12762 esac
12763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12764 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12765 shlibpath_var=LD_LIBRARY_PATH
12766 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12767 case $host_os in
12768 openbsd2.[89] | openbsd2.[89].*)
12769 shlibpath_overrides_runpath=no
12772 shlibpath_overrides_runpath=yes
12774 esac
12775 else
12776 shlibpath_overrides_runpath=yes
12780 os2*)
12781 libname_spec='$name'
12782 shrext_cmds=".dll"
12783 need_lib_prefix=no
12784 library_names_spec='$libname${shared_ext} $libname.a'
12785 dynamic_linker='OS/2 ld.exe'
12786 shlibpath_var=LIBPATH
12789 osf3* | osf4* | osf5*)
12790 version_type=osf
12791 need_lib_prefix=no
12792 need_version=no
12793 soname_spec='${libname}${release}${shared_ext}$major'
12794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12795 shlibpath_var=LD_LIBRARY_PATH
12796 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12797 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12800 rdos*)
12801 dynamic_linker=no
12804 solaris*)
12805 version_type=linux
12806 need_lib_prefix=no
12807 need_version=no
12808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12809 soname_spec='${libname}${release}${shared_ext}$major'
12810 shlibpath_var=LD_LIBRARY_PATH
12811 shlibpath_overrides_runpath=yes
12812 hardcode_into_libs=yes
12813 # ldd complains unless libraries are executable
12814 postinstall_cmds='chmod +x $lib'
12817 sunos4*)
12818 version_type=sunos
12819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12820 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12821 shlibpath_var=LD_LIBRARY_PATH
12822 shlibpath_overrides_runpath=yes
12823 if test "$with_gnu_ld" = yes; then
12824 need_lib_prefix=no
12826 need_version=yes
12829 sysv4 | sysv4.3*)
12830 version_type=linux
12831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12832 soname_spec='${libname}${release}${shared_ext}$major'
12833 shlibpath_var=LD_LIBRARY_PATH
12834 case $host_vendor in
12835 sni)
12836 shlibpath_overrides_runpath=no
12837 need_lib_prefix=no
12838 runpath_var=LD_RUN_PATH
12840 siemens)
12841 need_lib_prefix=no
12843 motorola)
12844 need_lib_prefix=no
12845 need_version=no
12846 shlibpath_overrides_runpath=no
12847 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12849 esac
12852 sysv4*MP*)
12853 if test -d /usr/nec ;then
12854 version_type=linux
12855 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12856 soname_spec='$libname${shared_ext}.$major'
12857 shlibpath_var=LD_LIBRARY_PATH
12861 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12862 version_type=freebsd-elf
12863 need_lib_prefix=no
12864 need_version=no
12865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12866 soname_spec='${libname}${release}${shared_ext}$major'
12867 shlibpath_var=LD_LIBRARY_PATH
12868 shlibpath_overrides_runpath=yes
12869 hardcode_into_libs=yes
12870 if test "$with_gnu_ld" = yes; then
12871 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12872 else
12873 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12874 case $host_os in
12875 sco3.2v5*)
12876 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12878 esac
12880 sys_lib_dlsearch_path_spec='/usr/lib'
12883 tpf*)
12884 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12885 version_type=linux
12886 need_lib_prefix=no
12887 need_version=no
12888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12889 shlibpath_var=LD_LIBRARY_PATH
12890 shlibpath_overrides_runpath=no
12891 hardcode_into_libs=yes
12894 uts4*)
12895 version_type=linux
12896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12897 soname_spec='${libname}${release}${shared_ext}$major'
12898 shlibpath_var=LD_LIBRARY_PATH
12902 dynamic_linker=no
12904 esac
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12906 $as_echo "$dynamic_linker" >&6; }
12907 test "$dynamic_linker" = no && can_build_shared=no
12909 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12910 if test "$GCC" = yes; then
12911 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12914 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12915 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12917 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12918 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13013 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13014 hardcode_action=
13015 if test -n "$hardcode_libdir_flag_spec" ||
13016 test -n "$runpath_var" ||
13017 test "X$hardcode_automatic" = "Xyes" ; then
13019 # We can hardcode non-existent directories.
13020 if test "$hardcode_direct" != no &&
13021 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13022 # have to relink, otherwise we might link with an installed library
13023 # when we should be linking with a yet-to-be-installed one
13024 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13025 test "$hardcode_minus_L" != no; then
13026 # Linking always hardcodes the temporary library directory.
13027 hardcode_action=relink
13028 else
13029 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13030 hardcode_action=immediate
13032 else
13033 # We cannot hardcode anything, or else we can only hardcode existing
13034 # directories.
13035 hardcode_action=unsupported
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13038 $as_echo "$hardcode_action" >&6; }
13040 if test "$hardcode_action" = relink ||
13041 test "$inherit_rpath" = yes; then
13042 # Fast installation is not supported
13043 enable_fast_install=no
13044 elif test "$shlibpath_overrides_runpath" = yes ||
13045 test "$enable_shared" = no; then
13046 # Fast installation is not necessary
13047 enable_fast_install=needless
13055 if test "x$enable_dlopen" != xyes; then
13056 enable_dlopen=unknown
13057 enable_dlopen_self=unknown
13058 enable_dlopen_self_static=unknown
13059 else
13060 lt_cv_dlopen=no
13061 lt_cv_dlopen_libs=
13063 case $host_os in
13064 beos*)
13065 lt_cv_dlopen="load_add_on"
13066 lt_cv_dlopen_libs=
13067 lt_cv_dlopen_self=yes
13070 mingw* | pw32* | cegcc*)
13071 lt_cv_dlopen="LoadLibrary"
13072 lt_cv_dlopen_libs=
13075 cygwin*)
13076 lt_cv_dlopen="dlopen"
13077 lt_cv_dlopen_libs=
13080 darwin*)
13081 # if libdl is installed we need to link against it
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13083 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13084 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13085 $as_echo_n "(cached) " >&6
13086 else
13087 ac_check_lib_save_LIBS=$LIBS
13088 LIBS="-ldl $LIBS"
13089 if test x$gcc_no_link = xyes; then
13090 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13093 /* end confdefs.h. */
13095 /* Override any GCC internal prototype to avoid an error.
13096 Use char because int might match the return type of a GCC
13097 builtin and then its argument prototype would still apply. */
13098 #ifdef __cplusplus
13099 extern "C"
13100 #endif
13101 char dlopen ();
13103 main ()
13105 return dlopen ();
13107 return 0;
13109 _ACEOF
13110 if ac_fn_c_try_link "$LINENO"; then :
13111 ac_cv_lib_dl_dlopen=yes
13112 else
13113 ac_cv_lib_dl_dlopen=no
13115 rm -f core conftest.err conftest.$ac_objext \
13116 conftest$ac_exeext conftest.$ac_ext
13117 LIBS=$ac_check_lib_save_LIBS
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13120 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13121 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13122 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13123 else
13125 lt_cv_dlopen="dyld"
13126 lt_cv_dlopen_libs=
13127 lt_cv_dlopen_self=yes
13134 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13135 if test "x$ac_cv_func_shl_load" = x""yes; then :
13136 lt_cv_dlopen="shl_load"
13137 else
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13139 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13140 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13141 $as_echo_n "(cached) " >&6
13142 else
13143 ac_check_lib_save_LIBS=$LIBS
13144 LIBS="-ldld $LIBS"
13145 if test x$gcc_no_link = xyes; then
13146 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13149 /* end confdefs.h. */
13151 /* Override any GCC internal prototype to avoid an error.
13152 Use char because int might match the return type of a GCC
13153 builtin and then its argument prototype would still apply. */
13154 #ifdef __cplusplus
13155 extern "C"
13156 #endif
13157 char shl_load ();
13159 main ()
13161 return shl_load ();
13163 return 0;
13165 _ACEOF
13166 if ac_fn_c_try_link "$LINENO"; then :
13167 ac_cv_lib_dld_shl_load=yes
13168 else
13169 ac_cv_lib_dld_shl_load=no
13171 rm -f core conftest.err conftest.$ac_objext \
13172 conftest$ac_exeext conftest.$ac_ext
13173 LIBS=$ac_check_lib_save_LIBS
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13176 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13177 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13178 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13179 else
13180 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13181 if test "x$ac_cv_func_dlopen" = x""yes; then :
13182 lt_cv_dlopen="dlopen"
13183 else
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13185 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13186 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13187 $as_echo_n "(cached) " >&6
13188 else
13189 ac_check_lib_save_LIBS=$LIBS
13190 LIBS="-ldl $LIBS"
13191 if test x$gcc_no_link = xyes; then
13192 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13195 /* end confdefs.h. */
13197 /* Override any GCC internal prototype to avoid an error.
13198 Use char because int might match the return type of a GCC
13199 builtin and then its argument prototype would still apply. */
13200 #ifdef __cplusplus
13201 extern "C"
13202 #endif
13203 char dlopen ();
13205 main ()
13207 return dlopen ();
13209 return 0;
13211 _ACEOF
13212 if ac_fn_c_try_link "$LINENO"; then :
13213 ac_cv_lib_dl_dlopen=yes
13214 else
13215 ac_cv_lib_dl_dlopen=no
13217 rm -f core conftest.err conftest.$ac_objext \
13218 conftest$ac_exeext conftest.$ac_ext
13219 LIBS=$ac_check_lib_save_LIBS
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13222 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13223 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13224 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13225 else
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13227 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13228 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13229 $as_echo_n "(cached) " >&6
13230 else
13231 ac_check_lib_save_LIBS=$LIBS
13232 LIBS="-lsvld $LIBS"
13233 if test x$gcc_no_link = xyes; then
13234 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13237 /* end confdefs.h. */
13239 /* Override any GCC internal prototype to avoid an error.
13240 Use char because int might match the return type of a GCC
13241 builtin and then its argument prototype would still apply. */
13242 #ifdef __cplusplus
13243 extern "C"
13244 #endif
13245 char dlopen ();
13247 main ()
13249 return dlopen ();
13251 return 0;
13253 _ACEOF
13254 if ac_fn_c_try_link "$LINENO"; then :
13255 ac_cv_lib_svld_dlopen=yes
13256 else
13257 ac_cv_lib_svld_dlopen=no
13259 rm -f core conftest.err conftest.$ac_objext \
13260 conftest$ac_exeext conftest.$ac_ext
13261 LIBS=$ac_check_lib_save_LIBS
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13264 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13265 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13266 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13267 else
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13269 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13270 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13271 $as_echo_n "(cached) " >&6
13272 else
13273 ac_check_lib_save_LIBS=$LIBS
13274 LIBS="-ldld $LIBS"
13275 if test x$gcc_no_link = xyes; then
13276 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13279 /* end confdefs.h. */
13281 /* Override any GCC internal prototype to avoid an error.
13282 Use char because int might match the return type of a GCC
13283 builtin and then its argument prototype would still apply. */
13284 #ifdef __cplusplus
13285 extern "C"
13286 #endif
13287 char dld_link ();
13289 main ()
13291 return dld_link ();
13293 return 0;
13295 _ACEOF
13296 if ac_fn_c_try_link "$LINENO"; then :
13297 ac_cv_lib_dld_dld_link=yes
13298 else
13299 ac_cv_lib_dld_dld_link=no
13301 rm -f core conftest.err conftest.$ac_objext \
13302 conftest$ac_exeext conftest.$ac_ext
13303 LIBS=$ac_check_lib_save_LIBS
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13306 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13307 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13308 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13327 esac
13329 if test "x$lt_cv_dlopen" != xno; then
13330 enable_dlopen=yes
13331 else
13332 enable_dlopen=no
13335 case $lt_cv_dlopen in
13336 dlopen)
13337 save_CPPFLAGS="$CPPFLAGS"
13338 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13340 save_LDFLAGS="$LDFLAGS"
13341 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13343 save_LIBS="$LIBS"
13344 LIBS="$lt_cv_dlopen_libs $LIBS"
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13347 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13348 if test "${lt_cv_dlopen_self+set}" = set; then :
13349 $as_echo_n "(cached) " >&6
13350 else
13351 if test "$cross_compiling" = yes; then :
13352 lt_cv_dlopen_self=cross
13353 else
13354 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13355 lt_status=$lt_dlunknown
13356 cat > conftest.$ac_ext <<_LT_EOF
13357 #line 13357 "configure"
13358 #include "confdefs.h"
13360 #if HAVE_DLFCN_H
13361 #include <dlfcn.h>
13362 #endif
13364 #include <stdio.h>
13366 #ifdef RTLD_GLOBAL
13367 # define LT_DLGLOBAL RTLD_GLOBAL
13368 #else
13369 # ifdef DL_GLOBAL
13370 # define LT_DLGLOBAL DL_GLOBAL
13371 # else
13372 # define LT_DLGLOBAL 0
13373 # endif
13374 #endif
13376 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13377 find out it does not work in some platform. */
13378 #ifndef LT_DLLAZY_OR_NOW
13379 # ifdef RTLD_LAZY
13380 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13381 # else
13382 # ifdef DL_LAZY
13383 # define LT_DLLAZY_OR_NOW DL_LAZY
13384 # else
13385 # ifdef RTLD_NOW
13386 # define LT_DLLAZY_OR_NOW RTLD_NOW
13387 # else
13388 # ifdef DL_NOW
13389 # define LT_DLLAZY_OR_NOW DL_NOW
13390 # else
13391 # define LT_DLLAZY_OR_NOW 0
13392 # endif
13393 # endif
13394 # endif
13395 # endif
13396 #endif
13398 /* When -fvisbility=hidden is used, assume the code has been annotated
13399 correspondingly for the symbols needed. */
13400 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13401 void fnord () __attribute__((visibility("default")));
13402 #endif
13404 void fnord () { int i=42; }
13405 int main ()
13407 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13408 int status = $lt_dlunknown;
13410 if (self)
13412 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13413 else
13415 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13416 else puts (dlerror ());
13418 /* dlclose (self); */
13420 else
13421 puts (dlerror ());
13423 return status;
13425 _LT_EOF
13426 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13427 (eval $ac_link) 2>&5
13428 ac_status=$?
13429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13430 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13431 (./conftest; exit; ) >&5 2>/dev/null
13432 lt_status=$?
13433 case x$lt_status in
13434 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13435 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13436 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13437 esac
13438 else :
13439 # compilation failed
13440 lt_cv_dlopen_self=no
13443 rm -fr conftest*
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13448 $as_echo "$lt_cv_dlopen_self" >&6; }
13450 if test "x$lt_cv_dlopen_self" = xyes; then
13451 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13453 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13454 if test "${lt_cv_dlopen_self_static+set}" = set; then :
13455 $as_echo_n "(cached) " >&6
13456 else
13457 if test "$cross_compiling" = yes; then :
13458 lt_cv_dlopen_self_static=cross
13459 else
13460 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13461 lt_status=$lt_dlunknown
13462 cat > conftest.$ac_ext <<_LT_EOF
13463 #line 13463 "configure"
13464 #include "confdefs.h"
13466 #if HAVE_DLFCN_H
13467 #include <dlfcn.h>
13468 #endif
13470 #include <stdio.h>
13472 #ifdef RTLD_GLOBAL
13473 # define LT_DLGLOBAL RTLD_GLOBAL
13474 #else
13475 # ifdef DL_GLOBAL
13476 # define LT_DLGLOBAL DL_GLOBAL
13477 # else
13478 # define LT_DLGLOBAL 0
13479 # endif
13480 #endif
13482 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13483 find out it does not work in some platform. */
13484 #ifndef LT_DLLAZY_OR_NOW
13485 # ifdef RTLD_LAZY
13486 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13487 # else
13488 # ifdef DL_LAZY
13489 # define LT_DLLAZY_OR_NOW DL_LAZY
13490 # else
13491 # ifdef RTLD_NOW
13492 # define LT_DLLAZY_OR_NOW RTLD_NOW
13493 # else
13494 # ifdef DL_NOW
13495 # define LT_DLLAZY_OR_NOW DL_NOW
13496 # else
13497 # define LT_DLLAZY_OR_NOW 0
13498 # endif
13499 # endif
13500 # endif
13501 # endif
13502 #endif
13504 /* When -fvisbility=hidden is used, assume the code has been annotated
13505 correspondingly for the symbols needed. */
13506 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13507 void fnord () __attribute__((visibility("default")));
13508 #endif
13510 void fnord () { int i=42; }
13511 int main ()
13513 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13514 int status = $lt_dlunknown;
13516 if (self)
13518 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13519 else
13521 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13522 else puts (dlerror ());
13524 /* dlclose (self); */
13526 else
13527 puts (dlerror ());
13529 return status;
13531 _LT_EOF
13532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13533 (eval $ac_link) 2>&5
13534 ac_status=$?
13535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13536 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13537 (./conftest; exit; ) >&5 2>/dev/null
13538 lt_status=$?
13539 case x$lt_status in
13540 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13541 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13542 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13543 esac
13544 else :
13545 # compilation failed
13546 lt_cv_dlopen_self_static=no
13549 rm -fr conftest*
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13554 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13557 CPPFLAGS="$save_CPPFLAGS"
13558 LDFLAGS="$save_LDFLAGS"
13559 LIBS="$save_LIBS"
13561 esac
13563 case $lt_cv_dlopen_self in
13564 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13565 *) enable_dlopen_self=unknown ;;
13566 esac
13568 case $lt_cv_dlopen_self_static in
13569 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13570 *) enable_dlopen_self_static=unknown ;;
13571 esac
13590 striplib=
13591 old_striplib=
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13593 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13594 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13595 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13596 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13598 $as_echo "yes" >&6; }
13599 else
13600 # FIXME - insert some real tests, host_os isn't really good enough
13601 case $host_os in
13602 darwin*)
13603 if test -n "$STRIP" ; then
13604 striplib="$STRIP -x"
13605 old_striplib="$STRIP -S"
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13607 $as_echo "yes" >&6; }
13608 else
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13610 $as_echo "no" >&6; }
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13615 $as_echo "no" >&6; }
13617 esac
13631 # Report which library types will actually be built
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13633 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13635 $as_echo "$can_build_shared" >&6; }
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13638 $as_echo_n "checking whether to build shared libraries... " >&6; }
13639 test "$can_build_shared" = "no" && enable_shared=no
13641 # On AIX, shared libraries and static libraries use the same namespace, and
13642 # are all built from PIC.
13643 case $host_os in
13644 aix3*)
13645 test "$enable_shared" = yes && enable_static=no
13646 if test -n "$RANLIB"; then
13647 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13648 postinstall_cmds='$RANLIB $lib'
13652 aix[4-9]*)
13653 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13654 test "$enable_shared" = yes && enable_static=no
13657 esac
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13659 $as_echo "$enable_shared" >&6; }
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13662 $as_echo_n "checking whether to build static libraries... " >&6; }
13663 # Make sure either enable_shared or enable_static is yes.
13664 test "$enable_shared" = yes || enable_static=yes
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13666 $as_echo "$enable_static" >&6; }
13672 ac_ext=c
13673 ac_cpp='$CPP $CPPFLAGS'
13674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13678 CC="$lt_save_CC"
13680 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13681 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13682 (test "X$CXX" != "Xg++"))) ; then
13683 ac_ext=cpp
13684 ac_cpp='$CXXCPP $CPPFLAGS'
13685 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13686 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13687 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13689 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13690 if test -z "$CXXCPP"; then
13691 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13692 $as_echo_n "(cached) " >&6
13693 else
13694 # Double quotes because CXXCPP needs to be expanded
13695 for CXXCPP in "$CXX -E" "/lib/cpp"
13697 ac_preproc_ok=false
13698 for ac_cxx_preproc_warn_flag in '' yes
13700 # Use a header file that comes with gcc, so configuring glibc
13701 # with a fresh cross-compiler works.
13702 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13703 # <limits.h> exists even on freestanding compilers.
13704 # On the NeXT, cc -E runs the code through the compiler's parser,
13705 # not just through cpp. "Syntax error" is here to catch this case.
13706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13707 /* end confdefs.h. */
13708 #ifdef __STDC__
13709 # include <limits.h>
13710 #else
13711 # include <assert.h>
13712 #endif
13713 Syntax error
13714 _ACEOF
13715 if ac_fn_cxx_try_cpp "$LINENO"; then :
13717 else
13718 # Broken: fails on valid input.
13719 continue
13721 rm -f conftest.err conftest.$ac_ext
13723 # OK, works on sane cases. Now check whether nonexistent headers
13724 # can be detected and how.
13725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13726 /* end confdefs.h. */
13727 #include <ac_nonexistent.h>
13728 _ACEOF
13729 if ac_fn_cxx_try_cpp "$LINENO"; then :
13730 # Broken: success on invalid input.
13731 continue
13732 else
13733 # Passes both tests.
13734 ac_preproc_ok=:
13735 break
13737 rm -f conftest.err conftest.$ac_ext
13739 done
13740 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13741 rm -f conftest.err conftest.$ac_ext
13742 if $ac_preproc_ok; then :
13743 break
13746 done
13747 ac_cv_prog_CXXCPP=$CXXCPP
13750 CXXCPP=$ac_cv_prog_CXXCPP
13751 else
13752 ac_cv_prog_CXXCPP=$CXXCPP
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13755 $as_echo "$CXXCPP" >&6; }
13756 ac_preproc_ok=false
13757 for ac_cxx_preproc_warn_flag in '' yes
13759 # Use a header file that comes with gcc, so configuring glibc
13760 # with a fresh cross-compiler works.
13761 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13762 # <limits.h> exists even on freestanding compilers.
13763 # On the NeXT, cc -E runs the code through the compiler's parser,
13764 # not just through cpp. "Syntax error" is here to catch this case.
13765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13766 /* end confdefs.h. */
13767 #ifdef __STDC__
13768 # include <limits.h>
13769 #else
13770 # include <assert.h>
13771 #endif
13772 Syntax error
13773 _ACEOF
13774 if ac_fn_cxx_try_cpp "$LINENO"; then :
13776 else
13777 # Broken: fails on valid input.
13778 continue
13780 rm -f conftest.err conftest.$ac_ext
13782 # OK, works on sane cases. Now check whether nonexistent headers
13783 # can be detected and how.
13784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13785 /* end confdefs.h. */
13786 #include <ac_nonexistent.h>
13787 _ACEOF
13788 if ac_fn_cxx_try_cpp "$LINENO"; then :
13789 # Broken: success on invalid input.
13790 continue
13791 else
13792 # Passes both tests.
13793 ac_preproc_ok=:
13794 break
13796 rm -f conftest.err conftest.$ac_ext
13798 done
13799 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13800 rm -f conftest.err conftest.$ac_ext
13801 if $ac_preproc_ok; then :
13803 else
13804 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13806 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
13807 See \`config.log' for more details." "$LINENO" 5; }
13810 ac_ext=c
13811 ac_cpp='$CPP $CPPFLAGS'
13812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13816 else
13817 _lt_caught_CXX_error=yes
13820 ac_ext=cpp
13821 ac_cpp='$CXXCPP $CPPFLAGS'
13822 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13823 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13824 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13826 archive_cmds_need_lc_CXX=no
13827 allow_undefined_flag_CXX=
13828 always_export_symbols_CXX=no
13829 archive_expsym_cmds_CXX=
13830 compiler_needs_object_CXX=no
13831 export_dynamic_flag_spec_CXX=
13832 hardcode_direct_CXX=no
13833 hardcode_direct_absolute_CXX=no
13834 hardcode_libdir_flag_spec_CXX=
13835 hardcode_libdir_flag_spec_ld_CXX=
13836 hardcode_libdir_separator_CXX=
13837 hardcode_minus_L_CXX=no
13838 hardcode_shlibpath_var_CXX=unsupported
13839 hardcode_automatic_CXX=no
13840 inherit_rpath_CXX=no
13841 module_cmds_CXX=
13842 module_expsym_cmds_CXX=
13843 link_all_deplibs_CXX=unknown
13844 old_archive_cmds_CXX=$old_archive_cmds
13845 reload_flag_CXX=$reload_flag
13846 reload_cmds_CXX=$reload_cmds
13847 no_undefined_flag_CXX=
13848 whole_archive_flag_spec_CXX=
13849 enable_shared_with_static_runtimes_CXX=no
13851 # Source file extension for C++ test sources.
13852 ac_ext=cpp
13854 # Object file extension for compiled C++ test sources.
13855 objext=o
13856 objext_CXX=$objext
13858 # No sense in running all these tests if we already determined that
13859 # the CXX compiler isn't working. Some variables (like enable_shared)
13860 # are currently assumed to apply to all compilers on this platform,
13861 # and will be corrupted by setting them based on a non-working compiler.
13862 if test "$_lt_caught_CXX_error" != yes; then
13863 # Code to be used in simple compile tests
13864 lt_simple_compile_test_code="int some_variable = 0;"
13866 # Code to be used in simple link tests
13867 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13869 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13876 # If no C compiler was specified, use CC.
13877 LTCC=${LTCC-"$CC"}
13879 # If no C compiler flags were specified, use CFLAGS.
13880 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13882 # Allow CC to be a program name with arguments.
13883 compiler=$CC
13886 # save warnings/boilerplate of simple test code
13887 ac_outfile=conftest.$ac_objext
13888 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13889 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13890 _lt_compiler_boilerplate=`cat conftest.err`
13891 $RM conftest*
13893 ac_outfile=conftest.$ac_objext
13894 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13895 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13896 _lt_linker_boilerplate=`cat conftest.err`
13897 $RM -r conftest*
13900 # Allow CC to be a program name with arguments.
13901 lt_save_CC=$CC
13902 lt_save_LD=$LD
13903 lt_save_GCC=$GCC
13904 GCC=$GXX
13905 lt_save_with_gnu_ld=$with_gnu_ld
13906 lt_save_path_LD=$lt_cv_path_LD
13907 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13908 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13909 else
13910 $as_unset lt_cv_prog_gnu_ld
13912 if test -n "${lt_cv_path_LDCXX+set}"; then
13913 lt_cv_path_LD=$lt_cv_path_LDCXX
13914 else
13915 $as_unset lt_cv_path_LD
13917 test -z "${LDCXX+set}" || LD=$LDCXX
13918 CC=${CXX-"c++"}
13919 compiler=$CC
13920 compiler_CXX=$CC
13921 for cc_temp in $compiler""; do
13922 case $cc_temp in
13923 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13924 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13925 \-*) ;;
13926 *) break;;
13927 esac
13928 done
13929 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13932 if test -n "$compiler"; then
13933 # We don't want -fno-exception when compiling C++ code, so set the
13934 # no_builtin_flag separately
13935 if test "$GXX" = yes; then
13936 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13937 else
13938 lt_prog_compiler_no_builtin_flag_CXX=
13941 if test "$GXX" = yes; then
13942 # Set up default GNU C++ configuration
13946 # Check whether --with-gnu-ld was given.
13947 if test "${with_gnu_ld+set}" = set; then :
13948 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13949 else
13950 with_gnu_ld=no
13953 ac_prog=ld
13954 if test "$GCC" = yes; then
13955 # Check if gcc -print-prog-name=ld gives a path.
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13957 $as_echo_n "checking for ld used by $CC... " >&6; }
13958 case $host in
13959 *-*-mingw*)
13960 # gcc leaves a trailing carriage return which upsets mingw
13961 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13963 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13964 esac
13965 case $ac_prog in
13966 # Accept absolute paths.
13967 [\\/]* | ?:[\\/]*)
13968 re_direlt='/[^/][^/]*/\.\./'
13969 # Canonicalize the pathname of ld
13970 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13971 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13972 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13973 done
13974 test -z "$LD" && LD="$ac_prog"
13977 # If it fails, then pretend we aren't using GCC.
13978 ac_prog=ld
13981 # If it is relative, then search for the first ld in PATH.
13982 with_gnu_ld=unknown
13984 esac
13985 elif test "$with_gnu_ld" = yes; then
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13987 $as_echo_n "checking for GNU ld... " >&6; }
13988 else
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13990 $as_echo_n "checking for non-GNU ld... " >&6; }
13992 if test "${lt_cv_path_LD+set}" = set; then :
13993 $as_echo_n "(cached) " >&6
13994 else
13995 if test -z "$LD"; then
13996 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13997 for ac_dir in $PATH; do
13998 IFS="$lt_save_ifs"
13999 test -z "$ac_dir" && ac_dir=.
14000 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14001 lt_cv_path_LD="$ac_dir/$ac_prog"
14002 # Check to see if the program is GNU ld. I'd rather use --version,
14003 # but apparently some variants of GNU ld only accept -v.
14004 # Break only if it was the GNU/non-GNU ld that we prefer.
14005 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14006 *GNU* | *'with BFD'*)
14007 test "$with_gnu_ld" != no && break
14010 test "$with_gnu_ld" != yes && break
14012 esac
14014 done
14015 IFS="$lt_save_ifs"
14016 else
14017 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14021 LD="$lt_cv_path_LD"
14022 if test -n "$LD"; then
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14024 $as_echo "$LD" >&6; }
14025 else
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14027 $as_echo "no" >&6; }
14029 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14031 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14032 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14033 $as_echo_n "(cached) " >&6
14034 else
14035 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14036 case `$LD -v 2>&1 </dev/null` in
14037 *GNU* | *'with BFD'*)
14038 lt_cv_prog_gnu_ld=yes
14041 lt_cv_prog_gnu_ld=no
14043 esac
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14046 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14047 with_gnu_ld=$lt_cv_prog_gnu_ld
14055 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14056 # archiving commands below assume that GNU ld is being used.
14057 if test "$with_gnu_ld" = yes; then
14058 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14059 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'
14061 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14062 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14064 # If archive_cmds runs LD, not CC, wlarc should be empty
14065 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14066 # investigate it a little bit more. (MM)
14067 wlarc='${wl}'
14069 # ancient GNU ld didn't support --whole-archive et. al.
14070 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14071 $GREP 'no-whole-archive' > /dev/null; then
14072 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14073 else
14074 whole_archive_flag_spec_CXX=
14076 else
14077 with_gnu_ld=no
14078 wlarc=
14080 # A generic and very simple default shared library creation
14081 # command for GNU C++ for the case where it uses the native
14082 # linker, instead of GNU ld. If possible, this setting should
14083 # overridden to take advantage of the native linker features on
14084 # the platform it is being used on.
14085 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14088 # Commands to make compiler produce verbose output that lists
14089 # what "hidden" libraries, object files and flags are used when
14090 # linking a shared library.
14091 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14093 else
14094 GXX=no
14095 with_gnu_ld=no
14096 wlarc=
14099 # PORTME: fill in a description of your system's C++ link characteristics
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14101 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14102 ld_shlibs_CXX=yes
14103 case $host_os in
14104 aix3*)
14105 # FIXME: insert proper C++ library support
14106 ld_shlibs_CXX=no
14108 aix[4-9]*)
14109 if test "$host_cpu" = ia64; then
14110 # On IA64, the linker does run time linking by default, so we don't
14111 # have to do anything special.
14112 aix_use_runtimelinking=no
14113 exp_sym_flag='-Bexport'
14114 no_entry_flag=""
14115 else
14116 aix_use_runtimelinking=no
14118 # Test if we are trying to use run time linking or normal
14119 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14120 # need to do runtime linking.
14121 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14122 for ld_flag in $LDFLAGS; do
14123 case $ld_flag in
14124 *-brtl*)
14125 aix_use_runtimelinking=yes
14126 break
14128 esac
14129 done
14131 esac
14133 exp_sym_flag='-bexport'
14134 no_entry_flag='-bnoentry'
14137 # When large executables or shared objects are built, AIX ld can
14138 # have problems creating the table of contents. If linking a library
14139 # or program results in "error TOC overflow" add -mminimal-toc to
14140 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14141 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14143 archive_cmds_CXX=''
14144 hardcode_direct_CXX=yes
14145 hardcode_direct_absolute_CXX=yes
14146 hardcode_libdir_separator_CXX=':'
14147 link_all_deplibs_CXX=yes
14148 file_list_spec_CXX='${wl}-f,'
14150 if test "$GXX" = yes; then
14151 case $host_os in aix4.[012]|aix4.[012].*)
14152 # We only want to do this on AIX 4.2 and lower, the check
14153 # below for broken collect2 doesn't work under 4.3+
14154 collect2name=`${CC} -print-prog-name=collect2`
14155 if test -f "$collect2name" &&
14156 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14157 then
14158 # We have reworked collect2
14160 else
14161 # We have old collect2
14162 hardcode_direct_CXX=unsupported
14163 # It fails to find uninstalled libraries when the uninstalled
14164 # path is not listed in the libpath. Setting hardcode_minus_L
14165 # to unsupported forces relinking
14166 hardcode_minus_L_CXX=yes
14167 hardcode_libdir_flag_spec_CXX='-L$libdir'
14168 hardcode_libdir_separator_CXX=
14170 esac
14171 shared_flag='-shared'
14172 if test "$aix_use_runtimelinking" = yes; then
14173 shared_flag="$shared_flag "'${wl}-G'
14175 else
14176 # not using gcc
14177 if test "$host_cpu" = ia64; then
14178 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14179 # chokes on -Wl,-G. The following line is correct:
14180 shared_flag='-G'
14181 else
14182 if test "$aix_use_runtimelinking" = yes; then
14183 shared_flag='${wl}-G'
14184 else
14185 shared_flag='${wl}-bM:SRE'
14190 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14191 # It seems that -bexpall does not export symbols beginning with
14192 # underscore (_), so it is better to generate a list of symbols to
14193 # export.
14194 always_export_symbols_CXX=yes
14195 if test "$aix_use_runtimelinking" = yes; then
14196 # Warning - without using the other runtime loading flags (-brtl),
14197 # -berok will link without error, but may produce a broken library.
14198 allow_undefined_flag_CXX='-berok'
14199 # Determine the default libpath from the value encoded in an empty
14200 # executable.
14201 if test x$gcc_no_link = xyes; then
14202 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14205 /* end confdefs.h. */
14208 main ()
14212 return 0;
14214 _ACEOF
14215 if ac_fn_cxx_try_link "$LINENO"; then :
14217 lt_aix_libpath_sed='
14218 /Import File Strings/,/^$/ {
14219 /^0/ {
14220 s/^0 *\(.*\)$/\1/
14224 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14225 # Check for a 64-bit object if we didn't find anything.
14226 if test -z "$aix_libpath"; then
14227 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14230 rm -f core conftest.err conftest.$ac_objext \
14231 conftest$ac_exeext conftest.$ac_ext
14232 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14234 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14236 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"
14237 else
14238 if test "$host_cpu" = ia64; then
14239 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14240 allow_undefined_flag_CXX="-z nodefs"
14241 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"
14242 else
14243 # Determine the default libpath from the value encoded in an
14244 # empty executable.
14245 if test x$gcc_no_link = xyes; then
14246 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14249 /* end confdefs.h. */
14252 main ()
14256 return 0;
14258 _ACEOF
14259 if ac_fn_cxx_try_link "$LINENO"; then :
14261 lt_aix_libpath_sed='
14262 /Import File Strings/,/^$/ {
14263 /^0/ {
14264 s/^0 *\(.*\)$/\1/
14268 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14269 # Check for a 64-bit object if we didn't find anything.
14270 if test -z "$aix_libpath"; then
14271 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14274 rm -f core conftest.err conftest.$ac_objext \
14275 conftest$ac_exeext conftest.$ac_ext
14276 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14278 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14279 # Warning - without using the other run time loading flags,
14280 # -berok will link without error, but may produce a broken library.
14281 no_undefined_flag_CXX=' ${wl}-bernotok'
14282 allow_undefined_flag_CXX=' ${wl}-berok'
14283 if test "$with_gnu_ld" = yes; then
14284 # We only use this code for GNU lds that support --whole-archive.
14285 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14286 else
14287 # Exported symbols can be pulled into shared objects from archives
14288 whole_archive_flag_spec_CXX='$convenience'
14290 archive_cmds_need_lc_CXX=yes
14291 # This is similar to how AIX traditionally builds its shared
14292 # libraries.
14293 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'
14298 beos*)
14299 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14300 allow_undefined_flag_CXX=unsupported
14301 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14302 # support --undefined. This deserves some investigation. FIXME
14303 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14304 else
14305 ld_shlibs_CXX=no
14309 chorus*)
14310 case $cc_basename in
14312 # FIXME: insert proper C++ library support
14313 ld_shlibs_CXX=no
14315 esac
14318 cygwin* | mingw* | pw32* | cegcc*)
14319 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14320 # as there is no search path for DLLs.
14321 hardcode_libdir_flag_spec_CXX='-L$libdir'
14322 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14323 allow_undefined_flag_CXX=unsupported
14324 always_export_symbols_CXX=no
14325 enable_shared_with_static_runtimes_CXX=yes
14327 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14328 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'
14329 # If the export-symbols file already is a .def file (1st line
14330 # is EXPORTS), use it as is; otherwise, prepend...
14331 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14332 cp $export_symbols $output_objdir/$soname.def;
14333 else
14334 echo EXPORTS > $output_objdir/$soname.def;
14335 cat $export_symbols >> $output_objdir/$soname.def;
14337 $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'
14338 else
14339 ld_shlibs_CXX=no
14342 darwin* | rhapsody*)
14345 archive_cmds_need_lc_CXX=no
14346 hardcode_direct_CXX=no
14347 hardcode_automatic_CXX=yes
14348 hardcode_shlibpath_var_CXX=unsupported
14349 if test "$lt_cv_ld_force_load" = "yes"; then
14350 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\"`'
14351 else
14352 whole_archive_flag_spec_CXX=''
14354 link_all_deplibs_CXX=yes
14355 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14356 case $cc_basename in
14357 ifort*) _lt_dar_can_shared=yes ;;
14358 *) _lt_dar_can_shared=$GCC ;;
14359 esac
14360 if test "$_lt_dar_can_shared" = "yes"; then
14361 output_verbose_link_cmd=func_echo_all
14362 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}"
14363 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14364 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}"
14365 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}"
14366 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14367 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}"
14368 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}"
14371 else
14372 ld_shlibs_CXX=no
14377 dgux*)
14378 case $cc_basename in
14379 ec++*)
14380 # FIXME: insert proper C++ library support
14381 ld_shlibs_CXX=no
14383 ghcx*)
14384 # Green Hills C++ Compiler
14385 # FIXME: insert proper C++ library support
14386 ld_shlibs_CXX=no
14389 # FIXME: insert proper C++ library support
14390 ld_shlibs_CXX=no
14392 esac
14395 freebsd[12]*)
14396 # C++ shared libraries reported to be fairly broken before
14397 # switch to ELF
14398 ld_shlibs_CXX=no
14401 freebsd-elf*)
14402 archive_cmds_need_lc_CXX=no
14405 freebsd* | dragonfly*)
14406 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14407 # conventions
14408 ld_shlibs_CXX=yes
14411 gnu*)
14414 haiku*)
14415 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14416 link_all_deplibs_CXX=yes
14419 hpux9*)
14420 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14421 hardcode_libdir_separator_CXX=:
14422 export_dynamic_flag_spec_CXX='${wl}-E'
14423 hardcode_direct_CXX=yes
14424 hardcode_minus_L_CXX=yes # Not in the search PATH,
14425 # but as the default
14426 # location of the library.
14428 case $cc_basename in
14429 CC*)
14430 # FIXME: insert proper C++ library support
14431 ld_shlibs_CXX=no
14433 aCC*)
14434 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'
14435 # Commands to make compiler produce verbose output that lists
14436 # what "hidden" libraries, object files and flags are used when
14437 # linking a shared library.
14439 # There doesn't appear to be a way to prevent this compiler from
14440 # explicitly linking system object files so we need to strip them
14441 # from the output so that they don't get included in the library
14442 # dependencies.
14443 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"'
14446 if test "$GXX" = yes; then
14447 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'
14448 else
14449 # FIXME: insert proper C++ library support
14450 ld_shlibs_CXX=no
14453 esac
14456 hpux10*|hpux11*)
14457 if test $with_gnu_ld = no; then
14458 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14459 hardcode_libdir_separator_CXX=:
14461 case $host_cpu in
14462 hppa*64*|ia64*)
14465 export_dynamic_flag_spec_CXX='${wl}-E'
14467 esac
14469 case $host_cpu in
14470 hppa*64*|ia64*)
14471 hardcode_direct_CXX=no
14472 hardcode_shlibpath_var_CXX=no
14475 hardcode_direct_CXX=yes
14476 hardcode_direct_absolute_CXX=yes
14477 hardcode_minus_L_CXX=yes # Not in the search PATH,
14478 # but as the default
14479 # location of the library.
14481 esac
14483 case $cc_basename in
14484 CC*)
14485 # FIXME: insert proper C++ library support
14486 ld_shlibs_CXX=no
14488 aCC*)
14489 case $host_cpu in
14490 hppa*64*)
14491 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14493 ia64*)
14494 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14497 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14499 esac
14500 # Commands to make compiler produce verbose output that lists
14501 # what "hidden" libraries, object files and flags are used when
14502 # linking a shared library.
14504 # There doesn't appear to be a way to prevent this compiler from
14505 # explicitly linking system object files so we need to strip them
14506 # from the output so that they don't get included in the library
14507 # dependencies.
14508 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"'
14511 if test "$GXX" = yes; then
14512 if test $with_gnu_ld = no; then
14513 case $host_cpu in
14514 hppa*64*)
14515 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14517 ia64*)
14518 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14521 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'
14523 esac
14525 else
14526 # FIXME: insert proper C++ library support
14527 ld_shlibs_CXX=no
14530 esac
14533 interix[3-9]*)
14534 hardcode_direct_CXX=no
14535 hardcode_shlibpath_var_CXX=no
14536 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14537 export_dynamic_flag_spec_CXX='${wl}-E'
14538 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14539 # Instead, shared libraries are loaded at an image base (0x10000000 by
14540 # default) and relocated if they conflict, which is a slow very memory
14541 # consuming and fragmenting process. To avoid this, we pick a random,
14542 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14543 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14544 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'
14545 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'
14547 irix5* | irix6*)
14548 case $cc_basename in
14549 CC*)
14550 # SGI C++
14551 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'
14553 # Archives containing C++ object files must be created using
14554 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14555 # necessary to make sure instantiated templates are included
14556 # in the archive.
14557 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14560 if test "$GXX" = yes; then
14561 if test "$with_gnu_ld" = no; then
14562 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'
14563 else
14564 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'
14567 link_all_deplibs_CXX=yes
14569 esac
14570 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14571 hardcode_libdir_separator_CXX=:
14572 inherit_rpath_CXX=yes
14575 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14576 case $cc_basename in
14577 KCC*)
14578 # Kuck and Associates, Inc. (KAI) C++ Compiler
14580 # KCC will only create a shared library if the output file
14581 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14582 # to its proper name (with version) after linking.
14583 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'
14584 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'
14585 # Commands to make compiler produce verbose output that lists
14586 # what "hidden" libraries, object files and flags are used when
14587 # linking a shared library.
14589 # There doesn't appear to be a way to prevent this compiler from
14590 # explicitly linking system object files so we need to strip them
14591 # from the output so that they don't get included in the library
14592 # dependencies.
14593 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"'
14595 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14596 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14598 # Archives containing C++ object files must be created using
14599 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14600 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14602 icpc* | ecpc* )
14603 # Intel C++
14604 with_gnu_ld=yes
14605 # version 8.0 and above of icpc choke on multiply defined symbols
14606 # if we add $predep_objects and $postdep_objects, however 7.1 and
14607 # earlier do not add the objects themselves.
14608 case `$CC -V 2>&1` in
14609 *"Version 7."*)
14610 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14611 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'
14613 *) # Version 8.0 or newer
14614 tmp_idyn=
14615 case $host_cpu in
14616 ia64*) tmp_idyn=' -i_dynamic';;
14617 esac
14618 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14619 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'
14621 esac
14622 archive_cmds_need_lc_CXX=no
14623 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14624 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14625 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14627 pgCC* | pgcpp*)
14628 # Portland Group C++ compiler
14629 case `$CC -V` in
14630 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14631 prelink_cmds_CXX='tpldir=Template.dir~
14632 rm -rf $tpldir~
14633 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14634 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14635 old_archive_cmds_CXX='tpldir=Template.dir~
14636 rm -rf $tpldir~
14637 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14638 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14639 $RANLIB $oldlib'
14640 archive_cmds_CXX='tpldir=Template.dir~
14641 rm -rf $tpldir~
14642 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14643 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14644 archive_expsym_cmds_CXX='tpldir=Template.dir~
14645 rm -rf $tpldir~
14646 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14647 $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'
14649 *) # Version 6 and above use weak symbols
14650 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14651 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'
14653 esac
14655 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14656 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14657 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'
14659 cxx*)
14660 # Compaq C++
14661 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14662 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'
14664 runpath_var=LD_RUN_PATH
14665 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14666 hardcode_libdir_separator_CXX=:
14668 # Commands to make compiler produce verbose output that lists
14669 # what "hidden" libraries, object files and flags are used when
14670 # linking a shared library.
14672 # There doesn't appear to be a way to prevent this compiler from
14673 # explicitly linking system object files so we need to strip them
14674 # from the output so that they don't get included in the library
14675 # dependencies.
14676 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'
14678 xl* | mpixl* | bgxl*)
14679 # IBM XL 8.0 on PPC, with GNU ld
14680 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14681 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14682 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14683 if test "x$supports_anon_versioning" = xyes; then
14684 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14685 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14686 echo "local: *; };" >> $output_objdir/$libname.ver~
14687 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14691 case `$CC -V 2>&1 | sed 5q` in
14692 *Sun\ C*)
14693 # Sun C++ 5.9
14694 no_undefined_flag_CXX=' -zdefs'
14695 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14696 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'
14697 hardcode_libdir_flag_spec_CXX='-R$libdir'
14698 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'
14699 compiler_needs_object_CXX=yes
14701 # Not sure whether something based on
14702 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14703 # would be better.
14704 output_verbose_link_cmd='func_echo_all'
14706 # Archives containing C++ object files must be created using
14707 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14708 # necessary to make sure instantiated templates are included
14709 # in the archive.
14710 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14712 esac
14714 esac
14717 lynxos*)
14718 # FIXME: insert proper C++ library support
14719 ld_shlibs_CXX=no
14722 m88k*)
14723 # FIXME: insert proper C++ library support
14724 ld_shlibs_CXX=no
14727 mvs*)
14728 case $cc_basename in
14729 cxx*)
14730 # FIXME: insert proper C++ library support
14731 ld_shlibs_CXX=no
14734 # FIXME: insert proper C++ library support
14735 ld_shlibs_CXX=no
14737 esac
14740 netbsd*)
14741 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14742 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14743 wlarc=
14744 hardcode_libdir_flag_spec_CXX='-R$libdir'
14745 hardcode_direct_CXX=yes
14746 hardcode_shlibpath_var_CXX=no
14748 # Workaround some broken pre-1.5 toolchains
14749 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14752 *nto* | *qnx*)
14753 ld_shlibs_CXX=yes
14756 openbsd2*)
14757 # C++ shared libraries are fairly broken
14758 ld_shlibs_CXX=no
14761 openbsd*)
14762 if test -f /usr/libexec/ld.so; then
14763 hardcode_direct_CXX=yes
14764 hardcode_shlibpath_var_CXX=no
14765 hardcode_direct_absolute_CXX=yes
14766 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14767 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14768 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14769 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14770 export_dynamic_flag_spec_CXX='${wl}-E'
14771 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14773 output_verbose_link_cmd=func_echo_all
14774 else
14775 ld_shlibs_CXX=no
14779 osf3* | osf4* | osf5*)
14780 case $cc_basename in
14781 KCC*)
14782 # Kuck and Associates, Inc. (KAI) C++ Compiler
14784 # KCC will only create a shared library if the output file
14785 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14786 # to its proper name (with version) after linking.
14787 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'
14789 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14790 hardcode_libdir_separator_CXX=:
14792 # Archives containing C++ object files must be created using
14793 # the KAI C++ compiler.
14794 case $host in
14795 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14796 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14797 esac
14799 RCC*)
14800 # Rational C++ 2.4.1
14801 # FIXME: insert proper C++ library support
14802 ld_shlibs_CXX=no
14804 cxx*)
14805 case $host in
14806 osf3*)
14807 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14808 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'
14809 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14812 allow_undefined_flag_CXX=' -expect_unresolved \*'
14813 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'
14814 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14815 echo "-hidden">> $lib.exp~
14816 $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~
14817 $RM $lib.exp'
14818 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14820 esac
14822 hardcode_libdir_separator_CXX=:
14824 # Commands to make compiler produce verbose output that lists
14825 # what "hidden" libraries, object files and flags are used when
14826 # linking a shared library.
14828 # There doesn't appear to be a way to prevent this compiler from
14829 # explicitly linking system object files so we need to strip them
14830 # from the output so that they don't get included in the library
14831 # dependencies.
14832 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"'
14835 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14836 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14837 case $host in
14838 osf3*)
14839 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'
14842 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'
14844 esac
14846 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14847 hardcode_libdir_separator_CXX=:
14849 # Commands to make compiler produce verbose output that lists
14850 # what "hidden" libraries, object files and flags are used when
14851 # linking a shared library.
14852 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14854 else
14855 # FIXME: insert proper C++ library support
14856 ld_shlibs_CXX=no
14859 esac
14862 psos*)
14863 # FIXME: insert proper C++ library support
14864 ld_shlibs_CXX=no
14867 sunos4*)
14868 case $cc_basename in
14869 CC*)
14870 # Sun C++ 4.x
14871 # FIXME: insert proper C++ library support
14872 ld_shlibs_CXX=no
14874 lcc*)
14875 # Lucid
14876 # FIXME: insert proper C++ library support
14877 ld_shlibs_CXX=no
14880 # FIXME: insert proper C++ library support
14881 ld_shlibs_CXX=no
14883 esac
14886 solaris*)
14887 case $cc_basename in
14888 CC*)
14889 # Sun C++ 4.2, 5.x and Centerline C++
14890 archive_cmds_need_lc_CXX=yes
14891 no_undefined_flag_CXX=' -zdefs'
14892 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14893 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14894 $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'
14896 hardcode_libdir_flag_spec_CXX='-R$libdir'
14897 hardcode_shlibpath_var_CXX=no
14898 case $host_os in
14899 solaris2.[0-5] | solaris2.[0-5].*) ;;
14901 # The compiler driver will combine and reorder linker options,
14902 # but understands `-z linker_flag'.
14903 # Supported since Solaris 2.6 (maybe 2.5.1?)
14904 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14906 esac
14907 link_all_deplibs_CXX=yes
14909 output_verbose_link_cmd='func_echo_all'
14911 # Archives containing C++ object files must be created using
14912 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14913 # necessary to make sure instantiated templates are included
14914 # in the archive.
14915 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14917 gcx*)
14918 # Green Hills C++ Compiler
14919 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14921 # The C++ compiler must be used to create the archive.
14922 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14925 # GNU C++ compiler with Solaris linker
14926 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14927 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14928 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14929 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14930 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14931 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14933 # Commands to make compiler produce verbose output that lists
14934 # what "hidden" libraries, object files and flags are used when
14935 # linking a shared library.
14936 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14937 else
14938 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14939 # platform.
14940 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14941 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14942 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14944 # Commands to make compiler produce verbose output that lists
14945 # what "hidden" libraries, object files and flags are used when
14946 # linking a shared library.
14947 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14950 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14951 case $host_os in
14952 solaris2.[0-5] | solaris2.[0-5].*) ;;
14954 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14956 esac
14959 esac
14962 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14963 no_undefined_flag_CXX='${wl}-z,text'
14964 archive_cmds_need_lc_CXX=no
14965 hardcode_shlibpath_var_CXX=no
14966 runpath_var='LD_RUN_PATH'
14968 case $cc_basename in
14969 CC*)
14970 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14971 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14974 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14975 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14977 esac
14980 sysv5* | sco3.2v5* | sco5v6*)
14981 # Note: We can NOT use -z defs as we might desire, because we do not
14982 # link with -lc, and that would cause any symbols used from libc to
14983 # always be unresolved, which means just about no library would
14984 # ever link correctly. If we're not using GNU ld we use -z text
14985 # though, which does catch some bad symbols but isn't as heavy-handed
14986 # as -z defs.
14987 no_undefined_flag_CXX='${wl}-z,text'
14988 allow_undefined_flag_CXX='${wl}-z,nodefs'
14989 archive_cmds_need_lc_CXX=no
14990 hardcode_shlibpath_var_CXX=no
14991 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14992 hardcode_libdir_separator_CXX=':'
14993 link_all_deplibs_CXX=yes
14994 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14995 runpath_var='LD_RUN_PATH'
14997 case $cc_basename in
14998 CC*)
14999 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15000 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15001 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15002 '"$old_archive_cmds_CXX"
15003 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15004 '"$reload_cmds_CXX"
15007 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15008 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15010 esac
15013 tandem*)
15014 case $cc_basename in
15015 NCC*)
15016 # NonStop-UX NCC 3.20
15017 # FIXME: insert proper C++ library support
15018 ld_shlibs_CXX=no
15021 # FIXME: insert proper C++ library support
15022 ld_shlibs_CXX=no
15024 esac
15027 vxworks*)
15028 # FIXME: insert proper C++ library support
15029 ld_shlibs_CXX=no
15033 # FIXME: insert proper C++ library support
15034 ld_shlibs_CXX=no
15036 esac
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15039 $as_echo "$ld_shlibs_CXX" >&6; }
15040 test "$ld_shlibs_CXX" = no && can_build_shared=no
15042 GCC_CXX="$GXX"
15043 LD_CXX="$LD"
15045 ## CAVEAT EMPTOR:
15046 ## There is no encapsulation within the following macros, do not change
15047 ## the running order or otherwise move them around unless you know exactly
15048 ## what you are doing...
15049 # Dependencies to place before and after the object being linked:
15050 predep_objects_CXX=
15051 postdep_objects_CXX=
15052 predeps_CXX=
15053 postdeps_CXX=
15054 compiler_lib_search_path_CXX=
15056 cat > conftest.$ac_ext <<_LT_EOF
15057 class Foo
15059 public:
15060 Foo (void) { a = 0; }
15061 private:
15062 int a;
15064 _LT_EOF
15066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15067 (eval $ac_compile) 2>&5
15068 ac_status=$?
15069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15070 test $ac_status = 0; }; then
15071 # Parse the compiler output and extract the necessary
15072 # objects, libraries and library flags.
15074 # Sentinel used to keep track of whether or not we are before
15075 # the conftest object file.
15076 pre_test_object_deps_done=no
15078 for p in `eval "$output_verbose_link_cmd"`; do
15079 case $p in
15081 -L* | -R* | -l*)
15082 # Some compilers place space between "-{L,R}" and the path.
15083 # Remove the space.
15084 if test $p = "-L" ||
15085 test $p = "-R"; then
15086 prev=$p
15087 continue
15088 else
15089 prev=
15092 if test "$pre_test_object_deps_done" = no; then
15093 case $p in
15094 -L* | -R*)
15095 # Internal compiler library paths should come after those
15096 # provided the user. The postdeps already come after the
15097 # user supplied libs so there is no need to process them.
15098 if test -z "$compiler_lib_search_path_CXX"; then
15099 compiler_lib_search_path_CXX="${prev}${p}"
15100 else
15101 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15104 # The "-l" case would never come before the object being
15105 # linked, so don't bother handling this case.
15106 esac
15107 else
15108 if test -z "$postdeps_CXX"; then
15109 postdeps_CXX="${prev}${p}"
15110 else
15111 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15116 *.$objext)
15117 # This assumes that the test object file only shows up
15118 # once in the compiler output.
15119 if test "$p" = "conftest.$objext"; then
15120 pre_test_object_deps_done=yes
15121 continue
15124 if test "$pre_test_object_deps_done" = no; then
15125 if test -z "$predep_objects_CXX"; then
15126 predep_objects_CXX="$p"
15127 else
15128 predep_objects_CXX="$predep_objects_CXX $p"
15130 else
15131 if test -z "$postdep_objects_CXX"; then
15132 postdep_objects_CXX="$p"
15133 else
15134 postdep_objects_CXX="$postdep_objects_CXX $p"
15139 *) ;; # Ignore the rest.
15141 esac
15142 done
15144 # Clean up.
15145 rm -f a.out a.exe
15146 else
15147 echo "libtool.m4: error: problem compiling CXX test program"
15150 $RM -f confest.$objext
15152 # PORTME: override above test on systems where it is broken
15153 case $host_os in
15154 interix[3-9]*)
15155 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15156 # hack all around it, let's just trust "g++" to DTRT.
15157 predep_objects_CXX=
15158 postdep_objects_CXX=
15159 postdeps_CXX=
15162 linux*)
15163 case `$CC -V 2>&1 | sed 5q` in
15164 *Sun\ C*)
15165 # Sun C++ 5.9
15167 # The more standards-conforming stlport4 library is
15168 # incompatible with the Cstd library. Avoid specifying
15169 # it if it's in CXXFLAGS. Ignore libCrun as
15170 # -library=stlport4 depends on it.
15171 case " $CXX $CXXFLAGS " in
15172 *" -library=stlport4 "*)
15173 solaris_use_stlport4=yes
15175 esac
15177 if test "$solaris_use_stlport4" != yes; then
15178 postdeps_CXX='-library=Cstd -library=Crun'
15181 esac
15184 solaris*)
15185 case $cc_basename in
15186 CC*)
15187 # The more standards-conforming stlport4 library is
15188 # incompatible with the Cstd library. Avoid specifying
15189 # it if it's in CXXFLAGS. Ignore libCrun as
15190 # -library=stlport4 depends on it.
15191 case " $CXX $CXXFLAGS " in
15192 *" -library=stlport4 "*)
15193 solaris_use_stlport4=yes
15195 esac
15197 # Adding this requires a known-good setup of shared libraries for
15198 # Sun compiler versions before 5.6, else PIC objects from an old
15199 # archive will be linked into the output, leading to subtle bugs.
15200 if test "$solaris_use_stlport4" != yes; then
15201 postdeps_CXX='-library=Cstd -library=Crun'
15204 esac
15206 esac
15209 case " $postdeps_CXX " in
15210 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15211 esac
15212 compiler_lib_search_dirs_CXX=
15213 if test -n "${compiler_lib_search_path_CXX}"; then
15214 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15247 lt_prog_compiler_wl_CXX=
15248 lt_prog_compiler_pic_CXX=
15249 lt_prog_compiler_static_CXX=
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15252 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15254 # C++ specific cases for pic, static, wl, etc.
15255 if test "$GXX" = yes; then
15256 lt_prog_compiler_wl_CXX='-Wl,'
15257 lt_prog_compiler_static_CXX='-static'
15259 case $host_os in
15260 aix*)
15261 # All AIX code is PIC.
15262 if test "$host_cpu" = ia64; then
15263 # AIX 5 now supports IA64 processor
15264 lt_prog_compiler_static_CXX='-Bstatic'
15268 amigaos*)
15269 case $host_cpu in
15270 powerpc)
15271 # see comment about AmigaOS4 .so support
15272 lt_prog_compiler_pic_CXX='-fPIC'
15274 m68k)
15275 # FIXME: we need at least 68020 code to build shared libraries, but
15276 # adding the `-m68020' flag to GCC prevents building anything better,
15277 # like `-m68040'.
15278 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15280 esac
15283 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15284 # PIC is the default for these OSes.
15286 mingw* | cygwin* | os2* | pw32* | cegcc*)
15287 # This hack is so that the source file can tell whether it is being
15288 # built for inclusion in a dll (and should export symbols for example).
15289 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15290 # (--disable-auto-import) libraries
15291 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15293 darwin* | rhapsody*)
15294 # PIC is the default on this platform
15295 # Common symbols not allowed in MH_DYLIB files
15296 lt_prog_compiler_pic_CXX='-fno-common'
15298 *djgpp*)
15299 # DJGPP does not support shared libraries at all
15300 lt_prog_compiler_pic_CXX=
15302 haiku*)
15303 # PIC is the default for Haiku.
15304 # The "-static" flag exists, but is broken.
15305 lt_prog_compiler_static_CXX=
15307 interix[3-9]*)
15308 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15309 # Instead, we relocate shared libraries at runtime.
15311 sysv4*MP*)
15312 if test -d /usr/nec; then
15313 lt_prog_compiler_pic_CXX=-Kconform_pic
15316 hpux*)
15317 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15318 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15319 # sets the default TLS model and affects inlining.
15320 case $host_cpu in
15321 hppa*64*)
15324 lt_prog_compiler_pic_CXX='-fPIC'
15326 esac
15328 *qnx* | *nto*)
15329 # QNX uses GNU C++, but need to define -shared option too, otherwise
15330 # it will coredump.
15331 lt_prog_compiler_pic_CXX='-fPIC -shared'
15334 lt_prog_compiler_pic_CXX='-fPIC'
15336 esac
15337 else
15338 case $host_os in
15339 aix[4-9]*)
15340 # All AIX code is PIC.
15341 if test "$host_cpu" = ia64; then
15342 # AIX 5 now supports IA64 processor
15343 lt_prog_compiler_static_CXX='-Bstatic'
15344 else
15345 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15348 chorus*)
15349 case $cc_basename in
15350 cxch68*)
15351 # Green Hills C++ Compiler
15352 # _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"
15354 esac
15356 dgux*)
15357 case $cc_basename in
15358 ec++*)
15359 lt_prog_compiler_pic_CXX='-KPIC'
15361 ghcx*)
15362 # Green Hills C++ Compiler
15363 lt_prog_compiler_pic_CXX='-pic'
15367 esac
15369 freebsd* | dragonfly*)
15370 # FreeBSD uses GNU C++
15372 hpux9* | hpux10* | hpux11*)
15373 case $cc_basename in
15374 CC*)
15375 lt_prog_compiler_wl_CXX='-Wl,'
15376 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15377 if test "$host_cpu" != ia64; then
15378 lt_prog_compiler_pic_CXX='+Z'
15381 aCC*)
15382 lt_prog_compiler_wl_CXX='-Wl,'
15383 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15384 case $host_cpu in
15385 hppa*64*|ia64*)
15386 # +Z the default
15389 lt_prog_compiler_pic_CXX='+Z'
15391 esac
15395 esac
15397 interix*)
15398 # This is c89, which is MS Visual C++ (no shared libs)
15399 # Anyone wants to do a port?
15401 irix5* | irix6* | nonstopux*)
15402 case $cc_basename in
15403 CC*)
15404 lt_prog_compiler_wl_CXX='-Wl,'
15405 lt_prog_compiler_static_CXX='-non_shared'
15406 # CC pic flag -KPIC is the default.
15410 esac
15412 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15413 case $cc_basename in
15414 KCC*)
15415 # KAI C++ Compiler
15416 lt_prog_compiler_wl_CXX='--backend -Wl,'
15417 lt_prog_compiler_pic_CXX='-fPIC'
15419 ecpc* )
15420 # old Intel C++ for x86_64 which still supported -KPIC.
15421 lt_prog_compiler_wl_CXX='-Wl,'
15422 lt_prog_compiler_pic_CXX='-KPIC'
15423 lt_prog_compiler_static_CXX='-static'
15425 icpc* )
15426 # Intel C++, used to be incompatible with GCC.
15427 # ICC 10 doesn't accept -KPIC any more.
15428 lt_prog_compiler_wl_CXX='-Wl,'
15429 lt_prog_compiler_pic_CXX='-fPIC'
15430 lt_prog_compiler_static_CXX='-static'
15432 pgCC* | pgcpp*)
15433 # Portland Group C++ compiler
15434 lt_prog_compiler_wl_CXX='-Wl,'
15435 lt_prog_compiler_pic_CXX='-fpic'
15436 lt_prog_compiler_static_CXX='-Bstatic'
15438 cxx*)
15439 # Compaq C++
15440 # Make sure the PIC flag is empty. It appears that all Alpha
15441 # Linux and Compaq Tru64 Unix objects are PIC.
15442 lt_prog_compiler_pic_CXX=
15443 lt_prog_compiler_static_CXX='-non_shared'
15445 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15446 # IBM XL 8.0, 9.0 on PPC and BlueGene
15447 lt_prog_compiler_wl_CXX='-Wl,'
15448 lt_prog_compiler_pic_CXX='-qpic'
15449 lt_prog_compiler_static_CXX='-qstaticlink'
15452 case `$CC -V 2>&1 | sed 5q` in
15453 *Sun\ C*)
15454 # Sun C++ 5.9
15455 lt_prog_compiler_pic_CXX='-KPIC'
15456 lt_prog_compiler_static_CXX='-Bstatic'
15457 lt_prog_compiler_wl_CXX='-Qoption ld '
15459 esac
15461 esac
15463 lynxos*)
15465 m88k*)
15467 mvs*)
15468 case $cc_basename in
15469 cxx*)
15470 lt_prog_compiler_pic_CXX='-W c,exportall'
15474 esac
15476 netbsd*)
15478 *qnx* | *nto*)
15479 # QNX uses GNU C++, but need to define -shared option too, otherwise
15480 # it will coredump.
15481 lt_prog_compiler_pic_CXX='-fPIC -shared'
15483 osf3* | osf4* | osf5*)
15484 case $cc_basename in
15485 KCC*)
15486 lt_prog_compiler_wl_CXX='--backend -Wl,'
15488 RCC*)
15489 # Rational C++ 2.4.1
15490 lt_prog_compiler_pic_CXX='-pic'
15492 cxx*)
15493 # Digital/Compaq C++
15494 lt_prog_compiler_wl_CXX='-Wl,'
15495 # Make sure the PIC flag is empty. It appears that all Alpha
15496 # Linux and Compaq Tru64 Unix objects are PIC.
15497 lt_prog_compiler_pic_CXX=
15498 lt_prog_compiler_static_CXX='-non_shared'
15502 esac
15504 psos*)
15506 solaris*)
15507 case $cc_basename in
15508 CC*)
15509 # Sun C++ 4.2, 5.x and Centerline C++
15510 lt_prog_compiler_pic_CXX='-KPIC'
15511 lt_prog_compiler_static_CXX='-Bstatic'
15512 lt_prog_compiler_wl_CXX='-Qoption ld '
15514 gcx*)
15515 # Green Hills C++ Compiler
15516 lt_prog_compiler_pic_CXX='-PIC'
15520 esac
15522 sunos4*)
15523 case $cc_basename in
15524 CC*)
15525 # Sun C++ 4.x
15526 lt_prog_compiler_pic_CXX='-pic'
15527 lt_prog_compiler_static_CXX='-Bstatic'
15529 lcc*)
15530 # Lucid
15531 lt_prog_compiler_pic_CXX='-pic'
15535 esac
15537 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15538 case $cc_basename in
15539 CC*)
15540 lt_prog_compiler_wl_CXX='-Wl,'
15541 lt_prog_compiler_pic_CXX='-KPIC'
15542 lt_prog_compiler_static_CXX='-Bstatic'
15544 esac
15546 tandem*)
15547 case $cc_basename in
15548 NCC*)
15549 # NonStop-UX NCC 3.20
15550 lt_prog_compiler_pic_CXX='-KPIC'
15554 esac
15556 vxworks*)
15559 lt_prog_compiler_can_build_shared_CXX=no
15561 esac
15564 case $host_os in
15565 # For platforms which do not support PIC, -DPIC is meaningless:
15566 *djgpp*)
15567 lt_prog_compiler_pic_CXX=
15570 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15572 esac
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15574 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15579 # Check to make sure the PIC flag actually works.
15581 if test -n "$lt_prog_compiler_pic_CXX"; then
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15583 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15584 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15585 $as_echo_n "(cached) " >&6
15586 else
15587 lt_cv_prog_compiler_pic_works_CXX=no
15588 ac_outfile=conftest.$ac_objext
15589 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15590 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15591 # Insert the option either (1) after the last *FLAGS variable, or
15592 # (2) before a word containing "conftest.", or (3) at the end.
15593 # Note that $ac_compile itself does not contain backslashes and begins
15594 # with a dollar sign (not a hyphen), so the echo should work correctly.
15595 # The option is referenced via a variable to avoid confusing sed.
15596 lt_compile=`echo "$ac_compile" | $SED \
15597 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15598 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15599 -e 's:$: $lt_compiler_flag:'`
15600 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15601 (eval "$lt_compile" 2>conftest.err)
15602 ac_status=$?
15603 cat conftest.err >&5
15604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605 if (exit $ac_status) && test -s "$ac_outfile"; then
15606 # The compiler can only warn and ignore the option if not recognized
15607 # So say no if there are warnings other than the usual output.
15608 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15609 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15610 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15611 lt_cv_prog_compiler_pic_works_CXX=yes
15614 $RM conftest*
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15618 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15620 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15621 case $lt_prog_compiler_pic_CXX in
15622 "" | " "*) ;;
15623 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15624 esac
15625 else
15626 lt_prog_compiler_pic_CXX=
15627 lt_prog_compiler_can_build_shared_CXX=no
15635 # Check to make sure the static flag actually works.
15637 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15639 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15640 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15641 $as_echo_n "(cached) " >&6
15642 else
15643 lt_cv_prog_compiler_static_works_CXX=no
15644 save_LDFLAGS="$LDFLAGS"
15645 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15646 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15647 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15648 # The linker can only warn and ignore the option if not recognized
15649 # So say no if there are warnings
15650 if test -s conftest.err; then
15651 # Append any errors to the config.log.
15652 cat conftest.err 1>&5
15653 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15654 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15655 if diff conftest.exp conftest.er2 >/dev/null; then
15656 lt_cv_prog_compiler_static_works_CXX=yes
15658 else
15659 lt_cv_prog_compiler_static_works_CXX=yes
15662 $RM -r conftest*
15663 LDFLAGS="$save_LDFLAGS"
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15667 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15669 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15671 else
15672 lt_prog_compiler_static_CXX=
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15679 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15680 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15681 $as_echo_n "(cached) " >&6
15682 else
15683 lt_cv_prog_compiler_c_o_CXX=no
15684 $RM -r conftest 2>/dev/null
15685 mkdir conftest
15686 cd conftest
15687 mkdir out
15688 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15690 lt_compiler_flag="-o out/conftest2.$ac_objext"
15691 # Insert the option either (1) after the last *FLAGS variable, or
15692 # (2) before a word containing "conftest.", or (3) at the end.
15693 # Note that $ac_compile itself does not contain backslashes and begins
15694 # with a dollar sign (not a hyphen), so the echo should work correctly.
15695 lt_compile=`echo "$ac_compile" | $SED \
15696 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15697 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15698 -e 's:$: $lt_compiler_flag:'`
15699 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15700 (eval "$lt_compile" 2>out/conftest.err)
15701 ac_status=$?
15702 cat out/conftest.err >&5
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15705 then
15706 # The compiler can only warn and ignore the option if not recognized
15707 # So say no if there are warnings
15708 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15709 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15710 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15711 lt_cv_prog_compiler_c_o_CXX=yes
15714 chmod u+w . 2>&5
15715 $RM conftest*
15716 # SGI C++ compiler will create directory out/ii_files/ for
15717 # template instantiation
15718 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15719 $RM out/* && rmdir out
15720 cd ..
15721 $RM -r conftest
15722 $RM conftest*
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15726 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15731 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15732 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15733 $as_echo_n "(cached) " >&6
15734 else
15735 lt_cv_prog_compiler_c_o_CXX=no
15736 $RM -r conftest 2>/dev/null
15737 mkdir conftest
15738 cd conftest
15739 mkdir out
15740 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15742 lt_compiler_flag="-o out/conftest2.$ac_objext"
15743 # Insert the option either (1) after the last *FLAGS variable, or
15744 # (2) before a word containing "conftest.", or (3) at the end.
15745 # Note that $ac_compile itself does not contain backslashes and begins
15746 # with a dollar sign (not a hyphen), so the echo should work correctly.
15747 lt_compile=`echo "$ac_compile" | $SED \
15748 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15749 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15750 -e 's:$: $lt_compiler_flag:'`
15751 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15752 (eval "$lt_compile" 2>out/conftest.err)
15753 ac_status=$?
15754 cat out/conftest.err >&5
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15757 then
15758 # The compiler can only warn and ignore the option if not recognized
15759 # So say no if there are warnings
15760 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15761 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15762 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15763 lt_cv_prog_compiler_c_o_CXX=yes
15766 chmod u+w . 2>&5
15767 $RM conftest*
15768 # SGI C++ compiler will create directory out/ii_files/ for
15769 # template instantiation
15770 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15771 $RM out/* && rmdir out
15772 cd ..
15773 $RM -r conftest
15774 $RM conftest*
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15778 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15783 hard_links="nottested"
15784 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15785 # do not overwrite the value of need_locks provided by the user
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15787 $as_echo_n "checking if we can lock with hard links... " >&6; }
15788 hard_links=yes
15789 $RM conftest*
15790 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15791 touch conftest.a
15792 ln conftest.a conftest.b 2>&5 || hard_links=no
15793 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15795 $as_echo "$hard_links" >&6; }
15796 if test "$hard_links" = no; then
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15798 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15799 need_locks=warn
15801 else
15802 need_locks=no
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15808 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15810 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15811 case $host_os in
15812 aix[4-9]*)
15813 # If we're using GNU nm, then we don't want the "-C" option.
15814 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15815 # Also, AIX nm treats weak defined symbols like other global defined
15816 # symbols, whereas GNU nm marks them as "W".
15817 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15818 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'
15819 else
15820 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'
15823 pw32*)
15824 export_symbols_cmds_CXX="$ltdll_cmds"
15826 cygwin* | mingw* | cegcc*)
15827 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'
15830 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15832 esac
15833 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15836 $as_echo "$ld_shlibs_CXX" >&6; }
15837 test "$ld_shlibs_CXX" = no && can_build_shared=no
15839 with_gnu_ld_CXX=$with_gnu_ld
15847 # Do we need to explicitly link libc?
15849 case "x$archive_cmds_need_lc_CXX" in
15850 x|xyes)
15851 # Assume -lc should be added
15852 archive_cmds_need_lc_CXX=yes
15854 if test "$enable_shared" = yes && test "$GCC" = yes; then
15855 case $archive_cmds_CXX in
15856 *'~'*)
15857 # FIXME: we may have to deal with multi-command sequences.
15859 '$CC '*)
15860 # Test whether the compiler implicitly links with -lc since on some
15861 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15862 # to ld, don't add -lc before -lgcc.
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15864 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15865 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15866 $as_echo_n "(cached) " >&6
15867 else
15868 $RM conftest*
15869 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15872 (eval $ac_compile) 2>&5
15873 ac_status=$?
15874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15875 test $ac_status = 0; } 2>conftest.err; then
15876 soname=conftest
15877 lib=conftest
15878 libobjs=conftest.$ac_objext
15879 deplibs=
15880 wl=$lt_prog_compiler_wl_CXX
15881 pic_flag=$lt_prog_compiler_pic_CXX
15882 compiler_flags=-v
15883 linker_flags=-v
15884 verstring=
15885 output_objdir=.
15886 libname=conftest
15887 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15888 allow_undefined_flag_CXX=
15889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15890 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15891 ac_status=$?
15892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15893 test $ac_status = 0; }
15894 then
15895 lt_cv_archive_cmds_need_lc_CXX=no
15896 else
15897 lt_cv_archive_cmds_need_lc_CXX=yes
15899 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15900 else
15901 cat conftest.err 1>&5
15903 $RM conftest*
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15907 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15908 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15910 esac
15913 esac
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15979 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15981 library_names_spec=
15982 libname_spec='lib$name'
15983 soname_spec=
15984 shrext_cmds=".so"
15985 postinstall_cmds=
15986 postuninstall_cmds=
15987 finish_cmds=
15988 finish_eval=
15989 shlibpath_var=
15990 shlibpath_overrides_runpath=unknown
15991 version_type=none
15992 dynamic_linker="$host_os ld.so"
15993 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15994 need_lib_prefix=unknown
15995 hardcode_into_libs=no
15997 # when you set need_version to no, make sure it does not cause -set_version
15998 # flags to be left without arguments
15999 need_version=unknown
16001 case $host_os in
16002 aix3*)
16003 version_type=linux
16004 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16005 shlibpath_var=LIBPATH
16007 # AIX 3 has no versioning support, so we append a major version to the name.
16008 soname_spec='${libname}${release}${shared_ext}$major'
16011 aix[4-9]*)
16012 version_type=linux
16013 need_lib_prefix=no
16014 need_version=no
16015 hardcode_into_libs=yes
16016 if test "$host_cpu" = ia64; then
16017 # AIX 5 supports IA64
16018 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16019 shlibpath_var=LD_LIBRARY_PATH
16020 else
16021 # With GCC up to 2.95.x, collect2 would create an import file
16022 # for dependence libraries. The import file would start with
16023 # the line `#! .'. This would cause the generated library to
16024 # depend on `.', always an invalid library. This was fixed in
16025 # development snapshots of GCC prior to 3.0.
16026 case $host_os in
16027 aix4 | aix4.[01] | aix4.[01].*)
16028 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16029 echo ' yes '
16030 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16032 else
16033 can_build_shared=no
16036 esac
16037 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16038 # soname into executable. Probably we can add versioning support to
16039 # collect2, so additional links can be useful in future.
16040 if test "$aix_use_runtimelinking" = yes; then
16041 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16042 # instead of lib<name>.a to let people know that these are not
16043 # typical AIX shared libraries.
16044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16045 else
16046 # We preserve .a as extension for shared libraries through AIX4.2
16047 # and later when we are not doing run time linking.
16048 library_names_spec='${libname}${release}.a $libname.a'
16049 soname_spec='${libname}${release}${shared_ext}$major'
16051 shlibpath_var=LIBPATH
16055 amigaos*)
16056 case $host_cpu in
16057 powerpc)
16058 # Since July 2007 AmigaOS4 officially supports .so libraries.
16059 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16062 m68k)
16063 library_names_spec='$libname.ixlibrary $libname.a'
16064 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16065 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'
16067 esac
16070 beos*)
16071 library_names_spec='${libname}${shared_ext}'
16072 dynamic_linker="$host_os ld.so"
16073 shlibpath_var=LIBRARY_PATH
16076 bsdi[45]*)
16077 version_type=linux
16078 need_version=no
16079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16080 soname_spec='${libname}${release}${shared_ext}$major'
16081 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16082 shlibpath_var=LD_LIBRARY_PATH
16083 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16084 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16085 # the default ld.so.conf also contains /usr/contrib/lib and
16086 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16087 # libtool to hard-code these into programs
16090 cygwin* | mingw* | pw32* | cegcc*)
16091 version_type=windows
16092 shrext_cmds=".dll"
16093 need_version=no
16094 need_lib_prefix=no
16096 case $GCC,$host_os in
16097 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16098 library_names_spec='$libname.dll.a'
16099 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16100 postinstall_cmds='base_file=`basename \${file}`~
16101 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16102 dldir=$destdir/`dirname \$dlpath`~
16103 test -d \$dldir || mkdir -p \$dldir~
16104 $install_prog $dir/$dlname \$dldir/$dlname~
16105 chmod a+x \$dldir/$dlname~
16106 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16107 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16109 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16110 dlpath=$dir/\$dldll~
16111 $RM \$dlpath'
16112 shlibpath_overrides_runpath=yes
16114 case $host_os in
16115 cygwin*)
16116 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16117 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16120 mingw* | cegcc*)
16121 # MinGW DLLs use traditional 'lib' prefix
16122 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16124 pw32*)
16125 # pw32 DLLs use 'pw' prefix rather than 'lib'
16126 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16128 esac
16132 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16134 esac
16135 dynamic_linker='Win32 ld.exe'
16136 # FIXME: first we should search . and the directory the executable is in
16137 shlibpath_var=PATH
16140 darwin* | rhapsody*)
16141 dynamic_linker="$host_os dyld"
16142 version_type=darwin
16143 need_lib_prefix=no
16144 need_version=no
16145 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16146 soname_spec='${libname}${release}${major}$shared_ext'
16147 shlibpath_overrides_runpath=yes
16148 shlibpath_var=DYLD_LIBRARY_PATH
16149 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16151 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16154 dgux*)
16155 version_type=linux
16156 need_lib_prefix=no
16157 need_version=no
16158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16159 soname_spec='${libname}${release}${shared_ext}$major'
16160 shlibpath_var=LD_LIBRARY_PATH
16163 freebsd1*)
16164 dynamic_linker=no
16167 freebsd* | dragonfly*)
16168 # DragonFly does not have aout. When/if they implement a new
16169 # versioning mechanism, adjust this.
16170 if test -x /usr/bin/objformat; then
16171 objformat=`/usr/bin/objformat`
16172 else
16173 case $host_os in
16174 freebsd[123]*) objformat=aout ;;
16175 *) objformat=elf ;;
16176 esac
16178 version_type=freebsd-$objformat
16179 case $version_type in
16180 freebsd-elf*)
16181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16182 need_version=no
16183 need_lib_prefix=no
16185 freebsd-*)
16186 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16187 need_version=yes
16189 esac
16190 shlibpath_var=LD_LIBRARY_PATH
16191 case $host_os in
16192 freebsd2*)
16193 shlibpath_overrides_runpath=yes
16195 freebsd3.[01]* | freebsdelf3.[01]*)
16196 shlibpath_overrides_runpath=yes
16197 hardcode_into_libs=yes
16199 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16200 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16201 shlibpath_overrides_runpath=no
16202 hardcode_into_libs=yes
16204 *) # from 4.6 on, and DragonFly
16205 shlibpath_overrides_runpath=yes
16206 hardcode_into_libs=yes
16208 esac
16211 gnu*)
16212 version_type=linux
16213 need_lib_prefix=no
16214 need_version=no
16215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16216 soname_spec='${libname}${release}${shared_ext}$major'
16217 shlibpath_var=LD_LIBRARY_PATH
16218 hardcode_into_libs=yes
16221 haiku*)
16222 version_type=linux
16223 need_lib_prefix=no
16224 need_version=no
16225 dynamic_linker="$host_os runtime_loader"
16226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16227 soname_spec='${libname}${release}${shared_ext}$major'
16228 shlibpath_var=LIBRARY_PATH
16229 shlibpath_overrides_runpath=yes
16230 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16231 hardcode_into_libs=yes
16234 hpux9* | hpux10* | hpux11*)
16235 # Give a soname corresponding to the major version so that dld.sl refuses to
16236 # link against other versions.
16237 version_type=sunos
16238 need_lib_prefix=no
16239 need_version=no
16240 case $host_cpu in
16241 ia64*)
16242 shrext_cmds='.so'
16243 hardcode_into_libs=yes
16244 dynamic_linker="$host_os dld.so"
16245 shlibpath_var=LD_LIBRARY_PATH
16246 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16248 soname_spec='${libname}${release}${shared_ext}$major'
16249 if test "X$HPUX_IA64_MODE" = X32; then
16250 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16251 else
16252 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16254 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16256 hppa*64*)
16257 shrext_cmds='.sl'
16258 hardcode_into_libs=yes
16259 dynamic_linker="$host_os dld.sl"
16260 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16261 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16263 soname_spec='${libname}${release}${shared_ext}$major'
16264 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16265 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16268 shrext_cmds='.sl'
16269 dynamic_linker="$host_os dld.sl"
16270 shlibpath_var=SHLIB_PATH
16271 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16273 soname_spec='${libname}${release}${shared_ext}$major'
16275 esac
16276 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16277 postinstall_cmds='chmod 555 $lib'
16278 # or fails outright, so override atomically:
16279 install_override_mode=555
16282 interix[3-9]*)
16283 version_type=linux
16284 need_lib_prefix=no
16285 need_version=no
16286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16287 soname_spec='${libname}${release}${shared_ext}$major'
16288 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16289 shlibpath_var=LD_LIBRARY_PATH
16290 shlibpath_overrides_runpath=no
16291 hardcode_into_libs=yes
16294 irix5* | irix6* | nonstopux*)
16295 case $host_os in
16296 nonstopux*) version_type=nonstopux ;;
16298 if test "$lt_cv_prog_gnu_ld" = yes; then
16299 version_type=linux
16300 else
16301 version_type=irix
16302 fi ;;
16303 esac
16304 need_lib_prefix=no
16305 need_version=no
16306 soname_spec='${libname}${release}${shared_ext}$major'
16307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16308 case $host_os in
16309 irix5* | nonstopux*)
16310 libsuff= shlibsuff=
16313 case $LD in # libtool.m4 will add one of these switches to LD
16314 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16315 libsuff= shlibsuff= libmagic=32-bit;;
16316 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16317 libsuff=32 shlibsuff=N32 libmagic=N32;;
16318 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16319 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16320 *) libsuff= shlibsuff= libmagic=never-match;;
16321 esac
16323 esac
16324 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16325 shlibpath_overrides_runpath=no
16326 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16327 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16328 hardcode_into_libs=yes
16331 # No shared lib support for Linux oldld, aout, or coff.
16332 linux*oldld* | linux*aout* | linux*coff*)
16333 dynamic_linker=no
16336 # This must be Linux ELF.
16337 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16338 version_type=linux
16339 need_lib_prefix=no
16340 need_version=no
16341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16342 soname_spec='${libname}${release}${shared_ext}$major'
16343 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16344 shlibpath_var=LD_LIBRARY_PATH
16345 shlibpath_overrides_runpath=no
16347 # Some binutils ld are patched to set DT_RUNPATH
16348 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16349 $as_echo_n "(cached) " >&6
16350 else
16351 lt_cv_shlibpath_overrides_runpath=no
16352 save_LDFLAGS=$LDFLAGS
16353 save_libdir=$libdir
16354 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16355 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16356 if test x$gcc_no_link = xyes; then
16357 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16360 /* end confdefs.h. */
16363 main ()
16367 return 0;
16369 _ACEOF
16370 if ac_fn_cxx_try_link "$LINENO"; then :
16371 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16372 lt_cv_shlibpath_overrides_runpath=yes
16375 rm -f core conftest.err conftest.$ac_objext \
16376 conftest$ac_exeext conftest.$ac_ext
16377 LDFLAGS=$save_LDFLAGS
16378 libdir=$save_libdir
16382 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16384 # This implies no fast_install, which is unacceptable.
16385 # Some rework will be needed to allow for fast_install
16386 # before this can be enabled.
16387 hardcode_into_libs=yes
16389 # Append ld.so.conf contents to the search path
16390 if test -f /etc/ld.so.conf; then
16391 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' ' '`
16392 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16395 # We used to test for /lib/ld.so.1 and disable shared libraries on
16396 # powerpc, because MkLinux only supported shared libraries with the
16397 # GNU dynamic linker. Since this was broken with cross compilers,
16398 # most powerpc-linux boxes support dynamic linking these days and
16399 # people can always --disable-shared, the test was removed, and we
16400 # assume the GNU/Linux dynamic linker is in use.
16401 dynamic_linker='GNU/Linux ld.so'
16404 netbsd*)
16405 version_type=sunos
16406 need_lib_prefix=no
16407 need_version=no
16408 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16410 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16411 dynamic_linker='NetBSD (a.out) ld.so'
16412 else
16413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16414 soname_spec='${libname}${release}${shared_ext}$major'
16415 dynamic_linker='NetBSD ld.elf_so'
16417 shlibpath_var=LD_LIBRARY_PATH
16418 shlibpath_overrides_runpath=yes
16419 hardcode_into_libs=yes
16422 newsos6)
16423 version_type=linux
16424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16425 shlibpath_var=LD_LIBRARY_PATH
16426 shlibpath_overrides_runpath=yes
16429 *nto* | *qnx*)
16430 version_type=qnx
16431 need_lib_prefix=no
16432 need_version=no
16433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16434 soname_spec='${libname}${release}${shared_ext}$major'
16435 shlibpath_var=LD_LIBRARY_PATH
16436 shlibpath_overrides_runpath=no
16437 hardcode_into_libs=yes
16438 dynamic_linker='ldqnx.so'
16441 openbsd*)
16442 version_type=sunos
16443 sys_lib_dlsearch_path_spec="/usr/lib"
16444 need_lib_prefix=no
16445 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16446 case $host_os in
16447 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16448 *) need_version=no ;;
16449 esac
16450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16451 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16452 shlibpath_var=LD_LIBRARY_PATH
16453 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16454 case $host_os in
16455 openbsd2.[89] | openbsd2.[89].*)
16456 shlibpath_overrides_runpath=no
16459 shlibpath_overrides_runpath=yes
16461 esac
16462 else
16463 shlibpath_overrides_runpath=yes
16467 os2*)
16468 libname_spec='$name'
16469 shrext_cmds=".dll"
16470 need_lib_prefix=no
16471 library_names_spec='$libname${shared_ext} $libname.a'
16472 dynamic_linker='OS/2 ld.exe'
16473 shlibpath_var=LIBPATH
16476 osf3* | osf4* | osf5*)
16477 version_type=osf
16478 need_lib_prefix=no
16479 need_version=no
16480 soname_spec='${libname}${release}${shared_ext}$major'
16481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16482 shlibpath_var=LD_LIBRARY_PATH
16483 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16484 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16487 rdos*)
16488 dynamic_linker=no
16491 solaris*)
16492 version_type=linux
16493 need_lib_prefix=no
16494 need_version=no
16495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16496 soname_spec='${libname}${release}${shared_ext}$major'
16497 shlibpath_var=LD_LIBRARY_PATH
16498 shlibpath_overrides_runpath=yes
16499 hardcode_into_libs=yes
16500 # ldd complains unless libraries are executable
16501 postinstall_cmds='chmod +x $lib'
16504 sunos4*)
16505 version_type=sunos
16506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16507 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16508 shlibpath_var=LD_LIBRARY_PATH
16509 shlibpath_overrides_runpath=yes
16510 if test "$with_gnu_ld" = yes; then
16511 need_lib_prefix=no
16513 need_version=yes
16516 sysv4 | sysv4.3*)
16517 version_type=linux
16518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16519 soname_spec='${libname}${release}${shared_ext}$major'
16520 shlibpath_var=LD_LIBRARY_PATH
16521 case $host_vendor in
16522 sni)
16523 shlibpath_overrides_runpath=no
16524 need_lib_prefix=no
16525 runpath_var=LD_RUN_PATH
16527 siemens)
16528 need_lib_prefix=no
16530 motorola)
16531 need_lib_prefix=no
16532 need_version=no
16533 shlibpath_overrides_runpath=no
16534 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16536 esac
16539 sysv4*MP*)
16540 if test -d /usr/nec ;then
16541 version_type=linux
16542 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16543 soname_spec='$libname${shared_ext}.$major'
16544 shlibpath_var=LD_LIBRARY_PATH
16548 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16549 version_type=freebsd-elf
16550 need_lib_prefix=no
16551 need_version=no
16552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16553 soname_spec='${libname}${release}${shared_ext}$major'
16554 shlibpath_var=LD_LIBRARY_PATH
16555 shlibpath_overrides_runpath=yes
16556 hardcode_into_libs=yes
16557 if test "$with_gnu_ld" = yes; then
16558 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16559 else
16560 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16561 case $host_os in
16562 sco3.2v5*)
16563 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16565 esac
16567 sys_lib_dlsearch_path_spec='/usr/lib'
16570 tpf*)
16571 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16572 version_type=linux
16573 need_lib_prefix=no
16574 need_version=no
16575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16576 shlibpath_var=LD_LIBRARY_PATH
16577 shlibpath_overrides_runpath=no
16578 hardcode_into_libs=yes
16581 uts4*)
16582 version_type=linux
16583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16584 soname_spec='${libname}${release}${shared_ext}$major'
16585 shlibpath_var=LD_LIBRARY_PATH
16589 dynamic_linker=no
16591 esac
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16593 $as_echo "$dynamic_linker" >&6; }
16594 test "$dynamic_linker" = no && can_build_shared=no
16596 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16597 if test "$GCC" = yes; then
16598 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16601 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16602 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16604 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16605 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16646 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16647 hardcode_action_CXX=
16648 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16649 test -n "$runpath_var_CXX" ||
16650 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16652 # We can hardcode non-existent directories.
16653 if test "$hardcode_direct_CXX" != no &&
16654 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16655 # have to relink, otherwise we might link with an installed library
16656 # when we should be linking with a yet-to-be-installed one
16657 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16658 test "$hardcode_minus_L_CXX" != no; then
16659 # Linking always hardcodes the temporary library directory.
16660 hardcode_action_CXX=relink
16661 else
16662 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16663 hardcode_action_CXX=immediate
16665 else
16666 # We cannot hardcode anything, or else we can only hardcode existing
16667 # directories.
16668 hardcode_action_CXX=unsupported
16670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16671 $as_echo "$hardcode_action_CXX" >&6; }
16673 if test "$hardcode_action_CXX" = relink ||
16674 test "$inherit_rpath_CXX" = yes; then
16675 # Fast installation is not supported
16676 enable_fast_install=no
16677 elif test "$shlibpath_overrides_runpath" = yes ||
16678 test "$enable_shared" = no; then
16679 # Fast installation is not necessary
16680 enable_fast_install=needless
16689 fi # test -n "$compiler"
16691 CC=$lt_save_CC
16692 LDCXX=$LD
16693 LD=$lt_save_LD
16694 GCC=$lt_save_GCC
16695 with_gnu_ld=$lt_save_with_gnu_ld
16696 lt_cv_path_LDCXX=$lt_cv_path_LD
16697 lt_cv_path_LD=$lt_save_path_LD
16698 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16699 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16700 fi # test "$_lt_caught_CXX_error" != yes
16702 ac_ext=c
16703 ac_cpp='$CPP $CPPFLAGS'
16704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16720 ac_config_commands="$ac_config_commands libtool"
16725 # Only expand once:
16729 if test -n "$ac_tool_prefix"; then
16730 for ac_prog in gcj
16732 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16733 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16735 $as_echo_n "checking for $ac_word... " >&6; }
16736 if test "${ac_cv_prog_GCJ+set}" = set; then :
16737 $as_echo_n "(cached) " >&6
16738 else
16739 if test -n "$GCJ"; then
16740 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16741 else
16742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16743 for as_dir in $PATH
16745 IFS=$as_save_IFS
16746 test -z "$as_dir" && as_dir=.
16747 for ac_exec_ext in '' $ac_executable_extensions; do
16748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16749 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
16750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16751 break 2
16753 done
16754 done
16755 IFS=$as_save_IFS
16759 GCJ=$ac_cv_prog_GCJ
16760 if test -n "$GCJ"; then
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16762 $as_echo "$GCJ" >&6; }
16763 else
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16765 $as_echo "no" >&6; }
16769 test -n "$GCJ" && break
16770 done
16772 if test -z "$GCJ"; then
16773 ac_ct_GCJ=$GCJ
16774 for ac_prog in gcj
16776 # Extract the first word of "$ac_prog", so it can be a program name with args.
16777 set dummy $ac_prog; ac_word=$2
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16779 $as_echo_n "checking for $ac_word... " >&6; }
16780 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
16781 $as_echo_n "(cached) " >&6
16782 else
16783 if test -n "$ac_ct_GCJ"; then
16784 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
16785 else
16786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16787 for as_dir in $PATH
16789 IFS=$as_save_IFS
16790 test -z "$as_dir" && as_dir=.
16791 for ac_exec_ext in '' $ac_executable_extensions; do
16792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16793 ac_cv_prog_ac_ct_GCJ="$ac_prog"
16794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16795 break 2
16797 done
16798 done
16799 IFS=$as_save_IFS
16803 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
16804 if test -n "$ac_ct_GCJ"; then
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
16806 $as_echo "$ac_ct_GCJ" >&6; }
16807 else
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16809 $as_echo "no" >&6; }
16813 test -n "$ac_ct_GCJ" && break
16814 done
16816 if test "x$ac_ct_GCJ" = x; then
16817 GCJ="gcj"
16818 else
16819 case $cross_compiling:$ac_tool_warned in
16820 yes:)
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16823 ac_tool_warned=yes ;;
16824 esac
16825 GCJ=$ac_ct_GCJ
16829 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
16830 if test "x${GCJFLAGS-unset}" = xunset; then
16831 GCJFLAGS="-g -O2"
16835 depcc="$GCJ" am_compiler_list='gcc3 gcc'
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16838 $as_echo_n "checking dependency style of $depcc... " >&6; }
16839 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16840 $as_echo_n "(cached) " >&6
16841 else
16842 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16843 # We make a subdir and do the tests there. Otherwise we can end up
16844 # making bogus files that we don't know about and never remove. For
16845 # instance it was reported that on HP-UX the gcc test will end up
16846 # making a dummy file named `D' -- because `-MD' means `put the output
16847 # in D'.
16848 mkdir conftest.dir
16849 # Copy depcomp to subdir because otherwise we won't find it if we're
16850 # using a relative directory.
16851 cp "$am_depcomp" conftest.dir
16852 cd conftest.dir
16853 # We will build objects and dependencies in a subdirectory because
16854 # it helps to detect inapplicable dependency modes. For instance
16855 # both Tru64's cc and ICC support -MD to output dependencies as a
16856 # side effect of compilation, but ICC will put the dependencies in
16857 # the current directory while Tru64 will put them in the object
16858 # directory.
16859 mkdir sub
16861 am_cv_GCJ_dependencies_compiler_type=none
16862 if test "$am_compiler_list" = ""; then
16863 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16865 am__universal=false
16868 for depmode in $am_compiler_list; do
16869 # Setup a source with many dependencies, because some compilers
16870 # like to wrap large dependency lists on column 80 (with \), and
16871 # we should not choose a depcomp mode which is confused by this.
16873 # We need to recreate these files for each test, as the compiler may
16874 # overwrite some of them when testing with obscure command lines.
16875 # This happens at least with the AIX C compiler.
16876 : > sub/conftest.c
16877 for i in 1 2 3 4 5 6; do
16878 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16879 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16880 # Solaris 8's {/usr,}/bin/sh.
16881 touch sub/conftst$i.h
16882 done
16883 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16885 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16886 # mode. It turns out that the SunPro C++ compiler does not properly
16887 # handle `-M -o', and we need to detect this. Also, some Intel
16888 # versions had trouble with output in subdirs
16889 am__obj=sub/conftest.${OBJEXT-o}
16890 am__minus_obj="-o $am__obj"
16891 case $depmode in
16892 gcc)
16893 # This depmode causes a compiler race in universal mode.
16894 test "$am__universal" = false || continue
16896 nosideeffect)
16897 # after this tag, mechanisms are not by side-effect, so they'll
16898 # only be used when explicitly requested
16899 if test "x$enable_dependency_tracking" = xyes; then
16900 continue
16901 else
16902 break
16905 msvisualcpp | msvcmsys)
16906 # This compiler won't grok `-c -o', but also, the minuso test has
16907 # not run yet. These depmodes are late enough in the game, and
16908 # so weak that their functioning should not be impacted.
16909 am__obj=conftest.${OBJEXT-o}
16910 am__minus_obj=
16912 none) break ;;
16913 esac
16914 if depmode=$depmode \
16915 source=sub/conftest.c object=$am__obj \
16916 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16917 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16918 >/dev/null 2>conftest.err &&
16919 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16920 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16921 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16922 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16923 # icc doesn't choke on unknown options, it will just issue warnings
16924 # or remarks (even with -Werror). So we grep stderr for any message
16925 # that says an option was ignored or not supported.
16926 # When given -MP, icc 7.0 and 7.1 complain thusly:
16927 # icc: Command line warning: ignoring option '-M'; no argument required
16928 # The diagnosis changed in icc 8.0:
16929 # icc: Command line remark: option '-MP' not supported
16930 if (grep 'ignoring option' conftest.err ||
16931 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16932 am_cv_GCJ_dependencies_compiler_type=$depmode
16933 break
16936 done
16938 cd ..
16939 rm -rf conftest.dir
16940 else
16941 am_cv_GCJ_dependencies_compiler_type=none
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16946 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
16947 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
16950 test "x$enable_dependency_tracking" != xno \
16951 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16952 am__fastdepGCJ_TRUE=
16953 am__fastdepGCJ_FALSE='#'
16954 else
16955 am__fastdepGCJ_TRUE='#'
16956 am__fastdepGCJ_FALSE=
16961 if test -n "$ac_tool_prefix"; then
16962 for ac_prog in gcj
16964 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16965 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16967 $as_echo_n "checking for $ac_word... " >&6; }
16968 if test "${ac_cv_prog_GCJ+set}" = set; then :
16969 $as_echo_n "(cached) " >&6
16970 else
16971 if test -n "$GCJ"; then
16972 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16973 else
16974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16975 for as_dir in $PATH
16977 IFS=$as_save_IFS
16978 test -z "$as_dir" && as_dir=.
16979 for ac_exec_ext in '' $ac_executable_extensions; do
16980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16981 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
16982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16983 break 2
16985 done
16986 done
16987 IFS=$as_save_IFS
16991 GCJ=$ac_cv_prog_GCJ
16992 if test -n "$GCJ"; then
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16994 $as_echo "$GCJ" >&6; }
16995 else
16996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16997 $as_echo "no" >&6; }
17001 test -n "$GCJ" && break
17002 done
17004 if test -z "$GCJ"; then
17005 ac_ct_GCJ=$GCJ
17006 for ac_prog in gcj
17008 # Extract the first word of "$ac_prog", so it can be a program name with args.
17009 set dummy $ac_prog; ac_word=$2
17010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17011 $as_echo_n "checking for $ac_word... " >&6; }
17012 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
17013 $as_echo_n "(cached) " >&6
17014 else
17015 if test -n "$ac_ct_GCJ"; then
17016 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
17017 else
17018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17019 for as_dir in $PATH
17021 IFS=$as_save_IFS
17022 test -z "$as_dir" && as_dir=.
17023 for ac_exec_ext in '' $ac_executable_extensions; do
17024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17025 ac_cv_prog_ac_ct_GCJ="$ac_prog"
17026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17027 break 2
17029 done
17030 done
17031 IFS=$as_save_IFS
17035 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
17036 if test -n "$ac_ct_GCJ"; then
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
17038 $as_echo "$ac_ct_GCJ" >&6; }
17039 else
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17041 $as_echo "no" >&6; }
17045 test -n "$ac_ct_GCJ" && break
17046 done
17048 if test "x$ac_ct_GCJ" = x; then
17049 GCJ="gcj"
17050 else
17051 case $cross_compiling:$ac_tool_warned in
17052 yes:)
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17054 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17055 ac_tool_warned=yes ;;
17056 esac
17057 GCJ=$ac_ct_GCJ
17061 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
17062 if test "x${GCJFLAGS-unset}" = xunset; then
17063 GCJFLAGS="-g -O2"
17067 depcc="$GCJ" am_compiler_list='gcc3 gcc'
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17070 $as_echo_n "checking dependency style of $depcc... " >&6; }
17071 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
17072 $as_echo_n "(cached) " >&6
17073 else
17074 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17075 # We make a subdir and do the tests there. Otherwise we can end up
17076 # making bogus files that we don't know about and never remove. For
17077 # instance it was reported that on HP-UX the gcc test will end up
17078 # making a dummy file named `D' -- because `-MD' means `put the output
17079 # in D'.
17080 mkdir conftest.dir
17081 # Copy depcomp to subdir because otherwise we won't find it if we're
17082 # using a relative directory.
17083 cp "$am_depcomp" conftest.dir
17084 cd conftest.dir
17085 # We will build objects and dependencies in a subdirectory because
17086 # it helps to detect inapplicable dependency modes. For instance
17087 # both Tru64's cc and ICC support -MD to output dependencies as a
17088 # side effect of compilation, but ICC will put the dependencies in
17089 # the current directory while Tru64 will put them in the object
17090 # directory.
17091 mkdir sub
17093 am_cv_GCJ_dependencies_compiler_type=none
17094 if test "$am_compiler_list" = ""; then
17095 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17097 am__universal=false
17100 for depmode in $am_compiler_list; do
17101 # Setup a source with many dependencies, because some compilers
17102 # like to wrap large dependency lists on column 80 (with \), and
17103 # we should not choose a depcomp mode which is confused by this.
17105 # We need to recreate these files for each test, as the compiler may
17106 # overwrite some of them when testing with obscure command lines.
17107 # This happens at least with the AIX C compiler.
17108 : > sub/conftest.c
17109 for i in 1 2 3 4 5 6; do
17110 echo '#include "conftst'$i'.h"' >> sub/conftest.c
17111 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17112 # Solaris 8's {/usr,}/bin/sh.
17113 touch sub/conftst$i.h
17114 done
17115 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17117 # We check with `-c' and `-o' for the sake of the "dashmstdout"
17118 # mode. It turns out that the SunPro C++ compiler does not properly
17119 # handle `-M -o', and we need to detect this. Also, some Intel
17120 # versions had trouble with output in subdirs
17121 am__obj=sub/conftest.${OBJEXT-o}
17122 am__minus_obj="-o $am__obj"
17123 case $depmode in
17124 gcc)
17125 # This depmode causes a compiler race in universal mode.
17126 test "$am__universal" = false || continue
17128 nosideeffect)
17129 # after this tag, mechanisms are not by side-effect, so they'll
17130 # only be used when explicitly requested
17131 if test "x$enable_dependency_tracking" = xyes; then
17132 continue
17133 else
17134 break
17137 msvisualcpp | msvcmsys)
17138 # This compiler won't grok `-c -o', but also, the minuso test has
17139 # not run yet. These depmodes are late enough in the game, and
17140 # so weak that their functioning should not be impacted.
17141 am__obj=conftest.${OBJEXT-o}
17142 am__minus_obj=
17144 none) break ;;
17145 esac
17146 if depmode=$depmode \
17147 source=sub/conftest.c object=$am__obj \
17148 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17149 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17150 >/dev/null 2>conftest.err &&
17151 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17152 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17153 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17154 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17155 # icc doesn't choke on unknown options, it will just issue warnings
17156 # or remarks (even with -Werror). So we grep stderr for any message
17157 # that says an option was ignored or not supported.
17158 # When given -MP, icc 7.0 and 7.1 complain thusly:
17159 # icc: Command line warning: ignoring option '-M'; no argument required
17160 # The diagnosis changed in icc 8.0:
17161 # icc: Command line remark: option '-MP' not supported
17162 if (grep 'ignoring option' conftest.err ||
17163 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17164 am_cv_GCJ_dependencies_compiler_type=$depmode
17165 break
17168 done
17170 cd ..
17171 rm -rf conftest.dir
17172 else
17173 am_cv_GCJ_dependencies_compiler_type=none
17177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
17178 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
17179 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
17182 test "x$enable_dependency_tracking" != xno \
17183 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
17184 am__fastdepGCJ_TRUE=
17185 am__fastdepGCJ_FALSE='#'
17186 else
17187 am__fastdepGCJ_TRUE='#'
17188 am__fastdepGCJ_FALSE=
17195 # Source file extension for Java test sources.
17196 ac_ext=c
17198 # Object file extension for compiled Java test sources.
17199 objext=o
17200 objext_GCJ=$objext
17202 # Code to be used in simple compile tests
17203 lt_simple_compile_test_code="int some_variable = 0;"
17205 # Code to be used in simple link tests
17206 lt_simple_link_test_code='int main(){return(0);}'
17208 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17215 # If no C compiler was specified, use CC.
17216 LTCC=${LTCC-"$CC"}
17218 # If no C compiler flags were specified, use CFLAGS.
17219 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17221 # Allow CC to be a program name with arguments.
17222 compiler=$CC
17225 # save warnings/boilerplate of simple test code
17226 ac_outfile=conftest.$ac_objext
17227 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17228 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17229 _lt_compiler_boilerplate=`cat conftest.err`
17230 $RM conftest*
17232 ac_outfile=conftest.$ac_objext
17233 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17234 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17235 _lt_linker_boilerplate=`cat conftest.err`
17236 $RM -r conftest*
17239 # Allow CC to be a program name with arguments.
17240 GCC=yes
17241 compiler=$CC
17242 compiler_GCJ=$CC
17243 for cc_temp in $compiler""; do
17244 case $cc_temp in
17245 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17246 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17247 \-*) ;;
17248 *) break;;
17249 esac
17250 done
17251 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17254 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17255 archive_cmds_need_lc_GCJ=no
17257 old_archive_cmds_GCJ=$old_archive_cmds
17259 ## CAVEAT EMPTOR:
17260 ## There is no encapsulation within the following macros, do not change
17261 ## the running order or otherwise move them around unless you know exactly
17262 ## what you are doing...
17263 if test -n "$compiler"; then
17265 lt_prog_compiler_no_builtin_flag_GCJ=
17267 if test "$GCC" = yes; then
17268 case $cc_basename in
17269 nvcc*)
17270 lt_prog_compiler_no_builtin_flag_GCJ=' -Xcompiler -fno-builtin' ;;
17272 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' ;;
17273 esac
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17276 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17277 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
17278 $as_echo_n "(cached) " >&6
17279 else
17280 lt_cv_prog_compiler_rtti_exceptions=no
17281 ac_outfile=conftest.$ac_objext
17282 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17283 lt_compiler_flag="-fno-rtti -fno-exceptions"
17284 # Insert the option either (1) after the last *FLAGS variable, or
17285 # (2) before a word containing "conftest.", or (3) at the end.
17286 # Note that $ac_compile itself does not contain backslashes and begins
17287 # with a dollar sign (not a hyphen), so the echo should work correctly.
17288 # The option is referenced via a variable to avoid confusing sed.
17289 lt_compile=`echo "$ac_compile" | $SED \
17290 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17291 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17292 -e 's:$: $lt_compiler_flag:'`
17293 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17294 (eval "$lt_compile" 2>conftest.err)
17295 ac_status=$?
17296 cat conftest.err >&5
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 if (exit $ac_status) && test -s "$ac_outfile"; then
17299 # The compiler can only warn and ignore the option if not recognized
17300 # So say no if there are warnings other than the usual output.
17301 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17302 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17303 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17304 lt_cv_prog_compiler_rtti_exceptions=yes
17307 $RM conftest*
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17311 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17313 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17314 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17315 else
17323 lt_prog_compiler_wl_GCJ=
17324 lt_prog_compiler_pic_GCJ=
17325 lt_prog_compiler_static_GCJ=
17327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17328 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17330 if test "$GCC" = yes; then
17331 lt_prog_compiler_wl_GCJ='-Wl,'
17332 lt_prog_compiler_static_GCJ='-static'
17334 case $host_os in
17335 aix*)
17336 # All AIX code is PIC.
17337 if test "$host_cpu" = ia64; then
17338 # AIX 5 now supports IA64 processor
17339 lt_prog_compiler_static_GCJ='-Bstatic'
17343 amigaos*)
17344 case $host_cpu in
17345 powerpc)
17346 # see comment about AmigaOS4 .so support
17347 lt_prog_compiler_pic_GCJ='-fPIC'
17349 m68k)
17350 # FIXME: we need at least 68020 code to build shared libraries, but
17351 # adding the `-m68020' flag to GCC prevents building anything better,
17352 # like `-m68040'.
17353 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17355 esac
17358 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17359 # PIC is the default for these OSes.
17362 mingw* | cygwin* | pw32* | os2* | cegcc*)
17363 # This hack is so that the source file can tell whether it is being
17364 # built for inclusion in a dll (and should export symbols for example).
17365 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17366 # (--disable-auto-import) libraries
17370 darwin* | rhapsody*)
17371 # PIC is the default on this platform
17372 # Common symbols not allowed in MH_DYLIB files
17373 lt_prog_compiler_pic_GCJ='-fno-common'
17376 haiku*)
17377 # PIC is the default for Haiku.
17378 # The "-static" flag exists, but is broken.
17379 lt_prog_compiler_static_GCJ=
17382 hpux*)
17383 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17384 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17385 # sets the default TLS model and affects inlining.
17386 case $host_cpu in
17387 hppa*64*)
17388 # +Z the default
17391 lt_prog_compiler_pic_GCJ='-fPIC'
17393 esac
17396 interix[3-9]*)
17397 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17398 # Instead, we relocate shared libraries at runtime.
17401 msdosdjgpp*)
17402 # Just because we use GCC doesn't mean we suddenly get shared libraries
17403 # on systems that don't support them.
17404 lt_prog_compiler_can_build_shared_GCJ=no
17405 enable_shared=no
17408 *nto* | *qnx*)
17409 # QNX uses GNU C++, but need to define -shared option too, otherwise
17410 # it will coredump.
17411 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17414 sysv4*MP*)
17415 if test -d /usr/nec; then
17416 lt_prog_compiler_pic_GCJ=-Kconform_pic
17421 lt_prog_compiler_pic_GCJ='-fPIC'
17423 esac
17425 case $cc_basename in
17426 nvcc*) # Cuda Compiler Driver 2.2
17427 lt_prog_compiler_wl_GCJ='-Xlinker '
17428 lt_prog_compiler_pic_GCJ='-Xcompiler -fPIC'
17430 esac
17431 else
17432 # PORTME Check for flag to pass linker flags through the system compiler.
17433 case $host_os in
17434 aix*)
17435 lt_prog_compiler_wl_GCJ='-Wl,'
17436 if test "$host_cpu" = ia64; then
17437 # AIX 5 now supports IA64 processor
17438 lt_prog_compiler_static_GCJ='-Bstatic'
17439 else
17440 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17444 mingw* | cygwin* | pw32* | os2* | cegcc*)
17445 # This hack is so that the source file can tell whether it is being
17446 # built for inclusion in a dll (and should export symbols for example).
17450 hpux9* | hpux10* | hpux11*)
17451 lt_prog_compiler_wl_GCJ='-Wl,'
17452 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17453 # not for PA HP-UX.
17454 case $host_cpu in
17455 hppa*64*|ia64*)
17456 # +Z the default
17459 lt_prog_compiler_pic_GCJ='+Z'
17461 esac
17462 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17463 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17466 irix5* | irix6* | nonstopux*)
17467 lt_prog_compiler_wl_GCJ='-Wl,'
17468 # PIC (with -KPIC) is the default.
17469 lt_prog_compiler_static_GCJ='-non_shared'
17472 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17473 case $cc_basename in
17474 # old Intel for x86_64 which still supported -KPIC.
17475 ecc*)
17476 lt_prog_compiler_wl_GCJ='-Wl,'
17477 lt_prog_compiler_pic_GCJ='-KPIC'
17478 lt_prog_compiler_static_GCJ='-static'
17480 # icc used to be incompatible with GCC.
17481 # ICC 10 doesn't accept -KPIC any more.
17482 icc* | ifort*)
17483 lt_prog_compiler_wl_GCJ='-Wl,'
17484 lt_prog_compiler_pic_GCJ='-fPIC'
17485 lt_prog_compiler_static_GCJ='-static'
17487 # Lahey Fortran 8.1.
17488 lf95*)
17489 lt_prog_compiler_wl_GCJ='-Wl,'
17490 lt_prog_compiler_pic_GCJ='--shared'
17491 lt_prog_compiler_static_GCJ='--static'
17493 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17494 # Portland Group compilers (*not* the Pentium gcc compiler,
17495 # which looks to be a dead project)
17496 lt_prog_compiler_wl_GCJ='-Wl,'
17497 lt_prog_compiler_pic_GCJ='-fpic'
17498 lt_prog_compiler_static_GCJ='-Bstatic'
17500 ccc*)
17501 lt_prog_compiler_wl_GCJ='-Wl,'
17502 # All Alpha code is PIC.
17503 lt_prog_compiler_static_GCJ='-non_shared'
17505 xl* | bgxl* | bgf* | mpixl*)
17506 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17507 lt_prog_compiler_wl_GCJ='-Wl,'
17508 lt_prog_compiler_pic_GCJ='-qpic'
17509 lt_prog_compiler_static_GCJ='-qstaticlink'
17512 case `$CC -V 2>&1 | sed 5q` in
17513 *Sun\ F* | *Sun*Fortran*)
17514 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17515 lt_prog_compiler_pic_GCJ='-KPIC'
17516 lt_prog_compiler_static_GCJ='-Bstatic'
17517 lt_prog_compiler_wl_GCJ=''
17519 *Sun\ C*)
17520 # Sun C 5.9
17521 lt_prog_compiler_pic_GCJ='-KPIC'
17522 lt_prog_compiler_static_GCJ='-Bstatic'
17523 lt_prog_compiler_wl_GCJ='-Wl,'
17525 esac
17527 esac
17530 newsos6)
17531 lt_prog_compiler_pic_GCJ='-KPIC'
17532 lt_prog_compiler_static_GCJ='-Bstatic'
17535 *nto* | *qnx*)
17536 # QNX uses GNU C++, but need to define -shared option too, otherwise
17537 # it will coredump.
17538 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17541 osf3* | osf4* | osf5*)
17542 lt_prog_compiler_wl_GCJ='-Wl,'
17543 # All OSF/1 code is PIC.
17544 lt_prog_compiler_static_GCJ='-non_shared'
17547 rdos*)
17548 lt_prog_compiler_static_GCJ='-non_shared'
17551 solaris*)
17552 lt_prog_compiler_pic_GCJ='-KPIC'
17553 lt_prog_compiler_static_GCJ='-Bstatic'
17554 case $cc_basename in
17555 f77* | f90* | f95*)
17556 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17558 lt_prog_compiler_wl_GCJ='-Wl,';;
17559 esac
17562 sunos4*)
17563 lt_prog_compiler_wl_GCJ='-Qoption ld '
17564 lt_prog_compiler_pic_GCJ='-PIC'
17565 lt_prog_compiler_static_GCJ='-Bstatic'
17568 sysv4 | sysv4.2uw2* | sysv4.3*)
17569 lt_prog_compiler_wl_GCJ='-Wl,'
17570 lt_prog_compiler_pic_GCJ='-KPIC'
17571 lt_prog_compiler_static_GCJ='-Bstatic'
17574 sysv4*MP*)
17575 if test -d /usr/nec ;then
17576 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17577 lt_prog_compiler_static_GCJ='-Bstatic'
17581 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17582 lt_prog_compiler_wl_GCJ='-Wl,'
17583 lt_prog_compiler_pic_GCJ='-KPIC'
17584 lt_prog_compiler_static_GCJ='-Bstatic'
17587 unicos*)
17588 lt_prog_compiler_wl_GCJ='-Wl,'
17589 lt_prog_compiler_can_build_shared_GCJ=no
17592 uts4*)
17593 lt_prog_compiler_pic_GCJ='-pic'
17594 lt_prog_compiler_static_GCJ='-Bstatic'
17598 lt_prog_compiler_can_build_shared_GCJ=no
17600 esac
17603 case $host_os in
17604 # For platforms which do not support PIC, -DPIC is meaningless:
17605 *djgpp*)
17606 lt_prog_compiler_pic_GCJ=
17609 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17611 esac
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
17613 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17618 # Check to make sure the PIC flag actually works.
17620 if test -n "$lt_prog_compiler_pic_GCJ"; then
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17622 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17623 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
17624 $as_echo_n "(cached) " >&6
17625 else
17626 lt_cv_prog_compiler_pic_works_GCJ=no
17627 ac_outfile=conftest.$ac_objext
17628 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17629 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17630 # Insert the option either (1) after the last *FLAGS variable, or
17631 # (2) before a word containing "conftest.", or (3) at the end.
17632 # Note that $ac_compile itself does not contain backslashes and begins
17633 # with a dollar sign (not a hyphen), so the echo should work correctly.
17634 # The option is referenced via a variable to avoid confusing sed.
17635 lt_compile=`echo "$ac_compile" | $SED \
17636 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17637 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17638 -e 's:$: $lt_compiler_flag:'`
17639 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17640 (eval "$lt_compile" 2>conftest.err)
17641 ac_status=$?
17642 cat conftest.err >&5
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 if (exit $ac_status) && test -s "$ac_outfile"; then
17645 # The compiler can only warn and ignore the option if not recognized
17646 # So say no if there are warnings other than the usual output.
17647 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17648 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17649 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17650 lt_cv_prog_compiler_pic_works_GCJ=yes
17653 $RM conftest*
17656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17657 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17659 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17660 case $lt_prog_compiler_pic_GCJ in
17661 "" | " "*) ;;
17662 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17663 esac
17664 else
17665 lt_prog_compiler_pic_GCJ=
17666 lt_prog_compiler_can_build_shared_GCJ=no
17674 # Check to make sure the static flag actually works.
17676 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17678 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17679 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
17680 $as_echo_n "(cached) " >&6
17681 else
17682 lt_cv_prog_compiler_static_works_GCJ=no
17683 save_LDFLAGS="$LDFLAGS"
17684 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17685 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17686 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17687 # The linker can only warn and ignore the option if not recognized
17688 # So say no if there are warnings
17689 if test -s conftest.err; then
17690 # Append any errors to the config.log.
17691 cat conftest.err 1>&5
17692 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17693 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17694 if diff conftest.exp conftest.er2 >/dev/null; then
17695 lt_cv_prog_compiler_static_works_GCJ=yes
17697 else
17698 lt_cv_prog_compiler_static_works_GCJ=yes
17701 $RM -r conftest*
17702 LDFLAGS="$save_LDFLAGS"
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17706 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17708 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17710 else
17711 lt_prog_compiler_static_GCJ=
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17718 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17719 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17720 $as_echo_n "(cached) " >&6
17721 else
17722 lt_cv_prog_compiler_c_o_GCJ=no
17723 $RM -r conftest 2>/dev/null
17724 mkdir conftest
17725 cd conftest
17726 mkdir out
17727 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17729 lt_compiler_flag="-o out/conftest2.$ac_objext"
17730 # Insert the option either (1) after the last *FLAGS variable, or
17731 # (2) before a word containing "conftest.", or (3) at the end.
17732 # Note that $ac_compile itself does not contain backslashes and begins
17733 # with a dollar sign (not a hyphen), so the echo should work correctly.
17734 lt_compile=`echo "$ac_compile" | $SED \
17735 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17736 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17737 -e 's:$: $lt_compiler_flag:'`
17738 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17739 (eval "$lt_compile" 2>out/conftest.err)
17740 ac_status=$?
17741 cat out/conftest.err >&5
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17744 then
17745 # The compiler can only warn and ignore the option if not recognized
17746 # So say no if there are warnings
17747 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17748 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17749 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17750 lt_cv_prog_compiler_c_o_GCJ=yes
17753 chmod u+w . 2>&5
17754 $RM conftest*
17755 # SGI C++ compiler will create directory out/ii_files/ for
17756 # template instantiation
17757 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17758 $RM out/* && rmdir out
17759 cd ..
17760 $RM -r conftest
17761 $RM conftest*
17764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17765 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17770 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17771 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17772 $as_echo_n "(cached) " >&6
17773 else
17774 lt_cv_prog_compiler_c_o_GCJ=no
17775 $RM -r conftest 2>/dev/null
17776 mkdir conftest
17777 cd conftest
17778 mkdir out
17779 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17781 lt_compiler_flag="-o out/conftest2.$ac_objext"
17782 # Insert the option either (1) after the last *FLAGS variable, or
17783 # (2) before a word containing "conftest.", or (3) at the end.
17784 # Note that $ac_compile itself does not contain backslashes and begins
17785 # with a dollar sign (not a hyphen), so the echo should work correctly.
17786 lt_compile=`echo "$ac_compile" | $SED \
17787 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17788 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17789 -e 's:$: $lt_compiler_flag:'`
17790 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17791 (eval "$lt_compile" 2>out/conftest.err)
17792 ac_status=$?
17793 cat out/conftest.err >&5
17794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17796 then
17797 # The compiler can only warn and ignore the option if not recognized
17798 # So say no if there are warnings
17799 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17800 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17801 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17802 lt_cv_prog_compiler_c_o_GCJ=yes
17805 chmod u+w . 2>&5
17806 $RM conftest*
17807 # SGI C++ compiler will create directory out/ii_files/ for
17808 # template instantiation
17809 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17810 $RM out/* && rmdir out
17811 cd ..
17812 $RM -r conftest
17813 $RM conftest*
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17817 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17822 hard_links="nottested"
17823 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17824 # do not overwrite the value of need_locks provided by the user
17825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17826 $as_echo_n "checking if we can lock with hard links... " >&6; }
17827 hard_links=yes
17828 $RM conftest*
17829 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17830 touch conftest.a
17831 ln conftest.a conftest.b 2>&5 || hard_links=no
17832 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17834 $as_echo "$hard_links" >&6; }
17835 if test "$hard_links" = no; then
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17837 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17838 need_locks=warn
17840 else
17841 need_locks=no
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17847 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17849 runpath_var=
17850 allow_undefined_flag_GCJ=
17851 always_export_symbols_GCJ=no
17852 archive_cmds_GCJ=
17853 archive_expsym_cmds_GCJ=
17854 compiler_needs_object_GCJ=no
17855 enable_shared_with_static_runtimes_GCJ=no
17856 export_dynamic_flag_spec_GCJ=
17857 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17858 hardcode_automatic_GCJ=no
17859 hardcode_direct_GCJ=no
17860 hardcode_direct_absolute_GCJ=no
17861 hardcode_libdir_flag_spec_GCJ=
17862 hardcode_libdir_flag_spec_ld_GCJ=
17863 hardcode_libdir_separator_GCJ=
17864 hardcode_minus_L_GCJ=no
17865 hardcode_shlibpath_var_GCJ=unsupported
17866 inherit_rpath_GCJ=no
17867 link_all_deplibs_GCJ=unknown
17868 module_cmds_GCJ=
17869 module_expsym_cmds_GCJ=
17870 old_archive_from_new_cmds_GCJ=
17871 old_archive_from_expsyms_cmds_GCJ=
17872 thread_safe_flag_spec_GCJ=
17873 whole_archive_flag_spec_GCJ=
17874 # include_expsyms should be a list of space-separated symbols to be *always*
17875 # included in the symbol list
17876 include_expsyms_GCJ=
17877 # exclude_expsyms can be an extended regexp of symbols to exclude
17878 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17879 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17880 # as well as any symbol that contains `d'.
17881 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17882 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17883 # platforms (ab)use it in PIC code, but their linkers get confused if
17884 # the symbol is explicitly referenced. Since portable code cannot
17885 # rely on this symbol name, it's probably fine to never include it in
17886 # preloaded symbol tables.
17887 # Exclude shared library initialization/finalization symbols.
17888 extract_expsyms_cmds=
17890 case $host_os in
17891 cygwin* | mingw* | pw32* | cegcc*)
17892 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17893 # When not using gcc, we currently assume that we are using
17894 # Microsoft Visual C++.
17895 if test "$GCC" != yes; then
17896 with_gnu_ld=no
17899 interix*)
17900 # we just hope/assume this is gcc and not c89 (= MSVC++)
17901 with_gnu_ld=yes
17903 openbsd*)
17904 with_gnu_ld=no
17906 esac
17908 ld_shlibs_GCJ=yes
17910 # On some targets, GNU ld is compatible enough with the native linker
17911 # that we're better off using the native interface for both.
17912 lt_use_gnu_ld_interface=no
17913 if test "$with_gnu_ld" = yes; then
17914 case $host_os in
17915 aix*)
17916 # The AIX port of GNU ld has always aspired to compatibility
17917 # with the native linker. However, as the warning in the GNU ld
17918 # block says, versions before 2.19.5* couldn't really create working
17919 # shared libraries, regardless of the interface used.
17920 case `$LD -v 2>&1` in
17921 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17922 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17923 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17925 lt_use_gnu_ld_interface=yes
17927 esac
17930 lt_use_gnu_ld_interface=yes
17932 esac
17935 if test "$lt_use_gnu_ld_interface" = yes; then
17936 # If archive_cmds runs LD, not CC, wlarc should be empty
17937 wlarc='${wl}'
17939 # Set some defaults for GNU ld with shared library support. These
17940 # are reset later if shared libraries are not supported. Putting them
17941 # here allows them to be overridden if necessary.
17942 runpath_var=LD_RUN_PATH
17943 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17944 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17945 # ancient GNU ld didn't support --whole-archive et. al.
17946 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17947 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17948 else
17949 whole_archive_flag_spec_GCJ=
17951 supports_anon_versioning=no
17952 case `$LD -v 2>&1` in
17953 *GNU\ gold*) supports_anon_versioning=yes ;;
17954 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17955 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17956 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17957 *\ 2.11.*) ;; # other 2.11 versions
17958 *) supports_anon_versioning=yes ;;
17959 esac
17961 # See if GNU ld supports shared libraries.
17962 case $host_os in
17963 aix[3-9]*)
17964 # On AIX/PPC, the GNU linker is very broken
17965 if test "$host_cpu" != ia64; then
17966 ld_shlibs_GCJ=no
17967 cat <<_LT_EOF 1>&2
17969 *** Warning: the GNU linker, at least up to release 2.19, is reported
17970 *** to be unable to reliably create shared libraries on AIX.
17971 *** Therefore, libtool is disabling shared libraries support. If you
17972 *** really care for shared libraries, you may want to install binutils
17973 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17974 *** You will then need to restart the configuration process.
17976 _LT_EOF
17980 amigaos*)
17981 case $host_cpu in
17982 powerpc)
17983 # see comment about AmigaOS4 .so support
17984 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17985 archive_expsym_cmds_GCJ=''
17987 m68k)
17988 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)'
17989 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17990 hardcode_minus_L_GCJ=yes
17992 esac
17995 beos*)
17996 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17997 allow_undefined_flag_GCJ=unsupported
17998 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17999 # support --undefined. This deserves some investigation. FIXME
18000 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18001 else
18002 ld_shlibs_GCJ=no
18006 cygwin* | mingw* | pw32* | cegcc*)
18007 # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18008 # as there is no search path for DLLs.
18009 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18010 export_dynamic_flag_spec_GCJ='${wl}--export-all-symbols'
18011 allow_undefined_flag_GCJ=unsupported
18012 always_export_symbols_GCJ=no
18013 enable_shared_with_static_runtimes_GCJ=yes
18014 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18016 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18017 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18018 # If the export-symbols file already is a .def file (1st line
18019 # is EXPORTS), use it as is; otherwise, prepend...
18020 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18021 cp $export_symbols $output_objdir/$soname.def;
18022 else
18023 echo EXPORTS > $output_objdir/$soname.def;
18024 cat $export_symbols >> $output_objdir/$soname.def;
18026 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18027 else
18028 ld_shlibs_GCJ=no
18032 haiku*)
18033 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18034 link_all_deplibs_GCJ=yes
18037 interix[3-9]*)
18038 hardcode_direct_GCJ=no
18039 hardcode_shlibpath_var_GCJ=no
18040 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18041 export_dynamic_flag_spec_GCJ='${wl}-E'
18042 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18043 # Instead, shared libraries are loaded at an image base (0x10000000 by
18044 # default) and relocated if they conflict, which is a slow very memory
18045 # consuming and fragmenting process. To avoid this, we pick a random,
18046 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18047 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18048 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'
18049 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'
18052 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
18053 tmp_diet=no
18054 if test "$host_os" = linux-dietlibc; then
18055 case $cc_basename in
18056 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
18057 esac
18059 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
18060 && test "$tmp_diet" = no
18061 then
18062 tmp_addflag=
18063 tmp_sharedflag='-shared'
18064 case $cc_basename,$host_cpu in
18065 pgcc*) # Portland Group C compiler
18066 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
18067 tmp_addflag=' $pic_flag'
18069 pgf77* | pgf90* | pgf95* | pgfortran*)
18070 # Portland Group f77 and f90 compilers
18071 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'
18072 tmp_addflag=' $pic_flag -Mnomain' ;;
18073 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18074 tmp_addflag=' -i_dynamic' ;;
18075 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18076 tmp_addflag=' -i_dynamic -nofor_main' ;;
18077 ifc* | ifort*) # Intel Fortran compiler
18078 tmp_addflag=' -nofor_main' ;;
18079 lf95*) # Lahey Fortran 8.1
18080 whole_archive_flag_spec_GCJ=
18081 tmp_sharedflag='--shared' ;;
18082 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
18083 tmp_sharedflag='-qmkshrobj'
18084 tmp_addflag= ;;
18085 nvcc*) # Cuda Compiler Driver 2.2
18086 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'
18087 compiler_needs_object_GCJ=yes
18089 esac
18090 case `$CC -V 2>&1 | sed 5q` in
18091 *Sun\ C*) # Sun C 5.9
18092 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'
18093 compiler_needs_object_GCJ=yes
18094 tmp_sharedflag='-G' ;;
18095 *Sun\ F*) # Sun Fortran 8.3
18096 tmp_sharedflag='-G' ;;
18097 esac
18098 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18100 if test "x$supports_anon_versioning" = xyes; then
18101 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18102 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18103 echo "local: *; };" >> $output_objdir/$libname.ver~
18104 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18107 case $cc_basename in
18108 xlf* | bgf* | bgxlf* | mpixlf*)
18109 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
18110 whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
18111 hardcode_libdir_flag_spec_GCJ=
18112 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18113 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
18114 if test "x$supports_anon_versioning" = xyes; then
18115 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18116 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18117 echo "local: *; };" >> $output_objdir/$libname.ver~
18118 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
18121 esac
18122 else
18123 ld_shlibs_GCJ=no
18127 netbsd*)
18128 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18129 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18130 wlarc=
18131 else
18132 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18133 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18137 solaris*)
18138 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
18139 ld_shlibs_GCJ=no
18140 cat <<_LT_EOF 1>&2
18142 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18143 *** create shared libraries on Solaris systems. Therefore, libtool
18144 *** is disabling shared libraries support. We urge you to upgrade GNU
18145 *** binutils to release 2.9.1 or newer. Another option is to modify
18146 *** your PATH or compiler configuration so that the native linker is
18147 *** used, and then restart.
18149 _LT_EOF
18150 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18151 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18152 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18153 else
18154 ld_shlibs_GCJ=no
18158 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18159 case `$LD -v 2>&1` in
18160 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18161 ld_shlibs_GCJ=no
18162 cat <<_LT_EOF 1>&2
18164 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18165 *** reliably create shared libraries on SCO systems. Therefore, libtool
18166 *** is disabling shared libraries support. We urge you to upgrade GNU
18167 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18168 *** your PATH or compiler configuration so that the native linker is
18169 *** used, and then restart.
18171 _LT_EOF
18174 # For security reasons, it is highly recommended that you always
18175 # use absolute paths for naming shared libraries, and exclude the
18176 # DT_RUNPATH tag from executables and libraries. But doing so
18177 # requires that you compile everything twice, which is a pain.
18178 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18179 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18180 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18181 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18182 else
18183 ld_shlibs_GCJ=no
18186 esac
18189 sunos4*)
18190 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18191 wlarc=
18192 hardcode_direct_GCJ=yes
18193 hardcode_shlibpath_var_GCJ=no
18197 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18198 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18199 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18200 else
18201 ld_shlibs_GCJ=no
18204 esac
18206 if test "$ld_shlibs_GCJ" = no; then
18207 runpath_var=
18208 hardcode_libdir_flag_spec_GCJ=
18209 export_dynamic_flag_spec_GCJ=
18210 whole_archive_flag_spec_GCJ=
18212 else
18213 # PORTME fill in a description of your system's linker (not GNU ld)
18214 case $host_os in
18215 aix3*)
18216 allow_undefined_flag_GCJ=unsupported
18217 always_export_symbols_GCJ=yes
18218 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'
18219 # Note: this linker hardcodes the directories in LIBPATH if there
18220 # are no directories specified by -L.
18221 hardcode_minus_L_GCJ=yes
18222 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18223 # Neither direct hardcoding nor static linking is supported with a
18224 # broken collect2.
18225 hardcode_direct_GCJ=unsupported
18229 aix[4-9]*)
18230 if test "$host_cpu" = ia64; then
18231 # On IA64, the linker does run time linking by default, so we don't
18232 # have to do anything special.
18233 aix_use_runtimelinking=no
18234 exp_sym_flag='-Bexport'
18235 no_entry_flag=""
18236 else
18237 # If we're using GNU nm, then we don't want the "-C" option.
18238 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18239 # Also, AIX nm treats weak defined symbols like other global
18240 # defined symbols, whereas GNU nm marks them as "W".
18241 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18242 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'
18243 else
18244 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'
18246 aix_use_runtimelinking=no
18248 # Test if we are trying to use run time linking or normal
18249 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18250 # need to do runtime linking.
18251 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18252 for ld_flag in $LDFLAGS; do
18253 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18254 aix_use_runtimelinking=yes
18255 break
18257 done
18259 esac
18261 exp_sym_flag='-bexport'
18262 no_entry_flag='-bnoentry'
18265 # When large executables or shared objects are built, AIX ld can
18266 # have problems creating the table of contents. If linking a library
18267 # or program results in "error TOC overflow" add -mminimal-toc to
18268 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18269 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18271 archive_cmds_GCJ=''
18272 hardcode_direct_GCJ=yes
18273 hardcode_direct_absolute_GCJ=yes
18274 hardcode_libdir_separator_GCJ=':'
18275 link_all_deplibs_GCJ=yes
18276 file_list_spec_GCJ='${wl}-f,'
18278 if test "$GCC" = yes; then
18279 case $host_os in aix4.[012]|aix4.[012].*)
18280 # We only want to do this on AIX 4.2 and lower, the check
18281 # below for broken collect2 doesn't work under 4.3+
18282 collect2name=`${CC} -print-prog-name=collect2`
18283 if test -f "$collect2name" &&
18284 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18285 then
18286 # We have reworked collect2
18288 else
18289 # We have old collect2
18290 hardcode_direct_GCJ=unsupported
18291 # It fails to find uninstalled libraries when the uninstalled
18292 # path is not listed in the libpath. Setting hardcode_minus_L
18293 # to unsupported forces relinking
18294 hardcode_minus_L_GCJ=yes
18295 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18296 hardcode_libdir_separator_GCJ=
18299 esac
18300 shared_flag='-shared'
18301 if test "$aix_use_runtimelinking" = yes; then
18302 shared_flag="$shared_flag "'${wl}-G'
18304 else
18305 # not using gcc
18306 if test "$host_cpu" = ia64; then
18307 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18308 # chokes on -Wl,-G. The following line is correct:
18309 shared_flag='-G'
18310 else
18311 if test "$aix_use_runtimelinking" = yes; then
18312 shared_flag='${wl}-G'
18313 else
18314 shared_flag='${wl}-bM:SRE'
18319 export_dynamic_flag_spec_GCJ='${wl}-bexpall'
18320 # It seems that -bexpall does not export symbols beginning with
18321 # underscore (_), so it is better to generate a list of symbols to export.
18322 always_export_symbols_GCJ=yes
18323 if test "$aix_use_runtimelinking" = yes; then
18324 # Warning - without using the other runtime loading flags (-brtl),
18325 # -berok will link without error, but may produce a broken library.
18326 allow_undefined_flag_GCJ='-berok'
18327 # Determine the default libpath from the value encoded in an
18328 # empty executable.
18329 if test x$gcc_no_link = xyes; then
18330 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18333 /* end confdefs.h. */
18336 main ()
18340 return 0;
18342 _ACEOF
18343 if ac_fn_c_try_link "$LINENO"; then :
18345 lt_aix_libpath_sed='
18346 /Import File Strings/,/^$/ {
18347 /^0/ {
18348 s/^0 *\(.*\)$/\1/
18352 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18353 # Check for a 64-bit object if we didn't find anything.
18354 if test -z "$aix_libpath"; then
18355 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18358 rm -f core conftest.err conftest.$ac_objext \
18359 conftest$ac_exeext conftest.$ac_ext
18360 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18362 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18363 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"
18364 else
18365 if test "$host_cpu" = ia64; then
18366 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18367 allow_undefined_flag_GCJ="-z nodefs"
18368 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"
18369 else
18370 # Determine the default libpath from the value encoded in an
18371 # empty executable.
18372 if test x$gcc_no_link = xyes; then
18373 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18376 /* end confdefs.h. */
18379 main ()
18383 return 0;
18385 _ACEOF
18386 if ac_fn_c_try_link "$LINENO"; then :
18388 lt_aix_libpath_sed='
18389 /Import File Strings/,/^$/ {
18390 /^0/ {
18391 s/^0 *\(.*\)$/\1/
18395 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18396 # Check for a 64-bit object if we didn't find anything.
18397 if test -z "$aix_libpath"; then
18398 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18401 rm -f core conftest.err conftest.$ac_objext \
18402 conftest$ac_exeext conftest.$ac_ext
18403 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18405 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18406 # Warning - without using the other run time loading flags,
18407 # -berok will link without error, but may produce a broken library.
18408 no_undefined_flag_GCJ=' ${wl}-bernotok'
18409 allow_undefined_flag_GCJ=' ${wl}-berok'
18410 if test "$with_gnu_ld" = yes; then
18411 # We only use this code for GNU lds that support --whole-archive.
18412 whole_archive_flag_spec_GCJ='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18413 else
18414 # Exported symbols can be pulled into shared objects from archives
18415 whole_archive_flag_spec_GCJ='$convenience'
18417 archive_cmds_need_lc_GCJ=yes
18418 # This is similar to how AIX traditionally builds its shared libraries.
18419 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'
18424 amigaos*)
18425 case $host_cpu in
18426 powerpc)
18427 # see comment about AmigaOS4 .so support
18428 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18429 archive_expsym_cmds_GCJ=''
18431 m68k)
18432 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)'
18433 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18434 hardcode_minus_L_GCJ=yes
18436 esac
18439 bsdi[45]*)
18440 export_dynamic_flag_spec_GCJ=-rdynamic
18443 cygwin* | mingw* | pw32* | cegcc*)
18444 # When not using gcc, we currently assume that we are using
18445 # Microsoft Visual C++.
18446 # hardcode_libdir_flag_spec is actually meaningless, as there is
18447 # no search path for DLLs.
18448 hardcode_libdir_flag_spec_GCJ=' '
18449 allow_undefined_flag_GCJ=unsupported
18450 # Tell ltmain to make .lib files, not .a files.
18451 libext=lib
18452 # Tell ltmain to make .dll files, not .so files.
18453 shrext_cmds=".dll"
18454 # FIXME: Setting linknames here is a bad hack.
18455 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18456 # The linker will automatically build a .lib file if we build a DLL.
18457 old_archive_from_new_cmds_GCJ='true'
18458 # FIXME: Should let the user specify the lib program.
18459 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18460 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18461 enable_shared_with_static_runtimes_GCJ=yes
18464 darwin* | rhapsody*)
18467 archive_cmds_need_lc_GCJ=no
18468 hardcode_direct_GCJ=no
18469 hardcode_automatic_GCJ=yes
18470 hardcode_shlibpath_var_GCJ=unsupported
18471 if test "$lt_cv_ld_force_load" = "yes"; then
18472 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\"`'
18473 else
18474 whole_archive_flag_spec_GCJ=''
18476 link_all_deplibs_GCJ=yes
18477 allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
18478 case $cc_basename in
18479 ifort*) _lt_dar_can_shared=yes ;;
18480 *) _lt_dar_can_shared=$GCC ;;
18481 esac
18482 if test "$_lt_dar_can_shared" = "yes"; then
18483 output_verbose_link_cmd=func_echo_all
18484 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}"
18485 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18486 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}"
18487 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}"
18489 else
18490 ld_shlibs_GCJ=no
18495 dgux*)
18496 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18497 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18498 hardcode_shlibpath_var_GCJ=no
18501 freebsd1*)
18502 ld_shlibs_GCJ=no
18505 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18506 # support. Future versions do this automatically, but an explicit c++rt0.o
18507 # does not break anything, and helps significantly (at the cost of a little
18508 # extra space).
18509 freebsd2.2*)
18510 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18511 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18512 hardcode_direct_GCJ=yes
18513 hardcode_shlibpath_var_GCJ=no
18516 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18517 freebsd2*)
18518 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18519 hardcode_direct_GCJ=yes
18520 hardcode_minus_L_GCJ=yes
18521 hardcode_shlibpath_var_GCJ=no
18524 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18525 freebsd* | dragonfly*)
18526 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18527 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18528 hardcode_direct_GCJ=yes
18529 hardcode_shlibpath_var_GCJ=no
18532 hpux9*)
18533 if test "$GCC" = yes; then
18534 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'
18535 else
18536 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'
18538 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18539 hardcode_libdir_separator_GCJ=:
18540 hardcode_direct_GCJ=yes
18542 # hardcode_minus_L: Not really in the search PATH,
18543 # but as the default location of the library.
18544 hardcode_minus_L_GCJ=yes
18545 export_dynamic_flag_spec_GCJ='${wl}-E'
18548 hpux10*)
18549 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18550 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18551 else
18552 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18554 if test "$with_gnu_ld" = no; then
18555 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18556 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18557 hardcode_libdir_separator_GCJ=:
18558 hardcode_direct_GCJ=yes
18559 hardcode_direct_absolute_GCJ=yes
18560 export_dynamic_flag_spec_GCJ='${wl}-E'
18561 # hardcode_minus_L: Not really in the search PATH,
18562 # but as the default location of the library.
18563 hardcode_minus_L_GCJ=yes
18567 hpux11*)
18568 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18569 case $host_cpu in
18570 hppa*64*)
18571 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18573 ia64*)
18574 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18577 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18579 esac
18580 else
18581 case $host_cpu in
18582 hppa*64*)
18583 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18585 ia64*)
18586 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18589 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18591 esac
18593 if test "$with_gnu_ld" = no; then
18594 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18595 hardcode_libdir_separator_GCJ=:
18597 case $host_cpu in
18598 hppa*64*|ia64*)
18599 hardcode_direct_GCJ=no
18600 hardcode_shlibpath_var_GCJ=no
18603 hardcode_direct_GCJ=yes
18604 hardcode_direct_absolute_GCJ=yes
18605 export_dynamic_flag_spec_GCJ='${wl}-E'
18607 # hardcode_minus_L: Not really in the search PATH,
18608 # but as the default location of the library.
18609 hardcode_minus_L_GCJ=yes
18611 esac
18615 irix5* | irix6* | nonstopux*)
18616 if test "$GCC" = yes; then
18617 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'
18618 # Try to use the -exported_symbol ld option, if it does not
18619 # work, assume that -exports_file does not work either and
18620 # implicitly export all symbols.
18621 save_LDFLAGS="$LDFLAGS"
18622 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18623 if test x$gcc_no_link = xyes; then
18624 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18627 /* end confdefs.h. */
18628 int foo(void) {}
18629 _ACEOF
18630 if ac_fn_c_try_link "$LINENO"; then :
18631 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'
18634 rm -f core conftest.err conftest.$ac_objext \
18635 conftest$ac_exeext conftest.$ac_ext
18636 LDFLAGS="$save_LDFLAGS"
18637 else
18638 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'
18639 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'
18641 archive_cmds_need_lc_GCJ='no'
18642 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18643 hardcode_libdir_separator_GCJ=:
18644 inherit_rpath_GCJ=yes
18645 link_all_deplibs_GCJ=yes
18648 netbsd*)
18649 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18650 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18651 else
18652 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18654 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18655 hardcode_direct_GCJ=yes
18656 hardcode_shlibpath_var_GCJ=no
18659 newsos6)
18660 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18661 hardcode_direct_GCJ=yes
18662 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18663 hardcode_libdir_separator_GCJ=:
18664 hardcode_shlibpath_var_GCJ=no
18667 *nto* | *qnx*)
18670 openbsd*)
18671 if test -f /usr/libexec/ld.so; then
18672 hardcode_direct_GCJ=yes
18673 hardcode_shlibpath_var_GCJ=no
18674 hardcode_direct_absolute_GCJ=yes
18675 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18676 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18677 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18678 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18679 export_dynamic_flag_spec_GCJ='${wl}-E'
18680 else
18681 case $host_os in
18682 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18683 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18684 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18687 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18688 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18690 esac
18692 else
18693 ld_shlibs_GCJ=no
18697 os2*)
18698 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18699 hardcode_minus_L_GCJ=yes
18700 allow_undefined_flag_GCJ=unsupported
18701 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'
18702 old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18705 osf3*)
18706 if test "$GCC" = yes; then
18707 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18708 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'
18709 else
18710 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18711 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'
18713 archive_cmds_need_lc_GCJ='no'
18714 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18715 hardcode_libdir_separator_GCJ=:
18718 osf4* | osf5*) # as osf3* with the addition of -msym flag
18719 if test "$GCC" = yes; then
18720 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18721 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'
18722 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18723 else
18724 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18725 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'
18726 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~
18727 $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'
18729 # Both c and cxx compiler support -rpath directly
18730 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18732 archive_cmds_need_lc_GCJ='no'
18733 hardcode_libdir_separator_GCJ=:
18736 solaris*)
18737 no_undefined_flag_GCJ=' -z defs'
18738 if test "$GCC" = yes; then
18739 wlarc='${wl}'
18740 archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18741 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18742 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18743 else
18744 case `$CC -V 2>&1` in
18745 *"Compilers 5.0"*)
18746 wlarc=''
18747 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18748 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18749 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18752 wlarc='${wl}'
18753 archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18754 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18755 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18757 esac
18759 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18760 hardcode_shlibpath_var_GCJ=no
18761 case $host_os in
18762 solaris2.[0-5] | solaris2.[0-5].*) ;;
18764 # The compiler driver will combine and reorder linker options,
18765 # but understands `-z linker_flag'. GCC discards it without `$wl',
18766 # but is careful enough not to reorder.
18767 # Supported since Solaris 2.6 (maybe 2.5.1?)
18768 if test "$GCC" = yes; then
18769 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18770 else
18771 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18774 esac
18775 link_all_deplibs_GCJ=yes
18778 sunos4*)
18779 if test "x$host_vendor" = xsequent; then
18780 # Use $CC to link under sequent, because it throws in some extra .o
18781 # files that make .init and .fini sections work.
18782 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18783 else
18784 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18786 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18787 hardcode_direct_GCJ=yes
18788 hardcode_minus_L_GCJ=yes
18789 hardcode_shlibpath_var_GCJ=no
18792 sysv4)
18793 case $host_vendor in
18794 sni)
18795 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18796 hardcode_direct_GCJ=yes # is this really true???
18798 siemens)
18799 ## LD is ld it makes a PLAMLIB
18800 ## CC just makes a GrossModule.
18801 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18802 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18803 hardcode_direct_GCJ=no
18805 motorola)
18806 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18807 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18809 esac
18810 runpath_var='LD_RUN_PATH'
18811 hardcode_shlibpath_var_GCJ=no
18814 sysv4.3*)
18815 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18816 hardcode_shlibpath_var_GCJ=no
18817 export_dynamic_flag_spec_GCJ='-Bexport'
18820 sysv4*MP*)
18821 if test -d /usr/nec; then
18822 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18823 hardcode_shlibpath_var_GCJ=no
18824 runpath_var=LD_RUN_PATH
18825 hardcode_runpath_var=yes
18826 ld_shlibs_GCJ=yes
18830 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18831 no_undefined_flag_GCJ='${wl}-z,text'
18832 archive_cmds_need_lc_GCJ=no
18833 hardcode_shlibpath_var_GCJ=no
18834 runpath_var='LD_RUN_PATH'
18836 if test "$GCC" = yes; then
18837 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18838 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18839 else
18840 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18841 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18845 sysv5* | sco3.2v5* | sco5v6*)
18846 # Note: We can NOT use -z defs as we might desire, because we do not
18847 # link with -lc, and that would cause any symbols used from libc to
18848 # always be unresolved, which means just about no library would
18849 # ever link correctly. If we're not using GNU ld we use -z text
18850 # though, which does catch some bad symbols but isn't as heavy-handed
18851 # as -z defs.
18852 no_undefined_flag_GCJ='${wl}-z,text'
18853 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18854 archive_cmds_need_lc_GCJ=no
18855 hardcode_shlibpath_var_GCJ=no
18856 hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
18857 hardcode_libdir_separator_GCJ=':'
18858 link_all_deplibs_GCJ=yes
18859 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18860 runpath_var='LD_RUN_PATH'
18862 if test "$GCC" = yes; then
18863 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18864 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18865 else
18866 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18867 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18871 uts4*)
18872 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18873 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18874 hardcode_shlibpath_var_GCJ=no
18878 ld_shlibs_GCJ=no
18880 esac
18882 if test x$host_vendor = xsni; then
18883 case $host in
18884 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18885 export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
18887 esac
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
18892 $as_echo "$ld_shlibs_GCJ" >&6; }
18893 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18895 with_gnu_ld_GCJ=$with_gnu_ld
18903 # Do we need to explicitly link libc?
18905 case "x$archive_cmds_need_lc_GCJ" in
18906 x|xyes)
18907 # Assume -lc should be added
18908 archive_cmds_need_lc_GCJ=yes
18910 if test "$enable_shared" = yes && test "$GCC" = yes; then
18911 case $archive_cmds_GCJ in
18912 *'~'*)
18913 # FIXME: we may have to deal with multi-command sequences.
18915 '$CC '*)
18916 # Test whether the compiler implicitly links with -lc since on some
18917 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18918 # to ld, don't add -lc before -lgcc.
18919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18920 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18921 if test "${lt_cv_archive_cmds_need_lc_GCJ+set}" = set; then :
18922 $as_echo_n "(cached) " >&6
18923 else
18924 $RM conftest*
18925 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18927 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18928 (eval $ac_compile) 2>&5
18929 ac_status=$?
18930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18931 test $ac_status = 0; } 2>conftest.err; then
18932 soname=conftest
18933 lib=conftest
18934 libobjs=conftest.$ac_objext
18935 deplibs=
18936 wl=$lt_prog_compiler_wl_GCJ
18937 pic_flag=$lt_prog_compiler_pic_GCJ
18938 compiler_flags=-v
18939 linker_flags=-v
18940 verstring=
18941 output_objdir=.
18942 libname=conftest
18943 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18944 allow_undefined_flag_GCJ=
18945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18946 (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18947 ac_status=$?
18948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18949 test $ac_status = 0; }
18950 then
18951 lt_cv_archive_cmds_need_lc_GCJ=no
18952 else
18953 lt_cv_archive_cmds_need_lc_GCJ=yes
18955 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18956 else
18957 cat conftest.err 1>&5
18959 $RM conftest*
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GCJ" >&5
18963 $as_echo "$lt_cv_archive_cmds_need_lc_GCJ" >&6; }
18964 archive_cmds_need_lc_GCJ=$lt_cv_archive_cmds_need_lc_GCJ
18966 esac
18969 esac
19034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19035 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19036 hardcode_action_GCJ=
19037 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
19038 test -n "$runpath_var_GCJ" ||
19039 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19041 # We can hardcode non-existent directories.
19042 if test "$hardcode_direct_GCJ" != no &&
19043 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19044 # have to relink, otherwise we might link with an installed library
19045 # when we should be linking with a yet-to-be-installed one
19046 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19047 test "$hardcode_minus_L_GCJ" != no; then
19048 # Linking always hardcodes the temporary library directory.
19049 hardcode_action_GCJ=relink
19050 else
19051 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19052 hardcode_action_GCJ=immediate
19054 else
19055 # We cannot hardcode anything, or else we can only hardcode existing
19056 # directories.
19057 hardcode_action_GCJ=unsupported
19059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
19060 $as_echo "$hardcode_action_GCJ" >&6; }
19062 if test "$hardcode_action_GCJ" = relink ||
19063 test "$inherit_rpath_GCJ" = yes; then
19064 # Fast installation is not supported
19065 enable_fast_install=no
19066 elif test "$shlibpath_overrides_runpath" = yes ||
19067 test "$enable_shared" = no; then
19068 # Fast installation is not necessary
19069 enable_fast_install=needless
19080 compiler_GCJ=${GCJ-gcj}
19081 ac_ext=c
19082 ac_cpp='$CPP $CPPFLAGS'
19083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19088 if test "x$CC" != xcc; then
19089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
19090 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
19091 else
19092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
19093 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
19095 set dummy $CC; ac_cc=`$as_echo "$2" |
19096 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19097 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
19098 $as_echo_n "(cached) " >&6
19099 else
19100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19101 /* end confdefs.h. */
19104 main ()
19108 return 0;
19110 _ACEOF
19111 # Make sure it works both with $CC and with simple cc.
19112 # We do the test twice because some compilers refuse to overwrite an
19113 # existing .o file with -o, though they will create one.
19114 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19115 rm -f conftest2.*
19116 if { { case "(($ac_try" in
19117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19118 *) ac_try_echo=$ac_try;;
19119 esac
19120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19121 $as_echo "$ac_try_echo"; } >&5
19122 (eval "$ac_try") 2>&5
19123 ac_status=$?
19124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19125 test $ac_status = 0; } &&
19126 test -f conftest2.$ac_objext && { { case "(($ac_try" in
19127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19128 *) ac_try_echo=$ac_try;;
19129 esac
19130 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19131 $as_echo "$ac_try_echo"; } >&5
19132 (eval "$ac_try") 2>&5
19133 ac_status=$?
19134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19135 test $ac_status = 0; };
19136 then
19137 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
19138 if test "x$CC" != xcc; then
19139 # Test first that cc exists at all.
19140 if { ac_try='cc -c conftest.$ac_ext >&5'
19141 { { case "(($ac_try" in
19142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143 *) ac_try_echo=$ac_try;;
19144 esac
19145 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19146 $as_echo "$ac_try_echo"; } >&5
19147 (eval "$ac_try") 2>&5
19148 ac_status=$?
19149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19150 test $ac_status = 0; }; }; then
19151 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19152 rm -f conftest2.*
19153 if { { case "(($ac_try" in
19154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19155 *) ac_try_echo=$ac_try;;
19156 esac
19157 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19158 $as_echo "$ac_try_echo"; } >&5
19159 (eval "$ac_try") 2>&5
19160 ac_status=$?
19161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19162 test $ac_status = 0; } &&
19163 test -f conftest2.$ac_objext && { { case "(($ac_try" in
19164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19165 *) ac_try_echo=$ac_try;;
19166 esac
19167 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19168 $as_echo "$ac_try_echo"; } >&5
19169 (eval "$ac_try") 2>&5
19170 ac_status=$?
19171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19172 test $ac_status = 0; };
19173 then
19174 # cc works too.
19176 else
19177 # cc exists but doesn't like -o.
19178 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19182 else
19183 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19185 rm -f core conftest*
19188 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
19189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19190 $as_echo "yes" >&6; }
19191 else
19192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19193 $as_echo "no" >&6; }
19195 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
19199 # FIXME: we rely on the cache variable name because
19200 # there is no other way.
19201 set dummy $CC
19202 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19203 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
19204 if test "$am_t" != yes; then
19205 # Losing compiler, so override with the script.
19206 # FIXME: It is wrong to rewrite CC.
19207 # But if we don't then we get into trouble of one sort or another.
19208 # A longer-term fix would be to have automake use am__CC in this case,
19209 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19210 CC="$am_aux_dir/compile $CC"
19217 subdirs="$subdirs classpath libltdl"
19220 # The -no-testsuite modules omit the test subdir.
19221 if test -d $srcdir/testsuite; then
19222 TESTSUBDIR_TRUE=
19223 TESTSUBDIR_FALSE='#'
19224 else
19225 TESTSUBDIR_TRUE='#'
19226 TESTSUBDIR_FALSE=
19230 # Should the runtime set system properties by examining the
19231 # environment variable GCJ_PROPERTIES?
19232 # Check whether --enable-getenv-properties was given.
19233 if test "${enable_getenv_properties+set}" = set; then :
19234 enableval=$enable_getenv_properties;
19238 # Whether GCJ_PROPERTIES is used depends on the target.
19239 if test -z "$enable_getenv_properties"; then
19240 enable_getenv_properties=${enable_getenv_properties_default-yes}
19242 if test "$enable_getenv_properties" = no; then
19244 $as_echo "#define DISABLE_GETENV_PROPERTIES 1" >>confdefs.h
19248 # Whether we should use arguments to main()
19249 if test -z "$enable_main_args"; then
19250 enable_main_args=${enable_main_args_default-yes}
19252 if test "$enable_main_args" = no; then
19254 $as_echo "#define DISABLE_MAIN_ARGS 1" >>confdefs.h
19259 # Should we use hashtable-based synchronization?
19260 # Currently works only for Linux X86/ia64
19261 # Typically faster and more space-efficient
19262 # Check whether --enable-hash-synchronization was given.
19263 if test "${enable_hash_synchronization+set}" = set; then :
19264 enableval=$enable_hash_synchronization;
19268 if test -z "$enable_hash_synchronization"; then
19269 enable_hash_synchronization=$enable_hash_synchronization_default
19273 install_ecj_jar=no
19274 ECJ_BUILD_JAR=
19275 ECJ_JAR=
19277 # Check whether --with-ecj-jar was given.
19278 if test "${with_ecj_jar+set}" = set; then :
19279 withval=$with_ecj_jar; ECJ_JAR=$withval
19280 else
19281 if test -f $multi_basedir/ecj.jar; then
19282 ECJ_BUILD_JAR=$multi_basedir/ecj.jar
19283 ECJ_JAR='$(jardir)/ecj.jar'
19284 install_ecj_jar=yes
19290 if test "$ECJ_JAR" != ""; then
19291 BUILD_ECJ1_TRUE=
19292 BUILD_ECJ1_FALSE='#'
19293 else
19294 BUILD_ECJ1_TRUE='#'
19295 BUILD_ECJ1_FALSE=
19298 if test $install_ecj_jar = yes; then
19299 INSTALL_ECJ_JAR_TRUE=
19300 INSTALL_ECJ_JAR_FALSE='#'
19301 else
19302 INSTALL_ECJ_JAR_TRUE='#'
19303 INSTALL_ECJ_JAR_FALSE=
19308 # Check whether --with-java-home was given.
19309 if test "${with_java_home+set}" = set; then :
19310 withval=$with_java_home; JAVA_HOME="${withval}"
19311 else
19312 JAVA_HOME=""
19315 if test ! -z "$JAVA_HOME"; then
19316 JAVA_HOME_SET_TRUE=
19317 JAVA_HOME_SET_FALSE='#'
19318 else
19319 JAVA_HOME_SET_TRUE='#'
19320 JAVA_HOME_SET_FALSE=
19325 suppress_libgcj_bc=no
19326 # Check whether --enable-libgcj-bc was given.
19327 if test "${enable_libgcj_bc+set}" = set; then :
19328 enableval=$enable_libgcj_bc; if test "$enable_libgcj_bc" = "no"; then
19329 suppress_libgcj_bc=yes
19333 if test "$suppress_libgcj_bc" = "yes"; then
19334 SUPPRESS_LIBGCJ_BC_TRUE=
19335 SUPPRESS_LIBGCJ_BC_FALSE='#'
19336 else
19337 SUPPRESS_LIBGCJ_BC_TRUE='#'
19338 SUPPRESS_LIBGCJ_BC_FALSE=
19342 build_libgcj_reduced_reflection=no
19343 # Check whether --enable-reduced-reflection was given.
19344 if test "${enable_reduced_reflection+set}" = set; then :
19345 enableval=$enable_reduced_reflection; if test "$enable_reduced_reflection" = "yes"; then
19346 build_libgcj_reduced_reflection=yes
19350 if test "$build_libgcj_reduced_reflection" = "yes"; then
19351 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE=
19352 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE='#'
19353 else
19354 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE='#'
19355 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE=
19359 # What is the native OS API for MinGW?
19361 # Check whether --with-win32-nlsapi was given.
19362 if test "${with_win32_nlsapi+set}" = set; then :
19363 withval=$with_win32_nlsapi; case "${withval}" in
19364 ansi) with_win32_nlsapi=ansi ;;
19365 unicows) with_win32_nlsapi=unicows ;;
19366 unicode) with_win32_nlsapi=unicode ;;
19367 *) as_fn_error "Bad value ${withval} for --with-win32-nlsapi." "$LINENO" 5 ;;
19368 esac
19369 else
19370 with_win32_nlsapi=ansi
19374 case "${with_win32_nlsapi}" in
19375 unicows | unicode)
19377 $as_echo "#define MINGW_LIBGCJ_UNICODE 1" >>confdefs.h
19380 esac
19382 # configure.host sets slow_pthread_self if the synchronization code should
19383 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
19384 if test "${slow_pthread_self}" = "yes"; then
19386 $as_echo "#define SLOW_PTHREAD_SELF 1" >>confdefs.h
19390 # Check for gc debugging. This option is handled both here and in the GC.
19391 # Check whether --enable-gc-debug was given.
19392 if test "${enable_gc_debug+set}" = set; then :
19393 enableval=$enable_gc_debug; if test "$enable_gc_debug" = "yes"; then
19395 $as_echo "#define LIBGCJ_GC_DEBUG 1" >>confdefs.h
19401 # See if the user has the interpreter included.
19402 # Check whether --enable-interpreter was given.
19403 if test "${enable_interpreter+set}" = set; then :
19404 enableval=$enable_interpreter; if test "$enable_interpreter" = yes; then
19405 # This can also be set in configure.host.
19406 libgcj_interpreter=yes
19407 elif test "$enable_interpreter" = no; then
19408 libgcj_interpreter=no
19413 if test "$libgcj_interpreter" = yes; then
19415 $as_echo "#define INTERPRETER 1" >>confdefs.h
19418 INTERPRETER="$libgcj_interpreter"
19420 if test "$libgcj_interpreter" = yes; then
19421 INTERPRETER_TRUE=
19422 INTERPRETER_FALSE='#'
19423 else
19424 INTERPRETER_TRUE='#'
19425 INTERPRETER_FALSE=
19429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception model to use" >&5
19430 $as_echo_n "checking for exception model to use... " >&6; }
19431 ac_ext=cpp
19432 ac_cpp='$CXXCPP $CPPFLAGS'
19433 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19434 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19435 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19437 # Check whether --enable-sjlj-exceptions was given.
19438 if test "${enable_sjlj_exceptions+set}" = set; then :
19439 enableval=$enable_sjlj_exceptions; :
19440 else
19441 cat > conftest.$ac_ext << EOF
19442 #line 19442 "configure"
19443 struct S { ~S(); };
19444 void bar();
19445 void foo()
19447 S s;
19448 bar();
19451 old_CXXFLAGS="$CXXFLAGS"
19452 CXXFLAGS=-S
19453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19454 (eval $ac_compile) 2>&5
19455 ac_status=$?
19456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19457 test $ac_status = 0; }; then
19458 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
19459 enable_sjlj_exceptions=yes
19460 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
19461 enable_sjlj_exceptions=no
19462 elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then
19463 # ARM EH ABI.
19464 enable_sjlj_exceptions=no
19467 CXXFLAGS="$old_CXXFLAGS"
19468 rm -f conftest*
19471 if test x$enable_sjlj_exceptions = xyes; then
19473 $as_echo "#define SJLJ_EXCEPTIONS 1" >>confdefs.h
19475 ac_exception_model_name=sjlj
19476 elif test x$enable_sjlj_exceptions = xno; then
19477 ac_exception_model_name="call frame"
19478 else
19479 as_fn_error "unable to detect exception model" "$LINENO" 5
19481 ac_ext=c
19482 ac_cpp='$CPP $CPPFLAGS'
19483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_exception_model_name" >&5
19488 $as_echo "$ac_exception_model_name" >&6; }
19490 # If we are non using SJLJ exceptions, and this host does not have support
19491 # for unwinding from a signal handler, enable checked dereferences and divides.
19492 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
19493 CHECKREFSPEC=-fcheck-references
19494 DIVIDESPEC=-fuse-divide-subroutine
19495 EXCEPTIONSPEC=
19498 # See if the user wants to disable java.net. This is the mildly
19499 # ugly way that we admit that target-side configuration sucks.
19500 # Check whether --enable-java-net was given.
19501 if test "${enable_java_net+set}" = set; then :
19502 enableval=$enable_java_net;
19506 # Whether java.net is built by default can depend on the target.
19507 if test -z "$enable_java_net"; then
19508 enable_java_net=${enable_java_net_default-yes}
19510 if test "$enable_java_net" = no; then
19512 $as_echo "#define DISABLE_JAVA_NET 1" >>confdefs.h
19516 # See if the user wants to configure without libffi. Some
19517 # architectures don't support it, and default values are set in
19518 # configure.host.
19520 # Check whether --with-libffi was given.
19521 if test "${with_libffi+set}" = set; then :
19522 withval=$with_libffi; :
19523 else
19524 with_libffi=${with_libffi_default-yes}
19528 LIBFFI=
19529 LIBFFIINCS=
19530 if test "$with_libffi" != no; then
19532 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
19534 LIBFFI=../libffi/libffi_convenience.la
19535 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
19540 # See if the user wants to disable JVMPI support.
19541 # Check whether --enable-jvmpi was given.
19542 if test "${enable_jvmpi+set}" = set; then :
19543 enableval=$enable_jvmpi;
19547 if test "$enable_jvmpi" != no; then
19549 $as_echo "#define ENABLE_JVMPI 1" >>confdefs.h
19553 # If the target is an eCos system, use the appropriate eCos
19554 # I/O routines.
19555 # FIXME: this should not be a local option but a global target
19556 # system; at present there is no eCos target.
19557 TARGET_ECOS=${PROCESS-"no"}
19559 # Check whether --with-ecos was given.
19560 if test "${with_ecos+set}" = set; then :
19561 withval=$with_ecos; TARGET_ECOS="$with_ecos"
19566 case "$TARGET_ECOS" in
19567 no) case "$host" in
19568 *mingw*)
19569 PLATFORM=Win32
19570 PLATFORMNET=Win32
19571 PLATFORMH=win32.h
19573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'ld' is at least 2.13" >&5
19574 $as_echo_n "checking whether 'ld' is at least 2.13... " >&6; }
19575 LD_PROG=`$CC --print-prog-name=ld`
19576 LD_VERSION=`$LD_PROG --version`
19577 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
19578 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
19579 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
19580 LD_OK="ok"
19581 else
19582 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
19583 LD_OK="ok"
19586 if test "x$LD_OK" != x; then
19587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19588 $as_echo "yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19589 else
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19591 $as_echo "no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
19593 $as_echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
19595 $as_echo "#define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1" >>confdefs.h
19600 PLATFORM=Posix
19601 PLATFORMNET=Posix
19602 PLATFORMH=posix.h
19604 esac
19607 PLATFORM=Ecos
19608 PLATFORMNET=NoNet
19610 $as_echo "#define ECOS 1" >>confdefs.h
19612 PLATFORMH=posix.h
19614 esac
19616 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
19619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19620 /* end confdefs.h. */
19621 #include <stdint.h>
19623 _ACEOF
19624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19625 $EGREP "uint32_t" >/dev/null 2>&1; then :
19627 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19630 rm -f conftest*
19632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19633 /* end confdefs.h. */
19634 #include <inttypes.h>
19636 _ACEOF
19637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19638 $EGREP "uint32_t" >/dev/null 2>&1; then :
19640 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19643 rm -f conftest*
19645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19646 /* end confdefs.h. */
19647 #include <sys/types.h>
19649 _ACEOF
19650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19651 $EGREP "u_int32_t" >/dev/null 2>&1; then :
19653 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19656 rm -f conftest*
19658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19659 /* end confdefs.h. */
19660 #include <sys/config.h>
19662 _ACEOF
19663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19664 $EGREP "u_int32_t" >/dev/null 2>&1; then :
19666 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19669 rm -f conftest*
19672 if test "$PLATFORM" = Win32; then
19673 USING_WIN32_PLATFORM_TRUE=
19674 USING_WIN32_PLATFORM_FALSE='#'
19675 else
19676 USING_WIN32_PLATFORM_TRUE='#'
19677 USING_WIN32_PLATFORM_FALSE=
19680 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
19681 USING_POSIX_PLATFORM_TRUE=
19682 USING_POSIX_PLATFORM_FALSE='#'
19683 else
19684 USING_POSIX_PLATFORM_TRUE='#'
19685 USING_POSIX_PLATFORM_FALSE=
19689 case "$host" in
19690 *-darwin*) DARWIN_CRT=true ;;
19691 *) DARWIN_CRT=false ;;
19692 esac
19693 if $DARWIN_CRT; then
19694 USING_DARWIN_CRT_TRUE=
19695 USING_DARWIN_CRT_FALSE='#'
19696 else
19697 USING_DARWIN_CRT_TRUE='#'
19698 USING_DARWIN_CRT_FALSE=
19702 # This may not be defined in a non-ANS conformant embedded system.
19703 # FIXME: Should these case a runtime exception in that case?
19704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19705 /* end confdefs.h. */
19706 #include <time.h>
19708 _ACEOF
19709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19710 $EGREP "localtime" >/dev/null 2>&1; then :
19712 $as_echo "#define HAVE_LOCALTIME 1" >>confdefs.h
19715 rm -f conftest*
19718 # Create the subdirectory for natFile.cc, or the attempt
19719 # to create the link will fail.
19720 test -d java || mkdir java
19721 test -d java/io || mkdir java/io
19722 test -d gnu || mkdir gnu
19723 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
19726 # Likewise for natConcreteProcess.cc.
19727 test -d java/lang || mkdir java/lang
19728 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
19731 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
19732 test -d java/net || mkdir java/net
19733 ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
19735 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
19738 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
19739 test -d gnu/java || mkdir gnu/java
19740 test -d gnu/java/net || mkdir gnu/java/net
19741 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
19743 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
19746 # Likewise for natVMPipe.cc and natVMSelector.cc.
19747 test -d gnu/java/nio || mkdir gnu/java/nio
19748 ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
19750 ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
19753 # Likewise for natFileChannelImpl.cc
19754 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
19755 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
19758 # Likewise for natVMSecureRandom.cc
19759 test -d gnu/java/security || mkdir gnu/java/security
19760 test -d gnu/java/security/jce || mkdir gnu/java/security/jce
19761 test -d gnu/java/security/jce/prng || mkdir gnu/java/security/jce/prng
19762 ac_config_links="$ac_config_links gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc"
19765 case "${host}" in
19766 *mingw*)
19767 SYSTEMSPEC="-lgdi32 -lws2_32"
19768 if test "${with_win32_nlsapi}" = "unicows"; then
19769 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
19772 *-*-darwin[912]*)
19773 SYSTEMSPEC="%{!Zdynamiclib:%{!Zbundle:-allow_stack_execute}}"
19776 SYSTEMSPEC=
19778 esac
19782 # Check whether --with-system-zlib was given.
19783 if test "${with_system_zlib+set}" = set; then :
19784 withval=$with_system_zlib;
19787 ZLIBSPEC=
19789 ZLIBTESTSPEC=
19792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19793 $as_echo_n "checking for X... " >&6; }
19796 # Check whether --with-x was given.
19797 if test "${with_x+set}" = set; then :
19798 withval=$with_x;
19801 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19802 if test "x$with_x" = xno; then
19803 # The user explicitly disabled X.
19804 have_x=disabled
19805 else
19806 case $x_includes,$x_libraries in #(
19807 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
19808 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
19809 $as_echo_n "(cached) " >&6
19810 else
19811 # One or both of the vars are not set, and there is no cached value.
19812 ac_x_includes=no ac_x_libraries=no
19813 rm -f -r conftest.dir
19814 if mkdir conftest.dir; then
19815 cd conftest.dir
19816 cat >Imakefile <<'_ACEOF'
19817 incroot:
19818 @echo incroot='${INCROOT}'
19819 usrlibdir:
19820 @echo usrlibdir='${USRLIBDIR}'
19821 libdir:
19822 @echo libdir='${LIBDIR}'
19823 _ACEOF
19824 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19825 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19826 for ac_var in incroot usrlibdir libdir; do
19827 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19828 done
19829 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19830 for ac_extension in a so sl dylib la dll; do
19831 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19832 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19833 ac_im_usrlibdir=$ac_im_libdir; break
19835 done
19836 # Screen out bogus values from the imake configuration. They are
19837 # bogus both because they are the default anyway, and because
19838 # using them would break gcc on systems where it needs fixed includes.
19839 case $ac_im_incroot in
19840 /usr/include) ac_x_includes= ;;
19841 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19842 esac
19843 case $ac_im_usrlibdir in
19844 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19845 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19846 esac
19848 cd ..
19849 rm -f -r conftest.dir
19852 # Standard set of common directories for X headers.
19853 # Check X11 before X11Rn because it is often a symlink to the current release.
19854 ac_x_header_dirs='
19855 /usr/X11/include
19856 /usr/X11R7/include
19857 /usr/X11R6/include
19858 /usr/X11R5/include
19859 /usr/X11R4/include
19861 /usr/include/X11
19862 /usr/include/X11R7
19863 /usr/include/X11R6
19864 /usr/include/X11R5
19865 /usr/include/X11R4
19867 /usr/local/X11/include
19868 /usr/local/X11R7/include
19869 /usr/local/X11R6/include
19870 /usr/local/X11R5/include
19871 /usr/local/X11R4/include
19873 /usr/local/include/X11
19874 /usr/local/include/X11R7
19875 /usr/local/include/X11R6
19876 /usr/local/include/X11R5
19877 /usr/local/include/X11R4
19879 /usr/X386/include
19880 /usr/x386/include
19881 /usr/XFree86/include/X11
19883 /usr/include
19884 /usr/local/include
19885 /usr/unsupported/include
19886 /usr/athena/include
19887 /usr/local/x11r5/include
19888 /usr/lpp/Xamples/include
19890 /usr/openwin/include
19891 /usr/openwin/share/include'
19893 if test "$ac_x_includes" = no; then
19894 # Guess where to find include files, by looking for Xlib.h.
19895 # First, try using that file with no special directory specified.
19896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19897 /* end confdefs.h. */
19898 #include <X11/Xlib.h>
19899 _ACEOF
19900 if ac_fn_c_try_cpp "$LINENO"; then :
19901 # We can compile using X headers with no special include directory.
19902 ac_x_includes=
19903 else
19904 for ac_dir in $ac_x_header_dirs; do
19905 if test -r "$ac_dir/X11/Xlib.h"; then
19906 ac_x_includes=$ac_dir
19907 break
19909 done
19911 rm -f conftest.err conftest.$ac_ext
19912 fi # $ac_x_includes = no
19914 if test "$ac_x_libraries" = no; then
19915 # Check for the libraries.
19916 # See if we find them without any special options.
19917 # Don't add to $LIBS permanently.
19918 ac_save_LIBS=$LIBS
19919 LIBS="-lX11 $LIBS"
19920 if test x$gcc_no_link = xyes; then
19921 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19924 /* end confdefs.h. */
19925 #include <X11/Xlib.h>
19927 main ()
19929 XrmInitialize ()
19931 return 0;
19933 _ACEOF
19934 if ac_fn_c_try_link "$LINENO"; then :
19935 LIBS=$ac_save_LIBS
19936 # We can link X programs with no special library path.
19937 ac_x_libraries=
19938 else
19939 LIBS=$ac_save_LIBS
19940 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19942 # Don't even attempt the hair of trying to link an X program!
19943 for ac_extension in a so sl dylib la dll; do
19944 if test -r "$ac_dir/libX11.$ac_extension"; then
19945 ac_x_libraries=$ac_dir
19946 break 2
19948 done
19949 done
19951 rm -f core conftest.err conftest.$ac_objext \
19952 conftest$ac_exeext conftest.$ac_ext
19953 fi # $ac_x_libraries = no
19955 case $ac_x_includes,$ac_x_libraries in #(
19956 no,* | *,no | *\'*)
19957 # Didn't find X, or a directory has "'" in its name.
19958 ac_cv_have_x="have_x=no";; #(
19960 # Record where we found X for the cache.
19961 ac_cv_have_x="have_x=yes\
19962 ac_x_includes='$ac_x_includes'\
19963 ac_x_libraries='$ac_x_libraries'"
19964 esac
19966 ;; #(
19967 *) have_x=yes;;
19968 esac
19969 eval "$ac_cv_have_x"
19970 fi # $with_x != no
19972 if test "$have_x" != yes; then
19973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19974 $as_echo "$have_x" >&6; }
19975 no_x=yes
19976 else
19977 # If each of the values was on the command line, it overrides each guess.
19978 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19979 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19980 # Update the cache value to reflect the command line values.
19981 ac_cv_have_x="have_x=yes\
19982 ac_x_includes='$x_includes'\
19983 ac_x_libraries='$x_libraries'"
19984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19985 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
19988 if test "$no_x" = yes; then
19989 # Not all programs may use this symbol, but it does not hurt to define it.
19991 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
19993 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19994 else
19995 if test -n "$x_includes"; then
19996 X_CFLAGS="$X_CFLAGS -I$x_includes"
19999 # It would also be nice to do this for all -L options, not just this one.
20000 if test -n "$x_libraries"; then
20001 X_LIBS="$X_LIBS -L$x_libraries"
20002 # For Solaris; some versions of Sun CC require a space after -R and
20003 # others require no space. Words are not sufficient . . . .
20004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
20005 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
20006 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20007 ac_xsave_c_werror_flag=$ac_c_werror_flag
20008 ac_c_werror_flag=yes
20009 if test x$gcc_no_link = xyes; then
20010 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20013 /* end confdefs.h. */
20016 main ()
20020 return 0;
20022 _ACEOF
20023 if ac_fn_c_try_link "$LINENO"; then :
20024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20025 $as_echo "no" >&6; }
20026 X_LIBS="$X_LIBS -R$x_libraries"
20027 else
20028 LIBS="$ac_xsave_LIBS -R $x_libraries"
20029 if test x$gcc_no_link = xyes; then
20030 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20033 /* end confdefs.h. */
20036 main ()
20040 return 0;
20042 _ACEOF
20043 if ac_fn_c_try_link "$LINENO"; then :
20044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20045 $as_echo "yes" >&6; }
20046 X_LIBS="$X_LIBS -R $x_libraries"
20047 else
20048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
20049 $as_echo "neither works" >&6; }
20051 rm -f core conftest.err conftest.$ac_objext \
20052 conftest$ac_exeext conftest.$ac_ext
20054 rm -f core conftest.err conftest.$ac_objext \
20055 conftest$ac_exeext conftest.$ac_ext
20056 ac_c_werror_flag=$ac_xsave_c_werror_flag
20057 LIBS=$ac_xsave_LIBS
20060 # Check for system-dependent libraries X programs must link with.
20061 # Do this before checking for the system-independent R6 libraries
20062 # (-lICE), since we may need -lsocket or whatever for X linking.
20064 if test "$ISC" = yes; then
20065 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20066 else
20067 # Martyn Johnson says this is needed for Ultrix, if the X
20068 # libraries were built with DECnet support. And Karl Berry says
20069 # the Alpha needs dnet_stub (dnet does not exist).
20070 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20071 if test x$gcc_no_link = xyes; then
20072 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20075 /* end confdefs.h. */
20077 /* Override any GCC internal prototype to avoid an error.
20078 Use char because int might match the return type of a GCC
20079 builtin and then its argument prototype would still apply. */
20080 #ifdef __cplusplus
20081 extern "C"
20082 #endif
20083 char XOpenDisplay ();
20085 main ()
20087 return XOpenDisplay ();
20089 return 0;
20091 _ACEOF
20092 if ac_fn_c_try_link "$LINENO"; then :
20094 else
20095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
20096 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
20097 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
20098 $as_echo_n "(cached) " >&6
20099 else
20100 ac_check_lib_save_LIBS=$LIBS
20101 LIBS="-ldnet $LIBS"
20102 if test x$gcc_no_link = xyes; then
20103 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20106 /* end confdefs.h. */
20108 /* Override any GCC internal prototype to avoid an error.
20109 Use char because int might match the return type of a GCC
20110 builtin and then its argument prototype would still apply. */
20111 #ifdef __cplusplus
20112 extern "C"
20113 #endif
20114 char dnet_ntoa ();
20116 main ()
20118 return dnet_ntoa ();
20120 return 0;
20122 _ACEOF
20123 if ac_fn_c_try_link "$LINENO"; then :
20124 ac_cv_lib_dnet_dnet_ntoa=yes
20125 else
20126 ac_cv_lib_dnet_dnet_ntoa=no
20128 rm -f core conftest.err conftest.$ac_objext \
20129 conftest$ac_exeext conftest.$ac_ext
20130 LIBS=$ac_check_lib_save_LIBS
20132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20133 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20134 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
20135 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20138 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
20140 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
20141 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
20142 $as_echo_n "(cached) " >&6
20143 else
20144 ac_check_lib_save_LIBS=$LIBS
20145 LIBS="-ldnet_stub $LIBS"
20146 if test x$gcc_no_link = xyes; then
20147 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20150 /* end confdefs.h. */
20152 /* Override any GCC internal prototype to avoid an error.
20153 Use char because int might match the return type of a GCC
20154 builtin and then its argument prototype would still apply. */
20155 #ifdef __cplusplus
20156 extern "C"
20157 #endif
20158 char dnet_ntoa ();
20160 main ()
20162 return dnet_ntoa ();
20164 return 0;
20166 _ACEOF
20167 if ac_fn_c_try_link "$LINENO"; then :
20168 ac_cv_lib_dnet_stub_dnet_ntoa=yes
20169 else
20170 ac_cv_lib_dnet_stub_dnet_ntoa=no
20172 rm -f core conftest.err conftest.$ac_objext \
20173 conftest$ac_exeext conftest.$ac_ext
20174 LIBS=$ac_check_lib_save_LIBS
20176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20177 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20178 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
20179 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20184 rm -f core conftest.err conftest.$ac_objext \
20185 conftest$ac_exeext conftest.$ac_ext
20186 LIBS="$ac_xsave_LIBS"
20188 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20189 # to get the SysV transport functions.
20190 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20191 # needs -lnsl.
20192 # The nsl library prevents programs from opening the X display
20193 # on Irix 5.2, according to T.E. Dickey.
20194 # The functions gethostbyname, getservbyname, and inet_addr are
20195 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20196 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
20197 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
20201 if test $ac_cv_func_gethostbyname = no; then
20202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20203 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20204 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
20205 $as_echo_n "(cached) " >&6
20206 else
20207 ac_check_lib_save_LIBS=$LIBS
20208 LIBS="-lnsl $LIBS"
20209 if test x$gcc_no_link = xyes; then
20210 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20213 /* end confdefs.h. */
20215 /* Override any GCC internal prototype to avoid an error.
20216 Use char because int might match the return type of a GCC
20217 builtin and then its argument prototype would still apply. */
20218 #ifdef __cplusplus
20219 extern "C"
20220 #endif
20221 char gethostbyname ();
20223 main ()
20225 return gethostbyname ();
20227 return 0;
20229 _ACEOF
20230 if ac_fn_c_try_link "$LINENO"; then :
20231 ac_cv_lib_nsl_gethostbyname=yes
20232 else
20233 ac_cv_lib_nsl_gethostbyname=no
20235 rm -f core conftest.err conftest.$ac_objext \
20236 conftest$ac_exeext conftest.$ac_ext
20237 LIBS=$ac_check_lib_save_LIBS
20239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20240 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20241 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
20242 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20245 if test $ac_cv_lib_nsl_gethostbyname = no; then
20246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20247 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20248 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
20249 $as_echo_n "(cached) " >&6
20250 else
20251 ac_check_lib_save_LIBS=$LIBS
20252 LIBS="-lbsd $LIBS"
20253 if test x$gcc_no_link = xyes; then
20254 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20257 /* end confdefs.h. */
20259 /* Override any GCC internal prototype to avoid an error.
20260 Use char because int might match the return type of a GCC
20261 builtin and then its argument prototype would still apply. */
20262 #ifdef __cplusplus
20263 extern "C"
20264 #endif
20265 char gethostbyname ();
20267 main ()
20269 return gethostbyname ();
20271 return 0;
20273 _ACEOF
20274 if ac_fn_c_try_link "$LINENO"; then :
20275 ac_cv_lib_bsd_gethostbyname=yes
20276 else
20277 ac_cv_lib_bsd_gethostbyname=no
20279 rm -f core conftest.err conftest.$ac_objext \
20280 conftest$ac_exeext conftest.$ac_ext
20281 LIBS=$ac_check_lib_save_LIBS
20283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
20284 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
20285 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
20286 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20292 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20293 # socket/setsockopt and other routines are undefined under SCO ODT
20294 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20295 # on later versions), says Simon Leinen: it contains gethostby*
20296 # variants that don't use the name server (or something). -lsocket
20297 # must be given before -lnsl if both are needed. We assume that
20298 # if connect needs -lnsl, so does gethostbyname.
20299 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
20300 if test "x$ac_cv_func_connect" = x""yes; then :
20304 if test $ac_cv_func_connect = no; then
20305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
20306 $as_echo_n "checking for connect in -lsocket... " >&6; }
20307 if test "${ac_cv_lib_socket_connect+set}" = set; then :
20308 $as_echo_n "(cached) " >&6
20309 else
20310 ac_check_lib_save_LIBS=$LIBS
20311 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20312 if test x$gcc_no_link = xyes; then
20313 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20316 /* end confdefs.h. */
20318 /* Override any GCC internal prototype to avoid an error.
20319 Use char because int might match the return type of a GCC
20320 builtin and then its argument prototype would still apply. */
20321 #ifdef __cplusplus
20322 extern "C"
20323 #endif
20324 char connect ();
20326 main ()
20328 return connect ();
20330 return 0;
20332 _ACEOF
20333 if ac_fn_c_try_link "$LINENO"; then :
20334 ac_cv_lib_socket_connect=yes
20335 else
20336 ac_cv_lib_socket_connect=no
20338 rm -f core conftest.err conftest.$ac_objext \
20339 conftest$ac_exeext conftest.$ac_ext
20340 LIBS=$ac_check_lib_save_LIBS
20342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
20343 $as_echo "$ac_cv_lib_socket_connect" >&6; }
20344 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
20345 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20350 # Guillermo Gomez says -lposix is necessary on A/UX.
20351 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
20352 if test "x$ac_cv_func_remove" = x""yes; then :
20356 if test $ac_cv_func_remove = no; then
20357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
20358 $as_echo_n "checking for remove in -lposix... " >&6; }
20359 if test "${ac_cv_lib_posix_remove+set}" = set; then :
20360 $as_echo_n "(cached) " >&6
20361 else
20362 ac_check_lib_save_LIBS=$LIBS
20363 LIBS="-lposix $LIBS"
20364 if test x$gcc_no_link = xyes; then
20365 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20368 /* end confdefs.h. */
20370 /* Override any GCC internal prototype to avoid an error.
20371 Use char because int might match the return type of a GCC
20372 builtin and then its argument prototype would still apply. */
20373 #ifdef __cplusplus
20374 extern "C"
20375 #endif
20376 char remove ();
20378 main ()
20380 return remove ();
20382 return 0;
20384 _ACEOF
20385 if ac_fn_c_try_link "$LINENO"; then :
20386 ac_cv_lib_posix_remove=yes
20387 else
20388 ac_cv_lib_posix_remove=no
20390 rm -f core conftest.err conftest.$ac_objext \
20391 conftest$ac_exeext conftest.$ac_ext
20392 LIBS=$ac_check_lib_save_LIBS
20394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
20395 $as_echo "$ac_cv_lib_posix_remove" >&6; }
20396 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
20397 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20402 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20403 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20404 if test "x$ac_cv_func_shmat" = x""yes; then :
20408 if test $ac_cv_func_shmat = no; then
20409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
20410 $as_echo_n "checking for shmat in -lipc... " >&6; }
20411 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
20412 $as_echo_n "(cached) " >&6
20413 else
20414 ac_check_lib_save_LIBS=$LIBS
20415 LIBS="-lipc $LIBS"
20416 if test x$gcc_no_link = xyes; then
20417 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20420 /* end confdefs.h. */
20422 /* Override any GCC internal prototype to avoid an error.
20423 Use char because int might match the return type of a GCC
20424 builtin and then its argument prototype would still apply. */
20425 #ifdef __cplusplus
20426 extern "C"
20427 #endif
20428 char shmat ();
20430 main ()
20432 return shmat ();
20434 return 0;
20436 _ACEOF
20437 if ac_fn_c_try_link "$LINENO"; then :
20438 ac_cv_lib_ipc_shmat=yes
20439 else
20440 ac_cv_lib_ipc_shmat=no
20442 rm -f core conftest.err conftest.$ac_objext \
20443 conftest$ac_exeext conftest.$ac_ext
20444 LIBS=$ac_check_lib_save_LIBS
20446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
20447 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20448 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
20449 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20455 # Check for libraries that X11R6 Xt/Xaw programs need.
20456 ac_save_LDFLAGS=$LDFLAGS
20457 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20458 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20459 # check for ICE first), but we must link in the order -lSM -lICE or
20460 # we get undefined symbols. So assume we have SM if we have ICE.
20461 # These have to be linked with before -lX11, unlike the other
20462 # libraries we check for below, so use a different variable.
20463 # John Interrante, Karl Berry
20464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
20465 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20466 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
20467 $as_echo_n "(cached) " >&6
20468 else
20469 ac_check_lib_save_LIBS=$LIBS
20470 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20471 if test x$gcc_no_link = xyes; then
20472 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20475 /* end confdefs.h. */
20477 /* Override any GCC internal prototype to avoid an error.
20478 Use char because int might match the return type of a GCC
20479 builtin and then its argument prototype would still apply. */
20480 #ifdef __cplusplus
20481 extern "C"
20482 #endif
20483 char IceConnectionNumber ();
20485 main ()
20487 return IceConnectionNumber ();
20489 return 0;
20491 _ACEOF
20492 if ac_fn_c_try_link "$LINENO"; then :
20493 ac_cv_lib_ICE_IceConnectionNumber=yes
20494 else
20495 ac_cv_lib_ICE_IceConnectionNumber=no
20497 rm -f core conftest.err conftest.$ac_objext \
20498 conftest$ac_exeext conftest.$ac_ext
20499 LIBS=$ac_check_lib_save_LIBS
20501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20502 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20503 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
20504 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20507 LDFLAGS=$ac_save_LDFLAGS
20512 # FIXME: this should be _libs on some hosts.
20513 libsubdir=.libs
20515 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20517 LIBSTDCXXSPEC=
20518 # extra LD Flags which are required for targets
20519 case "${host}" in
20520 *-*-darwin[0-7].*)
20521 # For now we have to disable it on darwin[8-9] because it slows down
20522 # the linking phase. A possible bug in ld?
20523 # on Darwin -single_module speeds up loading of the dynamic libraries.
20524 extra_ldflags_libjava=-Wl,-single_module
20526 arm*linux*eabi)
20527 # Some of the ARM unwinder code is actually in libstdc++. We
20528 # could in principle replicate it in libgcj, but it's better to
20529 # have a dependency on libstdc++.
20530 extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20531 LIBSTDCXXSPEC=-lstdc++
20532 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20534 *-*-cygwin)
20535 extra_ldflags_libjava=-liconv
20537 esac
20539 LIBMATHSPEC=
20540 # extra LD Flags which are required for targets
20541 case "${host}" in
20542 *-*-darwin*)
20545 LIBMATHSPEC=-lm
20547 esac
20549 # Check for --no-merge-exidx-entries, an ARM-specific linker option.
20550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --no-merge-exidx-entries" >&5
20551 $as_echo_n "checking for --no-merge-exidx-entries... " >&6; }
20552 if test "${libgcj_cv_exidx+set}" = set; then :
20553 $as_echo_n "(cached) " >&6
20554 else
20555 saved_ldflags="$LDFLAGS"
20556 LDFLAGS="${LDFLAGS} -Wl,--no-merge-exidx-entries"
20557 # The IRIX 6 ld doesn't recognize --no-merge-exidx-entries, but only
20558 # warns about unknown options, which breaks the testsuite. So enable
20559 # AC_LANG_WERROR, but there's currently (autoconf 2.64) no way to turn
20560 # it off again. As a workaround, save and restore werror flag like
20561 # AC_PATH_XTRA.
20562 ac_xsave_c_werror_flag=$ac_c_werror_flag
20564 ac_c_werror_flag=yes
20565 if test x$gcc_no_link = xyes; then
20566 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20569 /* end confdefs.h. */
20570 int main(void){ return 0;}
20571 _ACEOF
20572 if ac_fn_c_try_link "$LINENO"; then :
20573 eval "libgcj_cv_exidx=yes"
20574 else
20575 eval "libgcj_cv_exidx=no"
20577 rm -f core conftest.err conftest.$ac_objext \
20578 conftest$ac_exeext conftest.$ac_ext
20579 ac_c_werror_flag=$ac_xsave_c_werror_flag
20580 LDFLAGS="${saved_ldflags}"
20583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcj_cv_exidx" >&5
20584 $as_echo "$libgcj_cv_exidx" >&6; }
20585 if test "${libgcj_cv_exidx}" = "yes"; then
20586 SYSTEMSPEC="${SYSTEMSPEC} --no-merge-exidx-entries"
20587 extra_ldflags="${extra_ldflags} -Wl,--no-merge-exidx-entries"
20597 # Allow the GC to be disabled. Can be useful when debugging.
20598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for garbage collector to use" >&5
20599 $as_echo_n "checking for garbage collector to use... " >&6; }
20600 # Check whether --enable-java-gc was given.
20601 if test "${enable_java_gc+set}" = set; then :
20602 enableval=$enable_java_gc; GC=$enableval
20603 else
20604 GC=boehm
20607 GCLIBS=
20608 GCINCS=
20609 GCDEPS=
20610 GCSPEC=
20611 JC1GCSPEC=
20612 GCTESTSPEC=
20613 case "$GC" in
20614 boehm)
20615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: boehm" >&5
20616 $as_echo "boehm" >&6; }
20617 GCLIBS=../boehm-gc/libgcjgc_convenience.la
20618 JC1GCSPEC='-fuse-boehm-gc'
20619 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20620 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20621 GCOBJS=boehm.lo
20622 GCHDR=boehm-gc.h
20623 # The POSIX thread support needs to know this.
20625 $as_echo "#define HAVE_BOEHM_GC 1" >>confdefs.h
20629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
20630 $as_echo "none" >&6; }
20631 GCHDR=no-gc.h
20634 as_fn_error "unrecognized collector \"$GC\"" "$LINENO" 5
20636 esac
20643 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20645 if test "$GC" = boehm; then
20646 USING_BOEHMGC_TRUE=
20647 USING_BOEHMGC_FALSE='#'
20648 else
20649 USING_BOEHMGC_TRUE='#'
20650 USING_BOEHMGC_FALSE=
20653 if test "$GC" = no; then
20654 USING_NOGC_TRUE=
20655 USING_NOGC_FALSE='#'
20656 else
20657 USING_NOGC_TRUE='#'
20658 USING_NOGC_FALSE=
20663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
20664 $as_echo_n "checking for thread model used by GCC... " >&6; }
20665 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
20667 $as_echo "$THREADS" >&6; }
20669 case "$THREADS" in
20670 no | none | single)
20671 THREADS=none
20673 aix | posix | posix95 | pthreads)
20674 THREADS=posix
20675 case "$host" in
20676 *-*-linux*)
20678 $as_echo "#define LINUX_THREADS 1" >>confdefs.h
20681 esac
20683 win32)
20685 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
20686 as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
20689 as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
20691 esac
20693 THREADCXXFLAGS=
20694 THREADLDFLAGS=
20695 THREADLIBS=
20696 THREADINCS=
20697 THREADDEPS=
20698 THREADH=
20699 THREADSPEC=
20700 THREADSTARTFILESPEC=
20701 case "$THREADS" in
20702 posix)
20703 case "$host" in
20704 *-*-cygwin*)
20705 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
20707 *-*-freebsd[1234]*)
20708 # Before FreeBSD 5, it didn't have -lpthread (or any library which
20709 # merely adds pthread_* functions) but it does have a -pthread switch
20710 # which is required at link-time to select -lc_r *instead* of -lc.
20711 THREADLDFLAGS=-pthread
20712 # Don't set THREADSPEC here as might be expected since -pthread is
20713 # not processed when found within a spec file, it must come from
20714 # the command line. For now, the user must provide the -pthread
20715 # switch to link code compiled with gcj. In future, consider adding
20716 # support for weak references to pthread_* functions ala gthr.h API.
20717 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20719 *-*-freebsd*)
20720 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20721 # systems which support threads and -lpthread.
20722 THREADLDFLAGS=-pthread
20723 THREADSPEC=-lpthread
20725 alpha*-dec-osf* | hppa*-hp-hpux*)
20726 THREADCXXFLAGS=-pthread
20727 # boehm-gc needs some functions from librt, so link that too.
20728 THREADLIBS='-lpthread -lrt'
20729 THREADSPEC='-lpthread -lrt'
20731 *-*-solaris2.8)
20732 # Always use alternate thread library on Solaris 8. Need libthread
20733 # for TLS support.
20734 # Need -Wl,-R to get it through libtool ...
20735 THREADLIBS='-L/usr/lib/lwp$(MULTISUBDIR) -Wl,-R -Wl,/usr/lib/lwp$(MULTISUBDIR) -lpthread -lthread'
20736 # ... while ld only accepts -R.
20737 THREADSPEC='-L/usr/lib/lwp%{m64:/64} -R/usr/lib/lwp%{m64:/64} -lpthread -lthread'
20739 *-*-solaris2.9)
20740 # As on Solaris 8, need libthread for TLS support.
20741 THREADLIBS='-lpthread -lthread'
20742 THREADSPEC='-lpthread -lthread'
20744 *-*-darwin*)
20745 # Don't set THREADLIBS or THREADSPEC as Darwin already
20746 # provides pthread via libSystem.
20749 THREADLIBS=-lpthread
20750 THREADSPEC=-lpthread
20752 esac
20753 THREADH=posix-threads.h
20754 # MIT pthreads doesn't seem to have the mutexattr functions.
20755 # But for now we don't check for it. We just assume you aren't
20756 # using MIT pthreads.
20758 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20761 # If we're using the Boehm GC, then we happen to know that it
20762 # defines _REENTRANT, so we don't bother. Eww.
20763 if test "$GC" != boehm; then
20765 $as_echo "#define _REENTRANT 1" >>confdefs.h
20769 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
20773 win32)
20774 THREADH=win32-threads.h
20775 THREADCXXFLAGS=-mthreads
20776 # We need thread-safe exception handling so _CRT_MT should be set to 1.
20777 # But we do not want the executables created to be dependent on
20778 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20779 # exception handling contexts. The following kludge achieves this effect
20780 # and causes a dummy __mingwthr_key_dtor() to be linked in from
20781 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
20782 # A workaround is to explicitly use -mthreads while linking Java programs.
20783 # See PR libgcj/28263.
20785 # FIXME: In Java we are able to detect thread death at the end of
20786 # Thread.run() so we should be able to clean up the exception handling
20787 # contexts ourselves.
20788 THREADSTARTFILESPEC='crtmt%O%s'
20791 none)
20792 THREADH=no-threads.h
20794 esac
20795 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20804 if test "$THREADS" = posix; then
20805 USING_POSIX_THREADS_TRUE=
20806 USING_POSIX_THREADS_FALSE='#'
20807 else
20808 USING_POSIX_THREADS_TRUE='#'
20809 USING_POSIX_THREADS_FALSE=
20812 if test "$THREADS" = win32; then
20813 USING_WIN32_THREADS_TRUE=
20814 USING_WIN32_THREADS_FALSE='#'
20815 else
20816 USING_WIN32_THREADS_TRUE='#'
20817 USING_WIN32_THREADS_FALSE=
20820 if test "$THREADS" = none; then
20821 USING_NO_THREADS_TRUE=
20822 USING_NO_THREADS_FALSE='#'
20823 else
20824 USING_NO_THREADS_TRUE='#'
20825 USING_NO_THREADS_FALSE=
20828 if test "$enable_shared" != yes; then
20829 use_libgcj_bc=no
20831 if test "$use_libgcj_bc" = yes; then
20832 USE_LIBGCJ_BC_TRUE=
20833 USE_LIBGCJ_BC_FALSE='#'
20834 else
20835 USE_LIBGCJ_BC_TRUE='#'
20836 USE_LIBGCJ_BC_FALSE=
20840 if test -d sysdep; then true; else mkdir sysdep; fi
20841 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20843 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20845 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20848 LIBGCJ_SPEC_LGCJ=-lgcj
20849 LIBGCJ_SPEC_LGCJ_BC=-lgcj_bc
20850 if test x"$libgcj_spec_lgcj_override" != x ; then
20851 LIBGCJ_SPEC_LGCJ=$libgcj_spec_lgcj_override
20853 if test x"$libgcj_spec_lgcj_bc_override" != x ; then
20854 LIBGCJ_SPEC_LGCJ_BC=$libgcj_spec_lgcj_bc_override
20856 LIBGCJ_SPEC="%{s-bc-abi:} $LIBGCJ_SPEC_LGCJ"
20857 if test "$use_libgcj_bc" = yes; then
20858 LIBGCJ_SPEC="%{static|static-libgcj|!s-bc-abi:$LIBGCJ_SPEC_LGCJ;:$LIBGCJ_SPEC_LGCJ_BC}"
20859 LIBGCJ_BC_SPEC="%{findirect-dispatch:-fPIC}"
20864 HASH_SYNC_SPEC=
20865 # Hash synchronization is only useful with posix threads right now.
20866 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20867 HASH_SYNC_SPEC=-fhash-synchronization
20869 $as_echo "#define JV_HASH_SYNCHRONIZATION 1" >>confdefs.h
20874 if test "$GCC" = yes; then
20875 USING_GCC_TRUE=
20876 USING_GCC_FALSE='#'
20877 else
20878 USING_GCC_TRUE='#'
20879 USING_GCC_FALSE=
20883 # We're in the tree with gcc, and need to include some of its headers.
20884 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
20886 if test "x${with_newlib}" = "xyes"; then
20887 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
20888 # may not work correctly, because the compiler may not be able to
20889 # link executables.
20891 # We assume newlib. This lets us hard-code the functions we know
20892 # we'll have.
20894 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20897 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
20900 $as_echo "#define HAVE_TIME 1" >>confdefs.h
20903 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20906 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
20909 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
20911 # This is only for POSIX threads.
20913 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20916 # Assume we do not have getuid and friends.
20918 $as_echo "#define NO_GETUID 1" >>confdefs.h
20920 PLATFORMNET=NoNet
20921 else
20922 for ac_func in strerror_r select fstat open fsync sleep opendir \
20923 localtime_r getpwuid_r getcwd \
20924 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20925 nl_langinfo setlocale \
20926 inet_pton uname inet_ntoa \
20927 getrlimit sigaction ftruncate mmap \
20928 getifaddrs
20929 do :
20930 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20931 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20932 eval as_val=\$$as_ac_var
20933 if test "x$as_val" = x""yes; then :
20934 cat >>confdefs.h <<_ACEOF
20935 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20936 _ACEOF
20939 done
20941 for ac_func in inet_aton inet_addr
20942 do :
20943 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20944 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20945 eval as_val=\$$as_ac_var
20946 if test "x$as_val" = x""yes; then :
20947 cat >>confdefs.h <<_ACEOF
20948 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20949 _ACEOF
20950 break
20952 done
20954 for ac_header in unistd.h dlfcn.h sys/resource.h
20955 do :
20956 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20957 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20958 eval as_val=\$$as_ac_Header
20959 if test "x$as_val" = x""yes; then :
20960 cat >>confdefs.h <<_ACEOF
20961 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20962 _ACEOF
20966 done
20968 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
20969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5
20970 $as_echo_n "checking for dladdr in -ldl... " >&6; }
20971 if test "${ac_cv_lib_dl_dladdr+set}" = set; then :
20972 $as_echo_n "(cached) " >&6
20973 else
20974 ac_check_lib_save_LIBS=$LIBS
20975 LIBS="-ldl $LIBS"
20976 if test x$gcc_no_link = xyes; then
20977 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20980 /* end confdefs.h. */
20982 /* Override any GCC internal prototype to avoid an error.
20983 Use char because int might match the return type of a GCC
20984 builtin and then its argument prototype would still apply. */
20985 #ifdef __cplusplus
20986 extern "C"
20987 #endif
20988 char dladdr ();
20990 main ()
20992 return dladdr ();
20994 return 0;
20996 _ACEOF
20997 if ac_fn_c_try_link "$LINENO"; then :
20998 ac_cv_lib_dl_dladdr=yes
20999 else
21000 ac_cv_lib_dl_dladdr=no
21002 rm -f core conftest.err conftest.$ac_objext \
21003 conftest$ac_exeext conftest.$ac_ext
21004 LIBS=$ac_check_lib_save_LIBS
21006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
21007 $as_echo "$ac_cv_lib_dl_dladdr" >&6; }
21008 if test "x$ac_cv_lib_dl_dladdr" = x""yes; then :
21011 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
21013 else
21015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldld" >&5
21016 $as_echo_n "checking for dladdr in -ldld... " >&6; }
21017 if test "${ac_cv_lib_dld_dladdr+set}" = set; then :
21018 $as_echo_n "(cached) " >&6
21019 else
21020 ac_check_lib_save_LIBS=$LIBS
21021 LIBS="-ldld $LIBS"
21022 if test x$gcc_no_link = xyes; then
21023 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21026 /* end confdefs.h. */
21028 /* Override any GCC internal prototype to avoid an error.
21029 Use char because int might match the return type of a GCC
21030 builtin and then its argument prototype would still apply. */
21031 #ifdef __cplusplus
21032 extern "C"
21033 #endif
21034 char dladdr ();
21036 main ()
21038 return dladdr ();
21040 return 0;
21042 _ACEOF
21043 if ac_fn_c_try_link "$LINENO"; then :
21044 ac_cv_lib_dld_dladdr=yes
21045 else
21046 ac_cv_lib_dld_dladdr=no
21048 rm -f core conftest.err conftest.$ac_objext \
21049 conftest$ac_exeext conftest.$ac_ext
21050 LIBS=$ac_check_lib_save_LIBS
21052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dladdr" >&5
21053 $as_echo "$ac_cv_lib_dld_dladdr" >&6; }
21054 if test "x$ac_cv_lib_dld_dladdr" = x""yes; then :
21057 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
21064 if test x"$cross_compiling" = x"no"; then
21065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/exe" >&5
21066 $as_echo_n "checking for /proc/self/exe... " >&6; }
21067 if test "${ac_cv_file__proc_self_exe+set}" = set; then :
21068 $as_echo_n "(cached) " >&6
21069 else
21070 test "$cross_compiling" = yes &&
21071 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
21072 if test -r "/proc/self/exe"; then
21073 ac_cv_file__proc_self_exe=yes
21074 else
21075 ac_cv_file__proc_self_exe=no
21078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_exe" >&5
21079 $as_echo "$ac_cv_file__proc_self_exe" >&6; }
21080 if test "x$ac_cv_file__proc_self_exe" = x""yes; then :
21082 cat >>confdefs.h <<_ACEOF
21083 #define HAVE__PROC_SELF_EXE 1
21084 _ACEOF
21087 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
21091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/maps" >&5
21092 $as_echo_n "checking for /proc/self/maps... " >&6; }
21093 if test "${ac_cv_file__proc_self_maps+set}" = set; then :
21094 $as_echo_n "(cached) " >&6
21095 else
21096 test "$cross_compiling" = yes &&
21097 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
21098 if test -r "/proc/self/maps"; then
21099 ac_cv_file__proc_self_maps=yes
21100 else
21101 ac_cv_file__proc_self_maps=no
21104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_maps" >&5
21105 $as_echo "$ac_cv_file__proc_self_maps" >&6; }
21106 if test "x$ac_cv_file__proc_self_maps" = x""yes; then :
21108 cat >>confdefs.h <<_ACEOF
21109 #define HAVE__PROC_SELF_MAPS 1
21110 _ACEOF
21113 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
21117 else
21118 case $host in
21119 *-linux*)
21121 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
21124 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
21127 esac
21131 if test "X$prefix" = "XNONE"; then
21132 acl_final_prefix="$ac_default_prefix"
21133 else
21134 acl_final_prefix="$prefix"
21136 if test "X$exec_prefix" = "XNONE"; then
21137 acl_final_exec_prefix='${prefix}'
21138 else
21139 acl_final_exec_prefix="$exec_prefix"
21141 acl_save_prefix="$prefix"
21142 prefix="$acl_final_prefix"
21143 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21144 prefix="$acl_save_prefix"
21147 # Check whether --with-gnu-ld was given.
21148 if test "${with_gnu_ld+set}" = set; then :
21149 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
21150 else
21151 with_gnu_ld=no
21154 # Prepare PATH_SEPARATOR.
21155 # The user is always right.
21156 if test "${PATH_SEPARATOR+set}" != set; then
21157 echo "#! /bin/sh" >conf$$.sh
21158 echo "exit 0" >>conf$$.sh
21159 chmod +x conf$$.sh
21160 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21161 PATH_SEPARATOR=';'
21162 else
21163 PATH_SEPARATOR=:
21165 rm -f conf$$.sh
21167 ac_prog=ld
21168 if test "$GCC" = yes; then
21169 # Check if gcc -print-prog-name=ld gives a path.
21170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
21171 $as_echo_n "checking for ld used by GCC... " >&6; }
21172 case $host in
21173 *-*-mingw*)
21174 # gcc leaves a trailing carriage return which upsets mingw
21175 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21177 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21178 esac
21179 case $ac_prog in
21180 # Accept absolute paths.
21181 [\\/]* | [A-Za-z]:[\\/]*)
21182 re_direlt='/[^/][^/]*/\.\./'
21183 # Canonicalize the path of ld
21184 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21185 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21186 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21187 done
21188 test -z "$LD" && LD="$ac_prog"
21191 # If it fails, then pretend we aren't using GCC.
21192 ac_prog=ld
21195 # If it is relative, then search for the first ld in PATH.
21196 with_gnu_ld=unknown
21198 esac
21199 elif test "$with_gnu_ld" = yes; then
21200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
21201 $as_echo_n "checking for GNU ld... " >&6; }
21202 else
21203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
21204 $as_echo_n "checking for non-GNU ld... " >&6; }
21206 if test "${acl_cv_path_LD+set}" = set; then :
21207 $as_echo_n "(cached) " >&6
21208 else
21209 if test -z "$LD"; then
21210 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21211 for ac_dir in $PATH; do
21212 test -z "$ac_dir" && ac_dir=.
21213 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21214 acl_cv_path_LD="$ac_dir/$ac_prog"
21215 # Check to see if the program is GNU ld. I'd rather use --version,
21216 # but apparently some GNU ld's only accept -v.
21217 # Break only if it was the GNU/non-GNU ld that we prefer.
21218 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
21219 test "$with_gnu_ld" != no && break
21220 else
21221 test "$with_gnu_ld" != yes && break
21224 done
21225 IFS="$ac_save_ifs"
21226 else
21227 acl_cv_path_LD="$LD" # Let the user override the test with a path.
21231 LD="$acl_cv_path_LD"
21232 if test -n "$LD"; then
21233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
21234 $as_echo "$LD" >&6; }
21235 else
21236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21237 $as_echo "no" >&6; }
21239 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
21240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
21241 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
21242 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
21243 $as_echo_n "(cached) " >&6
21244 else
21245 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21246 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
21247 acl_cv_prog_gnu_ld=yes
21248 else
21249 acl_cv_prog_gnu_ld=no
21252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
21253 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
21254 with_gnu_ld=$acl_cv_prog_gnu_ld
21258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
21259 $as_echo_n "checking for shared library run path origin... " >&6; }
21260 if test "${acl_cv_rpath+set}" = set; then :
21261 $as_echo_n "(cached) " >&6
21262 else
21264 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21265 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21266 . ./conftest.sh
21267 rm -f ./conftest.sh
21268 acl_cv_rpath=done
21271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
21272 $as_echo "$acl_cv_rpath" >&6; }
21273 wl="$acl_cv_wl"
21274 libext="$acl_cv_libext"
21275 shlibext="$acl_cv_shlibext"
21276 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21277 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21278 hardcode_direct="$acl_cv_hardcode_direct"
21279 hardcode_minus_L="$acl_cv_hardcode_minus_L"
21280 # Check whether --enable-rpath was given.
21281 if test "${enable_rpath+set}" = set; then :
21282 enableval=$enable_rpath; :
21283 else
21284 enable_rpath=yes
21294 use_additional=yes
21296 acl_save_prefix="$prefix"
21297 prefix="$acl_final_prefix"
21298 acl_save_exec_prefix="$exec_prefix"
21299 exec_prefix="$acl_final_exec_prefix"
21301 eval additional_includedir=\"$includedir\"
21302 eval additional_libdir=\"$libdir\"
21304 exec_prefix="$acl_save_exec_prefix"
21305 prefix="$acl_save_prefix"
21308 # Check whether --with-libiconv-prefix was given.
21309 if test "${with_libiconv_prefix+set}" = set; then :
21310 withval=$with_libiconv_prefix;
21311 if test "X$withval" = "Xno"; then
21312 use_additional=no
21313 else
21314 if test "X$withval" = "X"; then
21316 acl_save_prefix="$prefix"
21317 prefix="$acl_final_prefix"
21318 acl_save_exec_prefix="$exec_prefix"
21319 exec_prefix="$acl_final_exec_prefix"
21321 eval additional_includedir=\"$includedir\"
21322 eval additional_libdir=\"$libdir\"
21324 exec_prefix="$acl_save_exec_prefix"
21325 prefix="$acl_save_prefix"
21327 else
21328 additional_includedir="$withval/include"
21329 additional_libdir="$withval/lib"
21335 LIBICONV=
21336 LTLIBICONV=
21337 INCICONV=
21338 rpathdirs=
21339 ltrpathdirs=
21340 names_already_handled=
21341 names_next_round='iconv '
21342 while test -n "$names_next_round"; do
21343 names_this_round="$names_next_round"
21344 names_next_round=
21345 for name in $names_this_round; do
21346 already_handled=
21347 for n in $names_already_handled; do
21348 if test "$n" = "$name"; then
21349 already_handled=yes
21350 break
21352 done
21353 if test -z "$already_handled"; then
21354 names_already_handled="$names_already_handled $name"
21355 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21356 eval value=\"\$HAVE_LIB$uppername\"
21357 if test -n "$value"; then
21358 if test "$value" = yes; then
21359 eval value=\"\$LIB$uppername\"
21360 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21361 eval value=\"\$LTLIB$uppername\"
21362 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21363 else
21366 else
21367 found_dir=
21368 found_la=
21369 found_so=
21370 found_a=
21371 if test $use_additional = yes; then
21372 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21373 found_dir="$additional_libdir"
21374 found_so="$additional_libdir/lib$name.$shlibext"
21375 if test -f "$additional_libdir/lib$name.la"; then
21376 found_la="$additional_libdir/lib$name.la"
21378 else
21379 if test -f "$additional_libdir/lib$name.$libext"; then
21380 found_dir="$additional_libdir"
21381 found_a="$additional_libdir/lib$name.$libext"
21382 if test -f "$additional_libdir/lib$name.la"; then
21383 found_la="$additional_libdir/lib$name.la"
21388 if test "X$found_dir" = "X"; then
21389 for x in $LDFLAGS $LTLIBICONV; do
21391 acl_save_prefix="$prefix"
21392 prefix="$acl_final_prefix"
21393 acl_save_exec_prefix="$exec_prefix"
21394 exec_prefix="$acl_final_exec_prefix"
21395 eval x=\"$x\"
21396 exec_prefix="$acl_save_exec_prefix"
21397 prefix="$acl_save_prefix"
21399 case "$x" in
21400 -L*)
21401 dir=`echo "X$x" | sed -e 's/^X-L//'`
21402 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21403 found_dir="$dir"
21404 found_so="$dir/lib$name.$shlibext"
21405 if test -f "$dir/lib$name.la"; then
21406 found_la="$dir/lib$name.la"
21408 else
21409 if test -f "$dir/lib$name.$libext"; then
21410 found_dir="$dir"
21411 found_a="$dir/lib$name.$libext"
21412 if test -f "$dir/lib$name.la"; then
21413 found_la="$dir/lib$name.la"
21418 esac
21419 if test "X$found_dir" != "X"; then
21420 break
21422 done
21424 if test "X$found_dir" != "X"; then
21425 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21426 if test "X$found_so" != "X"; then
21427 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21428 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21429 else
21430 haveit=
21431 for x in $ltrpathdirs; do
21432 if test "X$x" = "X$found_dir"; then
21433 haveit=yes
21434 break
21436 done
21437 if test -z "$haveit"; then
21438 ltrpathdirs="$ltrpathdirs $found_dir"
21440 if test "$hardcode_direct" = yes; then
21441 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21442 else
21443 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21444 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21445 haveit=
21446 for x in $rpathdirs; do
21447 if test "X$x" = "X$found_dir"; then
21448 haveit=yes
21449 break
21451 done
21452 if test -z "$haveit"; then
21453 rpathdirs="$rpathdirs $found_dir"
21455 else
21456 haveit=
21457 for x in $LDFLAGS $LIBICONV; do
21459 acl_save_prefix="$prefix"
21460 prefix="$acl_final_prefix"
21461 acl_save_exec_prefix="$exec_prefix"
21462 exec_prefix="$acl_final_exec_prefix"
21463 eval x=\"$x\"
21464 exec_prefix="$acl_save_exec_prefix"
21465 prefix="$acl_save_prefix"
21467 if test "X$x" = "X-L$found_dir"; then
21468 haveit=yes
21469 break
21471 done
21472 if test -z "$haveit"; then
21473 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21475 if test "$hardcode_minus_L" != no; then
21476 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21477 else
21478 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21483 else
21484 if test "X$found_a" != "X"; then
21485 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21486 else
21487 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21490 additional_includedir=
21491 case "$found_dir" in
21492 */lib | */lib/)
21493 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21494 additional_includedir="$basedir/include"
21496 esac
21497 if test "X$additional_includedir" != "X"; then
21498 if test "X$additional_includedir" != "X/usr/include"; then
21499 haveit=
21500 if test "X$additional_includedir" = "X/usr/local/include"; then
21501 if test -n "$GCC"; then
21502 case $host_os in
21503 linux*) haveit=yes;;
21504 esac
21507 if test -z "$haveit"; then
21508 for x in $CPPFLAGS $INCICONV; do
21510 acl_save_prefix="$prefix"
21511 prefix="$acl_final_prefix"
21512 acl_save_exec_prefix="$exec_prefix"
21513 exec_prefix="$acl_final_exec_prefix"
21514 eval x=\"$x\"
21515 exec_prefix="$acl_save_exec_prefix"
21516 prefix="$acl_save_prefix"
21518 if test "X$x" = "X-I$additional_includedir"; then
21519 haveit=yes
21520 break
21522 done
21523 if test -z "$haveit"; then
21524 if test -d "$additional_includedir"; then
21525 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21531 if test -n "$found_la"; then
21532 save_libdir="$libdir"
21533 case "$found_la" in
21534 */* | *\\*) . "$found_la" ;;
21535 *) . "./$found_la" ;;
21536 esac
21537 libdir="$save_libdir"
21538 for dep in $dependency_libs; do
21539 case "$dep" in
21540 -L*)
21541 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21542 if test "X$additional_libdir" != "X/usr/lib"; then
21543 haveit=
21544 if test "X$additional_libdir" = "X/usr/local/lib"; then
21545 if test -n "$GCC"; then
21546 case $host_os in
21547 linux*) haveit=yes;;
21548 esac
21551 if test -z "$haveit"; then
21552 haveit=
21553 for x in $LDFLAGS $LIBICONV; do
21555 acl_save_prefix="$prefix"
21556 prefix="$acl_final_prefix"
21557 acl_save_exec_prefix="$exec_prefix"
21558 exec_prefix="$acl_final_exec_prefix"
21559 eval x=\"$x\"
21560 exec_prefix="$acl_save_exec_prefix"
21561 prefix="$acl_save_prefix"
21563 if test "X$x" = "X-L$additional_libdir"; then
21564 haveit=yes
21565 break
21567 done
21568 if test -z "$haveit"; then
21569 if test -d "$additional_libdir"; then
21570 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21573 haveit=
21574 for x in $LDFLAGS $LTLIBICONV; do
21576 acl_save_prefix="$prefix"
21577 prefix="$acl_final_prefix"
21578 acl_save_exec_prefix="$exec_prefix"
21579 exec_prefix="$acl_final_exec_prefix"
21580 eval x=\"$x\"
21581 exec_prefix="$acl_save_exec_prefix"
21582 prefix="$acl_save_prefix"
21584 if test "X$x" = "X-L$additional_libdir"; then
21585 haveit=yes
21586 break
21588 done
21589 if test -z "$haveit"; then
21590 if test -d "$additional_libdir"; then
21591 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21597 -R*)
21598 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21599 if test "$enable_rpath" != no; then
21600 haveit=
21601 for x in $rpathdirs; do
21602 if test "X$x" = "X$dir"; then
21603 haveit=yes
21604 break
21606 done
21607 if test -z "$haveit"; then
21608 rpathdirs="$rpathdirs $dir"
21610 haveit=
21611 for x in $ltrpathdirs; do
21612 if test "X$x" = "X$dir"; then
21613 haveit=yes
21614 break
21616 done
21617 if test -z "$haveit"; then
21618 ltrpathdirs="$ltrpathdirs $dir"
21622 -l*)
21623 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21625 *.la)
21626 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21629 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21630 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21632 esac
21633 done
21635 else
21636 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21637 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21641 done
21642 done
21643 if test "X$rpathdirs" != "X"; then
21644 if test -n "$hardcode_libdir_separator"; then
21645 alldirs=
21646 for found_dir in $rpathdirs; do
21647 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21648 done
21649 acl_save_libdir="$libdir"
21650 libdir="$alldirs"
21651 eval flag=\"$hardcode_libdir_flag_spec\"
21652 libdir="$acl_save_libdir"
21653 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21654 else
21655 for found_dir in $rpathdirs; do
21656 acl_save_libdir="$libdir"
21657 libdir="$found_dir"
21658 eval flag=\"$hardcode_libdir_flag_spec\"
21659 libdir="$acl_save_libdir"
21660 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21661 done
21664 if test "X$ltrpathdirs" != "X"; then
21665 for found_dir in $ltrpathdirs; do
21666 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21667 done
21676 am_save_CPPFLAGS="$CPPFLAGS"
21678 for element in $INCICONV; do
21679 haveit=
21680 for x in $CPPFLAGS; do
21682 acl_save_prefix="$prefix"
21683 prefix="$acl_final_prefix"
21684 acl_save_exec_prefix="$exec_prefix"
21685 exec_prefix="$acl_final_exec_prefix"
21686 eval x=\"$x\"
21687 exec_prefix="$acl_save_exec_prefix"
21688 prefix="$acl_save_prefix"
21690 if test "X$x" = "X$element"; then
21691 haveit=yes
21692 break
21694 done
21695 if test -z "$haveit"; then
21696 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21698 done
21701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
21702 $as_echo_n "checking for iconv... " >&6; }
21703 if test "${am_cv_func_iconv+set}" = set; then :
21704 $as_echo_n "(cached) " >&6
21705 else
21707 am_cv_func_iconv="no, consider installing GNU libiconv"
21708 am_cv_lib_iconv=no
21709 if test x$gcc_no_link = xyes; then
21710 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21713 /* end confdefs.h. */
21714 #include <stdlib.h>
21715 #include <iconv.h>
21717 main ()
21719 iconv_t cd = iconv_open("","");
21720 iconv(cd,NULL,NULL,NULL,NULL);
21721 iconv_close(cd);
21723 return 0;
21725 _ACEOF
21726 if ac_fn_c_try_link "$LINENO"; then :
21727 am_cv_func_iconv=yes
21729 rm -f core conftest.err conftest.$ac_objext \
21730 conftest$ac_exeext conftest.$ac_ext
21731 if test "$am_cv_func_iconv" != yes; then
21732 am_save_LIBS="$LIBS"
21733 LIBS="$LIBS $LIBICONV"
21734 if test x$gcc_no_link = xyes; then
21735 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21738 /* end confdefs.h. */
21739 #include <stdlib.h>
21740 #include <iconv.h>
21742 main ()
21744 iconv_t cd = iconv_open("","");
21745 iconv(cd,NULL,NULL,NULL,NULL);
21746 iconv_close(cd);
21748 return 0;
21750 _ACEOF
21751 if ac_fn_c_try_link "$LINENO"; then :
21752 am_cv_lib_iconv=yes
21753 am_cv_func_iconv=yes
21755 rm -f core conftest.err conftest.$ac_objext \
21756 conftest$ac_exeext conftest.$ac_ext
21757 LIBS="$am_save_LIBS"
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
21762 $as_echo "$am_cv_func_iconv" >&6; }
21763 if test "$am_cv_func_iconv" = yes; then
21765 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
21768 if test "$am_cv_lib_iconv" = yes; then
21769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
21770 $as_echo_n "checking how to link with libiconv... " >&6; }
21771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
21772 $as_echo "$LIBICONV" >&6; }
21773 else
21774 CPPFLAGS="$am_save_CPPFLAGS"
21775 LIBICONV=
21776 LTLIBICONV=
21781 if test "$am_cv_func_iconv" = yes; then
21782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
21783 $as_echo_n "checking for iconv declaration... " >&6; }
21784 if test "${am_cv_proto_iconv+set}" = set; then :
21785 $as_echo_n "(cached) " >&6
21786 else
21788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21789 /* end confdefs.h. */
21791 #include <stdlib.h>
21792 #include <iconv.h>
21793 extern
21794 #ifdef __cplusplus
21796 #endif
21797 #if defined(__STDC__) || defined(__cplusplus)
21798 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21799 #else
21800 size_t iconv();
21801 #endif
21804 main ()
21808 return 0;
21810 _ACEOF
21811 if ac_fn_c_try_compile "$LINENO"; then :
21812 am_cv_proto_iconv_arg1=""
21813 else
21814 am_cv_proto_iconv_arg1="const"
21816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21817 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);"
21820 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
21822 }$am_cv_proto_iconv" >&5
21823 $as_echo "${ac_t:-
21824 }$am_cv_proto_iconv" >&6; }
21826 cat >>confdefs.h <<_ACEOF
21827 #define ICONV_CONST $am_cv_proto_iconv_arg1
21828 _ACEOF
21833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
21834 $as_echo_n "checking for LC_MESSAGES... " >&6; }
21835 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
21836 $as_echo_n "(cached) " >&6
21837 else
21838 if test x$gcc_no_link = xyes; then
21839 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21842 /* end confdefs.h. */
21843 #include <locale.h>
21845 main ()
21847 return LC_MESSAGES
21849 return 0;
21851 _ACEOF
21852 if ac_fn_c_try_link "$LINENO"; then :
21853 am_cv_val_LC_MESSAGES=yes
21854 else
21855 am_cv_val_LC_MESSAGES=no
21857 rm -f core conftest.err conftest.$ac_objext \
21858 conftest$ac_exeext conftest.$ac_ext
21860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
21861 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
21862 if test $am_cv_val_LC_MESSAGES = yes; then
21864 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
21868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21869 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21870 if test "${ac_cv_struct_tm+set}" = set; then :
21871 $as_echo_n "(cached) " >&6
21872 else
21873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21874 /* end confdefs.h. */
21875 #include <sys/types.h>
21876 #include <time.h>
21879 main ()
21881 struct tm tm;
21882 int *p = &tm.tm_sec;
21883 return !p;
21885 return 0;
21887 _ACEOF
21888 if ac_fn_c_try_compile "$LINENO"; then :
21889 ac_cv_struct_tm=time.h
21890 else
21891 ac_cv_struct_tm=sys/time.h
21893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21896 $as_echo "$ac_cv_struct_tm" >&6; }
21897 if test $ac_cv_struct_tm = sys/time.h; then
21899 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21903 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21904 #include <$ac_cv_struct_tm>
21907 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21909 cat >>confdefs.h <<_ACEOF
21910 #define HAVE_STRUCT_TM_TM_ZONE 1
21911 _ACEOF
21916 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21918 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21920 else
21921 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21923 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21924 ac_have_decl=1
21925 else
21926 ac_have_decl=0
21929 cat >>confdefs.h <<_ACEOF
21930 #define HAVE_DECL_TZNAME $ac_have_decl
21931 _ACEOF
21933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21934 $as_echo_n "checking for tzname... " >&6; }
21935 if test "${ac_cv_var_tzname+set}" = set; then :
21936 $as_echo_n "(cached) " >&6
21937 else
21938 if test x$gcc_no_link = xyes; then
21939 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21942 /* end confdefs.h. */
21943 #include <time.h>
21944 #if !HAVE_DECL_TZNAME
21945 extern char *tzname[];
21946 #endif
21949 main ()
21951 return tzname[0][0];
21953 return 0;
21955 _ACEOF
21956 if ac_fn_c_try_link "$LINENO"; then :
21957 ac_cv_var_tzname=yes
21958 else
21959 ac_cv_var_tzname=no
21961 rm -f core conftest.err conftest.$ac_objext \
21962 conftest$ac_exeext conftest.$ac_ext
21964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21965 $as_echo "$ac_cv_var_tzname" >&6; }
21966 if test $ac_cv_var_tzname = yes; then
21968 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21974 for ac_func in gethostbyname_r
21975 do :
21976 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
21977 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
21978 cat >>confdefs.h <<_ACEOF
21979 #define HAVE_GETHOSTBYNAME_R 1
21980 _ACEOF
21983 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
21985 # There are two different kinds of gethostbyname_r.
21986 # We look for the one that returns `int'.
21987 # Hopefully this check is robust enough.
21988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21989 /* end confdefs.h. */
21990 #include <netdb.h>
21992 _ACEOF
21993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21994 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then :
21997 $as_echo "#define GETHOSTBYNAME_R_RETURNS_INT 1" >>confdefs.h
22000 rm -f conftest*
22003 case " $GCINCS " in
22004 *" -D_REENTRANT "*) ;;
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
22007 $as_echo_n "checking whether gethostbyname_r declaration requires -D_REENTRANT... " >&6; }
22008 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then :
22009 $as_echo_n "(cached) " >&6
22010 else
22011 ac_ext=cpp
22012 ac_cpp='$CXXCPP $CPPFLAGS'
22013 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22014 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22015 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22018 /* end confdefs.h. */
22019 #include <netdb.h>
22021 main ()
22023 gethostbyname_r("", 0, 0);
22025 return 0;
22027 _ACEOF
22028 if ac_fn_cxx_try_compile "$LINENO"; then :
22029 libjava_cv_gethostbyname_r_needs_reentrant=no
22030 else
22031 CPPFLAGS_SAVE="$CPPFLAGS"
22032 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
22033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22034 /* end confdefs.h. */
22035 #include <netdb.h>
22037 main ()
22039 gethostbyname_r("", 0, 0);
22041 return 0;
22043 _ACEOF
22044 if ac_fn_cxx_try_compile "$LINENO"; then :
22045 libjava_cv_gethostbyname_r_needs_reentrant=yes
22046 else
22047 libjava_cv_gethostbyname_r_needs_reentrant=fail
22049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22050 CPPFLAGS="$CPPFLAGS_SAVE"
22053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22054 ac_ext=c
22055 ac_cpp='$CPP $CPPFLAGS'
22056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
22063 $as_echo "$libjava_cv_gethostbyname_r_needs_reentrant" >&6; }
22064 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
22066 $as_echo "#define _REENTRANT 1" >>confdefs.h
22070 esac
22072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct hostent_data" >&5
22073 $as_echo_n "checking for struct hostent_data... " >&6; }
22074 if test "${libjava_cv_struct_hostent_data+set}" = set; then :
22075 $as_echo_n "(cached) " >&6
22076 else
22077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22078 /* end confdefs.h. */
22080 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
22081 # define _REENTRANT 1
22082 #endif
22083 #include <netdb.h>
22085 main ()
22087 struct hostent_data data;
22089 return 0;
22091 _ACEOF
22092 if ac_fn_c_try_compile "$LINENO"; then :
22093 libjava_cv_struct_hostent_data=yes
22094 else
22095 libjava_cv_struct_hostent_data=no
22097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_struct_hostent_data" >&5
22100 $as_echo "$libjava_cv_struct_hostent_data" >&6; }
22101 if test "x$libjava_cv_struct_hostent_data" = xyes; then
22103 $as_echo "#define HAVE_STRUCT_HOSTENT_DATA 1" >>confdefs.h
22108 done
22111 # FIXME: libjava source code expects to find a prototype for
22112 # gethostbyaddr_r in netdb.h. The outer check ensures that
22113 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
22114 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
22115 # linkage check is enough, yet C++ code requires proper prototypes.)
22116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22117 /* end confdefs.h. */
22118 #include <netdb.h>
22120 _ACEOF
22121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22122 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
22124 for ac_func in gethostbyaddr_r
22125 do :
22126 ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
22127 if test "x$ac_cv_func_gethostbyaddr_r" = x""yes; then :
22128 cat >>confdefs.h <<_ACEOF
22129 #define HAVE_GETHOSTBYADDR_R 1
22130 _ACEOF
22133 $as_echo "#define HAVE_GETHOSTBYADDR_R 1" >>confdefs.h
22135 # There are two different kinds of gethostbyaddr_r.
22136 # We look for the one that returns `int'.
22137 # Hopefully this check is robust enough.
22138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22139 /* end confdefs.h. */
22140 #include <netdb.h>
22142 _ACEOF
22143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22144 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then :
22147 $as_echo "#define GETHOSTBYADDR_R_RETURNS_INT 1" >>confdefs.h
22150 rm -f conftest*
22153 done
22156 rm -f conftest*
22159 for ac_func in gethostname
22160 do :
22161 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
22162 if test "x$ac_cv_func_gethostname" = x""yes; then :
22163 cat >>confdefs.h <<_ACEOF
22164 #define HAVE_GETHOSTNAME 1
22165 _ACEOF
22168 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
22170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22171 /* end confdefs.h. */
22172 #include <unistd.h>
22174 _ACEOF
22175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22176 $EGREP "gethostname" >/dev/null 2>&1; then :
22179 $as_echo "#define HAVE_GETHOSTNAME_DECL 1" >>confdefs.h
22182 rm -f conftest*
22185 done
22188 for ac_func in usleep
22189 do :
22190 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
22191 if test "x$ac_cv_func_usleep" = x""yes; then :
22192 cat >>confdefs.h <<_ACEOF
22193 #define HAVE_USLEEP 1
22194 _ACEOF
22196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22197 /* end confdefs.h. */
22198 #include <unistd.h>
22200 _ACEOF
22201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22202 $EGREP "usleep" >/dev/null 2>&1; then :
22205 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
22208 rm -f conftest*
22211 done
22214 # Look for these functions in the thread library, but only bother
22215 # if using POSIX threads.
22216 if test "$THREADS" = posix; then
22217 save_LIBS="$LIBS"
22218 LIBS="$LIBS $THREADLIBS"
22220 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
22221 # Solaris 7 the name librt is preferred.
22222 for ac_func in sched_yield
22223 do :
22224 ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
22225 if test "x$ac_cv_func_sched_yield" = x""yes; then :
22226 cat >>confdefs.h <<_ACEOF
22227 #define HAVE_SCHED_YIELD 1
22228 _ACEOF
22230 else
22232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
22233 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
22234 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
22235 $as_echo_n "(cached) " >&6
22236 else
22237 ac_check_lib_save_LIBS=$LIBS
22238 LIBS="-lrt $LIBS"
22239 if test x$gcc_no_link = xyes; then
22240 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22243 /* end confdefs.h. */
22245 /* Override any GCC internal prototype to avoid an error.
22246 Use char because int might match the return type of a GCC
22247 builtin and then its argument prototype would still apply. */
22248 #ifdef __cplusplus
22249 extern "C"
22250 #endif
22251 char sched_yield ();
22253 main ()
22255 return sched_yield ();
22257 return 0;
22259 _ACEOF
22260 if ac_fn_c_try_link "$LINENO"; then :
22261 ac_cv_lib_rt_sched_yield=yes
22262 else
22263 ac_cv_lib_rt_sched_yield=no
22265 rm -f core conftest.err conftest.$ac_objext \
22266 conftest$ac_exeext conftest.$ac_ext
22267 LIBS=$ac_check_lib_save_LIBS
22269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
22270 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
22271 if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
22273 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22275 THREADLIBS="$THREADLIBS -lrt"
22276 THREADSPEC="$THREADSPEC -lrt"
22277 else
22279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
22280 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
22281 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then :
22282 $as_echo_n "(cached) " >&6
22283 else
22284 ac_check_lib_save_LIBS=$LIBS
22285 LIBS="-lposix4 $LIBS"
22286 if test x$gcc_no_link = xyes; then
22287 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22290 /* end confdefs.h. */
22292 /* Override any GCC internal prototype to avoid an error.
22293 Use char because int might match the return type of a GCC
22294 builtin and then its argument prototype would still apply. */
22295 #ifdef __cplusplus
22296 extern "C"
22297 #endif
22298 char sched_yield ();
22300 main ()
22302 return sched_yield ();
22304 return 0;
22306 _ACEOF
22307 if ac_fn_c_try_link "$LINENO"; then :
22308 ac_cv_lib_posix4_sched_yield=yes
22309 else
22310 ac_cv_lib_posix4_sched_yield=no
22312 rm -f core conftest.err conftest.$ac_objext \
22313 conftest$ac_exeext conftest.$ac_ext
22314 LIBS=$ac_check_lib_save_LIBS
22316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
22317 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
22318 if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then :
22320 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22322 THREADLIBS="$THREADLIBS -lposix4"
22323 THREADSPEC="$THREADSPEC -lposix4"
22329 done
22332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22333 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22334 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
22335 $as_echo_n "(cached) " >&6
22336 else
22337 ac_check_lib_save_LIBS=$LIBS
22338 LIBS="-lrt $LIBS"
22339 if test x$gcc_no_link = xyes; then
22340 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22343 /* end confdefs.h. */
22345 /* Override any GCC internal prototype to avoid an error.
22346 Use char because int might match the return type of a GCC
22347 builtin and then its argument prototype would still apply. */
22348 #ifdef __cplusplus
22349 extern "C"
22350 #endif
22351 char clock_gettime ();
22353 main ()
22355 return clock_gettime ();
22357 return 0;
22359 _ACEOF
22360 if ac_fn_c_try_link "$LINENO"; then :
22361 ac_cv_lib_rt_clock_gettime=yes
22362 else
22363 ac_cv_lib_rt_clock_gettime=no
22365 rm -f core conftest.err conftest.$ac_objext \
22366 conftest$ac_exeext conftest.$ac_ext
22367 LIBS=$ac_check_lib_save_LIBS
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22370 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22371 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
22374 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22376 case "$THREADSPEC" in
22377 *-lrt*) ;;
22379 THREADSPEC="$THREADSPEC -lrt"
22380 THREADLIBS="$THREADLIBS -lrt"
22382 esac
22386 LIBS="$save_LIBS"
22388 # We can save a little space at runtime if the mutex has m_count
22389 # or __m_count. This is a nice hack for Linux.
22390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22391 /* end confdefs.h. */
22392 #include <pthread.h>
22394 main ()
22397 extern pthread_mutex_t *mutex; int q = mutex->m_count;
22400 return 0;
22402 _ACEOF
22403 if ac_fn_c_try_compile "$LINENO"; then :
22405 $as_echo "#define PTHREAD_MUTEX_HAVE_M_COUNT 1" >>confdefs.h
22407 else
22409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22410 /* end confdefs.h. */
22411 #include <pthread.h>
22413 main ()
22416 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
22419 return 0;
22421 _ACEOF
22422 if ac_fn_c_try_compile "$LINENO"; then :
22424 $as_echo "#define PTHREAD_MUTEX_HAVE___M_COUNT 1" >>confdefs.h
22427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22432 # We require a way to get the time.
22433 time_found=no
22434 for ac_func in gettimeofday time ftime
22435 do :
22436 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22437 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22438 eval as_val=\$$as_ac_var
22439 if test "x$as_val" = x""yes; then :
22440 cat >>confdefs.h <<_ACEOF
22441 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22442 _ACEOF
22443 time_found=yes
22445 done
22447 if test "$time_found" = no; then
22448 as_fn_error "no function found to get the time" "$LINENO" 5
22451 for ac_func in memmove
22452 do :
22453 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22454 if test "x$ac_cv_func_memmove" = x""yes; then :
22455 cat >>confdefs.h <<_ACEOF
22456 #define HAVE_MEMMOVE 1
22457 _ACEOF
22460 done
22463 # We require memcpy.
22464 memcpy_found=no
22465 for ac_func in memcpy
22466 do :
22467 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
22468 if test "x$ac_cv_func_memcpy" = x""yes; then :
22469 cat >>confdefs.h <<_ACEOF
22470 #define HAVE_MEMCPY 1
22471 _ACEOF
22472 memcpy_found=yes
22474 done
22476 if test "$memcpy_found" = no; then
22477 as_fn_error "memcpy is required" "$LINENO" 5
22479 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
22480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22481 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22482 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
22483 $as_echo_n "(cached) " >&6
22484 else
22485 ac_check_lib_save_LIBS=$LIBS
22486 LIBS="-ldl $LIBS"
22487 if test x$gcc_no_link = xyes; then
22488 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22491 /* end confdefs.h. */
22493 /* Override any GCC internal prototype to avoid an error.
22494 Use char because int might match the return type of a GCC
22495 builtin and then its argument prototype would still apply. */
22496 #ifdef __cplusplus
22497 extern "C"
22498 #endif
22499 char dlopen ();
22501 main ()
22503 return dlopen ();
22505 return 0;
22507 _ACEOF
22508 if ac_fn_c_try_link "$LINENO"; then :
22509 ac_cv_lib_dl_dlopen=yes
22510 else
22511 ac_cv_lib_dl_dlopen=no
22513 rm -f core conftest.err conftest.$ac_objext \
22514 conftest$ac_exeext conftest.$ac_ext
22515 LIBS=$ac_check_lib_save_LIBS
22517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22518 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22519 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
22522 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22524 else
22526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldld" >&5
22527 $as_echo_n "checking for dlopen in -ldld... " >&6; }
22528 if test "${ac_cv_lib_dld_dlopen+set}" = set; then :
22529 $as_echo_n "(cached) " >&6
22530 else
22531 ac_check_lib_save_LIBS=$LIBS
22532 LIBS="-ldld $LIBS"
22533 if test x$gcc_no_link = xyes; then
22534 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22537 /* end confdefs.h. */
22539 /* Override any GCC internal prototype to avoid an error.
22540 Use char because int might match the return type of a GCC
22541 builtin and then its argument prototype would still apply. */
22542 #ifdef __cplusplus
22543 extern "C"
22544 #endif
22545 char dlopen ();
22547 main ()
22549 return dlopen ();
22551 return 0;
22553 _ACEOF
22554 if ac_fn_c_try_link "$LINENO"; then :
22555 ac_cv_lib_dld_dlopen=yes
22556 else
22557 ac_cv_lib_dld_dlopen=no
22559 rm -f core conftest.err conftest.$ac_objext \
22560 conftest$ac_exeext conftest.$ac_ext
22561 LIBS=$ac_check_lib_save_LIBS
22563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dlopen" >&5
22564 $as_echo "$ac_cv_lib_dld_dlopen" >&6; }
22565 if test "x$ac_cv_lib_dld_dlopen" = x""yes; then :
22568 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22575 # Some library-finding code we stole from Tcl.
22576 #--------------------------------------------------------------------
22577 # Check for the existence of the -lsocket and -lnsl libraries.
22578 # The order here is important, so that they end up in the right
22579 # order in the command line generated by make. Here are some
22580 # special considerations:
22581 # 1. Use "connect" and "accept" to check for -lsocket, and
22582 # "gethostbyname" to check for -lnsl.
22583 # 2. Use each function name only once: can't redo a check because
22584 # autoconf caches the results of the last check and won't redo it.
22585 # 3. Use -lnsl and -lsocket only if they supply procedures that
22586 # aren't already present in the normal libraries. This is because
22587 # IRIX 5.2 has libraries, but they aren't needed and they're
22588 # bogus: they goof up name resolution if used.
22589 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
22590 # To get around this problem, check for both libraries together
22591 # if -lsocket doesn't work by itself.
22592 #--------------------------------------------------------------------
22594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
22595 $as_echo_n "checking for socket libraries... " >&6; }
22596 if test "${gcj_cv_lib_sockets+set}" = set; then :
22597 $as_echo_n "(cached) " >&6
22598 else
22599 gcj_cv_lib_sockets=
22600 gcj_checkBoth=0
22601 unset ac_cv_func_connect
22602 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
22603 if test "x$ac_cv_func_connect" = x""yes; then :
22604 gcj_checkSocket=0
22605 else
22606 gcj_checkSocket=1
22609 if test "$gcj_checkSocket" = 1; then
22610 unset ac_cv_func_connect
22611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
22612 $as_echo_n "checking for main in -lsocket... " >&6; }
22613 if test "${ac_cv_lib_socket_main+set}" = set; then :
22614 $as_echo_n "(cached) " >&6
22615 else
22616 ac_check_lib_save_LIBS=$LIBS
22617 LIBS="-lsocket $LIBS"
22618 if test x$gcc_no_link = xyes; then
22619 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22622 /* end confdefs.h. */
22626 main ()
22628 return main ();
22630 return 0;
22632 _ACEOF
22633 if ac_fn_c_try_link "$LINENO"; then :
22634 ac_cv_lib_socket_main=yes
22635 else
22636 ac_cv_lib_socket_main=no
22638 rm -f core conftest.err conftest.$ac_objext \
22639 conftest$ac_exeext conftest.$ac_ext
22640 LIBS=$ac_check_lib_save_LIBS
22642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
22643 $as_echo "$ac_cv_lib_socket_main" >&6; }
22644 if test "x$ac_cv_lib_socket_main" = x""yes; then :
22645 gcj_cv_lib_sockets="-lsocket"
22646 else
22647 gcj_checkBoth=1
22651 if test "$gcj_checkBoth" = 1; then
22652 gcj_oldLibs=$LIBS
22653 LIBS="$LIBS -lsocket -lnsl"
22654 unset ac_cv_func_accept
22655 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
22656 if test "x$ac_cv_func_accept" = x""yes; then :
22657 gcj_checkNsl=0
22658 gcj_cv_lib_sockets="-lsocket -lnsl"
22661 unset ac_cv_func_accept
22662 LIBS=$gcj_oldLibs
22664 unset ac_cv_func_gethostbyname
22665 gcj_oldLibs=$LIBS
22666 LIBS="$LIBS $gcj_cv_lib_sockets"
22667 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22668 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
22670 else
22671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
22672 $as_echo_n "checking for main in -lnsl... " >&6; }
22673 if test "${ac_cv_lib_nsl_main+set}" = set; then :
22674 $as_echo_n "(cached) " >&6
22675 else
22676 ac_check_lib_save_LIBS=$LIBS
22677 LIBS="-lnsl $LIBS"
22678 if test x$gcc_no_link = xyes; then
22679 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22682 /* end confdefs.h. */
22686 main ()
22688 return main ();
22690 return 0;
22692 _ACEOF
22693 if ac_fn_c_try_link "$LINENO"; then :
22694 ac_cv_lib_nsl_main=yes
22695 else
22696 ac_cv_lib_nsl_main=no
22698 rm -f core conftest.err conftest.$ac_objext \
22699 conftest$ac_exeext conftest.$ac_ext
22700 LIBS=$ac_check_lib_save_LIBS
22702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
22703 $as_echo "$ac_cv_lib_nsl_main" >&6; }
22704 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
22705 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
22710 unset ac_cv_func_gethostbyname
22711 LIBS=$gcj_oldLIBS
22714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcj_cv_lib_sockets" >&5
22715 $as_echo "$gcj_cv_lib_sockets" >&6; }
22716 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
22718 if test "$with_system_zlib" = yes; then
22719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
22720 $as_echo_n "checking for deflate in -lz... " >&6; }
22721 if test "${ac_cv_lib_z_deflate+set}" = set; then :
22722 $as_echo_n "(cached) " >&6
22723 else
22724 ac_check_lib_save_LIBS=$LIBS
22725 LIBS="-lz $LIBS"
22726 if test x$gcc_no_link = xyes; then
22727 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22730 /* end confdefs.h. */
22732 /* Override any GCC internal prototype to avoid an error.
22733 Use char because int might match the return type of a GCC
22734 builtin and then its argument prototype would still apply. */
22735 #ifdef __cplusplus
22736 extern "C"
22737 #endif
22738 char deflate ();
22740 main ()
22742 return deflate ();
22744 return 0;
22746 _ACEOF
22747 if ac_fn_c_try_link "$LINENO"; then :
22748 ac_cv_lib_z_deflate=yes
22749 else
22750 ac_cv_lib_z_deflate=no
22752 rm -f core conftest.err conftest.$ac_objext \
22753 conftest$ac_exeext conftest.$ac_ext
22754 LIBS=$ac_check_lib_save_LIBS
22756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
22757 $as_echo "$ac_cv_lib_z_deflate" >&6; }
22758 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
22759 ZLIBSPEC=-lz
22760 else
22761 ZLIBSPEC=
22766 # Test for Gtk stuff, if asked for.
22767 if test "$use_gtk_awt" = yes; then
22769 succeeded=no
22771 if test -z "$PKG_CONFIG"; then
22772 # Extract the first word of "pkg-config", so it can be a program name with args.
22773 set dummy pkg-config; ac_word=$2
22774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22775 $as_echo_n "checking for $ac_word... " >&6; }
22776 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22777 $as_echo_n "(cached) " >&6
22778 else
22779 case $PKG_CONFIG in
22780 [\\/]* | ?:[\\/]*)
22781 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22785 for as_dir in $PATH
22787 IFS=$as_save_IFS
22788 test -z "$as_dir" && as_dir=.
22789 for ac_exec_ext in '' $ac_executable_extensions; do
22790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22791 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22793 break 2
22795 done
22796 done
22797 IFS=$as_save_IFS
22799 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22801 esac
22803 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22804 if test -n "$PKG_CONFIG"; then
22805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22806 $as_echo "$PKG_CONFIG" >&6; }
22807 else
22808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22809 $as_echo "no" >&6; }
22815 if test "$PKG_CONFIG" = "no" ; then
22816 echo "*** The pkg-config script could not be found. Make sure it is"
22817 echo "*** in your path, or set the PKG_CONFIG environment variable"
22818 echo "*** to the full path to pkg-config."
22819 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22820 else
22821 PKG_CONFIG_MIN_VERSION=0.9.0
22822 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.4" >&5
22824 $as_echo_n "checking for gtk+-2.0 >= 2.4... " >&6; }
22826 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
22827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22828 $as_echo "yes" >&6; }
22829 succeeded=yes
22831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
22832 $as_echo_n "checking GTK_CFLAGS... " >&6; }
22833 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
22834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
22835 $as_echo "$GTK_CFLAGS" >&6; }
22837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
22838 $as_echo_n "checking GTK_LIBS... " >&6; }
22839 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
22840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
22841 $as_echo "$GTK_LIBS" >&6; }
22842 else
22843 GTK_CFLAGS=""
22844 GTK_LIBS=""
22845 ## If we have a custom action on failure, don't print errors, but
22846 ## do set a variable so people can do so.
22847 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
22848 echo $GTK_PKG_ERRORS
22853 else
22854 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22855 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22859 if test $succeeded = yes; then
22861 else
22862 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
22869 succeeded=no
22871 if test -z "$PKG_CONFIG"; then
22872 # Extract the first word of "pkg-config", so it can be a program name with args.
22873 set dummy pkg-config; ac_word=$2
22874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22875 $as_echo_n "checking for $ac_word... " >&6; }
22876 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22877 $as_echo_n "(cached) " >&6
22878 else
22879 case $PKG_CONFIG in
22880 [\\/]* | ?:[\\/]*)
22881 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22885 for as_dir in $PATH
22887 IFS=$as_save_IFS
22888 test -z "$as_dir" && as_dir=.
22889 for ac_exec_ext in '' $ac_executable_extensions; do
22890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22891 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22893 break 2
22895 done
22896 done
22897 IFS=$as_save_IFS
22899 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22901 esac
22903 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22904 if test -n "$PKG_CONFIG"; then
22905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22906 $as_echo "$PKG_CONFIG" >&6; }
22907 else
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22909 $as_echo "no" >&6; }
22915 if test "$PKG_CONFIG" = "no" ; then
22916 echo "*** The pkg-config script could not be found. Make sure it is"
22917 echo "*** in your path, or set the PKG_CONFIG environment variable"
22918 echo "*** to the full path to pkg-config."
22919 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22920 else
22921 PKG_CONFIG_MIN_VERSION=0.9.0
22922 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
22924 $as_echo_n "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... " >&6; }
22926 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
22927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22928 $as_echo "yes" >&6; }
22929 succeeded=yes
22931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
22932 $as_echo_n "checking GLIB_CFLAGS... " >&6; }
22933 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
22935 $as_echo "$GLIB_CFLAGS" >&6; }
22937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
22938 $as_echo_n "checking GLIB_LIBS... " >&6; }
22939 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
22941 $as_echo "$GLIB_LIBS" >&6; }
22942 else
22943 GLIB_CFLAGS=""
22944 GLIB_LIBS=""
22945 ## If we have a custom action on failure, don't print errors, but
22946 ## do set a variable so people can do so.
22947 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22948 echo $GLIB_PKG_ERRORS
22953 else
22954 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22955 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22959 if test $succeeded = yes; then
22961 else
22962 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
22969 succeeded=no
22971 if test -z "$PKG_CONFIG"; then
22972 # Extract the first word of "pkg-config", so it can be a program name with args.
22973 set dummy pkg-config; ac_word=$2
22974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22975 $as_echo_n "checking for $ac_word... " >&6; }
22976 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22977 $as_echo_n "(cached) " >&6
22978 else
22979 case $PKG_CONFIG in
22980 [\\/]* | ?:[\\/]*)
22981 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22985 for as_dir in $PATH
22987 IFS=$as_save_IFS
22988 test -z "$as_dir" && as_dir=.
22989 for ac_exec_ext in '' $ac_executable_extensions; do
22990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22991 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22993 break 2
22995 done
22996 done
22997 IFS=$as_save_IFS
22999 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23001 esac
23003 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23004 if test -n "$PKG_CONFIG"; then
23005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
23006 $as_echo "$PKG_CONFIG" >&6; }
23007 else
23008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23009 $as_echo "no" >&6; }
23015 if test "$PKG_CONFIG" = "no" ; then
23016 echo "*** The pkg-config script could not be found. Make sure it is"
23017 echo "*** in your path, or set the PKG_CONFIG environment variable"
23018 echo "*** to the full path to pkg-config."
23019 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23020 else
23021 PKG_CONFIG_MIN_VERSION=0.9.0
23022 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libart-2.0 >= 2.1" >&5
23024 $as_echo_n "checking for libart-2.0 >= 2.1... " >&6; }
23026 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
23027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23028 $as_echo "yes" >&6; }
23029 succeeded=yes
23031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_CFLAGS" >&5
23032 $as_echo_n "checking LIBART_CFLAGS... " >&6; }
23033 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
23034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_CFLAGS" >&5
23035 $as_echo "$LIBART_CFLAGS" >&6; }
23037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_LIBS" >&5
23038 $as_echo_n "checking LIBART_LIBS... " >&6; }
23039 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
23040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_LIBS" >&5
23041 $as_echo "$LIBART_LIBS" >&6; }
23042 else
23043 LIBART_CFLAGS=""
23044 LIBART_LIBS=""
23045 ## If we have a custom action on failure, don't print errors, but
23046 ## do set a variable so people can do so.
23047 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
23048 echo $LIBART_PKG_ERRORS
23053 else
23054 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23055 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23059 if test $succeeded = yes; then
23061 else
23062 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
23068 # We require the XTest Extension to support java.awt.Robot.
23069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
23070 $as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
23071 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
23072 $as_echo_n "(cached) " >&6
23073 else
23074 ac_check_lib_save_LIBS=$LIBS
23075 LIBS="-lXtst ${X_LIBS} $LIBS"
23076 if test x$gcc_no_link = xyes; then
23077 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23080 /* end confdefs.h. */
23082 /* Override any GCC internal prototype to avoid an error.
23083 Use char because int might match the return type of a GCC
23084 builtin and then its argument prototype would still apply. */
23085 #ifdef __cplusplus
23086 extern "C"
23087 #endif
23088 char XTestQueryExtension ();
23090 main ()
23092 return XTestQueryExtension ();
23094 return 0;
23096 _ACEOF
23097 if ac_fn_c_try_link "$LINENO"; then :
23098 ac_cv_lib_Xtst_XTestQueryExtension=yes
23099 else
23100 ac_cv_lib_Xtst_XTestQueryExtension=no
23102 rm -f core conftest.err conftest.$ac_objext \
23103 conftest$ac_exeext conftest.$ac_ext
23104 LIBS=$ac_check_lib_save_LIBS
23106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
23107 $as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
23108 if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
23109 true
23110 else
23111 as_fn_error "libXtst not found, required by java.awt.Robot" "$LINENO" 5
23116 # On Solaris, and maybe other architectures, the Boehm collector
23117 # requires -ldl.
23118 if test "$GC" = boehm; then
23119 case "${host}" in
23120 mips-sgi-irix6*)
23121 # IRIX 6 lacks a N64 libdl.so, but only the N32 (default multilib)
23122 # libgcj.spec is used, so override here
23123 SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}"
23125 *-*-darwin*)
23128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
23129 $as_echo_n "checking for main in -ldl... " >&6; }
23130 if test "${ac_cv_lib_dl_main+set}" = set; then :
23131 $as_echo_n "(cached) " >&6
23132 else
23133 ac_check_lib_save_LIBS=$LIBS
23134 LIBS="-ldl $LIBS"
23135 if test x$gcc_no_link = xyes; then
23136 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23139 /* end confdefs.h. */
23143 main ()
23145 return main ();
23147 return 0;
23149 _ACEOF
23150 if ac_fn_c_try_link "$LINENO"; then :
23151 ac_cv_lib_dl_main=yes
23152 else
23153 ac_cv_lib_dl_main=no
23155 rm -f core conftest.err conftest.$ac_objext \
23156 conftest$ac_exeext conftest.$ac_ext
23157 LIBS=$ac_check_lib_save_LIBS
23159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
23160 $as_echo "$ac_cv_lib_dl_main" >&6; }
23161 if test "x$ac_cv_lib_dl_main" = x""yes; then :
23162 SYSTEMSPEC="$SYSTEMSPEC -ldl"
23166 esac
23170 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
23171 case $build in
23172 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
23173 *) CLASSPATH_SEPARATOR=':' ;;
23174 esac
23177 # We must search the source tree for java.lang, since we still don't
23178 # have libgcj.jar nor java/lang/*.class
23179 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
23180 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
23182 # Since some classes depend on this one, we need its source available
23183 # before we can do any GCJ compilation test :-(
23184 if test ! -f gnu/classpath/Configuration.java; then
23185 test -d gnu || mkdir gnu
23186 test -d gnu/classpath || mkdir gnu/classpath
23187 # Note that it is not crucial that all the values here be correct.
23188 sed -e "s,@prefix@,$expanded_prefix," \
23189 -e "s,@VERSION@,$VERSION," \
23190 -e "s,@LIBDEBUG@,false," \
23191 -e "s,@INIT_LOAD_LIBRARY@,false," \
23192 -e "s,@@,$LIBGCJDEBUG," \
23193 -e "s,@default_toolkit@,$TOOLKIT," \
23194 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
23195 -e "s,@GTK_CAIRO_ENABLED@,false," \
23196 -e "s,@ECJ_JAR@,," \
23197 -e "s,@WANT_NATIVE_BIG_INTEGER@,false," \
23198 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
23199 > gnu/classpath/Configuration.java
23200 # We do not want to redirect the output of the grep below to /dev/null,
23201 # but we add /dev/null to the input list so that grep will print the
23202 # filename of Configuration.java in case it finds any matches.
23203 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
23204 as_fn_error "configure.ac is missing the substitutions above" "$LINENO" 5
23209 if test -n "$ac_tool_prefix"; then
23210 for ac_prog in gcj
23212 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23213 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23215 $as_echo_n "checking for $ac_word... " >&6; }
23216 if test "${ac_cv_prog_GCJ+set}" = set; then :
23217 $as_echo_n "(cached) " >&6
23218 else
23219 if test -n "$GCJ"; then
23220 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
23221 else
23222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23223 for as_dir in $PATH
23225 IFS=$as_save_IFS
23226 test -z "$as_dir" && as_dir=.
23227 for ac_exec_ext in '' $ac_executable_extensions; do
23228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23229 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
23230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23231 break 2
23233 done
23234 done
23235 IFS=$as_save_IFS
23239 GCJ=$ac_cv_prog_GCJ
23240 if test -n "$GCJ"; then
23241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
23242 $as_echo "$GCJ" >&6; }
23243 else
23244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23245 $as_echo "no" >&6; }
23249 test -n "$GCJ" && break
23250 done
23252 if test -z "$GCJ"; then
23253 ac_ct_GCJ=$GCJ
23254 for ac_prog in gcj
23256 # Extract the first word of "$ac_prog", so it can be a program name with args.
23257 set dummy $ac_prog; ac_word=$2
23258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23259 $as_echo_n "checking for $ac_word... " >&6; }
23260 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
23261 $as_echo_n "(cached) " >&6
23262 else
23263 if test -n "$ac_ct_GCJ"; then
23264 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
23265 else
23266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23267 for as_dir in $PATH
23269 IFS=$as_save_IFS
23270 test -z "$as_dir" && as_dir=.
23271 for ac_exec_ext in '' $ac_executable_extensions; do
23272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23273 ac_cv_prog_ac_ct_GCJ="$ac_prog"
23274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23275 break 2
23277 done
23278 done
23279 IFS=$as_save_IFS
23283 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
23284 if test -n "$ac_ct_GCJ"; then
23285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
23286 $as_echo "$ac_ct_GCJ" >&6; }
23287 else
23288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23289 $as_echo "no" >&6; }
23293 test -n "$ac_ct_GCJ" && break
23294 done
23296 if test "x$ac_ct_GCJ" = x; then
23297 GCJ="gcj"
23298 else
23299 case $cross_compiling:$ac_tool_warned in
23300 yes:)
23301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23303 ac_tool_warned=yes ;;
23304 esac
23305 GCJ=$ac_ct_GCJ
23309 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
23310 if test "x${GCJFLAGS-unset}" = xunset; then
23311 GCJFLAGS="-g -O2"
23315 depcc="$GCJ" am_compiler_list='gcc3 gcc'
23317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23318 $as_echo_n "checking dependency style of $depcc... " >&6; }
23319 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
23320 $as_echo_n "(cached) " >&6
23321 else
23322 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23323 # We make a subdir and do the tests there. Otherwise we can end up
23324 # making bogus files that we don't know about and never remove. For
23325 # instance it was reported that on HP-UX the gcc test will end up
23326 # making a dummy file named `D' -- because `-MD' means `put the output
23327 # in D'.
23328 mkdir conftest.dir
23329 # Copy depcomp to subdir because otherwise we won't find it if we're
23330 # using a relative directory.
23331 cp "$am_depcomp" conftest.dir
23332 cd conftest.dir
23333 # We will build objects and dependencies in a subdirectory because
23334 # it helps to detect inapplicable dependency modes. For instance
23335 # both Tru64's cc and ICC support -MD to output dependencies as a
23336 # side effect of compilation, but ICC will put the dependencies in
23337 # the current directory while Tru64 will put them in the object
23338 # directory.
23339 mkdir sub
23341 am_cv_GCJ_dependencies_compiler_type=none
23342 if test "$am_compiler_list" = ""; then
23343 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23345 am__universal=false
23348 for depmode in $am_compiler_list; do
23349 # Setup a source with many dependencies, because some compilers
23350 # like to wrap large dependency lists on column 80 (with \), and
23351 # we should not choose a depcomp mode which is confused by this.
23353 # We need to recreate these files for each test, as the compiler may
23354 # overwrite some of them when testing with obscure command lines.
23355 # This happens at least with the AIX C compiler.
23356 : > sub/conftest.c
23357 for i in 1 2 3 4 5 6; do
23358 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23359 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23360 # Solaris 8's {/usr,}/bin/sh.
23361 touch sub/conftst$i.h
23362 done
23363 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23365 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23366 # mode. It turns out that the SunPro C++ compiler does not properly
23367 # handle `-M -o', and we need to detect this. Also, some Intel
23368 # versions had trouble with output in subdirs
23369 am__obj=sub/conftest.${OBJEXT-o}
23370 am__minus_obj="-o $am__obj"
23371 case $depmode in
23372 gcc)
23373 # This depmode causes a compiler race in universal mode.
23374 test "$am__universal" = false || continue
23376 nosideeffect)
23377 # after this tag, mechanisms are not by side-effect, so they'll
23378 # only be used when explicitly requested
23379 if test "x$enable_dependency_tracking" = xyes; then
23380 continue
23381 else
23382 break
23385 msvisualcpp | msvcmsys)
23386 # This compiler won't grok `-c -o', but also, the minuso test has
23387 # not run yet. These depmodes are late enough in the game, and
23388 # so weak that their functioning should not be impacted.
23389 am__obj=conftest.${OBJEXT-o}
23390 am__minus_obj=
23392 none) break ;;
23393 esac
23394 if depmode=$depmode \
23395 source=sub/conftest.c object=$am__obj \
23396 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23397 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23398 >/dev/null 2>conftest.err &&
23399 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23400 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23401 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23402 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23403 # icc doesn't choke on unknown options, it will just issue warnings
23404 # or remarks (even with -Werror). So we grep stderr for any message
23405 # that says an option was ignored or not supported.
23406 # When given -MP, icc 7.0 and 7.1 complain thusly:
23407 # icc: Command line warning: ignoring option '-M'; no argument required
23408 # The diagnosis changed in icc 8.0:
23409 # icc: Command line remark: option '-MP' not supported
23410 if (grep 'ignoring option' conftest.err ||
23411 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23412 am_cv_GCJ_dependencies_compiler_type=$depmode
23413 break
23416 done
23418 cd ..
23419 rm -rf conftest.dir
23420 else
23421 am_cv_GCJ_dependencies_compiler_type=none
23425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
23426 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
23427 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
23430 test "x$enable_dependency_tracking" != xno \
23431 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
23432 am__fastdepGCJ_TRUE=
23433 am__fastdepGCJ_FALSE='#'
23434 else
23435 am__fastdepGCJ_TRUE='#'
23436 am__fastdepGCJ_FALSE=
23442 # Now remove it.
23443 rm -f gnu/classpath/Configuration.java
23445 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
23447 # The cast to long int works around a bug in the HP C Compiler
23448 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23449 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23450 # This bug is HP SR number 8606223364.
23451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
23452 $as_echo_n "checking size of void *... " >&6; }
23453 if test "${ac_cv_sizeof_void_p+set}" = set; then :
23454 $as_echo_n "(cached) " >&6
23455 else
23456 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
23458 else
23459 if test "$ac_cv_type_void_p" = yes; then
23460 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23462 { as_fn_set_status 77
23463 as_fn_error "cannot compute sizeof (void *)
23464 See \`config.log' for more details." "$LINENO" 5; }; }
23465 else
23466 ac_cv_sizeof_void_p=0
23471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
23472 $as_echo "$ac_cv_sizeof_void_p" >&6; }
23476 cat >>confdefs.h <<_ACEOF
23477 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23478 _ACEOF
23482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23483 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23484 if test "${ac_cv_c_bigendian+set}" = set; then :
23485 $as_echo_n "(cached) " >&6
23486 else
23487 ac_cv_c_bigendian=unknown
23488 # See if we're dealing with a universal compiler.
23489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23490 /* end confdefs.h. */
23491 #ifndef __APPLE_CC__
23492 not a universal capable compiler
23493 #endif
23494 typedef int dummy;
23496 _ACEOF
23497 if ac_fn_c_try_compile "$LINENO"; then :
23499 # Check for potential -arch flags. It is not universal unless
23500 # there are at least two -arch flags with different values.
23501 ac_arch=
23502 ac_prev=
23503 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23504 if test -n "$ac_prev"; then
23505 case $ac_word in
23506 i?86 | x86_64 | ppc | ppc64)
23507 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23508 ac_arch=$ac_word
23509 else
23510 ac_cv_c_bigendian=universal
23511 break
23514 esac
23515 ac_prev=
23516 elif test "x$ac_word" = "x-arch"; then
23517 ac_prev=arch
23519 done
23521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23522 if test $ac_cv_c_bigendian = unknown; then
23523 # See if sys/param.h defines the BYTE_ORDER macro.
23524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23525 /* end confdefs.h. */
23526 #include <sys/types.h>
23527 #include <sys/param.h>
23530 main ()
23532 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23533 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23534 && LITTLE_ENDIAN)
23535 bogus endian macros
23536 #endif
23539 return 0;
23541 _ACEOF
23542 if ac_fn_c_try_compile "$LINENO"; then :
23543 # It does; now see whether it defined to BIG_ENDIAN or not.
23544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23545 /* end confdefs.h. */
23546 #include <sys/types.h>
23547 #include <sys/param.h>
23550 main ()
23552 #if BYTE_ORDER != BIG_ENDIAN
23553 not big endian
23554 #endif
23557 return 0;
23559 _ACEOF
23560 if ac_fn_c_try_compile "$LINENO"; then :
23561 ac_cv_c_bigendian=yes
23562 else
23563 ac_cv_c_bigendian=no
23565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23569 if test $ac_cv_c_bigendian = unknown; then
23570 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23572 /* end confdefs.h. */
23573 #include <limits.h>
23576 main ()
23578 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23579 bogus endian macros
23580 #endif
23583 return 0;
23585 _ACEOF
23586 if ac_fn_c_try_compile "$LINENO"; then :
23587 # It does; now see whether it defined to _BIG_ENDIAN or not.
23588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23589 /* end confdefs.h. */
23590 #include <limits.h>
23593 main ()
23595 #ifndef _BIG_ENDIAN
23596 not big endian
23597 #endif
23600 return 0;
23602 _ACEOF
23603 if ac_fn_c_try_compile "$LINENO"; then :
23604 ac_cv_c_bigendian=yes
23605 else
23606 ac_cv_c_bigendian=no
23608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23612 if test $ac_cv_c_bigendian = unknown; then
23613 # Compile a test program.
23614 if test "$cross_compiling" = yes; then :
23615 # Try to guess by grepping values from an object file.
23616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23617 /* end confdefs.h. */
23618 short int ascii_mm[] =
23619 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23620 short int ascii_ii[] =
23621 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23622 int use_ascii (int i) {
23623 return ascii_mm[i] + ascii_ii[i];
23625 short int ebcdic_ii[] =
23626 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23627 short int ebcdic_mm[] =
23628 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23629 int use_ebcdic (int i) {
23630 return ebcdic_mm[i] + ebcdic_ii[i];
23632 extern int foo;
23635 main ()
23637 return use_ascii (foo) == use_ebcdic (foo);
23639 return 0;
23641 _ACEOF
23642 if ac_fn_c_try_compile "$LINENO"; then :
23643 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23644 ac_cv_c_bigendian=yes
23646 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23647 if test "$ac_cv_c_bigendian" = unknown; then
23648 ac_cv_c_bigendian=no
23649 else
23650 # finding both strings is unlikely to happen, but who knows?
23651 ac_cv_c_bigendian=unknown
23655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23656 else
23657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23658 /* end confdefs.h. */
23659 $ac_includes_default
23661 main ()
23664 /* Are we little or big endian? From Harbison&Steele. */
23665 union
23667 long int l;
23668 char c[sizeof (long int)];
23669 } u;
23670 u.l = 1;
23671 return u.c[sizeof (long int) - 1] == 1;
23674 return 0;
23676 _ACEOF
23677 if ac_fn_c_try_run "$LINENO"; then :
23678 ac_cv_c_bigendian=no
23679 else
23680 ac_cv_c_bigendian=yes
23682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23683 conftest.$ac_objext conftest.beam conftest.$ac_ext
23688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23689 $as_echo "$ac_cv_c_bigendian" >&6; }
23690 case $ac_cv_c_bigendian in #(
23691 yes)
23692 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23693 ;; #(
23695 ;; #(
23696 universal)
23698 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23700 ;; #(
23702 as_fn_error "unknown endianness
23703 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23704 esac
23707 ZLIBS=
23708 SYS_ZLIBS=
23709 ZINCS=
23711 if test -z "$ZLIBSPEC"; then
23712 # Use zlib from the GCC tree.
23713 ZINCS='-I$(top_srcdir)/../zlib'
23714 ZLIBS=../zlib/libzgcj_convenience.la
23715 else
23716 # System's zlib.
23717 SYS_ZLIBS="$ZLIBSPEC"
23729 if test "$NATIVE" = yes; then
23730 NATIVE_TRUE=
23731 NATIVE_FALSE='#'
23732 else
23733 NATIVE_TRUE='#'
23734 NATIVE_FALSE=
23737 if test "$enable_shared" = yes; then
23738 ENABLE_SHARED_TRUE=
23739 ENABLE_SHARED_FALSE='#'
23740 else
23741 ENABLE_SHARED_TRUE='#'
23742 ENABLE_SHARED_FALSE=
23745 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
23746 NEEDS_DATA_START_TRUE=
23747 NEEDS_DATA_START_FALSE='#'
23748 else
23749 NEEDS_DATA_START_TRUE='#'
23750 NEEDS_DATA_START_FALSE=
23753 if test -z "${with_multisubdir}"; then
23754 INSTALL_BINARIES_TRUE=
23755 INSTALL_BINARIES_FALSE='#'
23756 else
23757 INSTALL_BINARIES_TRUE='#'
23758 INSTALL_BINARIES_FALSE=
23763 # Process the option "--enable-version-specific-runtime-libs"
23764 # Calculate toolexeclibdir
23765 case ${version_specific_libs} in
23766 yes)
23767 # Need the gcc compiler version to know where to install libraries
23768 # and header files if --enable-version-specific-runtime-libs option
23769 # is selected.
23770 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
23771 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
23772 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
23773 toolexeclibdir=$toolexecmainlibdir
23776 if test -n "$with_cross_host" &&
23777 test x"$with_cross_host" != x"no"; then
23778 # Install a library built with a cross compiler in tooldir, not libdir.
23779 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
23780 toolexecmainlibdir='$(toolexecdir)/lib'
23781 else
23782 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
23783 toolexecmainlibdir='$(libdir)'
23785 multi_os_directory=`$CC -print-multi-os-directory`
23786 case $multi_os_directory in
23787 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
23788 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
23789 esac
23791 esac
23796 # Determine gcj and libgcj version number.
23797 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
23798 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
23799 GCJVERSION=$gcjversion
23802 cat >>confdefs.h <<_ACEOF
23803 #define GCJVERSION "$GCJVERSION"
23804 _ACEOF
23807 # Determine where the standard .db file and GNU Classpath JNI
23808 # libraries are found.
23809 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
23810 multi_os_directory=`$CC -print-multi-os-directory`
23811 case $multi_os_directory in
23813 dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
23816 dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
23818 esac
23823 $as_echo "#define JV_VERSION \"1.5.0\"" >>confdefs.h
23826 $as_echo "#define JV_API_VERSION \"1.5\"" >>confdefs.h
23830 case "${with_gxx_include_dir}" in
23831 yes)
23832 as_fn_error "--with-gxx-include-dir=[dir] requires a directory" "$LINENO" 5
23834 no | "")
23835 case "${enable_version_specific_runtime_libs}" in
23836 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
23838 libstdcxx_incdir='c++/$(gcc_version)'
23839 gxx_include_dir='include/$(libstdcxx_incdir)'
23840 if test -n "$with_cross_host" &&
23841 test x"$with_cross_host" != x"no"; then
23842 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
23843 else
23844 gxx_include_dir='${prefix}/'"$gxx_include_dir"
23845 fi;;
23846 esac ;;
23847 *) gxx_include_dir=${with_gxx_include_dir} ;;
23848 esac
23853 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
23854 # On that system, sys/ioctl.h will not include sys/filio.h unless
23855 # BSD_COMP is defined; just including sys/filio.h is simpler.
23856 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
23857 # for now. If you change this, you also must update natFile.cc.
23858 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
23859 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
23860 sys/socket.h netinet/in.h arpa/inet.h netdb.h \
23861 pwd.h sys/config.h stdint.h langinfo.h locale.h \
23862 dirent.h sys/rw_lock.h magic.h ifaddrs.h
23863 do :
23864 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23865 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23866 eval as_val=\$$as_ac_Header
23867 if test "x$as_val" = x""yes; then :
23868 cat >>confdefs.h <<_ACEOF
23869 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23870 _ACEOF
23874 done
23877 # sys/socket.h is a prerequisite for net/if.h on Solaris.
23878 for ac_header in net/if.h
23879 do :
23880 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
23881 #ifdef HAVE_SYS_SOCKET_H
23882 #include <sys/socket.h>
23883 #endif
23886 if test "x$ac_cv_header_net_if_h" = x""yes; then :
23887 cat >>confdefs.h <<_ACEOF
23888 #define HAVE_NET_IF_H 1
23889 _ACEOF
23893 done
23896 for ac_header in inttypes.h
23897 do :
23898 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
23899 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
23900 cat >>confdefs.h <<_ACEOF
23901 #define HAVE_INTTYPES_H 1
23902 _ACEOF
23905 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
23908 $as_echo "#define JV_HAVE_INTTYPES_H 1" >>confdefs.h
23913 done
23916 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23917 if test "x$ac_cv_type_ssize_t" = x""yes; then :
23919 else
23921 cat >>confdefs.h <<_ACEOF
23922 #define ssize_t int
23923 _ACEOF
23927 ac_fn_c_check_type "$LINENO" "magic_t" "ac_cv_type_magic_t" "
23928 #ifdef HAVE_MAGIC_H
23929 #include <magic.h>
23930 #endif
23932 if test "x$ac_cv_type_magic_t" = x""yes; then :
23935 $as_echo "#define HAVE_MAGIC_T 1" >>confdefs.h
23940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5
23941 $as_echo_n "checking for in_addr_t... " >&6; }
23942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23943 /* end confdefs.h. */
23944 #include <sys/types.h>
23945 #if STDC_HEADERS
23946 #include <stdlib.h>
23947 #include <stddef.h>
23948 #endif
23949 #if HAVE_NETINET_IN_H
23950 #include <netinet/in.h>
23951 #endif
23953 main ()
23955 in_addr_t foo;
23957 return 0;
23959 _ACEOF
23960 if ac_fn_c_try_compile "$LINENO"; then :
23962 $as_echo "#define HAVE_IN_ADDR_T 1" >>confdefs.h
23964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23965 $as_echo "yes" >&6; }
23966 else
23967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23968 $as_echo "no" >&6; }
23970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ip_mreq is in netinet/in.h" >&5
23973 $as_echo_n "checking whether struct ip_mreq is in netinet/in.h... " >&6; }
23974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23975 /* end confdefs.h. */
23976 #include <netinet/in.h>
23978 main ()
23980 struct ip_mreq mreq;
23982 return 0;
23984 _ACEOF
23985 if ac_fn_c_try_compile "$LINENO"; then :
23987 $as_echo "#define HAVE_STRUCT_IP_MREQ 1" >>confdefs.h
23989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23990 $as_echo "yes" >&6; }
23991 else
23992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23993 $as_echo "no" >&6; }
23995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ipv6_mreq is in netinet/in.h" >&5
23998 $as_echo_n "checking whether struct ipv6_mreq is in netinet/in.h... " >&6; }
23999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24000 /* end confdefs.h. */
24001 #include <netinet/in.h>
24003 main ()
24005 struct ipv6_mreq mreq6;
24007 return 0;
24009 _ACEOF
24010 if ac_fn_c_try_compile "$LINENO"; then :
24012 $as_echo "#define HAVE_STRUCT_IPV6_MREQ 1" >>confdefs.h
24014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24015 $as_echo "yes" >&6; }
24016 else
24017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24018 $as_echo "no" >&6; }
24020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
24023 $as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
24024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24025 /* end confdefs.h. */
24026 #include <netinet/in.h>
24028 main ()
24030 struct sockaddr_in6 addr6;
24032 return 0;
24034 _ACEOF
24035 if ac_fn_c_try_compile "$LINENO"; then :
24037 $as_echo "#define HAVE_INET6 1" >>confdefs.h
24039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24040 $as_echo "yes" >&6; }
24041 else
24042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24043 $as_echo "no" >&6; }
24045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
24048 $as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
24049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24050 /* end confdefs.h. */
24051 #define _POSIX_PII_SOCKET
24052 #include <sys/types.h>
24053 #include <sys/socket.h>
24055 main ()
24057 socklen_t x = 5;
24059 return 0;
24061 _ACEOF
24062 if ac_fn_c_try_compile "$LINENO"; then :
24064 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
24066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24067 $as_echo "yes" >&6; }
24068 else
24069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24070 $as_echo "no" >&6; }
24072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
24075 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
24076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24077 /* end confdefs.h. */
24078 #include <time.h>
24080 main ()
24082 struct tm tim; tim.tm_gmtoff = 0;
24084 return 0;
24086 _ACEOF
24087 if ac_fn_c_try_compile "$LINENO"; then :
24089 $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
24091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24092 $as_echo "yes" >&6; }
24093 else
24094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24095 $as_echo "no" >&6; }
24096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
24097 $as_echo_n "checking for global timezone variable... " >&6; }
24098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24099 /* end confdefs.h. */
24100 #include <time.h>
24102 main ()
24104 void i(){long z2 = 2*timezone;}
24106 return 0;
24108 _ACEOF
24109 if ac_fn_c_try_compile "$LINENO"; then :
24111 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24114 $as_echo "yes" >&6; }
24115 else
24116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24117 $as_echo "no" >&6; }
24118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
24119 $as_echo_n "checking for global _timezone variable... " >&6; }
24120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24121 /* end confdefs.h. */
24122 #include <time.h>
24124 main ()
24126 long z2 = _timezone;
24128 return 0;
24130 _ACEOF
24131 if ac_fn_c_try_compile "$LINENO"; then :
24133 $as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
24135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24136 $as_echo "yes" >&6; }
24137 else
24138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24139 $as_echo "no" >&6; }
24141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24147 for ac_prog in perl
24149 # Extract the first word of "$ac_prog", so it can be a program name with args.
24150 set dummy $ac_prog; ac_word=$2
24151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24152 $as_echo_n "checking for $ac_word... " >&6; }
24153 if test "${ac_cv_prog_PERL+set}" = set; then :
24154 $as_echo_n "(cached) " >&6
24155 else
24156 if test -n "$PERL"; then
24157 ac_cv_prog_PERL="$PERL" # Let the user override the test.
24158 else
24159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24160 for as_dir in $PATH
24162 IFS=$as_save_IFS
24163 test -z "$as_dir" && as_dir=.
24164 for ac_exec_ext in '' $ac_executable_extensions; do
24165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24166 ac_cv_prog_PERL="$ac_prog"
24167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24168 break 2
24170 done
24171 done
24172 IFS=$as_save_IFS
24176 PERL=$ac_cv_prog_PERL
24177 if test -n "$PERL"; then
24178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
24179 $as_echo "$PERL" >&6; }
24180 else
24181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24182 $as_echo "no" >&6; }
24186 test -n "$PERL" && break
24187 done
24188 test -n "$PERL" || PERL="false"
24191 SYSDEP_SOURCES=
24192 SIGNAL_HANDLER_AUX=
24194 case "${host}" in
24195 i?86-*-linux*)
24196 SIGNAL_HANDLER=include/i386-signal.h
24198 *-*-solaris2*)
24199 SIGNAL_HANDLER=include/solaris-signal.h
24201 # ia64-*)
24202 # SYSDEP_SOURCES=sysdep/ia64.c
24203 # test -d sysdep || mkdir sysdep
24204 # ;;
24205 hppa*-*-linux*)
24206 SIGNAL_HANDLER=include/pa-signal.h
24208 hppa*-hp-hpux*)
24209 SIGNAL_HANDLER=include/hppa-signal.h
24211 ia64-*-linux*)
24212 SIGNAL_HANDLER=include/dwarf2-signal.h
24214 powerpc*-*-linux*)
24215 SIGNAL_HANDLER=include/powerpc-signal.h
24217 alpha*-*-linux*)
24218 SIGNAL_HANDLER=include/dwarf2-signal.h
24220 s390*-*-linux*)
24221 SIGNAL_HANDLER=include/s390-signal.h
24223 x86_64*-*-linux*)
24224 SIGNAL_HANDLER=include/x86_64-signal.h
24225 SIGNAL_HANDLER_AUX=include/i386-signal.h
24227 sparc*-*-linux*)
24228 SIGNAL_HANDLER=include/dwarf2-signal.h
24230 sh*-*-linux*)
24231 SIGNAL_HANDLER=include/sh-signal.h
24233 *mingw*)
24234 SIGNAL_HANDLER=include/win32-signal.h
24236 mips*-*-linux*)
24237 SIGNAL_HANDLER=include/mips-signal.h
24239 m68*-*-linux*)
24240 SIGNAL_HANDLER=include/dwarf2-signal.h
24242 powerpc*-*-darwin* | i?86-*-darwin[912]* | x86_64-*-darwin[912]*)
24243 SIGNAL_HANDLER=include/darwin-signal.h
24245 powerpc*-*-aix*)
24246 SIGNAL_HANDLER=include/aix-signal.h
24249 SIGNAL_HANDLER=include/default-signal.h
24251 esac
24253 # If we're using sjlj exceptions, forget what we just learned.
24254 if test "$enable_sjlj_exceptions" = yes; then
24255 SIGNAL_HANDLER=include/default-signal.h
24256 SIGNAL_HANDLER_AUX=
24261 if test -z "$SIGNAL_HANDLER_AUX"; then
24262 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
24265 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
24268 if test "${multilib}" = "yes"; then
24269 multilib_arg="--enable-multilib"
24270 else
24271 multilib_arg=
24274 # See if we support thread-local storage.
24277 # Check whether --enable-tls was given.
24278 if test "${enable_tls+set}" = set; then :
24279 enableval=$enable_tls;
24280 case "$enableval" in
24281 yes|no) ;;
24282 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
24283 esac
24285 else
24286 enable_tls=yes
24290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
24291 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
24292 if test "${gcc_cv_have_tls+set}" = set; then :
24293 $as_echo_n "(cached) " >&6
24294 else
24296 if test "$cross_compiling" = yes; then :
24297 if test x$gcc_no_link = xyes; then
24298 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24301 /* end confdefs.h. */
24302 __thread int a; int b; int main() { return a = b; }
24303 _ACEOF
24304 if ac_fn_c_try_link "$LINENO"; then :
24305 chktls_save_LDFLAGS="$LDFLAGS"
24306 case $host in
24307 *-*-linux*)
24308 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
24310 esac
24311 chktls_save_CFLAGS="$CFLAGS"
24312 CFLAGS="-fPIC $CFLAGS"
24313 if test x$gcc_no_link = xyes; then
24314 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24317 /* end confdefs.h. */
24318 int f() { return 0; }
24319 _ACEOF
24320 if ac_fn_c_try_link "$LINENO"; then :
24321 if test x$gcc_no_link = xyes; then
24322 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24325 /* end confdefs.h. */
24326 __thread int a; int b; int f() { return a = b; }
24327 _ACEOF
24328 if ac_fn_c_try_link "$LINENO"; then :
24329 gcc_cv_have_tls=yes
24330 else
24331 gcc_cv_have_tls=no
24333 rm -f core conftest.err conftest.$ac_objext \
24334 conftest$ac_exeext conftest.$ac_ext
24335 else
24336 gcc_cv_have_tls=yes
24338 rm -f core conftest.err conftest.$ac_objext \
24339 conftest$ac_exeext conftest.$ac_ext
24340 CFLAGS="$chktls_save_CFLAGS"
24341 LDFLAGS="$chktls_save_LDFLAGS"
24342 else
24343 gcc_cv_have_tls=no
24345 rm -f core conftest.err conftest.$ac_objext \
24346 conftest$ac_exeext conftest.$ac_ext
24349 else
24350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24351 /* end confdefs.h. */
24352 __thread int a; int b; int main() { return a = b; }
24353 _ACEOF
24354 if ac_fn_c_try_run "$LINENO"; then :
24355 chktls_save_LDFLAGS="$LDFLAGS"
24356 LDFLAGS="-static $LDFLAGS"
24357 if test x$gcc_no_link = xyes; then
24358 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24361 /* end confdefs.h. */
24362 int main() { return 0; }
24363 _ACEOF
24364 if ac_fn_c_try_link "$LINENO"; then :
24365 if test "$cross_compiling" = yes; then :
24366 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24368 as_fn_error "cannot run test program while cross compiling
24369 See \`config.log' for more details." "$LINENO" 5; }
24370 else
24371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24372 /* end confdefs.h. */
24373 __thread int a; int b; int main() { return a = b; }
24374 _ACEOF
24375 if ac_fn_c_try_run "$LINENO"; then :
24376 gcc_cv_have_tls=yes
24377 else
24378 gcc_cv_have_tls=no
24380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24381 conftest.$ac_objext conftest.beam conftest.$ac_ext
24384 else
24385 gcc_cv_have_tls=yes
24387 rm -f core conftest.err conftest.$ac_objext \
24388 conftest$ac_exeext conftest.$ac_ext
24389 LDFLAGS="$chktls_save_LDFLAGS"
24390 if test $gcc_cv_have_tls = yes; then
24391 chktls_save_CFLAGS="$CFLAGS"
24392 thread_CFLAGS=failed
24393 for flag in '' '-pthread' '-lpthread'; do
24394 CFLAGS="$flag $chktls_save_CFLAGS"
24395 if test x$gcc_no_link = xyes; then
24396 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24399 /* end confdefs.h. */
24400 #include <pthread.h>
24401 void *g(void *d) { return NULL; }
24403 main ()
24405 pthread_t t; pthread_create(&t,NULL,g,NULL);
24407 return 0;
24409 _ACEOF
24410 if ac_fn_c_try_link "$LINENO"; then :
24411 thread_CFLAGS="$flag"
24413 rm -f core conftest.err conftest.$ac_objext \
24414 conftest$ac_exeext conftest.$ac_ext
24415 if test "X$thread_CFLAGS" != Xfailed; then
24416 break
24418 done
24419 CFLAGS="$chktls_save_CFLAGS"
24420 if test "X$thread_CFLAGS" != Xfailed; then
24421 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
24422 if test "$cross_compiling" = yes; then :
24423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24425 as_fn_error "cannot run test program while cross compiling
24426 See \`config.log' for more details." "$LINENO" 5; }
24427 else
24428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24429 /* end confdefs.h. */
24430 #include <pthread.h>
24431 __thread int a;
24432 static int *volatile a_in_other_thread;
24433 static void *
24434 thread_func (void *arg)
24436 a_in_other_thread = &a;
24437 return (void *)0;
24440 main ()
24442 pthread_t thread;
24443 void *thread_retval;
24444 int *volatile a_in_main_thread;
24445 a_in_main_thread = &a;
24446 if (pthread_create (&thread, (pthread_attr_t *)0,
24447 thread_func, (void *)0))
24448 return 0;
24449 if (pthread_join (thread, &thread_retval))
24450 return 0;
24451 return (a_in_other_thread == a_in_main_thread);
24453 return 0;
24455 _ACEOF
24456 if ac_fn_c_try_run "$LINENO"; then :
24457 gcc_cv_have_tls=yes
24458 else
24459 gcc_cv_have_tls=no
24461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24462 conftest.$ac_objext conftest.beam conftest.$ac_ext
24465 CFLAGS="$chktls_save_CFLAGS"
24468 else
24469 gcc_cv_have_tls=no
24471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24472 conftest.$ac_objext conftest.beam conftest.$ac_ext
24476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
24477 $as_echo "$gcc_cv_have_tls" >&6; }
24478 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
24480 $as_echo "#define HAVE_TLS 1" >>confdefs.h
24484 # For _Unwind_GetIPInfo.
24487 # Check whether --with-system-libunwind was given.
24488 if test "${with_system_libunwind+set}" = set; then :
24489 withval=$with_system_libunwind;
24492 # If system-libunwind was not specifically set, pick a default setting.
24493 if test x$with_system_libunwind = x; then
24494 case ${target} in
24495 ia64-*-hpux*) with_system_libunwind=yes ;;
24496 *) with_system_libunwind=no ;;
24497 esac
24499 # Based on system-libunwind and target, do we have ipinfo?
24500 if test x$with_system_libunwind = xyes; then
24501 case ${target} in
24502 ia64-*-*) have_unwind_getipinfo=no ;;
24503 *) have_unwind_getipinfo=yes ;;
24504 esac
24505 else
24506 # Darwin before version 9 does not have _Unwind_GetIPInfo.
24508 case ${target} in
24509 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
24510 *) have_unwind_getipinfo=yes ;;
24511 esac
24515 if test x$have_unwind_getipinfo = xyes; then
24517 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
24522 # See if linker supports anonymous version scripts.
24523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous version scripts" >&5
24524 $as_echo_n "checking whether ld supports anonymous version scripts... " >&6; }
24525 if test "${libjava_cv_anon_version_script+set}" = set; then :
24526 $as_echo_n "(cached) " >&6
24527 else
24528 save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
24529 libjava_cv_anon_version_script=no
24530 CFLAGS="$CFLAGS -fPIC";
24531 LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
24532 echo '{ global: globalsymb*; local: *; };' > conftest.map
24533 if test x$gcc_no_link = xyes; then
24534 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24537 /* end confdefs.h. */
24538 void globalsymbol (void) {} void localsymbol (void) {}
24540 main ()
24544 return 0;
24546 _ACEOF
24547 if ac_fn_c_try_link "$LINENO"; then :
24548 libjava_cv_anon_version_script=gnu
24550 rm -f core conftest.err conftest.$ac_objext \
24551 conftest$ac_exeext conftest.$ac_ext
24552 if test x$libjava_cv_anon_version_script = xno; then
24553 case "$target_os" in
24554 solaris2*)
24555 LDFLAGS="$save_LDFLAGS"
24556 LDFLAGS="$LDFLAGS -shared -Wl,-M,conftest.map"
24557 # Sun ld doesn't understand wildcards here.
24558 echo '{ global: globalsymbol; local: *; };' > conftest.map
24559 if test x$gcc_no_link = xyes; then
24560 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24563 /* end confdefs.h. */
24564 void globalsymbol (void) {} void localsymbol (void) {}
24566 main ()
24570 return 0;
24572 _ACEOF
24573 if ac_fn_c_try_link "$LINENO"; then :
24574 libjava_cv_anon_version_script=sun
24576 rm -f core conftest.err conftest.$ac_objext \
24577 conftest$ac_exeext conftest.$ac_ext
24579 esac
24581 CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
24584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_anon_version_script" >&5
24585 $as_echo "$libjava_cv_anon_version_script" >&6; }
24586 if test "$libjava_cv_anon_version_script" != no; then
24587 ANONVERSCRIPT_TRUE=
24588 ANONVERSCRIPT_FALSE='#'
24589 else
24590 ANONVERSCRIPT_TRUE='#'
24591 ANONVERSCRIPT_FALSE=
24594 if test "$libjava_cv_anon_version_script" = gnu; then
24595 ANONVERSCRIPT_GNU_TRUE=
24596 ANONVERSCRIPT_GNU_FALSE='#'
24597 else
24598 ANONVERSCRIPT_GNU_TRUE='#'
24599 ANONVERSCRIPT_GNU_FALSE=
24602 if test "$libjava_cv_anon_version_script" = sun; then
24603 ANONVERSCRIPT_SUN_TRUE=
24604 ANONVERSCRIPT_SUN_FALSE='#'
24605 else
24606 ANONVERSCRIPT_SUN_TRUE='#'
24607 ANONVERSCRIPT_SUN_FALSE=
24611 # Check if linker supports static linking on a per library basis
24612 LD_START_STATIC_SPEC=
24613 LD_FINISH_STATIC_SPEC=
24614 if $LD --help 2>&1 | grep -- -call_shared >/dev/null 2>&1; then
24615 if $LD --help 2>&1 | grep -- -non_shared >/dev/null 2>&1; then
24616 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
24617 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
24623 here=`${PWDCMD-pwd}`
24626 # We get this from the environment.
24630 # Check whether --with-python-dir was given.
24631 if test "${with_python_dir+set}" = set; then :
24632 withval=$with_python_dir; with_python_dir=$withval
24633 else
24634 with_python_dir=""
24638 if test "x${with_python_dir}" = "x"
24639 then
24640 # Needed for installing Python modules during make install.
24641 python_mod_dir="\${prefix}/share/python"
24642 # Needed for substituting into aot-compile*
24643 python_mod_dir_expanded="${expanded_prefix}/share/python"
24644 else
24645 python_mod_dir="\${prefix}${with_python_dir}"
24646 python_mod_dir_expanded="${expanded_prefix}${with_python_dir}"
24648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Python modules dir: ${python_mod_dir_expanded}" >&5
24649 $as_echo "Python modules dir: ${python_mod_dir_expanded}" >&6; };
24653 # needed for aot-compile-rpm
24654 MAKE=`which make`
24657 # Check whether --enable-aot-compile-rpm was given.
24658 if test "${enable_aot_compile_rpm+set}" = set; then :
24659 enableval=$enable_aot_compile_rpm; case "${enableval}" in
24660 yes) AOT_RPM_ENABLED=yes ;;
24661 no) AOT_RPM_ENABLED=no ;;
24662 *) as_fn_error "Unknown argument to enable/disable aot-compile-rpm" "$LINENO" 5 ;;
24663 esac
24664 else
24665 AOT_RPM_ENABLED=no
24669 if test "x${AOT_RPM_ENABLED}" = xyes; then
24670 INSTALL_AOT_RPM_TRUE=
24671 INSTALL_AOT_RPM_FALSE='#'
24672 else
24673 INSTALL_AOT_RPM_TRUE='#'
24674 INSTALL_AOT_RPM_FALSE=
24678 # Check whether --enable-java-home was given.
24679 if test "${enable_java_home+set}" = set; then :
24680 enableval=$enable_java_home; case "${enableval}" in
24681 yes) JAVA_HOME_ENABLED=yes ;;
24682 no) JAVA_HOME_ENABLED=no ;;
24683 *) as_fn_error "Unknown argument to enable/disable java-home" "$LINENO" 5 ;;
24684 esac
24685 else
24686 JAVA_HOME_ENABLED=no
24690 if test "x${JAVA_HOME_ENABLED}" = xyes; then
24691 CREATE_JAVA_HOME_TRUE=
24692 CREATE_JAVA_HOME_FALSE='#'
24693 else
24694 CREATE_JAVA_HOME_TRUE='#'
24695 CREATE_JAVA_HOME_FALSE=
24699 # Only do these checks if java-home above is enabled.
24700 if test "x${JAVA_HOME_ENABLED}" = xyes
24701 then
24704 # Check whether --with-gcc-suffix was given.
24705 if test "${with_gcc_suffix+set}" = set; then :
24706 withval=$with_gcc_suffix; gcc_suffix=$withval
24707 else
24708 gcc_suffix=""
24711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCC suffix: ${gcc_suffix}" >&5
24712 $as_echo "GCC suffix: ${gcc_suffix}" >&6; }
24716 # Check whether --with-arch-directory was given.
24717 if test "${with_arch_directory+set}" = set; then :
24718 withval=$with_arch_directory; host_cpu=$withval
24719 else
24720 host_cpu=""
24725 # Check whether --with-os-directory was given.
24726 if test "${with_os_directory+set}" = set; then :
24727 withval=$with_os_directory; host_os=$withval
24728 else
24729 host_os=""
24734 # Check whether --with-origin-name was given.
24735 if test "${with_origin_name+set}" = set; then :
24736 withval=$with_origin_name; origin_name=$withval
24737 else
24738 origin_name=gcj${gcc_suffix}
24741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JPackage origin name: ${origin_name}" >&5
24742 $as_echo "JPackage origin name: ${origin_name}" >&6; }
24745 # Check whether --with-arch-suffix was given.
24746 if test "${with_arch_suffix+set}" = set; then :
24747 withval=$with_arch_suffix; arch_suffix=$withval
24748 else
24749 arch_suffix=""
24752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch suffix: ${arch_suffix}" >&5
24753 $as_echo "arch suffix: ${arch_suffix}" >&6; }
24756 # Check whether --with-jvm-root-dir was given.
24757 if test "${with_jvm_root_dir+set}" = set; then :
24758 withval=$with_jvm_root_dir; jvm_root_dir=$withval
24759 else
24760 jvm_root_dir="\${prefix}/lib/jvm"
24763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM root installation directory: ${jvm_root_dir}" >&5
24764 $as_echo "JVM root installation directory: ${jvm_root_dir}" >&6; }
24767 # Check whether --with-jvm-jar-dir was given.
24768 if test "${with_jvm_jar_dir+set}" = set; then :
24769 withval=$with_jvm_jar_dir; jvm_jar_dir=$withval
24770 else
24771 jvm_jar_dir=\${prefix}/lib/jvm-exports
24774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JAR root installation directory: ${jvm_jar_dir}" >&5
24775 $as_echo "JAR root installation directory: ${jvm_jar_dir}" >&6; }
24777 JAVA_VERSION=1.5.0
24778 BUILD_VERSION=0
24781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Java version: ${JAVA_VERSION}" >&5
24782 $as_echo "Java version: ${JAVA_VERSION}" >&6; }
24784 jre_dir=jre
24785 jre_lnk=jre-${JAVA_VERSION}-${origin_name}
24786 sdk_lnk=java-${JAVA_VERSION}-${origin_name}
24788 JVM_ROOT_DIR=${jvm_root_dir}
24790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5
24791 $as_echo "JVM ROOT directory: ${JVM_ROOT_DIR}" >&6; }
24793 JVM_JAR_ROOT_DIR=${jvm_jar_dir}
24795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5
24796 $as_echo "JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6; }
24798 JVM_JAR_DIR=${jvm_jar_dir}
24800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5
24801 $as_echo "JVM JAR directory: ${JVM_JAR_DIR}" >&6; }
24803 JRE_DIR=${jre_dir}
24806 JRE_LNK=${jre_lnk}
24809 SDK_LNK=${sdk_lnk}
24812 SDK_BIN_DIR=${jvm_root_dir}/bin
24814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK tools directory: ${SDK_BIN_DIR}" >&5
24815 $as_echo "SDK tools directory: ${SDK_BIN_DIR}" >&6; }
24817 SDK_LIB_DIR=${jvm_root_dir}/lib
24819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK jar directory: ${SDK_LIB_DIR}" >&5
24820 $as_echo "SDK jar directory: ${SDK_LIB_DIR}" >&6; }
24822 SDK_INCLUDE_DIR=${jvm_root_dir}/include
24824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5
24825 $as_echo "SDK include directory: ${SDK_INCLUDE_DIR}" >&6; }
24827 JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin
24829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE tools directory: ${JRE_BIN_DIR}" >&5
24830 $as_echo "JRE tools directory: ${JRE_BIN_DIR}" >&6; }
24832 JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib
24834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE lib directory: ${JRE_LIB_DIR}" >&5
24835 $as_echo "JRE lib directory: ${JRE_LIB_DIR}" >&6; }
24837 # Find gcj prefix using gcj found in PATH.
24838 gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"`
24840 # Where do the gcj binaries live?
24841 # For jhbuild based builds, they all live in a sibling of bin called
24842 # gcj-bin. Check for gcj-bin first, and use bin otherwise.
24843 GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi`
24845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5
24846 $as_echo "GCJ tools directory: ${GCJ_BIN_DIR}" >&6; }
24848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host is ${host}" >&5
24849 $as_echo "host is ${host}" >&6; }
24850 if test "x${host_cpu}" = "x"
24851 then
24852 case ${host} in
24853 *-mingw* | *-cygwin*)
24854 host_cpu=x86;;
24855 i486-* | i586-* | i686-*)
24856 host_cpu=i386;;
24857 x86_64-*)
24858 host_cpu=amd64;;
24860 host_cpu=${host_cpu};;
24861 esac
24863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch directory: ${host_cpu}" >&5
24864 $as_echo "arch directory: ${host_cpu}" >&6; }
24865 CPU=${host_cpu}
24868 if test "x${host_os}" = "x"
24869 then
24870 case ${host} in
24871 *-mingw* | *-cygwin*)
24872 host_os=win32;;
24873 *-linux*)
24874 host_os=linux;;
24876 host_os=${host_os};;
24877 esac
24879 echo os directory: ${host_os}
24880 OS=${host_os}
24883 # make an expanded $libdir, for substituting into
24884 # scripts (and other non-Makefile things).
24885 LIBDIR=$libdir
24886 if test "x${exec_prefix}" = "xNONE"
24887 then
24888 lib_exec_prefix=$expanded_prefix
24889 else
24890 lib_exec_prefix=$exec_prefix
24892 LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"`
24896 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"
24899 if test ${multilib} = yes; then
24900 multilib_arg="--enable-multilib"
24901 else
24902 multilib_arg=
24905 ac_config_files="$ac_config_files scripts/jar"
24907 cat >confcache <<\_ACEOF
24908 # This file is a shell script that caches the results of configure
24909 # tests run on this system so they can be shared between configure
24910 # scripts and configure runs, see configure's option --config-cache.
24911 # It is not useful on other systems. If it contains results you don't
24912 # want to keep, you may remove or edit it.
24914 # config.status only pays attention to the cache file if you give it
24915 # the --recheck option to rerun configure.
24917 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24918 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24919 # following values.
24921 _ACEOF
24923 # The following way of writing the cache mishandles newlines in values,
24924 # but we know of no workaround that is simple, portable, and efficient.
24925 # So, we kill variables containing newlines.
24926 # Ultrix sh set writes to stderr and can't be redirected directly,
24927 # and sets the high bit in the cache file unless we assign to the vars.
24929 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24930 eval ac_val=\$$ac_var
24931 case $ac_val in #(
24932 *${as_nl}*)
24933 case $ac_var in #(
24934 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24935 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24936 esac
24937 case $ac_var in #(
24938 _ | IFS | as_nl) ;; #(
24939 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24940 *) { eval $ac_var=; unset $ac_var;} ;;
24941 esac ;;
24942 esac
24943 done
24945 (set) 2>&1 |
24946 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24947 *${as_nl}ac_space=\ *)
24948 # `set' does not quote correctly, so add quotes: double-quote
24949 # substitution turns \\\\ into \\, and sed turns \\ into \.
24950 sed -n \
24951 "s/'/'\\\\''/g;
24952 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24953 ;; #(
24955 # `set' quotes correctly as required by POSIX, so do not add quotes.
24956 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24958 esac |
24959 sort
24961 sed '
24962 /^ac_cv_env_/b end
24963 t clear
24964 :clear
24965 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24966 t end
24967 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24968 :end' >>confcache
24969 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24970 if test -w "$cache_file"; then
24971 test "x$cache_file" != "x/dev/null" &&
24972 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24973 $as_echo "$as_me: updating cache $cache_file" >&6;}
24974 cat confcache >$cache_file
24975 else
24976 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24977 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24980 rm -f confcache
24982 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24983 # Let make expand exec_prefix.
24984 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24986 DEFS=-DHAVE_CONFIG_H
24988 ac_libobjs=
24989 ac_ltlibobjs=
24990 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24991 # 1. Remove the extension, and $U if already installed.
24992 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24993 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24994 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24995 # will be set to the directory where LIBOBJS objects are built.
24996 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24997 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24998 done
24999 LIBOBJS=$ac_libobjs
25001 LTLIBOBJS=$ac_ltlibobjs
25004 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
25005 as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
25006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25008 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
25009 as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
25010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25012 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25013 as_fn_error "conditional \"AMDEP\" was never defined.
25014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25016 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25017 as_fn_error "conditional \"am__fastdepCC\" was never defined.
25018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25020 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25021 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
25022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25024 if test -n "$EXEEXT"; then
25025 am__EXEEXT_TRUE=
25026 am__EXEEXT_FALSE='#'
25027 else
25028 am__EXEEXT_TRUE='#'
25029 am__EXEEXT_FALSE=
25032 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25033 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
25034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25036 if test -z "${BUILD_SUBLIBS_TRUE}" && test -z "${BUILD_SUBLIBS_FALSE}"; then
25037 as_fn_error "conditional \"BUILD_SUBLIBS\" was never defined.
25038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25040 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
25041 as_fn_error "conditional \"XLIB_AWT\" was never defined.
25042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25044 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
25045 as_fn_error "conditional \"X_AWT\" was never defined.
25046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25048 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25049 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25052 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25053 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25054 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25056 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
25057 as_fn_error "conditional \"TESTSUBDIR\" was never defined.
25058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25060 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
25061 as_fn_error "conditional \"BUILD_ECJ1\" was never defined.
25062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25064 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
25065 as_fn_error "conditional \"INSTALL_ECJ_JAR\" was never defined.
25066 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25068 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
25069 as_fn_error "conditional \"JAVA_HOME_SET\" was never defined.
25070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25072 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
25073 as_fn_error "conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
25074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25076 if test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE}" && test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE}"; then
25077 as_fn_error "conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
25078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25080 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
25081 as_fn_error "conditional \"INTERPRETER\" was never defined.
25082 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25084 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
25085 as_fn_error "conditional \"USING_WIN32_PLATFORM\" was never defined.
25086 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25088 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
25089 as_fn_error "conditional \"USING_POSIX_PLATFORM\" was never defined.
25090 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25092 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
25093 as_fn_error "conditional \"USING_DARWIN_CRT\" was never defined.
25094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25096 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
25097 as_fn_error "conditional \"USING_BOEHMGC\" was never defined.
25098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25100 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
25101 as_fn_error "conditional \"USING_NOGC\" was never defined.
25102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25104 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
25105 as_fn_error "conditional \"USING_POSIX_THREADS\" was never defined.
25106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25108 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
25109 as_fn_error "conditional \"USING_WIN32_THREADS\" was never defined.
25110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25112 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
25113 as_fn_error "conditional \"USING_NO_THREADS\" was never defined.
25114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25116 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
25117 as_fn_error "conditional \"USE_LIBGCJ_BC\" was never defined.
25118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25120 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
25121 as_fn_error "conditional \"USING_GCC\" was never defined.
25122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25124 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25125 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25129 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
25130 as_fn_error "conditional \"NATIVE\" was never defined.
25131 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25133 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
25134 as_fn_error "conditional \"ENABLE_SHARED\" was never defined.
25135 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25137 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
25138 as_fn_error "conditional \"NEEDS_DATA_START\" was never defined.
25139 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25141 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
25142 as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
25143 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25145 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
25146 as_fn_error "conditional \"ANONVERSCRIPT\" was never defined.
25147 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25149 if test -z "${ANONVERSCRIPT_GNU_TRUE}" && test -z "${ANONVERSCRIPT_GNU_FALSE}"; then
25150 as_fn_error "conditional \"ANONVERSCRIPT_GNU\" was never defined.
25151 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25153 if test -z "${ANONVERSCRIPT_SUN_TRUE}" && test -z "${ANONVERSCRIPT_SUN_FALSE}"; then
25154 as_fn_error "conditional \"ANONVERSCRIPT_SUN\" was never defined.
25155 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25157 if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then
25158 as_fn_error "conditional \"INSTALL_AOT_RPM\" was never defined.
25159 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25161 if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then
25162 as_fn_error "conditional \"CREATE_JAVA_HOME\" was never defined.
25163 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25166 : ${CONFIG_STATUS=./config.status}
25167 ac_write_fail=0
25168 ac_clean_files_save=$ac_clean_files
25169 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25170 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25171 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25172 as_write_fail=0
25173 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25174 #! $SHELL
25175 # Generated by $as_me.
25176 # Run this file to recreate the current configuration.
25177 # Compiler output produced by configure, useful for debugging
25178 # configure, is in config.log if it exists.
25180 debug=false
25181 ac_cs_recheck=false
25182 ac_cs_silent=false
25184 SHELL=\${CONFIG_SHELL-$SHELL}
25185 export SHELL
25186 _ASEOF
25187 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25188 ## -------------------- ##
25189 ## M4sh Initialization. ##
25190 ## -------------------- ##
25192 # Be more Bourne compatible
25193 DUALCASE=1; export DUALCASE # for MKS sh
25194 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25195 emulate sh
25196 NULLCMD=:
25197 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25198 # is contrary to our usage. Disable this feature.
25199 alias -g '${1+"$@"}'='"$@"'
25200 setopt NO_GLOB_SUBST
25201 else
25202 case `(set -o) 2>/dev/null` in #(
25203 *posix*) :
25204 set -o posix ;; #(
25205 *) :
25207 esac
25211 as_nl='
25213 export as_nl
25214 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25215 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25216 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25217 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25218 # Prefer a ksh shell builtin over an external printf program on Solaris,
25219 # but without wasting forks for bash or zsh.
25220 if test -z "$BASH_VERSION$ZSH_VERSION" \
25221 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25222 as_echo='print -r --'
25223 as_echo_n='print -rn --'
25224 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25225 as_echo='printf %s\n'
25226 as_echo_n='printf %s'
25227 else
25228 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25229 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25230 as_echo_n='/usr/ucb/echo -n'
25231 else
25232 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25233 as_echo_n_body='eval
25234 arg=$1;
25235 case $arg in #(
25236 *"$as_nl"*)
25237 expr "X$arg" : "X\\(.*\\)$as_nl";
25238 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25239 esac;
25240 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25242 export as_echo_n_body
25243 as_echo_n='sh -c $as_echo_n_body as_echo'
25245 export as_echo_body
25246 as_echo='sh -c $as_echo_body as_echo'
25249 # The user is always right.
25250 if test "${PATH_SEPARATOR+set}" != set; then
25251 PATH_SEPARATOR=:
25252 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25253 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25254 PATH_SEPARATOR=';'
25259 # IFS
25260 # We need space, tab and new line, in precisely that order. Quoting is
25261 # there to prevent editors from complaining about space-tab.
25262 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25263 # splitting by setting IFS to empty value.)
25264 IFS=" "" $as_nl"
25266 # Find who we are. Look in the path if we contain no directory separator.
25267 case $0 in #((
25268 *[\\/]* ) as_myself=$0 ;;
25269 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25270 for as_dir in $PATH
25272 IFS=$as_save_IFS
25273 test -z "$as_dir" && as_dir=.
25274 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25275 done
25276 IFS=$as_save_IFS
25279 esac
25280 # We did not find ourselves, most probably we were run as `sh COMMAND'
25281 # in which case we are not to be found in the path.
25282 if test "x$as_myself" = x; then
25283 as_myself=$0
25285 if test ! -f "$as_myself"; then
25286 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25287 exit 1
25290 # Unset variables that we do not need and which cause bugs (e.g. in
25291 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25292 # suppresses any "Segmentation fault" message there. '((' could
25293 # trigger a bug in pdksh 5.2.14.
25294 for as_var in BASH_ENV ENV MAIL MAILPATH
25295 do eval test x\${$as_var+set} = xset \
25296 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25297 done
25298 PS1='$ '
25299 PS2='> '
25300 PS4='+ '
25302 # NLS nuisances.
25303 LC_ALL=C
25304 export LC_ALL
25305 LANGUAGE=C
25306 export LANGUAGE
25308 # CDPATH.
25309 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25312 # as_fn_error ERROR [LINENO LOG_FD]
25313 # ---------------------------------
25314 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25315 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25316 # script with status $?, using 1 if that was 0.
25317 as_fn_error ()
25319 as_status=$?; test $as_status -eq 0 && as_status=1
25320 if test "$3"; then
25321 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25322 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25324 $as_echo "$as_me: error: $1" >&2
25325 as_fn_exit $as_status
25326 } # as_fn_error
25329 # as_fn_set_status STATUS
25330 # -----------------------
25331 # Set $? to STATUS, without forking.
25332 as_fn_set_status ()
25334 return $1
25335 } # as_fn_set_status
25337 # as_fn_exit STATUS
25338 # -----------------
25339 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25340 as_fn_exit ()
25342 set +e
25343 as_fn_set_status $1
25344 exit $1
25345 } # as_fn_exit
25347 # as_fn_unset VAR
25348 # ---------------
25349 # Portably unset VAR.
25350 as_fn_unset ()
25352 { eval $1=; unset $1;}
25354 as_unset=as_fn_unset
25355 # as_fn_append VAR VALUE
25356 # ----------------------
25357 # Append the text in VALUE to the end of the definition contained in VAR. Take
25358 # advantage of any shell optimizations that allow amortized linear growth over
25359 # repeated appends, instead of the typical quadratic growth present in naive
25360 # implementations.
25361 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25362 eval 'as_fn_append ()
25364 eval $1+=\$2
25366 else
25367 as_fn_append ()
25369 eval $1=\$$1\$2
25371 fi # as_fn_append
25373 # as_fn_arith ARG...
25374 # ------------------
25375 # Perform arithmetic evaluation on the ARGs, and store the result in the
25376 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25377 # must be portable across $(()) and expr.
25378 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25379 eval 'as_fn_arith ()
25381 as_val=$(( $* ))
25383 else
25384 as_fn_arith ()
25386 as_val=`expr "$@" || test $? -eq 1`
25388 fi # as_fn_arith
25391 if expr a : '\(a\)' >/dev/null 2>&1 &&
25392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25393 as_expr=expr
25394 else
25395 as_expr=false
25398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25399 as_basename=basename
25400 else
25401 as_basename=false
25404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25405 as_dirname=dirname
25406 else
25407 as_dirname=false
25410 as_me=`$as_basename -- "$0" ||
25411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25412 X"$0" : 'X\(//\)$' \| \
25413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25414 $as_echo X/"$0" |
25415 sed '/^.*\/\([^/][^/]*\)\/*$/{
25416 s//\1/
25419 /^X\/\(\/\/\)$/{
25420 s//\1/
25423 /^X\/\(\/\).*/{
25424 s//\1/
25427 s/.*/./; q'`
25429 # Avoid depending upon Character Ranges.
25430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25433 as_cr_digits='0123456789'
25434 as_cr_alnum=$as_cr_Letters$as_cr_digits
25436 ECHO_C= ECHO_N= ECHO_T=
25437 case `echo -n x` in #(((((
25438 -n*)
25439 case `echo 'xy\c'` in
25440 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25441 xy) ECHO_C='\c';;
25442 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25443 ECHO_T=' ';;
25444 esac;;
25446 ECHO_N='-n';;
25447 esac
25449 rm -f conf$$ conf$$.exe conf$$.file
25450 if test -d conf$$.dir; then
25451 rm -f conf$$.dir/conf$$.file
25452 else
25453 rm -f conf$$.dir
25454 mkdir conf$$.dir 2>/dev/null
25456 if (echo >conf$$.file) 2>/dev/null; then
25457 if ln -s conf$$.file conf$$ 2>/dev/null; then
25458 as_ln_s='ln -s'
25459 # ... but there are two gotchas:
25460 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25461 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25462 # In both cases, we have to default to `cp -p'.
25463 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25464 as_ln_s='cp -p'
25465 elif ln conf$$.file conf$$ 2>/dev/null; then
25466 as_ln_s=ln
25467 else
25468 as_ln_s='cp -p'
25470 else
25471 as_ln_s='cp -p'
25473 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25474 rmdir conf$$.dir 2>/dev/null
25477 # as_fn_mkdir_p
25478 # -------------
25479 # Create "$as_dir" as a directory, including parents if necessary.
25480 as_fn_mkdir_p ()
25483 case $as_dir in #(
25484 -*) as_dir=./$as_dir;;
25485 esac
25486 test -d "$as_dir" || eval $as_mkdir_p || {
25487 as_dirs=
25488 while :; do
25489 case $as_dir in #(
25490 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25491 *) as_qdir=$as_dir;;
25492 esac
25493 as_dirs="'$as_qdir' $as_dirs"
25494 as_dir=`$as_dirname -- "$as_dir" ||
25495 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25496 X"$as_dir" : 'X\(//\)[^/]' \| \
25497 X"$as_dir" : 'X\(//\)$' \| \
25498 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25499 $as_echo X"$as_dir" |
25500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25501 s//\1/
25504 /^X\(\/\/\)[^/].*/{
25505 s//\1/
25508 /^X\(\/\/\)$/{
25509 s//\1/
25512 /^X\(\/\).*/{
25513 s//\1/
25516 s/.*/./; q'`
25517 test -d "$as_dir" && break
25518 done
25519 test -z "$as_dirs" || eval "mkdir $as_dirs"
25520 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25523 } # as_fn_mkdir_p
25524 if mkdir -p . 2>/dev/null; then
25525 as_mkdir_p='mkdir -p "$as_dir"'
25526 else
25527 test -d ./-p && rmdir ./-p
25528 as_mkdir_p=false
25531 if test -x / >/dev/null 2>&1; then
25532 as_test_x='test -x'
25533 else
25534 if ls -dL / >/dev/null 2>&1; then
25535 as_ls_L_option=L
25536 else
25537 as_ls_L_option=
25539 as_test_x='
25540 eval sh -c '\''
25541 if test -d "$1"; then
25542 test -d "$1/.";
25543 else
25544 case $1 in #(
25545 -*)set "./$1";;
25546 esac;
25547 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25548 ???[sx]*):;;*)false;;esac;fi
25549 '\'' sh
25552 as_executable_p=$as_test_x
25554 # Sed expression to map a string onto a valid CPP name.
25555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25557 # Sed expression to map a string onto a valid variable name.
25558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25561 exec 6>&1
25562 ## ----------------------------------- ##
25563 ## Main body of $CONFIG_STATUS script. ##
25564 ## ----------------------------------- ##
25565 _ASEOF
25566 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25569 # Save the log message, to keep $0 and so on meaningful, and to
25570 # report actual input values of CONFIG_FILES etc. instead of their
25571 # values after options handling.
25572 ac_log="
25573 This file was extended by libjava $as_me version-unused, which was
25574 generated by GNU Autoconf 2.64. Invocation command line was
25576 CONFIG_FILES = $CONFIG_FILES
25577 CONFIG_HEADERS = $CONFIG_HEADERS
25578 CONFIG_LINKS = $CONFIG_LINKS
25579 CONFIG_COMMANDS = $CONFIG_COMMANDS
25580 $ $0 $@
25582 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25585 _ACEOF
25587 case $ac_config_files in *"
25588 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25589 esac
25591 case $ac_config_headers in *"
25592 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25593 esac
25596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25597 # Files that config.status was made for.
25598 config_files="$ac_config_files"
25599 config_headers="$ac_config_headers"
25600 config_links="$ac_config_links"
25601 config_commands="$ac_config_commands"
25603 _ACEOF
25605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25606 ac_cs_usage="\
25607 \`$as_me' instantiates files and other configuration actions
25608 from templates according to the current configuration. Unless the files
25609 and actions are specified as TAGs, all are instantiated by default.
25611 Usage: $0 [OPTION]... [TAG]...
25613 -h, --help print this help, then exit
25614 -V, --version print version number and configuration settings, then exit
25615 -q, --quiet, --silent
25616 do not print progress messages
25617 -d, --debug don't remove temporary files
25618 --recheck update $as_me by reconfiguring in the same conditions
25619 --file=FILE[:TEMPLATE]
25620 instantiate the configuration file FILE
25621 --header=FILE[:TEMPLATE]
25622 instantiate the configuration header FILE
25624 Configuration files:
25625 $config_files
25627 Configuration headers:
25628 $config_headers
25630 Configuration links:
25631 $config_links
25633 Configuration commands:
25634 $config_commands
25636 Report bugs to the package provider."
25638 _ACEOF
25639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25640 ac_cs_version="\\
25641 libjava config.status version-unused
25642 configured by $0, generated by GNU Autoconf 2.64,
25643 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25645 Copyright (C) 2009 Free Software Foundation, Inc.
25646 This config.status script is free software; the Free Software Foundation
25647 gives unlimited permission to copy, distribute and modify it."
25649 ac_pwd='$ac_pwd'
25650 srcdir='$srcdir'
25651 INSTALL='$INSTALL'
25652 MKDIR_P='$MKDIR_P'
25653 AWK='$AWK'
25654 test -n "\$AWK" || AWK=awk
25655 _ACEOF
25657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25658 # The default lists apply if the user does not specify any file.
25659 ac_need_defaults=:
25660 while test $# != 0
25662 case $1 in
25663 --*=*)
25664 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25665 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25666 ac_shift=:
25669 ac_option=$1
25670 ac_optarg=$2
25671 ac_shift=shift
25673 esac
25675 case $ac_option in
25676 # Handling of the options.
25677 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25678 ac_cs_recheck=: ;;
25679 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25680 $as_echo "$ac_cs_version"; exit ;;
25681 --debug | --debu | --deb | --de | --d | -d )
25682 debug=: ;;
25683 --file | --fil | --fi | --f )
25684 $ac_shift
25685 case $ac_optarg in
25686 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25687 esac
25688 as_fn_append CONFIG_FILES " '$ac_optarg'"
25689 ac_need_defaults=false;;
25690 --header | --heade | --head | --hea )
25691 $ac_shift
25692 case $ac_optarg in
25693 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25694 esac
25695 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25696 ac_need_defaults=false;;
25697 --he | --h)
25698 # Conflict between --help and --header
25699 as_fn_error "ambiguous option: \`$1'
25700 Try \`$0 --help' for more information.";;
25701 --help | --hel | -h )
25702 $as_echo "$ac_cs_usage"; exit ;;
25703 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25704 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25705 ac_cs_silent=: ;;
25707 # This is an error.
25708 -*) as_fn_error "unrecognized option: \`$1'
25709 Try \`$0 --help' for more information." ;;
25711 *) as_fn_append ac_config_targets " $1"
25712 ac_need_defaults=false ;;
25714 esac
25715 shift
25716 done
25718 ac_configure_extra_args=
25720 if $ac_cs_silent; then
25721 exec 6>/dev/null
25722 ac_configure_extra_args="$ac_configure_extra_args --silent"
25725 _ACEOF
25726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25727 if \$ac_cs_recheck; then
25728 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25729 shift
25730 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25731 CONFIG_SHELL='$SHELL'
25732 export CONFIG_SHELL
25733 exec "\$@"
25736 _ACEOF
25737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25738 exec 5>>config.log
25740 echo
25741 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25742 ## Running $as_me. ##
25743 _ASBOX
25744 $as_echo "$ac_log"
25745 } >&5
25747 _ACEOF
25748 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25750 # INIT-COMMANDS
25753 srcdir="$srcdir"
25754 host="$host"
25755 target="$target"
25756 with_multisubdir="$with_multisubdir"
25757 with_multisrctop="$with_multisrctop"
25758 with_target_subdir="$with_target_subdir"
25759 ac_configure_args="${multilib_arg} ${ac_configure_args}"
25760 multi_basedir="$multi_basedir"
25761 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
25762 CC="$CC"
25763 CXX="$CXX"
25764 GFORTRAN="$GFORTRAN"
25765 GCJ="$GCJ"
25766 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25769 # The HP-UX ksh and POSIX shell print the target directory to stdout
25770 # if CDPATH is set.
25771 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25773 sed_quote_subst='$sed_quote_subst'
25774 double_quote_subst='$double_quote_subst'
25775 delay_variable_subst='$delay_variable_subst'
25776 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25777 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25778 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25779 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25780 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25781 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25782 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25783 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25784 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25785 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25786 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25787 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25788 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25789 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25790 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25791 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25792 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25793 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25794 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25795 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25796 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25797 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25798 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25799 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25800 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25801 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25802 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25803 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25804 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25805 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25806 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25807 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25808 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25809 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25810 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25811 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25812 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25813 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25814 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25815 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25816 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25817 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25818 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25819 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25820 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25821 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25822 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25823 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25824 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"`'
25825 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25826 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25827 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25828 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25829 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25830 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25831 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25832 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25833 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25834 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25835 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25836 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25837 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25838 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25839 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25840 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25841 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25842 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25843 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25844 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25845 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25846 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25847 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25848 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25849 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25850 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25851 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25852 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25853 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25854 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25855 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25856 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
25857 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25858 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25859 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25860 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25861 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25862 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25863 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25864 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25865 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
25866 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25867 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25868 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25869 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25870 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25871 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25872 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25873 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25874 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25875 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25876 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25877 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25878 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25879 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25880 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25881 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25882 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25883 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25884 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25885 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25886 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25887 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25888 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25889 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25890 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25891 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25892 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25893 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25894 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25895 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25896 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25897 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25898 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25899 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25900 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25901 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25902 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25903 LD_GCJ='`$ECHO "$LD_GCJ" | $SED "$delay_single_quote_subst"`'
25904 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25905 reload_flag_GCJ='`$ECHO "$reload_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25906 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25907 reload_cmds_GCJ='`$ECHO "$reload_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25908 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25909 old_archive_cmds_GCJ='`$ECHO "$old_archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25910 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25911 compiler_GCJ='`$ECHO "$compiler_GCJ" | $SED "$delay_single_quote_subst"`'
25912 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25913 GCC_GCJ='`$ECHO "$GCC_GCJ" | $SED "$delay_single_quote_subst"`'
25914 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25915 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "$lt_prog_compiler_no_builtin_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25916 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25917 lt_prog_compiler_wl_GCJ='`$ECHO "$lt_prog_compiler_wl_GCJ" | $SED "$delay_single_quote_subst"`'
25918 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25919 lt_prog_compiler_pic_GCJ='`$ECHO "$lt_prog_compiler_pic_GCJ" | $SED "$delay_single_quote_subst"`'
25920 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25921 lt_prog_compiler_static_GCJ='`$ECHO "$lt_prog_compiler_static_GCJ" | $SED "$delay_single_quote_subst"`'
25922 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25923 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "$lt_cv_prog_compiler_c_o_GCJ" | $SED "$delay_single_quote_subst"`'
25924 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25925 archive_cmds_need_lc_GCJ='`$ECHO "$archive_cmds_need_lc_GCJ" | $SED "$delay_single_quote_subst"`'
25926 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25927 enable_shared_with_static_runtimes_GCJ='`$ECHO "$enable_shared_with_static_runtimes_GCJ" | $SED "$delay_single_quote_subst"`'
25928 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25929 export_dynamic_flag_spec_GCJ='`$ECHO "$export_dynamic_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25930 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25931 whole_archive_flag_spec_GCJ='`$ECHO "$whole_archive_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25932 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25933 compiler_needs_object_GCJ='`$ECHO "$compiler_needs_object_GCJ" | $SED "$delay_single_quote_subst"`'
25934 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25935 old_archive_from_new_cmds_GCJ='`$ECHO "$old_archive_from_new_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25936 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25937 old_archive_from_expsyms_cmds_GCJ='`$ECHO "$old_archive_from_expsyms_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25938 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25939 archive_cmds_GCJ='`$ECHO "$archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25940 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25941 archive_expsym_cmds_GCJ='`$ECHO "$archive_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25942 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25943 module_cmds_GCJ='`$ECHO "$module_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25944 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25945 module_expsym_cmds_GCJ='`$ECHO "$module_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25946 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25947 with_gnu_ld_GCJ='`$ECHO "$with_gnu_ld_GCJ" | $SED "$delay_single_quote_subst"`'
25948 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25949 allow_undefined_flag_GCJ='`$ECHO "$allow_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25950 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25951 no_undefined_flag_GCJ='`$ECHO "$no_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25952 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25953 hardcode_libdir_flag_spec_GCJ='`$ECHO "$hardcode_libdir_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25954 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
25955 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "$hardcode_libdir_flag_spec_ld_GCJ" | $SED "$delay_single_quote_subst"`'
25956 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25957 hardcode_libdir_separator_GCJ='`$ECHO "$hardcode_libdir_separator_GCJ" | $SED "$delay_single_quote_subst"`'
25958 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25959 hardcode_direct_GCJ='`$ECHO "$hardcode_direct_GCJ" | $SED "$delay_single_quote_subst"`'
25960 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25961 hardcode_direct_absolute_GCJ='`$ECHO "$hardcode_direct_absolute_GCJ" | $SED "$delay_single_quote_subst"`'
25962 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25963 hardcode_minus_L_GCJ='`$ECHO "$hardcode_minus_L_GCJ" | $SED "$delay_single_quote_subst"`'
25964 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25965 hardcode_shlibpath_var_GCJ='`$ECHO "$hardcode_shlibpath_var_GCJ" | $SED "$delay_single_quote_subst"`'
25966 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25967 hardcode_automatic_GCJ='`$ECHO "$hardcode_automatic_GCJ" | $SED "$delay_single_quote_subst"`'
25968 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25969 inherit_rpath_GCJ='`$ECHO "$inherit_rpath_GCJ" | $SED "$delay_single_quote_subst"`'
25970 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25971 link_all_deplibs_GCJ='`$ECHO "$link_all_deplibs_GCJ" | $SED "$delay_single_quote_subst"`'
25972 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
25973 fix_srcfile_path_GCJ='`$ECHO "$fix_srcfile_path_GCJ" | $SED "$delay_single_quote_subst"`'
25974 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
25975 always_export_symbols_GCJ='`$ECHO "$always_export_symbols_GCJ" | $SED "$delay_single_quote_subst"`'
25976 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25977 export_symbols_cmds_GCJ='`$ECHO "$export_symbols_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25978 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25979 exclude_expsyms_GCJ='`$ECHO "$exclude_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
25980 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25981 include_expsyms_GCJ='`$ECHO "$include_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
25982 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25983 prelink_cmds_GCJ='`$ECHO "$prelink_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25984 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
25985 file_list_spec_GCJ='`$ECHO "$file_list_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25986 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
25987 hardcode_action_GCJ='`$ECHO "$hardcode_action_GCJ" | $SED "$delay_single_quote_subst"`'
25988 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
25989 compiler_lib_search_dirs_GCJ='`$ECHO "$compiler_lib_search_dirs_GCJ" | $SED "$delay_single_quote_subst"`'
25990 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25991 predep_objects_GCJ='`$ECHO "$predep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
25992 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25993 postdep_objects_GCJ='`$ECHO "$postdep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
25994 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
25995 predeps_GCJ='`$ECHO "$predeps_GCJ" | $SED "$delay_single_quote_subst"`'
25996 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
25997 postdeps_GCJ='`$ECHO "$postdeps_GCJ" | $SED "$delay_single_quote_subst"`'
25998 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
25999 compiler_lib_search_path_GCJ='`$ECHO "$compiler_lib_search_path_GCJ" | $SED "$delay_single_quote_subst"`'
26001 LTCC='$LTCC'
26002 LTCFLAGS='$LTCFLAGS'
26003 compiler='$compiler_DEFAULT'
26005 # A function that is used when there is no print builtin or printf.
26006 func_fallback_echo ()
26008 eval 'cat <<_LTECHO_EOF
26010 _LTECHO_EOF'
26013 # Quote evaled strings.
26014 for var in SHELL \
26015 ECHO \
26016 SED \
26017 GREP \
26018 EGREP \
26019 FGREP \
26020 LD \
26021 NM \
26022 LN_S \
26023 lt_SP2NL \
26024 lt_NL2SP \
26025 reload_flag \
26026 OBJDUMP \
26027 deplibs_check_method \
26028 file_magic_cmd \
26029 AR \
26030 AR_FLAGS \
26031 STRIP \
26032 RANLIB \
26033 CC \
26034 CFLAGS \
26035 compiler \
26036 lt_cv_sys_global_symbol_pipe \
26037 lt_cv_sys_global_symbol_to_cdecl \
26038 lt_cv_sys_global_symbol_to_c_name_address \
26039 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26040 lt_prog_compiler_no_builtin_flag \
26041 lt_prog_compiler_wl \
26042 lt_prog_compiler_pic \
26043 lt_prog_compiler_static \
26044 lt_cv_prog_compiler_c_o \
26045 need_locks \
26046 DSYMUTIL \
26047 NMEDIT \
26048 LIPO \
26049 OTOOL \
26050 OTOOL64 \
26051 shrext_cmds \
26052 export_dynamic_flag_spec \
26053 whole_archive_flag_spec \
26054 compiler_needs_object \
26055 with_gnu_ld \
26056 allow_undefined_flag \
26057 no_undefined_flag \
26058 hardcode_libdir_flag_spec \
26059 hardcode_libdir_flag_spec_ld \
26060 hardcode_libdir_separator \
26061 fix_srcfile_path \
26062 exclude_expsyms \
26063 include_expsyms \
26064 file_list_spec \
26065 variables_saved_for_relink \
26066 libname_spec \
26067 library_names_spec \
26068 soname_spec \
26069 install_override_mode \
26070 finish_eval \
26071 old_striplib \
26072 striplib \
26073 compiler_lib_search_dirs \
26074 predep_objects \
26075 postdep_objects \
26076 predeps \
26077 postdeps \
26078 compiler_lib_search_path \
26079 LD_CXX \
26080 LD_GCJ \
26081 reload_flag_CXX \
26082 reload_flag_GCJ \
26083 compiler_CXX \
26084 compiler_GCJ \
26085 lt_prog_compiler_no_builtin_flag_CXX \
26086 lt_prog_compiler_no_builtin_flag_GCJ \
26087 lt_prog_compiler_wl_CXX \
26088 lt_prog_compiler_wl_GCJ \
26089 lt_prog_compiler_pic_CXX \
26090 lt_prog_compiler_pic_GCJ \
26091 lt_prog_compiler_static_CXX \
26092 lt_prog_compiler_static_GCJ \
26093 lt_cv_prog_compiler_c_o_CXX \
26094 lt_cv_prog_compiler_c_o_GCJ \
26095 export_dynamic_flag_spec_CXX \
26096 export_dynamic_flag_spec_GCJ \
26097 whole_archive_flag_spec_CXX \
26098 whole_archive_flag_spec_GCJ \
26099 compiler_needs_object_CXX \
26100 compiler_needs_object_GCJ \
26101 with_gnu_ld_CXX \
26102 with_gnu_ld_GCJ \
26103 allow_undefined_flag_CXX \
26104 allow_undefined_flag_GCJ \
26105 no_undefined_flag_CXX \
26106 no_undefined_flag_GCJ \
26107 hardcode_libdir_flag_spec_CXX \
26108 hardcode_libdir_flag_spec_GCJ \
26109 hardcode_libdir_flag_spec_ld_CXX \
26110 hardcode_libdir_flag_spec_ld_GCJ \
26111 hardcode_libdir_separator_CXX \
26112 hardcode_libdir_separator_GCJ \
26113 fix_srcfile_path_CXX \
26114 fix_srcfile_path_GCJ \
26115 exclude_expsyms_CXX \
26116 exclude_expsyms_GCJ \
26117 include_expsyms_CXX \
26118 include_expsyms_GCJ \
26119 file_list_spec_CXX \
26120 file_list_spec_GCJ \
26121 compiler_lib_search_dirs_CXX \
26122 compiler_lib_search_dirs_GCJ \
26123 predep_objects_CXX \
26124 predep_objects_GCJ \
26125 postdep_objects_CXX \
26126 postdep_objects_GCJ \
26127 predeps_CXX \
26128 predeps_GCJ \
26129 postdeps_CXX \
26130 postdeps_GCJ \
26131 compiler_lib_search_path_CXX \
26132 compiler_lib_search_path_GCJ; do
26133 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26134 *[\\\\\\\`\\"\\\$]*)
26135 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26138 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26140 esac
26141 done
26143 # Double-quote double-evaled strings.
26144 for var in reload_cmds \
26145 old_postinstall_cmds \
26146 old_postuninstall_cmds \
26147 old_archive_cmds \
26148 extract_expsyms_cmds \
26149 old_archive_from_new_cmds \
26150 old_archive_from_expsyms_cmds \
26151 archive_cmds \
26152 archive_expsym_cmds \
26153 module_cmds \
26154 module_expsym_cmds \
26155 export_symbols_cmds \
26156 prelink_cmds \
26157 postinstall_cmds \
26158 postuninstall_cmds \
26159 finish_cmds \
26160 sys_lib_search_path_spec \
26161 sys_lib_dlsearch_path_spec \
26162 reload_cmds_CXX \
26163 reload_cmds_GCJ \
26164 old_archive_cmds_CXX \
26165 old_archive_cmds_GCJ \
26166 old_archive_from_new_cmds_CXX \
26167 old_archive_from_new_cmds_GCJ \
26168 old_archive_from_expsyms_cmds_CXX \
26169 old_archive_from_expsyms_cmds_GCJ \
26170 archive_cmds_CXX \
26171 archive_cmds_GCJ \
26172 archive_expsym_cmds_CXX \
26173 archive_expsym_cmds_GCJ \
26174 module_cmds_CXX \
26175 module_cmds_GCJ \
26176 module_expsym_cmds_CXX \
26177 module_expsym_cmds_GCJ \
26178 export_symbols_cmds_CXX \
26179 export_symbols_cmds_GCJ \
26180 prelink_cmds_CXX \
26181 prelink_cmds_GCJ; do
26182 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26183 *[\\\\\\\`\\"\\\$]*)
26184 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26187 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26189 esac
26190 done
26192 ac_aux_dir='$ac_aux_dir'
26193 xsi_shell='$xsi_shell'
26194 lt_shell_append='$lt_shell_append'
26196 # See if we are running on zsh, and set the options which allow our
26197 # commands through without removal of \ escapes INIT.
26198 if test -n "\${ZSH_VERSION+set}" ; then
26199 setopt NO_GLOB_SUBST
26203 PACKAGE='$PACKAGE'
26204 VERSION='$VERSION'
26205 TIMESTAMP='$TIMESTAMP'
26206 RM='$RM'
26207 ofile='$ofile'
26216 _ACEOF
26218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26220 # Handling of arguments.
26221 for ac_config_target in $ac_config_targets
26223 case $ac_config_target in
26224 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
26225 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26226 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
26227 "gcj/libgcj-config.h") CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
26228 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26229 "include/platform.h") CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
26230 "java/io/natFile.cc") CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
26231 "java/lang/natConcreteProcess.cc") CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
26232 "java/net/natVMInetAddress.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
26233 "java/net/natVMNetworkInterface.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
26234 "gnu/java/net/natPlainSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
26235 "gnu/java/net/natPlainDatagramSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
26236 "gnu/java/nio/natVMPipe.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
26237 "gnu/java/nio/natVMSelector.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
26238 "gnu/java/nio/channels/natFileChannelImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
26239 "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" ;;
26240 "include/java-gc.h") CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
26241 "include/java-threads.h") CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
26242 "sysdep/locks.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
26243 "sysdep/backtrace.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
26244 "sysdep/descriptor.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
26245 "include/java-signal.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
26246 "include/java-signal-aux.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
26247 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26248 "libgcj.pc") CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
26249 "libgcj.spec") CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
26250 "libgcj-test.spec") CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
26251 "gcj/Makefile") CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
26252 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26253 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
26254 "contrib/aotcompile.py") CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;;
26255 "contrib/aot-compile") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;;
26256 "contrib/aot-compile-rpm") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;;
26257 "contrib/generate-cacerts.pl") CONFIG_FILES="$CONFIG_FILES contrib/generate-cacerts.pl" ;;
26258 "contrib/rebuild-gcj-db") CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;;
26259 "scripts/jar") CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
26261 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26262 esac
26263 done
26266 # If the user did not use the arguments to specify the items to instantiate,
26267 # then the envvar interface is used. Set only those that are not.
26268 # We use the long form for the default assignment because of an extremely
26269 # bizarre bug on SunOS 4.1.3.
26270 if $ac_need_defaults; then
26271 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26272 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26273 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26274 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26277 # Have a temporary directory for convenience. Make it in the build tree
26278 # simply because there is no reason against having it here, and in addition,
26279 # creating and moving files from /tmp can sometimes cause problems.
26280 # Hook for its removal unless debugging.
26281 # Note that there is a small window in which the directory will not be cleaned:
26282 # after its creation but before its name has been assigned to `$tmp'.
26283 $debug ||
26285 tmp=
26286 trap 'exit_status=$?
26287 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26289 trap 'as_fn_exit 1' 1 2 13 15
26291 # Create a (secure) tmp directory for tmp files.
26294 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26295 test -n "$tmp" && test -d "$tmp"
26296 } ||
26298 tmp=./conf$$-$RANDOM
26299 (umask 077 && mkdir "$tmp")
26300 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26302 # Set up the scripts for CONFIG_FILES section.
26303 # No need to generate them if there are no CONFIG_FILES.
26304 # This happens for instance with `./config.status config.h'.
26305 if test -n "$CONFIG_FILES"; then
26308 ac_cr=`echo X | tr X '\015'`
26309 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26310 # But we know of no other shell where ac_cr would be empty at this
26311 # point, so we can use a bashism as a fallback.
26312 if test "x$ac_cr" = x; then
26313 eval ac_cr=\$\'\\r\'
26315 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26316 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26317 ac_cs_awk_cr='\r'
26318 else
26319 ac_cs_awk_cr=$ac_cr
26322 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26323 _ACEOF
26327 echo "cat >conf$$subs.awk <<_ACEOF" &&
26328 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26329 echo "_ACEOF"
26330 } >conf$$subs.sh ||
26331 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26332 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26333 ac_delim='%!_!# '
26334 for ac_last_try in false false false false false :; do
26335 . ./conf$$subs.sh ||
26336 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26338 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26339 if test $ac_delim_n = $ac_delim_num; then
26340 break
26341 elif $ac_last_try; then
26342 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26343 else
26344 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26346 done
26347 rm -f conf$$subs.sh
26349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26350 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26351 _ACEOF
26352 sed -n '
26354 s/^/S["/; s/!.*/"]=/
26357 s/^[^!]*!//
26358 :repl
26359 t repl
26360 s/'"$ac_delim"'$//
26361 t delim
26364 s/\(.\{148\}\).*/\1/
26365 t more1
26366 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26369 b repl
26370 :more1
26371 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26374 s/.\{148\}//
26375 t nl
26376 :delim
26378 s/\(.\{148\}\).*/\1/
26379 t more2
26380 s/["\\]/\\&/g; s/^/"/; s/$/"/
26383 :more2
26384 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26387 s/.\{148\}//
26388 t delim
26389 ' <conf$$subs.awk | sed '
26390 /^[^""]/{
26392 s/\n//
26394 ' >>$CONFIG_STATUS || ac_write_fail=1
26395 rm -f conf$$subs.awk
26396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26397 _ACAWK
26398 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26399 for (key in S) S_is_set[key] = 1
26400 FS = "\a"
26404 line = $ 0
26405 nfields = split(line, field, "@")
26406 substed = 0
26407 len = length(field[1])
26408 for (i = 2; i < nfields; i++) {
26409 key = field[i]
26410 keylen = length(key)
26411 if (S_is_set[key]) {
26412 value = S[key]
26413 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26414 len += length(value) + length(field[++i])
26415 substed = 1
26416 } else
26417 len += 1 + keylen
26420 print line
26423 _ACAWK
26424 _ACEOF
26425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26426 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26427 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26428 else
26430 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26431 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26432 _ACEOF
26434 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26435 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26436 # trailing colons and then remove the whole line if VPATH becomes empty
26437 # (actually we leave an empty line to preserve line numbers).
26438 if test "x$srcdir" = x.; then
26439 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26440 s/:*\$(srcdir):*/:/
26441 s/:*\${srcdir}:*/:/
26442 s/:*@srcdir@:*/:/
26443 s/^\([^=]*=[ ]*\):*/\1/
26444 s/:*$//
26445 s/^[^=]*=[ ]*$//
26449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26450 fi # test -n "$CONFIG_FILES"
26452 # Set up the scripts for CONFIG_HEADERS section.
26453 # No need to generate them if there are no CONFIG_HEADERS.
26454 # This happens for instance with `./config.status Makefile'.
26455 if test -n "$CONFIG_HEADERS"; then
26456 cat >"$tmp/defines.awk" <<\_ACAWK ||
26457 BEGIN {
26458 _ACEOF
26460 # Transform confdefs.h into an awk script `defines.awk', embedded as
26461 # here-document in config.status, that substitutes the proper values into
26462 # config.h.in to produce config.h.
26464 # Create a delimiter string that does not exist in confdefs.h, to ease
26465 # handling of long lines.
26466 ac_delim='%!_!# '
26467 for ac_last_try in false false :; do
26468 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26469 if test -z "$ac_t"; then
26470 break
26471 elif $ac_last_try; then
26472 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26473 else
26474 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26476 done
26478 # For the awk script, D is an array of macro values keyed by name,
26479 # likewise P contains macro parameters if any. Preserve backslash
26480 # newline sequences.
26482 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26483 sed -n '
26484 s/.\{148\}/&'"$ac_delim"'/g
26485 t rset
26486 :rset
26487 s/^[ ]*#[ ]*define[ ][ ]*/ /
26488 t def
26490 :def
26491 s/\\$//
26492 t bsnl
26493 s/["\\]/\\&/g
26494 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26495 D["\1"]=" \3"/p
26496 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26498 :bsnl
26499 s/["\\]/\\&/g
26500 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26501 D["\1"]=" \3\\\\\\n"\\/p
26502 t cont
26503 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26504 t cont
26506 :cont
26508 s/.\{148\}/&'"$ac_delim"'/g
26509 t clear
26510 :clear
26511 s/\\$//
26512 t bsnlc
26513 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26515 :bsnlc
26516 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26517 b cont
26518 ' <confdefs.h | sed '
26519 s/'"$ac_delim"'/"\\\
26520 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26523 for (key in D) D_is_set[key] = 1
26524 FS = "\a"
26526 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26527 line = \$ 0
26528 split(line, arg, " ")
26529 if (arg[1] == "#") {
26530 defundef = arg[2]
26531 mac1 = arg[3]
26532 } else {
26533 defundef = substr(arg[1], 2)
26534 mac1 = arg[2]
26536 split(mac1, mac2, "(") #)
26537 macro = mac2[1]
26538 prefix = substr(line, 1, index(line, defundef) - 1)
26539 if (D_is_set[macro]) {
26540 # Preserve the white space surrounding the "#".
26541 print prefix "define", macro P[macro] D[macro]
26542 next
26543 } else {
26544 # Replace #undef with comments. This is necessary, for example,
26545 # in the case of _POSIX_SOURCE, which is predefined and required
26546 # on some systems where configure will not decide to define it.
26547 if (defundef == "undef") {
26548 print "/*", prefix defundef, macro, "*/"
26549 next
26553 { print }
26554 _ACAWK
26555 _ACEOF
26556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26557 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26558 fi # test -n "$CONFIG_HEADERS"
26561 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
26562 shift
26563 for ac_tag
26565 case $ac_tag in
26566 :[FHLC]) ac_mode=$ac_tag; continue;;
26567 esac
26568 case $ac_mode$ac_tag in
26569 :[FHL]*:*);;
26570 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26571 :[FH]-) ac_tag=-:-;;
26572 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26573 esac
26574 ac_save_IFS=$IFS
26575 IFS=:
26576 set x $ac_tag
26577 IFS=$ac_save_IFS
26578 shift
26579 ac_file=$1
26580 shift
26582 case $ac_mode in
26583 :L) ac_source=$1;;
26584 :[FH])
26585 ac_file_inputs=
26586 for ac_f
26588 case $ac_f in
26589 -) ac_f="$tmp/stdin";;
26590 *) # Look for the file first in the build tree, then in the source tree
26591 # (if the path is not absolute). The absolute path cannot be DOS-style,
26592 # because $ac_f cannot contain `:'.
26593 test -f "$ac_f" ||
26594 case $ac_f in
26595 [\\/$]*) false;;
26596 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26597 esac ||
26598 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26599 esac
26600 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26601 as_fn_append ac_file_inputs " '$ac_f'"
26602 done
26604 # Let's still pretend it is `configure' which instantiates (i.e., don't
26605 # use $as_me), people would be surprised to read:
26606 # /* config.h. Generated by config.status. */
26607 configure_input='Generated from '`
26608 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26609 `' by configure.'
26610 if test x"$ac_file" != x-; then
26611 configure_input="$ac_file. $configure_input"
26612 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26613 $as_echo "$as_me: creating $ac_file" >&6;}
26615 # Neutralize special characters interpreted by sed in replacement strings.
26616 case $configure_input in #(
26617 *\&* | *\|* | *\\* )
26618 ac_sed_conf_input=`$as_echo "$configure_input" |
26619 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26620 *) ac_sed_conf_input=$configure_input;;
26621 esac
26623 case $ac_tag in
26624 *:-:* | *:-) cat >"$tmp/stdin" \
26625 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26626 esac
26628 esac
26630 ac_dir=`$as_dirname -- "$ac_file" ||
26631 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26632 X"$ac_file" : 'X\(//\)[^/]' \| \
26633 X"$ac_file" : 'X\(//\)$' \| \
26634 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26635 $as_echo X"$ac_file" |
26636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26637 s//\1/
26640 /^X\(\/\/\)[^/].*/{
26641 s//\1/
26644 /^X\(\/\/\)$/{
26645 s//\1/
26648 /^X\(\/\).*/{
26649 s//\1/
26652 s/.*/./; q'`
26653 as_dir="$ac_dir"; as_fn_mkdir_p
26654 ac_builddir=.
26656 case "$ac_dir" in
26657 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26659 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26660 # A ".." for each directory in $ac_dir_suffix.
26661 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26662 case $ac_top_builddir_sub in
26663 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26664 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26665 esac ;;
26666 esac
26667 ac_abs_top_builddir=$ac_pwd
26668 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26669 # for backward compatibility:
26670 ac_top_builddir=$ac_top_build_prefix
26672 case $srcdir in
26673 .) # We are building in place.
26674 ac_srcdir=.
26675 ac_top_srcdir=$ac_top_builddir_sub
26676 ac_abs_top_srcdir=$ac_pwd ;;
26677 [\\/]* | ?:[\\/]* ) # Absolute name.
26678 ac_srcdir=$srcdir$ac_dir_suffix;
26679 ac_top_srcdir=$srcdir
26680 ac_abs_top_srcdir=$srcdir ;;
26681 *) # Relative name.
26682 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26683 ac_top_srcdir=$ac_top_build_prefix$srcdir
26684 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26685 esac
26686 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26689 case $ac_mode in
26692 # CONFIG_FILE
26695 case $INSTALL in
26696 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26697 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26698 esac
26699 ac_MKDIR_P=$MKDIR_P
26700 case $MKDIR_P in
26701 [\\/$]* | ?:[\\/]* ) ;;
26702 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26703 esac
26704 _ACEOF
26706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26707 # If the template does not know about datarootdir, expand it.
26708 # FIXME: This hack should be removed a few years after 2.60.
26709 ac_datarootdir_hack=; ac_datarootdir_seen=
26710 ac_sed_dataroot='
26711 /datarootdir/ {
26715 /@datadir@/p
26716 /@docdir@/p
26717 /@infodir@/p
26718 /@localedir@/p
26719 /@mandir@/p'
26720 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26721 *datarootdir*) ac_datarootdir_seen=yes;;
26722 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26724 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26725 _ACEOF
26726 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26727 ac_datarootdir_hack='
26728 s&@datadir@&$datadir&g
26729 s&@docdir@&$docdir&g
26730 s&@infodir@&$infodir&g
26731 s&@localedir@&$localedir&g
26732 s&@mandir@&$mandir&g
26733 s&\\\${datarootdir}&$datarootdir&g' ;;
26734 esac
26735 _ACEOF
26737 # Neutralize VPATH when `$srcdir' = `.'.
26738 # Shell code in configure.ac might set extrasub.
26739 # FIXME: do we really want to maintain this feature?
26740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26741 ac_sed_extra="$ac_vpsub
26742 $extrasub
26743 _ACEOF
26744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26746 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26747 s|@configure_input@|$ac_sed_conf_input|;t t
26748 s&@top_builddir@&$ac_top_builddir_sub&;t t
26749 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26750 s&@srcdir@&$ac_srcdir&;t t
26751 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26752 s&@top_srcdir@&$ac_top_srcdir&;t t
26753 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26754 s&@builddir@&$ac_builddir&;t t
26755 s&@abs_builddir@&$ac_abs_builddir&;t t
26756 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26757 s&@INSTALL@&$ac_INSTALL&;t t
26758 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26759 $ac_datarootdir_hack
26761 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26762 || as_fn_error "could not create $ac_file" "$LINENO" 5
26764 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26765 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26766 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26768 which seems to be undefined. Please make sure it is defined." >&5
26769 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26770 which seems to be undefined. Please make sure it is defined." >&2;}
26772 rm -f "$tmp/stdin"
26773 case $ac_file in
26774 -) cat "$tmp/out" && rm -f "$tmp/out";;
26775 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26776 esac \
26777 || as_fn_error "could not create $ac_file" "$LINENO" 5
26781 # CONFIG_HEADER
26783 if test x"$ac_file" != x-; then
26785 $as_echo "/* $configure_input */" \
26786 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26787 } >"$tmp/config.h" \
26788 || as_fn_error "could not create $ac_file" "$LINENO" 5
26789 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26790 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26791 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26792 else
26793 rm -f "$ac_file"
26794 mv "$tmp/config.h" "$ac_file" \
26795 || as_fn_error "could not create $ac_file" "$LINENO" 5
26797 else
26798 $as_echo "/* $configure_input */" \
26799 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26800 || as_fn_error "could not create -" "$LINENO" 5
26802 # Compute "$ac_file"'s index in $config_headers.
26803 _am_arg="$ac_file"
26804 _am_stamp_count=1
26805 for _am_header in $config_headers :; do
26806 case $_am_header in
26807 $_am_arg | $_am_arg:* )
26808 break ;;
26810 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26811 esac
26812 done
26813 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26814 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26815 X"$_am_arg" : 'X\(//\)[^/]' \| \
26816 X"$_am_arg" : 'X\(//\)$' \| \
26817 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26818 $as_echo X"$_am_arg" |
26819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26820 s//\1/
26823 /^X\(\/\/\)[^/].*/{
26824 s//\1/
26827 /^X\(\/\/\)$/{
26828 s//\1/
26831 /^X\(\/\).*/{
26832 s//\1/
26835 s/.*/./; q'`/stamp-h$_am_stamp_count
26839 # CONFIG_LINK
26842 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
26844 else
26845 # Prefer the file from the source tree if names are identical.
26846 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
26847 ac_source=$srcdir/$ac_source
26850 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
26851 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
26853 if test ! -r "$ac_source"; then
26854 as_fn_error "$ac_source: file not found" "$LINENO" 5
26856 rm -f "$ac_file"
26858 # Try a relative symlink, then a hard link, then a copy.
26859 case $srcdir in
26860 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
26861 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
26862 esac
26863 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26864 ln "$ac_source" "$ac_file" 2>/dev/null ||
26865 cp -p "$ac_source" "$ac_file" ||
26866 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
26869 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26870 $as_echo "$as_me: executing $ac_file commands" >&6;}
26872 esac
26875 case $ac_file$ac_mode in
26876 "default-1":C)
26877 # Only add multilib support code if we just rebuilt the top-level
26878 # Makefile.
26879 case " $CONFIG_FILES " in
26880 *" Makefile "*)
26881 ac_file=Makefile . ${multi_basedir}/config-ml.in
26883 esac ;;
26884 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26885 # Autoconf 2.62 quotes --file arguments for eval, but not when files
26886 # are listed without --file. Let's play safe and only enable the eval
26887 # if we detect the quoting.
26888 case $CONFIG_FILES in
26889 *\'*) eval set x "$CONFIG_FILES" ;;
26890 *) set x $CONFIG_FILES ;;
26891 esac
26892 shift
26893 for mf
26895 # Strip MF so we end up with the name of the file.
26896 mf=`echo "$mf" | sed -e 's/:.*$//'`
26897 # Check whether this is an Automake generated Makefile or not.
26898 # We used to match only the files named `Makefile.in', but
26899 # some people rename them; so instead we look at the file content.
26900 # Grep'ing the first line is not enough: some people post-process
26901 # each Makefile.in and add a new line on top of each file to say so.
26902 # Grep'ing the whole file is not good either: AIX grep has a line
26903 # limit of 2048, but all sed's we know have understand at least 4000.
26904 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26905 dirpart=`$as_dirname -- "$mf" ||
26906 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26907 X"$mf" : 'X\(//\)[^/]' \| \
26908 X"$mf" : 'X\(//\)$' \| \
26909 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26910 $as_echo X"$mf" |
26911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26912 s//\1/
26915 /^X\(\/\/\)[^/].*/{
26916 s//\1/
26919 /^X\(\/\/\)$/{
26920 s//\1/
26923 /^X\(\/\).*/{
26924 s//\1/
26927 s/.*/./; q'`
26928 else
26929 continue
26931 # Extract the definition of DEPDIR, am__include, and am__quote
26932 # from the Makefile without running `make'.
26933 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26934 test -z "$DEPDIR" && continue
26935 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26936 test -z "am__include" && continue
26937 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26938 # When using ansi2knr, U may be empty or an underscore; expand it
26939 U=`sed -n 's/^U = //p' < "$mf"`
26940 # Find all dependency output files, they are included files with
26941 # $(DEPDIR) in their names. We invoke sed twice because it is the
26942 # simplest approach to changing $(DEPDIR) to its actual value in the
26943 # expansion.
26944 for file in `sed -n "
26945 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26946 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26947 # Make sure the directory exists.
26948 test -f "$dirpart/$file" && continue
26949 fdir=`$as_dirname -- "$file" ||
26950 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26951 X"$file" : 'X\(//\)[^/]' \| \
26952 X"$file" : 'X\(//\)$' \| \
26953 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26954 $as_echo X"$file" |
26955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26956 s//\1/
26959 /^X\(\/\/\)[^/].*/{
26960 s//\1/
26963 /^X\(\/\/\)$/{
26964 s//\1/
26967 /^X\(\/\).*/{
26968 s//\1/
26971 s/.*/./; q'`
26972 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26973 # echo "creating $dirpart/$file"
26974 echo '# dummy' > "$dirpart/$file"
26975 done
26976 done
26979 "libtool":C)
26981 # See if we are running on zsh, and set the options which allow our
26982 # commands through without removal of \ escapes.
26983 if test -n "${ZSH_VERSION+set}" ; then
26984 setopt NO_GLOB_SUBST
26987 cfgfile="${ofile}T"
26988 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26989 $RM "$cfgfile"
26991 cat <<_LT_EOF >> "$cfgfile"
26992 #! $SHELL
26994 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26995 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26996 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26997 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26999 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
27000 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
27001 # Written by Gordon Matzigkeit, 1996
27003 # This file is part of GNU Libtool.
27005 # GNU Libtool is free software; you can redistribute it and/or
27006 # modify it under the terms of the GNU General Public License as
27007 # published by the Free Software Foundation; either version 2 of
27008 # the License, or (at your option) any later version.
27010 # As a special exception to the GNU General Public License,
27011 # if you distribute this file as part of a program or library that
27012 # is built using GNU Libtool, you may include this file under the
27013 # same distribution terms that you use for the rest of that program.
27015 # GNU Libtool is distributed in the hope that it will be useful,
27016 # but WITHOUT ANY WARRANTY; without even the implied warranty of
27017 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27018 # GNU General Public License for more details.
27020 # You should have received a copy of the GNU General Public License
27021 # along with GNU Libtool; see the file COPYING. If not, a copy
27022 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27023 # obtained by writing to the Free Software Foundation, Inc.,
27024 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27027 # The names of the tagged configurations supported by this script.
27028 available_tags="CXX GCJ "
27030 # ### BEGIN LIBTOOL CONFIG
27032 # Which release of libtool.m4 was used?
27033 macro_version=$macro_version
27034 macro_revision=$macro_revision
27036 # Whether or not to build shared libraries.
27037 build_libtool_libs=$enable_shared
27039 # Whether or not to build static libraries.
27040 build_old_libs=$enable_static
27042 # What type of objects to build.
27043 pic_mode=$pic_mode
27045 # Whether or not to optimize for fast installation.
27046 fast_install=$enable_fast_install
27048 # Shell to use when invoking shell scripts.
27049 SHELL=$lt_SHELL
27051 # An echo program that protects backslashes.
27052 ECHO=$lt_ECHO
27054 # The host system.
27055 host_alias=$host_alias
27056 host=$host
27057 host_os=$host_os
27059 # The build system.
27060 build_alias=$build_alias
27061 build=$build
27062 build_os=$build_os
27064 # A sed program that does not truncate output.
27065 SED=$lt_SED
27067 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27068 Xsed="\$SED -e 1s/^X//"
27070 # A grep program that handles long lines.
27071 GREP=$lt_GREP
27073 # An ERE matcher.
27074 EGREP=$lt_EGREP
27076 # A literal string matcher.
27077 FGREP=$lt_FGREP
27079 # A BSD- or MS-compatible name lister.
27080 NM=$lt_NM
27082 # Whether we need soft or hard links.
27083 LN_S=$lt_LN_S
27085 # What is the maximum length of a command?
27086 max_cmd_len=$max_cmd_len
27088 # Object file suffix (normally "o").
27089 objext=$ac_objext
27091 # Executable file suffix (normally "").
27092 exeext=$exeext
27094 # whether the shell understands "unset".
27095 lt_unset=$lt_unset
27097 # turn spaces into newlines.
27098 SP2NL=$lt_lt_SP2NL
27100 # turn newlines into spaces.
27101 NL2SP=$lt_lt_NL2SP
27103 # An object symbol dumper.
27104 OBJDUMP=$lt_OBJDUMP
27106 # Method to check whether dependent libraries are shared objects.
27107 deplibs_check_method=$lt_deplibs_check_method
27109 # Command to use when deplibs_check_method == "file_magic".
27110 file_magic_cmd=$lt_file_magic_cmd
27112 # The archiver.
27113 AR=$lt_AR
27114 AR_FLAGS=$lt_AR_FLAGS
27116 # A symbol stripping program.
27117 STRIP=$lt_STRIP
27119 # Commands used to install an old-style archive.
27120 RANLIB=$lt_RANLIB
27121 old_postinstall_cmds=$lt_old_postinstall_cmds
27122 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27124 # Whether to use a lock for old archive extraction.
27125 lock_old_archive_extraction=$lock_old_archive_extraction
27127 # A C compiler.
27128 LTCC=$lt_CC
27130 # LTCC compiler flags.
27131 LTCFLAGS=$lt_CFLAGS
27133 # Take the output of nm and produce a listing of raw symbols and C names.
27134 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27136 # Transform the output of nm in a proper C declaration.
27137 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27139 # Transform the output of nm in a C name address pair.
27140 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27142 # Transform the output of nm in a C name address pair when lib prefix is needed.
27143 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27145 # The name of the directory that contains temporary libtool files.
27146 objdir=$objdir
27148 # Used to examine libraries when file_magic_cmd begins with "file".
27149 MAGIC_CMD=$MAGIC_CMD
27151 # Must we lock files when doing compilation?
27152 need_locks=$lt_need_locks
27154 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27155 DSYMUTIL=$lt_DSYMUTIL
27157 # Tool to change global to local symbols on Mac OS X.
27158 NMEDIT=$lt_NMEDIT
27160 # Tool to manipulate fat objects and archives on Mac OS X.
27161 LIPO=$lt_LIPO
27163 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27164 OTOOL=$lt_OTOOL
27166 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27167 OTOOL64=$lt_OTOOL64
27169 # Old archive suffix (normally "a").
27170 libext=$libext
27172 # Shared library suffix (normally ".so").
27173 shrext_cmds=$lt_shrext_cmds
27175 # The commands to extract the exported symbol list from a shared archive.
27176 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27178 # Variables whose values should be saved in libtool wrapper scripts and
27179 # restored at link time.
27180 variables_saved_for_relink=$lt_variables_saved_for_relink
27182 # Do we need the "lib" prefix for modules?
27183 need_lib_prefix=$need_lib_prefix
27185 # Do we need a version for libraries?
27186 need_version=$need_version
27188 # Library versioning type.
27189 version_type=$version_type
27191 # Shared library runtime path variable.
27192 runpath_var=$runpath_var
27194 # Shared library path variable.
27195 shlibpath_var=$shlibpath_var
27197 # Is shlibpath searched before the hard-coded library search path?
27198 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27200 # Format of library name prefix.
27201 libname_spec=$lt_libname_spec
27203 # List of archive names. First name is the real one, the rest are links.
27204 # The last name is the one that the linker finds with -lNAME
27205 library_names_spec=$lt_library_names_spec
27207 # The coded name of the library, if different from the real name.
27208 soname_spec=$lt_soname_spec
27210 # Permission mode override for installation of shared libraries.
27211 install_override_mode=$lt_install_override_mode
27213 # Command to use after installation of a shared archive.
27214 postinstall_cmds=$lt_postinstall_cmds
27216 # Command to use after uninstallation of a shared archive.
27217 postuninstall_cmds=$lt_postuninstall_cmds
27219 # Commands used to finish a libtool library installation in a directory.
27220 finish_cmds=$lt_finish_cmds
27222 # As "finish_cmds", except a single script fragment to be evaled but
27223 # not shown.
27224 finish_eval=$lt_finish_eval
27226 # Whether we should hardcode library paths into libraries.
27227 hardcode_into_libs=$hardcode_into_libs
27229 # Compile-time system search path for libraries.
27230 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27232 # Run-time system search path for libraries.
27233 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27235 # Whether dlopen is supported.
27236 dlopen_support=$enable_dlopen
27238 # Whether dlopen of programs is supported.
27239 dlopen_self=$enable_dlopen_self
27241 # Whether dlopen of statically linked programs is supported.
27242 dlopen_self_static=$enable_dlopen_self_static
27244 # Commands to strip libraries.
27245 old_striplib=$lt_old_striplib
27246 striplib=$lt_striplib
27249 # The linker used to build libraries.
27250 LD=$lt_LD
27252 # How to create reloadable object files.
27253 reload_flag=$lt_reload_flag
27254 reload_cmds=$lt_reload_cmds
27256 # Commands used to build an old-style archive.
27257 old_archive_cmds=$lt_old_archive_cmds
27259 # A language specific compiler.
27260 CC=$lt_compiler
27262 # Is the compiler the GNU compiler?
27263 with_gcc=$GCC
27265 # Compiler flag to turn off builtin functions.
27266 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27268 # How to pass a linker flag through the compiler.
27269 wl=$lt_lt_prog_compiler_wl
27271 # Additional compiler flags for building library objects.
27272 pic_flag=$lt_lt_prog_compiler_pic
27274 # Compiler flag to prevent dynamic linking.
27275 link_static_flag=$lt_lt_prog_compiler_static
27277 # Does compiler simultaneously support -c and -o options?
27278 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27280 # Whether or not to add -lc for building shared libraries.
27281 build_libtool_need_lc=$archive_cmds_need_lc
27283 # Whether or not to disallow shared libs when runtime libs are static.
27284 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27286 # Compiler flag to allow reflexive dlopens.
27287 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27289 # Compiler flag to generate shared objects directly from archives.
27290 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27292 # Whether the compiler copes with passing no objects directly.
27293 compiler_needs_object=$lt_compiler_needs_object
27295 # Create an old-style archive from a shared archive.
27296 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27298 # Create a temporary old-style archive to link instead of a shared archive.
27299 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27301 # Commands used to build a shared archive.
27302 archive_cmds=$lt_archive_cmds
27303 archive_expsym_cmds=$lt_archive_expsym_cmds
27305 # Commands used to build a loadable module if different from building
27306 # a shared archive.
27307 module_cmds=$lt_module_cmds
27308 module_expsym_cmds=$lt_module_expsym_cmds
27310 # Whether we are building with GNU ld or not.
27311 with_gnu_ld=$lt_with_gnu_ld
27313 # Flag that allows shared libraries with undefined symbols to be built.
27314 allow_undefined_flag=$lt_allow_undefined_flag
27316 # Flag that enforces no undefined symbols.
27317 no_undefined_flag=$lt_no_undefined_flag
27319 # Flag to hardcode \$libdir into a binary during linking.
27320 # This must work even if \$libdir does not exist
27321 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27323 # If ld is used when linking, flag to hardcode \$libdir into a binary
27324 # during linking. This must work even if \$libdir does not exist.
27325 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
27327 # Whether we need a single "-rpath" flag with a separated argument.
27328 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27330 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27331 # DIR into the resulting binary.
27332 hardcode_direct=$hardcode_direct
27334 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27335 # DIR into the resulting binary and the resulting library dependency is
27336 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27337 # library is relocated.
27338 hardcode_direct_absolute=$hardcode_direct_absolute
27340 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27341 # into the resulting binary.
27342 hardcode_minus_L=$hardcode_minus_L
27344 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27345 # into the resulting binary.
27346 hardcode_shlibpath_var=$hardcode_shlibpath_var
27348 # Set to "yes" if building a shared library automatically hardcodes DIR
27349 # into the library and all subsequent libraries and executables linked
27350 # against it.
27351 hardcode_automatic=$hardcode_automatic
27353 # Set to yes if linker adds runtime paths of dependent libraries
27354 # to runtime path list.
27355 inherit_rpath=$inherit_rpath
27357 # Whether libtool must link a program against all its dependency libraries.
27358 link_all_deplibs=$link_all_deplibs
27360 # Fix the shell variable \$srcfile for the compiler.
27361 fix_srcfile_path=$lt_fix_srcfile_path
27363 # Set to "yes" if exported symbols are required.
27364 always_export_symbols=$always_export_symbols
27366 # The commands to list exported symbols.
27367 export_symbols_cmds=$lt_export_symbols_cmds
27369 # Symbols that should not be listed in the preloaded symbols.
27370 exclude_expsyms=$lt_exclude_expsyms
27372 # Symbols that must always be exported.
27373 include_expsyms=$lt_include_expsyms
27375 # Commands necessary for linking programs (against libraries) with templates.
27376 prelink_cmds=$lt_prelink_cmds
27378 # Specify filename containing input files.
27379 file_list_spec=$lt_file_list_spec
27381 # How to hardcode a shared library path into an executable.
27382 hardcode_action=$hardcode_action
27384 # The directories searched by this compiler when creating a shared library.
27385 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27387 # Dependencies to place before and after the objects being linked to
27388 # create a shared library.
27389 predep_objects=$lt_predep_objects
27390 postdep_objects=$lt_postdep_objects
27391 predeps=$lt_predeps
27392 postdeps=$lt_postdeps
27394 # The library search path used internally by the compiler when linking
27395 # a shared library.
27396 compiler_lib_search_path=$lt_compiler_lib_search_path
27398 # ### END LIBTOOL CONFIG
27400 _LT_EOF
27402 case $host_os in
27403 aix3*)
27404 cat <<\_LT_EOF >> "$cfgfile"
27405 # AIX sometimes has problems with the GCC collect2 program. For some
27406 # reason, if we set the COLLECT_NAMES environment variable, the problems
27407 # vanish in a puff of smoke.
27408 if test "X${COLLECT_NAMES+set}" != Xset; then
27409 COLLECT_NAMES=
27410 export COLLECT_NAMES
27412 _LT_EOF
27414 esac
27417 ltmain="$ac_aux_dir/ltmain.sh"
27420 # We use sed instead of cat because bash on DJGPP gets confused if
27421 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27422 # text mode, it properly converts lines to CR/LF. This bash problem
27423 # is reportedly fixed, but why not run on old versions too?
27424 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27425 || (rm -f "$cfgfile"; exit 1)
27427 case $xsi_shell in
27428 yes)
27429 cat << \_LT_EOF >> "$cfgfile"
27431 # func_dirname file append nondir_replacement
27432 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27433 # otherwise set result to NONDIR_REPLACEMENT.
27434 func_dirname ()
27436 case ${1} in
27437 */*) func_dirname_result="${1%/*}${2}" ;;
27438 * ) func_dirname_result="${3}" ;;
27439 esac
27442 # func_basename file
27443 func_basename ()
27445 func_basename_result="${1##*/}"
27448 # func_dirname_and_basename file append nondir_replacement
27449 # perform func_basename and func_dirname in a single function
27450 # call:
27451 # dirname: Compute the dirname of FILE. If nonempty,
27452 # add APPEND to the result, otherwise set result
27453 # to NONDIR_REPLACEMENT.
27454 # value returned in "$func_dirname_result"
27455 # basename: Compute filename of FILE.
27456 # value retuned in "$func_basename_result"
27457 # Implementation must be kept synchronized with func_dirname
27458 # and func_basename. For efficiency, we do not delegate to
27459 # those functions but instead duplicate the functionality here.
27460 func_dirname_and_basename ()
27462 case ${1} in
27463 */*) func_dirname_result="${1%/*}${2}" ;;
27464 * ) func_dirname_result="${3}" ;;
27465 esac
27466 func_basename_result="${1##*/}"
27469 # func_stripname prefix suffix name
27470 # strip PREFIX and SUFFIX off of NAME.
27471 # PREFIX and SUFFIX must not contain globbing or regex special
27472 # characters, hashes, percent signs, but SUFFIX may contain a leading
27473 # dot (in which case that matches only a dot).
27474 func_stripname ()
27476 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27477 # positional parameters, so assign one to ordinary parameter first.
27478 func_stripname_result=${3}
27479 func_stripname_result=${func_stripname_result#"${1}"}
27480 func_stripname_result=${func_stripname_result%"${2}"}
27483 # func_opt_split
27484 func_opt_split ()
27486 func_opt_split_opt=${1%%=*}
27487 func_opt_split_arg=${1#*=}
27490 # func_lo2o object
27491 func_lo2o ()
27493 case ${1} in
27494 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27495 *) func_lo2o_result=${1} ;;
27496 esac
27499 # func_xform libobj-or-source
27500 func_xform ()
27502 func_xform_result=${1%.*}.lo
27505 # func_arith arithmetic-term...
27506 func_arith ()
27508 func_arith_result=$(( $* ))
27511 # func_len string
27512 # STRING may not start with a hyphen.
27513 func_len ()
27515 func_len_result=${#1}
27518 _LT_EOF
27520 *) # Bourne compatible functions.
27521 cat << \_LT_EOF >> "$cfgfile"
27523 # func_dirname file append nondir_replacement
27524 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27525 # otherwise set result to NONDIR_REPLACEMENT.
27526 func_dirname ()
27528 # Extract subdirectory from the argument.
27529 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
27530 if test "X$func_dirname_result" = "X${1}"; then
27531 func_dirname_result="${3}"
27532 else
27533 func_dirname_result="$func_dirname_result${2}"
27537 # func_basename file
27538 func_basename ()
27540 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
27544 # func_stripname prefix suffix name
27545 # strip PREFIX and SUFFIX off of NAME.
27546 # PREFIX and SUFFIX must not contain globbing or regex special
27547 # characters, hashes, percent signs, but SUFFIX may contain a leading
27548 # dot (in which case that matches only a dot).
27549 # func_strip_suffix prefix name
27550 func_stripname ()
27552 case ${2} in
27553 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
27554 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
27555 esac
27558 # sed scripts:
27559 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27560 my_sed_long_arg='1s/^-[^=]*=//'
27562 # func_opt_split
27563 func_opt_split ()
27565 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
27566 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
27569 # func_lo2o object
27570 func_lo2o ()
27572 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
27575 # func_xform libobj-or-source
27576 func_xform ()
27578 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
27581 # func_arith arithmetic-term...
27582 func_arith ()
27584 func_arith_result=`expr "$@"`
27587 # func_len string
27588 # STRING may not start with a hyphen.
27589 func_len ()
27591 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27594 _LT_EOF
27595 esac
27597 case $lt_shell_append in
27598 yes)
27599 cat << \_LT_EOF >> "$cfgfile"
27601 # func_append var value
27602 # Append VALUE to the end of shell variable VAR.
27603 func_append ()
27605 eval "$1+=\$2"
27607 _LT_EOF
27610 cat << \_LT_EOF >> "$cfgfile"
27612 # func_append var value
27613 # Append VALUE to the end of shell variable VAR.
27614 func_append ()
27616 eval "$1=\$$1\$2"
27619 _LT_EOF
27621 esac
27624 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27625 || (rm -f "$cfgfile"; exit 1)
27627 mv -f "$cfgfile" "$ofile" ||
27628 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27629 chmod +x "$ofile"
27632 cat <<_LT_EOF >> "$ofile"
27634 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27636 # The linker used to build libraries.
27637 LD=$lt_LD_CXX
27639 # How to create reloadable object files.
27640 reload_flag=$lt_reload_flag_CXX
27641 reload_cmds=$lt_reload_cmds_CXX
27643 # Commands used to build an old-style archive.
27644 old_archive_cmds=$lt_old_archive_cmds_CXX
27646 # A language specific compiler.
27647 CC=$lt_compiler_CXX
27649 # Is the compiler the GNU compiler?
27650 with_gcc=$GCC_CXX
27652 # Compiler flag to turn off builtin functions.
27653 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27655 # How to pass a linker flag through the compiler.
27656 wl=$lt_lt_prog_compiler_wl_CXX
27658 # Additional compiler flags for building library objects.
27659 pic_flag=$lt_lt_prog_compiler_pic_CXX
27661 # Compiler flag to prevent dynamic linking.
27662 link_static_flag=$lt_lt_prog_compiler_static_CXX
27664 # Does compiler simultaneously support -c and -o options?
27665 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27667 # Whether or not to add -lc for building shared libraries.
27668 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27670 # Whether or not to disallow shared libs when runtime libs are static.
27671 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27673 # Compiler flag to allow reflexive dlopens.
27674 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27676 # Compiler flag to generate shared objects directly from archives.
27677 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27679 # Whether the compiler copes with passing no objects directly.
27680 compiler_needs_object=$lt_compiler_needs_object_CXX
27682 # Create an old-style archive from a shared archive.
27683 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27685 # Create a temporary old-style archive to link instead of a shared archive.
27686 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27688 # Commands used to build a shared archive.
27689 archive_cmds=$lt_archive_cmds_CXX
27690 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27692 # Commands used to build a loadable module if different from building
27693 # a shared archive.
27694 module_cmds=$lt_module_cmds_CXX
27695 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27697 # Whether we are building with GNU ld or not.
27698 with_gnu_ld=$lt_with_gnu_ld_CXX
27700 # Flag that allows shared libraries with undefined symbols to be built.
27701 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27703 # Flag that enforces no undefined symbols.
27704 no_undefined_flag=$lt_no_undefined_flag_CXX
27706 # Flag to hardcode \$libdir into a binary during linking.
27707 # This must work even if \$libdir does not exist
27708 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27710 # If ld is used when linking, flag to hardcode \$libdir into a binary
27711 # during linking. This must work even if \$libdir does not exist.
27712 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27714 # Whether we need a single "-rpath" flag with a separated argument.
27715 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27717 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27718 # DIR into the resulting binary.
27719 hardcode_direct=$hardcode_direct_CXX
27721 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27722 # DIR into the resulting binary and the resulting library dependency is
27723 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27724 # library is relocated.
27725 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27727 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27728 # into the resulting binary.
27729 hardcode_minus_L=$hardcode_minus_L_CXX
27731 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27732 # into the resulting binary.
27733 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27735 # Set to "yes" if building a shared library automatically hardcodes DIR
27736 # into the library and all subsequent libraries and executables linked
27737 # against it.
27738 hardcode_automatic=$hardcode_automatic_CXX
27740 # Set to yes if linker adds runtime paths of dependent libraries
27741 # to runtime path list.
27742 inherit_rpath=$inherit_rpath_CXX
27744 # Whether libtool must link a program against all its dependency libraries.
27745 link_all_deplibs=$link_all_deplibs_CXX
27747 # Fix the shell variable \$srcfile for the compiler.
27748 fix_srcfile_path=$lt_fix_srcfile_path_CXX
27750 # Set to "yes" if exported symbols are required.
27751 always_export_symbols=$always_export_symbols_CXX
27753 # The commands to list exported symbols.
27754 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27756 # Symbols that should not be listed in the preloaded symbols.
27757 exclude_expsyms=$lt_exclude_expsyms_CXX
27759 # Symbols that must always be exported.
27760 include_expsyms=$lt_include_expsyms_CXX
27762 # Commands necessary for linking programs (against libraries) with templates.
27763 prelink_cmds=$lt_prelink_cmds_CXX
27765 # Specify filename containing input files.
27766 file_list_spec=$lt_file_list_spec_CXX
27768 # How to hardcode a shared library path into an executable.
27769 hardcode_action=$hardcode_action_CXX
27771 # The directories searched by this compiler when creating a shared library.
27772 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27774 # Dependencies to place before and after the objects being linked to
27775 # create a shared library.
27776 predep_objects=$lt_predep_objects_CXX
27777 postdep_objects=$lt_postdep_objects_CXX
27778 predeps=$lt_predeps_CXX
27779 postdeps=$lt_postdeps_CXX
27781 # The library search path used internally by the compiler when linking
27782 # a shared library.
27783 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27785 # ### END LIBTOOL TAG CONFIG: CXX
27786 _LT_EOF
27789 cat <<_LT_EOF >> "$ofile"
27791 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
27793 # The linker used to build libraries.
27794 LD=$lt_LD_GCJ
27796 # How to create reloadable object files.
27797 reload_flag=$lt_reload_flag_GCJ
27798 reload_cmds=$lt_reload_cmds_GCJ
27800 # Commands used to build an old-style archive.
27801 old_archive_cmds=$lt_old_archive_cmds_GCJ
27803 # A language specific compiler.
27804 CC=$lt_compiler_GCJ
27806 # Is the compiler the GNU compiler?
27807 with_gcc=$GCC_GCJ
27809 # Compiler flag to turn off builtin functions.
27810 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
27812 # How to pass a linker flag through the compiler.
27813 wl=$lt_lt_prog_compiler_wl_GCJ
27815 # Additional compiler flags for building library objects.
27816 pic_flag=$lt_lt_prog_compiler_pic_GCJ
27818 # Compiler flag to prevent dynamic linking.
27819 link_static_flag=$lt_lt_prog_compiler_static_GCJ
27821 # Does compiler simultaneously support -c and -o options?
27822 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
27824 # Whether or not to add -lc for building shared libraries.
27825 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
27827 # Whether or not to disallow shared libs when runtime libs are static.
27828 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
27830 # Compiler flag to allow reflexive dlopens.
27831 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
27833 # Compiler flag to generate shared objects directly from archives.
27834 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
27836 # Whether the compiler copes with passing no objects directly.
27837 compiler_needs_object=$lt_compiler_needs_object_GCJ
27839 # Create an old-style archive from a shared archive.
27840 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
27842 # Create a temporary old-style archive to link instead of a shared archive.
27843 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
27845 # Commands used to build a shared archive.
27846 archive_cmds=$lt_archive_cmds_GCJ
27847 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
27849 # Commands used to build a loadable module if different from building
27850 # a shared archive.
27851 module_cmds=$lt_module_cmds_GCJ
27852 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
27854 # Whether we are building with GNU ld or not.
27855 with_gnu_ld=$lt_with_gnu_ld_GCJ
27857 # Flag that allows shared libraries with undefined symbols to be built.
27858 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
27860 # Flag that enforces no undefined symbols.
27861 no_undefined_flag=$lt_no_undefined_flag_GCJ
27863 # Flag to hardcode \$libdir into a binary during linking.
27864 # This must work even if \$libdir does not exist
27865 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
27867 # If ld is used when linking, flag to hardcode \$libdir into a binary
27868 # during linking. This must work even if \$libdir does not exist.
27869 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
27871 # Whether we need a single "-rpath" flag with a separated argument.
27872 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
27874 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27875 # DIR into the resulting binary.
27876 hardcode_direct=$hardcode_direct_GCJ
27878 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27879 # DIR into the resulting binary and the resulting library dependency is
27880 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27881 # library is relocated.
27882 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
27884 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27885 # into the resulting binary.
27886 hardcode_minus_L=$hardcode_minus_L_GCJ
27888 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27889 # into the resulting binary.
27890 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
27892 # Set to "yes" if building a shared library automatically hardcodes DIR
27893 # into the library and all subsequent libraries and executables linked
27894 # against it.
27895 hardcode_automatic=$hardcode_automatic_GCJ
27897 # Set to yes if linker adds runtime paths of dependent libraries
27898 # to runtime path list.
27899 inherit_rpath=$inherit_rpath_GCJ
27901 # Whether libtool must link a program against all its dependency libraries.
27902 link_all_deplibs=$link_all_deplibs_GCJ
27904 # Fix the shell variable \$srcfile for the compiler.
27905 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
27907 # Set to "yes" if exported symbols are required.
27908 always_export_symbols=$always_export_symbols_GCJ
27910 # The commands to list exported symbols.
27911 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
27913 # Symbols that should not be listed in the preloaded symbols.
27914 exclude_expsyms=$lt_exclude_expsyms_GCJ
27916 # Symbols that must always be exported.
27917 include_expsyms=$lt_include_expsyms_GCJ
27919 # Commands necessary for linking programs (against libraries) with templates.
27920 prelink_cmds=$lt_prelink_cmds_GCJ
27922 # Specify filename containing input files.
27923 file_list_spec=$lt_file_list_spec_GCJ
27925 # How to hardcode a shared library path into an executable.
27926 hardcode_action=$hardcode_action_GCJ
27928 # The directories searched by this compiler when creating a shared library.
27929 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
27931 # Dependencies to place before and after the objects being linked to
27932 # create a shared library.
27933 predep_objects=$lt_predep_objects_GCJ
27934 postdep_objects=$lt_postdep_objects_GCJ
27935 predeps=$lt_predeps_GCJ
27936 postdeps=$lt_postdeps_GCJ
27938 # The library search path used internally by the compiler when linking
27939 # a shared library.
27940 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
27942 # ### END LIBTOOL TAG CONFIG: GCJ
27943 _LT_EOF
27946 "scripts/jar":F) chmod +x scripts/jar ;;
27948 esac
27949 done # for ac_tag
27952 as_fn_exit 0
27953 _ACEOF
27954 ac_clean_files=$ac_clean_files_save
27956 test $ac_write_fail = 0 ||
27957 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27960 # configure is writing to config.log, and then calls config.status.
27961 # config.status does its own redirection, appending to config.log.
27962 # Unfortunately, on DOS this fails, as config.log is still kept open
27963 # by configure, so config.status won't be able to write to it; its
27964 # output is simply discarded. So we exec the FD to /dev/null,
27965 # effectively closing config.log, so it can be properly (re)opened and
27966 # appended to by config.status. When coming back to configure, we
27967 # need to make the FD available again.
27968 if test "$no_create" != yes; then
27969 ac_cs_success=:
27970 ac_config_status_args=
27971 test "$silent" = yes &&
27972 ac_config_status_args="$ac_config_status_args --quiet"
27973 exec 5>/dev/null
27974 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27975 exec 5>>config.log
27976 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27977 # would make configure fail if this is the last instruction.
27978 $ac_cs_success || as_fn_exit $?
27982 # CONFIG_SUBDIRS section.
27984 if test "$no_recursion" != yes; then
27986 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
27987 # so they do not pile up.
27988 ac_sub_configure_args=
27989 ac_prev=
27990 eval "set x $ac_configure_args"
27991 shift
27992 for ac_arg
27994 if test -n "$ac_prev"; then
27995 ac_prev=
27996 continue
27998 case $ac_arg in
27999 -cache-file | --cache-file | --cache-fil | --cache-fi \
28000 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
28001 ac_prev=cache_file ;;
28002 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
28003 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
28004 | --c=*)
28006 --config-cache | -C)
28008 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
28009 ac_prev=srcdir ;;
28010 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
28012 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
28013 ac_prev=prefix ;;
28014 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
28016 --disable-option-checking)
28019 case $ac_arg in
28020 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28021 esac
28022 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
28023 esac
28024 done
28026 # Always prepend --prefix to ensure using the same prefix
28027 # in subdir configurations.
28028 ac_arg="--prefix=$prefix"
28029 case $ac_arg in
28030 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28031 esac
28032 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
28034 # Pass --silent
28035 if test "$silent" = yes; then
28036 ac_sub_configure_args="--silent $ac_sub_configure_args"
28039 # Always prepend --disable-option-checking to silence warnings, since
28040 # different subdirs can have different --enable and --with options.
28041 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
28043 ac_popdir=`pwd`
28044 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
28046 # Do not complain, so a configure script can configure whichever
28047 # parts of a large source tree are present.
28048 test -d "$srcdir/$ac_dir" || continue
28050 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
28051 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
28052 $as_echo "$ac_msg" >&6
28053 as_dir="$ac_dir"; as_fn_mkdir_p
28054 ac_builddir=.
28056 case "$ac_dir" in
28057 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28059 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28060 # A ".." for each directory in $ac_dir_suffix.
28061 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28062 case $ac_top_builddir_sub in
28063 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28064 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28065 esac ;;
28066 esac
28067 ac_abs_top_builddir=$ac_pwd
28068 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28069 # for backward compatibility:
28070 ac_top_builddir=$ac_top_build_prefix
28072 case $srcdir in
28073 .) # We are building in place.
28074 ac_srcdir=.
28075 ac_top_srcdir=$ac_top_builddir_sub
28076 ac_abs_top_srcdir=$ac_pwd ;;
28077 [\\/]* | ?:[\\/]* ) # Absolute name.
28078 ac_srcdir=$srcdir$ac_dir_suffix;
28079 ac_top_srcdir=$srcdir
28080 ac_abs_top_srcdir=$srcdir ;;
28081 *) # Relative name.
28082 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28083 ac_top_srcdir=$ac_top_build_prefix$srcdir
28084 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28085 esac
28086 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28089 cd "$ac_dir"
28091 # Check for guested configure; otherwise get Cygnus style configure.
28092 if test -f "$ac_srcdir/configure.gnu"; then
28093 ac_sub_configure=$ac_srcdir/configure.gnu
28094 elif test -f "$ac_srcdir/configure"; then
28095 ac_sub_configure=$ac_srcdir/configure
28096 elif test -f "$ac_srcdir/configure.in"; then
28097 # This should be Cygnus configure.
28098 ac_sub_configure=$ac_aux_dir/configure
28099 else
28100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
28101 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
28102 ac_sub_configure=
28105 # The recursion is here.
28106 if test -n "$ac_sub_configure"; then
28107 # Make the cache file name correct relative to the subdirectory.
28108 case $cache_file in
28109 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
28110 *) # Relative name.
28111 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
28112 esac
28114 { $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
28115 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
28116 # The eval makes quoting arguments work.
28117 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
28118 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
28119 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
28122 cd "$ac_popdir"
28123 done
28125 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28127 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}